/*! For license information please see vendors-71533e4d05168d9a70a5.bundle.js.LICENSE.txt */ (self.webpackChunkkemono_2_client=self.webpackChunkkemono_2_client||[]).push([[216],{5158:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));const i=n[r];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${i}`:`${(t?"-":"")+e.toFixed(1)} ${i}`}},1737:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},130:(e,t,n)=>{const r=n(9480),i=n(3195),o=n(9819),a=n(412),s=n(6157),l=255===new Uint8Array(Uint16Array.of(255).buffer)[0];function u(e){switch(e){case"ascii":return r;case"base64":return i;case"hex":return o;case"utf8":case"utf-8":case void 0:return a;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s;default:throw new Error(`Unknown encoding: ${e}`)}}function c(e){return e instanceof Uint8Array}function d(e,t,n){return"string"==typeof e?function(e,t){const n=u(t),r=new Uint8Array(n.byteLength(e));return n.write(r,e,0,r.byteLength),r}(e,t):Array.isArray(e)?function(e){const t=new Uint8Array(e.length);return t.set(e),t}(e):ArrayBuffer.isView(e)?function(e){const t=new Uint8Array(e.byteLength);return t.set(e),t}(e):function(e,t,n){return new Uint8Array(e,t,n)}(e,t,n)}function h(e,t,n,r,i){if(0===e.byteLength)return-1;if("string"==typeof n?(r=n,n=0):void 0===n?n=i?0:e.length-1:n<0&&(n+=e.byteLength),n>=e.byteLength){if(i)return-1;n=e.byteLength-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t)t=d(t,r);else if("number"==typeof t)return t&=255,i?e.indexOf(t,n):e.lastIndexOf(t,n);if(0===t.byteLength)return-1;if(i){let r=-1;for(let i=n;ie.byteLength&&(n=e.byteLength-t.byteLength);for(let r=n;r>=0;r--){let n=!0;for(let i=0;ii)return 1}return e.byteLength>t.byteLength?1:e.byteLengthe+t.byteLength),0));const n=new Uint8Array(t);let r=0;for(const t of e){if(r+t.byteLength>n.byteLength){const e=t.subarray(0,n.byteLength-r);return n.set(e,r),n}n.set(t,r),r+=t.byteLength}return n},copy:function(e,t,n=0,r=0,i=e.byteLength){if(i>0&&i=e.byteLength)throw new RangeError("sourceStart is out of range");if(i<0)throw new RangeError("sourceEnd is out of range");n>=t.byteLength&&(n=t.byteLength),i>e.byteLength&&(i=e.byteLength),t.byteLength-n=i||r<=n?"":(n<0&&(n=0),r>i&&(r=i),(0!==n||r{function t(e){return e.length}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;let n="";for(let r=0;r{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256);for(let e=0;e<64;e++)n[t.charCodeAt(e)]=e;function r(e){let t=e.length;return 61===e.charCodeAt(t-1)&&t--,t>1&&61===e.charCodeAt(t-1)&&t--,3*t>>>2}n[45]=62,n[95]=63,e.exports={byteLength:r,toString:function(e){const n=e.byteLength;let r="";for(let i=0;i>2]+t[(3&e[i])<<4|e[i+1]>>4]+t[(15&e[i+1])<<2|e[i+2]>>6]+t[63&e[i+2]];return n%3==2?r=r.substring(0,r.length-1)+"=":n%3==1&&(r=r.substring(0,r.length-2)+"=="),r},write:function(e,t,i=0,o=r(t)){const a=Math.min(o,e.byteLength-i);for(let r=0,i=0;i>4,e[i++]=(15&a)<<4|s>>2,e[i++]=(3&s)<<6|63&l}return a}}},9819:e=>{function t(e){return e.length>>>1}function n(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:void 0}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;e=new DataView(e.buffer,e.byteOffset,t);let n="",r=0;for(let i=t-t%4;r{function t(e){return 2*e.length}e.exports={byteLength:t,toString:function(e){const t=e.byteLength;let n="";for(let r=0;r>8,a=i%256;e[r+2*t]=a,e[r+2*t+1]=o}return o}}},412:e=>{function t(e){let t=0;for(let n=0,r=e.length;n=55296&&i<=56319&&n+1=56320&&r<=57343){t+=4,n++;continue}}t+=i<=127?1:i<=2047?2:3}return t}let n,r;if("undefined"!=typeof TextDecoder){const e=new TextDecoder;n=function(t){return e.decode(t)}}else n=function(e){const t=e.byteLength;let n="",r=0;for(;r0){let t=0;for(;t>r,r-=6;r>=0;)e[s++]=128|t>>r&63,r-=6;a+=t>=65536?2:1}return o};e.exports={byteLength:t,toString:n,write:r}},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";n.d(t,{Z:()=>o});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".uppy-Root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;line-height:1;position:relative;text-align:left}.uppy-Root[dir=rtl],[dir=rtl] .uppy-Root{text-align:right}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.uppy-u-reset{all:initial;-webkit-appearance:none;appearance:none;box-sizing:border-box;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;line-height:1}[dir=rtl] .uppy-u-reset{text-align:right}.uppy-c-textInput{background-color:#fff;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;padding:6px 8px}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:#2275d799;box-shadow:0 0 0 3px #2275d726;outline:none}[data-uppy-theme=dark] .uppy-c-textInput{background-color:#333;border-color:#333;color:#eaeaea}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#525252;box-shadow:none}.uppy-c-icon{fill:currentColor;display:inline-block;max-height:100%;max-width:100%;overflow:hidden}.uppy-c-btn{align-items:center;color:inherit;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:500;justify-content:center;line-height:1;transition-duration:.3s;transition-property:background-color,color;-webkit-user-select:none;user-select:none;white-space:nowrap}.uppy-c-btn,[dir=rtl] .uppy-c-btn{text-align:center}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{background-color:#2275d7;border-radius:4px;color:#fff;font-size:14px;padding:10px 18px}.uppy-c-btn-primary:hover{background-color:#1b5dab}.uppy-c-btn-primary:focus{box-shadow:0 0 0 3px #2275d766;outline:none}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-primary::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-c-btn-link{background-color:initial;border-radius:4px;color:#525252;font-size:14px;line-height:1;padding:10px 15px}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{box-shadow:0 0 0 3px #2275d740;outline:none}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-link::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-link:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}",""]);const o=i},5384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"@charset \"UTF-8\";.uppy-Informer{bottom:60px;left:0;position:absolute;right:0;text-align:center;z-index:1005}.uppy-Informer span>div{margin-bottom:6px}.uppy-Informer-animated{opacity:0;transform:translateY(350%);transition:all .3s ease-in;z-index:-1000}.uppy-Informer p{background-color:#757575;border-radius:18px;color:#fff;display:inline-block;font-size:12px;font-weight:400;line-height:1.4;margin:0;max-width:90%;padding:6px 15px}.uppy-size--md .uppy-Informer p{font-size:14px;line-height:1.3;max-width:500px;padding:10px 20px}[data-uppy-theme=dark] .uppy-Informer p{background-color:#333}[dir=ltr] .uppy-Informer p span{left:3px}[dir=rtl] .uppy-Informer p span{right:3px}[dir=ltr] .uppy-Informer p span{margin-left:-1px}[dir=rtl] .uppy-Informer p span{margin-right:-1px}.uppy-Informer p span{background-color:#fff;border-radius:50%;color:#525252;display:inline-block;font-size:10px;height:13px;line-height:12px;position:relative;top:-1px;vertical-align:middle;width:13px}.uppy-Informer p span:hover{cursor:help}.uppy-Informer p span:after{word-wrap:break-word;line-height:1.3}.uppy-Root [aria-label][role~=tooltip]{position:relative}.uppy-Root [aria-label][role~=tooltip]:after,.uppy-Root [aria-label][role~=tooltip]:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transform-origin:top;transition:all var(--microtip-transition-duration,.18s) var(--microtip-transition-easing,ease-in-out) var(--microtip-transition-delay,0s);will-change:transform;z-index:10}.uppy-Root [aria-label][role~=tooltip]:before{background-size:100% auto!important;content:\"\"}.uppy-Root [aria-label][role~=tooltip]:after{background:#111111e6;border-radius:4px;box-sizing:initial;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);padding:.5em 1em;text-transform:var(--microtip-text-transform,none);white-space:nowrap}.uppy-Root [aria-label][role~=tooltip]:focus:after,.uppy-Root [aria-label][role~=tooltip]:focus:before,.uppy-Root [aria-label][role~=tooltip]:hover:after,.uppy-Root [aria-label][role~=tooltip]:hover:before{opacity:1;pointer-events:auto}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002C14.285 12.002 8.594 0 2.658 0Z'/%3E%3C/svg%3E\") no-repeat;bottom:100%;height:6px;left:50%;margin-bottom:5px;transform:translate3d(-50%,0,0);width:18px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{bottom:100%;left:50%;margin-bottom:11px;transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:after{bottom:100%;transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:after{bottom:100%;transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(-16px,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M33.342 12H1.338c6 0 11.627-12.002 16.002-12.002C21.715-.002 27.406 12 33.342 12Z'/%3E%3C/svg%3E\") no-repeat;bottom:auto;height:6px;left:50%;margin-bottom:0;margin-top:5px;top:100%;transform:translate3d(-50%,-10px,0);width:18px}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{left:50%;margin-top:11px;top:100%;transform:translate3d(-50%,-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:after{top:100%;transform:translate3d(calc(-100% + 16px),-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:after{top:100%;transform:translate3d(-16px,-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:before{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M0 33.342V1.338c0 6 12.002 11.627 12.002 16.002C12.002 21.715 0 27.406 0 33.342Z'/%3E%3C/svg%3E\") no-repeat;height:18px;margin-bottom:0;margin-right:5px;width:6px}.uppy-Root [role~=tooltip][data-microtip-position=left]:after{margin-right:11px}.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:before{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:before{background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M12 2.658v32.004c0-6-12.002-11.627-12.002-16.002C-.002 14.285 12 8.594 12 2.658Z'/%3E%3C/svg%3E\") no-repeat;height:18px;margin-bottom:0;margin-left:5px;width:6px}.uppy-Root [role~=tooltip][data-microtip-position=right]:after{margin-left:11px}.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-size=small]:after{white-space:normal;width:80px}.uppy-Root [role~=tooltip][data-microtip-size=medium]:after{white-space:normal;width:150px}.uppy-Root [role~=tooltip][data-microtip-size=large]:after{white-space:normal;width:260px}.uppy-StatusBar{background-color:#fff;color:#fff;display:flex;font-size:12px;font-weight:400;height:46px;line-height:40px;position:relative;transition:height .2s;z-index:1001}[data-uppy-theme=dark] .uppy-StatusBar{background-color:#1f1f1f}.uppy-StatusBar:before{background-color:#eaeaea;bottom:0;content:\"\";height:2px;left:0;position:absolute;right:0;top:0;width:100%}[data-uppy-theme=dark] .uppy-StatusBar:before{background-color:#757575}.uppy-StatusBar[aria-hidden=true]{height:0;overflow-y:hidden}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-progress{background-color:#e32437}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-statusIndicator{color:#e32437}.uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#fff;border-top:1px solid #eaeaea;height:65px}[data-uppy-theme=dark] .uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#1f1f1f;border-top:1px solid #333}.uppy-StatusBar-progress{background-color:#2275d7;height:2px;position:absolute;transition:background-color,width .3s ease-out;z-index:1001}.uppy-StatusBar-progress.is-indeterminate{animation:uppy-StatusBar-ProgressStripes 1s linear infinite;background-image:linear-gradient(45deg,#0000004d 25%,#0000 0,#0000 50%,#0000004d 0,#0000004d 75%,#0000 0,#0000);background-size:64px 64px}@keyframes uppy-StatusBar-ProgressStripes{0%{background-position:0 0}to{background-position:64px 0}}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-progress,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-progress{background-color:#f6a623}.uppy-StatusBar.is-waiting .uppy-StatusBar-progress{display:none}[dir=ltr] .uppy-StatusBar-content{padding-left:10px}[dir=rtl] .uppy-StatusBar-content{padding-right:10px}.uppy-StatusBar-content{align-items:center;color:#333;display:flex;height:100%;position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:1002}[dir=ltr] .uppy-size--md .uppy-StatusBar-content{padding-left:15px}[dir=rtl] .uppy-size--md .uppy-StatusBar-content{padding-right:15px}[data-uppy-theme=dark] .uppy-StatusBar-content{color:#eaeaea}[dir=ltr] .uppy-StatusBar-status{padding-right:.3em}[dir=rtl] .uppy-StatusBar-status{padding-left:.3em}.uppy-StatusBar-status{display:flex;flex-direction:column;font-weight:400;justify-content:center;line-height:1.4}.uppy-StatusBar-statusPrimary{display:flex;font-weight:500;line-height:1}.uppy-StatusBar-statusPrimary button.uppy-StatusBar-details{margin-left:5px}[data-uppy-theme=dark] .uppy-StatusBar-statusPrimary{color:#eaeaea}.uppy-StatusBar-statusSecondary{color:#757575;display:inline-block;font-size:11px;line-height:1.2;margin-top:1px;white-space:nowrap}[data-uppy-theme=dark] .uppy-StatusBar-statusSecondary{color:#bbb}[dir=ltr] .uppy-StatusBar-statusSecondaryHint{margin-right:5px}[dir=rtl] .uppy-StatusBar-statusSecondaryHint{margin-left:5px}.uppy-StatusBar-statusSecondaryHint{display:inline-block;line-height:1;vertical-align:middle}[dir=ltr] .uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-right:8px}[dir=rtl] .uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-left:8px}[dir=ltr] .uppy-StatusBar-statusIndicator{margin-right:7px}[dir=rtl] .uppy-StatusBar-statusIndicator{margin-left:7px}.uppy-StatusBar-statusIndicator{color:#525252;position:relative;top:1px}.uppy-StatusBar-statusIndicator svg{vertical-align:text-bottom}[dir=ltr] .uppy-StatusBar-actions{right:10px}[dir=rtl] .uppy-StatusBar-actions{left:10px}.uppy-StatusBar-actions{align-items:center;bottom:0;display:flex;position:absolute;top:0;z-index:1004}.uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#fafafa;height:100%;padding:0 15px;position:static;width:100%}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#1f1f1f}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{flex-direction:column;height:90px}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{flex-direction:row;height:65px}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:column;justify-content:center}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:row;justify-content:normal}.uppy-StatusBar-actionCircleBtn{cursor:pointer;line-height:1;margin:3px;opacity:.9}.uppy-StatusBar-actionCircleBtn:focus{outline:none}.uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}.uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 3px #2275d780}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionCircleBtn:hover{opacity:1}.uppy-StatusBar-actionCircleBtn:focus{border-radius:50%}.uppy-StatusBar-actionCircleBtn svg{vertical-align:bottom}.uppy-StatusBar-actionBtn{color:#2275d7;display:inline-block;font-size:10px;line-height:inherit;vertical-align:middle}.uppy-size--md .uppy-StatusBar-actionBtn{font-size:11px}.uppy-StatusBar-actionBtn--disabled{opacity:.4}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--disabled{opacity:.7}[dir=ltr] .uppy-StatusBar-actionBtn--retry{margin-right:6px}[dir=rtl] .uppy-StatusBar-actionBtn--retry{margin-left:6px}.uppy-StatusBar-actionBtn--retry{background-color:#ff4b23;border-radius:8px;color:#fff;height:16px;line-height:1;padding:1px 6px 3px 18px;position:relative}.uppy-StatusBar-actionBtn--retry:focus{outline:none}.uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 3px #2275d780}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionBtn--retry:hover{background-color:#f92d00}[dir=ltr] .uppy-StatusBar-actionBtn--retry svg{left:6px}[dir=rtl] .uppy-StatusBar-actionBtn--retry svg{right:6px}.uppy-StatusBar-actionBtn--retry svg{position:absolute;top:3px}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1bb240;color:#fff;font-size:14px;line-height:1;padding:15px 10px;width:100%}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#189c38}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1c8b37}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#18762f}.uppy-size--md .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{padding:13px 22px;width:auto}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1bb240;cursor:not-allowed}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1c8b37}.uppy-StatusBar:not(.is-waiting) .uppy-StatusBar-actionBtn--upload{background-color:initial;color:#2275d7}[dir=ltr] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px}[dir=ltr] .uppy-StatusBar-actionBtn--uploadNewlyAdded,[dir=rtl] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-left:3px}[dir=rtl] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px}.uppy-StatusBar-actionBtn--uploadNewlyAdded{border-radius:3px;padding-bottom:1px}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}.uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 3px #2275d780}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-actionBtn--uploadNewlyAdded,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-actionBtn--uploadNewlyAdded{display:none}.uppy-StatusBar-actionBtn--done{border-radius:3px;line-height:1;padding:7px 8px}.uppy-StatusBar-actionBtn--done:focus{outline:none}.uppy-StatusBar-actionBtn--done::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--done:hover{color:#1b5dab}.uppy-StatusBar-actionBtn--done:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done:focus{background-color:#333}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done{color:#02baf2}.uppy-size--md .uppy-StatusBar-actionBtn--done{font-size:14px}.uppy-StatusBar-serviceMsg{color:#000;font-size:11px;line-height:1.1;padding-left:10px}.uppy-size--md .uppy-StatusBar-serviceMsg{font-size:14px;padding-left:15px}[data-uppy-theme=dark] .uppy-StatusBar-serviceMsg{color:#eaeaea}.uppy-StatusBar-serviceMsg-ghostsIcon{left:6px;opacity:.5;position:relative;top:2px;vertical-align:text-bottom;width:10px}.uppy-size--md .uppy-StatusBar-serviceMsg-ghostsIcon{left:10px;top:1px;width:15px}[dir=ltr] .uppy-StatusBar-details{left:2px}[dir=rtl] .uppy-StatusBar-details{right:2px}.uppy-StatusBar-details{-webkit-appearance:none;appearance:none;background-color:#939393;border-radius:50%;color:#fff;cursor:help;display:inline-block;font-size:10px;font-weight:600;height:13px;line-height:12px;position:relative;text-align:center;top:0;vertical-align:middle;width:13px}.uppy-StatusBar-details:after{word-wrap:break-word;line-height:1.3}[dir=ltr] .uppy-StatusBar-spinner{margin-right:10px}[dir=rtl] .uppy-StatusBar-spinner{margin-left:10px}.uppy-StatusBar-spinner{fill:#2275d7;animation-duration:1s;animation-iteration-count:infinite;animation-name:uppy-StatusBar-spinnerAnimation;animation-timing-function:linear}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-spinner,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-spinner{fill:#f6a623}@keyframes uppy-StatusBar-spinnerAnimation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list,.uppy-ProviderBrowser-viewType--unsplash ul.uppy-ProviderBrowser-list{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:6px}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list:after,.uppy-ProviderBrowser-viewType--unsplash ul.uppy-ProviderBrowser-list:after{content:\"\";flex:auto}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{margin:0;position:relative;width:50%}.uppy-size--md .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-size--md .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{width:33.3333%}.uppy-size--lg .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-size--lg .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{width:25%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem:before,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem:before{content:\"\";display:block;padding-top:100%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected svg,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--selected svg{opacity:.85}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--disabled,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--disabled{opacity:.5}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#93939333}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#eaeaea33}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview svg{fill:#000000b3;height:30%;width:30%}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview svg{fill:#fffc}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner{border-radius:4px;bottom:7px;height:calc(100% - 14px);left:7px;overflow:hidden;position:absolute;right:7px;text-align:center;top:7px;width:calc(100% - 14px)}@media (hover:none){.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner .uppy-ProviderBrowserItem-author{display:block}}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner{box-shadow:0 0 0 3px #aae1ffb3}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner img{border-radius:4px;height:100%;object-fit:cover;width:100%}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-author{background:#0000004d;bottom:0;color:#fff;display:none;font-size:12px;font-weight:500;left:0;margin:0;padding:5px;position:absolute;text-decoration:none;width:100%}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-author:hover,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-author:hover{background:#0006;text-decoration:underline}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox{background-color:#2275d7;border-radius:50%;height:26px;opacity:0;position:absolute;right:16px;top:16px;width:26px;z-index:1002}[dir=ltr] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,[dir=ltr] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{left:7px}[dir=rtl] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,[dir=rtl] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{right:7px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{height:7px;top:8px;width:12px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--is-checked,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--is-checked{opacity:1}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:hover+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:hover+label .uppy-ProviderBrowserItem-author{display:block}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label{box-shadow:0 0 0 3px #2275d780}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label:focus,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label:focus{outline:none}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label::-moz-focus-inner,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label::-moz-focus-inner{border:0}.uppy-ProviderBrowser-viewType--list{background-color:#fff}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list{background-color:#1f1f1f}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{align-items:center;display:flex;margin:0;padding:7px 15px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{color:#eaeaea}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem--disabled{opacity:.6}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{margin-right:15px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{margin-left:15px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{background-color:#fff;border:1px solid #cfcfcf;border-radius:3px;height:17px;width:17px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:focus{border:1px solid #2275d7;box-shadow:0 0 0 3px #2275d740;outline:none}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{left:3px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{right:3px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{height:5px;opacity:0;top:4px;width:9px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:focus{border-color:#02baf2b3;box-shadow:0 0 0 3px #02baf233}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox--is-checked{background-color:#2275d7;border-color:#2275d7}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox--is-checked:after{opacity:1}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner{align-items:center;display:flex;overflow:hidden;padding:2px;text-overflow:ellipsis;white-space:nowrap}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner:focus{outline:none;text-decoration:underline}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-right:8px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-left:8px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner span{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--disabled .uppy-ProviderBrowserItem-inner{cursor:default}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-right:7px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-left:7px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{width:20px}.uppy-ProviderBrowserItem-checkbox{cursor:pointer;flex-shrink:0;position:relative}.uppy-ProviderBrowserItem-checkbox:disabled{cursor:default}.uppy-ProviderBrowserItem-checkbox:after{border-bottom:2px solid #eaeaea;border-left:2px solid #eaeaea;content:\"\";cursor:pointer;position:absolute;transform:rotate(-45deg)}.uppy-ProviderBrowserItem-checkbox:disabled:after{cursor:default}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-checkbox{background-color:#1f1f1f;border-color:#939393}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-checkbox--is-checked{background-color:#333}.uppy-SearchProvider{align-items:center;display:flex;flex:1;flex-direction:column;height:100%;justify-content:center;width:100%}[data-uppy-theme=dark] .uppy-SearchProvider{background-color:#1f1f1f}.uppy-SearchProvider-input{margin-bottom:15px;max-width:650px;width:90%}.uppy-size--md .uppy-SearchProvider-input{margin-bottom:20px}.uppy-SearchProvider-input::-webkit-search-cancel-button{display:none}.uppy-SearchProvider-searchButton{padding:13px 25px}.uppy-size--md .uppy-SearchProvider-searchButton{padding:13px 30px}.uppy-DashboardContent-panelBody{align-items:center;display:flex;flex:1;justify-content:center}[data-uppy-theme=dark] .uppy-DashboardContent-panelBody{background-color:#1f1f1f}.uppy-Provider-auth,.uppy-Provider-empty,.uppy-Provider-error,.uppy-Provider-loading{align-items:center;color:#939393;display:flex;flex:1;flex-flow:column wrap;justify-content:center}.uppy-Provider-empty{color:#939393}.uppy-Provider-authIcon svg{height:75px;width:100px}.uppy-Provider-authTitle{color:#757575;font-size:17px;font-weight:400;line-height:1.4;margin-bottom:30px;max-width:500px;padding:0 15px;text-align:center}.uppy-size--md .uppy-Provider-authTitle{font-size:20px}[data-uppy-theme=dark] .uppy-Provider-authTitle{color:#cfcfcf}.uppy-Provider-btn-google{align-items:center;background:#4285f4;display:flex;padding:8px 12px!important}.uppy-Provider-btn-google:hover{background-color:#1266f1}.uppy-Provider-btn-google:focus{box-shadow:0 0 0 3px #4285f466;outline:none}.uppy-Provider-btn-google svg{margin-right:8px}[dir=ltr] .uppy-Provider-breadcrumbs{text-align:left}[dir=rtl] .uppy-Provider-breadcrumbs{text-align:right}.uppy-Provider-breadcrumbs{color:#525252;flex:1;font-size:12px;margin-bottom:10px}.uppy-size--md .uppy-Provider-breadcrumbs{margin-bottom:0}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs{color:#eaeaea}[dir=ltr] .uppy-Provider-breadcrumbsIcon{margin-right:4px}[dir=rtl] .uppy-Provider-breadcrumbsIcon{margin-left:4px}.uppy-Provider-breadcrumbsIcon{color:#525252;display:inline-block;line-height:1;vertical-align:middle}.uppy-Provider-breadcrumbsIcon svg{fill:#525252;height:13px;width:13px}.uppy-Provider-breadcrumbs button{border-radius:3px;display:inline-block;line-height:inherit;padding:4px}.uppy-Provider-breadcrumbs button:focus{outline:none}.uppy-Provider-breadcrumbs button::-moz-focus-inner{border:0}.uppy-Provider-breadcrumbs button:hover{color:#1b5dab}.uppy-Provider-breadcrumbs button:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button:focus{background-color:#333}.uppy-Provider-breadcrumbs button:not(:last-of-type){text-decoration:underline}.uppy-Provider-breadcrumbs button:last-of-type{color:#333;cursor:normal;font-weight:500;pointer-events:none}.uppy-Provider-breadcrumbs button:hover{cursor:pointer}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button{color:#eaeaea}.uppy-ProviderBrowser{display:flex;flex:1;flex-direction:column;font-size:14px;font-weight:400;height:100%}.uppy-ProviderBrowser-user{color:#333;font-weight:500;margin:0 8px 0 0}[data-uppy-theme=dark] .uppy-ProviderBrowser-user{color:#eaeaea}[dir=ltr] .uppy-ProviderBrowser-user:after{left:4px}[dir=rtl] .uppy-ProviderBrowser-user:after{right:4px}.uppy-ProviderBrowser-user:after{color:#939393;content:\"ยท\";font-weight:400;position:relative}.uppy-ProviderBrowser-header{border-bottom:1px solid #eaeaea;position:relative;z-index:1001}[data-uppy-theme=dark] .uppy-ProviderBrowser-header{border-bottom:1px solid #333}.uppy-ProviderBrowser-headerBar{background-color:#fafafa;color:#757575;font-size:12px;line-height:1.4;padding:7px 15px;z-index:1001}.uppy-size--md .uppy-ProviderBrowser-headerBar{align-items:center;display:flex}[data-uppy-theme=dark] .uppy-ProviderBrowser-headerBar{background-color:#1f1f1f}.uppy-ProviderBrowser-headerBar--simple{display:block;justify-content:center;text-align:center}.uppy-ProviderBrowser-headerBar--simple .uppy-Provider-breadcrumbsWrap{display:inline-block;flex:none;vertical-align:middle}.uppy-ProviderBrowser-searchFilter{align-items:center;display:flex;height:30px;margin-bottom:15px;margin-top:15px;padding-left:8px;padding-right:8px;position:relative;width:100%}[dir=ltr] .uppy-ProviderBrowser-searchFilterInput{padding-left:30px}[dir=ltr] .uppy-ProviderBrowser-searchFilterInput,[dir=rtl] .uppy-ProviderBrowser-searchFilterInput{padding-right:30px}[dir=rtl] .uppy-ProviderBrowser-searchFilterInput{padding-left:30px}.uppy-ProviderBrowser-searchFilterInput{background-color:#eaeaea;border:0;border-radius:4px;color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;font-size:13px;height:30px;line-height:1.4;outline:0;width:100%;z-index:1001}.uppy-ProviderBrowser-searchFilterInput::-webkit-search-cancel-button{display:none}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchFilterInput{background-color:#1f1f1f;color:#eaeaea}.uppy-ProviderBrowser-searchFilterInput:focus{background-color:#cfcfcf;border:0}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchFilterInput:focus{background-color:#333}[dir=ltr] .uppy-ProviderBrowser-searchFilterIcon{left:16px}[dir=rtl] .uppy-ProviderBrowser-searchFilterIcon{right:16px}.uppy-ProviderBrowser-searchFilterIcon{color:#757575;height:12px;position:absolute;width:12px;z-index:1002}.uppy-ProviderBrowser-searchFilterInput::placeholder{color:#939393;opacity:1}[dir=ltr] .uppy-ProviderBrowser-searchFilterReset{right:16px}[dir=rtl] .uppy-ProviderBrowser-searchFilterReset{left:16px}.uppy-ProviderBrowser-searchFilterReset{border-radius:3px;color:#939393;cursor:pointer;height:22px;padding:6px;position:absolute;width:22px;z-index:1002}.uppy-ProviderBrowser-searchFilterReset:focus{outline:none}.uppy-ProviderBrowser-searchFilterReset::-moz-focus-inner{border:0}.uppy-ProviderBrowser-searchFilterReset:focus{box-shadow:0 0 0 3px #2275d780}.uppy-ProviderBrowser-searchFilterReset:hover{color:#757575}.uppy-ProviderBrowser-searchFilterReset svg{vertical-align:text-top}.uppy-ProviderBrowser-userLogout{border-radius:3px;color:#2275d7;cursor:pointer;line-height:inherit;padding:4px}.uppy-ProviderBrowser-userLogout:focus{outline:none}.uppy-ProviderBrowser-userLogout::-moz-focus-inner{border:0}.uppy-ProviderBrowser-userLogout:hover{color:#1b5dab}.uppy-ProviderBrowser-userLogout:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout:focus{background-color:#333}.uppy-ProviderBrowser-userLogout:hover{text-decoration:underline}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout{color:#eaeaea}.uppy-ProviderBrowser-body{flex:1;position:relative}.uppy-ProviderBrowser-list{-webkit-overflow-scrolling:touch;background-color:#fff;border-spacing:0;bottom:0;display:block;flex:1;height:100%;left:0;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;right:0;top:0;width:100%}[data-uppy-theme=dark] .uppy-ProviderBrowser-list{background-color:#1f1f1f}.uppy-ProviderBrowser-list:focus{outline:none}.uppy-ProviderBrowserItem-inner{cursor:pointer;font-size:13px;font-weight:500}.uppy-ProviderBrowser-footer{align-items:center;background-color:#fff;border-top:1px solid #eaeaea;display:flex;height:65px;padding:0 15px}[dir=ltr] .uppy-ProviderBrowser-footer button{margin-right:8px}[dir=rtl] .uppy-ProviderBrowser-footer button{margin-left:8px}[data-uppy-theme=dark] .uppy-ProviderBrowser-footer{background-color:#1f1f1f;border-top:1px solid #333}.uppy-Dashboard-Item-previewInnerWrap{align-items:center;border-radius:3px;box-shadow:0 0 2px 0 #0006;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.uppy-size--md .uppy-Dashboard-Item-previewInnerWrap{box-shadow:0 1px 2px #00000026}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewInnerWrap{box-shadow:none}.uppy-Dashboard-Item-previewInnerWrap:after{background-color:#000000a6;bottom:0;content:\"\";display:none;left:0;position:absolute;right:0;top:0;z-index:1001}.uppy-Dashboard-Item-previewLink{bottom:0;left:0;position:absolute;right:0;top:0;z-index:1002}.uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #76abe9}[data-uppy-theme=dark] .uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #016c8d}.uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{border-radius:3px;height:100%;object-fit:cover;transform:translateZ(0);width:100%}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{height:auto;max-height:100%;max-width:100%;object-fit:contain;padding:10px;width:auto}.uppy-Dashboard-Item-progress{color:#fff;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);transition:all .35 ease;width:120px;z-index:1002}.uppy-Dashboard-Item-progressIndicator{color:#fff;display:inline-block;height:38px;opacity:.9;width:38px}.uppy-size--md .uppy-Dashboard-Item-progressIndicator{height:55px;width:55px}button.uppy-Dashboard-Item-progressIndicator{cursor:pointer}button.uppy-Dashboard-Item-progressIndicator:focus{outline:none}button.uppy-Dashboard-Item-progressIndicator::-moz-focus-inner{border:0}button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--bg,button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--retry{fill:#76abe9}.uppy-Dashboard-Item-progressIcon--circle{height:100%;width:100%}.uppy-Dashboard-Item-progressIcon--bg{stroke:#fff6}.uppy-Dashboard-Item-progressIcon--progress{stroke:#fff;transition:stroke-dashoffset .5s ease-out}.uppy-Dashboard-Item-progressIcon--play{fill:#fff;stroke:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--cancel{fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--pause{fill:#fff;stroke:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--check{fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--retry{fill:#fff}[dir=ltr] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:-8px}[dir=rtl] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{left:-8px}[dir=ltr] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{left:auto}[dir=rtl] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:auto}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{top:-9px;transform:none;width:auto}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{height:18px;width:18px}.uppy-size--md .uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{height:28px;width:28px}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{height:18px;opacity:1;width:18px}.uppy-size--md .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{height:22px;width:22px}.uppy-Dashboard-Item.is-processing .uppy-Dashboard-Item-progress{opacity:0}[dir=ltr] .uppy-Dashboard-Item-fileInfo{padding-right:5px}[dir=rtl] .uppy-Dashboard-Item-fileInfo{padding-left:5px}[dir=ltr] .uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-right:10px}[dir=rtl] .uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-left:10px}[dir=ltr] .uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-right:15px}[dir=rtl] .uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-left:15px}.uppy-Dashboard-Item-name{word-wrap:anywhere;font-size:12px;font-weight:500;line-height:1.3;margin-bottom:5px;word-break:break-all}[data-uppy-theme=dark] .uppy-Dashboard-Item-name{color:#eaeaea}.uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-name{font-size:14px;line-height:1.4}.uppy-Dashboard-Item-fileName{align-items:baseline;display:flex}.uppy-Dashboard-Item-fileName button{margin-left:5px}.uppy-Dashboard-Item-author{color:#757575;display:inline-block;font-size:11px;font-weight:400;line-height:1;margin-bottom:5px;vertical-align:bottom}.uppy-Dashboard-Item-author a{color:#757575}.uppy-Dashboard-Item-status{color:#757575;font-size:11px;font-weight:400;line-height:1}[data-uppy-theme=dark] .uppy-Dashboard-Item-status{color:#bbb}.uppy-Dashboard-Item-statusSize{display:inline-block;margin-bottom:5px;text-transform:uppercase;vertical-align:bottom}.uppy-Dashboard-Item-reSelect{color:#2275d7;font-family:inherit;font-size:inherit;font-weight:600}.uppy-Dashboard-Item-errorMessage{background-color:#fdeff1;color:#a51523;font-size:11px;font-weight:500;line-height:1.3;padding:5px 6px}.uppy-Dashboard-Item-errorMessageBtn{color:#a51523;cursor:pointer;font-size:11px;font-weight:500;text-decoration:underline}.uppy-Dashboard-Item-preview .uppy-Dashboard-Item-errorMessage{display:none}.uppy-size--md .uppy-Dashboard-Item-preview .uppy-Dashboard-Item-errorMessage{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #f7c2c8;bottom:0;display:block;left:0;line-height:1.4;padding:6px 8px;position:absolute;right:0}.uppy-Dashboard-Item-fileInfo .uppy-Dashboard-Item-errorMessage{border:1px solid #f7c2c8;border-radius:3px;display:inline-block;position:static}.uppy-size--md .uppy-Dashboard-Item-fileInfo .uppy-Dashboard-Item-errorMessage{display:none}.uppy-Dashboard-Item-action{color:#939393;cursor:pointer}.uppy-Dashboard-Item-action:focus{outline:none}.uppy-Dashboard-Item-action::-moz-focus-inner{border:0}.uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 3px #2275d780}.uppy-Dashboard-Item-action:hover{color:#1f1f1f;opacity:1}[data-uppy-theme=dark] .uppy-Dashboard-Item-action{color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{outline:none}[data-uppy-theme=dark] .uppy-Dashboard-Item-action::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:hover{color:#eaeaea}.uppy-Dashboard-Item-action--remove{color:#1f1f1f;opacity:.95}.uppy-Dashboard-Item-action--remove:hover{color:#000;opacity:1}[dir=ltr] .uppy-size--md .uppy-Dashboard-Item-action--remove{right:-8px}[dir=rtl] .uppy-size--md .uppy-Dashboard-Item-action--remove{left:-8px}.uppy-size--md .uppy-Dashboard-Item-action--remove{height:18px;padding:0;position:absolute;top:-8px;width:18px;z-index:1002}.uppy-size--md .uppy-Dashboard-Item-action--remove:focus{border-radius:50%}[dir=ltr] .uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{right:8px}[dir=rtl] .uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{left:8px}.uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{position:absolute;top:8px}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove{color:#525252}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove:hover{color:#333}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-actionWrapper{align-items:center;display:flex}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-action{height:22px;margin-left:3px;padding:3px;width:22px}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-action:focus{border-radius:3px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink,.uppy-size--md .uppy-Dashboard-Item-action--edit{height:16px;padding:0;width:16px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink:focus,.uppy-size--md .uppy-Dashboard-Item-action--edit:focus{border-radius:3px}.uppy-Dashboard-Item{align-items:center;border-bottom:1px solid #eaeaea;display:flex;padding:10px}[dir=ltr] .uppy-Dashboard:not(.uppy-Dashboard--singleFile) .uppy-Dashboard-Item{padding-right:0}[dir=rtl] .uppy-Dashboard:not(.uppy-Dashboard--singleFile) .uppy-Dashboard-Item{padding-left:0}[data-uppy-theme=dark] .uppy-Dashboard-Item{border-bottom:1px solid #333}[dir=ltr] .uppy-size--md .uppy-Dashboard-Item{float:left}[dir=rtl] .uppy-size--md .uppy-Dashboard-Item{float:right}.uppy-size--md .uppy-Dashboard-Item{border-bottom:0;display:block;height:215px;margin:5px 15px;padding:0;position:relative;width:calc(33.333% - 30px)}.uppy-size--lg .uppy-Dashboard-Item{height:190px;margin:5px 15px;padding:0;width:calc(25% - 30px)}.uppy-size--xl .uppy-Dashboard-Item{height:210px;padding:0;width:calc(20% - 30px)}.uppy-Dashboard--singleFile .uppy-Dashboard-Item{border-bottom:0;display:flex;flex-direction:column;height:100%;max-width:400px;padding:15px;position:relative;width:100%}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-previewInnerWrap{opacity:.2}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-name{opacity:.7}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='39'%3E%3Cpath d='M1.708 38.66c1.709 0 3.417-3.417 6.834-3.417 3.416 0 5.125 3.417 8.61 3.417 3.348 0 5.056-3.417 8.473-3.417 4.305 0 5.125 3.417 6.833 3.417.889 0 1.709-.889 1.709-1.709v-19.68C34.167-5.757 0-5.757 0 17.271v19.68c0 .82.888 1.709 1.708 1.709zm8.542-17.084a3.383 3.383 0 0 1-3.417-3.416 3.383 3.383 0 0 1 3.417-3.417 3.383 3.383 0 0 1 3.417 3.417 3.383 3.383 0 0 1-3.417 3.416zm13.667 0A3.383 3.383 0 0 1 20.5 18.16a3.383 3.383 0 0 1 3.417-3.417 3.383 3.383 0 0 1 3.416 3.417 3.383 3.383 0 0 1-3.416 3.416z' fill='%2523000'/%3E%3C/svg%3E\");background-position:50% 10px;background-repeat:no-repeat;background-size:25px;bottom:0;content:\"\";left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1005}.uppy-size--md .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-position:50% 50%;background-size:40px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-position:50% 50%;background-size:30%}.uppy-Dashboard-Item-preview{flex-grow:0;flex-shrink:0;height:50px;position:relative;width:50px}.uppy-size--md .uppy-Dashboard-Item-preview{height:140px;width:100%}.uppy-size--lg .uppy-Dashboard-Item-preview{height:120px}.uppy-size--xl .uppy-Dashboard-Item-preview{height:140px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-preview{flex-grow:1;max-height:75%;width:100%}.uppy-Dashboard--singleFile.uppy-size--md .uppy-Dashboard-Item-preview{max-height:100%}[dir=ltr] .uppy-Dashboard-Item-fileInfoAndButtons{padding-right:8px}[dir=rtl] .uppy-Dashboard-Item-fileInfoAndButtons{padding-left:8px}[dir=ltr] .uppy-Dashboard-Item-fileInfoAndButtons{padding-left:12px}[dir=rtl] .uppy-Dashboard-Item-fileInfoAndButtons{padding-right:12px}.uppy-Dashboard-Item-fileInfoAndButtons{align-items:center;display:flex;flex-grow:1;justify-content:space-between}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfoAndButtons,.uppy-size--md .uppy-Dashboard-Item-fileInfoAndButtons{align-items:flex-start;padding:9px 0 0}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfoAndButtons{flex-grow:0;width:100%}.uppy-Dashboard-Item-fileInfo{flex-grow:1;flex-shrink:1}.uppy-Dashboard-Item-actionWrapper{flex-grow:0;flex-shrink:0}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-previewInnerWrap:after,.uppy-Dashboard-Item.is-inprogress .uppy-Dashboard-Item-previewInnerWrap:after{display:block}.uppy-Dashboard-Item.is-inprogress:not(.is-resumable) .uppy-Dashboard-Item-action--remove{display:none}[dir=ltr] .uppy-Dashboard-Item-errorDetails{left:2px}[dir=rtl] .uppy-Dashboard-Item-errorDetails{right:2px}.uppy-Dashboard-Item-errorDetails{-webkit-appearance:none;appearance:none;background-color:#939393;border:none;border-radius:50%;color:#fff;cursor:help;flex-shrink:0;font-size:10px;font-weight:600;height:13px;line-height:12px;position:relative;text-align:center;top:0;width:13px}.uppy-Dashboard-Item-errorDetails:after{word-wrap:break-word;line-height:1.3}.uppy-Dashboard-FileCard{background-color:#fff;border-radius:5px;bottom:0;box-shadow:0 0 10px 4px #0000001a;display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:1005}.uppy-Dashboard-FileCard .uppy-DashboardContent-bar{border-top-left-radius:5px;border-top-right-radius:5px}.uppy-Dashboard-FileCard .uppy-Dashboard-FileCard-actions{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.uppy-Dashboard-FileCard-inner{display:flex;flex-direction:column;flex-grow:1;flex-shrink:1;height:100%;min-height:0}.uppy-Dashboard-FileCard-preview{align-items:center;border-bottom:1px solid #eaeaea;display:flex;flex-grow:0;flex-shrink:1;height:60%;justify-content:center;min-height:0;position:relative}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-preview{background-color:#333;border-bottom:0}.uppy-Dashboard-FileCard-preview img.uppy-Dashboard-Item-previewImg{border-radius:3px;box-shadow:0 3px 20px #00000026;flex:0 0 auto;max-height:90%;max-width:90%;object-fit:cover}[dir=ltr] .uppy-Dashboard-FileCard-edit{right:10px}[dir=rtl] .uppy-Dashboard-FileCard-edit{left:10px}.uppy-Dashboard-FileCard-edit{background-color:#00000080;border-radius:50px;color:#fff;font-size:13px;padding:7px 15px;position:absolute;top:10px}.uppy-Dashboard-FileCard-edit:focus{outline:none}.uppy-Dashboard-FileCard-edit::-moz-focus-inner{border:0}.uppy-Dashboard-FileCard-edit:focus{box-shadow:0 0 0 3px #2275d780}.uppy-Dashboard-FileCard-edit:hover{background-color:#000c}.uppy-Dashboard-FileCard-info{-webkit-overflow-scrolling:touch;flex-grow:0;flex-shrink:0;height:40%;overflow-y:auto;padding:30px 20px 20px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-info{background-color:#1f1f1f}.uppy-Dashboard-FileCard-fieldset{border:0;font-size:0;margin:auto auto 12px;max-width:640px;padding:0}.uppy-Dashboard-FileCard-label{color:#525252;display:inline-block;font-size:12px;vertical-align:middle;width:22%}.uppy-size--md .uppy-Dashboard-FileCard-label{font-size:14px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-label{color:#eaeaea}.uppy-Dashboard-FileCard-input{display:inline-block;vertical-align:middle;width:78%}.uppy-Dashboard-FileCard-actions{align-items:center;background-color:#fafafa;border-top:1px solid #eaeaea;display:flex;flex-grow:0;flex-shrink:0;height:55px;padding:0 15px}.uppy-size--md .uppy-Dashboard-FileCard-actions{height:65px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-actions{background-color:#1f1f1f;border-top:1px solid #333}[dir=ltr] .uppy-Dashboard-FileCard-actionsBtn{margin-right:10px}[dir=rtl] .uppy-Dashboard-FileCard-actionsBtn{margin-left:10px}.uppy-transition-slideDownUp-enter{opacity:.01;transform:translate3d(0,-105%,0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active{opacity:1;transform:translateZ(0)}.uppy-transition-slideDownUp-leave{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active{opacity:.01;transform:translate3d(0,-105%,0)}@keyframes uppy-Dashboard-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes uppy-Dashboard-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes uppy-Dashboard-slideDownAndFadeIn{0%{opacity:0;transform:translate3d(-50%,-70%,0)}to{opacity:1;transform:translate3d(-50%,-50%,0)}}@keyframes uppy-Dashboard-slideDownAndFadeIn--small{0%{opacity:0;transform:translate3d(0,-20%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes uppy-Dashboard-slideUpFadeOut{0%{opacity:1;transform:translate3d(-50%,-50%,0)}to{opacity:0;transform:translate3d(-50%,-70%,0)}}@keyframes uppy-Dashboard-slideUpFadeOut--small{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20%,0)}}.uppy-Dashboard--modal{z-index:1001}.uppy-Dashboard--modal[aria-hidden=true]{display:none}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeIn .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeOut .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard-isFixed{height:100vh;overflow:hidden}.uppy-Dashboard--modal .uppy-Dashboard-overlay{background-color:#00000080;bottom:0;left:0;position:fixed;right:0;top:0;z-index:1001}.uppy-Dashboard-inner{background-color:#f4f4f4;border:1px solid #eaeaea;border-radius:5px;max-height:100%;max-width:100%;outline:none;position:relative}.uppy-size--md .uppy-Dashboard-inner{min-height:auto}@media only screen and (min-width:820px){.uppy-Dashboard-inner{height:500px;width:650px}}.uppy-Dashboard--modal .uppy-Dashboard-inner{z-index:1002}[data-uppy-theme=dark] .uppy-Dashboard-inner{background-color:#1f1f1f}.uppy-Dashboard--isDisabled .uppy-Dashboard-inner{cursor:not-allowed}.uppy-Dashboard-innerWrap{border-radius:5px;display:flex;flex-direction:column;height:100%;opacity:0;overflow:hidden;position:relative}.uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap{opacity:1}.uppy-Dashboard--isDisabled .uppy-Dashboard-innerWrap{cursor:not-allowed;filter:grayscale(100%);opacity:.6;-webkit-user-select:none;user-select:none}.uppy-Dashboard--isDisabled .uppy-ProviderIconBg{fill:#9f9f9f}.uppy-Dashboard--isDisabled [aria-disabled],.uppy-Dashboard--isDisabled [disabled]{cursor:not-allowed;pointer-events:none}.uppy-Dashboard--modal .uppy-Dashboard-inner{border:none;bottom:15px;left:15px;position:fixed;right:15px;top:35px}@media only screen and (min-width:820px){.uppy-Dashboard--modal .uppy-Dashboard-inner{box-shadow:0 5px 15px 4px #00000026;left:50%;right:auto;top:50%;transform:translate(-50%,-50%)}}[dir=ltr] .uppy-Dashboard-close{right:-2px}[dir=rtl] .uppy-Dashboard-close{left:-2px}.uppy-Dashboard-close{color:#ffffffe6;cursor:pointer;display:block;font-size:27px;position:absolute;top:-33px;z-index:1005}.uppy-Dashboard-close:focus{outline:none}.uppy-Dashboard-close::-moz-focus-inner{border:0}.uppy-Dashboard-close:focus{color:#8cb8ed}@media only screen and (min-width:820px){[dir=ltr] .uppy-Dashboard-close{right:-35px}[dir=rtl] .uppy-Dashboard-close{left:-35px}.uppy-Dashboard-close{font-size:35px;top:-10px}}.uppy-Dashboard-serviceMsg{background-color:#fffbf7;border-bottom:1px solid #edd4b9;border-top:1px solid #edd4b9;font-size:12px;font-weight:500;line-height:1.3;padding:12px 0;position:relative;top:-1px;z-index:1004}.uppy-size--md .uppy-Dashboard-serviceMsg{font-size:14px;line-height:1.4}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg{background-color:#1f1f1f;border-bottom:1px solid #333;border-top:1px solid #333;color:#eaeaea}.uppy-Dashboard-serviceMsg-title{display:block;line-height:1;margin-bottom:4px;padding-left:42px}.uppy-Dashboard-serviceMsg-text{padding:0 15px}.uppy-Dashboard-serviceMsg-actionBtn{color:#2275d7;font-size:inherit;font-weight:inherit;vertical-align:initial}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg-actionBtn{color:#02baf2e6}.uppy-Dashboard-serviceMsg-icon{left:15px;position:absolute;top:10px}.uppy-Dashboard-AddFiles{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;text-align:center}[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles{border:1px dashed #dfdfdf;border-radius:3px;height:calc(100% - 14px);margin:7px}.uppy-Dashboard-AddFilesPanel .uppy-Dashboard-AddFiles{border:none;height:calc(100% - 54px)}.uppy-Dashboard--modal .uppy-Dashboard-AddFiles{border-color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles{border-color:#757575}.uppy-Dashboard-AddFiles-info{display:none;margin-top:auto;padding-bottom:15px;padding-top:15px}.uppy-size--height-md .uppy-Dashboard-AddFiles-info{display:block}.uppy-size--md .uppy-Dashboard-AddFiles-info{bottom:25px;left:0;padding-bottom:0;padding-top:30px;position:absolute;right:0}[data-uppy-num-acquirers=\"0\"] .uppy-Dashboard-AddFiles-info{margin-top:0}.uppy-Dashboard-browse{color:#2275d7e6;cursor:pointer}.uppy-Dashboard-browse:focus{outline:none}.uppy-Dashboard-browse::-moz-focus-inner{border:0}.uppy-Dashboard-browse:focus,.uppy-Dashboard-browse:hover{border-bottom:1px solid #2275d7}[data-uppy-theme=dark] .uppy-Dashboard-browse{color:#02baf2e6}[data-uppy-theme=dark] .uppy-Dashboard-browse:focus,[data-uppy-theme=dark] .uppy-Dashboard-browse:hover{border-bottom:1px solid #02baf2}.uppy-Dashboard-browseBtn{display:block;font-size:14px;font-weight:500;margin-bottom:5px;margin-top:8px;width:100%}.uppy-size--md .uppy-Dashboard-browseBtn{font-size:15px;margin:15px auto;padding:13px 44px;width:auto}.uppy-Dashboard-AddFiles-list{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;margin-top:2px;overflow-y:auto;padding:2px 0;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-list{flex:none;flex-direction:row;flex-wrap:wrap;justify-content:center;margin-top:15px;max-width:600px;overflow-y:visible;padding-top:0}.uppy-DashboardTab{border-bottom:1px solid #eaeaea;text-align:center;width:100%}[data-uppy-theme=dark] .uppy-DashboardTab{border-bottom:1px solid #333}.uppy-size--md .uppy-DashboardTab{border-bottom:none;display:inline-block;margin-bottom:10px;width:auto}.uppy-DashboardTab-btn{align-items:center;-webkit-appearance:none;appearance:none;background-color:initial;color:#525252;cursor:pointer;flex-direction:row;height:100%;justify-content:left;padding:12px 15px;width:100%}.uppy-DashboardTab-btn:focus{outline:none}[dir=ltr] .uppy-size--md .uppy-DashboardTab-btn{margin-right:1px}[dir=rtl] .uppy-size--md .uppy-DashboardTab-btn{margin-left:1px}.uppy-size--md .uppy-DashboardTab-btn{border-radius:5px;flex-direction:column;padding:10px 3px;width:86px}[data-uppy-theme=dark] .uppy-DashboardTab-btn{color:#eaeaea}.uppy-DashboardTab-btn::-moz-focus-inner{border:0}.uppy-DashboardTab-btn:hover{background-color:#e9ecef}[data-uppy-theme=dark] .uppy-DashboardTab-btn:hover{background-color:#333}.uppy-DashboardTab-btn:active,.uppy-DashboardTab-btn:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardTab-btn:active,[data-uppy-theme=dark] .uppy-DashboardTab-btn:focus{background-color:#525252}.uppy-DashboardTab-btn svg{display:inline-block;max-height:100%;max-width:100%;overflow:hidden;transition:transform .15s ease-in-out;vertical-align:text-top}[dir=ltr] .uppy-DashboardTab-inner{margin-right:10px}[dir=rtl] .uppy-DashboardTab-inner{margin-left:10px}.uppy-DashboardTab-inner{align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 1px 1px 0 #0000001a,0 1px 2px 0 #0000001a,0 2px 3px 0 #00000005;display:flex;height:32px;justify-content:center;width:32px}[dir=ltr] .uppy-size--md .uppy-DashboardTab-inner{margin-right:0}[dir=rtl] .uppy-size--md .uppy-DashboardTab-inner{margin-left:0}[data-uppy-theme=dark] .uppy-DashboardTab-inner{background-color:#323232;box-shadow:0 1px 1px 0 #0003,0 1px 2px 0 #0003,0 2px 3px 0 #00000014}.uppy-DashboardTab-name{font-size:14px;font-weight:400}.uppy-size--md .uppy-DashboardTab-name{font-size:12px;line-height:15px;margin-bottom:0;margin-top:8px}.uppy-DashboardTab-iconMyDevice{color:#2275d7}[data-uppy-theme=dark] .uppy-DashboardTab-iconMyDevice{color:#02baf2}.uppy-DashboardTab-iconBox{color:#0061d5}[data-uppy-theme=dark] .uppy-DashboardTab-iconBox{color:#eaeaea}.uppy-DashboardTab-iconDropbox{color:#0061fe}[data-uppy-theme=dark] .uppy-DashboardTab-iconDropbox{color:#eaeaea}.uppy-DashboardTab-iconUnsplash{color:#111}[data-uppy-theme=dark] .uppy-DashboardTab-iconUnsplash{color:#eaeaea}.uppy-DashboardTab-iconScreenRec{color:#2c3e50}[data-uppy-theme=dark] .uppy-DashboardTab-iconScreenRec{color:#eaeaea}.uppy-DashboardTab-iconAudio{color:#8030a3}[data-uppy-theme=dark] .uppy-DashboardTab-iconAudio{color:#bf6ee3}.uppy-Dashboard-input{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.uppy-DashboardContent-bar{align-items:center;background-color:#fafafa;border-bottom:1px solid #eaeaea;display:flex;flex-shrink:0;height:40px;justify-content:space-between;padding:0 10px;position:relative;width:100%;z-index:1004}.uppy-size--md .uppy-DashboardContent-bar{height:50px;padding:0 15px}[data-uppy-theme=dark] .uppy-DashboardContent-bar{background-color:#1f1f1f;border-bottom:1px solid #333}.uppy-DashboardContent-title{font-size:12px;font-weight:500;left:0;line-height:40px;margin:auto;max-width:170px;overflow-x:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}.uppy-size--md .uppy-DashboardContent-title{font-size:14px;line-height:50px;max-width:300px}[data-uppy-theme=dark] .uppy-DashboardContent-title{color:#eaeaea}[dir=ltr] .uppy-DashboardContent-back,[dir=ltr] .uppy-DashboardContent-save{margin-left:-6px}[dir=rtl] .uppy-DashboardContent-back,[dir=rtl] .uppy-DashboardContent-save{margin-right:-6px}.uppy-DashboardContent-back,.uppy-DashboardContent-save{-webkit-appearance:none;background:none;border:0;border-radius:3px;color:inherit;color:#2275d7;cursor:pointer;font-family:inherit;font-size:inherit;font-size:12px;font-weight:400;line-height:1;margin:0;padding:7px 6px}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{outline:none}.uppy-DashboardContent-back::-moz-focus-inner,.uppy-DashboardContent-save::-moz-focus-inner{border:0}.uppy-DashboardContent-back:hover,.uppy-DashboardContent-save:hover{color:#1b5dab}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardContent-back:focus,[data-uppy-theme=dark] .uppy-DashboardContent-save:focus{background-color:#333}.uppy-size--md .uppy-DashboardContent-back,.uppy-size--md .uppy-DashboardContent-save{font-size:14px}[data-uppy-theme=dark] .uppy-DashboardContent-back,[data-uppy-theme=dark] .uppy-DashboardContent-save{color:#02baf2}[dir=ltr] .uppy-DashboardContent-addMore{margin-right:-5px}[dir=rtl] .uppy-DashboardContent-addMore{margin-left:-5px}.uppy-DashboardContent-addMore{-webkit-appearance:none;background:none;border:0;border-radius:3px;color:inherit;color:#2275d7;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:500;height:29px;line-height:1;margin:0;padding:7px 8px;width:29px}.uppy-DashboardContent-addMore:focus{outline:none}.uppy-DashboardContent-addMore::-moz-focus-inner{border:0}.uppy-DashboardContent-addMore:hover{color:#1b5dab}.uppy-DashboardContent-addMore:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardContent-addMore:focus{background-color:#333}[dir=ltr] .uppy-size--md .uppy-DashboardContent-addMore{margin-right:-8px}[dir=rtl] .uppy-size--md .uppy-DashboardContent-addMore{margin-left:-8px}.uppy-size--md .uppy-DashboardContent-addMore{font-size:14px;height:auto;width:auto}[data-uppy-theme=dark] .uppy-DashboardContent-addMore{color:#02baf2}[dir=ltr] .uppy-DashboardContent-addMore svg{margin-right:4px}[dir=rtl] .uppy-DashboardContent-addMore svg{margin-left:4px}.uppy-DashboardContent-addMore svg{vertical-align:initial}.uppy-size--md .uppy-DashboardContent-addMore svg{height:11px;width:11px}.uppy-DashboardContent-addMoreCaption{display:none}.uppy-size--md .uppy-DashboardContent-addMoreCaption{display:inline}.uppy-DashboardContent-panel{background-color:#f5f5f5;flex:1}.uppy-Dashboard-AddFilesPanel,.uppy-DashboardContent-panel{border-radius:5px;bottom:0;display:flex;flex-direction:column;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:1005}.uppy-Dashboard-AddFilesPanel{background:#fafafa;background:linear-gradient(0deg,#fafafa 35%,#fafafad9);box-shadow:0 0 10px 5px #00000026}[data-uppy-theme=dark] .uppy-Dashboard-AddFilesPanel{background-color:#333;background-image:linear-gradient(0deg,#1f1f1f 35%,#1f1f1fd9)}.uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files{filter:blur(2px)}.uppy-Dashboard-progress{bottom:0;height:12%;left:0;position:absolute;width:100%}.uppy-Dashboard-progressBarContainer.is-active{height:100%;left:0;position:absolute;top:0;width:100%;z-index:1004}.uppy-Dashboard-filesContainer{flex:1;margin:0;overflow-y:hidden;position:relative}.uppy-Dashboard-filesContainer:after{clear:both;content:\"\";display:table}.uppy-Dashboard-files{-webkit-overflow-scrolling:touch;flex:1;margin:0;overflow-y:auto;padding:0 0 10px}.uppy-size--md .uppy-Dashboard-files{padding-top:10px}.uppy-Dashboard--singleFile .uppy-Dashboard-filesInner{align-items:center;display:flex;height:100%;justify-content:center}.uppy-Dashboard-dropFilesHereHint{align-items:center;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%232275D7'/%3E%3C/svg%3E\");background-position:50% 50%;background-repeat:no-repeat;border:1px dashed #2275d7;border-radius:3px;bottom:7px;color:#757575;display:flex;font-size:16px;justify-content:center;left:7px;padding-top:90px;position:absolute;right:7px;text-align:center;top:7px;visibility:hidden;z-index:2000}[data-uppy-theme=dark] .uppy-Dashboard-dropFilesHereHint{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%2302BAF2'/%3E%3C/svg%3E\");border-color:#02baf2;color:#bbb}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-dropFilesHereHint{visibility:visible}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-files,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-progressindicators,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-serviceMsg,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-DashboardContent-bar{opacity:.15}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-AddFiles{opacity:.03}.uppy-Dashboard-AddFiles-title{color:#000;font-size:17px;font-weight:500;line-height:1.35;margin-bottom:5px;margin-top:15px;padding:0 15px;text-align:inline-start;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-title{font-size:21px;font-weight:400;margin-top:5px;max-width:480px;padding:0 35px;text-align:center}[data-uppy-num-acquirers=\"0\"] .uppy-Dashboard-AddFiles-title{text-align:center}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles-title{color:#eaeaea}.uppy-Dashboard-AddFiles-title button{font-weight:500}.uppy-size--md .uppy-Dashboard-AddFiles-title button{font-weight:400}.uppy-Dashboard-note{color:#757575;font-size:14px;line-height:1.25;margin:auto;max-width:350px;padding:0 15px;text-align:center}.uppy-size--md .uppy-Dashboard-note{line-height:1.35;max-width:600px}[data-uppy-theme=dark] .uppy-Dashboard-note{color:#cfcfcf}a.uppy-Dashboard-poweredBy{color:#939393;display:inline-block;font-size:11px;margin-top:8px;text-align:center;text-decoration:none}.uppy-Dashboard-poweredByIcon{fill:none;stroke:#939393;margin-left:1px;margin-right:1px;opacity:.9;position:relative;top:1px;vertical-align:text-top}.uppy-Dashboard-Item-previewIcon{height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:25px;z-index:100}.uppy-size--md .uppy-Dashboard-Item-previewIcon{height:38px;width:38px}.uppy-Dashboard-Item-previewIcon svg{height:100%;width:100%}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewIcon{height:100%;max-height:60%;max-width:60%;width:100%}.uppy-Dashboard-Item-previewIconWrap{height:76px;max-height:75%;position:relative}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewIconWrap{height:100%;width:100%}.uppy-Dashboard-Item-previewIconBg{filter:drop-shadow(rgba(0,0,0,.1) 0 1px 1px);height:100%;width:100%}.uppy-Dashboard-upload{height:50px;position:relative;width:50px}.uppy-size--md .uppy-Dashboard-upload{height:60px;width:60px}.uppy-Dashboard-upload .uppy-c-icon{position:relative;top:1px;width:50%}[dir=ltr] .uppy-Dashboard-uploadCount{right:-12px}[dir=rtl] .uppy-Dashboard-uploadCount{left:-12px}.uppy-Dashboard-uploadCount{background-color:#1bb240;border-radius:50%;color:#fff;font-size:8px;height:16px;line-height:16px;position:absolute;top:-12px;width:16px}.uppy-size--md .uppy-Dashboard-uploadCount{font-size:9px;height:18px;line-height:18px;width:18px}",""]);const o=i},9526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(3645),i=n.n(r),o=n(1667),a=n.n(o),s=n(1630),l=n(6199),u=n(2183),c=n(9465),d=n(895),h=n(9671),p=n(1533),f=i()((function(e){return e[1]})),m=a()(s),g=a()(l),y=a()(u),v=a()(c),b=a()(d),_=a()(h),E=a()(p);f.push([e.id,".fluid_video_wrapper {\n animation: none;\n animation-delay: 0;\n animation-direction: normal;\n animation-duration: 0;\n animation-fill-mode: none;\n animation-iteration-count: 1;\n animation-name: none;\n animation-play-state: running;\n animation-timing-function: ease;\n backface-visibility: visible;\n background: 0;\n background-attachment: scroll;\n background-clip: border-box;\n background-color: transparent;\n background-image: none;\n background-origin: padding-box;\n background-position: 0 0;\n background-position-x: 0;\n background-position-y: 0;\n background-repeat: repeat;\n background-size: auto auto;\n border: 0;\n border-style: none;\n border-width: medium;\n border-color: inherit;\n border-bottom: 0;\n border-bottom-color: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-style: none;\n border-bottom-width: medium;\n border-collapse: separate;\n border-image: none;\n border-left: 0;\n border-left-color: inherit;\n border-left-style: none;\n border-left-width: medium;\n border-radius: 0;\n border-right: 0;\n border-right-color: inherit;\n border-right-style: none;\n border-right-width: medium;\n border-spacing: 0;\n border-top: 0;\n border-top-color: inherit;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top-style: none;\n border-top-width: medium;\n bottom: auto;\n box-shadow: none;\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n caption-side: top;\n clear: none;\n clip: auto;\n color: inherit;\n columns: auto;\n column-count: auto;\n column-fill: balance;\n column-gap: normal;\n column-rule: medium none currentColor;\n column-rule-color: currentColor;\n column-rule-style: none;\n column-rule-width: none;\n column-span: 1;\n column-width: auto;\n content: normal;\n counter-increment: none;\n counter-reset: none;\n cursor: auto;\n direction: ltr;\n display: inline;\n empty-cells: show;\n float: none;\n font: normal;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-size: medium;\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n height: auto;\n hyphens: none;\n left: auto;\n letter-spacing: normal;\n line-height: normal;\n list-style: none;\n list-style-image: none;\n list-style-position: outside;\n list-style-type: disc;\n margin: 0;\n margin-bottom: 0;\n margin-left: 0;\n margin-right: 0;\n margin-top: 0;\n max-height: none;\n max-width: none;\n min-height: 0;\n min-width: 0;\n opacity: 1;\n orphans: 0;\n outline: 0;\n outline-color: invert;\n outline-style: none;\n outline-width: medium;\n overflow: visible;\n overflow-x: visible;\n overflow-y: visible;\n padding: 0;\n padding-bottom: 0;\n padding-left: 0;\n padding-right: 0;\n padding-top: 0;\n page-break-after: auto;\n page-break-before: auto;\n page-break-inside: auto;\n perspective: none;\n perspective-origin: 50% 50%;\n position: static;\n /* May need to alter quotes for different locales (e.g fr) */\n quotes: '\\201C' '\\201D' '\\2018' '\\2019';\n right: auto;\n tab-size: 8;\n table-layout: auto;\n text-align: inherit;\n text-align-last: auto;\n text-decoration: none;\n text-decoration-color: inherit;\n text-decoration-line: none;\n text-decoration-style: solid;\n text-indent: 0;\n text-shadow: none;\n text-transform: none;\n top: auto;\n transform: none;\n transform-style: flat;\n transition: none;\n transition-delay: 0s;\n transition-duration: 0s;\n transition-property: none;\n transition-timing-function: ease;\n unicode-bidi: normal;\n vertical-align: baseline;\n visibility: visible;\n white-space: normal;\n widows: 0;\n width: auto;\n word-spacing: normal;\n z-index: auto;\n -webkit-tap-highlight-color: transparent;\n}\n\n.fluid_video_wrapper canvas {\n pointer-events: none;\n}\n\n.fluid_video_wrapper,\n.fluid_video_wrapper * {\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.fluid_video_wrapper:after, .fluid_video_wrapper:before {\n content: none;\n}\n\n.fluid_video_wrapper {\n position: relative;\n display: inline-block;\n}\n\n.fluid_video_wrapper video {\n position: relative;\n background-color: #000000;\n display: block;\n}\n\n.fluid_video_wrapper .vast_video_loading {\n display: table;\n text-align: center;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n pointer-events: auto;\n z-index: 1;\n}\n\n.fluid_video_wrapper .vast_video_loading:before {\n background-image: url("+m+");\n background-position: center, center;\n background-repeat: no-repeat, repeat;\n background-color: rgba(0, 0, 0, 0.2);\n content: '';\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n\n.skip_button {\n position: absolute;\n bottom: 50px;\n right: 0;\n background-color: rgba(0, 0, 0, 0.7);\n padding: 13px 21px 13px 21px;\n}\n\n.skip_button, .skip_button a {\n color: #ffffff;\n text-decoration: none;\n cursor: pointer;\n z-index: 10;\n font-size: 13px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n white-space: nowrap;\n text-align: start;\n}\n\n.skip_button a span.skip_button_icon {\n display: inline-block;\n text-align: left;\n width: 21px;\n position: relative;\n bottom: 20px;\n}\n\n.skip_button a span.skip_button_icon:before {\n background: url("+g+') no-repeat;\n position: absolute;\n height: 18px;\n width: 18px;\n top: 6px;\n content: "";\n opacity: 0.8;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n -ms-transition: opacity 0.3s ease-in-out;\n -o-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n background-position: -122px -57px;\n}\n\n.skip_button a span.skip_button_icon:before:hover {\n opacity: 1;\n}\n\n.skip_button_disabled {\n cursor: default !important;\n padding: 13px 21px 13px 21px;\n}\n\n.close_button {\n position: absolute;\n background: #000000 url('+y+") no-repeat scroll center center;\n height: 16px;\n width: 16px;\n top: 0;\n right: 0;\n background-size: 18px 18px;\n cursor: pointer;\n padding: 1px;\n z-index: 31;\n}\n\n.close_button:hover {\n background-color: #000000;\n border: 1px solid #ffffff;\n}\n\n.vast_clickthrough_layer {\n /*IE Fix*/\n background-color: white;\n opacity: 0;\n}\n\n.fluid_ad_playing {\n position: absolute;\n background-color: black;\n opacity: 0.8;\n border-radius: 1px;\n color: #ffffff;\n font-size: 13px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n white-space: nowrap;\n text-align: start;\n line-height: 18px;\n z-index: 10;\n padding: 13px 21px 13px 21px;\n}\n\n.fluid_ad_cta {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.7);\n color: #ffffff;\n font-size: 13px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n text-align: right;\n cursor: pointer;\n z-index: 10;\n padding: 13px 21px 13px 13px;\n max-width: 50%;\n}\n\n.fluid_ad_cta.left {\n text-align: left;\n}\n\n.fluid_ad_cta a {\n text-decoration: none;\n color: #ffffff;\n line-height: 18px;\n}\n\n.fluid_ad_cta:hover,\n.skip_button:not(.skip_button_disabled):hover {\n background-color: rgba(0, 0, 0, 1);\n}\n\n.fluid_html_on_pause,\n.fluid_pseudo_poster {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n z-index: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.fluid_html_on_pause * {\n pointer-events: auto;\n}\n\n/*Mobile Layout*/\n.fluid_video_wrapper.mobile .skip_button {\n bottom: 50px;\n}\n\n/*\n.fluid_video_wrapper.mobile .fluid_ad_cta {\n bottom: 125px;\n}\n*/\n.fluid_initial_play {\n width: 60px;\n height: 60px;\n border-radius: 50px;\n cursor: pointer;\n}\n\n.fluid_initial_play_button {\n margin-top: 15px;\n margin-left: 23px;\n border-style: solid;\n border-width: 15px 0 15px 21px;\n border-color: transparent transparent transparent #ffffff;\n}\n\n.fluid_initial_pause_button {\n margin-top: 15px;\n margin-left: 17px;\n width: 8px;\n height: 31px;\n border: 9px solid white;\n border-top: 0;\n border-bottom: 0;\n}\n\n.fluid_timeline_preview {\n bottom: 11px;\n color: #ffffff;\n font-size: 13px;\n line-height: 18px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n text-align: start;\n padding: 13px 21px 13px 21px;\n background-color: rgba(0, 0, 0, 0.85);\n border-radius: 1px;\n}\n\n/* Duration */\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_fluid_control_duration {\n display: inline-block;\n position: absolute;\n left: 32px;\n height: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-size: 13px;\n font-weight: normal;\n font-style: normal;\n text-align: left;\n text-decoration: none;\n line-height: 21px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_fluid_control_duration.cardboard_time {\n left: 13px;\n top: -15px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_fluid_control_duration.cardboard_time .ad_timer_prefix {\n color: #F2C94C;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .ad_countdown .ad_timer_prefix {\n color: #F2C94C;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .ad_countdown {\n /*display: none;*/\n position: absolute;\n right: 0;\n width: 75px;\n bottom: 5px;\n height: 24px;\n color: red;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-size: 13px;\n font-weight: normal;\n font-style: normal;\n text-align: left;\n text-decoration: none;\n line-height: 21px;\n}\n\n.initial_controls_show {\n visibility: visible !important;\n opacity: 1 !important;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container {\n color: white;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%); /* FF3.6-15 */\n background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%); /* Chrome10-25,Safari5.1-6 */\n background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#ad000000', GradientType=0); /* IE6-9 */\n height: 100%;\n width: 100%;\n z-index: 0;\n pointer-events: none;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel {\n height: 96px;\n width: 72px;\n left: 10px;\n top: 10px;\n position: absolute;\n background: rgba(0, 0, 0, 0.7);\n text-align: center;\n border-radius: 6px;\n overflow: hidden;\n pointer-events: auto;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_button {\n cursor: pointer;\n display: inline-block;\n text-align: left;\n height: 24px;\n width: 24px;\n position: relative;\n background: url("+g+") no-repeat;\n opacity: 0.8;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_button:hover {\n opacity: 1;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_up {\n background-position: -336px -55px;\n -webkit-transform: rotate(270deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(270deg); /* IE 9 */\n transform: rotate(270deg); /* Firefox 16+, IE 10+, Opera */\n display: block;\n left: calc(50% - 12px);\n top: 0;\n position: absolute;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_left {\n background-position: -336px -55px;\n -webkit-transform: rotate(180deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(1890deg); /* IE 9 */\n transform: rotate(180deg); /* Firefox 16+, IE 10+, Opera */\n display: block;\n left: 0;\n top: 24px;\n position: absolute;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_right {\n background-position: -336px -55px;\n -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(0deg); /* IE 9 */\n transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */\n display: block;\n right: 0;\n top: 24px;\n position: absolute;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_down {\n background-position: -336px -55px;\n -webkit-transform: rotate(90deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(90deg); /* IE 9 */\n transform: rotate(90deg); /* Firefox 16+, IE 10+, Opera */\n display: block;\n left: calc(50% - 12px);\n top: 48px;\n position: absolute;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_zoomdefault {\n background-position: -336px -17px;\n top: 72px;\n -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(0deg); /* IE 9 */\n transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */\n position: absolute;\n left: calc(50% - 12px);\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_zoomin {\n background-position: -305px -55px;\n top: 72px;\n -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(0deg); /* IE 9 */\n transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */\n position: absolute;\n right: 0;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vr_container .fluid_vr_joystick_panel .fluid_vr_joystick_zoomout {\n background-position: -305px -17px;\n top: 72px;\n -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */\n -ms-transform: rotate(0deg); /* IE 9 */\n transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */\n position: absolute;\n left: 0;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container.fluid_vr_controls_container {\n width: 50% !important;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container.fluid_vr2_controls_container {\n width: 50% !important;\n left: 50%;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container {\n color: white;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%); /* FF3.6-15 */\n background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%); /* Chrome10-25,Safari5.1-6 */\n background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#ad000000', GradientType=0); /* IE6-9 */\n height: 53px;\n z-index: 1;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vpaid_iframe {\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n left: 0;\n z-index: -10;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vpaid_nonlinear_slot_iframe {\n z-index: 30;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_vpaid_slot {\n position: absolute !important;\n top: 0 !important;\n width: 100% !important;\n height: 100% !important;\n left: 0 !important;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_subtitles_container {\n color: white;\n position: absolute;\n bottom: 46px;\n left: 0;\n right: 0;\n height: auto;\n z-index: 1;\n text-align: center;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_subtitles_container div {\n display: inline;\n background: black;\n color: white;\n font-size: 1em;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n padding: 0.25em;\n border-radius: 4px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fade_out {\n visibility: hidden;\n opacity: 0;\n -webkit-transition: visibility 0.5s, opacity 0.5s; /* Safari */\n transition: visibility 0.5s, opacity 0.5s;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fade_in {\n visibility: visible;\n opacity: 1;\n -webkit-transition: visibility 0.5s, opacity 0.5s; /* Safari */\n transition: visibility 0.5s, opacity 0.5s;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default.pseudo_fullscreen {\n width: 100% !important;\n height: 100% !important;\n top: 0;\n left: 0;\n position: fixed;\n z-index: 99999;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default:-webkit-full-screen {\n width: 100% !important;\n height: 100% !important;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default:-ms-fullscreen {\n width: 100% !important;\n height: 100% !important;\n position: absolute;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_context_menu {\n background-color: #000000;\n color: #ffffff;\n font-size: 13px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n white-space: nowrap;\n text-align: start;\n z-index: 11;\n opacity: 0.8;\n border-radius: 1px;\n}\n\n/* IE 10+ */\n_:-ms-lang(x),\n.fluid_video_wrapper.fluid_player_layout_default .fluid_context_menu {\n text-align: left;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_context_menu ul {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_context_menu ul li {\n padding: 13px 71px 13px 21px;\n cursor: pointer;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_context_menu ul li + li {\n border-top: 1px solid #000000;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_context_menu ul li:hover {\n background-color: #1e1e1e;\n color: #fbfaff;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_left {\n width: 24px;\n left: 20px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container.skip_controls .fluid_controls_left {\n width: 80px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button {\n width: 24px;\n height: 24px;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right {\n left: 60px;\n right: 20px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container.skip_controls .fluid_controls_right {\n left: 110px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_left,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right {\n position: absolute;\n height: 24px;\n top: 23px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container {\n height: 14px;\n position: absolute;\n left: 13px;\n right: 13px;\n z-index: 1;\n top: 8px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_progress {\n position: absolute;\n top: 5px;\n width: 100%;\n height: 4px;\n background-color: rgba(255, 255, 255, 0.25);\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_buffered {\n position: absolute;\n top: 5px;\n width: 0;\n height: 3px;\n background-color: rgba(255, 255, 255, 0.5);\n z-index: -1;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_progress,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_progress .fluid_controls_currentprogress {\n position: absolute;\n height: 3px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container:hover .fluid_controls_progress,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container:hover .fluid_controls_buffered,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container:hover .fluid_controls_ad_markers_holder {\n margin-top: -1px;\n height: 5px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container:hover .fluid_controls_progress .fluid_controls_currentprogress {\n height: 5px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_timeline_preview_container {\n border: 1px solid #262626;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_timeline_preview_container, .fluid_timeline_preview_container_shadow {\n bottom: 14px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container.fluid_slider .fluid_controls_progress .fluid_controls_currentprogress .fluid_controls_currentpos {\n background-color: white;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container.fluid_slider .fluid_controls_progress .fluid_controls_currentprogress .fluid_controls_currentpos,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container.fluid_ad_slider .fluid_controls_progress .fluid_controls_currentprogress .fluid_controls_currentpos {\n opacity: 0;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container.fluid_slider:hover .fluid_controls_progress .fluid_controls_currentprogress .fluid_controls_currentpos {\n opacity: 1;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container.fluid_slider .fluid_controls_progress .fluid_controls_currentprogress .fluid_controls_currentpos {\n -webkit-transition: opacity 0.3s; /* Safari */\n transition: opacity 0.3s;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_ad_markers_holder {\n position: absolute;\n top: 5px;\n width: 100%;\n height: 3px;\n z-index: 2;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_ad_marker {\n position: absolute;\n background-color: #FFCC00;\n height: 100%;\n width: 6px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container {\n height: 24px;\n width: 56px;\n left: 25px;\n top: -1px;\n z-index: 2;\n opacity: 0.8;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n -ms-transition: opacity 0.3s ease-in-out;\n -o-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n display: none;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container:hover {\n opacity: 1;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container .fluid_control_volume {\n position: relative;\n height: 3px;\n width: 100%;\n margin-top: 10px;\n background-color: rgba(171, 172, 172, 0.68);\n z-index: 3;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container .fluid_control_volume .fluid_control_currentvolume {\n float: left;\n background-color: white;\n height: 3px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container .fluid_control_volume .fluid_control_currentvolume .fluid_control_volume_currentpos {\n background-color: white;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_progress .fluid_controls_currentpos {\n right: -4px;\n z-index: 3;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container .fluid_control_volume .fluid_control_currentvolume .fluid_control_volume_currentpos,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_progress .fluid_controls_currentpos {\n width: 11px;\n height: 11px;\n position: absolute;\n top: -4px;\n border-radius: 6px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_progress_container .fluid_controls_progress .fluid_controls_currentpos {\n width: 13px;\n height: 13px;\n position: absolute;\n top: -4px;\n border-radius: 6px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container.no_volume_bar .fluid_controls_right .fluid_control_volume_container {\n display: none;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_slider {\n cursor: pointer;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container div div {\n display: block;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_fullscreen,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_fullscreen_exit,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_mini_player {\n float: right;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_video_source,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_subtitles,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_cardboard {\n font-size: 13px;\n height: 24px;\n line-height: 24px;\n float: right;\n cursor: pointer;\n position: relative;\n text-align: right;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_video_source .fluid_video_sources_title,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_subtitles .fluid_subtitles_title {\n width: 80px;\n overflow: hidden;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_subtitles .fluid_subtitles_list,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_video_source .fluid_video_sources_list,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_video_playback_rates {\n position: absolute;\n bottom: 25px;\n right: 3px;\n z-index: 888888;\n opacity: 99%;\n background-color: rgba(0, 0, 0, 1);\n border-radius: 2px;\n color: #ffffff;\n font-size: 13px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n white-space: nowrap;\n text-align: start;\n width: max-content;\n padding: 0.5em;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_subtitles .fluid_subtitles_list .fluid_subtitle_list_item,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_video_source .fluid_video_sources_list .fluid_video_source_list_item {\n padding: 12px 34px 12px 24px;\n line-height: 15px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_video_source .fluid_video_sources_list .fluid_video_source_list_item:hover,\n.fluid_video_playback_rates_item:hover,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_subtitles .fluid_subtitles_list .fluid_subtitle_list_item:hover {\n background-color: #3a3a3a;\n}\n\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_volume,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_mute {\n position: absolute;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_volume,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button.fluid_button_mute {\n left: -10px;\n}\n\n/* Button Icons */\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_play,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_pause,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_back,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_forward,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_volume,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mute,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_video_source,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen_exit,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_playback_rate,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_download,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_theatre,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_subtitles,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_cardboard,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mini_player {\n display: inline-block;\n text-align: left;\n height: 24px;\n width: 24px;\n position: relative;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_play:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_pause:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_back:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_forward:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_volume:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mute:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_video_source:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen_exit:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_playback_rate:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_download:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_theatre:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_subtitles:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_cardboard:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mini_player:before{\n background: url("+g+') no-repeat;\n position: absolute;\n height: 24px;\n width: 24px;\n top: 1px;\n left: 5px;\n content: "";\n opacity: 0.8;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n -ms-transition: opacity 0.3s ease-in-out;\n -o-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_play:before {\n background-position: -15px -19px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_pause:before {\n background-position: -15px -57px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_volume:before {\n background-position: -52px -19px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mute:before {\n background-position: -52px -57px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen:before {\n background-position: -88px -19px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen_exit:before {\n background-position: -88px -57px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_video_source:before {\n background-position: -122px -19px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_playback_rate:before {\n background-position: -232px -19px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_download:before {\n background-position: -194px -18px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_theatre:before {\n background-position: -195px -56px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_subtitles:before {\n background-position: -269px -19px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_cardboard:before {\n background-position: -269px -56px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_back:before {\n background: url('+v+") no-repeat;\n background-position: -2px -2px;\n}\n\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_forward:before {\n background: url("+b+") no-repeat;\n background-position: -2px -2px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mini_player:before {\n background: url("+_+") no-repeat 0 0;\n background-size: 20px;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode .fluid_controls_container .fluid_button.fluid_button_mini_player:before {\n background: url("+E+") no-repeat 0 0;\n background-size: 20px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_back {\n margin-left: 5px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_video_source:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen_exit:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_fullscreen:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mute:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_volume:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_pause:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_play:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_back:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_skip_forward:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_playback_rate:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_download:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_theatre:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_subtitles:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_cardboard:hover:before,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_mini_player:hover:before {\n opacity: 1;\n}\n\n.fp_title {\n position: absolute;\n top: 10px;\n left: 10px;\n color: #ffffff;\n font-size: 15px;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n font-weight: normal;\n white-space: nowrap;\n}\n\n/* Pulse class and keyframe animation */\n.transform-active {\n animation: flash 1s infinite;\n display: inline-block !important;\n opacity: 0;\n}\n\n@-webkit-keyframes flash {\n 0% {\n opacity: 0.6;\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);\n }\n 100% {\n opacity: 0;\n display: none;\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n\n@keyframes flash {\n 0% {\n opacity: 0.6;\n -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);\n box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);\n }\n 70% {\n -moz-box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);\n box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);\n }\n 100% {\n opacity: 0;\n display: none;\n -moz-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n\n.fluid_nonLinear_top, .fluid_nonLinear_middle, .fluid_nonLinear_bottom {\n flex-direction: column;\n align-items: center;\n cursor: pointer;\n display: flex;\n vertical-align: middle;\n align-content: center;\n border: 1px solid #777777;\n position: absolute;\n left: 50%;\n margin-right: -50%;\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.fluid_nonLinear_top {\n top: 20px;\n transform: translate(-50%);\n}\n\n.fluid_nonLinear_middle {\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.fluid_nonLinear_bottom {\n bottom: 50px;\n transform: translate(-50%);\n}\n\n.fluid_vpaidNonLinear_top, .fluid_vpaidNonLinear_middle, .fluid_vpaidNonLinear_bottom {\n flex-direction: column;\n align-items: center;\n cursor: pointer;\n vertical-align: middle;\n align-content: center;\n position: absolute;\n display: flex;\n}\n\n.fluid_vpaidNonLinear_frame {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.fluid_vpaidNonLinear_top {\n top: 20px;\n}\n\n.fluid_vpaidNonLinear_middle {\n top: 50%;\n}\n\n.fluid_vpaidNonLinear_bottom {\n bottom: 50px;\n}\n\n.add_icon_clickthrough {\n color: #F2C94C;\n line-height: 18px;\n text-overflow: ellipsis;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n display: inline-block;\n}\n\n.add_icon_clickthrough:before {\n background: url("+g+') no-repeat;\n height: 18px;\n width: 18px;\n top: 30px;\n padding: 3px 22px 0 0;\n content: "";\n background-position: -162px -57px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_theatre,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_playback_rate,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_video_source,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_download,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_subtitles,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_cardboard {\n float: right;\n padding-right: 5px;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_theatre,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_playback_rate,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_video_source,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_download,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_subtitles,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_button.fluid_button_cardboard {\n display: none;\n}\n\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_subtitles .fluid_subtitles_list,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_button_video_source .fluid_video_sources_list,\n.fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_video_playback_rates {\n z-index: 888888 !important;\n opacity: 0.9 !important;\n}\n\n.fluid_video_playback_rates_item {\n padding: 9px 25px 9px 25px;\n line-height: 15px;\n text-align: center;\n}\n\n.fluid_theatre_mode {\n position: fixed;\n float: left;\n top: 0;\n z-index: 10;\n box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.8);\n}\n\n.fluid_mini_player_mode {\n position: fixed;\n bottom: 10px;\n right: 10px;\n z-index: 10;\n}\n\n.source_button_icon {\n background: url('+g+") no-repeat;\n float: left;\n cursor: pointer;\n height: 18px;\n width: 18px;\n background-position: -164px -21px;\n opacity: 0;\n}\n\n.subtitle_button_icon {\n background: url("+g+") no-repeat;\n float: left;\n cursor: pointer;\n height: 18px;\n width: 18px;\n background-position: -164px -21px;\n opacity: 0;\n}\n\n.source_selected {\n opacity: 1 !important;\n}\n\n.subtitle_selected {\n opacity: 1 !important;\n}\n\n@media only screen and (min-device-width: 375px) {\n .fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_fluid_control_duration {\n left: 105px;\n }\n\n .fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container.no_volume_bar .fluid_fluid_control_duration {\n left: 32px;\n }\n\n .fluid_video_wrapper.fluid_player_layout_default .fluid_controls_container .fluid_controls_right .fluid_control_volume_container {\n display: block;\n }\n}\n\n.fp_logo {\n visibility: hidden;\n opacity: 0;\n -webkit-transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;\n -moz-transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;\n -ms-transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;\n -o-transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;\n transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;\n}\n\n.fp_hd_source::before {\n font-weight: bolder;\n font-size: 6pt;\n content: 'HD';\n padding-left: 3px;\n}\n\n/** MiniPlayer */\n\n.fluid_video_wrapper.fluid_player_layout_default .mini-player-close-button-wrapper {\n display: none;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode .mini-player-close-button-wrapper {\n position: absolute;\n background: rgb(0,0,0);\n background: linear-gradient(45deg, rgba(0,0,0,0) 90%, rgba(0,0,0,0.6) 110%);\n height: 100%;\n width: 100%;\n top: 0;\n right: 0;\n z-index: 31;\n display: block;\n opacity: 0;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n -ms-transition: opacity 0.3s ease-in-out;\n -o-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n pointer-events: none;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode .mini-player-close-button {\n position: absolute;\n background: transparent url("+y+") no-repeat scroll center center;\n height: 22px;\n width: 22px;\n top: 6px;\n right: 6px;\n background-size: 22px;\n cursor: pointer;\n z-index: 32;\n display: block;\n pointer-events: all;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode:hover .mini-player-close-button-wrapper {\n opacity: 1;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode .disable-mini-player-mobile {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: none;\n}\n\n.fluidplayer-miniplayer-player-placeholder {\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n font-size: 1.5rem;\n font-family: -apple-system, BlinkMacSystemFont, 'segoe ui', roboto, oxygen-sans, ubuntu, cantarell, 'helvetica neue', 'arial', sans-serif, 'apple color emoji', 'segoe ui emoji', 'segoe ui symbol';\n background: #000 url("+_+") no-repeat 50% calc(50% - 48px);\n background-size: 48px;\n cursor: pointer;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode.fluid_video_wrapper.fluid_mini_player_mode--top-left {\n top: 10px;\n left: 10px;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode.fluid_video_wrapper.fluid_mini_player_mode--top-right {\n top: 10px;\n right: 10px;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode.fluid_video_wrapper.fluid_mini_player_mode--bottom-left {\n bottom: 10px;\n left: 10px;\n}\n\n.fluid_video_wrapper.fluid_mini_player_mode.fluid_video_wrapper.fluid_mini_player_mode--bottom-right {\n bottom: 10px;\n right: 10px;\n}\n\n@media screen and (max-width: 768px) {\n .fluid_video_wrapper.fluid_mini_player_mode > *:not(video, .ad_countdown, .fluid_nonLinear_ad, .disable-mini-player-mobile) {\n display: none;\n }\n\n .fluid_video_wrapper.fluid_mini_player_mode .fluid_nonLinear_ad {\n z-index: 100;\n }\n\n .fluid_video_wrapper.fluid_mini_player_mode .fluid_nonLinear_bottom {\n bottom: 16px;\n }\n\n .fluid_video_wrapper.fluid_mini_player_mode .fluid_nonLinear_top {\n top: 16px;\n }\n\n .fluid_video_wrapper.fluid_mini_player_mode .ad_countdown {\n display: inline-block !important;\n }\n\n .fluid_video_wrapper.fluid_mini_player_mode .disable-mini-player-mobile {\n display: block;\n touch-action: none;\n }\n\n .fluidplayer-miniplayer-player-placeholder {\n font-size: 1.25rem !important;\n background-size: 32px !important;\n background-position-y: calc(50% - 32px) !important;\n }\n}\n\n.fluid_video_wrapper .fluid_player_skip_offset {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n display: grid;\n grid-template-columns: 1fr 1fr;\n pointer-events: none;\n}\n\n.fluid_video_wrapper .fluid_player_skip_offset__backward {\n display: flex;\n align-items: center;\n margin: 10% 10% 10% 0;\n}\n\n.fluid_video_wrapper .fluid_player_skip_offset__backward-icon {\n background: rgba(0, 0, 0, .5) url("+v+") no-repeat -2px 3px;\n width: 150px;\n height: 150px;\n background-size: contain;\n opacity: 0;\n transition: opacity 400ms ease-in;\n border-radius: 150px;\n margin-left: 20%;\n pointer-events: none;\n background-origin: content-box;\n padding: 10px;\n}\n\n.fluid_video_wrapper .fluid_player_skip_offset__forward {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n margin: 10% 0 10% 10%;\n}\n\n.fluid_video_wrapper .fluid_player_skip_offset__forward-icon {\n background: rgba(0, 0, 0, .5) url("+b+") no-repeat -2px 3px;\n width: 150px;\n height: 150px;\n background-size: cover;\n opacity: 0;\n transition: opacity 400ms ease-in;\n border-radius: 150px;\n margin-right: 20%;\n pointer-events: none;\n background-origin: content-box;\n padding: 10px;\n}\n\n.fluid_video_wrapper .fluid_player_skip_offset__backward-icon.animate,\n.fluid_video_wrapper .fluid_player_skip_offset__forward-icon.animate {\n opacity: 1;\n transition: opacity 150ms ease-out;\n}\n\n@media screen and (max-width: 768px) {\n .fluid_video_wrapper .fluid_player_skip_offset__backward-icon,\n .fluid_video_wrapper .fluid_player_skip_offset__forward-icon {\n width: 50px;\n height: 50px;\n border-radius: 50px;\n background-position-x: 0;\n background-position-y: 0;\n padding: 5px;\n }\n}\n",""]);const w=f},5506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"/*!\nPure v3.0.0\nCopyright 2013 Yahoo!\nLicensed under the BSD License.\nhttps://github.com/pure-css/pure/blob/master/LICENSE\n*/\n/*!\nnormalize.css v | MIT License | https://necolas.github.io/normalize.css/\nCopyright (c) Nicolas Gallagher and Jonathan Neal\n*/\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html{font-family:sans-serif}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}",""]);const o=i},6998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"/*!\nPure v3.0.0\nCopyright 2013 Yahoo!\nLicensed under the BSD License.\nhttps://github.com/pure-css/pure/blob/master/LICENSE\n*/\n.pure-g{display:flex;flex-flow:row wrap;align-content:flex-start}.pure-u{display:inline-block;vertical-align:top}.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}",""]);const o=i},1211:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"/*!\nPure v3.0.0\nCopyright 2013 Yahoo!\nLicensed under the BSD License.\nhttps://github.com/pure-css/pure/blob/master/LICENSE\n*/\n@media screen and (min-width:35.5em){.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-1-12,.pure-u-sm-1-2,.pure-u-sm-1-24,.pure-u-sm-1-3,.pure-u-sm-1-4,.pure-u-sm-1-5,.pure-u-sm-1-6,.pure-u-sm-1-8,.pure-u-sm-10-24,.pure-u-sm-11-12,.pure-u-sm-11-24,.pure-u-sm-12-24,.pure-u-sm-13-24,.pure-u-sm-14-24,.pure-u-sm-15-24,.pure-u-sm-16-24,.pure-u-sm-17-24,.pure-u-sm-18-24,.pure-u-sm-19-24,.pure-u-sm-2-24,.pure-u-sm-2-3,.pure-u-sm-2-5,.pure-u-sm-20-24,.pure-u-sm-21-24,.pure-u-sm-22-24,.pure-u-sm-23-24,.pure-u-sm-24-24,.pure-u-sm-3-24,.pure-u-sm-3-4,.pure-u-sm-3-5,.pure-u-sm-3-8,.pure-u-sm-4-24,.pure-u-sm-4-5,.pure-u-sm-5-12,.pure-u-sm-5-24,.pure-u-sm-5-5,.pure-u-sm-5-6,.pure-u-sm-5-8,.pure-u-sm-6-24,.pure-u-sm-7-12,.pure-u-sm-7-24,.pure-u-sm-7-8,.pure-u-sm-8-24,.pure-u-sm-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-sm-1-24{width:4.1667%}.pure-u-sm-1-12,.pure-u-sm-2-24{width:8.3333%}.pure-u-sm-1-8,.pure-u-sm-3-24{width:12.5%}.pure-u-sm-1-6,.pure-u-sm-4-24{width:16.6667%}.pure-u-sm-1-5{width:20%}.pure-u-sm-5-24{width:20.8333%}.pure-u-sm-1-4,.pure-u-sm-6-24{width:25%}.pure-u-sm-7-24{width:29.1667%}.pure-u-sm-1-3,.pure-u-sm-8-24{width:33.3333%}.pure-u-sm-3-8,.pure-u-sm-9-24{width:37.5%}.pure-u-sm-2-5{width:40%}.pure-u-sm-10-24,.pure-u-sm-5-12{width:41.6667%}.pure-u-sm-11-24{width:45.8333%}.pure-u-sm-1-2,.pure-u-sm-12-24{width:50%}.pure-u-sm-13-24{width:54.1667%}.pure-u-sm-14-24,.pure-u-sm-7-12{width:58.3333%}.pure-u-sm-3-5{width:60%}.pure-u-sm-15-24,.pure-u-sm-5-8{width:62.5%}.pure-u-sm-16-24,.pure-u-sm-2-3{width:66.6667%}.pure-u-sm-17-24{width:70.8333%}.pure-u-sm-18-24,.pure-u-sm-3-4{width:75%}.pure-u-sm-19-24{width:79.1667%}.pure-u-sm-4-5{width:80%}.pure-u-sm-20-24,.pure-u-sm-5-6{width:83.3333%}.pure-u-sm-21-24,.pure-u-sm-7-8{width:87.5%}.pure-u-sm-11-12,.pure-u-sm-22-24{width:91.6667%}.pure-u-sm-23-24{width:95.8333%}.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-24-24,.pure-u-sm-5-5{width:100%}}@media screen and (min-width:48em){.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-1-12,.pure-u-md-1-2,.pure-u-md-1-24,.pure-u-md-1-3,.pure-u-md-1-4,.pure-u-md-1-5,.pure-u-md-1-6,.pure-u-md-1-8,.pure-u-md-10-24,.pure-u-md-11-12,.pure-u-md-11-24,.pure-u-md-12-24,.pure-u-md-13-24,.pure-u-md-14-24,.pure-u-md-15-24,.pure-u-md-16-24,.pure-u-md-17-24,.pure-u-md-18-24,.pure-u-md-19-24,.pure-u-md-2-24,.pure-u-md-2-3,.pure-u-md-2-5,.pure-u-md-20-24,.pure-u-md-21-24,.pure-u-md-22-24,.pure-u-md-23-24,.pure-u-md-24-24,.pure-u-md-3-24,.pure-u-md-3-4,.pure-u-md-3-5,.pure-u-md-3-8,.pure-u-md-4-24,.pure-u-md-4-5,.pure-u-md-5-12,.pure-u-md-5-24,.pure-u-md-5-5,.pure-u-md-5-6,.pure-u-md-5-8,.pure-u-md-6-24,.pure-u-md-7-12,.pure-u-md-7-24,.pure-u-md-7-8,.pure-u-md-8-24,.pure-u-md-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-md-1-24{width:4.1667%}.pure-u-md-1-12,.pure-u-md-2-24{width:8.3333%}.pure-u-md-1-8,.pure-u-md-3-24{width:12.5%}.pure-u-md-1-6,.pure-u-md-4-24{width:16.6667%}.pure-u-md-1-5{width:20%}.pure-u-md-5-24{width:20.8333%}.pure-u-md-1-4,.pure-u-md-6-24{width:25%}.pure-u-md-7-24{width:29.1667%}.pure-u-md-1-3,.pure-u-md-8-24{width:33.3333%}.pure-u-md-3-8,.pure-u-md-9-24{width:37.5%}.pure-u-md-2-5{width:40%}.pure-u-md-10-24,.pure-u-md-5-12{width:41.6667%}.pure-u-md-11-24{width:45.8333%}.pure-u-md-1-2,.pure-u-md-12-24{width:50%}.pure-u-md-13-24{width:54.1667%}.pure-u-md-14-24,.pure-u-md-7-12{width:58.3333%}.pure-u-md-3-5{width:60%}.pure-u-md-15-24,.pure-u-md-5-8{width:62.5%}.pure-u-md-16-24,.pure-u-md-2-3{width:66.6667%}.pure-u-md-17-24{width:70.8333%}.pure-u-md-18-24,.pure-u-md-3-4{width:75%}.pure-u-md-19-24{width:79.1667%}.pure-u-md-4-5{width:80%}.pure-u-md-20-24,.pure-u-md-5-6{width:83.3333%}.pure-u-md-21-24,.pure-u-md-7-8{width:87.5%}.pure-u-md-11-12,.pure-u-md-22-24{width:91.6667%}.pure-u-md-23-24{width:95.8333%}.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-24-24,.pure-u-md-5-5{width:100%}}@media screen and (min-width:64em){.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-1-12,.pure-u-lg-1-2,.pure-u-lg-1-24,.pure-u-lg-1-3,.pure-u-lg-1-4,.pure-u-lg-1-5,.pure-u-lg-1-6,.pure-u-lg-1-8,.pure-u-lg-10-24,.pure-u-lg-11-12,.pure-u-lg-11-24,.pure-u-lg-12-24,.pure-u-lg-13-24,.pure-u-lg-14-24,.pure-u-lg-15-24,.pure-u-lg-16-24,.pure-u-lg-17-24,.pure-u-lg-18-24,.pure-u-lg-19-24,.pure-u-lg-2-24,.pure-u-lg-2-3,.pure-u-lg-2-5,.pure-u-lg-20-24,.pure-u-lg-21-24,.pure-u-lg-22-24,.pure-u-lg-23-24,.pure-u-lg-24-24,.pure-u-lg-3-24,.pure-u-lg-3-4,.pure-u-lg-3-5,.pure-u-lg-3-8,.pure-u-lg-4-24,.pure-u-lg-4-5,.pure-u-lg-5-12,.pure-u-lg-5-24,.pure-u-lg-5-5,.pure-u-lg-5-6,.pure-u-lg-5-8,.pure-u-lg-6-24,.pure-u-lg-7-12,.pure-u-lg-7-24,.pure-u-lg-7-8,.pure-u-lg-8-24,.pure-u-lg-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-lg-1-24{width:4.1667%}.pure-u-lg-1-12,.pure-u-lg-2-24{width:8.3333%}.pure-u-lg-1-8,.pure-u-lg-3-24{width:12.5%}.pure-u-lg-1-6,.pure-u-lg-4-24{width:16.6667%}.pure-u-lg-1-5{width:20%}.pure-u-lg-5-24{width:20.8333%}.pure-u-lg-1-4,.pure-u-lg-6-24{width:25%}.pure-u-lg-7-24{width:29.1667%}.pure-u-lg-1-3,.pure-u-lg-8-24{width:33.3333%}.pure-u-lg-3-8,.pure-u-lg-9-24{width:37.5%}.pure-u-lg-2-5{width:40%}.pure-u-lg-10-24,.pure-u-lg-5-12{width:41.6667%}.pure-u-lg-11-24{width:45.8333%}.pure-u-lg-1-2,.pure-u-lg-12-24{width:50%}.pure-u-lg-13-24{width:54.1667%}.pure-u-lg-14-24,.pure-u-lg-7-12{width:58.3333%}.pure-u-lg-3-5{width:60%}.pure-u-lg-15-24,.pure-u-lg-5-8{width:62.5%}.pure-u-lg-16-24,.pure-u-lg-2-3{width:66.6667%}.pure-u-lg-17-24{width:70.8333%}.pure-u-lg-18-24,.pure-u-lg-3-4{width:75%}.pure-u-lg-19-24{width:79.1667%}.pure-u-lg-4-5{width:80%}.pure-u-lg-20-24,.pure-u-lg-5-6{width:83.3333%}.pure-u-lg-21-24,.pure-u-lg-7-8{width:87.5%}.pure-u-lg-11-12,.pure-u-lg-22-24{width:91.6667%}.pure-u-lg-23-24{width:95.8333%}.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-24-24,.pure-u-lg-5-5{width:100%}}@media screen and (min-width:80em){.pure-u-xl-1,.pure-u-xl-1-1,.pure-u-xl-1-12,.pure-u-xl-1-2,.pure-u-xl-1-24,.pure-u-xl-1-3,.pure-u-xl-1-4,.pure-u-xl-1-5,.pure-u-xl-1-6,.pure-u-xl-1-8,.pure-u-xl-10-24,.pure-u-xl-11-12,.pure-u-xl-11-24,.pure-u-xl-12-24,.pure-u-xl-13-24,.pure-u-xl-14-24,.pure-u-xl-15-24,.pure-u-xl-16-24,.pure-u-xl-17-24,.pure-u-xl-18-24,.pure-u-xl-19-24,.pure-u-xl-2-24,.pure-u-xl-2-3,.pure-u-xl-2-5,.pure-u-xl-20-24,.pure-u-xl-21-24,.pure-u-xl-22-24,.pure-u-xl-23-24,.pure-u-xl-24-24,.pure-u-xl-3-24,.pure-u-xl-3-4,.pure-u-xl-3-5,.pure-u-xl-3-8,.pure-u-xl-4-24,.pure-u-xl-4-5,.pure-u-xl-5-12,.pure-u-xl-5-24,.pure-u-xl-5-5,.pure-u-xl-5-6,.pure-u-xl-5-8,.pure-u-xl-6-24,.pure-u-xl-7-12,.pure-u-xl-7-24,.pure-u-xl-7-8,.pure-u-xl-8-24,.pure-u-xl-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-xl-1-24{width:4.1667%}.pure-u-xl-1-12,.pure-u-xl-2-24{width:8.3333%}.pure-u-xl-1-8,.pure-u-xl-3-24{width:12.5%}.pure-u-xl-1-6,.pure-u-xl-4-24{width:16.6667%}.pure-u-xl-1-5{width:20%}.pure-u-xl-5-24{width:20.8333%}.pure-u-xl-1-4,.pure-u-xl-6-24{width:25%}.pure-u-xl-7-24{width:29.1667%}.pure-u-xl-1-3,.pure-u-xl-8-24{width:33.3333%}.pure-u-xl-3-8,.pure-u-xl-9-24{width:37.5%}.pure-u-xl-2-5{width:40%}.pure-u-xl-10-24,.pure-u-xl-5-12{width:41.6667%}.pure-u-xl-11-24{width:45.8333%}.pure-u-xl-1-2,.pure-u-xl-12-24{width:50%}.pure-u-xl-13-24{width:54.1667%}.pure-u-xl-14-24,.pure-u-xl-7-12{width:58.3333%}.pure-u-xl-3-5{width:60%}.pure-u-xl-15-24,.pure-u-xl-5-8{width:62.5%}.pure-u-xl-16-24,.pure-u-xl-2-3{width:66.6667%}.pure-u-xl-17-24{width:70.8333%}.pure-u-xl-18-24,.pure-u-xl-3-4{width:75%}.pure-u-xl-19-24{width:79.1667%}.pure-u-xl-4-5{width:80%}.pure-u-xl-20-24,.pure-u-xl-5-6{width:83.3333%}.pure-u-xl-21-24,.pure-u-xl-7-8{width:87.5%}.pure-u-xl-11-12,.pure-u-xl-22-24{width:91.6667%}.pure-u-xl-23-24{width:95.8333%}.pure-u-xl-1,.pure-u-xl-1-1,.pure-u-xl-24-24,.pure-u-xl-5-5{width:100%}}@media screen and (min-width:120em){.pure-u-xxl-1,.pure-u-xxl-1-1,.pure-u-xxl-1-12,.pure-u-xxl-1-2,.pure-u-xxl-1-24,.pure-u-xxl-1-3,.pure-u-xxl-1-4,.pure-u-xxl-1-5,.pure-u-xxl-1-6,.pure-u-xxl-1-8,.pure-u-xxl-10-24,.pure-u-xxl-11-12,.pure-u-xxl-11-24,.pure-u-xxl-12-24,.pure-u-xxl-13-24,.pure-u-xxl-14-24,.pure-u-xxl-15-24,.pure-u-xxl-16-24,.pure-u-xxl-17-24,.pure-u-xxl-18-24,.pure-u-xxl-19-24,.pure-u-xxl-2-24,.pure-u-xxl-2-3,.pure-u-xxl-2-5,.pure-u-xxl-20-24,.pure-u-xxl-21-24,.pure-u-xxl-22-24,.pure-u-xxl-23-24,.pure-u-xxl-24-24,.pure-u-xxl-3-24,.pure-u-xxl-3-4,.pure-u-xxl-3-5,.pure-u-xxl-3-8,.pure-u-xxl-4-24,.pure-u-xxl-4-5,.pure-u-xxl-5-12,.pure-u-xxl-5-24,.pure-u-xxl-5-5,.pure-u-xxl-5-6,.pure-u-xxl-5-8,.pure-u-xxl-6-24,.pure-u-xxl-7-12,.pure-u-xxl-7-24,.pure-u-xxl-7-8,.pure-u-xxl-8-24,.pure-u-xxl-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-xxl-1-24{width:4.1667%}.pure-u-xxl-1-12,.pure-u-xxl-2-24{width:8.3333%}.pure-u-xxl-1-8,.pure-u-xxl-3-24{width:12.5%}.pure-u-xxl-1-6,.pure-u-xxl-4-24{width:16.6667%}.pure-u-xxl-1-5{width:20%}.pure-u-xxl-5-24{width:20.8333%}.pure-u-xxl-1-4,.pure-u-xxl-6-24{width:25%}.pure-u-xxl-7-24{width:29.1667%}.pure-u-xxl-1-3,.pure-u-xxl-8-24{width:33.3333%}.pure-u-xxl-3-8,.pure-u-xxl-9-24{width:37.5%}.pure-u-xxl-2-5{width:40%}.pure-u-xxl-10-24,.pure-u-xxl-5-12{width:41.6667%}.pure-u-xxl-11-24{width:45.8333%}.pure-u-xxl-1-2,.pure-u-xxl-12-24{width:50%}.pure-u-xxl-13-24{width:54.1667%}.pure-u-xxl-14-24,.pure-u-xxl-7-12{width:58.3333%}.pure-u-xxl-3-5{width:60%}.pure-u-xxl-15-24,.pure-u-xxl-5-8{width:62.5%}.pure-u-xxl-16-24,.pure-u-xxl-2-3{width:66.6667%}.pure-u-xxl-17-24{width:70.8333%}.pure-u-xxl-18-24,.pure-u-xxl-3-4{width:75%}.pure-u-xxl-19-24{width:79.1667%}.pure-u-xxl-4-5{width:80%}.pure-u-xxl-20-24,.pure-u-xxl-5-6{width:83.3333%}.pure-u-xxl-21-24,.pure-u-xxl-7-8{width:87.5%}.pure-u-xxl-11-12,.pure-u-xxl-22-24{width:91.6667%}.pure-u-xxl-23-24{width:95.8333%}.pure-u-xxl-1,.pure-u-xxl-1-1,.pure-u-xxl-24-24,.pure-u-xxl-5-5{width:100%}}@media screen and (min-width:160em){.pure-u-xxxl-1,.pure-u-xxxl-1-1,.pure-u-xxxl-1-12,.pure-u-xxxl-1-2,.pure-u-xxxl-1-24,.pure-u-xxxl-1-3,.pure-u-xxxl-1-4,.pure-u-xxxl-1-5,.pure-u-xxxl-1-6,.pure-u-xxxl-1-8,.pure-u-xxxl-10-24,.pure-u-xxxl-11-12,.pure-u-xxxl-11-24,.pure-u-xxxl-12-24,.pure-u-xxxl-13-24,.pure-u-xxxl-14-24,.pure-u-xxxl-15-24,.pure-u-xxxl-16-24,.pure-u-xxxl-17-24,.pure-u-xxxl-18-24,.pure-u-xxxl-19-24,.pure-u-xxxl-2-24,.pure-u-xxxl-2-3,.pure-u-xxxl-2-5,.pure-u-xxxl-20-24,.pure-u-xxxl-21-24,.pure-u-xxxl-22-24,.pure-u-xxxl-23-24,.pure-u-xxxl-24-24,.pure-u-xxxl-3-24,.pure-u-xxxl-3-4,.pure-u-xxxl-3-5,.pure-u-xxxl-3-8,.pure-u-xxxl-4-24,.pure-u-xxxl-4-5,.pure-u-xxxl-5-12,.pure-u-xxxl-5-24,.pure-u-xxxl-5-5,.pure-u-xxxl-5-6,.pure-u-xxxl-5-8,.pure-u-xxxl-6-24,.pure-u-xxxl-7-12,.pure-u-xxxl-7-24,.pure-u-xxxl-7-8,.pure-u-xxxl-8-24,.pure-u-xxxl-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-xxxl-1-24{width:4.1667%}.pure-u-xxxl-1-12,.pure-u-xxxl-2-24{width:8.3333%}.pure-u-xxxl-1-8,.pure-u-xxxl-3-24{width:12.5%}.pure-u-xxxl-1-6,.pure-u-xxxl-4-24{width:16.6667%}.pure-u-xxxl-1-5{width:20%}.pure-u-xxxl-5-24{width:20.8333%}.pure-u-xxxl-1-4,.pure-u-xxxl-6-24{width:25%}.pure-u-xxxl-7-24{width:29.1667%}.pure-u-xxxl-1-3,.pure-u-xxxl-8-24{width:33.3333%}.pure-u-xxxl-3-8,.pure-u-xxxl-9-24{width:37.5%}.pure-u-xxxl-2-5{width:40%}.pure-u-xxxl-10-24,.pure-u-xxxl-5-12{width:41.6667%}.pure-u-xxxl-11-24{width:45.8333%}.pure-u-xxxl-1-2,.pure-u-xxxl-12-24{width:50%}.pure-u-xxxl-13-24{width:54.1667%}.pure-u-xxxl-14-24,.pure-u-xxxl-7-12{width:58.3333%}.pure-u-xxxl-3-5{width:60%}.pure-u-xxxl-15-24,.pure-u-xxxl-5-8{width:62.5%}.pure-u-xxxl-16-24,.pure-u-xxxl-2-3{width:66.6667%}.pure-u-xxxl-17-24{width:70.8333%}.pure-u-xxxl-18-24,.pure-u-xxxl-3-4{width:75%}.pure-u-xxxl-19-24{width:79.1667%}.pure-u-xxxl-4-5{width:80%}.pure-u-xxxl-20-24,.pure-u-xxxl-5-6{width:83.3333%}.pure-u-xxxl-21-24,.pure-u-xxxl-7-8{width:87.5%}.pure-u-xxxl-11-12,.pure-u-xxxl-22-24{width:91.6667%}.pure-u-xxxl-23-24{width:95.8333%}.pure-u-xxxl-1,.pure-u-xxxl-1-1,.pure-u-xxxl-24-24,.pure-u-xxxl-5-5{width:100%}}@media screen and (min-width:240em){.pure-u-x4k-1,.pure-u-x4k-1-1,.pure-u-x4k-1-12,.pure-u-x4k-1-2,.pure-u-x4k-1-24,.pure-u-x4k-1-3,.pure-u-x4k-1-4,.pure-u-x4k-1-5,.pure-u-x4k-1-6,.pure-u-x4k-1-8,.pure-u-x4k-10-24,.pure-u-x4k-11-12,.pure-u-x4k-11-24,.pure-u-x4k-12-24,.pure-u-x4k-13-24,.pure-u-x4k-14-24,.pure-u-x4k-15-24,.pure-u-x4k-16-24,.pure-u-x4k-17-24,.pure-u-x4k-18-24,.pure-u-x4k-19-24,.pure-u-x4k-2-24,.pure-u-x4k-2-3,.pure-u-x4k-2-5,.pure-u-x4k-20-24,.pure-u-x4k-21-24,.pure-u-x4k-22-24,.pure-u-x4k-23-24,.pure-u-x4k-24-24,.pure-u-x4k-3-24,.pure-u-x4k-3-4,.pure-u-x4k-3-5,.pure-u-x4k-3-8,.pure-u-x4k-4-24,.pure-u-x4k-4-5,.pure-u-x4k-5-12,.pure-u-x4k-5-24,.pure-u-x4k-5-5,.pure-u-x4k-5-6,.pure-u-x4k-5-8,.pure-u-x4k-6-24,.pure-u-x4k-7-12,.pure-u-x4k-7-24,.pure-u-x4k-7-8,.pure-u-x4k-8-24,.pure-u-x4k-9-24{display:inline-block;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-x4k-1-24{width:4.1667%}.pure-u-x4k-1-12,.pure-u-x4k-2-24{width:8.3333%}.pure-u-x4k-1-8,.pure-u-x4k-3-24{width:12.5%}.pure-u-x4k-1-6,.pure-u-x4k-4-24{width:16.6667%}.pure-u-x4k-1-5{width:20%}.pure-u-x4k-5-24{width:20.8333%}.pure-u-x4k-1-4,.pure-u-x4k-6-24{width:25%}.pure-u-x4k-7-24{width:29.1667%}.pure-u-x4k-1-3,.pure-u-x4k-8-24{width:33.3333%}.pure-u-x4k-3-8,.pure-u-x4k-9-24{width:37.5%}.pure-u-x4k-2-5{width:40%}.pure-u-x4k-10-24,.pure-u-x4k-5-12{width:41.6667%}.pure-u-x4k-11-24{width:45.8333%}.pure-u-x4k-1-2,.pure-u-x4k-12-24{width:50%}.pure-u-x4k-13-24{width:54.1667%}.pure-u-x4k-14-24,.pure-u-x4k-7-12{width:58.3333%}.pure-u-x4k-3-5{width:60%}.pure-u-x4k-15-24,.pure-u-x4k-5-8{width:62.5%}.pure-u-x4k-16-24,.pure-u-x4k-2-3{width:66.6667%}.pure-u-x4k-17-24{width:70.8333%}.pure-u-x4k-18-24,.pure-u-x4k-3-4{width:75%}.pure-u-x4k-19-24{width:79.1667%}.pure-u-x4k-4-5{width:80%}.pure-u-x4k-20-24,.pure-u-x4k-5-6{width:83.3333%}.pure-u-x4k-21-24,.pure-u-x4k-7-8{width:87.5%}.pure-u-x4k-11-12,.pure-u-x4k-22-24{width:91.6667%}.pure-u-x4k-23-24{width:95.8333%}.pure-u-x4k-1,.pure-u-x4k-1-1,.pure-u-x4k-24-24,.pure-u-x4k-5-5{width:100%}}",""]);const o=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},5176:e=>{var t;self,t=()=>(()=>{var e={4593:(e,t)=>{var n,r,i,o,l,u={};n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=function(e){for(var t=0,r=[],i=0|e.length/3;0>18)),r.push(n.charAt(63&o>>12)),r.push(n.charAt(63&o>>6)),r.push(n.charAt(63&o))}return 2==e.length-t?(o=(e[t]<<16)+(e[t+1]<<8),r.push(n.charAt(63&o>>18)),r.push(n.charAt(63&o>>12)),r.push(n.charAt(63&o>>6)),r.push("=")):1==e.length-t&&(o=e[t]<<16,r.push(n.charAt(63&o>>18)),r.push(n.charAt(63&o>>12)),r.push("==")),r.join("")},i=function(){for(var e=[],t=0;t<64;++t)e[n.charCodeAt(t)]=t;return e["=".charCodeAt(0)]=0,e}(),o=function(e){for(var t=0,n=[],r=0|e.length/4;0>16),n.push(255&o>>8),n.push(255&o),t+=4}return n&&("="==e.charAt(t-2)?(n.pop(),n.pop()):"="==e.charAt(t-1)&&n.pop()),n},l={encode:function(e){for(var t=[],n=0;n>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t}(e);return r(t)},u.decode=function(e){return function(e){for(var t=[],n=0;n{!function(e){"use strict";var t={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},n=function(e){var n=e;return t.hasOwnProperty(e)&&(n=t[e]),String.fromCharCode(n)},r=15,i=32,o={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},a={17:2,18:4,21:6,22:8,23:10,19:13,20:15},s={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},l={25:2,26:4,29:6,30:8,31:10,27:13,28:15},u=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],c={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}},d=function(e){for(var t=[],n=0;ni&&(c.log("ERROR","Too large cursor position "+this.pos),this.pos=i)},moveCursor:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n=144&&this.backSpace();var t=n(e);this.pos>=i?c.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};var g=function(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new m,this.nonDisplayedMemory=new m,this.lastOutputScreen=new m,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};g.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,c.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}c.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=c.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};var y=function(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new g(1,t),new g(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};y.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,i,o=!1;this.lastTime=e,c.setTime(e);for(var a=0;a=16&&r<=31&&r===this.lastCmdA&&i===this.lastCmdB?(this.lastCmdA=null,this.lastCmdB=null,c.log("DEBUG","Repeated command ("+d([r,i])+") is dropped")):0!==r||0!==i?(c.log("DATA","["+d([t[a],t[a+1]])+"] -> ("+d([r,i])+")"),(n=this.parseCmd(r,i))||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),n||(o=this.parseChars(r,i))&&(this.currChNr&&this.currChNr>=0?this.channels[this.currChNr-1].insertChars(o):c.log("WARNING","No channel found yet. TEXT-MODE?")),n?this.dataCounters.cmd+=2:o?this.dataCounters.char+=2:(this.dataCounters.other+=2,c.log("WARNING","Couldn't parse cleaned data "+d([r,i])+" orig: "+d([t[a],t[a+1]])))):this.dataCounters.padding+=2},parseCmd:function(e,t){var n;if(!((20===e||21===e||28===e||29===e)&&32<=t&&t<=47||(23===e||31===e)&&33<=t&&t<=35))return!1;n=20===e||21===e||23===e?1:2;var r=this.channels[n-1];return 20===e||21===e||28===e||29===e?32===t?r.cc_RCL():33===t?r.cc_BS():34===t?r.cc_AOF():35===t?r.cc_AON():36===t?r.cc_DER():37===t?r.cc_RU(2):38===t?r.cc_RU(3):39===t?r.cc_RU(4):40===t?r.cc_FON():41===t?r.cc_RDC():42===t?r.cc_TR():43===t?r.cc_RTD():44===t?r.cc_EDM():45===t?r.cc_CR():46===t?r.cc_ENM():47===t&&r.cc_EOC():r.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if((n=17===e?1:2)!==this.currChNr)return c.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(t),c.log("DEBUG","MIDROW ("+d([e,t])+")"),this.lastCmdA=e,this.lastCmdB=t,!0}return!1},parsePAC:function(e,t){var n,r;if(!((17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127||(16===e||24===e)&&64<=t&&t<=95))return!1;n=e<=23?1:2,r=64<=t&&t<=95?1===n?o[e]:s[e]:1===n?a[e]:l[e];var i=this.interpretPAC(r,t);return this.channels[n-1].setPAC(i),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var r,i=null,o=null,a=null;if(e>=25?(i=2,a=e-8):(i=1,a=e),17<=a&&a<=19?(r=17===a?t+80:18===a?t+112:t+144,c.log("INFO","Special char '"+n(r)+"' in channel "+i),o=[r],this.lastCmdA=e,this.lastCmdB=t):32<=e&&e<=127&&(o=0===t?[e]:[e,t],this.lastCmdA=null,this.lastCmdB=null),o){var s=d(o);c.log("DEBUG","Char codes = "+s.join(","))}return o},parseBackgroundAttributes:function(e,t){var n,r,i;return((16===e||24===e)&&32<=t&&t<=47||(23===e||31===e)&&45<=t&&t<=47)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=u[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,this.channels[i-1].setBkgData(n),this.lastCmdA=e,this.lastCmdB=t,!0)},reset:function(){for(var e=0;e{"use strict";var r=n(7688),i=n(5448),o=n(6398),a=n(2032),s=(n(5530),"undefined"!=typeof window&&window||n.g),l=s.dashjs;l||(l=s.dashjs={}),l.MediaPlayer=r.Z,l.FactoryMaker=i.Z,l.Debug=o.Z,l.Version=(0,a.e)()},6398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(5595),i=n(8512),o=n(5448),a=1,s=2,l=3,u=4,c=5;function d(e){e=e||{};var t,n,o,d,h=this.context,p=(0,r.Z)(h).getInstance(),f=e.settings,m=[];function g(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function y(){for(var e=arguments.length,t=new Array(e),n=0;n0&&(r+=" ");for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u=e&&m[e](r),f&&f.get().debug.dispatchEvent&&p.trigger(i.Z.LOG,{message:r,level:e})}return t={getLogger:function(e){return{fatal:y.bind(e),error:v.bind(e),warn:b.bind(e),info:_.bind(e),debug:E.bind(e)}},setLogTimestampVisible:function(e){n=e},setCalleeNameVisible:function(e){o=e}},n=!0,o=!0,d=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(m[a]=g(window.console.error),m[s]=g(window.console.error),m[l]=g(window.console.warn),m[u]=g(window.console.info),m[c]=g(window.console.debug)),t}d.__dashjs_factory_name="Debug";var h=o.Z.getSingletonFactory(d);h.LOG_LEVEL_NONE=0,h.LOG_LEVEL_FATAL=a,h.LOG_LEVEL_ERROR=s,h.LOG_LEVEL_WARNING=l,h.LOG_LEVEL_INFO=u,h.LOG_LEVEL_DEBUG=c,o.Z.updateSingletonFactory(d.__dashjs_factory_name,h);const p=h},5595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i=n(8825);function o(){var e={};function t(t,n,r){var i=-1;return e[t]?(e[t].some((function(e,t){if(e&&e.callback===n&&(!r||r===e.scope))return i=t,!0})),i):i}var n={on:function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n)throw new Error("event type cannot be null or undefined");if(!r||"function"!=typeof r)throw new Error("listener must be a function: "+r);var a=o.priority||0;if(!(t(n,r,i)>=0)){e[n]=e[n]||[];var s={callback:r,scope:i,priority:a};i&&i.getStreamId&&(s.streamId=i.getStreamId()),i&&i.getType&&(s.mediaType=i.getType()),o&&o.mode&&(s.mode=o.mode);var l=e[n].some((function(t,r){if(t&&a>t.priority)return e[n].splice(r,0,s),!0}));l||e[n].push(s)}},off:function(n,r,i){if(n&&r&&e[n]){var o=t(n,r,i);o<0||(e[n][o]=null)}},trigger:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&e[t]){if((n=n||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");n.type=t,r.streamId&&(n.streamId=r.streamId),r.mediaType&&(n.mediaType=r.mediaType),e[t].filter((function(e){return!(!e||r.streamId&&e.streamId&&e.streamId!==r.streamId||r.mediaType&&e.mediaType&&e.mediaType!==r.mediaType||r.mode&&e.mode&&e.mode!==r.mode||!e.mode&&r.mode&&r.mode===i.Z.EVENT_MODE_ON_RECEIVE)})).forEach((function(e){return e&&e.callback.call(e.scope,n)}))}},reset:function(){e={}}};return n}o.__dashjs_factory_name="EventBus";var a=r.Z.getSingletonFactory(o);a.EVENT_PRIORITY_LOW=0,a.EVENT_PRIORITY_HIGH=5e3,r.Z.updateSingletonFactory(o.__dashjs_factory_name,a);const s=a},5448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){var e,t=[],n={},r={};function i(e,n){for(var r in t){var i=t[r];if(i.context===e&&i.name===n)return i.instance}return null}function o(e,t){return t[e]}function a(e,t,n){e in n&&(n[e]=t)}function s(t,n,r){var i,o=t.__dashjs_factory_name,a=n[o];if(a){var s=a.instance;if(!a.override)return s.apply({context:n,factory:e},r);for(var l in i=t.apply({context:n},r),s=s.apply({context:n,factory:e,parent:i},r))i.hasOwnProperty(l)&&(i[l]=s[l])}else i=t.apply({context:n},r);return i.getClassName=function(){return o},i}return e={extend:function(e,t,n,r){!r[e]&&t&&(r[e]={instance:t,override:n})},getSingletonInstance:i,setSingletonInstance:function(e,n,r){for(var i in t){var o=t[i];if(o.context===e&&o.name===n)return void(t[i].instance=r)}t.push({name:n,context:e,instance:r})},deleteSingletonInstances:function(e){t=t.filter((function(t){return t.context!==e}))},getSingletonFactory:function(e){var r=o(e.__dashjs_factory_name,n);return r||(r=function(n){var r;return void 0===n&&(n={}),{getInstance:function(){return r||(r=i(n,e.__dashjs_factory_name)),r||(r=s(e,n,arguments),t.push({name:e.__dashjs_factory_name,context:n,instance:r})),r}}},n[e.__dashjs_factory_name]=r),r},getSingletonFactoryByName:function(e){return o(e,n)},updateSingletonFactory:function(e,t){a(e,t,n)},getClassFactory:function(e){var t=o(e.__dashjs_factory_name,r);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return s(e,t,arguments)}}},r[e.__dashjs_factory_name]=t),t},getClassFactoryByName:function(e){return o(e,r)},updateClassFactory:function(e,t){a(e,t,r)}},e}()},1264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(5448),i=n(703),o=n(6398),a=n(3393),s=n(7855),l=n(5595),u=n(8512);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){var e,t,n=this.context,r=(0,l.Z)(n).getInstance(),h={"streaming.delay.liveDelay":u.Z.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":u.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":u.Z.SETTING_UPDATED_CATCHUP_ENABLED,"streaming.liveCatchup.playbackRate.min":u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,"streaming.liveCatchup.playbackRate.max":u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX},p={debug:{logLevel:o.Z.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,eventControllerRefreshDelay:100,enableManifestDurationMismatchFix:!0,parseInbandPrft:!1,enableManifestTimescaleMismatchFix:!1,capabilities:{filterUnsupportedEssentialProperties:!0,useMediaCapabilitiesApi:!1},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:!0,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,stableBufferTime:12,longFormContentDurationThreshold:600,stallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1,useChangeTypeForTrackSwitch:!0},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroundSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"}},scheduling:{defaultTimeout:500,lowLatencyTimeout:0,scheduleWhilePaused:!0},text:{defaultEnabled:!0,extendSegmentedCues:!0,webvtt:{customRenderingEnabled:!1}},liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN},playbackBufferMin:.5,enabled:null,mode:a.Z.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},cacheLoadThresholds:{video:50,audio:5},trackSwitchMode:{audio:a.Z.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:a.Z.TRACK_SWITCH_MODE_NEVER_REPLACE},selectionModeForInitialTrack:a.Z.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,fragmentRequestTimeout:2e4,fragmentRequestProgressTimeout:-1,manifestRequestTimeout:1e4,retryIntervals:(e={},d(e,s.w.MPD_TYPE,500),d(e,s.w.XLINK_EXPANSION_TYPE,500),d(e,s.w.MEDIA_SEGMENT_TYPE,1e3),d(e,s.w.INIT_SEGMENT_TYPE,1e3),d(e,s.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),d(e,s.w.INDEX_SEGMENT_TYPE,1e3),d(e,s.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE,1e3),d(e,s.w.LICENSE,1e3),d(e,s.w.OTHER_TYPE,1e3),d(e,"lowLatencyReductionFactor",10),e),retryAttempts:(t={},d(t,s.w.MPD_TYPE,3),d(t,s.w.XLINK_EXPANSION_TYPE,1),d(t,s.w.MEDIA_SEGMENT_TYPE,3),d(t,s.w.INIT_SEGMENT_TYPE,3),d(t,s.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),d(t,s.w.INDEX_SEGMENT_TYPE,3),d(t,s.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE,3),d(t,s.w.LICENSE,3),d(t,s.w.OTHER_TYPE,3),d(t,"lowLatencyMultiplyFactor",5),t),abr:{movingAverageMethod:a.Z.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:a.Z.ABR_STRATEGY_DYNAMIC,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0},fetchThroughputCalculationMode:a.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING},cmcd:{enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:a.Z.CMCD_MODE_QUERY,enabledKeys:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"]},cmsd:{enabled:!1,abr:{applyMb:!1,etpWeightRatio:0}}},errors:{recoverAttempts:{mediaErrorDecode:5}}},f=i.Z.clone(p);function m(e,t,n){for(var o in e)e.hasOwnProperty(o)&&(t.hasOwnProperty(o)?"object"!==c(e[o])||e[o]instanceof Array||null===e[o]?(t[o]=i.Z.clone(e[o]),h[n+o]&&r.trigger(h[n+o])):m(e[o],t[o],n.slice()+o+"."):console.error("Settings parameter "+n+o+" is not supported"))}return{get:function(){return f},update:function(e){"object"===c(e)&&m(e,f,"")},reset:function(){f=i.Z.clone(p)}}}h.__dashjs_factory_name="Settings";const p=r.Z.getSingletonFactory(h)},703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(3875),i=n.n(r),o=n(1067);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}const s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"mixin",value:function(t,n,r){var i,o={};if(t)for(var s in n)n.hasOwnProperty(s)&&(i=n[s],s in t&&(t[s]===i||s in o&&o[s]===i)||("object"===a(t[s])&&null!==t[s]?t[s]=e.mixin(t[s],i,r):t[s]=r(i)));return t}},{key:"clone",value:function(t){if(!t||"object"!==a(t))return t;var n;if(t instanceof Array){n=[];for(var r=0,i=t.length;r0&&(t[o.substring(0,a)]=o.substring(a+2))}return t}},{key:"generateUuid",value:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))}},{key:"generateHashCode",value:function(e){var t=0;if(0===e.length)return t;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;try{var t=null===e&&"undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";return(0,o.UAParser)(t)}catch(e){return{}}}},{key:"stringHasProtocol",value:function(e){return/(http(s?)):\/\//i.test(e)}}],t&&function(e,t){for(var n=0;n{"use strict";function r(){return"4.7.1"}n.d(t,{e:()=>r})},2230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}])&&function(e,t){for(var n=0;n{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n.d(t,{Z:()=>s});const s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,e);var t,n,r=(t=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=a(t);if(n){var i=a(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=r.call(this)).ATTEMPT_BACKGROUND_SYNC="attemptBackgroundSync",e.BUFFERING_COMPLETED="bufferingCompleted",e.BUFFER_CLEARED="bufferCleared",e.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",e.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",e.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",e.CMSD_STATIC_HEADER="cmsdStaticHeader",e.CURRENT_TRACK_CHANGED="currentTrackChanged",e.DATA_UPDATE_COMPLETED="dataUpdateCompleted",e.INBAND_EVENTS="inbandEvents",e.INITIAL_STREAM_SWITCH="initialStreamSwitch",e.INIT_FRAGMENT_LOADED="initFragmentLoaded",e.INIT_FRAGMENT_NEEDED="initFragmentNeeded",e.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",e.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",e.LOADING_COMPLETED="loadingCompleted",e.LOADING_PROGRESS="loadingProgress",e.LOADING_DATA_PROGRESS="loadingDataProgress",e.LOADING_ABANDONED="loadingAborted",e.MANIFEST_UPDATED="manifestUpdated",e.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",e.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",e.QUOTA_EXCEEDED="quotaExceeded",e.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",e.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",e.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD="serviceLocationBlacklistAdd",e.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",e.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD="serviceLocationLocationBlacklistAdd",e.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED="serviceLocationLocationBlacklistChanged",e.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",e.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",e.SOURCE_BUFFER_ERROR="sourceBufferError",e.STREAMS_COMPOSED="streamsComposed",e.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",e.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",e.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",e.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",e.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",e.URL_RESOLUTION_FAILED="urlResolutionFailed",e.VIDEO_CHUNK_RECEIVED="videoChunkReceived",e.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",e.XLINK_ELEMENT_LOADED="xlinkElementLoaded",e.XLINK_READY="xlinkReady",e.SEEK_TARGET="seekTarget",e.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",e.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",e.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",e.SETTING_UPDATED_PLAYBACK_RATE_MIN="settingUpdatedPlaybackRateMin",e.SETTING_UPDATED_PLAYBACK_RATE_MAX="settingUpdatedPlaybackRateMax",e}return s}(n(8342).Z)},8512:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n.d(t,{Z:()=>s});const s=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,e);var t,n,r=(t=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=a(t);if(n){var i=a(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.apply(this,arguments)}return s}(n(4351).Z))},8342:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}])&&function(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>c});var r=n(3186),i=n(7855),o=n(5448),a=n(8825),s=n(7387),l=n(1553);function u(e){var t,n,o,u,c,d=(e=e||{}).eventBus,h=e.debug,p=e.urlUtils,f=e.type,m=e.streamInfo,g=e.segmentsController,y=e.timelineConverter,v=e.baseURLController;function b(){return f}function _(){o=null}function E(e,t,n){var r,i,o=v.resolve(n.path),a={};return o&&t!==o.url&&p.isRelative(t)?(r=o.url,i=o.serviceLocation,a=o.queryParams,t&&(r=p.resolve(t,r))):r=t,!p.isRelative(r)&&(e.url=r,e.serviceLocation=i,e.queryParams=a,!0)}function w(e,t){if(null==t)return null;var n=new r.Z,o=t.representation,a=o.adaptation.period.mpd.manifest.Period_asArray[o.adaptation.period.index].AdaptationSet_asArray[o.adaptation.index].Representation_asArray[o.index].bandwidth,l=t.media;return l=(0,s.vi)(l,"Number",t.replacementNumber),l=(0,s.vi)(l,"Time",t.replacementTime),l=(0,s.vi)(l,"Bandwidth",a),l=(0,s.Aj)(l,o.id),l=(0,s.eR)(l),n.mediaType=b(),n.type=i.w.MEDIA_SEGMENT_TYPE,n.range=t.mediaRange,n.startTime=t.presentationStartTime,n.mediaStartTime=t.mediaStartTime,n.duration=t.duration,n.timescale=o.timescale,n.availabilityStartTime=t.availabilityStartTime,n.availabilityEndTime=t.availabilityEndTime,n.availabilityTimeComplete=o.availabilityTimeComplete,n.wallStartTime=t.wallStartTime,n.quality=o.index,n.index=t.index,n.mediaInfo=e,n.adaptationIndex=o.adaptation.index,n.representationId=o.id,E(n,l,o)?n:void 0}function T(e,t,r){var i=null;if(!t||!t.segmentInfoType)return i;var a=g.getSegmentByTime(t,r);return a&&(o=a,n.debug("Index for time "+r+" is "+a.index),i=w(e,a)),i}function A(){n.debug("Dynamic stream complete"),c=!0}return t={initialize:function(e){u=e,c=!1,g.initialize(e)},getStreamId:function(){return m.id},getType:b,getStreamInfo:function(){return m},getInitRequest:function(e,t){return t?function(e,t,n){var o=new r.Z,a=t.adaptation.period,l=a.start;if(o.mediaType=n,o.type=i.w.INIT_SEGMENT_TYPE,o.range=t.range,o.availabilityStartTime=y.calcAvailabilityStartTimeFromPresentationTime(l,t,u),o.availabilityEndTime=y.calcAvailabilityEndTimeFromPresentationTime(l+a.duration,t,u),o.quality=t.index,o.mediaInfo=e,o.representationId=t.id,E(o,t.initialization,t))return o.url=(0,s.vi)(o.url,"Bandwidth",t.bandwidth),o}(e,t,b()):null},getSegmentRequestForTime:T,getCurrentIndex:function(){return o?o.index:-1},getNextSegmentRequest:function(e,t){var r=null;if(!t||!t.segmentInfoType)return null;var i=o?o.index+1:0,a=g.getSegmentByIndex(t,i,o?o.mediaStartTime:-1);if(a)r=w(e,a),o=a;else{if(u&&!c)return n.debug(b()+" No segment found at index: "+i+". Wait for next loop"),null;c=!0}return r},isLastSegmentRequested:function(e,t){if(!e||!o)return!1;if(c)return!0;if(!isFinite(e.adaptation.period.duration))return!1;if(o.presentationStartTime+o.duration>t)return!1;if(e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.numberOfSegments)&&!isNaN(o.index)&&o.index>=e.mediaFinishedInformation.numberOfSegments-1){if(!u||e.segmentInfoType===l.Z.SEGMENT_TEMPLATE)return!0;if(u&&e.segmentInfoType===l.Z.SEGMENT_LIST&&e.adaptation.period.nextPeriodId)return!0}return!!(u&&e.adaptation.period.nextPeriodId&&e.segmentInfoType===l.Z.SEGMENT_TIMELINE&&e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&o&&!isNaN(o.mediaStartTime)&&!isNaN(o.duration)&&o.mediaStartTime+o.duration>=e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},reset:function(){_(),d.off(a.Z.DYNAMIC_TO_STATIC,A,t)},getNextSegmentRequestIdempotent:function(e,t){var n=o?o.index+1:0,r=g.getSegmentByIndex(t,n,o?o.mediaStartTime:-1);return r?w(e,r):null},getValidTimeAheadOfTargetTime:function(e,t,n,r){try{if(isNaN(e)||!t||!n)return NaN;if(e<0&&(e=0),isNaN(r)&&(r=.5),T(t,n,e))return e;if(n.adaptation.period.start+n.adaptation.period.durations.startTime&&u-e>r?e:!isNaN(s.startTime)&&es.startTime?s.startTime+.001:Math.min(u-r,a)}return a}catch(e){return NaN}}},n=h.getLogger(t),_(),d.on(a.Z.DYNAMIC_TO_STATIC,A,t),t}u.__dashjs_factory_name="DashHandler";const c=o.Z.getClassFactory(u)},1553:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.SUPPLEMENTAL_PROPERTY_ASARRAY="SupplementalProperty_asArray",this.INBAND_EVENT_STREAM="InbandEventStream",this.PRODUCER_REFERENCE_TIME="ProducerReferenceTime",this.INBAND="inband",this.TYPE="type",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.VIEWPOINT_ASARRAY="Viewpoint_asArray",this.ROLE_ASARRAY="Role_asArray",this.REPRESENTATION_ASARRAY="Representation_asArray",this.PRODUCERREFERENCETIME_ASARRAY="ProducerReferenceTime_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.STATIC="static",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SERVICE_DESCRIPTION="ServiceDescription",this.SERVICE_DESCRIPTION_SCOPE="Scope",this.SERVICE_DESCRIPTION_LATENCY="Latency",this.SERVICE_DESCRIPTION_PLAYBACK_RATE="PlaybackRate",this.SERVICE_DESCRIPTION_OPERATING_QUALITY="OperatingQuality",this.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH="OperatingBandwidth",this.PATCH_LOCATION="PatchLocation",this.PATCH_LOCATION_AS_ARRAY="PatchLocation_asArray",this.LOCATION="Location",this.LOCATION_AS_ARRAY="Location_asArray",this.PUBLISH_TIME="publishTime",this.ORIGINAL_PUBLISH_TIME="originalPublishTime",this.ORIGINAL_MPD_ID="mpdId",this.WALL_CLOCK_TIME="wallClockTime",this.PRESENTATION_TIME="presentationTime",this.LABEL="Label",this.GROUP_LABEL="GroupLabel",this.CONTENT_STEERING="ContentSteering",this.CONTENT_STEERING_AS_ARRAY="ContentSteering_asArray",this.DEFAULT_SERVICE_LOCATION="defaultServiceLocation",this.QUERY_BEFORE_START="queryBeforeStart",this.CLIENT_REQUIREMENT="clientRequirement",this.TTL="ttl",this.CONTENT_STEERING_RESPONSE={VERSION:"VERSION",TTL:"TTL",RELOAD_URI:"RELOAD-URI",PATHWAY_PRIORITY:"PATHWAY-PRIORITY",PATHWAY_CLONES:"PATHWAY-CLONES",BASE_ID:"BASE-ID",ID:"ID",URI_REPLACEMENT:"URI-REPLACEMENT",HOST:"HOST",PARAMS:"PARAMS"},this.PRODUCER_REFERENCE_TIME_TYPE={ENCODER:"encoder",CAPTURED:"captured",APPLICATION:"application"},this.SEGMENT_ALIGNMENT="segmentAlignment",this.SUB_SEGMENT_ALIGNMENT="subsegmentAlignment"}}])&&function(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>u});var r=n(5448),i=n(1724),o=n(3636),a=n(1736),s=n(5246);function l(e){e=e||{};var t,n,r=this.context,l=e.dashConstants,u=e.type,c=e.segmentBaseController;function d(e){return e?e.segments?n[l.SEGMENT_BASE]:n[e.segmentInfoType]:null}return t={initialize:function(t){n[l.SEGMENT_TIMELINE]=(0,i.Z)(r).create(e,t),n[l.SEGMENT_TEMPLATE]=(0,o.Z)(r).create(e,t),n[l.SEGMENT_LIST]=(0,a.Z)(r).create(e,t),n[l.SEGMENT_BASE]=(0,s.Z)(r).create(e,t)},updateInitData:function(e,t){return t?Promise.resolve():c.getSegmentBaseInitSegment({representation:e,mediaType:u})},updateSegmentData:function(e,t){return t?Promise.resolve():c.getSegmentList({mimeType:e.mimeType,representation:e,mediaType:u})},getSegmentByIndex:function(e,t,n){var r=d(e);return r?r.getSegmentByIndex(e,t,n):null},getSegmentByTime:function(e,t){var n=d(e);return n?n.getSegmentByTime(e,t):null},getMediaFinishedInformation:function(e){var t=d(e);return t?t.getMediaFinishedInformation(e):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},n={},t}l.__dashjs_factory_name="SegmentsController";const u=r.Z.getClassFactory(l)},1736:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i=n(3393),o=n(7387);function a(e,t){var n=(e=e||{}).timelineConverter;function r(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(i.Z.MISSING_CONFIG_ERROR)}function a(e,i){if(r(),!e)return null;var a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,s=a.SegmentURL_asArray.length,l=e&&!isNaN(e.startNumber)?e.startNumber:1,u=Math.max(l-1,0),c=Math.max(i-u,0),d=null;if(c{"use strict";n.d(t,{Z:()=>a});var r=n(5448),i=n(3393);function o(e){var t=(e=e||{}).timelineConverter;function n(){if(!t||!t.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(i.Z.MISSING_CONFIG_ERROR)}function r(e,t){if(n(),!e)return null;var r,i=e.segments?e.segments.length:-1;if(t0)for(a=0;a=i&&t-n{"use strict";n.d(t,{Aj:()=>a,NF:()=>c,TJ:()=>d,eR:()=>o,vi:()=>s});var r=n(2011);function i(e,t){for(;e.lengthr&&a=o)}return!0}function c(e,t,n,r){var i,o,a;i=n.segmentDuration,isNaN(i)&&(i=n.adaptation.period.duration),o=parseFloat((n.adaptation.period.start+r*i).toFixed(5)),a=parseFloat((o+i).toFixed(5));var s=l(n,i,o,e.calcMediaTimeFromPresentationTime(o,n),e,a,t,r);return u(e,n,s,t)?s:null}function d(e,t,n,r,i,o,a,c,d,h){var p,f,m=r/o,g=i/o;return p=e.calcPresentationTimeFromMediaTime(m,n),u(e,n,f=l(n,g,p,m,e,p+g,t,d),t)?(f.replacementTime=h||r,a=s(a,"Number",f.replacementNumber),a=s(a,"Time",f.replacementTime),f.media=a,f.mediaRange=c,f):null}},3636:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i=n(3393),o=n(7387);function a(e,t){var n=(e=e||{}).timelineConverter;function r(){if(!n||!n.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(i.Z.MISSING_CONFIG_ERROR)}function a(e,i){if(r(),!e)return null;var a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate;i=Math.max(i,0);var s=(0,o.NF)(n,t,e,i);if(s){s.replacementTime=Math.round((i-1)*e.segmentDuration*e.timescale,10);var l=a.media;l=(0,o.vi)(l,"Number",s.replacementNumber),l=(0,o.vi)(l,"Time",s.replacementTime),s.media=l}return s}return{getSegmentByIndex:a,getSegmentByTime:function(e,t){if(r(),!e)return null;var i=e.segmentDuration;if(isNaN(i))return null;var o=n.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return a(e,Math.floor(o/i))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var n=e.segmentDuration;return isNaN(n)?t.numberOfSegments=1:t.numberOfSegments=Math.ceil(e.adaptation.period.duration/n),t}}}a.__dashjs_factory_name="TemplateSegmentsGetter";const s=r.Z.getClassFactory(a)},1724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i=n(3393),o=n(7387);function a(e,t){var n=(e=e||{}).timelineConverter,r=e.dashMetrics;function a(){if(!n)throw new Error(i.Z.MISSING_CONFIG_ERROR)}function s(e,t){var n,r,i,o,a,s,u,c=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,d=c.SegmentTimeline,h=c.SegmentURL_asArray,p=0,f=-1;u=e.timescale;var m=!1;for(i=0,o=(n=d.S_asArray).length;i=i*d-.5*c.d&&(u=!0),!1})),l},getSegmentByTime:function(e,r){if(a(),!e)return null;void 0===r&&(r=null);var i=null,l=n.calcMediaTimeFromPresentationTime(r,e);return s(e,(function(r,a,s,u,c,d,h){var p=parseFloat((l*c).toPrecision(15));if(p=r){var f=a.media,m=u.mediaRange;return s&&(f=s[h].media||"",m=s[h].mediaRange),i=(0,o.TJ)(n,t,e,r,u.d,c,f,m,d,u.tManifest),!0}return!1})),i},getMediaFinishedInformation:function(e){if(!e)return 0;var t,n,r,i,o,a,s,u=(e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList).SegmentTimeline,c=0,d=0,h=0;for(s=e.timescale,i=(t=u.S_asArray).length,r=0;r{"use strict";n.d(t,{Z:()=>r});const r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.wallStartTime=NaN,this.representation=null}},2610:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value=""}},7688:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ao});var r=n(452),i=n.n(r),o=n(3393),a=n(1553),s=n(3860),l=n(5595),u=n(8512),c=n(5448),d=n(6398),h=n(8825);function p(){var e,t,n,r,i,a,c,p,f,m,g,y,v,b,_,E,w,T,A,S,x,I,R,C,M=this.context,L=(0,l.Z)(M).getInstance();function P(){k(),b=!1,m=0,g=0,E=0,I=!1,w=!0,T=!1,R=!1,A=NaN,c&&(L.off(u.Z.DATA_UPDATE_COMPLETED,X,e),L.off(u.Z.LOADING_PROGRESS,ge,e),L.off(u.Z.MANIFEST_UPDATED,_e,e),L.off(u.Z.STREAMS_COMPOSED,Ee,e),L.off(h.Z.PLAYBACK_ENDED,fe,e),L.off(h.Z.STREAM_INITIALIZING,ve,e),L.off(h.Z.REPRESENTATION_SWITCH,be,e),L.off(h.Z.BUFFER_LEVEL_STATE_CHANGED,ee,e),$(),c.removeEventListener("canplay",Q),c.removeEventListener("canplaythrough",J),c.removeEventListener("play",te),c.removeEventListener("waiting",ne),c.removeEventListener("playing",re),c.removeEventListener("pause",ie),c.removeEventListener("error",me),c.removeEventListener("seeking",oe),c.removeEventListener("seeked",ae),c.removeEventListener("timeupdate",se),c.removeEventListener("progress",le),c.removeEventListener("ratechange",ue),c.removeEventListener("loadedmetadata",ce),c.removeEventListener("loadeddata",de),c.removeEventListener("stalled",ye),c.removeEventListener("ended",he),c.removeEventListener("volumechange",pe)),f=null,c=null,y=null,v=null}function D(){return parseFloat((O(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)-z()).toFixed(5))}function O(e){var t=e||y;return t.start+t.duration}function N(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];y&&c&&c.getElement()?(e&&v&&U(z()),c.play()):b=!0}function k(){y&&c&&c.pause()}function F(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];y&&c&&c.getElement()&&e!==(isNaN(A)?c.getTime():A)&&((S=!0===r)||(A=e),t.info("Requesting seek to time: "+e+(S?" (internal)":"")),v&&i&&U(e),c.setCurrentTime(e,n))}function B(){if(y&&c&&v){var e=n&&n.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO,t=i.getCurrentDVRInfo(e);return t&&t.range?t.range.end:0}}function U(e){var t=new Date(p.getClientReferenceTime()),n=a.getRegularPeriods()[0],r=p.calcPresentationTimeFromWallTime(t,n);m=r-e}function z(){return y&&c?c.getTime():null}function G(){return y&&c?c.isPaused():null}function V(){return y&&c?c.isSeeking():null}function j(){return y&&c?c.isStalled():null}function H(){return y&&c?c.getPlaybackRate():null}function Z(){return y&&c?c.getEnded():null}function q(){return v}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!G()&&v&&0!==c.getReadyState()&&!V()&&!I){e||(e=n.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO);var r=z(),i=Y(r,e);!isNaN(i)&&i!==r&&!V()&&(j()||x||1===c.getReadyState())&&(t.debug("UpdateCurrentTime: Seek to actual time: ".concat(i," from currentTime: ").concat(r)),F(i,!1,!1))}}function Y(e,t){var n=i.getCurrentDVRInfo(t),r=n?n.range:null;return r?e>r.end?Math.max(r.end-m,r.start):e>0&&e+.25_+500)&&(_=e,se())):W())}),C.get().streaming.wallclockTimeUpdateInterval))}function $(){clearInterval(f),f=null}function X(e){var t=a.convertRepresentationToRepresentationInfo(e.currentRepresentation),n=t?t.mediaInfo.streamInfo:null;null!==n&&y.id===n.id&&(y=n)}function Q(){L.trigger(u.Z.CAN_PLAY)}function J(){L.trigger(u.Z.CAN_PLAY_THROUGH)}function ee(e){e.streamId===n.getActiveStreamInfo().id&&(x=e.state===s.Z.BUFFER_EMPTY,C.get().streaming.buffer.setStallState&&c.setStallState(e.mediaType,e.state===s.Z.BUFFER_EMPTY))}function te(){t.info("Native video element event: play"),W(),K(),L.trigger(u.Z.PLAYBACK_STARTED,{startTime:z()})}function ne(){t.info("Native video element event: waiting"),L.trigger(u.Z.PLAYBACK_WAITING,{playingTime:z()})}function re(){t.info("Native video element event: playing"),S=!1,L.trigger(u.Z.PLAYBACK_PLAYING,{playingTime:z()})}function ie(){t.info("Native video element event: pause"),L.trigger(u.Z.PLAYBACK_PAUSED,{ended:Z()})}function oe(){if(!S){var e=z();isNaN(A)||A===e||(e=A),A=NaN,t.info("Seeking to: "+e),K(),L.trigger(u.Z.PLAYBACK_SEEKING,{seekTime:e,streamId:y.id})}}function ae(){t.info("Native video element event: seeked"),S=!1,L.trigger(u.Z.PLAYBACK_SEEKED)}function se(){y&&L.trigger(u.Z.PLAYBACK_TIME_UPDATED,{timeToEnd:D(),time:z(),streamId:y.id})}function le(){L.trigger(u.Z.PLAYBACK_PROGRESS,{streamId:y.id})}function ue(){var e=H();t.info("Native video element event: ratechange: ",e),L.trigger(u.Z.PLAYBACK_RATE_CHANGED,{playbackRate:e})}function ce(){t.info("Native video element event: loadedmetadata"),L.trigger(u.Z.PLAYBACK_METADATA_LOADED),K()}function de(){t.info("Native video element event: loadeddata"),L.trigger(u.Z.PLAYBACK_LOADED_DATA)}function he(){t.info("Native video element event: ended"),k(),$();var e=n?n.getActiveStreamInfo():null;e&&L.trigger(u.Z.PLAYBACK_ENDED,{isLast:e.isLast})}function pe(){L.trigger(u.Z.PLAYBACK_VOLUME_CHANGED)}function fe(e){if(f&&e.isLast){t.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended");var n=e.seekTime?e.seekTime:O();c.setCurrentTime(n),k(),$()}}function me(e){var t=e.target||e.srcElement;L.trigger(u.Z.PLAYBACK_ERROR,{error:t.error})}function ge(e){if(!1===e.stream&&T&&!isNaN(e.request.duration)){var n=1.2*e.request.duration;n>m&&(t.warn("Browser does not support fetch API with StreamReader. Increasing live delay to be 20% higher than segment duration:",n.toFixed(2)),m=n,g=n)}}function ye(e){L.trigger(u.Z.PLAYBACK_STALLED,{e})}function ve(e){var n;(n=e.mediaInfo)&&n.supplementalProperties&&"true"===n.supplementalProperties[o.Z.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME]&&(t.debug("Low Latency critical SupplementalProperty set: Enabling low Latency"),T=!0)}function be(e){var t=n.getActiveStreamInfo();e&&t&&e.currentRepresentation&&e.streamId&&e.streamId===t.id&&e.mediaType&&(e.mediaType===o.Z.VIDEO||e.mediaType===o.Z.AUDIO)&&(w=e.currentRepresentation.availabilityTimeComplete,(T=!w)&&!R&&(R=!0))}function _e(){I=!0}function Ee(){I=!1}return e={initialize:function(t,n){y=t,!0!==n&&(c.addEventListener("canplay",Q),c.addEventListener("canplaythrough",J),c.addEventListener("play",te),c.addEventListener("waiting",ne),c.addEventListener("playing",re),c.addEventListener("pause",ie),c.addEventListener("error",me),c.addEventListener("seeking",oe),c.addEventListener("seeked",ae),c.addEventListener("timeupdate",se),c.addEventListener("progress",le),c.addEventListener("ratechange",ue),c.addEventListener("loadedmetadata",ce),c.addEventListener("loadeddata",de),c.addEventListener("stalled",ye),c.addEventListener("ended",he),c.addEventListener("volumechange",pe),v=y.manifestInfo.isDynamic,x=!1,S=!1,L.on(u.Z.DATA_UPDATE_COMPLETED,X,e),L.on(u.Z.LOADING_PROGRESS,ge,e),L.on(u.Z.MANIFEST_UPDATED,_e,e),L.on(u.Z.STREAMS_COMPOSED,Ee,e),L.on(h.Z.PLAYBACK_ENDED,fe,e,{priority:l.Z.EVENT_PRIORITY_HIGH}),L.on(h.Z.STREAM_INITIALIZING,ve,e),L.on(h.Z.REPRESENTATION_SWITCH,be,e),L.on(h.Z.BUFFER_LEVEL_STATE_CHANGED,ee,e),b&&(b=!1,N()))},setConfig:function(e){e&&(e.streamController&&(n=e.streamController),e.serviceDescriptionController&&(r=e.serviceDescriptionController),e.dashMetrics&&(i=e.dashMetrics),e.adapter&&(a=e.adapter),e.videoModel&&(c=e.videoModel),e.timelineConverter&&(p=e.timelineConverter),e.settings&&(C=e.settings))},getTimeToStreamEnd:D,getBufferLevel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=null;return n.getActiveStreamProcessors().forEach((function(n){if(!e||0===e.length||-1===e.indexOf(n.getType())){var r=n.getBufferLevel();t=null===t?r:Math.min(t,r)}})),t},getPlaybackStalled:function(){return x},getTime:z,getLowLatencyModeEnabled:function(){return T},getInitialCatchupModeActivated:function(){return R},getIsManifestUpdateInProgress:function(){return I},getPlaybackRate:H,getPlayedRanges:function(){return y&&c?c.getPlayedRanges():null},getEnded:Z,getIsDynamic:q,getStreamController:function(){return n},computeAndSetLiveDelay:function(e,t){var n,i,o,s=!isNaN(e)&&isFinite(e)?e:NaN,l=a.getSuggestedPresentationDelay(),u=r.getServiceDescriptionSettings();return n=isNaN(C.get().streaming.delay.liveDelay)?null===C.get().streaming.delay.liveDelayFragmentCount||isNaN(C.get().streaming.delay.liveDelayFragmentCount)||isNaN(s)?u&&!isNaN(u.liveDelay)&&u.liveDelay>0?u.liveDelay:!0===C.get().streaming.delay.useSuggestedPresentationDelay&&null!==l&&!isNaN(l)&&l>0?l:isNaN(s)?t&&!isNaN(t.minBufferTime)?4*t.minBufferTime:4*y.manifestInfo.minBufferTime:4*s:s*C.get().streaming.delay.liveDelayFragmentCount:C.get().streaming.delay.liveDelay,null!==(o=a.getAvailabilityStartTime())&&(E=o),i=t&&t.dvrWindowSize>0?Math.min(n,t.dvrWindowSize):n,m=i,g=i,i},getLiveDelay:function(){return m},getOriginalLiveDelay:function(){return g},getCurrentLiveLatency:function(){if(!v||isNaN(E))return NaN;var e=z();if(isNaN(e)||0===e)return 0;var t=(new Date).getTime()+1e3*p.getClientTimeOffset();return Math.max(((t-E-1e3*e)/1e3).toFixed(3),0)},play:N,isPaused:G,isStalled:j,pause:k,isSeeking:V,getStreamEndTime:O,seek:F,seekToOriginalLive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=B();0!==r&&F(r-(m=g),e,t,n)},seekToCurrentLive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=B();0!==r&&F(r-m,e,t,n)},reset:P,updateCurrentTime:W,getAvailabilityStartTime:function(){return E}},t=(0,d.Z)(M).getInstance().getLogger(e),P(),e}p.__dashjs_factory_name="PlaybackController";const f=c.Z.getSingletonFactory(p);var m=n(3186),g="loading",y="executed",v="failed";function b(e){var t,n,r,i,o=(e=e||{}).eventBus,a=e.events,s=e.dashMetrics,l=e.fragmentLoader,u=e.debug,c=e.streamInfo,d=e.type;function h(e){var t;return!!e&&(t=!1,r.some((function(n){if(r=e,i=n,!isNaN(r.index)&&r.startTime===i.startTime&&r.adaptationIndex===i.adaptationIndex&&r.type===i.type||function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality}(e,n)||function(e,t){return e.action===m.Z.ACTION_COMPLETE&&e.action===t.action}(e,n))return t=!0;var r,i})),t)}function p(e){return isNaN(e.duration)?.25:Math.min(e.duration/8,.5)}function f(e){r=r.filter((function(t){var n=p(t);return isNaN(t.startTime)||void 0!==e&&t.startTime>=e-n}))}function b(e,t){t<=e+.5||(r=r.filter((function(n){var r=p(n);return isNaN(n.startTime)||n.startTime>=t-r||isNaN(n.duration)||n.startTime+n.duration<=e+r})))}function _(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r],o=i.startTime,a=o+i.duration;if(n=isNaN(n)?p(i):n,!isNaN(o)&&!isNaN(a)&&t+n>=o&&t-n0&&b(n,t)}else f()},abortRequests:function(){n.debug("abort requests"),l.abort(),i=[]},executeRequest:function(e){e.action===m.Z.ACTION_DOWNLOAD?(E(e,g),i.push(e),function(e){o.trigger(a.FRAGMENT_LOADING_STARTED,{request:e},{streamId:c.id,mediaType:d}),l.load(e)}(e)):n.warn("Unknown request action.")},reset:function(){o.off(a.LOADING_COMPLETED,w,this),o.off(a.LOADING_DATA_PROGRESS,T,this),o.off(a.LOADING_ABANDONED,A,this),l&&l.reset(),S()},resetInitialSettings:S,addExecutedRequest:function(e){r.push(e)}},n=u.getLogger(t),S(),o.on(a.LOADING_COMPLETED,w,t),o.on(a.LOADING_DATA_PROGRESS,T,t),o.on(a.LOADING_ABANDONED,A,t),t}b.__dashjs_factory_name="FragmentModel";var _=c.Z.getClassFactory(b);_.FRAGMENT_MODEL_LOADING=g,_.FRAGMENT_MODEL_EXECUTED=y,_.FRAGMENT_MODEL_CANCELED="canceled",_.FRAGMENT_MODEL_FAILED=v,c.Z.updateClassFactory(b.__dashjs_factory_name,_);const E=_;var w=n(5459);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}const x=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=S(t);if(n){var i=S(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=r.call(this)).MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,e.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,e.SEGMENT_BASE_LOADER_ERROR_CODE=15,e.TIME_SYNC_FAILED_ERROR_CODE=16,e.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,e.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,e.APPEND_ERROR_CODE=20,e.REMOVE_ERROR_CODE=21,e.DATA_UPDATE_FAILED_ERROR_CODE=22,e.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,e.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,e.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,e.DOWNLOAD_ERROR_ID_SIDX_CODE=26,e.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,e.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,e.DOWNLOAD_ERROR_ID_XLINK_CODE=29,e.MANIFEST_ERROR_ID_PARSE_CODE=31,e.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,e.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,e.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,e.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,e.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",e.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",e.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",e.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",e.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",e.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",e.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",e.APPEND_ERROR_MESSAGE="chunk is not defined",e.REMOVE_ERROR_MESSAGE="Removing data from the SourceBuffer",e.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",e.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",e.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",e.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",e.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",e}return i}(n(2230).Z));var I=n(1264),R=n(7855);function C(e){var t,n,r,i,a,s,l=this.context,c=(0,I.Z)(l).getInstance(),h=e.textController,p=e.eventBus,f=[],m=[],g=!1,y=e.mediaSource,v=null;function b(e){return new Promise((function(t){P((function(){i.changeType&&i.changeType(e),t()}))}))}function _(e){return i=h.getTextSourceBuffer(e),Promise.resolve()}function E(){if("function"==typeof i.addEventListener)try{i.addEventListener("updateend",M,!1),i.addEventListener("error",L,!1),i.addEventListener("abort",L,!1)}catch(e){s=setInterval(M,50)}else s=setInterval(M,50)}function T(e){return new Promise((function(t){i&&c.get().streaming.buffer.useAppendWindow?P((function(){try{if(!i)return void t();var n=y.duration,o=0;e&&!isNaN(e.start)&&!isNaN(e.duration)&&isFinite(e.duration)&&(n=e.start+e.duration),e&&!isNaN(e.start)&&(o=e.start),i.appendWindowEnd===n&&i.appendWindowStart===o||(i.appendWindowStart=0,i.appendWindowEnd=n+.01,i.appendWindowStart=Math.max(o-.1,0),r.debug("Updated append window for ".concat(a.type,". Set start to ").concat(i.appendWindowStart," and end to ").concat(i.appendWindowEnd))),t()}catch(e){r.warn("Failed to set append window"),t()}})):t()}))}function A(e){return new Promise((function(t){i?P((function(){try{i.timestampOffset===e||isNaN(e)||(i.timestampOffset=e,r.debug("Set MSE timestamp offset to ".concat(e))),t()}catch(e){t()}})):t()}))}function S(){if(!g&&m.length>0){g=!0;var e=m[0];m.splice(0,1);var t=function(){g=!1,m.length>0&&S.call(this),e&&e.data&&e.data.segmentType&&e.data.segmentType!==R.w.INIT_SEGMENT_TYPE&&delete e.data.bytes,e.promise.resolve({chunk:e.data})};try{v=e.request,0===e.data.bytes.byteLength?t.call(this):(i.appendBuffer?i.appendBuffer(e.data.bytes):i.append(e.data.bytes,e.data),P(t.bind(this)))}catch(t){r.fatal('SourceBuffer append failed "'+t+'"'),m.length>0?S():g=!1,delete e.data.bytes,e.promise.reject({chunk:e.data,error:new w.Z(t.code,t.message)})}}}function C(){f.length>0&&(i.updating||(f.shift()(),C()))}function M(){i.updating||C()}function L(e){var t,r,i=e.target||{};t=u.Z.SOURCE_BUFFER_ERROR,r={error:i,lastRequestAppended:v}||{},p.trigger(t,r,{streamId:a.streamInfo.id,mediaType:n})}function P(e){f.push(e),i.updating||C()}return t={getType:function(){return n},getAllBufferRanges:function(){try{return i.buffered}catch(e){return r.error("getAllBufferRanges exception: "+e.message),null}},getBuffer:function(){return i},append:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(r,i){e?(m.push({data:e,promise:{resolve:r,reject:i},request:n}),P(S.bind(t))):i({chunk:e,error:new w.Z(x.APPEND_ERROR_CODE,x.APPEND_ERROR_MESSAGE)})}))},remove:function(e){return new Promise((function(t,n){var r=e.start,o=e.end;r>=0&&o>r?P((function(){try{i.remove(r,o),P((function(){t({from:r,to:o,unintended:!1}),e.resolve&&e.resolve()}))}catch(t){n({from:r,to:o,unintended:!1,error:new w.Z(x.REMOVE_ERROR_CODE,x.REMOVE_ERROR_MESSAGE)}),e.reject&&e.reject(t)}})):t()}))},abort:function(){return new Promise((function(e){try{m=[],"open"===y.readyState?P((function(){try{i&&i.abort(),e()}catch(t){e()}})):i&&i.setTextTrack&&"ended"===y.readyState?(i.abort(),e()):e()}catch(t){e()}}))},reset:function(){if(i){try{f=[],function(){try{"function"==typeof i.removeEventListener&&(i.removeEventListener("updateend",M,!1),i.removeEventListener("error",L,!1),i.removeEventListener("abort",L,!1)),clearInterval(s)}catch(e){r.error(e)}}(),g=!1,m=[],i.getClassName&&"TextSourceBuffer"===i.getClassName()||(r.debug("Removing sourcebuffer from media source"),y.removeSourceBuffer(i))}catch(e){}i=null}v=null},updateTimestampOffset:A,initializeForStreamSwitch:function(e,t,r){n=(a=e).type;var o=a.codec;!function(e){i=e.getBuffer()}(r),E();var s=[];return s.push(new Promise((function(e){P((function(){var t=i.appendWindowStart,n=i.appendWindowEnd;i&&(i.abort(),i.appendWindowStart=t,i.appendWindowEnd=n),e()}))}))),s.push(T(a.streamInfo)),c.get().streaming.buffer.useChangeTypeForTrackSwitch&&s.push(b(o)),t&&void 0!==t.MSETimeOffset&&s.push(A(t.MSETimeOffset)),Promise.all(s)},initializeForFirstUse:function(e,t,r){n=(a=t).type;var s=a.codec;try{if(s.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))return _(e);i=y.addSourceBuffer(s),E();var l=[];return l.push(T(a.streamInfo)),r&&void 0!==r.MSETimeOffset&&l.push(A(r.MSETimeOffset)),Promise.all(l)}catch(t){return a.type==o.Z.TEXT&&!a.isFragmented||-1!==s.indexOf('codecs="stpp')||-1!==s.indexOf('codecs="vtt')?_(e):Promise.reject(t)}},updateAppendWindow:T,changeType:b},r=(0,d.Z)(l).getInstance().getLogger(t),t}C.__dashjs_factory_name="SourceBufferSink";const M=c.Z.getClassFactory(C);function L(e){var t,n,r,i=this.context,o=[],a=e;function s(e,t){return o=o.filter((function(n){return!((isNaN(t)||n.starte))})),Promise.resolve()}return t={getAllBufferRanges:function(){for(var e=[],t=0;te[e.length-1].end?e.push({start:n.start,end:n.end}):e[e.length-1].end=n.end}var r={start:function(t){return e[t].start},end:function(t){return e[t].end}};return Object.defineProperty(r,"length",{get:function(){return e.length}}),r},append:function(e){return"InitializationSegment"!==e.segmentType?(o.push(e),o.sort((function(e,t){return e.start-t.start})),r=null):r=e,n.debug("PreBufferSink appended chunk s: "+e.start+"; e: "+e.end),a&&a({chunk:e}),Promise.resolve()},remove:s,abort:function(){return Promise.resolve()},discharge:function(e,t){var n=function(e,t){return o.filter((function(n){return(isNaN(t)||n.starte)}))}(e,t);return r&&(n.push(r),r=null),s(e,t),n},reset:function(){o=[],r=null,a=null},updateTimestampOffset:function(){return Promise.resolve()},waitForUpdateEnd:function(e){e()},getBuffer:function(){return this}},n=(0,d.Z)(i).getInstance().getLogger(t),t}L.__dashjs_factory_name="PreBufferSink";const P=c.Z.getClassFactory(L);function D(){var e={};return{save:function(t){var n=t.streamId,r=t.representationId;e[n]=e[n]||{},e[n][r]=t},extract:function(t,n){return e&&e[t]&&e[t][n]?e[t][n]:null},reset:function(){e={}}}}D.__dashjs_factory_name="InitCache";const O=c.Z.getSingletonFactory(D);var N=.01,k="BufferController";function F(e){e=e||{};var t,n,r,i,a,c,p,f,m,g,y,v,b,_,T,A,S,I,C,L,D,F=this.context,B=(0,l.Z)(F).getInstance(),U=e.errHandler,z=e.fragmentModel,G=e.representationController,V=e.adapter,j=e.textController,H=e.abrController,Z=e.playbackController,q=e.streamInfo,W=e.type,Y=e.settings;function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(n,r){c=e,m&&t&&"function"==typeof m.discharge?(g=m,X(t).then((function(){n()})).catch((function(e){r(e)}))):n()}))}function $(e){return V.convertRepresentationToRepresentationInfo(G.getRepresentationForQuality(e))}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return new Promise((function(n,r){I&&e?c?(y=!1,Q(e,t).then((function(e){n(e)})).catch((function(e){r(e)}))):(y=!0,function(){var e=this;return new Promise((function(t,n){var r=H.getQualityFor(W,q.id);m=P(F).create(re.bind(e)),be($(r)).then((function(){t(m)})).catch((function(){n()}))}))}().then((function(e){n(e)})).catch((function(e){r(e)}))):n(null)}))}function Q(e,t){return new Promise((function(r,i){var a=H.getQualityFor(W,q.id);m=M(F).create({mediaSource:c,textController:j,eventBus:B}),function(e,t,n){var r=$(n);return t&&t[W]&&(W===o.Z.VIDEO||W===o.Z.AUDIO)?m.initializeForStreamSwitch(e,r,t[W]):m.initializeForFirstUse(q,e,r)}(e,t,a).then((function(){return be($(a))})).then((function(){r(m)})).catch((function(e){n.fatal("Caught error on create SourceBuffer: "+e),U.error(new w.Z(x.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,x.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+W)),i(e)}))}))}function J(e){Y.get().streaming.cacheInitSegments&&(n.info("Init fragment finished loading saving to",W+"'s init cache"),I.save(e.chunk)),n.debug("Append Init fragment",W," with representationId:",e.chunk.representationId," and quality:",e.chunk.quality,", data size:",e.chunk.bytes.byteLength),te(e.chunk)}function ee(e){te(e.chunk,e.request)}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;m.append(e,t).then((function(e){re(e)})).catch((function(e){re(e)})),e.mediaInfo.type===o.Z.VIDEO&&Ie(u.Z.VIDEO_CHUNK_RECEIVED,{chunk:e})}function ne(e){if(e&&e.length>0)for(var t=0,r=e.length;t0){var e=Math.max(.2*a,1),t=a-e,r=Math.min(Y.get().streaming.buffer.bufferTimeAtTopQuality,.9*t),i=Math.min(Y.get().streaming.buffer.bufferTimeAtTopQualityLongForm,.9*t),o={streaming:{buffer:{bufferToKeep:parseFloat(e.toFixed(5)),bufferTimeAtTopQuality:parseFloat(r.toFixed(5)),bufferTimeAtTopQualityLongForm:parseFloat(i.toFixed(5))}}};Y.update(o)}}(),void(22!==e.error.code&&xe()||(n.warn("Clearing playback buffer to overcome quota exceed situation"),Ie(u.Z.QUOTA_EXCEEDED,{criticalBufferLevel:a,quotaExceededTime:e.chunk.start}),ge(me())));if(m&&(ce(),S=!1,(_=e.chunk)&&_.endFragment)){_&&!isNaN(_.index)&&(p=Math.max(_.index,p),de());var t=m.getAllBufferRanges();_.segmentType===R.w.MEDIA_SEGMENT_TYPE&&(ne(t),ae(),function(){if(!isNaN(D)&&!y)if(W===o.Z.AUDIO||W===o.Z.VIDEO){var e=Z.getTime(),t=ue(e,0),n=ue(D,0);if(t&&n&&t.start===n.start)D=NaN;else{var r=G.getCurrentRepresentation().segmentDuration,i=ue(D,r);i&&(Y.get().streaming.buffer.enableSeekDecorrelationFix&&Math.abs(e-D)>r?D<=i.end&&Z.seek(Math.max(D,i.start),!1,!0):e0&&(r=!0),v=null),_&&!r&&Ie(u.Z.BYTES_APPENDED_END_FRAGMENT,{quality:_.quality,startTime:_.start,index:_.index,bufferedRanges:t,segmentType:_.segmentType,mediaType:W})}}function ie(){return new Promise((function(e,t){var n=oe();if(!n||0===n.length)return ae(),void e();ge(n).then((function(){e()})).catch((function(e){t(e)}))}))}function oe(e){var t=[],r=m.getAllBufferRanges();if(!r||0===r.length)return t;if(!e&&0!==e||isNaN(e))t.push({start:r.start(0),end:r.end(r.length-1)+.5});else{var i=function(e,t){var n=Y.get().streaming.buffer.bufferToKeep,r=t.start(0);if(e-r>n){var i=Math.max(0,e-n),o=z.getRequests({state:E.FRAGMENT_MODEL_EXECUTED,time:e,threshold:N})[0];if(o&&(i=Math.min(o.startTime,i)),i>0)return{start:r,end:i}}return null}(e,r),o=function(e,t){var r=t.end(t.length-1)+.5,i=Se(e),o=q.manifestInfo.duration>=Y.get().streaming.buffer.longFormContentDurationThreshold?Y.get().streaming.buffer.bufferTimeAtTopQualityLongForm:Y.get().streaming.buffer.bufferTimeAtTopQuality,a=isNaN(i)?e:Math.min(i,e+o);if(a>=t.end(t.length-1))return null;var s=z.getRequests({state:E.FRAGMENT_MODEL_EXECUTED,time:e,threshold:N})[0];if(s&&(a=Math.max(s.startTime+s.duration,a)),Y.get().streaming.buffer.avoidCurrentTimeRangePruning)for(var l=0;l=o&&e=f-1,t=Z.getTimeToStreamEnd(q)-i<1e-5;!e&&!t||r||(Te(!0),n.debug("checkIfBufferingCompleted trigger BUFFERING_COMPLETED for stream id ".concat(q.id," and type ").concat(W)))}function he(){W!==o.Z.AUDIO&&W!==o.Z.VIDEO||((!Z.getLowLatencyModeEnabled()&&i=Y.get().streaming.buffer.stallThreshold||Z.getLowLatencyModeEnabled()&&i>0)&&pe(s.Z.BUFFER_LOADED))}function pe(e){b===e||e===s.Z.BUFFER_EMPTY&&0===Z.getTime()||W===o.Z.TEXT&&!j.isTextEnabled()||(b=e,Ie(u.Z.BUFFER_LEVEL_STATE_CHANGED,{state:e}),Ie(e===s.Z.BUFFER_LOADED?u.Z.BUFFER_LOADED:u.Z.BUFFER_EMPTY),n.debug(e===s.Z.BUFFER_LOADED?"Got enough buffer to start":"Waiting for more buffer before starting playback"))}function fe(){m&&W!==o.Z.TEXT&&(r||ge(me()))}function me(){var e=[],t=m.getAllBufferRanges();if(!t||0===t.length)return e;var n=Z.getTime(),r=Math.max(0,n-Y.get().streaming.buffer.bufferToKeep),i=z.getRequests({state:E.FRAGMENT_MODEL_EXECUTED,time:n,threshold:N})[0];if(i)r=Math.min(i.startTime,r);else if(0===n&&Z.getIsDynamic())return[];if(t.start(0)<=r){for(var o={start:0,end:r},a=0;a=Y.get().streaming.buffer.bufferPruningInterval&&(T=0,fe())}function we(){he()}function Te(e){(r=e)?Ie(u.Z.BUFFERING_COMPLETED):f=Number.POSITIVE_INFINITY}function Ae(){try{var e,t,n=m.getAllBufferRanges(),r=0;if(!n)return r;for(t=0,e=n.length;t=i&&t<=o&&(t=o),r+=1}return t===e?NaN:t}catch(e){}}function xe(){var e=Ae();return isNaN(e)||e0){for(var t="Beginning "+W+"PreBuffer discharge, adding buffer for:",r=0;r=i&&e<=o)return!0;r+=1}return!1}catch(e){return n.error(e),!1}},pruneBuffer:fe,setMediaSource:K,getMediaSource:function(){return c},appendInitSegmentFromCache:function(e){var t=I.extract(q.id,e);return!!t&&(n.info("Append Init fragment",W," with representationId:",t.representationId," and quality:",t.quality,", data size:",t.bytes.byteLength),te(t),!0)},getIsBufferingCompleted:function(){return r},setIsBufferingCompleted:Te,getIsPruningInProgress:function(){return A},reset:function(e,t){B.off(u.Z.INIT_FRAGMENT_LOADED,J,this),B.off(u.Z.MEDIA_FRAGMENT_LOADED,ee,this),B.off(u.Z.WALLCLOCK_TIME_UPDATED,Ee,this),B.off(h.Z.PLAYBACK_PLAYING,le,this),B.off(h.Z.PLAYBACK_PROGRESS,ae,this),B.off(h.Z.PLAYBACK_TIME_UPDATED,ae,this),B.off(h.Z.PLAYBACK_RATE_CHANGED,we,this),B.off(h.Z.PLAYBACK_STALLED,se,this),Re(e,t)},prepareForPlaybackSeek:function(){return r&&Te(!1),m.abort()},prepareForReplacementTrackSwitch:function(e){return new Promise((function(t,n){m.abort().then((function(){return _e()})).then((function(){return Y.get().streaming.buffer.useChangeTypeForTrackSwitch?m.changeType(e):Promise.resolve()})).then((function(){return ie()})).then((function(){Te(!1),t()})).catch((function(e){n(e)}))}))},prepareForNonReplacementTrackSwitch:function(e){return new Promise((function(t,n){_e().then((function(){return Y.get().streaming.buffer.useChangeTypeForTrackSwitch?m.changeType(e):Promise.resolve()})).then((function(){t()})).catch((function(e){n(e)}))}))},prepareForForceReplacementQualitySwitch:function(e){return new Promise((function(t,n){m.abort().then((function(){return _e()})).then((function(){return ie()})).then((function(){return be(e)})).then((function(){Te(!1),t()})).catch((function(e){n(e)}))}))},updateAppendWindow:_e,getAllRangesWithSafetyFactor:oe,getContinuousBufferTimeForTargetTime:Se,clearBuffers:ge,pruneAllSafely:ie,updateBufferTimestampOffset:be,setSeekTarget:function(e){D=e},segmentRequestingCompleted:function(e){isNaN(e)||(f=e,de())}},n=(0,d.Z)(F).getInstance().getLogger(t),I=O(F).getInstance(),Re(),t}F.__dashjs_factory_name=k;const B=c.Z.getClassFactory(F);var U="NotFragmentedTextBufferController";function z(e){e=e||{};var t,n,r,i,o,a,s=this.context,c=(0,l.Z)(s).getInstance(),d=e.textController,h=e.errHandler,p=e.streamInfo,f=e.type;function m(e){i=e}function g(e){var t,r;n!==e&&(n=e)&&(t=u.Z.BUFFERING_COMPLETED,r={},c.trigger(t,r,{streamId:p.id,mediaType:f}))}function y(e){e.chunk.bytes&&!n&&(a.save(e.chunk),o.append(e.chunk),g(!0))}return t={initialize:function(e){m(e)},getStreamId:function(){return p.id},getType:function(){return f},getBufferControllerType:function(){return U},createBufferSink:function(e){return new Promise((function(t,n){try{(o=M(s).create({mediaSource:i,textController:d,eventBus:c})).initializeForFirstUse(p,e),r||(o.getBuffer()&&"function"==typeof o.getBuffer().initialize&&o.getBuffer().initialize(),r=!0),t(o)}catch(e){h.error(new w.Z(x.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,x.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+f)),n(e)}}))},dischargePreBuffer:function(){},getBuffer:function(){return o},getBufferLevel:function(){return 0},getRangeAt:function(){return null},pruneBuffer:function(){},hasBufferAtTime:function(){return!0},getAllRangesWithSafetyFactor:function(){return[]},getContinuousBufferTimeForTargetTime:function(){return Number.POSITIVE_INFINITY},setMediaSource:m,getMediaSource:function(){return i},appendInitSegmentFromCache:function(e){return null!==a.extract(p.id,e)},getIsBufferingCompleted:function(){return n},setIsBufferingCompleted:g,getIsPruningInProgress:function(){return!1},reset:function(e){c.off(u.Z.INIT_FRAGMENT_LOADED,y,t),!e&&o&&(o.abort(),o.reset(),o=null)},clearBuffers:function(){return Promise.resolve()},prepareForPlaybackSeek:function(){return Promise.resolve()},prepareForReplacementTrackSwitch:function(){return n=!1,Promise.resolve()},setSeekTarget:function(){},updateAppendWindow:function(){return Promise.resolve()},pruneAllSafely:function(){return Promise.resolve()},updateBufferTimestampOffset:function(){return Promise.resolve()},segmentRequestingCompleted:function(){}},r=!1,i=null,n=!1,a=O(s).getInstance(),c.on(u.Z.INIT_FRAGMENT_LOADED,y,t),t}z.__dashjs_factory_name=U;const G=c.Z.getClassFactory(z);function V(e){e=e||{};var t,n,r,i,a,c,p,f,m,g,y,v,b=this.context,_=(0,l.Z)(b).getInstance(),w=e.dashMetrics,T=e.mediaPlayerModel,A=e.fragmentModel,S=e.abrController,x=e.playbackController,I=e.textController,R=e.type,C=e.bufferController,M=e.representationController,L=e.settings;function P(e){if(!C.getIsBufferingCompleted()){D();var t=isNaN(e)?0:e;a=setTimeout(O,t)}}function D(){a&&(clearTimeout(a),a=null)}function O(){try{if(function(){try{return R===o.Z.TEXT&&!I.isTextEnabled()||x.isPaused()&&(!x.getStreamController().getInitialPlayback()||!x.getStreamController().getAutoPlay())&&!L.get().streaming.scheduling.scheduleWhilePaused}catch(e){return!1}}())return void D();if(function(){try{return M.getCurrentRepresentationInfo()&&(isNaN(m)||g||(e=n.id,t=S.getMaxAllowedIndexFor(R,e),!(!isNaN(f)&&f==t||(r.info("Top quality "+R+" index has changed from "+f+" to "+t),f=t,0)))||function(){var e=M.getCurrentRepresentationInfo();return!R||!e||w.getCurrentBufferLevel(R)=L.get().streaming.buffer.longFormContentDurationThreshold?L.get().streaming.buffer.bufferTimeAtTopQualityLongForm:L.get().streaming.buffer.bufferTimeAtTopQuality:T.getStableBufferTime()}catch(e){return T.getStableBufferTime()}}(),e):e}function k(){F(!0)}function F(e){if(x&&A){var t=A.getRequests({state:E.FRAGMENT_MODEL_EXECUTED,time:x.getTime(),threshold:0})[0];t&&x.getTime()>=t.startTime&&((!p.mediaInfo||t.mediaInfo.type===p.mediaInfo.type&&t.mediaInfo.id!==p.mediaInfo.id)&&e&&_.trigger(u.Z.TRACK_CHANGE_RENDERED,{mediaType:R,oldMediaInfo:p.mediaInfo,newMediaInfo:t.mediaInfo,streamId:n.id}),t.quality===p.quality&&t.adaptationIndex===p.adaptationIndex||!e||(r.debug("Quality change rendered for streamId ".concat(n.id," and type ").concat(R)),_.trigger(u.Z.QUALITY_CHANGE_RENDERED,{mediaType:R,oldQuality:p.quality,newQuality:t.quality,streamId:n.id})),p={mediaInfo:t.mediaInfo,quality:t.quality,adaptationIndex:t.adaptationIndex})}}function B(){A.abortRequests(),D()}function U(){L.get().streaming.scheduling.scheduleWhilePaused||P()}function z(e){w.updatePlayListTraceMetrics({playbackspeed:e.playbackRate.toString()})}function G(){v=!0,i=0,m=NaN,p={mediaInfo:void 0,quality:NaN,adaptationIndex:NaN},f=NaN,g=!1,y=!1}return t={initialize:function(e){c=e,_.on(u.Z.URL_RESOLUTION_FAILED,B,t),_.on(h.Z.PLAYBACK_STARTED,U,t),_.on(h.Z.PLAYBACK_RATE_CHANGED,z,t),_.on(h.Z.PLAYBACK_TIME_UPDATED,k,t)},getType:function(){return R},getStreamId:function(){return n.id},setTimeToLoadDelay:function(e){i=e},getTimeToLoadDelay:function(){return i},setSwitchTrack:function(e){g=e},getSwitchTrack:function(){return g},startScheduleTimer:P,clearScheduleTimer:D,reset:function(){_.off(u.Z.URL_RESOLUTION_FAILED,B,t),_.off(h.Z.PLAYBACK_STARTED,U,t),_.off(h.Z.PLAYBACK_RATE_CHANGED,z,t),_.off(h.Z.PLAYBACK_TIME_UPDATED,k,t),D(),F(!1),G(),n=null},getBufferTarget:N,getPlaybackController:function(){return x},setCheckPlaybackQuality:function(e){v=e},setInitSegmentRequired:function(e){y=e},setLastInitializedQuality:function(e){m=e}},r=(0,d.Z)(b).getInstance().getLogger(t),G(),n=e.streamInfo,t}V.__dashjs_factory_name="ScheduleController";const j=c.Z.getClassFactory(V);var H=n(7387);function Z(e){var t,n,r,i,a,s,l=(e=e||{}).eventBus,u=e.events,c=e.abrController,d=e.dashMetrics,p=e.playbackController,f=e.timelineConverter,m=e.type,g=e.streamInfo,y=e.dashConstants,v=e.segmentsController,b=e.isDynamic,_=e.adapter;function E(){return m}function w(){return r}function T(){return s}function A(){n=null,r=!0,i=[],a=null}function S(e){return new Promise((function(t,n){var r=e.hasInitialization(),o=e.hasSegments(),a=[];a.push(v.updateInitData(e,r)),a.push(v.updateSegmentData(e,o)),Promise.all(a).then((function(n){var r;n[0]&&!n[0].error&&(e=function(e,t){return t&&!t.error&&t.representation?t.representation:e}(e,n[0])),n[1]&&!n[1].error&&(e=function(e,t){if(t&&!t.error){var n,r,i,o,a=t.segments,s=[],l=0;for(n=0,r=a?a.length:0;n0&&(e.segments=s),e}}(e,n[1])),(r=e).mediaFinishedInformation=v.getMediaFinishedInformation(r),function(e){if(w()){var t,n,r=d.getCurrentManifestUpdate(),o=!1;if(r){for(var a=0;a=i.length?null:i[e]}function R(e){r=!1,l.trigger(u.DATA_UPDATE_COMPLETED,{data:n,currentRepresentation:s,error:e},{streamId:g.id,mediaType:m})}function C(e){s=e,a=_.convertRepresentationToRepresentationInfo(s)}function M(e){if(e.newDuration){var t=T();t&&t.adaptation.period&&(t.adaptation.period.duration=e.newDuration)}}return t={getStreamId:function(){return g.id},getType:E,getData:function(){return n},isUpdating:w,updateData:function(e,t,a,s,l){return new Promise((function(u,c){if(r=!0,i=t,n=e,C(I(l)),a!==o.Z.VIDEO&&a!==o.Z.AUDIO&&(a!==o.Z.TEXT||!s))return R(),void u();for(var d=[],h=0,p=i.length;h=I.start+I.duration}function se(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.sender)if(U.getIsManifestUpdateInProgress())de();else if((!ie()||V.isTextEnabled())&&p&&e.representationId&&!p.appendInitSegmentFromCache(e.representationId)){var n=m.getCurrentRepresentation();if(0===n.range)return void le();var r=v?v.getInitRequest(i,n):null;r?k.executeRequest(r):t&&(f.setInitSegmentRequired(!0),de())}}function le(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(U.getIsManifestUpdateInProgress()||p.getIsPruningInProgress())de();else{var n=function(){var e,t=xe();if(isNaN(_)||re()===o.Z.TEXT&&!V.isTextEnabled())return null;if(v){var n=m&&t?m.getRepresentationForQuality(t.quality):null;e=g?v.getSegmentRequestForTime(i,n,_):v.getNextSegmentRequest(i,n)}return e}();n?(g=!1,ue(n)):ce(t)}}function ue(e){isNaN(e.startTime+e.duration)||(_=e.startTime+e.duration),e.delayLoadingTime=(new Date).getTime()+f.getTimeToLoadDelay(),f.setTimeToLoadDelay(0),function(e){var t=e.url;return e.range&&(t=t.concat("_",e.range)),Q.contains(t)}(e)?(n.warn("Fragment request url ".concat(e.url," for stream id ").concat(I.id," and media type ").concat(C," is on the ignore list and will be skipped")),de()):(n.debug("Next fragment request url for stream id ".concat(I.id," and media type ").concat(C," is ").concat(e.url)),k.executeRequest(e))}function ce(e){var t,o=m.getCurrentRepresentation();if(!Z.get().streaming.gaps.enableSeekFix||!g&&0!==U.getTime()||(r?r&&o.segmentInfoType===a.Z.SEGMENT_TIMELINE&&(t=v.getValidTimeAheadOfTargetTime(_,i,o,Z.get().streaming.gaps.threshold)):t=v.getValidTimeAheadOfTargetTime(_,i,o,Z.get().streaming.gaps.threshold),isNaN(t)||t===_)){if(v.isLastSegmentRequested(o,_)){var s=v.getCurrentIndex();return n.debug("Segment requesting for stream ".concat(I.id," has finished")),S.trigger(u.Z.STREAM_REQUESTING_COMPLETED,{segmentIndex:s},{streamId:I.id,mediaType:C}),p.segmentRequestingCompleted(s),void f.clearScheduleTimer()}e&&de()}else U.isSeeking()||0===U.getTime()?(n.warn("Adjusting playback time ".concat(t," because of gap in the manifest. Seeking by ").concat(t-_)),U.seek(t,!1,!1)):(n.warn("Adjusting buffering time ".concat(t," because of gap in the manifest. Adjusting time by ").concat(t-_)),De(t),e&&de())}function de(){f.startScheduleTimer(U.getLowLatencyModeEnabled()?Z.get().streaming.scheduling.lowLatencyTimeout:Z.get().streaming.scheduling.defaultTimeout)}function he(e){e.error||p.getIsBufferingCompleted()||p.updateBufferTimestampOffset(e.currentRepresentation)}function pe(e){H.addBufferState(C,e.state,f.getBufferTarget()),e.state!==s.Z.BUFFER_EMPTY||U.isSeeking()||(n.info("Buffer is empty! Stalling!"),H.pushPlayListTraceMetrics(new Date,J.REBUFFERING_REASON))}function fe(e){k.syncExecutedRequestsWithBufferedRange(p.getBuffer().getAllBufferRanges(),I.duration),e.quotaExceeded&&e.from>U.getTime()&&De(e.from),e.hasEnoughSpaceToAppend&&e.quotaExceeded&&f.startScheduleTimer()}function me(e){if(e&&e.lastRequestAppended&&e.lastRequestAppended.url){var t=e.lastRequestAppended.url;e.lastRequestAppended.range&&(t=t.concat("_",e.lastRequestAppended.range)),n.warn("Blacklisting segment with url ".concat(t)),Q.add(t)}}function ge(e){if(n.debug("Appended bytes for ".concat(e.mediaType," and stream id ").concat(e.streamId)),e.segmentType===R.w.INIT_SEGMENT_TYPE){var t=e.quality;f.setLastInitializedQuality(t),n.info("["+C+"] lastInitializedRepresentationInfo changed to "+e.quality)}T?ye(T):f.startScheduleTimer(0)}function ye(e){var t=k.getRequests({state:E.FRAGMENT_MODEL_LOADING});if(t&&t.length>0)return n.debug("Preparing for default quality switch: Waiting for ongoing segment request to be finished before applying switch."),void(T=e);p.updateBufferTimestampOffset(e).then((function(){i.segmentAlignment||i.subSegmentAlignment?f.startScheduleTimer():Le(),T=null,y=!1})).catch((function(){T=null,y=!1}))}function ve(e){n.info("onFragmentLoadingAbandoned request: "+e.request.url+" has been aborted"),U.isSeeking()||f.getSwitchTrack()||y||(n.info("onFragmentLoadingAbandoned request: "+e.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),e.request&&e.request.isInitializationRequest()?f.setInitSegmentRequired(!0):De(e.request.startTime+e.request.duration/2),f.startScheduleTimer(0))}function be(e){n.info("OnFragmentLoadingCompleted for stream id "+I.id+" and media type "+C+" - Url:",e.request?e.request.url:"undefined",e.request.range?", Range:"+e.request.range:""),ie()&&f.startScheduleTimer(0),e.error&&e.request.serviceLocation&&function(e){n.info("Fragment loading completed with an error"),e&&e.request&&e.request.type&&(e.request.type===R.w.INIT_SEGMENT_TYPE?se({representationId:e.request.representationId,sender:{}},!1):e.request.type===R.w.MEDIA_SEGMENT_TYPE&&(De(e.request.startTime+e.request.duration/2),le({},!1)))}(e)}function _e(){De(U.getTime()),Se().startScheduleTimer()}function Ee(e){var t=e.currentTrackInfo;if(t){var n=c.find((function(e){return e.index===t.index&&e.lang===t.lang}));n&&Ae(n).then((function(){p.setIsBufferingCompleted(!1),De(U.getTime()),f.setInitSegmentRequired(!0),f.startScheduleTimer()}))}}function we(e){De(e.quotaExceededTime),f.clearScheduleTimer()}function Te(){return p?p.getBuffer():null}function Ae(e){e===i||e&&i&&e.type!==i.type||(i=e);var t=D.getRealAdaptation(I,i),n=D.getVoRepresentations(i);if(m){var a,s=m.getData(),l=F.getMaxAllowedIndexFor(C,I.id),u=F.getMinAllowedIndexFor(C,I.id),c=null;return null!==s&&s.id===t.id||C===o.Z.TEXT?a=F.getQualityFor(C,I.id):(c=F.getThroughputHistory().getAverageThroughput(C,r)||F.getInitialBitrateFor(C,I.id),a=F.getQualityForBitrate(i,c,I.id)),void 0!==u&&al&&(a=l),m.updateData(t,n,C,i.isFragmented,a)}return Promise.resolve()}function Se(){return f}function xe(e){var t;return void 0!==e?((0,W.SE)(e),t=m?m.getRepresentationForQuality(e):null):t=m?m.getCurrentRepresentation():null,D.convertRepresentationToRepresentationInfo(t)}function Ie(){return!!p&&p.getIsBufferingCompleted()}function Re(e){if(Z.get().streaming.enableManifestTimescaleMismatchFix){var t=e.chunk,n=t.bytes,r=xe(t.quality),i=m&&r?m.getRepresentationForQuality(r.quality):null;r&&i&&(i.timescale=X.getMediaTimescaleFromMoov(n))}}function Ce(e){var t=e.chunk,n=t.bytes,r=t.quality,i=xe(r),o=m&&i?m.getRepresentationForQuality(i.quality):null;if(i&&o){var s;if(Z.get().streaming.parseInbandPrft&&e.request.type===R.w.MEDIA_SEGMENT_TYPE){var l=function(e,t){var n=e.getBoxes("prft"),r=[];return n.forEach((function(e){r.push(function(e,t){var n="unknown";switch(e.flags){case 0:n=a.Z.PRODUCER_REFERENCE_TIME_TYPE.ENCODER;break;case 16:n=a.Z.PRODUCER_REFERENCE_TIME_TYPE.APPLICATION;break;case 24:n=a.Z.PRODUCER_REFERENCE_TIME_TYPE.CAPTURED}var r=1e3*e.ntp_timestamp_sec+e.ntp_timestamp_frac/Math.pow(2,32)*1e3;return{type:n,ntpTimestamp:r=ne(A).getInstance().ntpToUTC(r),mediaTime:e.media_time/t}}(e,t))})),r}(s=s||X.parse(n),o.timescale);l&&l.length&&S.trigger(h.Z.INBAND_PRFT,{data:l},{streamId:I.id,mediaType:C})}var c=D.getEventsFor(i.mediaInfo,null,I),d=D.getEventsFor(i,o,I);if(c&&c.length>0||d&&d.length>0){var p=k.getRequests({state:E.FRAGMENT_MODEL_EXECUTED,quality:r,index:t.index})[0],f=function(e,t,n,r){try{for(var i={},o=[],a=n.concat(r),s=0,l=a.length;sZ.get().streaming.buffer.stallThreshold;if(p.getIsBufferingCompleted()&&!t)return p.prepareForNonReplacementTrackSwitch(i.codec).then((function(){S.trigger(u.Z.BUFFERING_COMPLETED,{},{streamId:I.id,mediaType:C})})).catch((function(){S.trigger(u.Z.BUFFERING_COMPLETED,{},{streamId:I.id,mediaType:C})})),void e();f.clearScheduleTimer(),f.setSwitchTrack(!0),t?(S.trigger(u.Z.BUFFER_REPLACEMENT_STARTED,{mediaType:C,streamId:I.id},{mediaType:C,streamId:I.id}),k.abortRequests(),p.prepareForReplacementTrackSwitch(i.codec).then((function(){var e=xe();return p.updateBufferTimestampOffset(e)})).then((function(){Me(),e()})).catch((function(){Me(),e()}))):p.prepareForNonReplacementTrackSwitch(i.codec).then((function(){Le(),e()})).catch((function(){Le(),e()}))}))},prepareQualityChange:function(e){T&&n.warning("Canceling queued representation switch to ".concat(T.quality," for ").concat(C)),n.debug("Preparing quality switch for type ".concat(C));var t=e.newQuality;y=!0,f.clearScheduleTimer(),m.prepareQualityChange(t);var r=xe(t);e.reason&&e.reason.forceReplace?function(e){k.abortRequests(),S.trigger(u.Z.BUFFER_REPLACEMENT_STARTED,{mediaType:C,streamId:I.id},{mediaType:C,streamId:I.id}),p.prepareForForceReplacementQualitySwitch(e).then((function(){Me(),y=!1})).catch((function(){Me(),y=!1}))}(r):Z.get().streaming.buffer.fastSwitchEnabled?function(e){var t=U.getTime(),n=1.5*(isNaN(e.fragmentDuration)?1:e.fragmentDuration),r=k.getRequests({state:E.FRAGMENT_MODEL_EXECUTED,time:t+n,threshold:0})[0];if(r&&!ie()){var i=p.getBufferLevel(),o=F.getAbandonmentStateFor(I.id,C);r.quality=n&&o!==s.Z.ABANDON_LOAD?p.updateBufferTimestampOffset(e).then((function(){k.abortRequests(),De(t+n),f.setCheckPlaybackQuality(!1),f.startScheduleTimer(),y=!1})).catch((function(){y=!1})):ye(e)}else f.startScheduleTimer(),y=!1}(r):ye(r),H.pushPlayListTraceMetrics(new Date,J.REPRESENTATION_SWITCH_STOP_REASON),H.createPlaylistTraceMetrics(r.id,1e3*U.getTime(),U.getPlaybackRate())},getMediaInfo:function(){return i},getMediaSource:function(){return p.getMediaSource()},setMediaSource:function(e){return p.setMediaSource(e,i)},getBuffer:Te,setExplicitBufferingTime:De,finalisePlayList:function(e,t){H.pushPlayListTraceMetrics(e,t)},probeNextRequest:function(){var e=xe(),t=m&&e?m.getRepresentationForQuality(e.quality):null;return v.getNextSegmentRequestIdempotent(i,t)},prepareInnerPeriodPlaybackSeeking:function(e){return new Promise((function(t){if(p.hasBufferAtTime(e.seekTime))return p.pruneBuffer(),ae(p.getContinuousBufferTimeForTargetTime(e.seekTime))&&p.setIsBufferingCompleted(!0),void t();f.clearScheduleTimer(),k.abortRequests(),p.prepareForPlaybackSeek().then((function(){var t=p.getAllRangesWithSafetyFactor(e.seekTime);return p.clearBuffers(t)})).then((function(){var n=p.getContinuousBufferTimeForTargetTime(e.seekTime);if(ae(n))p.setIsBufferingCompleted(!0),t();else{var r=isNaN(n)?e.seekTime:n;De(r),p.setSeekTarget(r);var i=[];i.push(p.updateAppendWindow());var o=xe();i.push(p.updateBufferTimestampOffset(o)),Promise.all(i).then((function(){f.setInitSegmentRequired(!0),f.setCheckPlaybackQuality(!1),f.startScheduleTimer(),t()}))}})).catch((function(e){n.error(e)}))}))},prepareOuterPeriodPlaybackSeeking:function(){return new Promise((function(e,t){try{f.clearScheduleTimer(),k.abortRequests(),p.prepareForPlaybackSeek().then((function(){return p.pruneAllSafely()})).then((function(){e()}))}catch(e){t(e)}}))},reset:function(e,n){v&&v.reset(),p&&(p.reset(e,n),p=null),f&&(f.reset(),f=null),m&&(m.reset(),m=null),b&&(b=null),F&&F.unRegisterStreamType(te(),C),S.off(u.Z.DATA_UPDATE_COMPLETED,he,t),S.off(u.Z.INIT_FRAGMENT_NEEDED,se,t),S.off(u.Z.MEDIA_FRAGMENT_NEEDED,le,t),S.off(u.Z.INIT_FRAGMENT_LOADED,Re,t),S.off(u.Z.MEDIA_FRAGMENT_LOADED,Ce,t),S.off(u.Z.BUFFER_LEVEL_STATE_CHANGED,pe,t),S.off(u.Z.BUFFER_CLEARED,fe,t),S.off(u.Z.SEEK_TARGET,Pe,t),S.off(u.Z.FRAGMENT_LOADING_ABANDONED,ve,t),S.off(u.Z.FRAGMENT_LOADING_COMPLETED,be,t),S.off(u.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,_e,t),S.off(u.Z.SET_NON_FRAGMENTED_TEXT,Ee,t),S.off(u.Z.QUOTA_EXCEEDED,we,t),S.off(u.Z.SOURCE_BUFFER_ERROR,me,t),S.off(u.Z.BYTES_APPENDED_END_FRAGMENT,ge,t),oe(),C=null,I=null}},n=(0,d.Z)(A).getInstance().getLogger(t),oe(),S.on(u.Z.DATA_UPDATE_COMPLETED,he,t,{priority:l.Z.EVENT_PRIORITY_HIGH}),S.on(u.Z.INIT_FRAGMENT_NEEDED,se,t),S.on(u.Z.MEDIA_FRAGMENT_NEEDED,le,t),S.on(u.Z.INIT_FRAGMENT_LOADED,Re,t),S.on(u.Z.MEDIA_FRAGMENT_LOADED,Ce,t),S.on(u.Z.BUFFER_LEVEL_STATE_CHANGED,pe,t),S.on(u.Z.BUFFER_CLEARED,fe,t),S.on(u.Z.SEEK_TARGET,Pe,t),S.on(u.Z.FRAGMENT_LOADING_ABANDONED,ve,t),S.on(u.Z.FRAGMENT_LOADING_COMPLETED,be,t),S.on(u.Z.QUOTA_EXCEEDED,we,t),S.on(u.Z.SET_FRAGMENTED_TEXT_AFTER_DISABLED,_e,t),S.on(u.Z.SET_NON_FRAGMENTED_TEXT,Ee,t),S.on(u.Z.SOURCE_BUFFER_ERROR,me,t),S.on(u.Z.BYTES_APPENDED_END_FRAGMENT,ge,t),t}re.__dashjs_factory_name="StreamProcessor";const ie=c.Z.getClassFactory(re),oe=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null};var ae=n(9032);function se(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(r.headers.keys());try{for(h.s();!(i=h.n()).done;){var p=i.value;l+=p+": "+r.headers.get(p)+"\r\n"}}catch(e){h.e(e)}finally{h.f()}if(e.response.responseHeaders=l,!r.body)return r.arrayBuffer().then((function(t){e.response.response=t;var n={loaded:t.byteLength,total:t.byteLength,stream:!1};e.progress(n),e.onload(),e.onend()}));var f,m,b,_=parseInt(r.headers.get("Content-Length"),10),E=0,w=!1,T=new Uint8Array,A=0;if(g===o.Z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&a){var S=t,x=0,I=function(e){if(Array.isArray(e))return e}(b=r.body.tee())||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),2!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(b)||se(b,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),R=I[0],C=I[1];f=R.getReader(),m=[],f.read().then((function r(i){var o=i.value,s=i.done;if(x=Date.now(),o&&o.length){var c=x-S,d=o.length;m.push({chunkDownloadTimeRelativeMS:x-t,chunkDownloadDurationMS:c,chunkBytes:d,kbps:Math.round(8*d/(c/1e3)),bufferLevel:n.getCurrentBufferLevel(u.mediaType)})}if(s){var h=x-t,p=m.reduce((function(e,t){return e+t.chunkBytes}),0);return a.addMeasurement(u,h,m,y,v,l),void e.progress({loaded:p,total:p,lengthComputable:!0,time:a.getEstimatedDownloadDurationMS(u),stream:!0})}return S=Date.now(),f.read().then(r)})),e.reader=C.getReader()}else e.reader=r.body.getReader();var M=[],L=[],P=[],D=!0;c(e,(function t(n){var r=n.value;if(n.done){if(T){if(g!==o.Z.ABR_FETCH_THROUGHPUT_CALCULATION_AAST){var i=null,a=null;g===o.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING?(i=function(e,t){try{var n,r;n=e.filter((function(t,n){return n1){for(var o=0,a=0,s=0;s1)i.push(8*r[s].bytes/l),a=0;else{0===a&&(a=n[s].ts,o=0);var u=r[s].ts-a;u>1?(o+=r[s].bytes,i.push(8*o/u),a=0):o+=r[s].bytes}}if(i.length>0)return i.reduce((function(e,t){return e+t}),0)/i.length}return null}catch(e){return null}}(L,P),i&&(a=8*E/i)):g===o.Z.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA&&(a=d(M,E)),e.progress({loaded:E,total:isNaN(_)?E:_,lengthComputable:!0,time:a,stream:!0})}e.response.response=T.buffer}return e.onload(),void e.onend()}if(r&&r.length>0){T=function(e,t){if(0===e.length)return t;var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(T,r),E+=r.length,M.push({ts:Date.now(),bytes:r.length}),g===o.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING&&D&&s.findLastTopIsoBoxCompleted(["moof"],T,A).found&&(D=!1,L.push({ts:performance.now(),bytes:r.length}));var l=s.findLastTopIsoBoxCompleted(["moov","mdat"],T,A);if(l.found){var u,h=l.lastCompletedOffset+l.size;g!==o.Z.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING||D||(D=!0,P.push({ts:performance.now(),bytes:T.length})),h===T.length?(u=T,T=new Uint8Array):(u=new Uint8Array(T.subarray(0,h)),T=T.subarray(h)),e.progress({data:u.buffer,lengthComputable:!1,noTrace:!0}),A=0}else A=l.lastCompletedOffset,w||(e.progress({lengthComputable:!1,noTrace:!0}),w=!0)}c(e,t)}))})).catch((function(t){e.onerror&&e.onerror(t)}))}))}function c(e,t){e.reader.read().then(t).catch((function(t){e.onerror&&200===e.response.status&&e.onerror(t)}))}function d(e,t){try{if((e=e.filter((function(n){return n.bytes>t/4/e.length}))).length>1){var n=0,r=(e[e.length-1].ts-e[0].ts)/e.length;return e.forEach((function(t,i){var o=e[i+1];if(o){var a=o.ts-t.ts;n+=a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function De(e,t){if(e){if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Ce.Y.indexOf(n[0].schemeIdUri)>=0)return t===o.Z.IMAGE}if(e.ContentComponent_asArray&&e.ContentComponent_asArray.length>0){if(e.ContentComponent_asArray.length>1)return t===o.Z.MUXED;if(e.ContentComponent_asArray[0].contentType===t)return!0}var r=t===o.Z.TEXT?new RegExp("(ttml|vtt|wvtt|stpp)"):new RegExp(t);if(e.Representation_asArray&&e.Representation_asArray.length){var i=e.Representation_asArray[0].codecs;if(r.test(i))return!0}if(e.hasOwnProperty(a.Z.MIME_TYPE))return r.test(e.mimeType);if(e.Representation_asArray)for(var s,l=0;l0){var t=e.Representation_asArray[0];if(t.hasOwnProperty(a.Z.SEGMENT_TEMPLATE)||t.hasOwnProperty(a.Z.SEGMENT_TIMELINE)||t.hasOwnProperty(a.Z.SEGMENT_LIST)||t.hasOwnProperty(a.Z.SEGMENT_BASE))return!0}return!1}function h(e){return u(e,o.Z.VIDEO)}function p(e){return u(e,o.Z.TEXT)}function f(e){return u(e,o.Z.IMAGE)}function m(e){return e&&Array.isArray(e.Representation_asArray)&&e.Representation_asArray.sort((function(e,t){return e.bandwidth-t.bandwidth})),e}function g(e,t){return e&&e.Period_asArray&&l(t)&&e.Period_asArray[t]?e.Period_asArray[t].AdaptationSet_asArray:[]}function y(e){return e&&e.Period_asArray?e.Period_asArray:[]}function v(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===a.Z.DYNAMIC),t}function b(e){return e&&e.EssentialProperty_asArray&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map((function(e){return{schemeIdUri:e.schemeIdUri,value:e.value}})):null}function _(e){if(!e||!e.S_asArray)return NaN;var t=e.S_asArray[0],n=e.S_asArray[1];return t.hasOwnProperty("d")?t.d:n.t-t.t}function E(e,t){if(!e)throw new Error("Period cannot be null or undefined");var n=me.DEFAULT_ID+"_"+t;return e.hasOwnProperty(a.Z.ID)&&e.id.length>0&&"__proto__"!==e.id&&(n=e.id),n}function T(e,t,n){var r,i=[];if(!e)return i;for(r=0;r0&&l(e)?r[e]:null},getIndexForAdaptation:function(e,t,n){if(!e)return-1;for(var r=g(t,n),o=0;o0&&l(e)?n[e]:null},getCodec:function(e,t,n){var r=null;if(e&&e.Representation_asArray&&e.Representation_asArray.length>0){var i=l(t)&&t>=0&&t0?e.Representation_asArray[0].mimeType:null},getKID:function(e){return e&&e.hasOwnProperty(a.Z.CENC_DEFAULT_KID)?e[a.Z.CENC_DEFAULT_KID]:null},getLabelsForAdaptation:function(e){if(!e||!Array.isArray(e.Label_asArray))return[];for(var t=[],n=0;n0&&(n=-1!==e.profiles.indexOf(t)),n},getDuration:function(e){return e&&e.hasOwnProperty(a.Z.MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:e&&"dynamic"==e.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(e){return e&&e.bandwidth?e.bandwidth:NaN},getManifestUpdatePeriod:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=NaN;return e&&e.hasOwnProperty(a.Z.MINIMUM_UPDATE_PERIOD)&&(n=e.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-t,1)},getPublishTime:function(e){return e&&e.hasOwnProperty(a.Z.PUBLISH_TIME)?new Date(e[a.Z.PUBLISH_TIME]):null},getRepresentationCount:function(e){return e&&Array.isArray(e.Representation_asArray)?e.Representation_asArray.length:0},getBitrateListForAdaptation:function(e){var t=m(e);return(t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray:[]).map((function(e){return{bandwidth:e.bandwidth,width:e.width||0,height:e.height||0,scanType:e.scanType||null,id:e.id||null}}))},getRepresentationFor:function(e,t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0&&l(e)?t.Representation_asArray[e]:null},getRepresentationsForAdaptation:function(e){var t,n,r,i,o=[],s=function(e){if(e&&e.period&&l(e.period.index)){var t=e.period.mpd.manifest.Period_asArray[e.period.index];if(t&&t.AdaptationSet_asArray&&l(e.index))return m(t.AdaptationSet_asArray[e.index])}}(e);if(s&&s.Representation_asArray){if(e&&e.period&&l(e.period.index)){var u=A(e.period.mpd.manifest);u&&(n=u[0])}for(var d=0,h=s.Representation_asArray.length;d=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"==typeof t){var o=this;return r[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==Ve(e[e.length-1])&&e.push(a(e,o)),t.apply(this,e)}))}return r[Symbol.replace].call(this,e,t)},je.apply(this,arguments)}function He(e){var t="function"==typeof Map?new Map:void 0;return He=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ze(e,arguments,We(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qe(r,e)},He(e)}function Ze(e,t,n){return Ze=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&qe(i,n.prototype),i},Ze.apply(null,arguments)}function qe(e,t){return qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qe(e,t)}function We(e){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},We(e)}var Ye="static",Ke="dynamic",$e="cmsd-",Xe=$e+Ye,Qe=$e+Ke,Je="stream",et=["mb","st","sf","v"],tt={video:"v",audio:"a",text:"tt",stream:Je},nt=/^[-0-9]/;function rt(){var e,t,n,r,i=this.context,o=(0,l.Z)(i).getInstance();function a(){n={},r={}}function s(e){e&&Object.keys(e).forEach((function(t){et.includes(t)||delete e[t]}))}function c(e){return!e||"false"!==e.toLowerCase()&&(nt.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}function h(e){try{for(var n={},r=e.split(","),i=0;i=0;c--){var d=l[c].match(je(/^((?:(?!:)[\s\S])*):[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(.*)$/,{key:1,value:2}));if(d&&d.groups){var m=d.groups.key.toLowerCase(),g=d.groups.value;switch(m){case Xe:i=h(g),o.trigger(u.Z.CMSD_STATIC_HEADER,i);break;case Qe:a||(a=p(g))}}}var y=Je;return i&&i.ot?y=i.ot:t&&(y=f(t)),s(n[y]),s(r[y]),i&&(n[y]=Object.assign(n[y]||{},i)),a&&(r[y]=Object.assign(r[y]||{},a)),{static:i,dynamic:a}},getMaxBitrate:function(e){var t=f(e);return m(Ke,t,"mb")||-1},getEstimatedThroughput:function(e){var t=f(e);return m(Ke,t,"etp")||null},getResponseDelay:function(e){var t=f(e);return m(Ke,t,"rd")||null},getRoundTripTime:function(e){var t=f(e);return m(Ke,t,"rtt")||null}},t=(0,d.Z)(i).getInstance().getLogger(e),a(),e}rt.__dashjs_factory_name="CmsdModel";const it=c.Z.getSingletonFactory(rt);function ot(){var e,t,n=this.context,r={};function i(){t=(0,d.Z)(n).getInstance().getLogger(e)}function o(e){for(var t={},n=0,r=0,i=0,o=0,a=e.length,s=0;se.bitrate&&(n=!1):t=e.bitrate})),n}return e={setup:i,addMeasurement:function(e,t,n,i,a){e&&e.mediaType&&!r[e.mediaType]&&(r[e.mediaType]=[]);var s=e.mediaInfo.bitrateList.find((function(t){return t.id===e.representationId}));r[e.mediaType].push({index:e.index,repId:e.representationId,mediaType:e.mediaType,requestTimeMS:i,adjustedAvailabilityStartTimeMS:e.availabilityStartTime.getTime(),segDurationMS:1e3*e.duration,chunksDurationMS:n.reduce((function(e,t){return e+t.chunkDownloadDurationMS}),0),segmentBytes:n.reduce((function(e,t){return e+t.chunkBytes}),0),bitrate:s&&s.bandwidth,bitrateList:e.mediaInfo.bitrateList,chunkMeasurements:n,fetchDownloadDurationMS:t,throughputCapacityDelayMS:a,getEstimatedBufferLevel:o(n.slice(1))}),r[e.mediaType].length>10&&r[e.mediaType].shift()},getThroughputCapacityDelayMS:function(e,t){var n=r[e.mediaType]&&r[e.mediaType].slice(-3);return!n||n.length<3?0:a(n)?t/4>250?250:t/4:0},getEstimatedDownloadDurationMS:function(e){var n=r[e.mediaType].slice(-1).pop(),i=r[e.mediaType].slice(-3),o=n.chunkMeasurements.slice(-1).pop().chunkDownloadTimeRelativeMS;n.bufferLevelAtSegmentStart=n.getEstimatedBufferLevel(o/2),n.bufferLevelAtSegmentEnd=n.getEstimatedBufferLevel(o);var s=a(i),l=s?.6:.8;if(n.isBufferStable&&1.05*n.segDurationMS.2*n.chunkMeasurements.length){var m=c/d,g=n.segmentBytes/m;return n.fetchDownloadDurationMSn.bitrate)return y=e.bandwidth,!0})),y===n.bitrate?n.fetchDownloadDurationMS*l:l*n.segmentBytes*8*1e3/y}},i(),e}ot.__dashjs_factory_name="LowLatencyThroughputModel";const at=c.Z.getSingletonFactory(ot);var st=n(5717);function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e){e=e||{};var t,n,r,i,a,s,c,h,p,f,m,g=this.context,y=e.errHandler,v=e.dashMetrics,b=e.mediaPlayerModel,_=e.requestModifier,E=e.boxParser,T=e.errors,A=e.requestTimeout||0,S=(0,l.Z)(g).getInstance(),x=(0,I.Z)(g).getInstance();function C(e,t){var l,d=e.request,m=[],T=!0,I=!0,M=new Date,L=M,P=0,D=null,O=null;if(!_||!v||!y)throw new Error("config object is not correct or missing");var N,k=function(e){d.requestStartDate=M,d.requestEndDate=new Date,d.firstByteDate=d.firstByteDate||M,d.fileLoaderType=O;var t=l.response?l.response.responseURL:null,n=l.response?l.response.status:null,r=l.response&&l.response.getAllResponseHeaders?l.response.getAllResponseHeaders():l.response?l.response.responseHeaders:null,i=r&&x.get().streaming.cmsd&&x.get().streaming.cmsd.enabled?c.parseResponseHeaders(r,d.mediaType):null;v.addHttpRequest(d,t,n,r,e?m:null,i)},F=function(e){I=!1,k(e),d.type===R.w.MPD_TYPE&&(v.addManifestUpdate(d),S.trigger(u.Z.MANIFEST_LOADING_FINISHED,{request:d}))},B=function(){if(D&&(clearTimeout(D),D=null),-1!==n.indexOf(l)&&(n.splice(n.indexOf(l),1),I))if(F(!1),t>0){try{x.get().streaming.utcSynchronization.enableBackgroundSyncAfterSegmentDownloadError&&d.type===R.w.MEDIA_SEGMENT_TYPE&&b.getRetryAttemptsForType(R.w.MEDIA_SEGMENT_TYPE)===t&&S.trigger(u.Z.ATTEMPT_BACKGROUND_SYNC)}catch(e){}t--;var r={config:e};i.push(r),r.timeout=setTimeout((function(){-1!==i.indexOf(r)&&(i.splice(i.indexOf(r),1),C(e,t))}),b.getRetryIntervalsForType(d.type))}else{if(d.type===R.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE)return;y.error(new w.Z(a[d.type],d.url+" is not available",{request:d,response:l.response})),e.error&&e.error(d,"error",l.response.statusText,l.response),e.complete&&e.complete(d,l.response.statusText)}};d.hasOwnProperty("availabilityTimeComplete")&&!1===d.availabilityTimeComplete&&window.fetch&&"arraybuffer"===d.responseType&&d.type===R.w.MEDIA_SEGMENT_TYPE?((N=ce(g).create({requestModifier:_,lowLatencyThroughputModel:p,boxParser:E})).setup({dashMetrics:v}),O=o.Z.FILE_LOADER_TYPES.FETCH):(N=(0,ae.Z)(g).create({requestModifier:_}),O=o.Z.FILE_LOADER_TYPES.XHR);var U=null,z=_.modifyRequestURL?_.modifyRequestURL(d.url):d.url;if(x.get().streaming.cmcd&&x.get().streaming.cmcd.enabled){var G=x.get().streaming.cmcd.mode;if(G===o.Z.CMCD_MODE_QUERY){var V=function(e){try{var t=[],n=s.getQueryParameter(e);return n&&t.push(n),t}catch(e){return[]}}(d);z=Fe.Z.addAditionalQueryParameterToUrl(z,V)}else G===o.Z.CMCD_MODE_HEADER&&(U=s.getHeaderParameters(d))}var j=h.getXHRWithCredentialsForType(d.type);if(d.queryParams){var H=Object.keys(d.queryParams).map((function(e){return{key:e,value:d.queryParams[e]}}));z=Fe.Z.addAditionalQueryParameterToUrl(z,H)}d.url=z,l={url:z,method:R.w.GET,withCredentials:j,request:d,onload:function(){l.response.status>=200&&l.response.status<=299&&(F(!0),e.success&&e.success(l.response.response,l.response.statusText,l.response.responseURL),e.complete&&e.complete(d,l.response.statusText))},onend:B,onerror:B,progress:function(t){var n=new Date;T&&(T=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(d.firstByteDate=n)),t.lengthComputable&&(d.bytesLoaded=t.loaded,d.bytesTotal=t.total),t.noTrace||(m.push({s:L,d:t.time?t.time:n.getTime()-L.getTime(),b:[t.loaded?t.loaded-P:0]}),L=n,P=t.loaded),D&&(clearTimeout(D),D=null),x.get().streaming.fragmentRequestProgressTimeout>0&&(D=setTimeout((function(){f.warn("Abort request "+l.url+" due to progress timeout"),l.response.onabort=null,l.loader.abort(l),B()}),x.get().streaming.fragmentRequestProgressTimeout)),e.progress&&t&&e.progress(t)},onabort:function(){k(!0),D&&(clearTimeout(D),D=null),e.abort&&e.abort(d)},ontimeout:function(e){var t;if(e.lengthComputable){var n=e.loaded/e.total*100;t="Request timeout: loaded: "+e.loaded+", out of: "+e.total+" : "+n.toFixed(3)+"% Completed"}else t="Request timeout: non-computable download size";f.warn(t)},loader:N,timeout:A,headers:U};var Z=(new Date).getTime();if(isNaN(d.delayLoadingTime)||Z>=d.delayLoadingTime)n.push(l),N.load(l);else{var q={httpRequest:l};r.push(q),q.delayTimeout=setTimeout((function(){if(-1!==r.indexOf(q)){r.splice(r.indexOf(q),1);try{M=new Date,L=M,n.push(q.httpRequest),N.load(q.httpRequest)}catch(e){q.httpRequest.onerror()}}}),d.delayLoadingTime-Z)}}return t={load:function(e){e.request?C(e,b.getRetryAttemptsForType(e.request.type)):e.error&&e.error(e.request,"error")},abort:function(){i.forEach((function(e){clearTimeout(e.timeout),e.config.request&&e.config.abort&&e.config.abort(e.config.request)})),i=[],r.forEach((function(e){return clearTimeout(e.delayTimeout)})),r=[],n.forEach((function(e){e.request.type!==R.w.MSS_FRAGMENT_INFO_SEGMENT_TYPE&&(e.onloadend=e.onerror=e.onprogress=void 0,e.loader.abort(e))})),n=[]}},f=(0,d.Z)(g).getInstance().getLogger(t),n=[],r=[],i=[],s=Ge(g).getInstance(),c=it(g).getInstance(),p=at(g).getInstance(),h=(0,st.Z)(g).getInstance(),lt(m={},R.w.MPD_TYPE,T.DOWNLOAD_ERROR_ID_MANIFEST_CODE),lt(m,R.w.XLINK_EXPANSION_TYPE,T.DOWNLOAD_ERROR_ID_XLINK_CODE),lt(m,R.w.INIT_SEGMENT_TYPE,T.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),lt(m,R.w.MEDIA_SEGMENT_TYPE,T.DOWNLOAD_ERROR_ID_CONTENT_CODE),lt(m,R.w.INDEX_SEGMENT_TYPE,T.DOWNLOAD_ERROR_ID_CONTENT_CODE),lt(m,R.w.BITSTREAM_SWITCHING_SEGMENT_TYPE,T.DOWNLOAD_ERROR_ID_CONTENT_CODE),lt(m,R.w.OTHER_TYPE,T.DOWNLOAD_ERROR_ID_CONTENT_CODE),a=m,t}ut.__dashjs_factory_name="HTTPLoader";const ct=c.Z.getClassFactory(ut);function dt(){var e;function t(){e={}}function n(){t()}return n(),{getLoader:function(t){for(var n in e)if(e.hasOwnProperty(n)&&t.startsWith(n))return e[n];return ct},registerLoader:function(t,n){e[t]=n},unregisterLoader:function(t){e[t]&&delete e[t]},unregisterAllLoader:t,reset:n}}dt.__dashjs_factory_name="SchemeLoaderFactory";const ht=c.Z.getSingletonFactory(dt);function pt(e){e=e||{};var t,n,r=this.context;return t=ht(r).getInstance(),{load:function(i){if(!n){var o=t.getLoader(i&&i.request?i.request.url:null);n=o(r).create({errHandler:e.errHandler,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,dashMetrics:e.dashMetrics,boxParser:e.boxParser?e.boxParser:null,constants:e.constants?e.constants:null,dashConstants:e.dashConstants?e.dashConstants:null,urlUtils:e.urlUtils?e.urlUtils:null,requestTimeout:isNaN(e.requestTimeout)?0:e.requestTimeout,errors:e.errors})}n.load(i)},abort:function(){n&&n.abort()}}}pt.__dashjs_factory_name="URLLoader";const ft=c.Z.getClassFactory(pt);function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function yt(e){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yt(e)}const vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&>(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=yt(t);if(n){var i=yt(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){return!t||"object"!==mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).checkForExistenceOnly=!0,t}return i}(m.Z);function bt(e){e=e||{};var t,n,r=this.context,i=e.eventBus,a=e.events,s=e.urlUtils,l=e.errors,u=e.streamId;return t={checkForExistence:function(e){var t=function(t){i.trigger(a.CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var r=new vt(e.url);n.load({request:r,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)},load:function(e){var r=function(n,r){i.trigger(a.LOADING_COMPLETED,{request:e,response:n||null,error:r||null,sender:t})};e?n.load({request:e,progress:function(n){i.trigger(a.LOADING_PROGRESS,{request:e,stream:n.stream,streamId:u}),n.data&&i.trigger(a.LOADING_DATA_PROGRESS,{request:e,response:n.data||null,error:null,sender:t})},success:function(e){r(e)},error:function(e,t,n){r(void 0,new w.Z(l.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,n,t))},abort:function(e){e&&i.trigger(a.LOADING_ABANDONED,{mediaType:e.mediaType,request:e,sender:t})}}):r(void 0,new w.Z(l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){n&&n.abort()},reset:function(){n&&(n.abort(),n=null)}},n=ft(r).create({errHandler:e.errHandler,errors:l,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,urlUtils:s,constants:o.Z,boxParser:e.boxParser,dashConstants:e.dashConstants,requestTimeout:e.settings.get().streaming.fragmentRequestTimeout}),t}bt.__dashjs_factory_name="FragmentLoader";const _t=c.Z.getClassFactory(bt);function Et(){return{modifyResponseAsync:function(e){return Promise.resolve(e)}}}Et.__dashjs_factory_name="SegmentResponseModifier";const wt=c.Z.getSingletonFactory(Et);function Tt(e){e=e||{};var t,n,r,i=this.context,a=(0,l.Z)(i).getInstance(),s=e.errHandler,c=e.mediaPlayerModel,p=e.dashMetrics,f=(0,d.Z)(i).getInstance(),m=wt(i).getInstance(),g=e.streamInfo;function y(){return g.id}function v(){for(var e in r)r[e].reset();r={}}function b(e){if(e.sender){var t=e.request,r=e.response,i=t.isInitializationRequest(),s=t.mediaInfo.streamInfo;if(e.error&&(t.mediaType===o.Z.AUDIO||t.mediaType===o.Z.VIDEO||t.mediaType===o.Z.TEXT&&t.mediaInfo.isFragmented)&&a.trigger(u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD,{entry:e.request.serviceLocation}),r&&s){var l=function(e,t,n,r){var i=new oe;return i.streamId=n,i.mediaInfo=t.mediaInfo,i.segmentType=t.type,i.start=t.startTime,i.duration=t.duration,i.end=i.start+i.duration,i.bytes=e,i.index=t.index,i.quality=t.quality,i.representationId=t.representationId,i.endFragment=r,i}(r,t,g.id,e.type!==u.Z.FRAGMENT_LOADING_PROGRESS);m.modifyResponseAsync(l).then((function(e){a.trigger(i?u.Z.INIT_FRAGMENT_LOADED:u.Z.MEDIA_FRAGMENT_LOADED,{chunk:e,request:t},{streamId:s.id,mediaType:t.mediaType})})).catch((function(e){n.error(e),a.trigger(i?u.Z.INIT_FRAGMENT_LOADED:u.Z.MEDIA_FRAGMENT_LOADED,{chunk:l,request:t},{streamId:s.id,mediaType:t.mediaType})}))}else n.warn("No "+t.mediaType+" bytes to push or stream is inactive.")}}return t={getStreamId:y,getModel:function(t){var n=r[t];return n||(n=E(i).create({streamInfo:g,type:t,dashMetrics:p,fragmentLoader:_t(i).create({dashMetrics:p,mediaPlayerModel:c,errHandler:s,requestModifier:(0,K.Z)(i).getInstance(),settings:e.settings,boxParser:e.boxParser,eventBus:a,events:u.Z,errors:x,dashConstants:e.dashConstants,urlUtils:e.urlUtils,streamId:y()}),debug:f,eventBus:a,events:u.Z}),r[t]=n),n},reset:function(){a.off(h.Z.FRAGMENT_LOADING_COMPLETED,b,this),a.off(h.Z.FRAGMENT_LOADING_PROGRESS,b,this),v()}},n=f.getLogger(t),v(),a.on(h.Z.FRAGMENT_LOADING_COMPLETED,b,t),a.on(h.Z.FRAGMENT_LOADING_PROGRESS,b,t),t}Tt.__dashjs_factory_name="FragmentController";const At=c.Z.getClassFactory(Tt),St=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=null,this.width=null,this.height=null,this.x=null,this.y=null},xt=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qualityIndex=NaN};function It(e){var t,n,r=this.context,i=e.streamInfo;function a(e){n.setTrackByIndex(e)}function s(){n&&n.reset()}return t={getStreamId:function(){return i.id},initialize:function(){n.addTracks();var e=n.getTracks();e&&e.length>0&&a(0)},provide:function(e,t){if("function"==typeof t){var r,i,o=n.getCurrentTrack();if(!o||o.segmentDuration<=0||null==e)t(null);else{(i=n.getThumbnailRequestForTime(e))&&(o.segmentDuration=i.duration),r=e%o.segmentDuration;var a=Math.floor(r*o.tilesHor*o.tilesVert/o.segmentDuration),s=new St;if(s.width=Math.floor(o.widthPerTile),s.height=Math.floor(o.heightPerTile),s.x=Math.floor(a%o.tilesHor)*o.widthPerTile,s.y=Math.floor(a/o.tilesHor)*o.heightPerTile,"readThumbnail"in o)return o.readThumbnail(e,(function(e){s.url=e,t(s)}));if(i)s.url=i.url,o.segmentDuration=NaN;else{var l=Math.floor(e/o.segmentDuration);s.url=function(e,t){var n=t+e.startNumber,r=(0,H.vi)(e.templateUrl,"Number",n);return r=(0,H.vi)(r,"Time",(n-1)*e.segmentDuration*e.timescale),r=(0,H.vi)(r,"Bandwidth",e.bandwidth),(0,H.eR)(r)}(o,l)}t(s)}}},setTrackByIndex:a,getCurrentTrackIndex:function(){return n.getCurrentTrackIndex()},getBitrateList:function(){var e=n.getTracks(),t=0;return e.map((function(e){var n=new xt;return n.mediaType=o.Z.IMAGE,n.qualityIndex=t++,n.bitrate=e.bitrate,n.width=e.width,n.height=e.height,n}))},reset:s},s(),n=(0,Ce.Z)(r).create({streamInfo:i,adapter:e.adapter,baseURLController:e.baseURLController,timelineConverter:e.timelineConverter,debug:e.debug,eventBus:e.eventBus,events:e.events,dashConstants:e.dashConstants,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController}),t}It.__dashjs_factory_name="ThumbnailController";const Rt=c.Z.getClassFactory(It);var Ct=n(7417);function Mt(e){var t;e=e||{};var n=[],r=(0,l.Z)(this.context).getInstance(),i=e.updateEventName,o=e.addBlacklistEventName;function a(e){-1===n.indexOf(e)&&(n.push(e),r.trigger(i,{entry:e}))}return t={add:a,contains:function(e){return!!(n.length&&e&&e.length)&&-1!==n.indexOf(e)},reset:function(){n=[]}},o&&r.on(o,(function(e){a(e.entry)}),t),t}Mt.__dashjs_factory_name="BlackListController";const Lt=c.Z.getClassFactory(Mt);var Pt=[o.Z.VIDEO,o.Z.AUDIO,o.Z.TEXT,o.Z.MUXED,o.Z.IMAGE];function Dt(e){e=e||{};var t,n,r,i,s,c,h,p,f,m,g,y,v,b,_,E,T,A,S=this.context,I=(0,l.Z)(S).getInstance(),R=(0,$.Z)(S).getInstance(),C=e.manifestModel,M=e.mediaPlayerModel,L=e.dashMetrics,P=e.manifestUpdater,D=e.adapter,O=e.timelineConverter,N=e.capabilities,k=e.errHandler,F=e.abrController,B=e.playbackController,U=e.eventController,z=e.mediaController,G=e.protectionController,V=e.textController,j=e.videoModel,H=e.streamInfo,Z=e.settings;function q(e,t){return new Promise((function(i,a){ne(),m=!0,oe();var s=j.getElement(),l=[];Pt.forEach((function(t){(t!==o.Z.TEXT||e)&&(t!==o.Z.VIDEO||!s||s&&/^VIDEO$/i.test(s.nodeName))&&l.push(W(t,e))})),Promise.all(l).then((function(){return e=t,new Promise((function(t){var n={},i=r.map((function(t){return t.createBufferSinks(e)}));Promise.all(i).then((function(e){e.forEach((function(e){e&&(n[e.getType()]=e)})),t(n)})).catch((function(){t(n)}))}));var e})).then((function(t){if(m=!1,0===r.length){var o="No streams to play.";k.error(new w.Z(x.MANIFEST_ERROR_ID_NOSTREAMS_CODE,o,C.getValue())),n.fatal(o)}else ae();e&&V.createTracks(H),i(t)})).catch((function(e){a(e)}))}))}function W(t,i){var s,l=D.getAllMediaInfoForType(H,t),c=[],d=null;if(!l||0===l.length)return n.info("No "+t+" data."),Promise.resolve();t===o.Z.VIDEO&&(h=!0),t===o.Z.AUDIO&&(p=!0);for(var f=0,m=l.length;f0&&(z.setInitialMediaSettingsForType(t,H),V.addMediaInfosToBuffer(H,t,c)),l=l.filter((function(e){return!e.isEmbedded})),0===l.length)return Promise.resolve();if(t===o.Z.IMAGE)return(y=Rt(S).create({streamInfo:H,adapter:D,baseURLController:e.baseURLController,timelineConverter:e.timelineConverter,debug:E,eventBus:I,events:u.Z,dashConstants:a.Z,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController})).initialize(),Promise.resolve();I.trigger(u.Z.STREAM_INITIALIZING,{streamInfo:H,mediaInfo:d}),z.setInitialMediaSettingsForType(t,H);var b=function(t,n){var i=t&&t.length>0?t[0]:null,a=g.getModel(i?i.type:null),s=i?i.type:null,l=i?i.mimeType:null,u=i?i.isFragmented:null,c=ie(S).create({streamInfo:H,type:s,mimeType:l,timelineConverter:O,adapter:D,manifestModel:C,mediaPlayerModel:M,fragmentModel:a,dashMetrics:e.dashMetrics,baseURLController:e.baseURLController,segmentBaseController:e.segmentBaseController,abrController:F,playbackController:B,mediaController:z,textController:V,errHandler:k,settings:Z,boxParser:_,segmentBlacklistController:v});c.initialize(n,h,u),r.push(c);for(var d=0;d0&&U.addInlineEvents(e,H.id)}}function ae(){for(var e=r.length,t=f.audio||f.video?new w.Z(x.DATA_UPDATE_FAILED_ERROR_CODE,x.DATA_UPDATE_FAILED_ERROR_MESSAGE):null,n=0;n0&&e.Representation_asArray[0].ContentProtection)}function me(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e||!e.hasOwnProperty("getStreamInfo"))return!1;var r=e.getStreamInfo(),i=n?n.getStreamInfo():te();if(!r||!i)return!1;var o=D.getAdaptationForType(r.index,t,r),a=D.getAdaptationForType(i.index,t,i);if(!o||!a)return!o&&!a;var s=o&&a&&o.mimeType===a.mimeType,l=a.Representation_asArray.map((function(e){return e.codecs})),u=o.Representation_asArray.map((function(e){return e.codecs})),c=u.some((function(e){return l.indexOf(e)>-1})),d=u.some((function(e){return l.some((function(t){return N.codecRootCompatibleWithCodec(t,e)}))}));return c||d&&s}function ge(e){b=e}function ye(){return b}return t={initialize:function(){I.on(u.Z.BUFFERING_COMPLETED,se,t),I.on(u.Z.DATA_UPDATE_COMPLETED,le,t),I.on(u.Z.INBAND_EVENTS,ue,t),G&&(I.on(u.Z.KEY_ERROR,re,t),I.on(u.Z.SERVER_CERTIFICATE_UPDATED,re,t),I.on(u.Z.LICENSE_REQUEST_COMPLETE,re,t),I.on(u.Z.KEY_SYSTEM_SELECTED,re,t),I.on(u.Z.KEY_SESSION_CREATED,re,t),I.on(u.Z.KEY_STATUSES_CHANGED,re,t)),V.initializeForStream(H),I.trigger(u.Z.STREAM_UPDATED,{streamInfo:H})},getStreamId:function(){return H?H.id:null},activate:function(e,t){return new Promise((function(n,r){if(!s)return ye()?(s=!0,I.trigger(u.Z.STREAM_ACTIVATED,{streamInfo:H}),void n(t)):void function(e,t){return q(e,t)}(e,t).then((function(e){s=!0,I.trigger(u.Z.STREAM_ACTIVATED,{streamInfo:H}),n(e)})).catch((function(e){r(e)}));n(t)}))},deactivate:K,getIsActive:function(){return s},getDuration:function(){return H?H.duration:NaN},getStartTime:J,getId:ee,getStreamInfo:te,getHasAudioTrack:function(){return p},getHasVideoTrack:function(){return h},startPreloading:function(e,t){return new Promise((function(i,o){ye()?o():(n.info("[startPreloading] Preloading next stream with id ".concat(ee())),ge(!0),q(e,t).then((function(){for(var e=0;e0;){var e=A.pop(),t=e.newMediaInfo,r=ce(e.oldMediaInfo);if(!r)return;n.push(r.prepareTrackSwitch()),n.push(r.selectMediaInfo(t))}return Promise.all(n)})).then((function(){m=!1,ae(),I.trigger(u.Z.STREAM_UPDATED,{streamInfo:H}),t()}))}))},reset:function(e){g&&(g.reset(),g=null),F&&H&&F.clearDataForStream(H.id),v&&(v.reset(),v=null),X(e),H=null,I.off(u.Z.DATA_UPDATE_COMPLETED,le,t),I.off(u.Z.BUFFERING_COMPLETED,se,t),I.off(u.Z.INBAND_EVENTS,ue,t),G&&(I.off(u.Z.KEY_ERROR,re,t),I.off(u.Z.SERVER_CERTIFICATE_UPDATED,re,t),I.off(u.Z.LICENSE_REQUEST_COMPLETE,re,t),I.off(u.Z.KEY_SYSTEM_SELECTED,re,t),I.off(u.Z.KEY_SESSION_CREATED,re,t),I.off(u.Z.KEY_STATUSES_CHANGED,re,t))},getProcessors:he,setMediaSource:function(e){return new Promise((function(t,i){for(var o=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:null;return me(e,o.Z.VIDEO,t)&&me(e,o.Z.AUDIO,t)},isProtectionCompatible:function(e){return!e||pe(o.Z.VIDEO,e)&&pe(o.Z.AUDIO,e)},getPreloaded:ye,getIsEndedEventSignaled:function(){return T},setIsEndedEventSignaled:Q,getAdapter:function(){return D},getHasFinishedBuffering:function(){return c},setPreloaded:ge,startScheduleControllers:function(){for(var e=r.length,t=0;t4&&i[e].shift()}function S(e,t){if(e&&e.request&&e.request.serviceLocation){var n=e.request.serviceLocation;-1===r[t].all.indexOf(n)&&r[t].all.push(n),r[t].current=n}}function I(){var e=p.getValue(),t=y.getContentSteering(e);return t||(t=m.getServiceDescriptionSettings().contentSteering),t}function R(){return new Promise((function(e){try{var o=I();if(!o||!o.serverUrl)return void e();var l=function(e){var t=e.serverUrl;n&&n.reloadUri&&(t=b.isRelative(n.reloadUri)?b.resolve(n.reloadUri,e.serverUrl):n.reloadUri);var o=[],a=r.baseUrl.all.concat(r.location.all);if(a.length>0){var s=a.map((function(e){var t=function(e){if(!e||!i[e]||0===i[e].length)return-1;var t=i[e].reduce((function(e,t){return e+t}))/i[e].length;return parseInt(t)}(e);return{serviceLocation:e,throughput:t}}));s.sort((function(e,t){return t.throughput-e.throughput}));var l="",u="";s.forEach((function(e,t){0!==t&&(l="".concat(l,","),e.throughput>-1&&(u="".concat(u,","))),l="".concat(l).concat(e.serviceLocation),e.throughput>-1&&(u="".concat(u).concat(e.throughput))})),o.push({key:"_DASH_pathway",value:'"'.concat(l,'"')}),o.push({key:"_DASH_throughput",value:u})}return Fe.Z.addAditionalQueryParameterToUrl(t,o)}(o),u=new Nt(l);s.load({request:u,success:function(t){!function(e){e&&e[a.Z.CONTENT_STEERING_RESPONSE.VERSION]&&1===parseInt(e[a.Z.CONTENT_STEERING_RESPONSE.VERSION])&&((n=new kt).version=e[a.Z.CONTENT_STEERING_RESPONSE.VERSION],e[a.Z.CONTENT_STEERING_RESPONSE.TTL]&&!isNaN(e[a.Z.CONTENT_STEERING_RESPONSE.TTL])&&(n.ttl=e[a.Z.CONTENT_STEERING_RESPONSE.TTL]),e[a.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]&&(n.reloadUri=e[a.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]),e[a.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]&&(n.pathwayPriority=e[a.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]),e[a.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES]&&(n.pathwayClones=e[a.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES],n.pathwayClones=n.pathwayClones.filter((function(e){return function(e){return e[a.Z.CONTENT_STEERING_RESPONSE.BASE_ID]&&e[a.Z.CONTENT_STEERING_RESPONSE.ID]&&e[a.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT]&&e[a.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][a.Z.CONTENT_STEERING_RESPONSE.HOST]}(e)}))),L())}(t),g.trigger(h.Z.CONTENT_STEERING_REQUEST_COMPLETED,{currentSteeringResponseData:n,url:l}),e()},error:function(r,i,o,a){!function(e,r){try{switch(t.warn("Error fetching data from content steering server",e),r.status){case 410:break;case 429:var i=r&&r.getResponseHeader?r.getResponseHeader("retry-after"):null;null!==i&&(n||(n={}),n.ttl=parseInt(i)),L();break;default:L()}}catch(e){t.error(e)}}(r,a),e(r)},complete:function(){r.baseUrl.all=C(r.baseUrl),r.location.all=C(r.location)}})}catch(t){e(t)}}))}function C(e){return e.all&&0!==e.all.length&&e.current?e.all.filter((function(t){return t===e.current})):[]}function M(e){try{var r=[];return e&&0!==e.length&&n&&n.pathwayClones&&0!==n.pathwayClones.length?(n.pathwayClones.forEach((function(t){var n=e.filter((function(e){return t[a.Z.CONTENT_STEERING_RESPONSE.BASE_ID]===e.serviceLocation})),i=null;if(n&&n.length>0&&(i=n[0]),i){var o=new URL(i.url),s=t[a.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][a.Z.CONTENT_STEERING_RESPONSE.HOST];s=Fe.Z.stringHasProtocol(s)?s:"".concat(o.protocol,"//").concat(s);var l={synthesizedUrl:"".concat(s).concat(o.pathname),serviceLocation:t[a.Z.CONTENT_STEERING_RESPONSE.ID],queryParams:t[a.Z.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][a.Z.CONTENT_STEERING_RESPONSE.PARAMS],reference:i};r.push(l)}})),r):r}catch(e){return t.error(e),[]}}function L(){n&&n.ttl&&!isNaN(n.ttl)&&(o&&clearTimeout(o),o=setTimeout((function(){R()}),1e3*n.ttl))}function P(){o&&clearTimeout(o),o=null}function D(){n=null,i={},r={baseUrl:{current:null,all:[]},location:{current:null,all:[]}},P()}return e={reset:function(){D(),g.off(h.Z.FRAGMENT_LOADING_STARTED,_,e),g.off(h.Z.MANIFEST_LOADING_STARTED,E,e),g.off(h.Z.MANIFEST_LOADING_FINISHED,w,e),g.off(h.Z.THROUGHPUT_MEASUREMENT_STORED,T,e)},setConfig:function(e){e&&(e.adapter&&(y=e.adapter),e.errHandler&&(l=e.errHandler),e.dashMetrics&&(u=e.dashMetrics),e.mediaPlayerModel&&(c=e.mediaPlayerModel),e.requestModifier&&(f=e.requestModifier),e.manifestModel&&(p=e.manifestModel),e.serviceDescriptionController&&(m=e.serviceDescriptionController),e.eventBus&&(g=e.eventBus))},loadSteeringData:R,getCurrentSteeringResponseData:function(){return n},shouldQueryBeforeStart:function(){var e=I();return!!e&&e.queryBeforeStart},getSteeringDataFromManifest:I,stopSteeringRequestTimer:P,getSynthesizedBaseUrlElements:function(e){try{return M(e).map((function(e){var t=new _e(e.synthesizedUrl,e.serviceLocation);return t.queryParams=e.queryParams,t.dvb_priority=e.reference.dvb_priority,t.dvb_weight=e.reference.dvb_weight,t.availabilityTimeOffset=e.reference.availabilityTimeOffset,t.availabilityTimeComplete=e.reference.availabilityTimeComplete,t}))}catch(e){return t.error(e),[]}},getSynthesizedLocationElements:function(e){try{return M(e).map((function(e){var t=new Me(e.synthesizedUrl,e.serviceLocation);return t.queryParams=e.queryParams,t}))}catch(e){return t.error(e),[]}},initialize:function(){s=ft(v).create({errHandler:l,dashMetrics:u,mediaPlayerModel:c,requestModifier:f,errors:x}),g.on(h.Z.FRAGMENT_LOADING_STARTED,_,e),g.on(h.Z.MANIFEST_LOADING_STARTED,E,e),g.on(h.Z.MANIFEST_LOADING_FINISHED,w,e),g.on(h.Z.THROUGHPUT_MEASUREMENT_STORED,T,e)}},t=(0,d.Z)(v).getInstance().getLogger(e),D(),e}Ft.__dashjs_factory_name="ContentSteeringController";const Bt=c.Z.getSingletonFactory(Ft);function Ut(){var e,t,n,r=this.context,i=(0,I.Z)(r).getInstance();return e={select:function(e){if(!e||0===e.length)return null;var r=null;return i.get().streaming.applyContentSteering&&(r=function(e){var r=n.getCurrentSteeringResponseData();return r&&r.pathwayPriority&&r.pathwayPriority.length>0?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,i=null,o=function(){var o=e[r],a=n.findIndex((function(e){return e.serviceLocation&&e.serviceLocation===o}));if(-1!==a&&!t.contains(n[a].serviceLocation))return i=n[a],"break";r+=1};r0&&void 0!==arguments[0]&&arguments[0];s=!0;var t=p.getValue(),n=t.url,r=null,i=m.getPatchLocation(t),o=f.select(i),a=null;if(o&&!e)n=o.url,r=o.serviceLocation,a=o.queryParams;else{var l=function(e){var t=m.getLocation(e),n=y.getSynthesizedLocationElements(t);return t.concat(n)}(t),u=f.select(l);u&&(n=u.url,r=u.serviceLocation,a=u.queryParams)}E.isRelative(n)&&(n=E.resolve(n,t.url)),c.load(n,r,a)}function I(e){if(e){if(m.getIsPatch(e)){var r=e;e=p.getValue();var l=m.isPatchValid(e,r),c=l;if(l){var d=m.getPublishTime(e);c=m.applyPatchToManifest(e,r);var h=m.getPublishTime(e);c=d.getTime()!=h.getTime()}if(!c)return t.debug("Patch provided is invalid, performing full manifest refresh"),void S(!0);e.loadedTime=new Date}}else(e=p.getValue()).loadedTime=new Date;if(p.getValue()&&p.getValue().type===a.Z.DYNAMIC&&e.type===a.Z.STATIC)return _.trigger(u.Z.DYNAMIC_TO_STATIC),s=!1,void(o=!0);p.setValue(e);var f=new Date,g=(f.getTime()-e.loadedTime.getTime())/1e3;1e3*(n=m.getManifestUpdatePeriod(e,g))>2147483647&&(n=2147483.647),_.trigger(u.Z.MANIFEST_UPDATED,{manifest:e}),t.info("Manifest has been refreshed at "+f+"["+f.getTime()/1e3+"] "),i||A()}function R(){i||(s?A(v.get().streaming.manifestUpdateRetryInterval):S())}function C(e){e.error?e.error.code===x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE&&g.error(e.error):I(e.manifest)}function M(){i=!1,A()}function L(){(i=!v.get().streaming.scheduling.scheduleWhilePaused)&&T()}function P(){s=!1}return e={initialize:function(){w(),_.on(u.Z.STREAMS_COMPOSED,P,this),_.on(h.Z.PLAYBACK_STARTED,M,this),_.on(h.Z.PLAYBACK_PAUSED,L,this),_.on(u.Z.INTERNAL_MANIFEST_LOADED,C,this)},setManifest:function(e){I(e)},refreshManifest:S,getIsUpdating:function(){return s},setConfig:function(e){e&&(e.manifestModel&&(p=e.manifestModel),e.adapter&&(m=e.adapter),e.manifestLoader&&(c=e.manifestLoader),e.errHandler&&(g=e.errHandler),e.locationSelector&&(f=e.locationSelector),e.settings&&(v=e.settings),e.contentSteeringController&&(y=e.contentSteeringController))},reset:function(){_.off(h.Z.PLAYBACK_STARTED,M,this),_.off(h.Z.PLAYBACK_PAUSED,L,this),_.off(u.Z.STREAMS_COMPOSED,P,this),_.off(u.Z.INTERNAL_MANIFEST_LOADED,C,this),w()}},t=(0,d.Z)(b).getInstance().getLogger(e),f=zt(b).create(),e}Gt.__dashjs_factory_name="ManifestUpdater";const Vt=c.Z.getClassFactory(Gt);function jt(){var e,t,n,r,i,o,a,s,c,h,p,f,m,g,y,v,b=this.context,_=(0,l.Z)(b).getInstance(),E=(0,$.Z)(b).getInstance();function T(){s=[],c=[],h=null,p=null,m=null,f=NaN,n=!1,r=!1,g=i.get().streaming.utcSynchronization.timeBetweenSyncAttempts}function A(){i.get().streaming.utcSynchronization.enabled&&!n&&!r&&m&&m.value&&m.schemeIdUri&&!isNaN(f)&&!isNaN(i.get().streaming.utcSynchronization.backgroundAttempts)&&(p&&(Date.now()-p)/1e3<30||(s=[],r=!0,S(isNaN(i.get().streaming.utcSynchronization.backgroundAttempts)?2:i.get().streaming.utcSynchronization.backgroundAttempts)))}function S(e){try{if(e<=0)return void U();var t=Date.now();o[m.schemeIdUri](m.value,(function(n){var r=Date.now(),i=C(t,r,n);s.push(i),S(e-1)}),(function(){U()}))}catch(e){U()}}function I(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||0;if(!c||0===c.length||e>=c.length)M();else{var t=c[e];if(t)if(o.hasOwnProperty(t.schemeIdUri)){var n=(new Date).getTime();o[t.schemeIdUri](t.value,(function(e){var r=(new Date).getTime(),i=C(n,r,e);m=t,M(i)}),(function(){I(e+1)}))}else I(e+1);else M()}}function C(e,t,n){return n-(t-(t-e)/2)}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN,t=isNaN(e);t&&i.get().streaming.utcSynchronization.useManifestDateHeaderTimeSource?function(){var e=a.getLatestMPDRequestHeaderValueByID("Date"),t=null!==e?new Date(e).getTime():Number.NaN;isNaN(t)?B(!0):B(!1,t-Date.now())}():B(t,e)}function L(e){var t=Date.parse(e);return isNaN(t)&&(t=function(e){var t,n,r=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(e);return t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&(parseInt(r[6],10)||0),r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]&&(n=60*parseInt(r[9],10)+parseInt(r[10],10),t+=("+"===r[8]?-1:1)*n*60*1e3),new Date(t).getTime()}(e)),t}function P(e){return Date.parse(e)}function D(e){return Date.parse(e)}function O(e,t,n){n()}function N(e,t,n){var r=L(e);isNaN(r)?n():t(r)}function k(e,t,n,r,i){var o,a,s=!1,l=new XMLHttpRequest,u=i?R.w.HEAD:R.w.GET,c=t.match(/\S+/g);if(t=c.shift(),o=function(){s||(s=!0,c.length?k(e,c.join(" "),n,r,i):r())},a=function(){var t,r;200===l.status&&(t=i?l.getResponseHeader("Date"):l.response,r=e(t),isNaN(r)||(n(r),s=!0))},E.isRelative(t)){var d=v.resolve();d&&(t=E.resolve(t,d.url))}l.open(u,t),l.timeout=5e3,l.onload=a,l.onloadend=o,l.send()}function F(e,t,n){k(D,e,t,n,!0)}function B(e,r){if(isNaN(f)||isNaN(r)||e||function(e){try{var n,r=z(e),o=isNaN(g)?30:g,a=isNaN(i.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor)?2:i.get().streaming.utcSynchronization.timeBetweenSyncAttemptsAdjustmentFactor,s=isNaN(i.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts)?600:i.get().streaming.utcSynchronization.maximumTimeBetweenSyncAttempts,l=isNaN(i.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts)?2:i.get().streaming.utcSynchronization.minimumTimeBetweenSyncAttempts;r?(n=Math.min(o*a,s),t.debug("Increasing timeBetweenSyncAttempts to ".concat(n))):(n=Math.max(o/a,l),t.debug("Decreasing timeBetweenSyncAttempts to ".concat(n))),g=n}catch(e){}}(r),!e&&!isNaN(r)){h=Date.now(),n=!1;var o=isNaN(f);f=r,o&&A(),t.debug("Completed UTC sync. Setting client - server offset to ".concat(r))}e&&(m=null,n=!1,y.error(new w.Z(x.TIME_SYNC_FAILED_ERROR_CODE,x.TIME_SYNC_FAILED_ERROR_MESSAGE))),_.trigger(u.Z.UPDATE_TIME_SYNC_OFFSET,{offset:r}),_.trigger(u.Z.TIME_SYNCHRONIZATION_COMPLETED)}function U(){if(s&&0!==s.length){var e=s.reduce((function(e,t){return e+t}),0)/s.length;z(e)?t.debug("Completed background UTC sync. Offset is within allowed threshold and is not adjusted."):(t.debug("Completed background UTC sync. Setting client - server offset to ".concat(e)),f=e,_.trigger(u.Z.UPDATE_TIME_SYNC_OFFSET,{offset:f})),r=!1,p=Date.now()}}function z(e){try{if(isNaN(f))return!0;var t=i.get().streaming.utcSynchronization.maximumAllowedDrift&&!isNaN(i.get().streaming.utcSynchronization.maximumAllowedDrift)?i.get().streaming.utcSynchronization.maximumAllowedDrift:100;return e>=f-t&&e<=f+t}catch(e){return!0}}return e={initialize:function(){T(),o={"urn:mpeg:dash:utc:http-head:2014":F,"urn:mpeg:dash:utc:http-xsdate:2014":k.bind(null,L),"urn:mpeg:dash:utc:http-iso:2014":k.bind(null,P),"urn:mpeg:dash:utc:direct:2014":N,"urn:mpeg:dash:utc:http-head:2012":F,"urn:mpeg:dash:utc:http-xsdate:2012":k.bind(null,L),"urn:mpeg:dash:utc:http-iso:2012":k.bind(null,P),"urn:mpeg:dash:utc:direct:2012":N,"urn:mpeg:dash:utc:http-ntp:2014":O,"urn:mpeg:dash:utc:ntp:2014":O,"urn:mpeg:dash:utc:sntp:2014":O}},attemptSync:function(e,t){c=e,n||(function(e){try{if(!e||!i.get().streaming.utcSynchronization.enabled)return!1;var t=isNaN(g)?30:g;return!(h&&t&&!isNaN(t))||(Date.now()-h)/1e3>=t}catch(e){return!0}}(t)?(n=!0,I()):_.trigger(u.Z.TIME_SYNCHRONIZATION_COMPLETED))},setConfig:function(e){e&&(e.dashMetrics&&(a=e.dashMetrics),e.baseURLController&&(v=e.baseURLController),e.errHandler&&(y=e.errHandler),e.settings&&(i=e.settings))},reset:function(){T(),_.off(u.Z.ATTEMPT_BACKGROUND_SYNC,A,e)}},t=(0,d.Z)(b).getInstance().getLogger(e),_.on(u.Z.ATTEMPT_BACKGROUND_SYNC,A,e),e}jt.__dashjs_factory_name="TimeSyncController";var Ht=c.Z.getSingletonFactory(jt);Ht.HTTP_TIMEOUT_MS=5e3,c.Z.updateSingletonFactory(jt.__dashjs_factory_name,Ht);const Zt=Ht;function qt(){var e,t,n,r=this.context;return e={createMediaSource:function(){var e="WebKitMediaSource"in window;return"MediaSource"in window?t=new MediaSource:e&&(t=new WebKitMediaSource),t},attachMediaSource:function(e){var n=window.URL.createObjectURL(t);return e.setSource(n),n},detachMediaSource:function(e){e.setSource(null)},setDuration:function e(r){t&&"open"===t.readyState&&(null===r&&isNaN(r)||t.duration!==r&&(function(e){for(var t=e.sourceBuffers,n=0;n=0&&e0?Math.max(0,i):0,w(r,i,e),w(n,i,e),T(r),T(n),o=e,c=!1}}catch(e){c=!1,t.error(e)}}function w(e,n,r){try{I(e,(function(i){if(void 0!==i){var o=isNaN(i.duration)?0:i.duration;i.calculatedPresentationTime<=r&&i.calculatedPresentationTime+n+o>=r?C(i,h.Z.EVENT_MODE_ON_START):(R(r,o+n,i.calculatedPresentationTime)||function(e){try{var n=e.eventStream.period.start+e.eventStream.period.duration;return e.calculatedPresentationTime>n}catch(e){return t.error(e),!1}}(i))&&(t.debug("Removing event ".concat(i.id," from period ").concat(i.eventStream.period.id," as it is expired or invalid")),function(e,n){try{var r=n.eventStream.schemeIdUri,i=n.eventStream.period.id,o=n.eventStream.value,a=n.id;e[i][r]=e[i][r].filter((function(e){return o&&e.eventStream.value&&e.eventStream.value!==o||e.id!==a})),0===e[i][r].length&&delete e[i][r]}catch(e){t.error(e)}}(e,i))}}))}catch(e){t.error(e)}}function T(e){try{for(var n in e)e.hasOwnProperty(n)&&0===Object.keys(e[n]).length&&delete e[n]}catch(e){t.error(e)}}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.eventStream.schemeIdUri,i=e.eventStream.value,o=e.id,a="discarded";t[r]||(t[r]=[]);var s=t[r].findIndex((function(e){return(!i||e.eventStream.value&&e.eventStream.value===i)&&e.id===o}));if(-1===s)t[r].push(e),e.triggeredReceivedEvent=!1,e.triggeredStartEvent=!1,a=g;else if(n){var l=t[r][s];e.triggeredReceivedEvent=l.triggeredReceivedEvent,e.triggeredStartEvent=l.triggeredStartEvent,t[r][s]=e,a=m}return a}function S(e){try{if(1==e.eventStream.value){var n,r=e.calculatedPresentationTime;n=4294967295==e.calculatedPresentationTime?NaN:e.calculatedPresentationTime+e.duration,v.trigger(h.Z.MANIFEST_VALIDITY_CHANGED,{id:e.id,validUntil:r,newDuration:n,newManifestValidAfter:NaN},{mode:h.Z.EVENT_MODE_ON_START})}}catch(e){t.error(e)}}function x(e){try{var n=s.getTime();I(e,(function(e){var t=e.eventStream&&e.eventStream.period&&!isNaN(e.eventStream.period.duration)?e.eventStream.period.duration:NaN,r=e.eventStream&&e.eventStream.period&&!isNaN(e.eventStream.period.start)?e.eventStream.period.start:NaN;if(!isNaN(t)&&!isNaN(r)){var i=e.calculatedPresentationTime;Math.abs(i-n)<300&&C(e,h.Z.EVENT_MODE_ON_START)}}))}catch(e){t.error(e)}}function I(e,n){try{if(e)for(var r=Object.keys(e),i=0;ir}catch(e){return t.error(e),!1}}function C(e,n){try{var r=s.getTime(),i=e.id;if(n===h.Z.EVENT_MODE_ON_RECEIVE&&!e.triggeredReceivedEvent)return t.debug("Received event ".concat(i)),e.triggeredReceivedEvent=!0,void v.trigger(e.eventStream.schemeIdUri,{event:e},{mode:n});e.triggeredStartEvent||(e.eventStream.schemeIdUri===f&&1==e.eventStream.value?0===e.duration&&0===e.presentationTimeDelta||(t.debug("Starting manifest refresh event ".concat(i," at ").concat(r)),function(){try{b(),a.refreshManifest()}catch(e){t.error(e)}}()):"urn:mpeg:dash:event:callback:2015"===e.eventStream.schemeIdUri&&1==e.eventStream.value?(t.debug("Starting callback event ".concat(i," at ").concat(r)),function(e){try{(0,ae.Z)(y).create({}).load({method:"get",url:e,request:{responseType:"arraybuffer"}})}catch(e){t.error(e)}}(e.messageData)):(t.debug("Starting event ".concat(i," from period ").concat(e.eventStream.period.id," at ").concat(r)),v.trigger(e.eventStream.schemeIdUri,{event:e},{mode:n})),e.triggeredStartEvent=!0)}catch(e){t.error(e)}}return e={addInlineEvents:function(e,r){try{if(b(),n[r]||(n[r]={}),e)for(var i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&f.updateManifestUpdateInfo({currentTime:G.getTime(),buffered:z.getBufferRange(),presentationStartTime:e[0].start,clientTimeOffset:R.getClientTimeOffset()}),C.length>0&&function(e){0!==e.length?C=C.filter((function(n){var r=e.filter((function(e){return e.id===n.getId()})).length>0||n.getId()===M.getId();return r||(t.debug("Removing stream ".concat(n.getId())),n.reset(!0)),r})):t.warn("No periods included in the current manifest. Skipping the filtering of outdated stream objects.")}(e);for(var n=[],r=0,i=e.length;r2&&void 0!==arguments[2]&&arguments[2];function o(){if(U&&"open"===U.readyState){t.debug("MediaSource is open!"),window.URL.revokeObjectURL(r),U.removeEventListener("sourceopen",o),U.removeEventListener("webkitsourceopen",o),Ne();var a=f.getCurrentDVRInfo();m.setSeekable(a.range.start,a.range.end),i?(isNaN(e)||G.seek(e,!0,!0),M.setMediaSource(U).then((function(){M.initializeForTextWithMediaSource(U)}))):me(e,n)}}function a(){U.addEventListener("sourceopen",o,!1),U.addEventListener("webkitsourceopen",o,!1),r=m.attachMediaSource(z),t.debug("MediaSource attached to element. Waiting on open...")}U?n?me(e,n):(m.detachMediaSource(z),a()):(U=m.createMediaSource(),a())}function me(e,t){M.activate(U,t?K:void 0,e).then((function(t){if(t){var n=Object.keys(t);n.length>0&&t[n[0]].getBuffer().changeType&&(X=!0),K=t}isNaN(e)||(ae.trigger(u.Z.SEEK_TARGET,{time:e},{streamId:M.getId()}),G.seek(e,!1,!0),M.startScheduleControllers()),k=!1,ae.trigger(u.Z.PERIOD_SWITCH_COMPLETED,{toStreamInfo:qe()})}))}function ge(e){var t=we(e.seekTime);t&&t!==M?t&&t!==M&&(ye(),function(e,t){var n=e&&!isNaN(e.seekTime)?e.seekTime:NaN,r=M.getProcessors().map((function(t){return t.prepareOuterPeriodPlaybackSeeking(e)}));Promise.all(r).then((function(){pe(t,M,n)})).catch((function(e){I.error(e)}))}(e,t)):(ye(),function(e){M.getProcessors().forEach((function(t){return t.prepareInnerPeriodPlaybackSeeking(e)})),je(J.USER_REQUEST_STOP_REASON)}(e)),He(Q.SEEK_START_REASON)}function ye(){ve()}function ve(){$&&$.length>0&&($.forEach((function(e){e.deactivate(!0)})),$=[])}function be(e){e.newMediaInfo.streamInfo.id===M.getId()&&(ve(),M.prepareTrackChange(e))}function _e(e,t){try{return ee.get().streaming.buffer.reuseExistingSourceBuffers&&(t.isProtectionCompatible(e)||te)&&(X&&ee.get().streaming.buffer.useChangeTypeForTrackSwitch||t.isMediaCodecCompatible(e,t))}catch(e){return!1}}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;U&&!e.getPreloaded()&&_e(e,t)&&e.startPreloading(U,K).then((function(){$.push(e)}))}function we(e){if(isNaN(e))return null;for(var t=C.length,n=0;nG.getLiveDelay())&&(q=!1,He(Q.INITIAL_PLAYOUT_START_REASON),G.play())}e&&e.mediaType&&f.addBufferLevel(e.mediaType,new Date,1e3*e.bufferLevel)}function Se(e){e.streamInfo.id===M.getId()&&e.reason&&e.reason.forceReplace&&ve(),We(e.streamInfo.id).prepareQualityChange(e)}function xe(){if(p.getIsDynamic()&&0!==G.getOriginalLiveDelay()&&M){var e=p.getStreamsInfo();if(e.length>0){var t=e[0].manifestInfo,n=Ue(e,t);G.computeAndSetLiveDelay(n,t)}}}function Ie(){if(Ge()){var e=z.getPlaybackQuality();e&&f.addDroppedFrames(e)}}function Re(){t.debug("[onPlaybackStarted]"),!q&&Z&&He(Q.RESUME_FROM_PAUSE_START_REASON),q&&(q=!1),W&&(W=!1,ee.get().streaming.applyContentSteering&&!y.shouldQueryBeforeStart()&&y.loadSteeringData()),Z=!1}function Ce(e){t.debug("[onPlaybackPaused]"),e.ended||(Z=!0,je(J.USER_REQUEST_STOP_REASON))}function Me(e){t.debug("Stream with id ".concat(e.streamInfo.id," finished buffering"));var n=e.streamInfo.isLast;U&&n?(t.info("[onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),m.signalEndOfStream(U)):Le()}function Le(){if(M&&M.getHasFinishedBuffering())for(var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var t=e||M||null;if(t){var n=t.getStreamInfo();return C.filter((function(e){var t=e.getStreamInfo();return t.start>n.start&&n.id!==t.id}))}}catch(e){return[]}}(M),t=0;t0&&void 0!==arguments[0]?arguments[0]:null)||M||null;if(!e)return null;for(var t=e.getStreamInfo(),n=t.start,r=0,i=-1,o=NaN;r0&&(isNaN(o)||s=0?C[i]:null}();n?(t.debug("StreamController onEnded, found next stream with id ".concat(n.getStreamInfo().id,". Switching from ").concat(M.getStreamInfo().id," to ").concat(n.getStreamInfo().id)),pe(n,M,NaN)):(t.debug("StreamController no next stream found"),M.setIsEndedEventSignaled(!1)),je(n?J.END_OF_PERIOD_STOP_REASON:J.END_OF_CONTENT_STOP_REASON)}e&&e.isLast&&(Pe(),y.stopSteeringRequestTimer())}function Ne(e){var t=e||qe().manifestInfo.duration;m.setDuration(t)}function ke(e){var t=_.getURIFragmentData();if(!t||!t.t)return NaN;var n=Qe()[0].getStreamInfo().start;return t.t=t.t.split(",")[0],Be(e,t.t,n)}function Fe(e,t){var n=0;return e||(n=Qe()[0].getStreamInfo().start),Be(e,t,n)}function Be(e,t,n){var r=p.getRegularPeriods()[0],i=t.toString(),o=-1!==i.indexOf("posix:")?"now"===i.substring(6)?Date.now()/1e3:parseFloat(i.substring(6)):NaN;return e&&!isNaN(o)?R.calcPresentationTimeFromWallTime(new Date(1e3*o),r):parseFloat(i)+n}function Ue(e,t){try{var n=NaN;if(t&&!isNaN(t.maxFragmentDuration)&&isFinite(t.maxFragmentDuration))return t.maxFragmentDuration;if(e&&1===e.length){var r=e[0],i=[o.Z.VIDEO,o.Z.AUDIO,o.Z.TEXT].reduce((function(e,t){var n=p.getMediaInfoForType(r,t);return n&&!1!==n.isFragmented&&e.push(n),e}),[]).reduce((function(e,t){var n=p.getVoRepresentations(t);return n&&n.length>0&&n.forEach((function(t){t&&e.push(t)})),e}),[]).reduce((function(e,t){var n=p.convertRepresentationToRepresentationInfo(t);return n&&n.fragmentDuration&&!isNaN(n.fragmentDuration)&&e.push(n.fragmentDuration),e}),[]);n=Math.max.apply(Math,function(e){if(Array.isArray(e))return Xt(e)}(a=i)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return isFinite(n)?n:NaN}catch(e){return NaN}var a}function ze(e){if(e.error)B=!0,$e();else{t.info("Manifest updated... updating data system wide.");var n=e.manifest;p.updatePeriods(n);var i=p.getUTCTimingSources();!p.getIsDynamic()||i&&0!==i.length||ae.trigger(h.Z.CONFORMANCE_VIOLATION,{level:$t.LEVELS.WARNING,event:$t.EVENTS.NO_UTC_TIMING_ELEMENT});var o=p.getIsDynamic()?i.concat(H.getUTCTimingSources()):i;r.filterUnsupportedFeatures(n).then((function(){v.initialize(n),g.attemptSync(o,p.getIsDynamic())}))}}function Ge(){return!!M&&M.getHasVideoTrack()}function Ve(){return!!M&&M.getHasAudioTrack()}function je(e,t){t=t||new Date,De().forEach((function(n){n.finalisePlayList(t,e)})),f.addPlayList()}function He(e){f.createPlaylistMetrics(1e3*G.getTime(),e)}function Ze(e){if(e.error){var n="";switch(e.error.code){case 1:n="MEDIA_ERR_ABORTED";break;case 2:n="MEDIA_ERR_NETWORK";break;case 3:n="MEDIA_ERR_DECODE",ie.counts.mediaErrorDecode+=1;break;case 4:n="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:n="MEDIA_ERR_ENCRYPTED";break;default:n="UNKNOWN"}"MEDIA_ERR_DECODE"===n&&ee.get().errors.recoverAttempts.mediaErrorDecode>=ie.counts.mediaErrorDecode?function(){t.warn("A MEDIA_ERR_DECODE occured: Resetting the MediaSource");var e=G.getTime();M.deactivate(!1),t.warn("MediaSource has been resetted. Resuming playback from time ".concat(e)),fe(e,!1,!1)}():(F=!0,e.error.message&&(n+=" ("+e.error.message+")"),e.error.msExtendedCode&&(n+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),t.fatal("Video Element Error: "+n),e.error&&t.fatal(e.error),I.error(new w.Z(e.error.code,n)),$e())}}function qe(){return M?M.getStreamInfo():null}function We(e){for(var t=0,n=C.length;t1&&void 0!==arguments[1]?arguments[1]:NaN;se(),re=t,a.load(e)},loadWithManifest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;(function(){if(!i||!i.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")})(),re=t,i.setManifest(e)},getActiveStreamProcessors:De,setConfig:function(e){e&&(e.capabilities&&(n=e.capabilities),e.capabilitiesFilter&&(r=e.capabilitiesFilter),e.manifestLoader&&(a=e.manifestLoader),e.manifestModel&&(c=e.manifestModel),e.mediaPlayerModel&&(j=e.mediaPlayerModel),e.customParametersModel&&(H=e.customParametersModel),e.protectionController&&(L=e.protectionController),e.adapter&&(p=e.adapter),e.dashMetrics&&(f=e.dashMetrics),e.errHandler&&(I=e.errHandler),e.timelineConverter&&(R=e.timelineConverter),e.videoModel&&(z=e.videoModel),e.playbackController&&(G=e.playbackController),e.serviceDescriptionController&&(V=e.serviceDescriptionController),e.contentSteeringController&&(y=e.contentSteeringController),e.textController&&(P=e.textController),e.abrController&&(E=e.abrController),e.mediaController&&(T=e.mediaController),e.settings&&(ee=e.settings),e.baseURLController&&(v=e.baseURLController),e.uriFragmentModel&&(_=e.uriFragmentModel),e.segmentBaseController&&(b=e.segmentBaseController))},setProtectionData:function(e){D=e,L&&L.setProtectionData(D)},getIsStreamSwitchInProgress:function(){return k},switchToVideoElement:function(e){M&&(G.initialize(qe()),fe(e,!1,!0))},getHasMediaOrInitialisationError:function(){return F||B},getStreams:Qe,getActiveStream:function(){return M},getInitialPlayback:function(){return q},getAutoPlay:function(){return N},reset:$e},t=(0,d.Z)(oe).getInstance().getLogger(e),g=Zt(oe).getInstance(),m=Wt(oe).getInstance(),S=O(oe).getInstance(),Ke(),e}Qt.__dashjs_factory_name="StreamController";const Jt=c.Z.getSingletonFactory(Qt);function en(){var e,t,n,r,i,a,s,c,h,p,f,m,g=this.context,y=(0,l.Z)(g).getInstance();function v(){m.debug("Stopping the gap controller"),i&&(clearInterval(i),i=null),function(){y.off(u.Z.WALLCLOCK_TIME_UPDATED,T,this),y.off(u.Z.INITIAL_STREAM_SWITCH,w,this),y.off(u.Z.PLAYBACK_SEEKING,b,this),y.off(u.Z.BUFFER_REPLACEMENT_STARTED,_,e),y.off(u.Z.TRACK_CHANGE_RENDERED,E,e)}(),i=null,a=NaN,r=0,p=null,f={}}function b(){p&&(clearTimeout(p),p=null)}function _(e){try{if(e.streamId!==c.getActiveStreamInfo().id||e.mediaType!==o.Z.VIDEO&&e.mediaType!==o.Z.AUDIO)return;e.streamId===c.getActiveStreamInfo().id&&(f[e.mediaType]=!0)}catch(e){m.error(e)}}function E(e){e&&e.mediaType&&(f[e.mediaType]=!1)}function w(){i||function(){try{i||(m.debug("Starting the gap controller"),i=setInterval((function(){A()&&S(s.getTime())}),100))}catch(e){}}()}function T(){if(A(n.get().streaming.gaps.enableSeekFix)&&++r>=10){var e=s.getTime();t===e?S(e,!0):(t=e,a=NaN),r=0}}function A(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!c.getActiveStream())return!1;var t=Object.keys(f).some((function(e){return f[e]})),r=!!e&&function(){var e=c.getActiveStream(),t=parseFloat((e.getStartTime()+e.getDuration()).toFixed(5));return s.getTime()+n.get().streaming.gaps.threshold>=t}();return!t&&n.get().streaming.gaps.jumpGaps&&c.getActiveStreamProcessors().length>0&&(!s.isSeeking()||r)&&!s.isPaused()&&!c.getIsStreamSwitchInProgress()&&!c.getHasMediaOrInitialisationError()}function S(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.get().streaming.gaps.enableStallFix,o=n.get().streaming.gaps.stallSeek,l=n.get().streaming.gaps.smallGapLimit,u=n.get().streaming.gaps.jumpLargeGaps,d=h.getBufferRange(),f=NaN,g=!1;if(t=function(e,t){try{if(!e||e.length<=1&&t>0)return NaN;for(var r=NaN,i=0;isNaN(r)&&i0?e.end(i-1):0;t0&&(v<=l||u)&&(f=y)}var b=s.getTimeToStreamEnd();if(isNaN(f)&&r&&isFinite(b)&&!isNaN(b)&&b=e.start(n)&&t<=e.end(n))return!0;return!1}(d,e)&&(0===o?(m.warn("Toggle play pause to break stall"),h.pause(),h.play()):(m.warn("Jumping ".concat(o,"s to break stall")),f=e+o)),f>0&&a!==f&&f>e&&!p){var _=f-e;if(g){var E=c.getStreamForTime(f),w=E&&!!E.getPreloaded();m.warn("Jumping to end of stream because of gap from ".concat(e," to ").concat(f,". Gap duration: ").concat(_)),s.seek(f,!0,w)}else{var T=s.getIsDynamic(),A=t>0?d.end(t-1):e,S=T?1e3*Math.max(0,_-.1):0;p=window.setTimeout((function(){s.seek(f,!0,!0),m.warn("Jumping gap occuring in period ".concat(c.getActiveStream().getStreamId()," starting at ").concat(A," and ending at ").concat(f,". Jumping by: ").concat(f-A)),p=null}),S)}a=f}}return e={reset:v,setConfig:function(e){e&&(e.settings&&(n=e.settings),e.playbackController&&(s=e.playbackController),e.streamController&&(c=e.streamController),e.videoModel&&(h=e.videoModel))},initialize:function(){!function(){y.on(u.Z.WALLCLOCK_TIME_UPDATED,T,this),y.on(u.Z.INITIAL_STREAM_SWITCH,w,this),y.on(u.Z.PLAYBACK_SEEKING,b,this),y.on(u.Z.BUFFER_REPLACEMENT_STARTED,_,e),y.on(u.Z.TRACK_CHANGE_RENDERED,E,e)}()}},m=(0,d.Z)(g).getInstance().getLogger(e),v(),e}en.__dashjs_factory_name="GapController";const tn=c.Z.getSingletonFactory(en);function nn(){var e,t,n,r,i,a,c,p,f,m,g=this.context,y=(0,l.Z)(g).getInstance();function v(){t=!1;var e=Fe.Z.parseUserAgent();n=e&&e.browser&&e.browser.name&&"safari"===e.browser.name.toLowerCase()}function b(){t=!1}function _(e){if(e.streamId===a.getActiveStreamInfo().id&&f){var t=c.getLiveDelay();c.getBufferLevel()>t/2&&(f=!1)}}function E(e){e.streamId===a.getActiveStreamInfo().id&&(f=e.state===s.Z.BUFFER_EMPTY)}function w(){p.getCatchupModeEnabled()||r.setPlaybackRate(1)}function T(){c.getIsDynamic()&&p.getCatchupModeEnabled()&&(p.getCatchupPlaybackRates().max>0||p.getCatchupPlaybackRates().min<0)&&!c.isPaused()&&!c.isSeeking()&&function(){try{return!(!c.getTime()>0||t)&&(S()===o.Z.LIVE_CATCHUP_MODE_LOLP?function(e,t){try{return Math.abs(A())>0||e0}catch(e){return!1}}())}catch(e){return!1}}()&&function(){if(!t&&r){var e,a=r.getPlaybackRate(),s=p.getCatchupPlaybackRates(),l=c.getBufferLevel(),u=A(),d=p.getCatchupMaxDrift();if(!isNaN(d)&&d>0&&u>d)m.info("[CatchupController]: Low Latency catchup mechanism. Latency too high, doing a seek to live point"),t=!0,c.seekToCurrentLive(!0,!1);else{var h=c.getCurrentLiveLatency(),g=c.getLiveDelay();e=S()===o.Z.LIVE_CATCHUP_MODE_LOLP?function(e,t,n,r,i){var o;if(i0&&(s=1),s}(s,h,g,l);var y=n?.25:.02/(.5/s.max);e&&Math.abs(a-e)>=y&&(m.debug("[CatchupController]: Setting playback rate to ".concat(e)),r.setPlaybackRate(e))}}}()}function A(){return c.getCurrentLiveLatency()-c.getLiveDelay()}function S(){var e=i.get().streaming.liveCatchup.playbackBufferMin;return i.get().streaming.liveCatchup.mode!==o.Z.LIVE_CATCHUP_MODE_LOLP||null===e||isNaN(e)?o.Z.LIVE_CATCHUP_MODE_DEFAULT:o.Z.LIVE_CATCHUP_MODE_LOLP}function x(){p.getCatchupPlaybackRates(!0)}return e={reset:function(){y.off(h.Z.BUFFER_LEVEL_UPDATED,_,e),y.off(h.Z.BUFFER_LEVEL_STATE_CHANGED,E,e),y.off(h.Z.PLAYBACK_PROGRESS,T,e),y.off(h.Z.PLAYBACK_TIME_UPDATED,T,e),y.off(h.Z.PLAYBACK_SEEKED,b,e),y.off(u.Z.SETTING_UPDATED_CATCHUP_ENABLED,w,e),y.off(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,x,e),y.off(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,x,e),y.off(h.Z.STREAM_INITIALIZED,x,e),v(),r.setPlaybackRate(1,!0)},setConfig:function(e){e&&(e.settings&&(i=e.settings),e.videoModel&&(r=e.videoModel),e.streamController&&(a=e.streamController),e.playbackController&&(c=e.playbackController),e.mediaPlayerModel&&(p=e.mediaPlayerModel))},initialize:function(){y.on(h.Z.BUFFER_LEVEL_UPDATED,_,e),y.on(h.Z.BUFFER_LEVEL_STATE_CHANGED,E,e),y.on(h.Z.PLAYBACK_PROGRESS,T,e),y.on(h.Z.PLAYBACK_TIME_UPDATED,T,e),y.on(h.Z.PLAYBACK_SEEKED,b,e),y.on(u.Z.SETTING_UPDATED_CATCHUP_ENABLED,w,e),y.on(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MIN,x,e),y.on(u.Z.SETTING_UPDATED_PLAYBACK_RATE_MAX,x,e),y.on(h.Z.STREAM_INITIALIZED,x,e),x()}},m=(0,d.Z)(g).getInstance().getLogger(e),v(),e}nn.__dashjs_factory_name="CatchupController";const rn=c.Z.getSingletonFactory(nn);var on=[o.Z.SERVICE_DESCRIPTION_DVB_LL_SCHEME],an="video",sn="audio";function ln(){var e,t,n,r,i,s=this.context;function l(){t={liveDelay:NaN,liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN}},minBitrate:{},maxBitrate:{},initialBitrate:{},contentSteering:null},n=[]}function u(e,n,i){try{t[e][n]=i/1e3}catch(e){r.error(e)}}return e={getServiceDescriptionSettings:function(){return t},getProducerReferenceTimeOffsets:function(){return n},calculateProducerReferenceTimeOffsets:function(e){try{var t=[];if(e&&e.length>0){var s=[o.Z.VIDEO,o.Z.AUDIO,o.Z.TEXT],l=i.getAvailabilityStartTime()/1e3;e.forEach((function(e){var n=s.reduce((function(t,n){return t.concat(i.getAllMediaInfoForType(e,n))}),[]).reduce((function(t,n){return i.getProducerReferenceTimes(e,n).forEach((function(r){var o=i.getVoRepresentations(n);if(o&&o.length>0&&o[0].adaptation&&o[0].segmentInfoType===a.Z.SEGMENT_TEMPLATE){var s=o[0],u=new Date(r[a.Z.WALL_CLOCK_TIME]).getTime()/1e3-(r[a.Z.PRESENTATION_TIME]/s[a.Z.TIMESCALE]-s[a.Z.PRESENTATION_TIME_OFFSET]+e.start),c=l-u;t.push({id:r[a.Z.ID],to:c})}})),t}),[]);t=t.concat(n)}))}n=t}catch(e){r.error(e),n=[]}},applyServiceDescription:function(e){if(e&&e.serviceDescriptions){var i=e.serviceDescriptions.filter((function(e){return on.includes(e.schemeIdUri)})),a=e.serviceDescriptions.filter((function(e){return null==e.schemeIdUri})),s=i.length>0?i[i.length-1]:a[a.length-1];s&&(s.latency&&s.latency.target>0&&function(e){var i;if(e.schemeIdUri,o.Z.SERVICE_DESCRIPTION_DVB_LL_SCHEME,i=function(e){return{liveDelay:e.latency.target/1e3,maxDrift:!isNaN(e.latency.max)&&e.latency.max>e.latency.target?(e.latency.max-e.latency.target+500)/1e3:NaN,referenceId:e.latency.referenceId||NaN}}(e),n.length>0){var a=function(e){var t,r=0,i=n.filter((function(t){return t.id===e.referenceId}));return 0===i.length?(r=n.length>0?n[0].to:0,t=n[0].id||NaN):(r=i[0].to||0,t=i[0].id||NaN),{to:r,id:t}}(i),s=a.to,l=a.id;t.liveDelay=i.liveDelay-s,t.liveCatchup.maxDrift=i.maxDrift,r.debug("\n Found latency properties coming from service description. Applied time offset of ".concat(s," from ProducerReferenceTime element with id ").concat(l,".\n Live Delay: ").concat(i.liveDelay-s,", Live catchup max drift: ").concat(i.maxDrift,"\n "))}else t.liveDelay=i.liveDelay,t.liveCatchup.maxDrift=i.maxDrift,r.debug("Found latency properties coming from service description: Live Delay: ".concat(i.liveDelay,", Live catchup max drift: ").concat(i.maxDrift))}(s),s.playbackRate&&function(e){var n=e.playbackRate.min?Math.round(1e3*(e.playbackRate.min-1))/1e3:NaN,i=e.playbackRate.max?Math.round(1e3*(e.playbackRate.max-1))/1e3:NaN;t.liveCatchup.playbackRate.min=n,t.liveCatchup.playbackRate.max=i,r.debug("Found latency properties coming from service description: Live catchup min playback rate: ".concat(n)),r.debug("Found latency properties coming from service description: Live catchup max playback rate: ".concat(i))}(s),s.operatingQuality,s.operatingBandwidth&&function(e){if(e&&e.operatingBandwidth&&e.operatingBandwidth.mediaType&&"all"!==e.operatingBandwidth.mediaType){var t={};t.minBandwidth=e.operatingBandwidth.min,t.maxBandwidth=e.operatingBandwidth.max,t.targetBandwidth=e.operatingBandwidth.target;var n=[];e.operatingBandwidth.mediaType===an||e.operatingBandwidth.mediaType===sn?n.push(e.operatingBandwidth.mediaType):"any"===e.operatingBandwidth.mediaType&&(n.push(sn),n.push(an)),n.forEach((function(e){isNaN(t.minBandwidth)||u("minBitrate",e,t.minBandwidth),isNaN(t.maxBandwidth)||u("maxBitrate",e,t.maxBandwidth),isNaN(t.targetBandwidth)||u("initialBitrate",e,t.targetBandwidth)}))}}(s),s.contentSteering&&function(e){t.contentSteering=e.contentSteering}(s))}},reset:function(){l()},setConfig:function(e){e&&e.adapter&&(i=e.adapter)}},r=(0,d.Z)(s).getInstance().getLogger(e),l(),e}ln.__dashjs_factory_name="ServiceDescriptionController";const un=c.Z.getSingletonFactory(ln);var cn=n(3973),dn=n.n(cn),hn=n(3039);function pn(){var e,t,n,r,i,a,s,c,h=this.context,p=(0,l.Z)(h).getInstance();function f(e,t){return e&&n[t]&&n[t][e]?n[t][e].list:[]}function m(e,t){return e&&n[t]&&n[t][e]?n[t][e].current:null}function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.streamInfo){var i=e.type,s=e.streamInfo.id,l=m(i,s);if(n[s]&&n[s][i]&&(n[s][i].current=e,n[s][i].current&&(i!==o.Z.TEXT&&!b(e,l)||i===o.Z.TEXT&&e.isFragmented)&&p.trigger(u.Z.CURRENT_TRACK_CHANGED,{oldMediaInfo:l,newMediaInfo:e,switchMode:r.get().streaming.trackSwitchMode[i]},{streamId:s}),!t)){var d=function(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration};return t.lang||t.viewpoint||t.role&&t.role.length>0||t.accessibility&&t.accessibility.length>0||t.audioChannelConfiguration&&t.audioChannelConfiguration.length>0?t:null}(e);if(!d||!n[s][i].storeLastSettings)return;d.roles&&(d.role=d.roles[0],delete d.roles),d.accessibility&&(d.accessibility=d.accessibility[0]),d.audioChannelConfiguration&&(d.audioChannelConfiguration=d.audioChannelConfiguration[0]),a[i]=d,c.setSavedMediaSettings(i,d)}}}function y(e,t){e&&t&&(i[e]=t)}function v(e){return e?i[e]:null}function b(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var n=e.id===t.id,r=e.viewpoint===t.viewpoint,i=JSON.stringify(e.viewpointsWithSchemeIdUri)===JSON.stringify(t.viewpointsWithSchemeIdUri),o=e.lang===t.lang,a=e.codec===t.codec,s=e.roles.toString()===t.roles.toString(),l=JSON.stringify(e.rolesWithSchemeIdUri)===JSON.stringify(t.rolesWithSchemeIdUri),u=e.accessibility.toString()===t.accessibility.toString(),c=JSON.stringify(e.accessibilitiesWithSchemeIdUri)===JSON.stringify(t.accessibilitiesWithSchemeIdUri),d=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString(),h=JSON.stringify(e.audioChannelConfigurationsWithSchemeIdUri)===JSON.stringify(t.audioChannelConfigurationsWithSchemeIdUri);return n&&a&&r&&i&&o&&s&&l&&u&&c&&d&&h}function _(){n={},a={},i={audio:null,video:null,text:null}}function E(e,t,n){var r=[];return e.forEach((function(e){t(n,e)&&r.push(e)})),0!==r.length?r:e}function w(e,t){return!e.lang||e.lang instanceof RegExp?t.lang.match(e.lang):""!==t.lang&&(0,hn.extendedFilter)(t.lang,dn()(e.lang)).length>0}function T(e,t){return void 0===e.index||null===e.index||t.index===e.index}function A(e,t){return!e.viewpoint||e.viewpoint===t.viewpoint}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!e.role||!!t.roles.filter((function(t){return t===e.role}))[0]||t.type===o.Z.AUDIO&&n}function x(e,t){return e.accessibility?!!t.accessibility.filter((function(t){return t===e.accessibility}))[0]:!t.accessibility.length}function I(e,t){return!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter((function(t){return t===e.audioChannelConfiguration}))[0]}function R(e){var t,n=0,r=[];return e.forEach((function(e){(t=Math.max.apply(Math,e.bitrateList.map((function(e){return e.bandwidth}))))>n?(n=t,r=[e]):t===n&&r.push(e)})),r}function C(e){var t,n=1/0,r=[];return e.forEach((function(e){var i=e.bitrateList.reduce((function(e,t){var n=Math.max(1,t.width*t.height);return e+t.bandwidth/n}),0);(t=i/e.bitrateList.length)n?(n=t,r=[e]):t===n&&r.push(e)})),r}function L(e,n){if(e===o.Z.TEXT)return n[0];var i,a=r.get().streaming.selectionModeForInitialTrack,l=s.getCustomInitialTrackSelectionFunction();if(l&&"function"==typeof l)i=l(n);else switch(a){case o.Z.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY:i=function(e){var t,n,r=(t=0,n=[],e.forEach((function(e){isNaN(e.selectionPriority)||(e.selectionPriority>t?(t=e.selectionPriority,n=[e]):e.selectionPriority===t&&n.push(e))})),n);return r.length>1&&(r=R(r)),r.length>1&&(r=M(r)),r}(n);break;case o.Z.TRACK_SELECTION_MODE_HIGHEST_BITRATE:i=function(e){var t=R(e);return t.length>1&&(t=M(t)),t}(n);break;case o.Z.TRACK_SELECTION_MODE_FIRST_TRACK:i=P(n);break;case o.Z.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY:i=function(e){var t=C(e);return t.length>1&&(t=R(t)),t}(n);break;case o.Z.TRACK_SELECTION_MODE_WIDEST_RANGE:i=function(e){var t=M(e);return t.length>1&&(t=R(e)),t}(n);break;default:t.warn("Track selection mode ".concat(a," is not supported. Falling back to TRACK_SELECTION_MODE_FIRST_TRACK")),i=P(n)}return i.length>0?i[0]:n[0]}function P(e){return e[0]}return e={setInitialMediaSettingsForType:function(e,t){var n=a[e]||v(e),r=f(e,t.id),i=[];n||y(e,n=c.getSavedMediaSettings(e)),r&&0!==r.length&&(n&&(i=E(i=Array.from(r),w,n),i=E(i,T,n),i=E(i,A,n),e===o.Z.AUDIO&&a[e]||(i=E(i,S,n)),i=E(i,x,n),i=E(i,I,n)),0===i.length?g(L(e,r),!0):i.length>1?g(L(e,i,a[e])):g(i[0]))},addTrack:function(e){if(e){var t=e.type;if((r=t)===o.Z.AUDIO||r===o.Z.VIDEO||r===o.Z.TEXT||r===o.Z.IMAGE){var r,i=e.streamInfo.id;n[i]||(n[i]={audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},image:{list:[],storeLastSettings:!0,current:null}});for(var a=n[i][t].list,s=0,l=a.length;s2&&void 0!==arguments[2]&&arguments[2];try{var r=!1;if(e.lang){if(e.lang instanceof RegExp)r=t.lang.match(e.lang);else if(""!==t.lang){var i=dn()(e.lang);i&&(r=(0,hn.extendedFilter)(t.lang,i).length>0)}}else r=!0;var a=void 0===e.index||null===e.index||t.index===e.index,s=!e.viewpoint||e.viewpoint===t.viewpoint,l=!e.role||!!t.roles.filter((function(t){return t===e.role}))[0],u=!e.accessibility||!!t.accessibility.filter((function(t){return t===e.accessibility}))[0],c=!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter((function(t){return t===e.audioChannelConfiguration}))[0];return r&&a&&s&&(l||t.type===o.Z.AUDIO&&n)&&u&&c}catch(e){return!1}},matchSettingsLang:w,matchSettingsIndex:T,matchSettingsViewPoint:A,matchSettingsRole:S,matchSettingsAccessibility:x,matchSettingsAudioChannelConfig:I,saveTextSettingsDisabled:function(){c.setSavedMediaSettings(o.Z.TEXT,null)},setConfig:function(e){e&&(e.domStorage&&(c=e.domStorage),e.settings&&(r=e.settings),e.customParametersModel&&(s=e.customParametersModel))},reset:_},t=(0,d.Z)(h).getInstance().getLogger(e),_(),e}pn.__dashjs_factory_name="MediaController";var fn=c.Z.getSingletonFactory(pn);c.Z.updateSingletonFactory(pn.__dashjs_factory_name,fn);const mn=fn;var gn=NaN,yn=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data={baseUrls:t||null,selectedIdx:n||gn},this.children=[]};function vn(){var e,t,n,r,i=this.context,o=Re(i).getInstance();function a(e,t,n){var r=s(n);e[t]?o.areEqual(r,e[t].data.baseUrls)||(e[t].data.baseUrls=r,e[t].data.selectedIdx=gn):e[t]=new yn(r)}function s(e){var t=n.getBaseURLsFromElement(e),i=r.getSynthesizedBaseUrlElements(t);return i&&i.length>0&&(t=t.concat(i)),t}function l(e,n){var r=n||t;e(r.data),r.children&&r.children.forEach((function(t){return l(e,t)}))}function u(){t=new yn}return e={reset:u,update:function(e){!function(e){!function(){if(!n||!n.hasOwnProperty("getBaseURLsFromElement")||!n.hasOwnProperty("getRepresentationSortFunction"))throw new Error("setConfig function has to be called previously")}();var r=s(e);o.areEqual(r,t.data.baseUrls)||(t.data.baseUrls=r,t.data.selectedIdx=gn),e&&e.Period_asArray&&e.Period_asArray.forEach((function(e,r){a(t.children,r,e),e.AdaptationSet_asArray&&e.AdaptationSet_asArray.forEach((function(e,i){a(t.children[r].children,i,e),e.Representation_asArray&&e.Representation_asArray.sort(n.getRepresentationSortFunction()).forEach((function(e,n){a(t.children[r].children[i].children,n,e)}))}))}))}(e)},getForPath:function(e){var n=t,r=[n.data];return e&&e.forEach((function(e){(n=n.children[e])&&r.push(n.data)})),r.filter((function(e){return e.baseUrls.length}))},invalidateSelectedIndexes:function(e){l((function(t){isNaN(t.selectedIdx)||e===t.baseUrls[t.selectedIdx].serviceLocation&&(t.selectedIdx=gn)}))},setConfig:function(e){e.adapter&&(n=e.adapter),e.contentSteeringController&&(r=e.contentSteeringController)},getBaseUrls:function(e){return s(e)}},u(),e}vn.__dashjs_factory_name="BaseURLTreeModel";const bn=c.Z.getClassFactory(vn);function _n(e){var t=(e=e||{}).blacklistController;return{select:function(e){return e&&function(e){var t,n,r=0,i=[],o=0;if((n=e.sort((function(e,t){var n=e.dvb_priority-t.dvb_priority;return isNaN(n)?0:n})).filter((function(e,t,n){return!t||n[0].dvb_priority&&e.dvb_priority&&n[0].dvb_priority===e.dvb_priority}))).length)return n.length>1&&(n.forEach((function(e){r+=e.dvb_weight,i.push(r)})),t=Math.floor(Math.random()*(r-1)),i.every((function(e,n){return o=n,!(t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,i=NaN,o=function(){var o=e[r],a=t.findIndex((function(e){return e.serviceLocation&&e.serviceLocation===o}));if(-1!==a&&!n.contains(t[a].serviceLocation))return i=a,"break";r+=1};r0&&(n=i(r.defaultServiceLocationArray,e.baseUrls))}var o=t.getCurrentSteeringResponseData();return e.baseUrls&&e.baseUrls.length&&o&&o.pathwayPriority&&o.pathwayPriority.length&&(n=i(o.pathwayPriority,e.baseUrls)),n},setConfig:function(e){e.blacklistController&&(n=e.blacklistController),e.contentSteeringController&&(t=e.contentSteeringController)}},t=Bt(r).getInstance(),e}An.__dashjs_factory_name="ContentSteeringSelector";const Sn=c.Z.getClassFactory(An);function xn(){var e,t,n,r,i,o,a=this.context,s=(0,l.Z)(a).getInstance(),c=(0,I.Z)(a).getInstance();function d(){t.reset()}return e={chooseSelector:function(e){(0,W.PS)(e,"boolean"),o=e?r:n},select:function(e){if(e){if(c.get().streaming.applyContentSteering){var t=i.selectBaseUrlIndex(e);isNaN(t)||-1===t||(e.selectedIdx=t)}if(!isNaN(e.selectedIdx))return e.baseUrls[e.selectedIdx];var r=o.select(e.baseUrls);return r?(e.selectedIdx=e.baseUrls.indexOf(r),r):(s.trigger(u.Z.URL_RESOLUTION_FAILED,{error:new w.Z(x.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE,x.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE)}),void(o===n&&d()))}},reset:d,setConfig:function(e){e.selector&&(o=e.selector),e.contentSteeringSelector&&(i=e.contentSteeringSelector)}},t=Lt(a).create({updateEventName:u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,addBlacklistEventName:u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD}),n=Tn(a).create({blacklistController:t}),r=En(a).create({blacklistController:t}),(i=Sn(a).create()).setConfig({blacklistController:t}),o=n,e}xn.__dashjs_factory_name="BaseURLSelector";const In=c.Z.getClassFactory(xn);function Rn(){var e,t,n,r,i,o=this.context,a=(0,l.Z)(o).getInstance(),s=(0,$.Z)(o).getInstance();function c(e){n.update(e),r.chooseSelector(t.getIsDVB(e)),a.trigger(h.Z.BASE_URLS_UPDATED,{baseUrls:d(e)})}function d(e){return n.getBaseUrls(e)}return e={reset:function(){n.reset(),r.reset()},initialize:function(e){n.setConfig({adapter:t,contentSteeringController:i}),c(e)},resolve:function(e){var t=n.getForPath(e).reduce((function(e,t){var n=r.select(t);return n?(s.isRelative(n.url)?e.url=s.resolve(n.url,e.url):(e.url=n.url,e.serviceLocation=n.serviceLocation),e.availabilityTimeOffset=n.availabilityTimeOffset,e.availabilityTimeComplete=n.availabilityTimeComplete,e.queryParams=n.queryParams,e):new _e}),new _e);if(!s.isRelative(t.url))return t},setConfig:function(e){e.baseURLTreeModel&&(n=e.baseURLTreeModel),e.baseURLSelector&&(r=e.baseURLSelector),e.adapter&&(t=e.adapter),e.contentSteeringController&&(i=e.contentSteeringController)},getBaseUrls:d,update:c},n=bn(o).create(),r=In(o).create(),a.on(u.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,(function(e){n.invalidateSelectedIndexes(e.entry)}),e),e}Rn.__dashjs_factory_name="BaseURLController";const Cn=c.Z.getClassFactory(Rn);function Mn(e){return Mn="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},Mn(e)}function Ln(e,t){return Ln=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ln(e,t)}function Pn(e){return Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pn(e)}const Dn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ln(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Pn(t);if(n){var i=Pn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){return!t||"object"!==Mn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function i(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=r.call(this)).url=e||null,n.type=t||null,n.mediaType=o.Z.STREAM,n.responseType="",n}return i}(m.Z);function On(e){e=e||{};var t=this.context,n=(0,l.Z)(t).getInstance(),r=ft(t).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,errors:x});return{load:function(e,t,i){var o=function(r,o){t.resolved=!0,t.resolvedContent=r||null,n.trigger(u.Z.XLINK_ELEMENT_LOADED,{element:t,resolveObject:i,error:r||o?null:new w.Z(x.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE,x.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE+e)})};if("urn:mpeg:dash:resolve-to-zero:2013"===e)o(null,!0);else{var a=new Dn(e,R.w.XLINK_EXPANSION_TYPE);r.load({request:a,success:function(e){o(e)},error:function(){o(null)}})}},reset:function(){r&&(r.abort(),r=null)}}}On.__dashjs_factory_name="XlinkLoader";const Nn=c.Z.getClassFactory(On),kn=function(e){function t(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function n(e){return"string"==typeof e?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"):e}function r(e,t,n,r){for(var i=0;i0&&r(e.arrayAccessFormPaths,t,n,i)&&(t[n]=[t[n]])}function o(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),r=t[5].split(".");if(n.setHours(t[3],t[4],r[0]),r.length>1&&n.setMilliseconds(r[1]),t[6]&&t[7]){var i=60*t[6]+Number(t[7]);i=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*i:i),n.setMinutes(n.getMinutes()-i-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function a(t,n,i,o){return!(1==n&&e.xmlElementsFilter.length>0)||r(e.xmlElementsFilter,t,i,o)}function s(n,l){if(9==n.nodeType){for(var u=new Object,c=n.childNodes,d=0;d0){var a=i.split(".#")[0];return r(e.datetimeAccessFormPaths,t,n,a)?o(t):t}return t}(u.__text,f,l+"."+f)),null!=u["#cdata-section"]&&(u.__cdata=u["#cdata-section"],delete u["#cdata-section"],"property"==e.arrayAccessForm&&delete u["#cdata-section_asArray"]),0==u.__cnt&&"text"==e.emptyNodeForm?u="":1==u.__cnt&&null!=u.__text?u=u.__text:1!=u.__cnt||null==u.__cdata||e.keepCData?u.__cnt>1&&null!=u.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==u.__text||""==u.__text.trim())&&delete u.__text:u=u.__cdata,delete u.__cnt,!e.enableToStringFunc||null==u.__text&&null==u.__cdata||(u.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),u}if(3==n.nodeType||4==n.nodeType)return n.nodeValue}function l(t,r,i,o){var a="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+r;if(null!=i)for(var s=0;s":">")}function u(e,t){return""}function c(t,n){return"property"==e.arrayAccessForm&&("_asArray",-1!==(r=n.toString()).indexOf("_asArray",r.length-8))||0==n.toString().indexOf(e.attributePrefix)||0==n.toString().indexOf("__")||t[n]instanceof Function;var r}function d(e){var t=0;if(e instanceof Object)for(var n in e)c(e,n)||t++;return t}function h(t,n,i){return 0==e.jsonPropertiesFilter.length||""==i||r(e.jsonPropertiesFilter,t,n,i)}function p(t){var n=[];if(t instanceof Object)for(var r in t)-1==r.toString().indexOf("__")&&0==r.toString().indexOf(e.attributePrefix)&&n.push(r);return n}function f(t){var r="";return t instanceof Object?r+=function(t){var r="";return null!=t.__cdata&&(r+=""),null!=t.__text&&(e.escapeMode?r+=n(t.__text):r+=t.__text),r}(t):null!=t&&(e.escapeMode?r+=n(t):r+=t),r}function m(e,t){return""===e?t:e+"."+t}function g(e,t,n,r){var i="";if(0==e.length)i+=l(e,t,n,!0);else for(var o=0;o0)for(var r in e)if(!c(e,r)&&(""==t||h(e,r,m(t,r)))){var i=e[r],o=p(i);null==i||null==i?n+=l(i,r,o,!0):i instanceof Object?i instanceof Array?n+=g(i,r,o,t):i instanceof Date?(n+=l(i,r,o,!1),n+=i.toISOString(),n+=u(i,r)):d(i)>0||null!=i.__text||null!=i.__cdata?(n+=l(i,r,o,!1),n+=y(i,m(t,r)),n+=u(i,r)):n+=l(i,r,o,!0):(n+=l(i,r,o,!1),n+=f(i),n+=u(i,r))}return n+f(e)}void 0===(e=e||{}).escapeMode&&(e.escapeMode=!0),void 0===e.attributePrefix&&(e.attributePrefix="_"),e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1),e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1),void 0===e.ignoreRoot&&(e.ignoreRoot=!1),this.parseXmlString=function(e){var t;if(window.ActiveXObject||window,void 0===e)return null;if(window.DOMParser){var n=new window.DOMParser;try{(t=n.parseFromString(e,"text/xml")).getElementsByTagNameNS("*","parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?o(e):e},this.xml2json=function(e){return s(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return y(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}};var Fn="onLoad";function Bn(e){e=e||{};var t,n,r,i,o,s,c=this.context,d=(0,l.Z)(c).getInstance(),h=(0,$.Z)(c).getInstance();function p(e,t,n){var r,i,o={};o.elements=e,o.type=t,o.resolveType=n,0===o.elements.length&&m(o);for(var a=0;a")+2),r=t.resolvedContent.substr(0,i)+""+t.resolvedContent.substr(i)+"",t.resolvedContent=o.xml_str2json(r)}(function(e){var t;for(t=0;t=0;a--){if(n=(t=e.elements[a]).type+"_asArray",t.resolvedContent){if(t.resolvedContent)for(s=0;s0&&r.run(i)}(e),"onActuate"===e.resolveType&&d.trigger(u.Z.XLINK_READY,{manifest:i}),e.resolveType===Fn)switch(e.type){case a.Z.PERIOD:for(t=0;t=0;o--)(i=e[o]).hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===i["xlink:href"]&&e.splice(o,1);for(o=0;o=0}return!1}),(function(e){return String(e)}))}return i}(jn);function Kn(e){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(e)}function $n(e,t){return $n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$n(e,t)}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xn(e)}var Qn=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/;const Jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$n(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Xn(t);if(n){var i=Xn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){return!t||"object"!==Kn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,(function(e){for(var t=[a.Z.MIN_BUFFER_TIME,a.Z.MEDIA_PRESENTATION_DURATION,a.Z.MINIMUM_UPDATE_PERIOD,a.Z.TIMESHIFT_BUFFER_DEPTH,a.Z.MAX_SEGMENT_DURATION,a.Z.MAX_SUBSEGMENT_DURATION,a.Z.SUGGESTED_PRESENTATION_DELAY,a.Z.START,o.Z.START_TIME,a.Z.DURATION],n=t.length,r=0;r=0}return!1}),(function(e){var t=dn()(e);return void 0!==t?t:String(e)}))}return i}(jn),mr=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._merge=(n=t)&&n.length&&n.charAt(0)===n.charAt(0).toUpperCase()}var t;return(t=[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}])&&function(e,t){for(var n=0;n-1?(m&&(t=m.createMssParser(),m.createMssFragmentProcessor(),m.registerEvents()),t):e.indexOf("MPD")>-1||e.indexOf("Patch")>-1?xr(c).create({debug:d}):t}return t={load:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=new Date,l=new Dn(e,R.w.MPD_TYPE);t&&(l.serviceLocation=t),o&&(l.queryParams=o),l.requestStartDate||(l.requestStartDate=a),p.trigger(u.Z.MANIFEST_LOADING_STARTED,{request:l}),r.load({request:l,success:function(t,r,o){var a,l,c;if(i)if(o&&o!==e?(l=f.parseBaseUrl(o),a=o):(f.isRelative(e)&&(e=f.resolve(e,window.location.href)),l=f.parseBaseUrl(e)),"No Content"!=r)if(null===s&&(s=v(t)),null!==s){i.setMatchers(s.getMatchers()),i.setIron(s.getIron());try{c=s.parse(t)}catch(t){return void p.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new w.Z(x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(e))})}if(c){if(c.url=a||e,c.originalUrl||(c.originalUrl=c.url),h&&h.get().streaming.enableManifestDurationMismatchFix&&c.mediaPresentationDuration&&c.Period_asArray.length>1){var d=c.Period_asArray.reduce((function(e,t){return e+t.duration}),0);!isNaN(d)&&c.mediaPresentationDuration>d&&(n.warn("Media presentation duration greater than duration of all periods. Setting duration to total period duration"),c.mediaPresentationDuration=d)}c.baseUri=l,c.loadedTime=new Date,i.resolveManifestOnLoad(c),p.trigger(u.Z.ORIGINAL_MANIFEST_LOADED,{originalManifest:t})}else p.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new w.Z(x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(e))})}else p.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new w.Z(x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE,x.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE+"".concat(e))});else p.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null})},error:function(t,n,r){p.trigger(u.Z.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new w.Z(x.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE,x.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE+"".concat(e,", ").concat(r))})}})},reset:function(){p.off(u.Z.XLINK_READY,y,t),m&&m.reset(),i&&(i.reset(),i=null),r&&(r.abort(),r=null)}},n=d.getLogger(t),p.on(u.Z.XLINK_READY,y,t),r=ft(c).create({errHandler:e.errHandler,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,urlUtils:f,constants:o.Z,dashConstants:a.Z,errors:x,requestTimeout:e.settings.get().streaming.manifestRequestTimeout}),i=Un(c).create({errHandler:g,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,settings:e.settings}),s=null,t}Ir.__dashjs_factory_name="ManifestLoader";const Rr=c.Z.getClassFactory(Ir);function Cr(){var e=this.context,t=(0,l.Z)(e).getInstance();return{error:function(e){t.trigger(u.Z.ERROR,{error:e})}}}Cr.__dashjs_factory_name="ErrorHandler";const Mr=c.Z.getSingletonFactory(Cr);var Lr=n(1715);function Pr(){var e,t,n,r,i,a,s=this.context,c=(0,l.Z)(s).getInstance();function h(e,r){if(!r||!r.Period_asArray||0===r.Period_asArray.length)return Promise.resolve();var i=[];return r.Period_asArray.forEach((function(r){i.push(function(e,r){return new Promise((function(i){if(e&&e.AdaptationSet_asArray&&0!==e.AdaptationSet_asArray.length){var s=[];e.AdaptationSet_asArray.forEach((function(e){t.getIsTypeOf(e,r)&&s.push(function(e,r){return new Promise((function(i){if(e.Representation_asArray&&0!==e.Representation_asArray.length){var s=[],l=[];e.Representation_asArray.forEach((function(i,a){var u=t.getCodec(e,a,!1),c=function(e,t,n){switch(e){case o.Z.VIDEO:return function(e,t){return{codec:t,width:e.width||null,height:e.height||null,framerate:e.frameRate||null,bitrate:e.bandwidth||null}}(t,n);case o.Z.AUDIO:return function(e,t){var n=e.audioSamplingRate||null;return{codec:t,bitrate:e.bandwidth||null,samplerate:n}}(t,n);default:return null}}(r,i,u);l.push(c),s.push(n.supportsCodec(c,r))})),Promise.all(s).then((function(t){e.Representation_asArray=e.Representation_asArray.filter((function(e,n){return t[n]||a.debug("[Stream] Codec ".concat(l[n].codec," not supported ")),t[n]})),i()})).catch((function(){i()}))}else i()}))}(e,r))})),Promise.all(s).then((function(){e.AdaptationSet_asArray=e.AdaptationSet_asArray.filter((function(e){var t=e.Representation_asArray&&e.Representation_asArray.length>0;return t||(c.trigger(u.Z.ADAPTATION_SET_REMOVED_NO_CAPABILITIES,{adaptationSet:e}),a.warn("AdaptationSet has been removed because of no supported Representation")),t})),i()})).catch((function(){i()}))}else i()}))}(r,e))})),Promise.all(i)}return e={setConfig:function(e){e&&(e.adapter&&(t=e.adapter),e.capabilities&&(n=e.capabilities),e.settings&&(r=e.settings),e.customParametersModel&&(i=e.customParametersModel))},filterUnsupportedFeatures:function(e){return new Promise((function(s){var l=[];l.push(h(o.Z.VIDEO,e)),l.push(h(o.Z.AUDIO,e)),Promise.all(l).then((function(){r.get().streaming.capabilities.filterUnsupportedEssentialProperties&&function(e){e&&e.Period_asArray&&0!==e.Period_asArray.length&&e.Period_asArray.forEach((function(e){e.AdaptationSet_asArray=e.AdaptationSet_asArray.filter((function(e){return!e.Representation_asArray||0===e.Representation_asArray.length||(e.Representation_asArray=e.Representation_asArray.filter((function(e){var r=t.getEssentialPropertiesForRepresentation(e);if(r&&r.length>0)for(var i=0;i0)}))}))}(e),function(e){var t=i.getCustomCapabilitiesFilters();t&&0!==t.length&&e&&e.Period_asArray&&0!==e.Period_asArray.length&&e.Period_asArray.forEach((function(e){e.AdaptationSet_asArray=e.AdaptationSet_asArray.filter((function(e){return!e.Representation_asArray||0===e.Representation_asArray.length||(e.Representation_asArray=e.Representation_asArray.filter((function(e){return!t.some((function(t){return!t(e)}))})),e.Representation_asArray&&e.Representation_asArray.length>0)}))}))}(e),s()})).catch((function(){s()}))}))}},a=(0,d.Z)(s).getInstance().getLogger(e),e}Pr.__dashjs_factory_name="CapabilitiesFilter";const Dr=c.Z.getSingletonFactory(Pr),Or=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null};function Nr(){var e;return{initialize:function(t){if(e=new Or,!t)return null;var n=t.indexOf("#");if(-1!==n)for(var r=t.substr(n+1).split("&"),i=0,o=r.length;i0?(n&&t.warn("Supplied minimum playback rate is a positive value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."),0):e1?(n&&t.warn("Supplied maximum playback rate is out of range and will be limited to ".concat(1,": ").concat(200,"% playback speed.")),1):e}function l(){var e=o.get().streaming.buffer.stableBufferTime>0?o.get().streaming.buffer.stableBufferTime:o.get().streaming.buffer.fastSwitchEnabled?20:12,t=n.getLiveDelay();return!isNaN(t)&&t>0?Math.min(e,t):e}return e={getCatchupMaxDrift:function(){if(!isNaN(o.get().streaming.liveCatchup.maxDrift)&&o.get().streaming.liveCatchup.maxDrift>0)return o.get().streaming.liveCatchup.maxDrift;var e=r.getServiceDescriptionSettings();return e&&e.liveCatchup&&!isNaN(e.liveCatchup.maxDrift)&&e.liveCatchup.maxDrift>0?e.liveCatchup.maxDrift:12},getCatchupModeEnabled:function(){return null!==o.get().streaming.liveCatchup.enabled?o.get().streaming.liveCatchup.enabled:n.getInitialCatchupModeActivated()},getStableBufferTime:l,getInitialBufferLevel:function(){var e=o.get().streaming.buffer.initialBufferLevel;return isNaN(e)||e<0?0:Math.min(l(),e)},getRetryAttemptsForType:function(e){var t=isNaN(o.get().streaming.retryAttempts.lowLatencyMultiplyFactor)?5:o.get().streaming.retryAttempts.lowLatencyMultiplyFactor;return n.getLowLatencyModeEnabled()?o.get().streaming.retryAttempts[e]*t:o.get().streaming.retryAttempts[e]},getRetryIntervalsForType:function(e){var t=isNaN(o.get().streaming.retryIntervals.lowLatencyReductionFactor)?10:o.get().streaming.retryIntervals.lowLatencyReductionFactor;return n.getLowLatencyModeEnabled()?o.get().streaming.retryIntervals[e]/t:o.get().streaming.retryIntervals[e]},getCatchupPlaybackRates:function(e){var t=o.get().streaming.liveCatchup.playbackRate;if(!isNaN(t.min)||!isNaN(t.max))return{min:a(t.min,e),max:s(t.max,e)};var n=r.getServiceDescriptionSettings();if(n&&n.liveCatchup&&(!isNaN(n.liveCatchup.playbackRate.min)||!isNaN(n.liveCatchup.playbackRate.max))){var i=n.liveCatchup.playbackRate;return{min:a(i.min,e),max:s(i.max,e)}}return{min:-.5,max:.5}},getAbrBitrateParameter:function(e,t){try{var n=o.get().streaming.abr[e][t];if(!isNaN(n)&&-1!==n)return n;var i=r.getServiceDescriptionSettings();return i&&i[e]&&!isNaN(i[e][t])?i[e][t]:-1}catch(e){return-1}},setConfig:function(e){e.playbackController&&(n=e.playbackController),e.serviceDescriptionController&&(r=e.serviceDescriptionController)},reset:function(){}},t=(0,d.Z)(i).getInstance().getLogger(e),e}zr.__dashjs_factory_name="MediaPlayerModel";const Gr=c.Z.getSingletonFactory(zr);var Vr=n(1767);function jr(e){var t=(e=e||{}).abrController,n=e.switchHistory,r=e.droppedFramesHistory,i=e.currentRequest,o=e.useBufferOccupancyABR,a=e.useL2AABR,s=e.useLoLPABR,l=e.streamProcessor?e.streamProcessor.getScheduleController():null,u=e.streamProcessor?e.streamProcessor.getRepresentationInfo():null,c=e.videoModel?e.videoModel:null;function d(){return u?u.mediaInfo:null}return{getMediaType:function(){var e=d();return e?e.type:null},getMediaInfo:d,getDroppedFramesHistory:function(){return r},getCurrentRequest:function(){return i},getSwitchHistory:function(){return n},getStreamInfo:function(){var e=d();return e?e.streamInfo:null},getScheduleController:function(){return l},getAbrController:function(){return t},getRepresentationInfo:function(){return u},useBufferOccupancyABR:function(){return o},useL2AABR:function(){return a},useLoLPABR:function(){return s},getVideoModel:function(){return c}}}jr.__dashjs_factory_name="RulesContext";const Hr=c.Z.getClassFactory(jr);var Zr=n(2068);function qr(){var e=[],t=[];return{push:function(n){n.newValue===Zr.Z.NO_CHANGE&&(n.newValue=n.oldValue),e[n.oldValue]||(e[n.oldValue]={noDrops:0,drops:0,dropSize:0});var r=n.newValue-n.oldValue,i=r<0?1:0,o=i?-r:0,a=i?0:1;if(e[n.oldValue].drops+=i,e[n.oldValue].dropSize+=o,e[n.oldValue].noDrops+=a,t.push({idx:n.oldValue,noDrop:a,drop:i,dropSize:o}),t.length>8){var s=t.shift();e[s.idx].drops-=s.drop,e[s.idx].dropSize-=s.dropSize,e[s.idx].noDrops-=s.noDrop}},getSwitchRequests:function(){return e},reset:function(){e=[],t=[]}}}qr.__dashjs_factory_name="SwitchRequestHistory";const Wr=c.Z.getClassFactory(qr);function Yr(){var e={},t={},n={};return{push:function(r,i,o){if(i){e[r]||(e[r]=[],t[r]=0,n[r]=0);var a=o&&o.droppedVideoFrames?o.droppedVideoFrames:0,s=o&&o.totalVideoFrames?o.totalVideoFrames:0,l=a-t[r];t[r]=a;var u=s-n[r];n[r]=s;var c=e[r];isNaN(i)||(c[i]?(c[i].droppedVideoFrames+=l,c[i].totalVideoFrames+=u):c[i]={droppedVideoFrames:l,totalVideoFrames:u})}},getFrameHistory:function(t){return e[t]},clearForStream:function(r){try{delete e[r],delete t[r],delete n[r]}catch(e){}},reset:function(){e={},t={},n={}}}}Yr.__dashjs_factory_name="DroppedFramesHistory";const Kr=c.Z.getClassFactory(Yr);function $r(e){var t,n,r,i,a,s=this.context,u=(e=e||{}).settings,c=(0,l.Z)(s).getInstance();function d(e,t,n,r){var i=Math.pow(.5,n/r.fast);e.fastEstimate=(1-i)*t+i*e.fastEstimate;var o=Math.pow(.5,n/r.slow);e.slowEstimate=(1-o)*t+o*e.slowEstimate,e.totalWeight+=n}function p(e,s,l){return u.get().streaming.abr.movingAverageMethod!==o.Z.MOVING_AVERAGE_SLIDING_WINDOW?function(e,t){var n=e?a.throughputHalfLife:a.latencyHalfLife,o=e?r[t]:i[t];if(!o||o.totalWeight<=0)return NaN;var s=o.fastEstimate/(1-Math.pow(.5,o.totalWeight/n.fast)),l=o.slowEstimate/(1-Math.pow(.5,o.totalWeight/n.slow));return e?Math.min(s,l):Math.max(s,l)}(e,s):function(e,r,i){var o=function(e,r,i){var o,a;if(e?(o=t[r],a=i?3:4):(o=n[r],a=4),o){if(a>=o.length)a=o.length;else if(e)for(var s=1;s=1.3||l<=1/1.3)&&(a+=1)===o.length)break}}else a=0;return a}(e,r,i),a=(e?t:n)[r];return 0!==o&&a&&0!==a.length?(a=a.slice(-o)).reduce((function(e,t){return e+t}))/a.length:NaN}(e,s,l)}function f(e,t){return p(!0,e,t)}function m(e){t[e]=t[e]||[],n[e]=n[e]||[],r[e]=r[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0},i[e]=i[e]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}function g(){t={},n={},r={},i={}}var y={push:function(e,s,l){if(s.trace&&s.trace.length){var p,f=s.tresponse.getTime()-s.trequest.getTime()||1,g=s._tfinish.getTime()-s.tresponse.getTime()||1,y=s.trace.reduce((function(e,t){return e+t.b[0]}),0),v=0;if(0!==(p=s._fileLoaderType&&s._fileLoaderType===o.Z.FILE_LOADER_TYPES.FETCH?s.trace.reduce((function(e,t){return e+t.d}),0):l?g:f+g)&&(v=Math.round(8*y/p)),s.cmsd){var b=s.cmsd.dynamic&&s.cmsd.dynamic.etp?s.cmsd.dynamic.etp:null;if(b){var _=u.get().streaming.cmsd.abr.etpWeightRatio;_>0&&_<=1&&(v=v*(1-_)+b*_)}}if(m(e),function(e,t,n){return e===o.Z.VIDEO?n0&&!t[e].hasCachedEntries)return;t[e].hasCachedEntries=!0}else t[e]&&t[e].hasCachedEntries&&function(e){delete t[e],delete n[e],delete r[e],delete i[e],m(e)}(e);t[e].push(v),c.trigger(h.Z.THROUGHPUT_MEASUREMENT_STORED,{throughput:v,mediaType:e,httpRequest:s}),t[e].length>20&&t[e].shift(),n[e].push(f),n[e].length>20&&n[e].shift(),d(r[e],v,.001*g,a.throughputHalfLife),d(i[e],f,1,a.latencyHalfLife)}},getAverageThroughput:f,getSafeAverageThroughput:function(e,t){var n=f(e,t);return isNaN(n)||(n*=u.get().streaming.abr.bandwidthSafetyFactor),n},getAverageLatency:function(e){return p(!1,e)},reset:g};return a={throughputHalfLife:{fast:3,slow:8},latencyHalfLife:{fast:1,slow:2}},g(),y}$r.__dashjs_factory_name="ThroughputHistory";const Xr=c.Z.getClassFactory($r);function Qr(){var e,t,n,r,i,a,c,p,f,m,g,y,v,b,_,w,T,A,S,x,I,C,M,L,P,D,O,N=this.context,k=(0,d.Z)(N).getInstance(),F=(0,l.Z)(N).getInstance();function B(){i={},a={},p={},c={},x={},M={},L={},P={},void 0===m&&(m=!1),I&&I.reset(),S=void 0,I=void 0,C=void 0,clearTimeout(f),f=null}function U(t){var i=t.request.mediaType,o=t.streamId;if(i&&o&&c[o]&&O.get().streaming.abr.autoSwitchBitrate[i]){var a=c[o][i];if(a){var l=Hr(N).create({abrController:e,streamProcessor:a,currentRequest:t.request,useBufferOccupancyABR:M[i],useL2AABR:L[i],useLoLPABR:P[i],videoModel:b}),u=n.shouldAbandonFragment(l,o);u.quality>Zr.Z.NO_CHANGE&&a.getFragmentModel().getRequests({state:E.FRAGMENT_MODEL_LOADING,index:t.request.index})[0]&&(p[o][i].state=s.Z.ABANDON_LOAD,x[o][i].reset(),x[o][i].push({oldValue:H(i,o),newValue:u.quality,confidence:1,reason:u.reason}),Z(i,r.getActiveStreamInfo(),u.quality,u.reason),clearTimeout(f),f=setTimeout((function(){p[o][i].state=s.Z.ALLOW_LOAD,f=null}),O.get().streaming.abandonLoadTimeout))}}}function z(e){e.mediaType===o.Z.VIDEO&&(void 0!==S&&I.push(e.streamId,S,b.getPlaybackQuality()),S=e.newQuality)}function G(e){var n,r;e.metric!==s.Z.HTTP_REQUEST||!e.value||e.value.type!==R.w.MEDIA_SEGMENT_TYPE||e.mediaType!==o.Z.AUDIO&&e.mediaType!==o.Z.VIDEO||C.push(e.mediaType,e.value,O.get().streaming.abr.useDeadTimeLatency),e.metric!==s.Z.BUFFER_LEVEL||e.mediaType!==o.Z.AUDIO&&e.mediaType!==o.Z.VIDEO||(n=e.mediaType,r=.001*e.value.level,O.get().streaming.abr.ABRStrategy===o.Z.ABR_STRATEGY_DYNAMIC&&function(e,n){try{var r=_.getStableBufferTime(),i=r,o=.5*r,a=M[e],s=n>(a?o:i);M[e]=s,s!==a&&(s?t.info("["+e+"] switching from throughput to buffer occupancy ABR rule (buffer: "+n.toFixed(3)+")."):t.info("["+e+"] switching from buffer occupancy to throughput ABR rule (buffer: "+n.toFixed(3)+")."))}catch(e){t.error(e)}}(n,r))}function V(e,n){try{var r;return i[n]=i[n]||{},i[n].hasOwnProperty(e)||(i[n][e]=0),r=function(e,t){var n=i[t][e],r=n;if(!c[t]||!c[t][e])return r;var o=j(e,t);void 0!==o&&(r=Math.max(n,o));var a=function(e,t){try{var n=_.getAbrBitrateParameter("maxBitrate",e);return n>-1?K(c[t][e].getMediaInfo(),n,t):void 0}catch(e){return}}(e,t);return void 0!==a&&(r=Math.min(r,a)),r}(e,n),r=function(e,t,n){var r=i[n][t],o=O.get().streaming.abr.maxRepresentationRatio[t];return isNaN(o)||o>=1||o<0?e:Math.min(e,Math.round(r*o))}(r,e,n),r=function(e,t,n){if(t!==o.Z.VIDEO||!O.get().streaming.abr.limitBitrateByPortal||!c[n]||!c[n][t])return e;m||X();var r=c[n][t].getStreamInfo(),i=v.getAdaptationForType(r.index,t,r).Representation_asArray,a=e;if(g>0&&y>0){for(;a>0&&i[a]&&g-1){var r=c[t][e].getMediaInfo(),i=$(r),o=K(r,n,t);return i[o]&&o1&&void 0!==arguments[1]?arguments[1]:null;try{return t||(t=r.getActiveStreamInfo().id),e&&c[t]&&c[t][e]&&t?(a[t]=a[t]||{},a[t].hasOwnProperty(e)||(a[t][e]=0),a[t][e]):0}catch(e){return 0}}function Z(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(t&&t.id&&e){var i=t.id,o=H(e,i);(0,W.SE)(n);var a=V(e,i);n!==o&&n>=0&&n<=a&&q(e,o,n,a,r,i)}}function q(e,n,r,i,o,s){if(e&&c[s]&&c[s][e]){var l=c[s][e].getStreamInfo(),d=l&&l.manifestInfo&&l.manifestInfo.isDynamic,h=D.getCurrentBufferLevel(e);t.info("Stream ID: "+s+" ["+e+"] switch from "+n+" to "+r+"/"+i+" (buffer: "+h+") "+(o?JSON.stringify(o):".")),a[s]=a[s]||{},a[s][e]=r;var p=Y(s,e,r);F.trigger(u.Z.QUALITY_CHANGE_REQUESTED,{oldQuality:n,newQuality:r,reason:o,streamInfo:l,bitrateInfo:p,maxIdx:i,mediaType:e},{streamId:l.id,mediaType:e});var f=C.getAverageThroughput(e,d);isNaN(f)||A.setSavedBitrateSettings(e,f)}}function Y(e,t,n){if(t&&c&&c[e]&&c[e][t]){var r=$(c[e][t].getMediaInfo());return r[n]?r[n]:null}return null}function K(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=e&&e.type?c[n][e.type].getRepresentationInfo():null;if(O.get().streaming.abr.useDeadTimeLatency&&r&&i&&i.fragmentDuration){r/=1e3;var o=i.fragmentDuration;if(r>o)return 0;t*=1-r/o}for(var a=$(e),s=a.length-1;s>=0;s--)if(1e3*t>=a[s].bitrate)return s;return 0}function $(e){var t=[];if(!e||!e.bitrateList)return t;for(var n,r=e.bitrateList,i=e.type,o=0,a=r.length;o1&&void 0!==arguments[1]?arguments[1]:null;if(t||(t=r.getActiveStreamInfo().id),e&&c&&c[t]&&c[t][e]){var n=V(e,t),i=$(c[t][e].getMediaInfo());return i[n]?i[n]:null}return null},getMinAllowedIndexFor:j,getMaxAllowedIndexFor:V,getInitialBitrateFor:function(e,t){if(function(){if(!A||!A.hasOwnProperty("getSavedBitrateSettings"))throw new Error(o.Z.MISSING_CONFIG_ERROR)}(),e===o.Z.TEXT)return NaN;var n=A.getSavedBitrateSettings(e),r=_.getAbrBitrateParameter("initialBitrate",e),i=O.get().streaming.abr.initialRepresentationRatio[e];if(-1===r)if(i>-1){var a=c[t][e].getStreamInfo(),s=v.getAdaptationForType(a.index,e,a).Representation_asArray;r=Array.isArray(s)?s[Math.max(Math.round(s.length*i)-1,0)].bandwidth/1e3:0}else r=isNaN(n)?e===o.Z.VIDEO?1e3:100:n;return r},getQualityFor:H,getAbandonmentStateFor:function(e,t){return p[e]&&p[e][t]?p[e][t].state:null},setPlaybackQuality:Z,checkPlaybackQuality:function(t,r){try{if(!(t&&c&&c[r]&&c[r][t]))return!1;if(I){var i=b.getPlaybackQuality();i&&I.push(r,S,i)}if(!O.get().streaming.abr.autoSwitchBitrate[t])return!1;var o=H(t,r),a=Hr(N).create({abrController:e,switchHistory:x[r][t],droppedFramesHistory:I,streamProcessor:c[r][t],currentValue:o,useBufferOccupancyABR:M[t],useL2AABR:L[t],useLoLPABR:P[t],videoModel:b}),l=j(t,r),u=V(t,r),d=n.getMaxQuality(a),h=d.quality;return void 0!==l&&(h>Zr.Z.NO_CHANGE?h:o)u&&(h=u),x[r][t].push({oldValue:o,newValue:h}),h>Zr.Z.NO_CHANGE&&h!==o&&(p[r][t].state===s.Z.ALLOW_LOAD||h0}function m(){if(n&&f()&&0===n.playbackRate){var e=document.createEvent("Event");e.initEvent("waiting",!0,!1),n.dispatchEvent(e)}}function g(e,t){n&&n.addEventListener(e,t)}function y(e,t){n&&n.removeEventListener(e,t)}function v(){return n?n.readyState:NaN}function b(){return n?n.buffered:null}function _(e,t,r,i,o){if(n)for(var a=0;a=e?t():function(e,t){g(e,(function n(){y(e,n),t(e)}))}(ti.get(e),t)}return e={initialize:function(){c.on(u.Z.PLAYBACK_PLAYING,m,this)},setCurrentTime:function(e,t){n&&(r=e,E(o.Z.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA,(function(){if(n.currentTime!==r)try{r=t?function(e){var t=b(),n=e,r=9999999999;if(t)for(var i=0;i=o&&e<=a)return e;s1&&void 0!==arguments[1]&&arguments[1])&&n.readyState<=2&&e>0?n.addEventListener("canplay",p):n.playbackRate=e)},getPlayedRanges:function(){return n?n.played:null},getEnded:function(){return n?n.ended:null},setStallState:function(e,t){!function(e,t){t?function(e){null!==e&&n&&!n.seeking&&-1===h.indexOf(e)&&h.push(e)}(e):function(e){var t=h.indexOf(e);null!==e&&-1!==t&&h.splice(t,1)}(e)}(e,t)},getElement:function(){return n},setElement:function(e){if(!(null==e||e&&/^(VIDEO|AUDIO)$/i.test(e.nodeName)))throw"element is not video or audio DOM type!";(n=e)&&(n.preload="auto")},setSource:function(e){n&&(e?n.src=e:(n.removeAttribute("src"),n.load()))},getSource:function(){return n?n.src:null},getTTMLRenderingDiv:function(){return i},setTTMLRenderingDiv:function(e){(i=e).style.position="absolute",i.style.display="flex",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.top=0,i.style.left=0},getVttRenderingDiv:function(){return a},setVttRenderingDiv:function(e){a=e},getPlaybackQuality:function(){if(!n)return null;var e="webkitDroppedFrameCount"in n&&"webkitDecodedFrameCount"in n,t=null;return"getVideoPlaybackQuality"in n?t=n.getVideoPlaybackQuality():e&&(t={droppedVideoFrames:n.webkitDroppedFrameCount,totalVideoFrames:n.webkitDroppedFrameCount+n.webkitDecodedFrameCount,creationTime:new Date}),t},addEventListener:g,removeEventListener:y,getReadyState:v,getBufferRange:b,getClientWidth:function(){return n?n.clientWidth:NaN},getClientHeight:function(){return n?n.clientHeight:NaN},getTextTracks:function(){return n?n.textTracks:[]},getTextTrack:_,addTextTrack:function(e,t,r,i,o){if(!n)return null;var a=_(e,t,r,i,o);return a||((a=n.addTextTrack(e,t,r)).isEmbedded=o,a.isTTML=i),a},appendChild:function(e){n&&(n.appendChild(e),void 0!==e.isTTML&&(n.textTracks[n.textTracks.length-1].isTTML=e.isTTML,n.textTracks[n.textTracks.length-1].isEmbedded=e.isEmbedded))},removeChild:function(e){n&&n.removeChild(e)},getVideoWidth:function(){return n?n.videoWidth:NaN},getVideoHeight:function(){return n?n.videoHeight:NaN},getVideoRelativeOffsetTop:function(){if(n){var e=n.parentNode.host||n.parentNode;return e?n.getBoundingClientRect().top-e.getBoundingClientRect().top:NaN}return NaN},getVideoRelativeOffsetLeft:function(){if(n){var e=n.parentNode.host||n.parentNode;return e?n.getBoundingClientRect().left-e.getBoundingClientRect().left:NaN}return NaN},waitForReadyState:E,reset:function(){c.off(u.Z.PLAYBACK_PLAYING,m,this)}},t=(0,d.Z)(s).getInstance().getLogger(e),r=NaN,e}ni.__dashjs_factory_name="VideoModel";const ri=c.Z.getSingletonFactory(ni);var ii=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],oi="dashjs_?_bitrate",ai="dashjs_?_settings",si="localStorage",li="lastBitrate",ui="lastMediaSettings";function ci(e){e=e||{};var t,n,r,i=this.context,a=e.settings;function s(e){if(void 0!==r)return r;var t;r=!1;try{"undefined"!=typeof window&&(t=window[e])}catch(e){return n.warn("DOMStorage access denied: "+e.message),r}if(!t||e!==si&&"sessionStorage"!==e)return r;try{t.setItem("1","1"),t.removeItem("1"),r=!0}catch(e){n.warn("DOMStorage is supported, but cannot be used: "+e.message)}return r}function l(){var e=6e5;return Math.round((new Date).getTime()/e)*e}function u(e,t){return s(e)&&a.get().streaming[t+"CachingInfo"].enabled}function c(){if(!a)throw new Error(o.Z.MISSING_CONFIG_ERROR)}return t={getSavedBitrateSettings:function(e){if(c(),!a.get().streaming.lastBitrateCachingInfo.enabled)return NaN;var t=NaN;if(u(si,li)){var r=oi.replace(/\?/,e);try{var i=JSON.parse(localStorage.getItem(r))||{},o=(new Date).getTime()-parseInt(i.timestamp,10)>=a.get().streaming.lastBitrateCachingInfo.ttl||!1,s=parseFloat(i.bitrate);isNaN(s)||o?o&&localStorage.removeItem(r):(t=s,n.debug("Last saved bitrate for "+e+" was "+s))}catch(e){return null}}return t},setSavedBitrateSettings:function(e,t){if(u(si,li)&&t){var r=oi.replace(/\?/,e);try{localStorage.setItem(r,JSON.stringify({bitrate:t.toFixed(3),timestamp:l()}))}catch(e){n.error(e.message)}}},getSavedMediaSettings:function(e){if(c(),!a.get().streaming.lastMediaSettingsCachingInfo.enabled)return null;var t=null;if(u(si,ui)){var n=ai.replace(/\?/,e);try{var r=JSON.parse(localStorage.getItem(n))||{},i=(new Date).getTime()-parseInt(r.timestamp,10)>=a.get().streaming.lastMediaSettingsCachingInfo.ttl||!1;t=r.settings,i&&(localStorage.removeItem(n),t=null)}catch(e){return null}}return t},setSavedMediaSettings:function(e,t){if(u(si,ui)){var r=ai.replace(/\?/,e);try{localStorage.setItem(r,JSON.stringify({settings:t,timestamp:l()}))}catch(e){n.error(e.message)}}}},n=(0,d.Z)(i).getInstance().getLogger(t),s(si)&&ii.forEach((function(e){var t=localStorage.getItem(e.oldKey);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(e){n.error(e.message)}}})),t}ci.__dashjs_factory_name="DOMStorage";const di=c.Z.getSingletonFactory(ci);var hi=n(2032),pi=n(2011);function fi(){var e,t,n,r,i,o,a,s,l,u,c,d,h,p=this.context;function f(e,n,i,o){var a=null,l=e?h.resolve(e.path):null,u=o||{init:!0,url:l?l.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,mediaType:n};t.debug("Start searching for initialization.");var c=v(u);s.load({request:c,success:function(t){if(u.bytesLoaded=u.range.end,!(a=r.findInitRange(t)))return u.range.end=u.bytesLoaded+u.bytesToLoad,f(e,n,i,u);e.range=a,i(e)},error:function(){i(e)}}),t.debug("Perform init search: "+u.url)}function g(e,n,i,o,a,l){if(i&&(void 0===i.start||void 0===i.end)){var u=i?i.toString().split("-"):null;i=u?{start:parseFloat(u[0]),end:parseFloat(u[1])}:null}a=a||y;var c=null,d=null,p=!!i,f=e?h.resolve(e.path):null,m={init:!1,url:f?f.url:void 0,range:p?i:{start:0,end:1500},searching:!p,bytesLoaded:l?l.bytesLoaded:0,bytesToLoad:1500,mediaType:n},b=v(m);s.load({request:b,success:function(i){var s=m.bytesToLoad,l=i.byteLength;if(m.bytesLoaded=m.range.end-m.range.start,c=r.parse(i),(d=c.getBox("sidx"))&&d.isComplete){var u,h,p=d.references;if(null!=p&&p.length>0&&(u=1===p[0].reference_type),u){var f,y,v,b;t.debug("Initiate multiple SIDX load."),m.range.end=m.range.start+d.size;var _=[],E=0,w=(d.offset||m.range.start)+d.size,T=function(t){t?(_=_.concat(t),++E>=y&&(_.sort((function(e,t){return e.startTime-t.startTime<0?-1:0})),a(_,e,o))):a(null,e,o)};for(f=0,y=p.length;f16777215?(n.getUint32(r)!==e.tag&&(i=!1),o=4):e.tag>65535?(256*n.getUint16(r)+n.getUint8(r+2)!==e.tag&&(i=!1),o=3):e.tag>255?(n.getUint16(r)!==e.tag&&(i=!1),o=2):(n.getUint8(r)!==e.tag&&(i=!1),o=1),!i&&e.required&&!t)throw new Error("required tag not found");return i&&(r+=o),i}function o(e){var t=1,i=128,o=-1,a=0,s=n.getUint8(r),l=0;for(l=0;l<8;l+=1){if((s&i)===i){a=void 0===e?s&~i:s,o=l;break}i>>=1}for(l=0;l4)return function(e){for(var t=Math.floor(Number.MAX_SAFE_INTEGER/256),i=0,o=0;ot)throw new Error("Value exceeds safe integer limit");i*=256;var a=n.getUint8(r+o);if(i>Number.MAX_SAFE_INTEGER-a)throw new Error("Value exceeds safe integer limit");i+=a}return r+=e,i}(e);for(var t=0,i=0;i>>0},moreData:function(){return r1&&o){var u=h(o,n);if(i[o.id]&&i[o.id][n])for(var d=0,p=l.length;d0))return l;s=r[0].mpd.manifest}var u=v(e,a),c=t.getAdaptationsForType(s,e?e.index:null,n);return l=d(s,u,e,c,n),n===o.TEXT&&(c=t.getAdaptationsForType(s,e?e.index:null,o.VIDEO),l=l.concat(d(s,u,e,c,n,!0))),l}function p(e){var n=f(e);return t.getRegularPeriods(n)}function f(e){var n=g(e);return t.getMpd(n)}function m(){r=[],i={}}function g(e){return e||(r.length>0?r[0].mpd.manifest:null)}function y(e){try{var n=v(e.streamInfo,r),i=t.getAdaptationsForPeriod(n);return e&&e.streamInfo&&void 0!==e.streamInfo.id&&i?i[e.index]:null}catch(e){return null}}function v(e,t){for(var n=t.length,r=0;r=0&&void 0!==s&&(n=t?"cea-608:"+t:"cea-608",l.embeddedCaptions=!0),n})),l.accessibilitiesWithSchemeIdUri=a,r=t.getAudioChannelConfigurationForAdaptation(u),l.audioChannelConfiguration=r.map((function(e){return e.value})),l.audioChannelConfigurationsWithSchemeIdUri=r,0===l.audioChannelConfiguration.length&&Array.isArray(u.Representation_asArray)&&u.Representation_asArray.length>0&&(i=t.getAudioChannelConfigurationForRepresentation(u.Representation_asArray[0]),l.audioChannelConfiguration=i.map((function(e){return e.value})),l.audioChannelConfigurationsWithSchemeIdUri=i),o=t.getRolesForAdaptation(u),l.roles=o.map((function(e){return e.value})),l.rolesWithSchemeIdUri=o,l.codec=t.getCodec(u),l.mimeType=t.getMimeType(u),l.contentProtection=t.getContentProtectionData(u),l.bitrateList=t.getBitrateListForAdaptation(u),l.selectionPriority=t.getSelectionPriority(u),l.contentProtection){var c=l.contentProtection.map((function(e){return t.getKID(e)})).filter((function(e){return null!==e}));if(c.length){var d=c[0];l.contentProtection.forEach((function(e){e.keyId=d}))}}if(l.isText=t.getIsText(u),l.supplementalProperties=t.getSupplementalPropertiesForAdaptation(u),(!l.supplementalProperties||0===Object.keys(l.supplementalProperties).length)&&Array.isArray(u.Representation_asArray)&&u.Representation_asArray.length>0){var h=u.Representation_asArray.map((function(e){return t.getSupplementalPropertiesForRepresentation(e)}));h.every((function(e){return JSON.stringify(e)===JSON.stringify(h[0])}))&&(l.supplementalProperties=h[0])}if(l.supplementalPropertiesAsArray=t.getSupplementalPropertiesAsArrayForAdaptation(u),(!l.supplementalPropertiesAsArray||0===l.supplementalPropertiesAsArray.length)&&Array.isArray(u.Representation_asArray)&&u.Representation_asArray.length>0){var p=u.Representation_asArray.map((function(e){return t.getSupplementalPropertiesAsArrayForRepresentation(e)}));p.every((function(e){return JSON.stringify(e)===JSON.stringify(p[0])}))&&(l.supplementalPropertiesAsArray=p[0])}return l.isFragmented=t.getIsFragmented(u),l.isEmbedded=!1,l}function _(e,t,n){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type=o.TEXT,e.codec="cea-608-in-SEI",e.isEmbedded=!0,e.isFragmented=!1,e.lang=dn()(n),e.roles=["caption"],e.rolesWithSchemeIdUri=[{schemeIdUri:"urn:mpeg:dash:role:2011",value:"caption"}]}function E(e){var n,r,i=new Ai;return i.id=e.id,i.index=e.index,i.start=e.start,i.duration=e.duration,i.manifestInfo=(n=e.mpd,(r=new Si).dvrWindowSize=n.timeShiftBufferDepth,r.loadedTime=n.manifest.loadedTime,r.availableFrom=n.availabilityStartTime,r.minBufferTime=n.manifest.minBufferTime,r.maxFragmentDuration=n.maxSegmentDuration,r.duration=t.getDuration(n.manifest),r.isDynamic=t.getIsDynamic(n.manifest),r.serviceDescriptions=t.getServiceDescriptions(n.manifest),r.protocol=n.manifest.protocol,r),i.isLast=1===e.mpd.manifest.Period_asArray.length||Math.abs(i.start+i.duration-i.manifestInfo.duration)<1,i}function w(){if(!o)throw new Error("setConfig function has to be called previously")}function T(e){return r.length>0?r[0].mpd.manifest.Period_asArray[e]:null}function A(e,t,n){var r,i,o,a,s;if(e)for(r=e.AdaptationSet_asArray,a=0;a0?e.segments[0].duration:NaN),n.MSETimeOffset=e.MSETimeOffset,n.mediaInfo=b(e.adaptation),n}return null},getStreamsInfo:function(e,t){var n=[],i=r;if(e&&(w(),i=p(e)),i.length>0){(!t||t>i.length)&&(t=i.length);for(var o=0;o0&&a&&(o=i?t.getAdaptationForId(i,r[0].mpd.manifest,a.index):t.getAdaptationForIndex(n?n.index:null,r[0].mpd.manifest,a.index)),o},getProducerReferenceTimes:function(e,n){var i,o,a=v(e,r);return i=n?n.id:null,r.length>0&&a&&(o=i?t.getAdaptationForId(i,r[0].mpd.manifest,a.index):t.getAdaptationForIndex(n?n.index:null,r[0].mpd.manifest,a.index)),o?t.getProducerReferenceTimesForAdaptation(o):[]},getRealPeriodByIndex:function(e){return t.getRealPeriodForIndex(e,r[0].mpd.manifest)},getEssentialPropertiesForRepresentation:function(e){try{return t.getEssentialPropertiesForRepresentation(e)}catch(e){return[]}},getVoRepresentations:function(e){var n=y(e);return t.getRepresentationsForAdaptation(n)},getEventsFor:function(e,n,i){var o=[];if(r.length>0){var a=r[0].mpd.manifest;if(e instanceof Ai){var s=v(e,r);o=t.getEventsForPeriod(s)}else if(e instanceof Ti){var l=v(i,r);o=t.getEventStreamForAdaptationSet(a,y(e),l)}else if(e instanceof wi){var u=v(i,r);o=t.getEventStreamForRepresentation(a,n,u)}}return o},getEvent:function(e,t,n,r){try{if(!e||!t||isNaN(n)||!r)return null;var i=e.scheme_id_uri,o=e.value;if(!t[i+"/"+o])return null;var a,s=new ve,l=e.timescale||1,u=r.adaptation.period.start,c=t[i+"/"+o],d=isNaN(r.presentationTimeOffset)?isNaN(c.presentationTimeOffset)?0:c.presentationTimeOffset:r.presentationTimeOffset,h=e.presentation_time_delta/l;a=0===e.version?u+n-d+h:u-d+h;var p=e.event_duration/l,f=e.id,m=e.message_data;return s.eventStream=c,s.eventStream.value=o,s.eventStream.timescale=l,s.duration=p,s.id=f,s.calculatedPresentationTime=a,s.messageData=m,s.presentationTimeDelta=h,s}catch(e){return null}},getMpd:f,setConfig:function(e){e&&(e.constants&&(o=e.constants),e.cea608parser&&(s=e.cea608parser),e.errHandler&&t.setConfig({errHandler:e.errHandler}),e.BASE64&&t.setConfig({BASE64:e.BASE64}))},updatePeriods:function(e){if(!e)return null;w(),r=p(e)},getIsTextTrack:function(e){return t.getIsText(e)},getUTCTimingSources:function(){var e=g();return t.getUTCTimingSources(e)},getSuggestedPresentationDelay:function(){var e=r.length>0?r[0].mpd:null;return t.getSuggestedPresentationDelay(e)},getAvailabilityStartTime:function(e){var n=f(e);return t.getAvailabilityStartTime(n)},getIsTypeOf:function(e,n){return t.getIsTypeOf(e,n)},getIsDynamic:function(e){var n=g(e);return t.getIsDynamic(n)},getDuration:function(e){var n=g(e);return t.getDuration(n)},getRegularPeriods:p,getContentSteering:function(e){return t.getContentSteering(e)},getLocation:function(e){return t.getLocation(e)},getPatchLocation:function(e){var n=t.getPatchLocation(e),r=t.getPublishTime(e);return n&&0!==n.length&&r?n.filter((function(e){return isNaN(e.ttl)||r.getTime()+e.ttl>(new Date).getTime()})):[]},getManifestUpdatePeriod:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.getManifestUpdatePeriod(e,n)},getPublishTime:function(e){return t.getPublishTime(e)},getIsDVB:function(e){return t.hasProfile(e,"urn:dvb:dash:profile:dvb-dash:2014")},getIsPatch:function(e){return n.getIsPatch(e)},getBaseURLsFromElement:function(e){return t.getBaseURLsFromElement(e)},getRepresentationSortFunction:function(){return t.getRepresentationSortFunction()},getCodec:function(e,n,r){return t.getCodec(e,n,r)},getPeriodById:function(e){if(!e||0===r.length)return null;var t=r.filter((function(t){return t.id===e}));return t&&t.length>0?t[0]:null},setCurrentMediaInfo:function(e,t,n){i[e]=i[e]||{},i[e][t]=i[e][t]||{},i[e][t]=n},isPatchValid:function(e,r){var i=t.getId(e),o=n.getMpdId(r),a=t.getPublishTime(e),s=n.getPublishTime(r),l=n.getOriginalPublishTime(r);return!!(i&&o&&i==o&&a&&l&&a.getTime()==l.getTime()&&s&&a.getTime()1?i[r]=l:1==l.length?i[r]=l[0]:delete i[r+"_asArray"]}"add"!==t.action&&"replace"!==t.action||Object.keys(t.value).forEach((function(e){var n=t.value[e],o=i[e+"_asArray"]||[];if(0===o.length&&i[e]&&o.push(i[e]),0===o.length)o=n;else{var l=o.length;l=e==r&&-1!=a?a+(s?0:1)+("replace"==t.action?-1:0):s?0:o.length,o.splice.apply(o,[l,0].concat(n))}i[e+"_asArray"]=o,i[e]=1==o.length?o[0]:o}))}}}))},areMediaInfosEqual:c,reset:m},t=ke(l).getInstance(),n=Ci(l).getInstance(),m(),e}Mi.__dashjs_factory_name="DashAdapter";const Li=c.Z.getSingletonFactory(Mi);var Pi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"round10",value:function(e,t){return function(e,t,n){return void 0===n||0==+n?Math[e](t):(n=+n,null===(t=+t)||isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))}("round",e,t)}}],t&&function(e,t){for(var n=0;nr.get().streaming.metrics.maxListDepth&&i[t].shift())}function g(e,t,n){m(e,t,n),p(e,t,n)}return t={clearCurrentMetricsForType:function(e){delete n[e],d(e)},clearAllCurrentMetrics:function(){n={},c()},getMetricsFor:f,addHttpRequest:function e(t,n,r,i,o,a,l,u,c,d,h,p,f,m,y,v,b){var _=new R.w;a&&a!==i&&(e(t,null,r,i,o,null,null,u,c,null,null,null,f,null,null,v,b),_.actualurl=a),_.tcpid=n,_.type=r,_.url=i,_.range=u,_.trequest=c,_.tresponse=d,_.responsecode=p,_.cmsd=b,_._tfinish=h,_._stream=t,_._mediaduration=f,_._quality=o,_._responseHeaders=m,_._serviceLocation=l,_._fileLoaderType=v,y?y.forEach((function(e){!function(e,t,n,r){var i=new R.O;i.s=t,i.d=n,i.b=r,e.trace.push(i),e.interval||(e.interval=0),e.interval+=n}(_,e.s,e.d,e.b)})):(delete _.interval,delete _.trace),g(t,s.Z.HTTP_REQUEST,_)},addRepresentationSwitch:function(e,t,n,r,i){var o=new Oi;o.t=t,o.mt=n,o.to=r,i?o.lto=i:delete o.lto,g(e,s.Z.TRACK_SWITCH,o)},addBufferLevel:function(e,t,n){var r=new Ni;r.t=t,r.level=n,g(e,s.Z.BUFFER_LEVEL,r)},addBufferState:function(e,t,n){var r=new ki;r.target=n,r.state=t,g(e,s.Z.BUFFER_STATE,r)},addDVRInfo:function(e,t,n,r){var i=new Fi;i.time=t,i.range=r,i.manifestInfo=n,g(e,s.Z.DVR_INFO,i)},addDroppedFrames:function(e,t){var n=new Bi,r=f(e).DroppedFrames;t&&(n.time=t.creationTime,n.droppedFrames=t.droppedVideoFrames,r.length>0&&r[r.length-1]==n||g(e,s.Z.DROPPED_FRAMES,n))},addSchedulingInfo:function(e,t,n,r,i,o,a,l,u){var c=new ji;c.mediaType=e,c.t=t,c.type=n,c.startTime=r,c.availabilityStartTime=i,c.duration=o,c.quality=a,c.range=l,c.state=u,g(e,s.Z.SCHEDULING_INFO,c)},addRequestsQueue:function(e,t,n){var r=new Hi;r.loadingRequests=t,r.executedRequests=n,f(e).RequestsQueue=r,p(e,s.Z.REQUESTS_QUEUE,r)},addManifestUpdate:function(e,t,n,r,i,a,l,u,c,d){var h=new zi;h.mediaType=e,h.type=t,h.requestTime=n,h.fetchTime=r,h.availabilityStartTime=i,h.presentationStartTime=a,h.clientTimeOffset=l,h.currentTime=u,h.buffered=c,h.latency=d,m(o.Z.STREAM,s.Z.MANIFEST_UPDATE,h),p(e,s.Z.MANIFEST_UPDATE,h)},updateManifestUpdateInfo:function(e,t){if(e){for(var n in t)e[n]=t[n];h(e.mediaType,s.Z.MANIFEST_UPDATE,e)}},addManifestUpdateStreamInfo:function(e,t,n,r,i){if(e){var o=new Gi;o.id=t,o.index=n,o.start=r,o.duration=i,e.streamInfo.push(o),h(e.mediaType,s.Z.MANIFEST_UPDATE_STREAM_INFO,e)}},addManifestUpdateRepresentationInfo:function(e,t,n,r,i,o,a,l){if(e&&e.representationInfo){var u=new Vi;u.id=t,u.index=n,u.streamIndex=r,u.mediaType=i,u.startNumber=a,u.fragmentInfoType=l,u.presentationTimeOffset=o,e.representationInfo.push(u),h(e.mediaType,s.Z.MANIFEST_UPDATE_TRACK_INFO,e)}},addPlayList:function(e){e.trace&&Array.isArray(e.trace)?e.trace.forEach((function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel})):delete e.trace,g(o.Z.STREAM,s.Z.PLAY_LIST,e)},addDVBErrors:function(e){g(o.Z.STREAM,s.Z.DVB_ERRORS,e)}},n={},t}Zi.__dashjs_factory_name="MetricsModel";const qi=c.Z.getSingletonFactory(Zi);function Wi(e){e=e||{};var t,n,r,i,a=this.context,l=e.metricsModel;function u(e){var t=l.getMetricsFor(e,!0);if(!t)return null;var n,r=t.HttpList,i=null;if(!r||r.length<=0)return null;for(n=r.length-1;n>=0;){if(r[n].responsecode){i=r[n];break}n--}return i}function c(e){var t=l.getMetricsFor(e,!0);return t&&t.HttpList?t.HttpList:[]}function d(e,t){if(!e)return null;var n=e[t];return n&&0!==n.length?n[n.length-1]:null}return t={getCurrentRepresentationSwitch:function(e){return d(l.getMetricsFor(e,!0),s.Z.TRACK_SWITCH)},getCurrentBufferState:function(e){return d(l.getMetricsFor(e,!0),s.Z.BUFFER_STATE)},getCurrentBufferLevel:function(e){var t=d(l.getMetricsFor(e,!0),s.Z.BUFFER_LEVEL);return t?Pi.round10(t.level/1e3,-3):0},getCurrentHttpRequest:u,getHttpRequests:c,getCurrentDroppedFrames:function(){return d(l.getMetricsFor(o.Z.VIDEO,!0),s.Z.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(e){return d(l.getMetricsFor(e,!0),s.Z.SCHEDULING_INFO)},getCurrentDVRInfo:function(e){return d(e?l.getMetricsFor(e,!0):l.getMetricsFor(o.Z.VIDEO,!0)||l.getMetricsFor(o.Z.AUDIO,!0),s.Z.DVR_INFO)},getCurrentManifestUpdate:function(){return d(l.getMetricsFor(o.Z.STREAM),s.Z.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(e,t){if(!t)return null;var n={},r=u(e);r&&(n=Fe.Z.parseHttpHeaders(r._responseHeaders));var i=n[t.toLowerCase()];return void 0===i?null:i},getLatestMPDRequestHeaderValueByID:function(e){if(!e)return null;var t,n,r,i={};for(r=(t=c(o.Z.STREAM)).length-1;r>=0;r--)if((n=t[r]).type===R.w.MPD_TYPE){i=Fe.Z.parseHttpHeaders(n._responseHeaders);break}var a=i[e.toLowerCase()];return void 0===a?null:a},addRepresentationSwitch:function(e,t,n,r,i){l.addRepresentationSwitch(e,t,n,r,i)},addDVRInfo:function(e,t,n,r){l.addDVRInfo(e,t,n,r)},updateManifestUpdateInfo:function(e){var t=this.getCurrentManifestUpdate();l.updateManifestUpdateInfo(t,e)},addManifestUpdateStreamInfo:function(e){if(e){var t=this.getCurrentManifestUpdate();l.addManifestUpdateStreamInfo(t,e.id,e.index,e.start,e.duration)}},addManifestUpdateRepresentationInfo:function(e,t){if(e){var n=this.getCurrentManifestUpdate();l.addManifestUpdateRepresentationInfo(n,e.id,e.index,e.streamIndex,t,e.presentationTimeOffset,e.startNumber,e.fragmentInfoType)}},addManifestUpdate:function(e){l.addManifestUpdate(o.Z.STREAM,e.type,e.requestStartDate,e.requestEndDate)},addHttpRequest:function(e,t,n,r,i,o){l.addHttpRequest(e.mediaType,null,e.type,e.url,e.quality,t,e.serviceLocation||null,e.range||null,e.requestStartDate,e.firstByteDate,e.requestEndDate,n,e.duration,r,i,e.fileLoaderType,o)},addSchedulingInfo:function(e,t){l.addSchedulingInfo(e.mediaType,new Date,e.type,e.startTime,e.availabilityStartTime,e.duration,e.quality,e.range,t)},addRequestsQueue:function(e,t,n){l.addRequestsQueue(e,t,n)},addBufferLevel:function(e,t,n){l.addBufferLevel(e,t,n)},addBufferState:function(e,t,n){l.addBufferState(e,t,n)},addDroppedFrames:function(e){l.addDroppedFrames(o.Z.VIDEO,e)},addPlayList:function(){i&&(l.addPlayList(i),i=null)},addDVBErrors:function(e){l.addDVBErrors(e)},createPlaylistMetrics:function(e,t){(i=new Q).start=new Date,i.mstart=e,i.starttype=t},createPlaylistTraceMetrics:function(e,t,i){!0===n&&(n=!1,(r=new J).representationid=e,r.start=new Date,r.mstart=t,r.playbackspeed=null!==i?i.toString():null)},updatePlayListTraceMetrics:function(e){if(r)for(var t in r)r[t]=e[t]},pushPlayListTraceMetrics:function(e,t){if(!1===n&&i&&r&&r.start){var o=r.start,a=e.getTime()-o.getTime();r.duration=a,r.stopreason=t,i.trace.push(r),n=!0}},clearAllCurrentMetrics:function(){l.clearAllCurrentMetrics()}},l=l||qi(a).getInstance({settings:e.settings}),n=!0,r=null,i=null,t}Wi.__dashjs_factory_name="DashMetrics";const Yi=c.Z.getSingletonFactory(Wi);function Ki(){var e,t,n,r,i=this.context,s=(0,l.Z)(i).getInstance(),c=(0,I.Z)(i).getInstance();function d(e){r=e}function p(e,t,n,r){var i,o=t.adaptation.period.mpd,a=o.availabilityStartTime;if(r)i=n&&o.timeShiftBufferDepth!==Number.POSITIVE_INFINITY?new Date(a.getTime()+1e3*(e+o.timeShiftBufferDepth)):o.availabilityEndTime;else if(n){var s=t.availabilityTimeOffset;i=new Date(a.getTime()+1e3*(e-s))}else i=a;return i}function f(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*r)/1e3}function m(e,t){return e+(t.adaptation.period.start-t.presentationTimeOffset)}function g(e){var n={start:NaN,end:NaN},r=e[0].getAdapter().getRegularPeriods()[0],i=f(new Date,r);if(!e||0===e.length)return{range:n,now:i};e.forEach((function(e){var r=e.getAdapter(),s=r.getMediaInfoForType(e.getStreamInfo(),o.Z.VIDEO)||r.getMediaInfoForType(e.getStreamInfo(),o.Z.AUDIO),l=r.getVoRepresentations(s)[0],u={start:NaN,end:NaN};if(l)if(l.segmentInfoType===a.Z.SEGMENT_TIMELINE)u=function(e){var n,r,i,o,a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index],s=t.getRepresentationFor(e.index,a),l=s.SegmentTemplate||s.SegmentList,u=l.SegmentTimeline,c=l.timescale,d=u.S_asArray,h={start:0,end:0},p=d[0].t,f=!isNaN(p),g=f?p:0,y=0;for(f&&(h.start=m(g/c,e)),i=0,o=d.length;iu.start)&&(n.start=u.start),!isNaN(u.end)&&(isNaN(n.end)||n.end2&&void 0!==arguments[2]&&arguments[2];try{for(var r=0,i=!1,o=NaN;!i&&r=t)?(o=t,i=!0):!n&&a.start>t&&(isNaN(o)||a.starto)&&(o=a.start+a.duration),r+=1}return o}catch(e){return t}}function b(e){void 0===e.offset||isNaN(e.offset)||d(e.offset/1e3)}function _(){r=0,n=0}function E(){s.off(u.Z.UPDATE_TIME_SYNC_OFFSET,b,this),_()}return e={initialize:function(){_(),s.on(u.Z.UPDATE_TIME_SYNC_OFFSET,b,this)},getClientTimeOffset:function(){return r},setClientTimeOffset:d,getClientReferenceTime:function(){return Date.now()-1e3*n+1e3*r},calcAvailabilityStartTimeFromPresentationTime:function(e,t,n){return p(e,t,n)},calcAvailabilityEndTimeFromPresentationTime:function(e,t,n){return p(e,t,n,!0)},calcPresentationTimeFromWallTime:f,calcPresentationTimeFromMediaTime:m,calcPeriodRelativeTimeFromMpdRelativeTime:function(e,t){return t-e.adaptation.period.start},calcMediaTimeFromPresentationTime:function(e,t){return e-t.adaptation.period.start+t.presentationTimeOffset},calcWallTimeForSegment:function(e,t){var n,r,i;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,i=new Date(e.availabilityStartTime.getTime()+1e3*r)),i},calcTimeShiftBufferWindow:function(e,t){if(!t)return function(e){var t={start:NaN,end:NaN},n=0,r=NaN;return e.forEach((function(e){var t=e.getStreamInfo();n+=t.duration,(isNaN(r)||t.start0&&(m.spans.push({name:g,line:E,row:c}),E="");var I="style_cea608_"+x.foreground+"_"+x.background;x.underline&&(I+="_underline"),x.italics&&(I+="_italics"),v.hasOwnProperty(I)||(v[I]=JSON.parse(JSON.stringify(x))),w=x,g=I}E+=S.uchar}E.trim().length>0&&m.spans.push({name:g,line:E,row:c}),p=!0,f=T}else p=!1,f=-1,h&&(h.p.push(m),m={start:s,end:l,spans:[]},h.y2=c,h.name="region_"+h.x+"_"+h.y1+"_"+h.y2,!1===y.hasOwnProperty(h.name)?(b.push(h),y[h.name]=h):y[h.name].p.contat(h.p),h=null)}h&&(h.p.push(m),h.y2=c+1,h.name="region_"+h.x+"_"+h.y1+"_"+h.y2,!1===y.hasOwnProperty(h.name)?(b.push(h),y[h.name]=h):y[h.name].p.contat(h.p),h=null);var R=[];for(c=0;c0){if(0!==d&&F!=B.row){var U=document.createElement("br");U.className="lineBreak",O.appendChild(U)}var z=!1;F===B.row&&(z=!0),F=B.row;var G=v[B.name],V=document.createElement("span");V.className="spanPadding "+B.name+" customSpanColor",V.style.cssText=i(r,G),0!==d&&z?d===k.spans.length-1?V.textContent=a(B.line):V.textContent=B.line:k.spans.length>1&&d1&&e.isEmbedded?t=e.id&&e.id===o.Z.CC1:1===y.length?e.id&&"string"==typeof e.id&&"CC"===e.id.substring(0,2)&&(t=!0):0===y.length&&(t=e.index===s[0].index),t}(e),t.isFragmented=e.isFragmented,t.isEmbedded=!!e.isEmbedded,t.isTTML=function(e){return e.codec&&e.codec.search(o.Z.STPP)>=0||e.mimeType&&e.mimeType.search(o.Z.TTML)>=0}(e),t.kind=function(e,t){var n=e.roles&&e.roles.length>0?t[e.roles[0]]:t.caption;return n===t.caption||n===t.subtitle?n:t.caption}(e,{subtitle:"subtitles",caption:"captions"}),C.addTextTrack(t)}function z(e){var t=e.chunk;t.mediaInfo.embeddedCaptions&&V(t.bytes,t)}function G(e){g=e}function V(e,s){var l=s.mediaInfo,u=l.type,d=l.mimeType,f=l.codec||d;f?-1!==l.codec.indexOf("application/mp4")?function(e,i,s){var l;if("InitializationSegment"===i.segmentType)h=!0,p=r.getMediaTimescaleFromMoov(e);else{if(!h)return;(l=r.getSamplesInfo(e).sampleList).length>0&&(m=l[0].cts-i.start*p),s.search(o.Z.STPP)>=0?function(e,r,i){var s,l;for(a=null!==a?a:Z(i),s=0;s0&&C.addCaptions(g,0,s)}(e,l)}}(e,s,f):u===o.Z.VIDEO?function(e,t){var o,a;if(t.segmentType===R.w.INIT_SEGMENT_TYPE)0===v&&(v=r.getMediaTimescaleFromMoov(e));else if(t.segmentType===R.w.MEDIA_SEGMENT_TYPE){if(0===v)return void n.warn("CEA-608: No timescale for embeddedTextTrack yet");var s=(a=r.getSamplesInfo(e)).lastSequenceNumber;if(_[0]||_[1]||function(){for(var e,t=0;t0){a.cts!==l?u=0:u+=1;var p=H();n.fields[h].push([a.cts+p*v,d[h],u]),l=a.cts}return n.fields.forEach((function(e){e.sort((function(e,t){return e[0]===t[0]?e[2]-t[2]:e[0]-t[0]}))})),n}(e,a.sampleList),u=0;u<_.length;u++){var c=l.fields[u],d=_[u];if(d)for(o=0;o=0?t=O.get().streaming.text.webvtt.customRenderingEnabled&&L?L:M:(e.search(o.Z.TTML)>=0||e.search(o.Z.STPP)>=0)&&(t=P),t}function q(e){y.forEach((function(t){var n=C.getTrackIdxForId(t.id);n>=0&&C.deleteCuesFromTrackIdx(n,e.from,e.to)}))}return t={initialize:function(){F||(y=[],g=null,v=0,_=[],b=null,F=!0,E=oo(N).getInstance(),k.on(u.Z.VIDEO_CHUNK_RECEIVED,z,t),k.on(u.Z.BUFFER_CLEARED,q,t))},addMediaInfos:function(e,n,r){if(s=s.concat(n),e===o.Z.TEXT&&n[0].isFragmented&&!n[0].isEmbedded){c=r,t.buffered=(0,ro.Z)(N).create(),f=S.getTracksFor(o.Z.TEXT,D.id).filter((function(e){return e.isFragmented}));for(var i=S.getCurrentTrackFor(o.Z.TEXT,D.id),a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);nn/r?a=(s=t)/r*n:s=(a=e)/n*r;var l,u,c=0,d=0;return a/s>i?(d=s,c=s*i):(c=a,d=a/i),l=(e-c)/2,u=(t-d)/2,o?{x:l+.1*c,y:u+.1*d,w:.8*c,h:.8*d}:{x:l,y:u,w:c,h:d}}function M(e,t){var n=x.getClientWidth(),r=x.getClientHeight(),i=x.getVideoWidth(),o=x.getVideoHeight(),a=x.getVideoRelativeOffsetTop(),s=x.getVideoRelativeOffsetLeft();if(0!==i&&0!==o){var l=i/o,u=!1;e.isFromCEA608&&(l=3.5/3,u=!0);var d=C.call(this,n,r,i,o,l,u),y=d.w,v=d.h,E=d.x,T=d.y;if(y!=f||v!=m||E!=c||T!=p||t){if(c=E+s,p=T+a,f=y,m=v,g){var A=g.style;A&&(A.left=c+"px",A.top=p+"px",A.width=f+"px",A.height=m+"px",A.zIndex=b&&document[b]||_?w:null,S.trigger(h.Z.CAPTION_CONTAINER_RESIZE))}var I=e.activeCues;if(I)for(var R=I.length,M=0;M=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(x.getTextTracks());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.manualMode===o.Z.TEXT_SHOWING&&t.push(r)}}catch(e){n.e(e)}finally{n.f()}return t}function z(e){return e>=0&&i[e]?x.getTextTrack(i[e].kind,i[e].id,i[e].lang,i[e].isTTML,i[e].isEmbedded):null}function G(e){var t=this;if(e!==s){var n=z(s=e);V.call(this,n),v&&(clearInterval(v),v=null),n&&"html"===n.renderingType&&(M.call(this,n,!0),window.ResizeObserver?(T=new window.ResizeObserver((function(){M.call(t,n,!0)}))).observe(x.getElement()):v=setInterval(M.bind(this,n),500))}}function V(e){Y.call(this),e&&"html"===e.renderingType?q.call(this):W.call(this)}function j(e,t){if(!e.cues)return!1;for(var n=0;n3&&void 0!==arguments[3])||arguments[3];return(isNaN(t)||(r?e.startTime:e.endTime)>=t)&&(isNaN(n)||(r?e.endTime:e.startTime)<=n)}function Z(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.cues)for(var i=e.cues,o=i.length-1;o>=0;o--)H(i[o],t,n,r)&&(i[o].onexit&&i[o].onexit(),e.removeCue(i[o]))}function q(){var e=document.getElementById("native-cue-style");if(!e){(e=document.createElement("style")).id="native-cue-style",document.head.appendChild(e);var t=e.sheet,r=x.getElement();try{r&&(r.id?t.insertRule("#"+r.id+"::cue {background: transparent}",0):0!==r.classList.length?t.insertRule("."+r.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0))}catch(e){n.info(""+e.message)}}}function W(){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}function Y(){if(g)for(;g.firstChild;)g.removeChild(g.firstChild)}return t={initialize:function(){"undefined"!=typeof window&&"undefined"!=typeof navigator&&(r=window.VTTCue||window.TextTrackCue,i=[],a=[],s=-1,c=0,p=0,f=0,m=0,g=null,y=null,v=null,_=!1,w=2147483647,E=null,void 0!==document.fullscreenElement?b="fullscreenElement":void 0!==document.webkitIsFullScreen?b="webkitIsFullScreen":document.msFullscreenElement?b="msFullscreenElement":document.mozFullScreen&&(b="mozFullScreen"))},getStreamId:function(){return I.id},addTextTrack:function(e){i.push(e)},addCaptions:k,createTracks:function(){i.sort((function(e,t){return e.index-t.index})),g=x.getTTMLRenderingDiv(),y=x.getVttRenderingDiv();for(var e,t,n,r,l,c,d=-1,p=0;p=0){S.on(h.Z.PLAYBACK_METADATA_LOADED,(function e(){var t=z(d);t&&"html"===t.renderingType&&M.call(this,t,!0),S.off(h.Z.PLAYBACK_METADATA_LOADED,e,this)}),this);for(var v=0;v0){var n=t[0].manualCueList;n&&n.length>0&&n.forEach((function(t){if(t.startTime<=e&&t.endTime>=e&&!t.isActive)t.isActive=!0,WebVTT.processCues(window,[t],y,t.cueID);else if(t.isActive&&(t.startTime>e||t.endTime0){var t=e[0].manualCueList;t&&t.length>0&&t.forEach((function(e){if(e.isActive&&(e.isActive=!1,y))for(var t=y.childNodes,n=0;n1){var n=e.split(/:/)[1],r=!1;n&&-1!=n.search(/%/)&&(r=!0,n=parseInt(n.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(t.align=n),(e.match(/line/)||e.match(/L/))&&(t.line="auto"===n?n:parseInt(n,10),r&&(t.snapToLines=!1)),(e.match(/position/)||e.match(/P/))&&(t.position=n),(e.match(/size/)||e.match(/S/))&&(t.size=n)}})),t}function c(e,t){for(var n,i=t,o="",a="";""!==e[i]&&i1)for(var s=0;s0&&"WEBVTT"!==h&&h.match(r)){var p=l(h),f=p.cuePoints,m=p.styles,g=c(e,d+1),y=s(f[0].replace(i,"")),v=s(f[1].replace(i,""));!isNaN(y)&&!isNaN(v)&&y>=a&&v>y?""!==g?(a=y,u.push({start:y,end:v,data:g,styles:m})):t.error("Skipping cue due to empty/malformed cue text"):t.error("Skipping cue due to incorrect cue timing")}}return u},getCaptionStyles:u},t=(0,d.Z)(a).getInstance().getLogger(e),n=/(?:\r\n|\r|\n)/gm,r=/-->/,i=/(^[\s]+|[\s]+$)/g,o=/\s\b/g,e}fo.__dashjs_factory_name="VTTParser";const mo=c.Z.getSingletonFactory(fo);function go(){var e,t;return e={parse:function(e){var n=[];return t.oncue=function(e){e.start=e.startTime,e.end=e.endTime,e.data=e.text,e.styles={align:e.align,line:e.line,position:e.position,size:e.size},n.push(e)},t.parse(e),n}},function(){try{window&&window.WebVTT&&window.WebVTT.Parser&&(t=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()))}catch(e){}}(),e}go.__dashjs_factory_name="VttCustomRenderingParser";const yo=c.Z.getSingletonFactory(go);function vo(){var e,t,n=this.context,r=(0,l.Z)(n).getInstance(),i=0;return e={parse:function(e,n,o,a,s){var l,c,d,p="",f=[],m={},g={},y="",v="",b={onOpenTag:function(e,n,i){if(i[" imagetype"]&&!i[" imageType"]&&(r.trigger(h.Z.CONFORMANCE_VIOLATION,{level:$t.LEVELS.ERROR,event:$t.EVENTS.NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE}),i[" imageType"]=i[" imagetype"]),"image"===n&&("http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt"===e||"http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"===e)){if(!i[" imageType"]||"PNG"!==i[" imageType"].value)return void t.warn("smpte-tt imageType != PNG. Discarded");y=i["http://www.w3.org/XML/1998/namespace id"].value}},onCloseTag:function(){y&&(g[y]=v.trim()),v="",y=""},onText:function(e){y&&(v+=e)}};if(!e)throw p="no ttml data to parse",new Error(p);m.data=e,r.trigger(u.Z.TTML_TO_PARSE,m);var _=(0,lo.fromXML)(m.data,(function(e){p=e}),b);r.trigger(u.Z.TTML_PARSED,{ttmlString:m.data,ttmlDoc:_});var E,w=_.getMediaTimeEvents();for(d=0;d3&&void 0!==arguments[3]?arguments[3]:null,o=e.id;r[o]&&r[o].addMediaInfos(t,n,i)},reset:function(){M(),d.off(u.Z.TEXT_TRACKS_QUEUE_INITIALIZED,A,t),T.get().streaming.text.webvtt.customRenderingEnabled&&(d.off(u.Z.PLAYBACK_TIME_UPDATED,S,t),d.off(u.Z.PLAYBACK_SEEKING,x,t)),Object.keys(r).forEach((function(e){r[e].resetEmbedded(),r[e].reset()}))}},f=!1,m=!1,g=!1,a=mo(y).getInstance(),s=yo(y).getInstance(),c=bo(y).getInstance(),d=(0,l.Z)(y).getInstance(),M(),t}_o.__dashjs_factory_name="TextController";const Eo=c.Z.getClassFactory(_o);function wo(){var e,t,n,r,p,m,g,y,v,b,_,E,T,A,S,C,M,L,P,D,O,N,k,F,B,U,z,G,V,j,H,Z,q,Y,X,Q,J,ee,te,ne="You must first call initialize() and set a source before calling this method",re="You must first call initialize() and set a valid source and view before calling this method",ie="You must first call attachView() to set the video element before calling this method",oe="You must first call attachSource() with a valid source before calling this method",ae="MediaPlayer not initialized!",se=this.context,le=(0,l.Z)(se).getInstance(),ue=(0,I.Z)(se).getInstance(),ce=(0,d.Z)(se).getInstance({settings:ue});function de(){Se(null),Te(null),r=null,A&&(A.reset(),A=null),S&&(S.reset(),S=null),D&&D.reset(),ue.reset(),M&&(M.reset(),M=null)}function he(){return!!n&&!!Q.getElement()}function pe(){return(0,hi.e)()}function fe(){if(!g)throw re;return G.isPaused()}function me(){if(!g)throw re;return G.getIsDynamic()}function ge(e){var t=B&&B.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO,n=Z.getCurrentDVRInfo(t);if(!n)return 0;var r=G.getOriginalLiveDelay(),i=n.range.start+e;return i>n.range.end-r&&(i=n.range.end-r),i}function ye(e){if(!g)throw re;var t=we().currentTime;if(void 0!==e)t=B.getTimeRelativeToStreamId(t,e);else if(G.getIsDynamic()){var n=B&&B.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO,r=Z.getCurrentDVRInfo(n);t=null===r||0===t?0:Math.max(0,t-r.range.start)}return t}function ve(){if(!g)throw re;var e=we().duration;if(G.getIsDynamic()){var t=B&&B.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO,n=Z.getCurrentDVRInfo(t);e=n?n.range.end-n.range.start:0}return e}function be(e){(0,W.PS)(e,"boolean"),y=e}function _e(){D.restoreDefaultUTCTimingSources()}function Ee(){return Z}function we(){if(!Q.getElement())throw ie;return Q.getElement()}function Te(e){if(!p)throw ae;Q.setElement(e),e&&(Ce(),function(){if(!S){var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(se).create();S=t.createMetricsReporting({debug:ce,eventBus:le,mediaElement:we(),adapter:L,dashMetrics:Z,mediaPlayerModel:P,events:u.Z,constants:o.Z,metricsConstants:s.Z})}}}(),function(){if(!C){var e=dashjs.MssHandler;"function"==typeof e&&(x.extend(e.errors),C=e(se).create({eventBus:le,mediaPlayerModel:P,dashMetrics:Z,manifestModel:q,playbackController:G,streamController:B,protectionController:A,baseURLController:N,errHandler:O,events:u.Z,constants:o.Z,debug:ce,initSegmentType:R.w.INIT_SEGMENT_TYPE,BASE64:Xi,ISOBoxer:Qi,settings:ue}))}}(),B&&B.switchToVideoElement(v)),g&&Ie(),Pe(v)}function Ae(e){if(!m)throw ne;var t=B.getActiveStreamInfo();return t?T.getTracksFor(e,t.id):[]}function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;if(!p)throw ae;"string"==typeof e&&J.initialize(e),null==t&&(t=NaN),isNaN(t)||(t=Math.max(0,t)),v=t,n=e,(m||g)&&Ie(),he()&&Pe(v)}function xe(){if(!m)throw ne;var e=B.getActiveStreamInfo();return e?B.getStreamById(e.id):null}function Ie(){g=!1,m=!1,L.reset(),B.reset(),z.reset(),H.reset(),G.reset(),V.reset(),j.reset(),b.reset(),T.reset(),te.reset(),A&&(ue.get().streaming.protection.keepProtectionMediaKeys?A.stop():(A.reset(),A=null,Ce())),U.reset(),Y.reset(),X.reset()}function Re(){return Rr(se).create({debug:ce,errHandler:O,dashMetrics:Z,mediaPlayerModel:P,requestModifier:(0,K.Z)(se).getInstance(),mssHandler:C,settings:ue})}function Ce(){if(A)return A;var e=dashjs.Protection;if("function"==typeof e){var t=e(se).create();return u.Z.extend(e.events),h.Z.extend(e.events,{publicOnly:!0}),x.extend(e.errors),k||(k=(0,Lr.Z)(se).getInstance()),A=t.createProtectionSystem({debug:ce,errHandler:O,videoModel:Q,customParametersModel:D,capabilities:k,eventBus:le,events:u.Z,BASE64:Xi,constants:o.Z,cmcdModel:Y,settings:ue})}return null}function Me(){if(!p)throw ae;if(M)return M;var e=dashjs.OfflineController;if("function"==typeof e){u.Z.extend(e.events),h.Z.extend(e.events,{publicOnly:!0}),x.extend(e.errors);var t=Re(),n=Vt(se).create();return n.setConfig({manifestModel:q,adapter:L,manifestLoader:t,errHandler:O,contentSteeringController:j}),M=e(se).create({debug:ce,manifestUpdater:n,baseURLController:N,manifestLoader:t,manifestModel:q,mediaPlayerModel:P,abrController:b,playbackController:G,adapter:L,errHandler:O,dashMetrics:Z,timelineConverter:E,segmentBaseController:te,schemeLoaderFactory:_,eventBus:le,events:u.Z,errors:x,constants:o.Z,settings:ue,dashConstants:a.Z,urlUtils:(0,$.Z)(se).getInstance()})}return null}function Le(e){var t=B&&B.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO,n=Z.getCurrentDVRInfo(t);return n?e+(n.manifestInfo.availableFrom.getTime()/1e3+n.range.start):0}function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN;M&&M.resetRecords(),!m&&n&&(m=!0,t.info("Streaming Initialized"),function(){var e=Re();B||(B=Jt(se).getInstance()),U||(U=Eo(se).create({errHandler:O,manifestModel:q,adapter:L,mediaController:T,videoModel:Q,settings:ue})),F.setConfig({capabilities:k,customParametersModel:D,adapter:L,settings:ue,manifestModel:q,errHandler:O}),B.setConfig({capabilities:k,capabilitiesFilter:F,manifestLoader:e,manifestModel:q,mediaPlayerModel:P,customParametersModel:D,protectionController:A,textController:U,adapter:L,dashMetrics:Z,errHandler:O,timelineConverter:E,videoModel:Q,playbackController:G,serviceDescriptionController:V,contentSteeringController:j,abrController:b,mediaController:T,settings:ue,baseURLController:N,uriFragmentModel:J,segmentBaseController:te}),z.setConfig({settings:ue,playbackController:G,streamController:B,videoModel:Q,timelineConverter:E,adapter:L}),G.setConfig({streamController:B,serviceDescriptionController:V,dashMetrics:Z,adapter:L,videoModel:Q,timelineConverter:E,settings:ue}),H.setConfig({streamController:B,playbackController:G,mediaPlayerModel:P,videoModel:Q,settings:ue}),b.setConfig({streamController:B,domStorage:ee,mediaPlayerModel:P,customParametersModel:D,cmsdModel:X,dashMetrics:Z,adapter:L,videoModel:Q,settings:ue}),Y.setConfig({abrController:b,dashMetrics:Z,playbackController:G}),X.setConfig({}),b.initialize(),B.initialize(y,r),U.initialize(),z.initialize(),H.initialize(),Y.initialize(),X.initialize(),j.initialize(),te.initialize()}(),"string"==typeof n?B.load(n,e):B.loadWithManifest(n,e)),!g&&he()&&(g=!0,t.info("Playback Initialized"))}return e={initialize:function(e,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:NaN;k||(k=(0,Lr.Z)(se).getInstance()).setConfig({settings:ue}),O||(O=Mr(se).getInstance()),k.supportsMediaSource()?(p||(p=!0,E=$i(se).getInstance(),b||(b=ei(se).getInstance()).setConfig({settings:ue}),_||(_=ht(se).getInstance()),G||(G=f(se).getInstance()),T||(T=mn(se).getInstance()),B||(B=Jt(se).getInstance()),z||(z=tn(se).getInstance()),H||(H=rn(se).getInstance()),V||(V=un(se).getInstance()),j||(j=Bt(se).getInstance()),F||(F=Dr(se).getInstance()),L=Li(se).getInstance(),q=Br(se).getInstance(),Y=Ge(se).getInstance(),X=it(se).getInstance(),Z=Yi(se).getInstance({settings:ue}),ee=di(se).getInstance({settings:ue}),L.setConfig({constants:o.Z,cea608parser:i(),errHandler:O,BASE64:Xi}),N||(N=Cn(se).create()),N.setConfig({adapter:L,contentSteeringController:j}),V.setConfig({adapter:L}),te||(te=Ei(se).getInstance({dashMetrics:Z,mediaPlayerModel:P,errHandler:O,baseURLController:N,events:u.Z,eventBus:le,debug:ce,boxParser:(0,Ct.Z)(se).getInstance(),requestModifier:(0,K.Z)(se).getInstance(),errors:x})),T.setConfig({domStorage:ee,settings:ue,customParametersModel:D}),P.setConfig({playbackController:G,serviceDescriptionController:V}),j.setConfig({adapter:L,errHandler:O,dashMetrics:Z,mediaPlayerModel:P,manifestModel:q,serviceDescriptionController:V,eventBus:le,requestModifier:(0,K.Z)(se).getInstance()}),_e(),be(void 0===r||r),Me()),e&&Te(e),n&&Se(n,a),t.info("[dash.js "+pe()+"] MediaPlayer has been initialized")):O.error(new w.Z(x.CAPABILITY_MEDIASOURCE_ERROR_CODE,x.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE))},setConfig:function(e){e&&(e.capabilities&&(k=e.capabilities),e.capabilitiesFilter&&(F=e.capabilitiesFilter),e.streamController&&(B=e.streamController),e.textController&&(U=e.textController),e.gapController&&(z=e.gapController),e.playbackController&&(G=e.playbackController),e.serviceDescriptionController&&(V=e.serviceDescriptionController),e.contentSteeringController&&(j=e.contentSteeringController),e.catchupController&&(H=e.catchupController),e.mediaPlayerModel&&(P=e.mediaPlayerModel),e.customParametersModel&&(D=e.customParametersModel),e.abrController&&(b=e.abrController),e.schemeLoaderFactory&&(_=e.schemeLoaderFactory),e.mediaController&&(T=e.mediaController),e.settings&&(ue=e.settings))},on:function(e,t,n,r){le.on(e,t,n,r)},off:function(e,t,n){le.off(e,t,n)},extend:function(e,t,n){c.Z.extend(e,t,n,se)},attachView:Te,attachSource:Se,isReady:he,preload:function(){if(!Q.getElement()&&!m){if(!n)throw oe;Pe(v)}},play:function(){if(!g)throw re;(!y||fe()&&g)&&G.play(!0)},isPaused:fe,pause:function(){if(!g)throw re;G.pause()},isSeeking:function(){if(!g)throw re;return G.isSeeking()},isDynamic:me,getLowLatencyModeEnabled:function(){if(!g)throw re;return G.getLowLatencyModeEnabled()},seek:function(e){if(!g)throw re;if((0,W.PS)(e,"number"),isNaN(e))throw o.Z.BAD_ARGUMENT_ERROR;e<0&&(e=0);var t=G.getIsDynamic()?ge(e):e,n=we();!G.getIsDynamic()&&n.duration&&(t=Math.min(n.duration,t)),G.seek(t,!1,!1,!0)},seekToOriginalLive:function(){g&&me()&&G.seekToOriginalLive()},setPlaybackRate:function(e){we().playbackRate=e},getPlaybackRate:function(){return we().playbackRate},setMute:function(e){(0,W.PS)(e,"boolean"),we().muted=e},isMuted:function(){return we().muted},setVolume:function(e){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw o.Z.BAD_ARGUMENT_ERROR;we().volume=e},getVolume:function(){return we().volume},time:ye,duration:ve,timeAsUTC:function(){if(!g)throw re;return ye()<0?NaN:Le(ye())},durationAsUTC:function(){if(!g)throw re;return Le(ve())},getActiveStream:xe,getDVRWindowSize:function(){var e=B&&B.hasVideoTrack()?o.Z.VIDEO:o.Z.AUDIO,t=Z.getCurrentDVRInfo(e);return t?t.manifestInfo.dvrWindowSize:0},getDVRSeekOffset:ge,getAvailableBaseUrls:function(){var e=q.getValue();return e?N.getBaseUrls(e):[]},getAvailableLocations:function(){var e=q.getValue();if(!e)return[];var t=L.getLocation(e),n=j.getSynthesizedLocationElements(t);return t.concat(n)},getTargetLiveDelay:function(){if(!g)throw re;return G.getOriginalLiveDelay()},convertToTimeCode:function(e){e=Math.max(e,0);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return(0===t?"":t<10?"0"+t.toString()+":":t.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())},formatUTC:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Date(1e3*e),o=i.toLocaleDateString(t),a=i.toLocaleTimeString(t,{hour12:n});return r?a+" "+o:a},getVersion:pe,getDebug:function(){return ce},getBufferLength:function(e){var n=[o.Z.VIDEO,o.Z.AUDIO,o.Z.TEXT];if(e)return-1!==n.indexOf(e)?Ee().getCurrentBufferLevel(e)||NaN:(t.warn("getBufferLength requested for invalid type"),NaN);var r=n.map((function(e){return Ae(e).length>0?Ee().getCurrentBufferLevel(e):Number.MAX_VALUE})).reduce((function(e,t){return Math.min(e,t)}));return r===Number.MAX_VALUE?NaN:r},getTTMLRenderingDiv:function(){return Q?Q.getTTMLRenderingDiv():null},getVideoElement:we,getSource:function(){if(!n)throw oe;return n},updateSource:function(e){n=e,B.load(n)},getCurrentLiveLatency:function(){if(!p)throw ae;return g?G.getCurrentLiveLatency():NaN},getTopBitrateInfoFor:function(e){if(!m)throw ne;return b.getTopBitrateInfoFor(e)},setAutoPlay:be,getAutoPlay:function(){return y},getDashMetrics:Ee,getQualityFor:function(e){if(!m)throw ne;if(e===o.Z.IMAGE){var t=xe();if(!t)return-1;var n=t.getThumbnailController();return n?n.getCurrentTrackIndex():-1}return b.getQualityFor(e)},setQualityFor:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!m)throw ne;if(e===o.Z.IMAGE){var r=xe();if(!r)return;var i=r.getThumbnailController();i&&i.setTrackByIndex(t)}b.setPlaybackQuality(e,B.getActiveStreamInfo(),t,{forceReplace:n})},updatePortalSize:function(){b.setElementSize(),b.setWindowResizeEventCalled(!0)},enableText:function(e){var t=B.getActiveStreamInfo();return!(!t||!U)&&U.enableText(t.id,e)},enableForcedTextStreaming:function(e){return!(!B.getActiveStreamInfo()||!U)&&U.enableForcedTextStreaming(e)},isTextEnabled:function(){var e=B.getActiveStreamInfo();return!(!e||!U)&&U.isTextEnabled(e)},setTextTrack:function(e){if(!g)throw re;var t=B.getActiveStreamInfo();t&&U&&U.setTextTrack(t.id,e)},getBitrateInfoListFor:function(e){if(!m)throw ne;var t=xe();return t?t.getBitrateListFor(e):[]},getStreamsFromManifest:function(e){if(!m)throw ne;return L.getStreamsInfo(e)},getTracksFor:Ae,getTracksForTypeFromManifest:function(e,t,n){if(!m)throw ne;return(n=n||L.getStreamsInfo(t,1)[0])?L.getAllMediaInfoForType(n,e,t):[]},getCurrentTrackFor:function(e){if(!m)throw ne;var t=B.getActiveStreamInfo();return T.getCurrentTrackFor(e,t.id)},setInitialMediaSettingsFor:function(e,t){if(!p)throw ae;T.setInitialSettings(e,t)},getInitialMediaSettingsFor:function(e){if(!p)throw ae;return T.getInitialSettings(e)},setCurrentTrack:function(e){if(!m)throw ne;T.setTrack(e)},addABRCustomRule:function(e,t,n){D.addAbrCustomRule(e,t,n)},removeABRCustomRule:function(e){D.removeAbrCustomRule(e)},removeAllABRCustomRule:function(){D.removeAllAbrCustomRule()},getABRCustomRules:function(){return D.getAbrCustomRules()},getAverageThroughput:function(e){var t=b.getThroughputHistory(),n=G.getIsDynamic();return t?t.getAverageThroughput(e,n):0},retrieveManifest:function(e,t){var n=Re(),r=this;le.on(u.Z.INTERNAL_MANIFEST_LOADED,(function e(i){i.error?t(null,i.error):t(i.manifest),le.off(u.Z.INTERNAL_MANIFEST_LOADED,e,r),n.reset()}),r),J.initialize(e),n.load(e)},addUTCTimingSource:function(e,t){D.addUTCTimingSource(e,t)},removeUTCTimingSource:function(e,t){D.removeUTCTimingSource(e,t)},clearDefaultUTCTimingSources:function(){D.clearDefaultUTCTimingSources()},restoreDefaultUTCTimingSources:_e,setXHRWithCredentialsForType:function(e,t){D.setXHRWithCredentialsForType(e,t)},getXHRWithCredentialsForType:function(e){return D.getXHRWithCredentialsForType(e)},getProtectionController:function(){return Ce()},attachProtectionController:function(e){A=e},setProtectionData:function(e){r=e,B&&B.setProtectionData(r)},registerLicenseRequestFilter:function(e){D.registerLicenseRequestFilter(e)},registerLicenseResponseFilter:function(e){D.registerLicenseResponseFilter(e)},unregisterLicenseRequestFilter:function(e){D.unregisterLicenseRequestFilter(e)},unregisterLicenseResponseFilter:function(e){D.unregisterLicenseResponseFilter(e)},registerCustomCapabilitiesFilter:function(e){D.registerCustomCapabilitiesFilter(e)},unregisterCustomCapabilitiesFilter:function(e){D.unregisterCustomCapabilitiesFilter(e)},setCustomInitialTrackSelectionFunction:function(e){D.setCustomInitialTrackSelectionFunction(e)},resetCustomInitialTrackSelectionFunction:function(){D.resetCustomInitialTrackSelectionFunction(null)},attachTTMLRenderingDiv:function(e){if(!Q.getElement())throw ie;Q.setTTMLRenderingDiv(e)},attachVttRenderingDiv:function(e){if(!Q.getElement())throw ie;Q.setVttRenderingDiv(e)},getCurrentTextTrackIndex:function(){var e=B.getActiveStreamInfo();if(e&&U)return U.getCurrentTrackIdx(e.id)},provideThumbnail:function(e,t){if("function"==typeof t)if(e<0)t(null);else{var n=G.getIsDynamic()?ge(e):e,r=B.getStreamForTime(n);if(null!==r){var i=r.getThumbnailController();if(i)return i.provide(n,t);t(null)}else t(null)}},getDashAdapter:function(){return L},getOfflineController:function(){return Me()},triggerSteeringRequest:function(){if(j)return j.loadSteeringData()},getCurrentSteeringResponseData:function(){if(j)return j.getCurrentSteeringResponseData()},getSettings:function(){return ue.get()},updateSettings:function(e){ue.update(e)},resetSettings:function(){ue.reset()},reset:de,destroy:function(){de(),c.Z.deleteSingletonInstances(se)}},t=ce.getLogger(e),p=!1,g=!1,m=!1,y=!0,v=NaN,A=null,M=null,r=null,L=null,te=null,u.Z.extend(h.Z),P=Gr(se).getInstance(),D=(0,st.Z)(se).getInstance(),Q=ri(se).getInstance(),J=kr(se).getInstance(),e}wo.__dashjs_factory_name="MediaPlayer";var To=c.Z.getClassFactory(wo);To.events=h.Z,To.errors=x,c.Z.updateClassFactory(wo.__dashjs_factory_name,To);const Ao=To},8825:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n.d(t,{Z:()=>s});const s=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,e);var t,n,r=(t=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=a(t);if(n){var i=a(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=r.call(this)).AST_IN_FUTURE="astInFuture",e.BASE_URLS_UPDATED="baseUrlsUpdated",e.BUFFER_EMPTY="bufferStalled",e.BUFFER_LOADED="bufferLoaded",e.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",e.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",e.DYNAMIC_TO_STATIC="dynamicToStatic",e.ERROR="error",e.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",e.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",e.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",e.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",e.LOG="log",e.MANIFEST_LOADING_STARTED="manifestLoadingStarted",e.MANIFEST_LOADING_FINISHED="manifestLoadingFinished",e.MANIFEST_LOADED="manifestLoaded",e.METRICS_CHANGED="metricsChanged",e.METRIC_CHANGED="metricChanged",e.METRIC_ADDED="metricAdded",e.METRIC_UPDATED="metricUpdated",e.PERIOD_SWITCH_STARTED="periodSwitchStarted",e.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",e.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",e.QUALITY_CHANGE_RENDERED="qualityChangeRendered",e.TRACK_CHANGE_RENDERED="trackChangeRendered",e.STREAM_INITIALIZING="streamInitializing",e.STREAM_UPDATED="streamUpdated",e.STREAM_ACTIVATED="streamActivated",e.STREAM_DEACTIVATED="streamDeactivated",e.STREAM_INITIALIZED="streamInitialized",e.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",e.TEXT_TRACKS_ADDED="allTextTracksAdded",e.TEXT_TRACK_ADDED="textTrackAdded",e.THROUGHPUT_MEASUREMENT_STORED="throughputMeasurementStored",e.TTML_PARSED="ttmlParsed",e.TTML_TO_PARSE="ttmlToParse",e.CAPTION_RENDERED="captionRendered",e.CAPTION_CONTAINER_RESIZE="captionContainerResize",e.CAN_PLAY="canPlay",e.CAN_PLAY_THROUGH="canPlayThrough",e.PLAYBACK_ENDED="playbackEnded",e.PLAYBACK_ERROR="playbackError",e.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",e.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",e.PLAYBACK_LOADED_DATA="playbackLoadedData",e.PLAYBACK_PAUSED="playbackPaused",e.PLAYBACK_PLAYING="playbackPlaying",e.PLAYBACK_PROGRESS="playbackProgress",e.PLAYBACK_RATE_CHANGED="playbackRateChanged",e.PLAYBACK_SEEKED="playbackSeeked",e.PLAYBACK_SEEKING="playbackSeeking",e.PLAYBACK_STALLED="playbackStalled",e.PLAYBACK_STARTED="playbackStarted",e.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",e.PLAYBACK_VOLUME_CHANGED="playbackVolumeChanged",e.PLAYBACK_WAITING="playbackWaiting",e.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",e.EVENT_MODE_ON_START="eventModeOnStart",e.EVENT_MODE_ON_RECEIVE="eventModeOnReceive",e.CONFORMANCE_VIOLATION="conformanceViolation",e.REPRESENTATION_SWITCH="representationSwitch",e.ADAPTATION_SET_REMOVED_NO_CAPABILITIES="adaptationSetRemovedNoCapabilities",e.CONTENT_STEERING_REQUEST_COMPLETED="contentSteeringRequestCompleted",e.INBAND_PRFT="inbandPrft",e}return s}(n(8342).Z))},3393:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.CONTENT_STEERING="contentSteering",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_L2A="abrL2A",this.ABR_STRATEGY_LoLP="abrLoLP",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA="abrFetchThroughputCalculationDownloadedData",this.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING="abrFetchThroughputCalculationMoofParsing",this.ABR_FETCH_THROUGHPUT_CALCULATION_AAST="abrFetchThroughputCalculationAAST",this.LIVE_CATCHUP_MODE_DEFAULT="liveCatchupModeDefault",this.LIVE_CATCHUP_MODE_LOLP="liveCatchupModeLoLP",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.TRACK_SWITCH_MODE_ALWAYS_REPLACE="alwaysReplace",this.TRACK_SWITCH_MODE_NEVER_REPLACE="neverReplace",this.TRACK_SELECTION_MODE_FIRST_TRACK="firstTrack",this.TRACK_SELECTION_MODE_HIGHEST_BITRATE="highestBitrate",this.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY="highestEfficiency",this.TRACK_SELECTION_MODE_WIDEST_RANGE="widestRange",this.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY="highestSelectionPriority",this.CMCD_MODE_QUERY="query",this.CMCD_MODE_HEADER="header",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.SERVICE_DESCRIPTION_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:scope:2019",this.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:critical:2019",this.XML="XML",this.ARRAY_BUFFER="ArrayBuffer",this.DVB_REPORTING_URL="dvb:reportingUrl",this.DVB_PROBABILITY="dvb:probability",this.VIDEO_ELEMENT_READY_STATES={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4},this.FILE_LOADER_TYPES={FETCH:"fetch_loader",XHR:"xhr_loader"}}}])&&function(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>r});const r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t;return(t=[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_LOADED="bufferLoaded",this.ABANDON_LOAD="abandonload",this.ALLOW_LOAD="allowload",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors",this.HTTP_REQUEST_DVB_REPORTING_TYPE="DVBReporting"}}])&&function(e,t){for(var n=0;n{"use strict";n.d(t,{default:()=>q});var r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null};r.SSL_CONNECTION_FAILED_PREFIX="SSL",r.DNS_RESOLUTION_FAILED="C00",r.HOST_UNREACHABLE="C01",r.CONNECTION_REFUSED="C02",r.CONNECTION_ERROR="C03",r.CORRUPT_MEDIA_ISOBMFF="M00",r.CORRUPT_MEDIA_OTHER="M01",r.BASE_URL_CHANGED="F00",r.BECAME_REPORTER="S00";const i=r;var o=n(1180);function a(e){var t,n,r=(e=e||{}).eventBus,a=e.dashMetrics,s=e.metricsConstants,l=e.events;function u(e){var t=new i;if(n){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.mpdurl||(t.mpdurl=n.originalUrl||n.url),t.terror||(t.terror=new Date),a.addDVBErrors(t)}}function c(e){e.error||(n=e.manifest)}function d(e){u({errorcode:i.BASE_URL_CHANGED,servicelocation:e.entry})}function h(){u({errorcode:i.BECAME_REPORTER})}function p(e){var t;e.metric===s.HTTP_REQUEST&&(0===(t=e.value).responsecode||null==t.responsecode||t.responsecode>=400||t.responsecode<100||t.responsecode>=600)&&u({errorcode:t.responsecode||i.CONNECTION_ERROR,url:t.url,terror:t.tresponse,servicelocation:t._serviceLocation})}function f(e){var t;switch(e.error?e.error.code:0){case MediaError.MEDIA_ERR_NETWORK:t=i.CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:t=i.CORRUPT_MEDIA_OTHER;break;default:return}u({errorcode:t})}return t={initialize:function(){r.on(l.MANIFEST_UPDATED,c,t),r.on(l.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,d,t),r.on(l.METRIC_ADDED,p,t),r.on(l.METRIC_UPDATED,p,t),r.on(l.PLAYBACK_ERROR,f,t),r.on(o.Z.BECAME_REPORTING_PLAYER,h,t)},reset:function(){r.off(l.MANIFEST_UPDATED,c,t),r.off(l.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED,d,t),r.off(l.METRIC_ADDED,p,t),r.off(l.METRIC_UPDATED,p,t),r.off(l.PLAYBACK_ERROR,f,t),r.off(o.Z.BECAME_REPORTING_PLAYER,h,t)}}}a.__dashjs_factory_name="DVBErrorsTranslator";const s=dashjs.FactoryMaker.getSingletonFactory(a);var l=n(2295);function u(e){e=e||{};var t,n,r=!1,i=this.context,o=e.mediaElement;return t={initialize:function(e){e&&e.length&&(e.forEach((function(e){var t=e.starttime,r=t+e.duration;n.add(t,r)})),r=!!e[0]._useWallClockTime)},reset:function(){n.clear()},isEnabled:function(){var e,t=n.length;if(!t)return!0;e=r?(new Date).getTime()/1e3:o.currentTime;for(var i=0;i=200&&i.status<300)&&n&&n())};c.push(i);try{i.open("GET",e),i.onloadend=o,i.onerror=o,i.send()}catch(e){i.onerror()}}(i="".concat(s,"?").concat(i),0,(function(){a=!1}))}))},initialize:function(e,t){var n;if(l=t,!(s=e.dvb_reportingUrl))throw new Error("required parameter missing (dvb:reportingUrl)");o||((n=e.dvb_probability)&&(1e3===n||n/1e3>=i.random())&&(a=!0),o=!0)},reset:function(){p()}},n=h(u).getInstance(),i=f(u).getInstance(),r=(0,m.Z)(u).getInstance(),p(),t}g.__dashjs_factory_name="DVBReporting";const y=dashjs.FactoryMaker.getClassFactory(g);function v(e){e=e||{};var t={"urn:dvb:dash:reporting:2014":y},n=this.context,r=e.debug?e.debug.getLogger(void 0):{},i=e.metricsConstants,o=e.mediaPlayerModel||{};return{create:function(e,a){var s;try{(s=t[e.schemeIdUri](n).create({metricsConstants:i,mediaPlayerModel:o})).initialize(e,a)}catch(a){s=null,r.error("ReportingFactory: could not create Reporting with schemeIdUri ".concat(e.schemeIdUri," (").concat(a.message,")"))}return s},register:function(e,n){t[e]=n},unregister:function(e){delete t[e]}}}v.__dashjs_factory_name="ReportingFactory";const b=dashjs.FactoryMaker.getSingletonFactory(v);function _(e){var t=[],n=b(this.context).getInstance(e);return{initialize:function(e,r){e.some((function(e){var i=n.create(e,r);if(i)return t.push(i),!0}))},reset:function(){t.forEach((function(e){return e.reset()})),t=[]},report:function(e,n){t.forEach((function(t){return t.report(e,n)}))}}}_.__dashjs_factory_name="ReportingController";const E=dashjs.FactoryMaker.getClassFactory(_);function w(){return{reconstructFullMetricName:function(e,t,n){var r=e;return t&&(r+="("+t,n&&n.length&&(r+=","+n),r+=")"),r},validateN:function(e){if(!e)throw new Error("missing n");if(isNaN(e))throw new Error("n is NaN");if(e<0)throw new Error("n must be positive");return e}}}w.__dashjs_factory_name="HandlerHelpers";const T=dashjs.FactoryMaker.getSingletonFactory(w);function A(e){var t,n,r,i,o;e=e||{};var a=this.context,s=T(a).getInstance(),l=[],u=e.metricsConstants;function c(){var e=function(){try{return Object.keys(l).map((function(e){return l[e]})).reduce((function(e,t){return e.level{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n.d(t,{Z:()=>s});const s=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(s,e);var t,n,r=(t=s,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=a(t);if(n){var i=a(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=r.call(this)).METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",e.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer",e.CMCD_DATA_GENERATED="cmcdDataGenerated",e}return s}(n(8342).Z))},5717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(2610),i=n(5448),o=n(1264),a=n(3106),s=n(1767),l=n(3393);function u(){var e,t,n,i,u,c,d,h,p=this.context,f=(0,o.Z)(p).getInstance();function m(){i=[],u=[],c=[],h=[],d=null,t=[]}function g(e,t){var n=-1;e.some((function(e,r){if(e===t)return n=r,!0})),n<0||e.splice(n,1)}function y(e){var t;for(t=0;t{"use strict";n.d(t,{Z:()=>a});var r=n(5448),i=n(7473);function o(e){var t=(e=e||{}).requestModifier;function n(e){var n=new Date,r=e.request,i=new XMLHttpRequest;if(i.open(e.method,e.url,!0),r.responseType&&(i.responseType=r.responseType),r.range&&i.setRequestHeader("Range","bytes="+r.range),r.requestStartDate||(r.requestStartDate=n),t&&t.modifyRequestHeader&&(i=t.modifyRequestHeader(i,{url:e.url})),e.headers)for(var o in e.headers){var a=e.headers[o];a&&i.setRequestHeader(o,a)}i.withCredentials=e.withCredentials,i.onload=e.onload,i.onloadend=e.onend,i.onerror=e.onerror,i.onprogress=e.progress,i.onabort=e.onabort,i.ontimeout=e.ontimeout,i.timeout=e.timeout,i.send(),e.response=i}return{load:function(e){t&&t.modifyRequest?(0,i.k)(e,t).then((function(){return n(e)})):n(e)},abort:function(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}}}o.__dashjs_factory_name="XHRLoader";const a=r.Z.getClassFactory(o)},1737:(e,t,n)=>{"use strict";n.d(t,{default:()=>ve});var r={attributes:["Laurl","laurl"],prefixes:["clearkey","dashif"]};const i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"findCencContentProtection",value:function(e){for(var t=null,n=0;n0&&(t+=4+16*n.getUint32(t)),t+=4,e.slice(t)}},{key:"getPSSHForKeySystem",value:function(t,n){var r=e.parsePSSHList(n);return t&&r.hasOwnProperty(t.uuid.toLowerCase())?r[t.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(e,t){return"pssh"in e?(e.pssh.__text=e.pssh.__text.replace(/\r?\n|\r/g,"").replace(/\s+/g,""),t.decodeArray(e.pssh.__text).buffer):null}},{key:"parsePSSHList",value:function(e){if(null==e)return[];for(var t=new DataView(e.buffer||e),n={},r=0;;){var i,o,a=void 0,s=r;if(r>=t.buffer.byteLength)break;if(i=r+t.getUint32(r),r+=4,1886614376===t.getUint32(r))if(r+=4,0===(o=t.getUint8(r))||1===o){r++,r+=3,a="";var l=void 0,u=void 0;for(l=0;l<4;l++)a+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=4,a+="-",l=0;l<2;l++)a+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=2,a+="-",l=0;l<2;l++)a+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=2,a+="-",l=0;l<2;l++)a+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;for(r+=2,a+="-",l=0;l<6;l++)a+=1===(u=t.getUint8(r+l).toString(16)).length?"0"+u:u;r+=6,r+=4,n[a=a.toLowerCase()]=t.buffer.slice(s,i),r=i}else r=i;else r=i}return n}},{key:"getLicenseServerUrlFromMediaInfo",value:function(e,t){try{if(!e||0===e.length)return null;for(var n=0,i=null;n0){var a=o.contentProtection.filter((function(e){return e.schemeIdUri&&e.schemeIdUri===t}));if(a&&a.length>0)for(var s=0;s=0?l[t.ks.systemString].priority:e.length)-(l&&l[n.ks.systemString]&&l[n.ks.systemString].priority>=0?l[n.ks.systemString].priority:e.length)}));for(var o=0;o0&&A.setServerCertificate(R.decodeArray(t.serverCertificate).buffer),k()}})).catch((function(e){b=null,_=!1,t||S.trigger(x.KEY_SYSTEM_SELECTED,{data:null,error:new d.Z(c.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE,c.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE+"Error selecting key system! -- "+e.error)})}))}}(e,t)}function k(){for(var e,t=0;t0?t.audioRobustness:y,l=t&&t.videoRobustness&&t.videoRobustness.length>0?t.videoRobustness:y,u=e.sessionType,c=t&&t.distinctiveIdentifier?t.distinctiveIdentifier:"optional",d=t&&t.persistentState?t.persistentState:"temporary"===u?"optional":"required";return s.forEach((function(e){e.type===C.AUDIO?n.push(new o(e.codec,i)):e.type===C.VIDEO&&r.push(new o(e.codec,l))})),new a(n,r,c,d,[u])}function H(e){e.error?S.trigger(x.KEY_STATUSES_CHANGED,{data:null,error:e.error}):n.debug("DRM: key status = "+e.status)}function Z(e){n.debug("DRM: onKeyMessage");var t=e.data;S.trigger(x.KEY_MESSAGE,{data:t});var r=t.messageType?t.messageType:"license-request",o=t.message,a=t.sessionToken,l=z(b),u=T.getLicenseServerModelInstance(b,l,r),g={sessionToken:a,messageType:r};if(o&&0!==o.byteLength){if(!u)return n.debug("DRM: License server request not required for this message (type = "+e.data.messageType+"). Session ID = "+a.getSessionId()),void q(g);if(T.isClearKey(b)){var y=T.processClearKeyLicenseRequest(b,l,o);if(y&&y.keyPairs&&y.keyPairs.length>0)return n.debug("DRM: ClearKey license request handled by application!"),q(g),void A.updateKeySession(a,y)}!function(e,t,n){var r=e.sessionToken,o=e.messageType?e.messageType:"license-request",a={sessionToken:r,messageType:o},l=b?b.systemString:null,u=function(e,t,n,r,o){var a=null,l=r.message;if(e&&e.serverURL){var u=e.serverURL;"string"==typeof u&&""!==u?a=u:"object"===v(u)&&u.hasOwnProperty(t)&&(a=u[t])}else if(e&&e.laURL&&""!==e.laURL)a=e.laURL;else if(!(a=i.getLicenseServerUrlFromMediaInfo(s,b.schemeIdURI))&&!T.isClearKey(b)){var c=i.getPSSHData(n.initData);(a=b.getLicenseServerURLFromInitData(c))||(a=r.laURL)}return o.getServerURLFromMessage(a,l,t)}(n,o,r,e,t);if(u){var g={},y=!1;n&&K(g,n.httpRequestHeaders);var _=e.message;K(g,b.getRequestHeadersFromMessage(_)),Object.keys(g).forEach((function(e){"authorization"===e.toLowerCase()&&(y=!0)})),n&&"boolean"==typeof n.withCredentials&&(y=n.withCredentials);var E=function(e){if(A)if(e.status>=200&&e.status<=299){var n=m.Z.parseHttpHeaders(e.getAllResponseHeaders?e.getAllResponseHeaders():null),i=new p(e.responseURL,n,e.response);X(D.getLicenseResponseFilters(),i).then((function(){var n=t.getLicenseMessage(i.data,l,o);null!==n?(q(a),A.updateKeySession(r,n)):$(e,a,l,o,t)}))}else $(e,a,l,o,t)},w=function(e){q(a,new d.Z(c.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,c.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+l+' update, XHR aborted. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState))},S=function(e){q(a,new d.Z(c.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,c.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+l+' update, XHR error. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState))},x=b.getLicenseRequestFromMessage(_),I=t.getHTTPMethod(o),R=t.getResponseType(l,o),C=n&&!isNaN(n.httpTimeout)?n.httpTimeout:8e3,M=r.getSessionId()||null,L=new h(u,I,R,g,y,o,M,x),O=isNaN(P.get().streaming.retryAttempts[f.w.LICENSE])?3:P.get().streaming.retryAttempts[f.w.LICENSE];X(D.getLicenseRequestFilters(),L).then((function(){W(L,O,C,E,w,S)}))}else q(a,new d.Z(c.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE,c.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE))}(t,u,l)}else q(g,new d.Z(c.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE,c.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE))}function q(e,t){S.trigger(x.LICENSE_REQUEST_COMPLETE,{data:e,error:t})}function W(e,t,r,i,o,a){var s=new XMLHttpRequest;if(P.get().streaming.cmcd&&P.get().streaming.cmcd.enabled&&P.get().streaming.cmcd.mode===g.Z.CMCD_MODE_QUERY){var l=L.getQueryParameter({url:e.url,type:f.w.LICENSE});l&&(e.url=m.Z.addAditionalQueryParameterToUrl(e.url,[l]))}for(var u in s.open(e.method,e.url,!0),s.responseType=e.responseType,s.withCredentials=e.withCredentials,r>0&&(s.timeout=r),e.headers)s.setRequestHeader(u,e.headers[u]);if(P.get().streaming.cmcd&&P.get().streaming.cmcd.enabled&&P.get().streaming.cmcd.mode===g.Z.CMCD_MODE_HEADER){var c=L.getHeaderParameters({url:e.url,type:f.w.LICENSE});if(c)for(var d in c){var h=c[d];h&&s.setRequestHeader(d,h)}}var p=function(){t--;var n=isNaN(P.get().streaming.retryIntervals[f.w.LICENSE])?1e3:P.get().streaming.retryIntervals[f.w.LICENSE];w=setTimeout((function(){W(e,t,r,i,o,a)}),n)};s.onload=function(){E=null,this.status>=200&&this.status<=299||t<=0?i(this):(n.warn("License request failed ("+this.status+"). Retrying it... Pending retries: "+t),p())},s.ontimeout=s.onerror=function(){E=null,t<=0?a(this):(n.warn("License request network request failed . Retrying it... Pending retries: "+t),p())},s.onabort=function(){o(this)},S.trigger(x.LICENSE_REQUEST_SENDING,{url:e.url,headers:e.headers,payload:e.data,sessionId:e.sessionId}),E=s,s.send(e.data)}function Y(){E&&(E.onloadend=E.onerror=E.onprogress=void 0,E.abort(),E=null),w&&(clearTimeout(w),w=null)}function K(e,t){if(t)for(var n in t)e[n]=t[n]}function $(e,t,n,r,i){var o="NONE",a=null;e.response&&(o=i.getErrorResponse(e.response,n,r),a={serverResponse:e.response||null,responseCode:e.status||null,responseText:e.statusText||null}),q(t,new d.Z(c.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE,c.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE+n+' update, XHR complete. status is "'+e.statusText+'" ('+e.status+"), readyState is "+e.readyState+". Response is "+o,a))}function X(e,t){return e?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function Q(e,t){if(!P.get().streaming.protection.ignoreEmeEncryptedEvent){if(n.debug("DRM: onNeedKey"),"cenc"!==e.key.initDataType)return void n.warn("DRM: Only 'cenc' initData is supported! Ignoring initData of type: "+e.key.initDataType);if(0===s.length&&(n.warn("DRM: onNeedKey called before initializeForMedia, wait until initialized"),(t=void 0===t?1:t+1)<5))return void M.push(setTimeout((function(){Q(e,t)}),500));var o=e.key.initData;if(ArrayBuffer.isView(o)&&(o=o.buffer),b){var a=i.getPSSHForKeySystem(b,o);if(a&&G(a))return}n.debug("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(o)));var c=T.getSupportedKeySystemsFromSegmentPssh(o,l,u);if(0===c.length)return void n.debug("DRM: Received needkey event with initData, but we don't support any of the key systems!");!function(e){r.push(e),N(e,!1)}(c)}}return t={initializeForMedia:function(e){if(!e)throw new Error("mediaInfo can not be null or undefined");O(),s.push(e)},clearMediaInfoArray:function(){s=[]},handleKeySystemFromManifest:function(){if(s&&0!==s.length){var e=[];s.forEach((function(t){var n=T.getSupportedKeySystemsFromContentProtection(t.contentProtection,l,u);n.length>0&&(0===e.length&&(e=n),r.push(n))})),e&&e.length>0&&N(e,!0)}},createKeySession:U,loadKeySession:B,removeKeySession:function(e){O(),A.removeKeySession(e)},closeKeySession:function(e){O(),A.closeKeySession(e)},setServerCertificate:function(e){O(),A.setServerCertificate(e)},setMediaElement:V,setSessionType:function(e){u=e},setRobustnessLevel:function(e){y=e},setProtectionData:function(e){l=e,T.setProtectionData(e)},getSupportedKeySystemsFromContentProtection:function(e){return O(),T.getSupportedKeySystemsFromContentProtection(e,l,u)},getKeySystems:function(){return T?T.getKeySystems():[]},setKeySystems:function(e){T&&T.setKeySystems(e)},stop:function(){Y(),A&&A.stop()},reset:function(){S.off(x.INTERNAL_KEY_MESSAGE,Z,t),S.off(x.INTERNAL_KEY_STATUS_CHANGED,H,t),O(),Y(),V(null),b=null,_=!1,A&&(A.reset(),A=null),M.forEach((function(e){return clearTimeout(e)})),M=[],s=[],r=[]}},n=I.getLogger(t),r=[],s=[],u="temporary",y="",E=null,w=null,S.on(x.INTERNAL_KEY_MESSAGE,Z,t),S.on(x.INTERNAL_KEY_STATUS_CHANGED,H,t),t}b.__dashjs_factory_name="ProtectionController";const _=y.Z.getClassFactory(b),E=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.keyID=t,this.key=n},w=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n&&"persistent"!==n&&"temporary"!==n)throw new Error("Invalid ClearKey key set type! Must be one of 'persistent' or 'temporary'");this.keyPairs=t,this.type=n}var t;return(t=[{key:"toJWK",value:function(){var e,t=this.keyPairs.length,n={keys:[]};for(e=0;e%CUSTOMDATA%'.replace("%CUSTOMDATA%",t),i=[],a=0;a0&&(e[0]&&("string"==typeof e[0]?t=e[0]:n=e[0]),e[1]&&("string"==typeof e[1]?t=e[1]:n=e[1])),{status:t,keyId:n}}function _(e,t){var r={session:e,keyId:t.keyId,initData:t.initData,sessionId:t.sessionId,sessionType:t.sessionType,handleEvent:function(e){switch(e.type){case"keystatuseschange":h.trigger(p.KEY_STATUSES_CHANGED,{data:this}),e.target.keyStatuses.forEach((function(){var e=b(arguments);"expired"===e.status?h.trigger(p.INTERNAL_KEY_STATUS_CHANGED,{error:new d.Z(c.KEY_STATUS_CHANGED_EXPIRED_ERROR_CODE,c.KEY_STATUS_CHANGED_EXPIRED_ERROR_MESSAGE)}):h.trigger(p.INTERNAL_KEY_STATUS_CHANGED,e)}));break;case"message":var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;h.trigger(p.INTERNAL_KEY_MESSAGE,{data:new oe(this,t,void 0,e.messageType)})}},getKeyId:function(){return this.keyId},getSessionId:function(){return e.sessionId},getSessionType:function(){return this.sessionType},getExpirationTime:function(){return e.expiration},getKeyStatuses:function(){return e.keyStatuses},getUsable:function(){var t=!1;return e.keyStatuses.forEach((function(){"usable"===b(arguments).status&&(t=!0)})),t}};return e.addEventListener("keystatuseschange",r),e.addEventListener("message",r),e.closed.then((function(){v(r),n.debug("DRM: Session closed. SessionID = "+r.getSessionId()),h.trigger(p.KEY_SESSION_CLOSED,{data:r.getSessionId()})})),a.push(r),r}return t={getAllInitData:function(){for(var e=[],t=0;t=1?t():(e=t.bind(this),r.addEventListener("loadedmetadata",e))}return t={getAllInitData:function(){for(var e=[],t=0;t0&&(t=s.ksConfiguration.videoCapabilities[0]),null===t&&s.ksConfiguration.audioCapabilities&&s.ksConfiguration.audioCapabilities.length>0&&(t=s.ksConfiguration.audioCapabilities[0]),null===t)throw new Error("Can not create sessions for unknown content types.");var r=t.contentType,a=o.createSession(r,new Uint8Array(e.initData),e.cdmData?new Uint8Array(e.cdmData):null),u=function(e,t){return{session:e,keyId:t.keyId,initData:t.initData,getKeyId:function(){return this.keyId},getSessionId:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(e){switch(e.type){case y.error:f.trigger(m.KEY_ERROR,{error:new d.Z(c.MEDIA_KEYERR_CODE,"KeyError",this)});break;case y.message:var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;f.trigger(m.INTERNAL_KEY_MESSAGE,{data:new oe(this,t,e.destinationURL)});break;case y.ready:n.debug("DRM: Key added."),f.trigger(m.KEY_ADDED);break;case y.close:n.debug("DRM: Session closed. SessionID = "+this.getSessionId()),f.trigger(m.KEY_SESSION_CLOSED,{data:this.getSessionId()})}}}}(a,e);a.addEventListener(y.error,u),a.addEventListener(y.message,u),a.addEventListener(y.ready,u),a.addEventListener(y.close,u),l.push(u),n.debug("DRM: Session created. SessionID = "+u.getSessionId()),f.trigger(m.KEY_SESSION_CREATED,{data:u})},updateKeySession:function(e,t){var n=e.session;h.isClearKey(i)?n.update(new Uint8Array(t.toJWK())):n.update(new Uint8Array(t)),f.trigger(m.KEY_SESSION_UPDATED)},closeKeySession:b,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},stop:v,reset:v},n=g.getLogger(t),r=null,i=null,o=null,s=null,l=[],h=J(p).getInstance(),u={handleEvent:function(e){if(e.type===y.needkey&&e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;f.trigger(m.NEED_KEY,{key:new ie(t,"cenc")})}}},t}ce.__dashjs_factory_name="ProtectionModel_3Feb2014";const de=dashjs.FactoryMaker.getClassFactory(ce);function he(e){e=e||{};var t,n,r,i,o,s,l,u,h,p=this.context,f=e.eventBus,m=e.events,g=e.debug,y=e.api,v=e.errHandler;function b(){r&&w();for(var e=0;e0&&(t=s.shift(),l.push(t),t.sessionId=e.sessionId,f.trigger(m.KEY_SESSION_CREATED,{data:t})):s.length>0&&(t=s.shift(),l.push(t),0!==s.length&&v.error(new d.Z(c.MEDIA_KEY_MESSAGE_ERROR_CODE,c.MEDIA_KEY_MESSAGE_ERROR_MESSAGE))),t){var a=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;t.keyMessage=a,f.trigger(m.INTERNAL_KEY_MESSAGE,{data:new oe(t,a,e.defaultURL)})}else n.warn("No session token found for key message")}}},t}he.__dashjs_factory_name="ProtectionModel_01b";const pe=dashjs.FactoryMaker.getClassFactory(he);var fe=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],me=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];function ge(){var e,t=this.context;function n(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i={DEFAULT:.5,STRONG:1,WEAK:0};function o(e,t,n){var r,o;return r=void 0===e?-1:e,o=function(e){var t=i.DEFAULT;return e!==i.DEFAULT&&e!==i.STRONG&&e!==i.WEAK||(t=e),t}(n),{quality:r,reason:void 0===t?null:t,priority:o}}o.__dashjs_factory_name="SwitchRequest";var a=r.Z.getClassFactory(o);a.NO_CHANGE=-1,a.PRIORITY=i,r.Z.updateClassFactory(o.__dashjs_factory_name,a);const s=a},1767:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(5628),i=n(6535),o=n(7423),a=n(895),s=n(6070),l=n(3112),u=n(1914),c=n(5435),d=n(5448),h=n(2068),p=n(3393),f="qualitySwitchRules",m="abandonFragmentRules";function g(e){e=e||{};var t,n,d=this.context,g=e.mediaPlayerModel,y=e.customParametersModel,v=e.dashMetrics,b=e.settings;function _(e){return e.filter((function(e){return e.quality>h.Z.NO_CHANGE}))}function E(e){var t,n,r,i,o,a={},s=null;if(0!==e.length){for(a[h.Z.PRIORITY.STRONG]={quality:h.Z.NO_CHANGE,reason:null},a[h.Z.PRIORITY.WEAK]={quality:h.Z.NO_CHANGE,reason:null},a[h.Z.PRIORITY.DEFAULT]={quality:h.Z.NO_CHANGE,reason:null},t=0,n=e.length;tr.quality)&&(a[r.priority].quality=r.quality,a[r.priority].reason=r.reason||null);return a[h.Z.PRIORITY.WEAK].quality!==h.Z.NO_CHANGE&&(s=a[h.Z.PRIORITY.WEAK]),a[h.Z.PRIORITY.DEFAULT].quality!==h.Z.NO_CHANGE&&(s=a[h.Z.PRIORITY.DEFAULT]),a[h.Z.PRIORITY.STRONG].quality!==h.Z.NO_CHANGE&&(s=a[h.Z.PRIORITY.STRONG]),s&&(i=s.quality,o=s.reason),(0,h.Z)(d).create(i,o)}}return{initialize:function(){t=[],n=[],b.get().streaming.abr.useDefaultABRRules&&(b.get().streaming.abr.ABRStrategy===p.Z.ABR_STRATEGY_L2A?t.push((0,u.Z)(d).create({dashMetrics:v,settings:b})):b.get().streaming.abr.ABRStrategy===p.Z.ABR_STRATEGY_LoLP?t.push((0,c.Z)(d).create({dashMetrics:v})):(t.push((0,l.Z)(d).create({dashMetrics:v,mediaPlayerModel:g,settings:b})),t.push((0,r.Z)(d).create({dashMetrics:v})),b.get().streaming.abr.additionalAbrRules.insufficientBufferRule&&t.push((0,i.Z)(d).create({dashMetrics:v,settings:b})),b.get().streaming.abr.additionalAbrRules.switchHistoryRule&&t.push((0,s.Z)(d).create()),b.get().streaming.abr.additionalAbrRules.droppedFramesRule&&t.push((0,a.Z)(d).create()),b.get().streaming.abr.additionalAbrRules.abandonRequestsRule&&n.push((0,o.Z)(d).create({dashMetrics:v,mediaPlayerModel:g,settings:b})))),y.getAbrCustomRules().forEach((function(e){e.type===f&&t.push(e.rule(d).create()),e.type===m&&n.push(e.rule(d).create())}))},reset:function(){[t,n].forEach((function(e){e&&e.length&&e.forEach((function(e){return e.reset&&e.reset()}))})),t=[],n=[]},getMaxQuality:function(e){return E(_(t.map((function(t){return t.getMaxIndex(e)}))))||(0,h.Z)(d).create()},getMinSwitchRequest:E,shouldAbandonFragment:function(e,t){return E(_(n.map((function(n){return n.shouldAbandon(e,t)}))))||(0,h.Z)(d).create()},getQualitySwitchRules:function(){return t}}}g.__dashjs_factory_name="ABRRulesCollection";var y=d.Z.getClassFactory(g);y.QUALITY_SWITCH_RULES=f,y.ABANDON_FRAGMENT_RULES=m,d.Z.updateSingletonFactory(g.__dashjs_factory_name,y);const v=y},7423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2068),i=n(5448),o=n(6398);function a(e){e=e||{};var t,n,i,s,l,u=this.context,c=e.mediaPlayerModel,d=e.dashMetrics,h=e.settings;function p(){i={},s={},l=[]}return t={shouldAbandon:function(e){var t=(0,r.Z)(u).create(r.Z.NO_CHANGE,{name:a.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var o,p,f=e.getMediaInfo(),m=e.getMediaType(),g=e.getStreamInfo(),y=g?g.id:null,v=e.getCurrentRequest();if(!isNaN(v.index)){o=m,p=v.index,i[o]=i[o]||{},i[o][p]=i[o][p]||{};var b=c.getStableBufferTime();if(d.getCurrentBufferLevel(m)>b)return t;var _=i[m][v.index];if(null===_||null===v.firstByteDate||s.hasOwnProperty(_.id))return t;if(void 0===_.firstByteTime&&(l[m]=[],_.firstByteTime=v.firstByteDate.getTime(),_.segmentDuration=v.duration,_.bytesTotal=v.bytesTotal,_.id=v.index),_.bytesLoaded=v.bytesLoaded,_.elapsedTime=(new Date).getTime()-_.firstByteTime,_.bytesLoaded>0&&_.elapsedTime>0&&function(e,t){l[e]=l[e]||[],l[e].push(t)}(m,Math.round(8*_.bytesLoaded/_.elapsedTime)),l[m].length>=5&&_.elapsedTime>500&&_.bytesLoaded<_.bytesTotal){var E=l[m].reduce((function(e,t){return e+t}),0);if(_.measuredBandwidthInKbps=Math.round(E/l[m].length),_.estimatedTimeOfDownload=+(8*_.bytesTotal/_.measuredBandwidthInKbps/1e3).toFixed(2),_.estimatedTimeOfDownload<1.8*_.segmentDuration||0===e.getRepresentationInfo().quality)return t;if(!s.hasOwnProperty(_.id)){var w=e.getAbrController(),T=_.bytesTotal-_.bytesLoaded,A=w.getBitrateList(f),S=w.getQualityForBitrate(f,_.measuredBandwidthInKbps*h.get().streaming.abr.bandwidthSafetyFactor,y),x=w.getMinAllowedIndexFor(m,y),I=void 0!==x?Math.max(x,S):S;T>_.bytesTotal*A[I].bitrate/A[w.getQualityFor(m,y)].bitrate&&(t.quality=I,t.reason.throughput=_.measuredBandwidthInKbps,t.reason.fragmentID=_.id,t.reason.rule=this.getClassName(),s[_.id]=_,n.debug("["+m+"] frag id",_.id," is asking to abandon and switch to quality to ",I," measured bandwidth was",_.measuredBandwidthInKbps),delete i[m][_.id])}}else _.bytesLoaded===_.bytesTotal&&delete i[m][_.id]}return t},reset:p},n=(0,o.Z)(u).getInstance().getLogger(t),p(),t}a.__dashjs_factory_name="AbandonRequestsRule";const s=i.Z.getClassFactory(a)},3112:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(3860),i=n(2068),o=n(5448),a=n(7855),s=n(5595),l=n(8512),u=n(6398),c=n(8825),d=n(3393),h=10;function p(e){e=e||{};var t,n,o,p=this.context,f=e.dashMetrics,m=e.mediaPlayerModel,g=(0,s.Z)(p).getInstance();function y(e,t,n){var r=n.reduce((function(e,t,r){return t>n[e]?r:e}),0);if(0===r)return null;var i=Math.max(e,h+2*t.length),o=(n[r]-1)/(i/h-1);return{gp:o,Vp:h/o}}function v(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function b(e,t){var n=m.getStableBufferTime();if(e.stableBufferTime!==n){var r=y(n,e.bitrates,e.utilities);if(r.Vp!==e.Vp||r.gp!==e.gp){var i=f.getCurrentBufferLevel(t),o=i+e.placeholderBuffer;o-=h,o*=r.Vp/e.Vp,o+=h,e.stableBufferTime=n,e.Vp=r.Vp,e.gp=r.gp,e.placeholderBuffer=Math.max(0,o-i)}}}function _(e,t){return e.Vp*(e.utilities[t]+e.gp)}function E(e,t){for(var n=e.bitrates[t],r=e.utilities[t],i=0,o=t-1;o>=0;--o)if(e.utilities[o]t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=n,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=n,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,x(t,e.chunk.mediaInfo.type)}}}function S(e){if(e&&e.metric===r.Z.HTTP_REQUEST&&e.value&&e.value.type===a.w.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=o[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),x(t,e.mediaType))}}function x(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=.99,!isNaN(e.lastSegmentFinishTimeMs)){var n=f.getCurrentBufferLevel(t)+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),r=_(e,e.lastQuality),i=Math.max(0,r-n);e.placeholderBuffer=Math.min(i,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function I(e){if(e){var t=o[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function R(e){if(e){var t=o[e.mediaType];if(t&&0!==t.state){var n,r=f.getCurrentBufferLevel(e.mediaType);n=t.abrQuality>0?E(t,t.abrQuality):h;var i=Math.max(0,n-r);t.placeholderBuffer=Math.min(t.placeholderBuffer,i)}}}function C(){o={}}return t={getMaxIndex:function(e){var t=(0,i.Z)(p).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useBufferOccupancyABR")))return t;var r=e.getMediaInfo(),a=e.getMediaType(),s=e.getScheduleController(),l=e.getStreamInfo(),u=e.getAbrController(),c=u.getThroughputHistory(),d=l?l.id:null,h=l&&l.manifestInfo&&l.manifestInfo.isDynamic,g=e.useBufferOccupancyABR();if(t.reason=t.reason||{},!g)return t;s.setTimeToLoadDelay(0);var w=function(e){var t=e.getMediaType(),n=o[t];return n?0!==n.state&&b(n,t):(n=function(e){var t={},n=e.getMediaInfo().bitrateList.map((function(e){return e.bandwidth})),r=function(e){return e.map((function(e){return Math.log(e)}))}(n);r=r.map((function(e){return e-r[0]+1}));var i=m.getStableBufferTime(),o=y(i,n,r);return o?(t.state=1,t.bitrates=n,t.utilities=r,t.stableBufferTime=i,t.Vp=o.Vp,t.gp=o.gp,t.lastQuality=0,v(t)):t.state=0,t}(e),o[t]=n),n}(e);if(0===w.state)return t;var T,A=f.getCurrentBufferLevel(a),S=c.getAverageThroughput(a,h),x=c.getSafeAverageThroughput(a,h),I=c.getAverageLatency(a);if(t.reason.state=w.state,t.reason.throughput=S,t.reason.latency=I,isNaN(S))return t;switch(w.state){case 1:T=u.getQualityForBitrate(r,x,d,I),t.quality=T,t.reason.throughput=x,w.placeholderBuffer=Math.max(0,E(w,T)-A),w.lastQuality=T,!isNaN(w.lastSegmentDurationS)&&A>=w.lastSegmentDurationS&&(w.state=2);break;case 2:!function(e,t){var n=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){var r=.001*(n-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,r)}}else{var i=.001*(n-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,i)}e.lastCallTimeMs=n,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,b(e,t)}(w,a),T=function(e,t){for(var n=e.bitrates.length,r=NaN,i=NaN,o=0;o=i)&&(i=a,r=o)}return r}(w,A+w.placeholderBuffer);var R=u.getQualityForBitrate(r,x,d,I);T>w.lastQuality&&T>R&&(T=Math.max(R,w.lastQuality));var C=Math.max(0,A+w.placeholderBuffer-_(w,T));C<=w.placeholderBuffer?(w.placeholderBuffer-=C,C=0):(C-=w.placeholderBuffer,w.placeholderBuffer=0,T{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i=n(2068),o=n(6398);function a(){var e,t,n=this.context;return e={getMaxIndex:function(e){var r=(0,i.Z)(n).create();if(!e||!e.hasOwnProperty("getDroppedFramesHistory"))return r;var o=e.getDroppedFramesHistory(),a=e.getStreamInfo().id;if(o){var s=o.getFrameHistory(a);if(!s||0===s.length)return r;for(var l=0,u=0,c=i.Z.NO_CHANGE,d=1;d375&&l/u>.15)){c=d-1,t.debug("index: "+c+" Dropped Frames: "+l+" Total Frames: "+u);break}return(0,i.Z)(n).create(c,{droppedFrames:l})}return r}},t=(0,o.Z)(n).getInstance().getLogger(e),e}a.__dashjs_factory_name="DroppedFramesRule";const s=r.Z.getClassFactory(a)},6535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(5595),i=n(8512),o=n(5448),a=n(6398),s=n(2068),l=n(3393),u=n(3860),c=n(8825);function d(e){e=e||{};var t,n,o,d=this.context,h=(0,r.Z)(d).getInstance(),p=e.dashMetrics;function f(){(o={})[l.Z.VIDEO]={ignoreCount:2},o[l.Z.AUDIO]={ignoreCount:2}}function m(){f()}function g(e){isNaN(e.startTime)||e.mediaType!==l.Z.AUDIO&&e.mediaType!==l.Z.VIDEO||o[e.mediaType].ignoreCount>0&&o[e.mediaType].ignoreCount--}return t={getMaxIndex:function(e){var t=(0,s.Z)(d).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;!function(){if(!p||!p.hasOwnProperty("getCurrentBufferLevel")||!p.hasOwnProperty("getCurrentBufferState"))throw new Error(l.Z.MISSING_CONFIG_ERROR)}();var r=e.getMediaType(),i=p.getCurrentBufferState(r),a=e.getRepresentationInfo().fragmentDuration,c=e.getStreamInfo(),h=c?c.id:null,f=e.getScheduleController(),m=c&&c.manifestInfo&&c.manifestInfo.isDynamic;if(function(e,t){return!e&&o[t].ignoreCount>0}(f.getPlaybackController().getLowLatencyModeEnabled(),r)||!a)return t;if(i&&i.state===u.Z.BUFFER_EMPTY)n.debug("["+r+"] Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var g=e.getMediaInfo(),y=e.getAbrController(),v=y.getThroughputHistory(),b=p.getCurrentBufferLevel(r),_=v.getAverageThroughput(r,m),E=v.getAverageLatency(r),w=_*(b/a)*.5;t.quality=y.getQualityForBitrate(g,w,h,E),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t},reset:function(){f(),h.off(c.Z.PLAYBACK_SEEKING,m,t),h.off(i.Z.BYTES_APPENDED_END_FRAGMENT,g,t)}},n=(0,a.Z)(d).getInstance().getLogger(t),f(),h.on(c.Z.PLAYBACK_SEEKING,m,t),h.on(i.Z.BYTES_APPENDED_END_FRAGMENT,g,t),t}d.__dashjs_factory_name="InsufficientBufferRule";const h=o.Z.getClassFactory(d)},1914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(3860),i=n(2068),o=n(5448),a=n(7855),s=n(5595),l=n(8512),u=n(6398),c=n(3393);function d(e){e=e||{};var t,n,o,d,h=this.context,p=e.dashMetrics,f=(0,s.Z)(h).getInstance();function m(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,e.lastSegmentUrl=""}function g(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];0!==t.state&&(t.state=1,m(t))}}function y(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=n[e.chunk.mediaInfo.type],r=o[e.chunk.mediaInfo.type];if(t&&0!==t.state){var i=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||i>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=i,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=i,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,b(t,r)}}}function v(e){if(e&&e.metric===r.Z.HTTP_REQUEST&&e.value&&e.value.type===a.w.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=n[e.mediaType],i=o[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),b(t,i))}}function b(e,t){isNaN(e.lastSegmentStart)||isNaN(e.lastSegmentRequestTimeMs)||(t.segment_request_start_s=.001*e.lastSegmentRequestTimeMs,t.segment_download_finish_s=.001*e.lastSegmentFinishTimeMs,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN)}function _(e){if(e&&e.mediaType){var t=n[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function E(e,t){if(e.length!==t.length)return-1;for(var n=0,r=0;r=L.B_target){M.state=2,L.Q=s;for(var P=0;Pk&&(U=-1),L.w[z]=L.prev_w[z]+U*(B/(2*l))*((L.Q+s)*(C*g[z]/k));L.w=function(e){for(var t=e.length,n=!1,r=[],i=0;i=o[u+1]){n=!0;break}n||(s=(a+o[t-1]-1)/t);for(var c=0;cM.lastQuality&&g[M.lastQuality+1]<=k&&(t=M.lastQuality+1),g[t]>=k&&(L.Q=2*Math.max(s,L.Q)),M.lastSegment.url=F.url}r.quality=t,r.reason.throughput=I,r.reason.latency=R,r.reason.bufferLevel=S,M.lastQuality=r.quality;break;default:d.debug("L2A ABR rule invoked in bad state."),r.quality=_.getQualityForBitrate(u,x,b.id,R),r.reason.state=M.state,r.reason.throughput=x,r.reason.latency=R,M.state=1,m(M)}return r},reset:function(){w(),f.off(l.Z.PLAYBACK_SEEKING,g,t),f.off(l.Z.MEDIA_FRAGMENT_LOADED,y,t),f.off(l.Z.METRIC_ADDED,v,t),f.off(l.Z.QUALITY_CHANGE_REQUESTED,_,t)}},d=(0,u.Z)(h).getInstance().getLogger(t),w(),f.on(l.Z.PLAYBACK_SEEKING,g,t),f.on(l.Z.MEDIA_FRAGMENT_LOADED,y,t),f.on(l.Z.METRIC_ADDED,v,t),f.on(l.Z.QUALITY_CHANGE_REQUESTED,_,t),t}d.__dashjs_factory_name="L2ARule";const h=o.Z.getClassFactory(d)},6070:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5448),i=n(6398),o=n(2068);function a(){var e,t,n=this.context;return e={getMaxIndex:function(e){for(var r=e?e.getSwitchHistory():null,i=r?r.getSwitchRequests():[],a=0,s=0,l=0,u=(0,o.Z)(n).create(),c=0;c=6&&a/s>.075)){u.quality=c>0&&i[c].drops>0?c-1:c,u.reason={index:u.quality,drops:a,noDrops:s,dropSize:l},t.debug("Switch history rule index: "+u.quality+" samples: "+(a+s)+" drops: "+a);break}return u}},t=(0,i.Z)(n).getInstance().getLogger(e),e}a.__dashjs_factory_name="SwitchHistoryRule";const s=r.Z.getClassFactory(a)},5628:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(5448),i=n(2068),o=n(3393),a=n(3860);function s(e){e=e||{};var t=this.context,n=e.dashMetrics;return{getMaxIndex:function(e){var r=(0,i.Z)(t).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getScheduleController")))return r;!function(){if(!n||!n.hasOwnProperty("getCurrentBufferState"))throw new Error(o.Z.MISSING_CONFIG_ERROR)}();var s=e.getMediaInfo(),l=e.getMediaType(),u=n.getCurrentBufferState(l),c=e.getScheduleController(),d=e.getAbrController(),h=e.getStreamInfo(),p=h?h.id:null,f=h&&h.manifestInfo?h.manifestInfo.isDynamic:null,m=d.getThroughputHistory(),g=m.getSafeAverageThroughput(l,f),y=m.getAverageLatency(l),v=e.useBufferOccupancyABR();return isNaN(g)||!u||v||d.getAbandonmentStateFor(p,l)!==a.Z.ABANDON_LOAD&&(u.state===a.Z.BUFFER_LOADED||f)&&(r.quality=d.getQualityForBitrate(s,g,p,y),c.setTimeToLoadDelay(0),r.reason={throughput:g,latency:y}),r},reset:function(){}}}s.__dashjs_factory_name="ThroughputRule";const l=r.Z.getClassFactory(s)},4722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5448),i=n(6398);function o(){var e,t,n,r,o,a,s,l,u,c=this.context;function d(){n=null,r=1,o=100,a=0,s=null,l=null,u="dynamic_weight_selection"}function h(){var e=0;if(n)for(var t=0;te&&(e=r.state.throughput)}return e}function p(e,t,n){var r=e.map((function(e,r){return n[r]*Math.pow(e-t[r],2)})).reduce((function(e,t){return e+t}));return(r<0?-1:1)*Math.sqrt(Math.abs(r))}function f(e,t){return p([e.state.throughput,e.state.latency,e.state.rebuffer,e.state.switch],[t.state.throughput,t.state.latency,t.state.rebuffer,t.state.switch],[1,1,1,1])}function m(e,t,n){for(var r=0;ra)&&(o=l,a=u)}t.push(o)}for(var f=null,m=null,g=0;gf)&&(f=y,m=g)}var b=[];for(b.push(t[m]),t.splice(m,1);t.length>0;){for(var _=null,E=null,w=0;w1&&(w=h()),c/=o,t.debug("getNextQuality called throughput:".concat(w," latency:").concat(c," bufferSize:").concat(d," currentQualityIndex:").concat(g," playbackRate:").concat(f));var T=E[g],A=T.bitrate*y.getSegmentDuration()/_,S=Math.max(0,A-b);if(b-A{"use strict";n.d(t,{Z:()=>a});var r=n(5448),i=n(2298);function o(){var e,t,n,r,o;function a(){t=null,n=null,r=null,o=null}function s(e,t,n,r){var o=new i.Z;return o.type=e,o.weights.bitrateReward=t||1,o.weights.bitrateSwitchPenalty=1,o.weights.rebufferPenalty=n||1e3,o.weights.latencyPenalty=[],o.weights.latencyPenalty.push({threshold:1.1,penalty:.05*r}),o.weights.latencyPenalty.push({threshold:1e8,penalty:.1*n}),o.weights.playbackSpeedPenalty=r||200,o}function l(e,t,n,r,i){i.bitrateWSum+=i.weights.bitrateReward*e,i.lastBitrate&&(i.bitrateSwitchWSum+=i.weights.bitrateSwitchPenalty*Math.abs(e-i.lastBitrate)),i.lastBitrate=e,i.rebufferWSum+=i.weights.rebufferPenalty*t;for(var o=0;o{"use strict";n.d(t,{Z:()=>h});var r=n(6398),i=n(5448),o=n(4722),a=n(5317),s=n(2068),l=n(3860),u=n(6523),c=n(3393);function d(e){var t,n,i,d,h=(e=e||{}).dashMetrics,p=this.context;return n={getMaxIndex:function(e){try{var n=(0,s.Z)(p).create(),r=e.getMediaInfo().type,o=e.getAbrController(),a=e.getStreamInfo(),f=o.getQualityFor(r,a.id),m=e.getMediaInfo(),g=h.getCurrentBufferState(r),y=e.getScheduleController(),v=h.getCurrentBufferLevel(r,!0),b=a&&a.manifestInfo?a.manifestInfo.isDynamic:null,_=y.getPlaybackController(),E=_.getCurrentLiveLatency();if(!e.useLoLPABR()||r===c.Z.AUDIO)return n;E||(E=0);var w=_.getPlaybackRate(),T=o.getThroughputHistory().getSafeAverageThroughput(r,b);if(t.debug("Throughput ".concat(Math.round(T)," kbps")),isNaN(T)||!g)return n;if(o.getAbandonmentStateFor(a.id,r)===l.Z.ABANDON_LOAD)return n;for(var A=m.bitrateList,S=e.getRepresentationInfo().fragmentDuration,x=A[0].bandwidth/1e3,I=A[A.length-1].bandwidth/1e3,R=0;RI?I=C:CS?P-S:0;d.setupPerSegmentQoe(S,I,x),d.logSegmentMetrics(M,D,E,w);var O=(0,u.Z)(p).create({targetLatency:1.5,bufferMin:.3,segmentDuration:S,qoeEvaluator:d});return n.quality=i.getNextQuality(m,1e3*T,E,v,w,f,O),n.reason={throughput:T,latency:E},n.priority=s.Z.PRIORITY.STRONG,y.setTimeToLoadDelay(0),n.quality!==f&&t.debug("[TgcLearningRule]["+r+"] requesting switch to index: ",n.quality,"Average throughput",Math.round(T),"kbps"),n}catch(e){throw e}},reset:function(){i.reset(),d.reset()}},t=(0,r.Z)(p).getInstance().getLogger(n),i=(0,o.Z)(p).create(),d=(0,a.Z)(p).create(),n}d.__dashjs_factory_name="LoLPRule";const h=i.Z.getClassFactory(d)},6523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5448);function i(e){var t,n,r,i,o=e.targetLatency,a=e.bufferMin,s=e.segmentDuration,l=e.qoeEvaluator;function u(){return s}function c(e,t){var n=u();return t>n?e-n:e+n-t}return t={getMinBuffer:function(){return a},getSegmentDuration:u,getNextBufferWithBitrate:function(e,t,n){return c(t,e*s/n)},getNextBuffer:c,findWeightVector:function(e,t,i,u,d,h){var p=null,f=null,m=null,g=Math.abs(t-r);return e.forEach((function(e){n.forEach((function(n){n[0];var r=n[1],u=n[2],y=(n[3],e.bitrate*s/d),v=c(i,y),b=(0===u?10:1/u)*Math.max(1e-5,y-v),_=(0===r?10:1/r)*e.state.latency,E=l.calculateSingleUseQoe(e.bitrate,b,_,h);(null===p||E>p)&&function(e,t,n){return!(e>o+n)&&t>=a}(t,v,g)&&(p=E,f=n,m=e.bitrate)}))})),null===f&&null===m&&(f=-1),r=t,f}},n=function e(t,n,r){if(r===n)return t;for(var o=t.length,a=0;a{"use strict";n.d(t,{Z:()=>r});const r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=null,this.lastBitrate=null,this.weights={},this.weights.bitrateReward=null,this.weights.bitrateSwitchPenalty=null,this.weights.rebufferPenalty=null,this.weights.latencyPenalty=null,this.weights.playbackSpeedPenalty=null,this.bitrateWSum=0,this.bitrateSwitchWSum=0,this.rebufferWSum=0,this.latencyWSum=0,this.playbackSpeedWSum=0,this.totalQoe=0}},7803:(e,t,n)=>{"use strict";n.d(t,{Y:()=>p,Z:()=>m});var r=n(3393),i=n(1553),o=n(5448),a=n(2128),s=n(2594),l=n(7387),u=n(7417),c=n(9032),d=n(9326),h=n(7802),p=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];function f(e){var t,n,o,f,m,g,y,v,b=this.context,_=e.adapter,E=e.baseURLController,w=e.streamInfo,T=e.timelineConverter,A=e.debug,S=e.eventBus,x=e.events,I=e.dashConstants,R=(0,s.Z)(b).getInstance();function C(e,t){var r=new a.Z;r.id=e.id,r.bitrate=e.bandwidth,r.width=e.width,r.height=e.height,r.tilesHor=1,r.tilesVert=1,e.essentialProperties&&e.essentialProperties.forEach((function(e){if(p.indexOf(e.schemeIdUri)>=0&&e.value){var t=e.value.split("x");2!==t.length||isNaN(t[0])||isNaN(t[1])||(r.tilesHor=parseInt(t[0],10),r.tilesVert=parseInt(t[1],10))}})),t?g.updateSegmentData(e).then((function(t){!function(e,t,n){var r=[],i=function(e,t){var n,r,i,o,a=[],s=0;for(n=0,r=e.segments.length;ne)return i=t.url,!0})),i?n(i):t.segments.some((function(i){if(i.mediaStartTime<=e&&i.mediaStartTime+i.duration>e){var o=E.resolve(t.path);return y.load({method:"get",url:o.url,request:{range:i.mediaRange,responseType:"arraybuffer"},onload:function(e){var t=v.getSamplesInfo(e.target.response),o=new Blob([e.target.response.slice(t.sampleList[0].offset,t.sampleList[0].offset+t.sampleList[0].size)],{type:"image/jpeg"}),a=window.URL.createObjectURL(o);r.push({start:i.mediaStartTime,end:i.mediaStartTime+i.duration,url:a}),n&&n(a)}}),!0}}))}}(r,e,t)})):(r.startNumber=e.startNumber,r.segmentDuration=e.segmentDuration,r.timescale=e.timescale,r.templateUrl=function(e){var t=R.isRelative(e.media)?R.resolve(e.media,E.resolve(e.path).url):e.media;return t?(0,l.Aj)(t,e.id):""}(e)),r.tilesHor>0&&r.tilesVert>0&&(r.widthPerTile=r.width/r.tilesHor,r.heightPerTile=r.height/r.tilesVert,n.push(r))}function M(){n=[],f=-1,m=null}return t={getTracks:function(){return n},addTracks:function(){if(w&&_&&(m=_.getMediaInfoForType(w,r.Z.IMAGE))){var e=_.getVoRepresentations(m);e&&e.length>0&&e.forEach((function(e){(e.segmentInfoType===i.Z.SEGMENT_TEMPLATE&&e.segmentDuration>0&&e.media||e.segmentInfoType===i.Z.SEGMENT_TIMELINE)&&C(e),e.segmentInfoType===i.Z.SEGMENT_BASE&&C(e,!0)})),n.length>0&&n.sort((function(e,t){return e.bitrate-t.bitrate}))}},reset:M,setTrackByIndex:function(e){n&&0!==n.length&&(e>=n.length&&(e=n.length-1),f=e)},getCurrentTrack:function(){return f<0?null:n[f]},getCurrentTrackIndex:function(){return f},getThumbnailRequestForTime:function(e){for(var t,r=_.getVoRepresentations(m),i=0;i{"use strict";n.d(t,{Z:()=>u});var r=n(6398),i=n(8260),o=n(5448),a=n(6934),s=n(9597);function l(){var e,t,n=this.context;function o(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=a.parseBuffer(e),r=(0,i.Z)(n).create();return r.setData(t),r}function l(e,t){return e[t+3]>>>0|e[t+2]<<8>>>0|e[t+1]<<16>>>0|e[t]<<24>>>0}function u(e,t){return String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t])}return t={parse:o,findLastTopIsoBoxCompleted:function(e,t,n){if(void 0===n&&(n=0),!t||n+8>=t.byteLength)return new s.Z(0,!1);for(var r,i=t instanceof ArrayBuffer?new Uint8Array(t):t,o=0;n=0?r=new s.Z(n,!0,a):o=n+a),n+=a}return r||new s.Z(o,!1)},getMediaTimescaleFromMoov:function(e){var t=o(e),n=t?t.getBox("mdhd"):void 0;return n?n.timescale:NaN},getSamplesInfo:function(e){if(!e||0===e.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t,n,r,i,a,s,l,u,c,d,h,p,f,m,g,y,v=o(e),b=v.getBoxes("moof"),_=v.getBoxes("mfhd");g=v.getBoxes("moof").length,m=_[_.length-1].sequence_number,n=0,a=[];var E=-1,w=-1;for(d=0;dw&&(E++,w+=P.entries[E].sample_delta),l==w){L.subSizes=[];var D=P.entries[E];for(p=0;p=t.byteLength)return new s.Z(0,!1);for(var r,i=t instanceof ArrayBuffer?new Uint8Array(t):t,o=0;n=0?r=new s.Z(n,!0,a,c):o=n+a),n+=a}return r||new s.Z(o,!1)}},e=(0,r.Z)(n).getInstance().getLogger(t),t}l.__dashjs_factory_name="BoxParser";const u=o.Z.getSingletonFactory(l)},1715:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,Z:()=>u});var r=n(5448),i=n(7803),o=n(3393),a=[{codec:"avc1",compatibleCodecs:["avc3"]},{codec:"avc3",compatibleCodecs:["avc1"]}];function s(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t}function l(){var e,t,n;return e={setConfig:function(e){e&&e.settings&&(t=e.settings)},supportsMediaSource:s,supportsEncryptedMedia:function(){return n},supportsCodec:function(e,n){return n!==o.Z.AUDIO&&n!==o.Z.VIDEO?Promise.resolve(!0):function(e,n){return t.get().streaming.capabilities.useMediaCapabilitiesApi&&navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo&&(e.codec&&n===o.Z.AUDIO||n===o.Z.VIDEO&&e.codec&&e.width&&e.height&&e.bitrate&&e.framerate)}(e,n)?function(e,t){return new Promise((function(n){if(e&&e.codec){var r={type:"media-source"};r[t]={},r[t].contentType=e.codec,r[t].width=e.width,r[t].height=e.height,r[t].bitrate=parseInt(e.bitrate),r[t].framerate=parseFloat(e.framerate),navigator.mediaCapabilities.decodingInfo(r).then((function(e){n(e.supported)})).catch((function(){n(!1)}))}else n(!1)}))}(e,n):function(e){return new Promise((function(t){if(e&&e.codec){var n=e.codec;e.width&&e.height&&(n+=';width="'+e.width+'";height="'+e.height+'"'),"MediaSource"in window&&MediaSource.isTypeSupported(n)||"WebKitMediaSource"in window&&WebKitMediaSource.isTypeSupported(n)?t(!0):t(!1)}else t(!1)}))}(e)},setEncryptedMediaSupported:function(e){n=e},supportsEssentialProperty:function(e){try{return-1!==i.Y.indexOf(e.schemeIdUri)}catch(e){return!0}},codecRootCompatibleWithCodec:function(e,t){for(var n,r=e.split(".")[0],i=0===t.indexOf(r),o=0;o{"use strict";n.d(t,{Z:()=>a});var r=n(5448),i=n(3106);function o(){return{customTimeRangeArray:[],length:0,add:function(e,t){var n;for(n=0;nthis.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:e,end:t}),n=0;n=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(e>this.customTimeRangeArray[n].start&&tthis.customTimeRangeArray[n].start&&ethis.customTimeRangeArray[n].start&&t=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].start},end:function(e){return(0,i.SE)(e),e>=this.customTimeRangeArray.length||e<0?NaN:this.customTimeRangeArray[e].end}}}o.__dashjs_factory_name="CustomTimeRanges";const a=r.Z.getClassFactory(o)},5:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5448);function i(){var e,t=/^[a-z][a-z0-9+\-_.]*:/i,n=/^https?:\/\//i,r=/^https:\/\//i,i=/^([a-z][a-z0-9+\-_.]*:\/\/[^\/]+)\/?/i,o=function(e,t){try{return new window.URL(e,t).toString()}catch(t){return e}},a=function(e,t){var n=s;if(!t)return e;if(!c(e))return e;d(e)&&(n=l),h(e)&&(n=u);var r=n(t),i="/"!==r.charAt(r.length-1)&&"/"!==e.charAt(0)?"/":"";return[r,e].join(i)};function s(e){var t=e.indexOf("/"),n=e.lastIndexOf("/");return-1!==t?n===t+1?e:(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,n+1)):""}function l(e){var t=e.match(i);return t?t[1]:""}function u(e){var n=e.match(t);return n?n[0]:""}function c(e){return!t.test(e)}function d(e){return c(e)&&"/"===e.charAt(0)}function h(e){return 0===e.indexOf("//")}return function(){try{new window.URL("x","http://y"),e=o}catch(e){}finally{e=e||a}}(),{parseBaseUrl:s,parseOrigin:l,parseScheme:u,isRelative:c,isPathAbsolute:d,isSchemeRelative:h,isHTTPURL:function(e){return n.test(e)},isHTTPS:function(e){return r.test(e)},removeHostname:function(e){return/^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(e)[2].substring(1)},resolve:function(t,n){return e(t,n)}}}i.__dashjs_factory_name="DefaultURLUtils";const o=r.Z.getSingletonFactory(i)},8260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(2839),i=n(5448);function o(){var e;function t(t){var r=[];if(!t||!e||"function"!=typeof e.fetchAll)return r;for(var i,o=e.fetchAll(t),a=0,s=o.length;a0?n[n.length-1]:null}}}o.__dashjs_factory_name="IsoFile";const a=i.Z.getClassFactory(o)},7473:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,k:()=>i});var r=n(5448);function i(e,t){var n={url:e.url,method:e.method,headers:Object.assign({},e.headers),credentials:e.withCredentials?"include":void 0};return Promise.resolve(t.modifyRequest(n)).then((function(){return Object.assign(e,n,{withCredentials:"include"===n.credentials})}))}function o(){return{modifyRequest:null,modifyRequestURL:function(e){return e},modifyRequestHeader:function(e,t){return t.url,e}}}o.__dashjs_factory_name="RequestModifier";const a=r.Z.getSingletonFactory(o)},3106:(e,t,n)=>{"use strict";n.d(t,{PS:()=>o,SE:()=>a});var r=n(3393);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){if(i(e)!==t)throw r.Z.BAD_ARGUMENT_ERROR}function a(e){if(null===e||isNaN(e)||e%1!=0)throw r.Z.BAD_ARGUMENT_ERROR+" : argument is not an integer"}},2594:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(5448),i=n(5);function o(){var e,t=[],n=this.context;function r(n,r,i){var o=function(n){var r;for(r=0;r{"use strict";n.d(t,{Z:()=>r});const r=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=n||null,this.data=r||null}},3186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7855),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=e.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaStartTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=t||null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}var t;return(t=[{key:"isInitializationRequest",value:function(){return this.type&&this.type===r.w.INIT_SEGMENT_TYPE}},{key:"setInfo",value:function(e){this.type=e&&e.init?r.w.INIT_SEGMENT_TYPE:r.w.MEDIA_SEGMENT_TYPE,this.url=e&&e.url?e.url:null,this.range=e&&e.range?e.range.start+"-"+e.range.end:null,this.mediaType=e&&e.mediaType?e.mediaType:null}}])&&function(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>r});const r=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t._offset,this.type=t.type,this.size=t.size,this.boxes=[],t.boxes)for(var n=0;n{"use strict";n.d(t,{Z:()=>r});const r=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastCompletedOffset=t,this.found=n,this.size=r}},2128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""}},7855:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{O:()=>o,w:()=>i});var i=function e(){r(this,e),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this.cmsd=null,this._stream=null,this._tfinish=null,this._mediaduration=null,this._quality=null,this._responseHeaders=null,this._serviceLocation=null,this._fileLoaderType=null},o=function e(){r(this,e),this.s=null,this.d=null,this.b=[]};i.GET="GET",i.HEAD="HEAD",i.MPD_TYPE="MPD",i.XLINK_EXPANSION_TYPE="XLinkExpansion",i.INIT_SEGMENT_TYPE="InitializationSegment",i.INDEX_SEGMENT_TYPE="IndexSegment",i.MEDIA_SEGMENT_TYPE="MediaSegment",i.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",i.MSS_FRAGMENT_INFO_SEGMENT_TYPE="FragmentInfoSegment",i.DVB_REPORTING_TYPE="DVBReporting",i.LICENSE="license",i.CONTENT_STEERING_TYPE="ContentSteering",i.OTHER_TYPE="other"},3039:(e,t)=>{"use strict";function n(e,t){return function(n,i){for(var o,a,s,l=r(n,"tag"),u=r(null==i?"*":i,"range"),c=[],d=-1;++d-1}),!0),t.extendedFilter=n((function(e,t){var n=e.split("-"),r=t.split("-"),i=0,o=0;if("*"!==r[o]&&n[i]!==r[o])return!1;for(i++,o++;o{"use strict";e.exports=n(3854)},3854:(e,t,n)=>{"use strict";var r=n(2415),i=n(3039),o=n(7778),a=n(5813),s=n(3165),l=n(9460);e.exports=function(e,t){var n,c=t||{},g=r.parse(String(e||"").toLowerCase(),c),y=r.stringify(g),v=-1;if(!y)return y;for(;++v-1||!e[i]||!e[i].length)&&f(e,i,a[i])}function p(e,t,n){var r,i,o,a,s=!1;if(n){if(i=r=e[t],r&&"object"==typeof r)for(i=[],o=-1;++o{"use strict";t.parse=n(6903),t.stringify=n(6713)},6903:(e,t,n)=>{"use strict";var r=n(2219),i=n(3516),o=n(395),a=n(858),s=n(8589);e.exports=function e(t,n){var u,c,d,h=n||{},p={language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null},f=String(t),m=f.toLowerCase(),g=0;if(null==t)throw new Error("Expected string, got `"+t+"`");if(l.call(s,m))return(null==h.normalize||h.normalize)&&s[m]?e(s[m]):(p[-1===a.indexOf(m)?"irregular":"regular"]=f,p);for(;i(m.charCodeAt(g))&&g<9;)g++;if(g>1&&g<9){if(p.language=f.slice(0,g),g<4)for(c=0;45===m.charCodeAt(g)&&i(m.charCodeAt(g+1))&&i(m.charCodeAt(g+2))&&i(m.charCodeAt(g+3))&&!i(m.charCodeAt(g+4));){if(c>2)return y(g,3,"Too many extended language subtags, expected at most 3 subtags");p.extendedLanguageSubtags.push(f.slice(g+1,g+4)),g+=4,c++}for(45===m.charCodeAt(g)&&i(m.charCodeAt(g+1))&&i(m.charCodeAt(g+2))&&i(m.charCodeAt(g+3))&&i(m.charCodeAt(g+4))&&!i(m.charCodeAt(g+5))&&(p.script=f.slice(g+1,g+5),g+=5),45===m.charCodeAt(g)&&(i(m.charCodeAt(g+1))&&i(m.charCodeAt(g+2))&&!i(m.charCodeAt(g+3))?(p.region=f.slice(g+1,g+3),g+=3):o(m.charCodeAt(g+1))&&o(m.charCodeAt(g+2))&&o(m.charCodeAt(g+3))&&!o(m.charCodeAt(g+4))&&(p.region=f.slice(g+1,g+4),g+=4));45===m.charCodeAt(g);){for(d=u=g+1;r(m.charCodeAt(d));){if(d-u>7)return y(d,1,"Too long variant, expected at most 8 characters");d++}if(!(d-u>4||d-u>3&&o(m.charCodeAt(u))))break;p.variants.push(f.slice(u,d)),g=d}for(;45===m.charCodeAt(g)&&120!==m.charCodeAt(g+1)&&r(m.charCodeAt(g+1))&&45===m.charCodeAt(g+2)&&r(m.charCodeAt(g+3));){for(d=g+2,c=0;45===m.charCodeAt(d)&&r(m.charCodeAt(d+1))&&r(m.charCodeAt(d+2));)for(d=(u=d+1)+2,c++;r(m.charCodeAt(d));){if(d-u>7)return y(d,2,"Too long extension, expected at most 8 characters");d++}if(!c)return y(d,4,"Empty extension, extensions must have at least 2 characters of content");p.extensions.push({singleton:f.charAt(g+1),extensions:f.slice(g+3,d).split("-")}),g=d}}else g=0;if(0===g&&120===m.charCodeAt(g)||45===m.charCodeAt(g)&&120===m.charCodeAt(g+1))for(d=g=g?g+2:1;45===m.charCodeAt(d)&&r(m.charCodeAt(d+1));){for(d=u=g+1;r(m.charCodeAt(d));){if(d-u>7)return y(d,5,"Too long private-use area, expected at most 8 characters");d++}p.privateuse.push(f.slice(g+1,d)),g=d}return g!==f.length?y(g,6,"Found superfluous content after tag"):p;function y(e,t,n){return h.warning&&h.warning(n,t,e),h.forgiving?p:{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}};var l={}.hasOwnProperty},6713:e=>{"use strict";e.exports=function(e){var t,n,r,i=e||{},o=[];if(i.irregular||i.regular)return i.irregular||i.regular;if(i.language)for(o=o.concat(i.language,i.extendedLanguageSubtags||[],i.script||[],i.region||[],i.variants||[]),t=i.extensions||[],n=-1;++n{"use strict";var r=n(6693),i=n(2165),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|m(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var i=function(e){if(l.isBuffer(e)){var t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||V(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),s(e<0?0:0|f(e))}function h(e){for(var t=e.length<0?0:0|f(e.length),n=s(t),r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return r?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr.length?l.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return t=+t,n>>>=0,o||O(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||O(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}var j=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},6693:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,d=l>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,u=r-i;su?u:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2165:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,u-=8);e[n+p-f]|=128*m}},6934:(e,t)=>{var n={parseBuffer:function(e){return new r(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(i.prototype._boxProcessors[e]=t)},createFile:function(){return new r},createBox:function(e,t,n){var r=i.create(e);return t&&t.append(r,n),r},createFullBox:function(e,t,r){var i=n.createBox(e,t,r);return i.version=0,i.flags=0,i},Utils:{}};n.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],i=0;if("utf-8"===n)for(;i>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},n.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==n)if(null!=n){var r,i=-1;if("number"==typeof n)i=n;else{if("string"==typeof n)r=n;else{if("object"!=typeof n||!n.type)return void e.boxes.push(t);r=n.type}for(var o=0;o>3,t},i.prototype._readUint=function(e){var t,n,r=null,i=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(i);break;case 16:r=this._raw.getUint16(i);break;case 24:r=((t=this._raw.getUint16(i))<<8)+(n=this._raw.getUint8(i+2));break;case 32:r=this._raw.getUint32(i);break;case 64:t=this._raw.getUint32(i),n=this._raw.getUint32(i+4),r=t*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,r},i.prototype._readString=function(e){for(var t="",n=0;n0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},i.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return e>0&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?n.Utils.dataViewToString(t):t},i.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},i.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},i.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset>3}else this.size+=e>>3},i.prototype._writeUint=function(e,t){if(this._rawo){var n,r,i=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(i,n),this._rawo.setUint8(i+2,r);break;case 32:this._rawo.setUint32(i,t);break;case 64:r=t-(n=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(i,n),this._rawo.setUint32(i+4,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeString=function(e,t){for(var n=0;n>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},i.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},i.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},i.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},i.prototype._boxProcessors.mp4a=i.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},i.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},i.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},i.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField("reference_track_ID","uint",32),this._procField("ntp_timestamp_sec","uint",32),this._procField("ntp_timestamp_frac","uint",32),this._procField("media_time","uint",1==this.version?64:32)},i.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},i.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},i.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},i.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)}))},i.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},i.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,(function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)}))}))},i.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},i.prototype._boxProcessors.sttg=function(){this._procField("settings","utf8")},i.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"sample_count","uint",32),this._procEntryField(e,"sample_delta","uint",32)}))},i.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,(function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)}))}))},i.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},i.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},i.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},i.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},i.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},i.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},i.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},i.prototype._boxProcessors["url "]=i.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},i.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},i.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},i.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},i.prototype._boxProcessors.vtte=function(){}},5530:(e,t,n)=>{"use strict";e.exports=n(6146).polyfill()},6146:function(e,t,n){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,i=void 0,o=void 0,a=function(e,t){p[r]=e,p[r+1]=t,2===(r+=2)&&(o?o(f):b())},s="undefined"!=typeof window?window:void 0,l=s||{},u=l.MutationObserver||l.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(f,1)}}var p=new Array(1e3);function f(){for(var e=0;e{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=f(l,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3101:e=>{"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty;e.exports=function e(i,o){if(i===o)return!0;if(i&&o&&"object"==typeof i&&"object"==typeof o){var a,s,l,u=t(i),c=t(o);if(u&&c){if((s=i.length)!=o.length)return!1;for(a=s;0!=a--;)if(!e(i[a],o[a]))return!1;return!0}if(u!=c)return!1;var d=i instanceof Date,h=o instanceof Date;if(d!=h)return!1;if(d&&h)return i.getTime()==o.getTime();var p=i instanceof RegExp,f=o instanceof RegExp;if(p!=f)return!1;if(p&&f)return i.toString()==o.toString();var m=n(i);if((s=m.length)!==n(o).length)return!1;for(a=s;0!=a--;)if(!r.call(o,m[a]))return!1;for(a=s;0!=a--;)if(!e(i[l=m[a]],o[l]))return!1;return!0}return i!=i&&o!=o}},3362:(e,t,n)=>{!function(e,t,n,r,i){function o(e){if("contents"in e)for(var t=("styleAttrs"in e?e.styleAttrs[r.byName.ruby.qname]:null),n="span"===e.kind&&("container"===t||"textContainer"===t||"baseContainer"===t),i=e.contents.length-1;i>=0;i--)!n||"styleAttrs"in e.contents[i]&&r.byName.ruby.qname in e.contents[i].styleAttrs?o(e.contents[i]):delete e.contents[i]}function a(e,t,n,r){var i=r&&"seq"===r.timeContainer,o=0;r&&(o=i&&n?n.end:r.begin),t.begin=t.explicit_begin?t.explicit_begin+o:o;var s=t.begin,l=null;if("sets"in t)for(var u=0;u0;){var r=t.styleRefs.pop();r in e.styles?(N(e,e.styles[r],n),F(e.styles[r].styleAttrs,t.styleAttrs)):U(n,"Non-existant style id referenced")}}function k(e,t,n,r){for(var i=t.length-1;i>=0;i--){var o=t[i];o in e.styles?F(e.styles[o].styleAttrs,n):U(r,"Non-existant style id referenced")}}function F(e,t){for(var n in e)e.hasOwnProperty(n)&&(n in t||(t[n]=e[n]))}function B(e,t){if(e&&e.warn&&e.warn(t))throw t}function U(e,t){if(e&&e.error&&e.error(t))throw t}function z(e,t){throw e&&e.fatal&&e.fatal(t),t}function G(e,t){for(var n,r=0,i=e.length-1;r<=i;){var o=e[n=Math.floor((r+i)/2)];if(ot))return{found:!0,index:n};i=n-1}}return{found:!1,index:r}}e.fromXML=function(e,i,m){var g=t.parser(!0,{xmlns:!0}),y=[],v=[],b=[],_=0,E=null;g.onclosetag=function(e){if(y[0]instanceof R)null!==E.head&&null!==E.head.styling&&k(E.head.styling,y[0].styleRefs,y[0].styleAttrs,i),delete y[0].styleRefs;else if(y[0]instanceof c)for(var t in y[0].styles)y[0].styles.hasOwnProperty(t)&&N(y[0],y[0].styles[t],i);else if(y[0]instanceof A||y[0]instanceof S){if(y[0].contents.length>1){var r,o=[y[0].contents[0]];for(r=1;r0&&m&&"onCloseTag"in m&&m.onCloseTag());b.shift(),v.shift(),y.shift()},g.ontext=function(e){if(void 0===y[0]);else if(y[0]instanceof S||y[0]instanceof A){if(y[0]instanceof S){var t=y[0].styleAttrs[r.byName.ruby.qname];if("container"===t||"textContainer"===t||"baseContainer"===t)return}var n=new x;n.initFromText(E,y[0],e,v[0],b[0],i),y[0].contents.push(n)}else y[0]instanceof s&&_>0&&m&&"onText"in m&&m.onText(e)},g.onopentag=function(e){var t=e.attributes["xml:space"];t?b.unshift(t.value):0===b.length?b.unshift("default"):b.unshift(b[0]);var o=e.attributes["xml:lang"];if(o?v.unshift(o.value):0===v.length?v.unshift(""):v.unshift(v[0]),e.uri===n.ns_tt)if("tt"===e.local)null!==E&&z(i,"Two elements at ("+this.line+","+this.column+")"),(E=new l).initFromNode(e,v[0],i),y.unshift(E);else if("head"===e.local)y[0]instanceof l||z(i,"Parent of element is not at ("+this.line+","+this.column+")"),y.unshift(E.head);else if("styling"===e.local)y[0]instanceof u||z(i,"Parent of element is not at ("+this.line+","+this.column+")"),y.unshift(E.head.styling);else if("style"===e.local){var a;y[0]instanceof c?((a=new d).initFromNode(e,i),a.id?E.head.styling.styles[a.id]=a:U(i,"