1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70423,function(e,t,n){"use strict";var i=e.r(39088);n._=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i._(e)););return e}},27176,function(e,t,n){"use strict";var i=e.r(70423);function r(e,t,a){return"u">typeof Reflect&&Reflect.get?n._=r=Reflect.get:n._=r=function(e,t,n){var r=i._(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n||e):a.value}},r(e,t,a||e)}n._=r},96629,function(e,t,n){var i=e.i(36620),r=e.i(50461),a=e.r(81980),s=e.r(82472),o=e.r(99801),u=e.r(22998),l=e.r(31170),c=e.r(80447),d=e.r(27176),h=e.r(39088),f=e.r(10563),p=e.r(59874),m=e.r(92479),g=e.r(13037),v=e.r(51169),y=e.r(41601),_=e.r(63047),b=e.r(6986),T=e.r(86314),k=e.r(21383),S=e.r(1419),E=self,w=function(){return function(){var E,w,C,x,A=(x={
vendor: 3,780 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/byte-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{ENDIANNESS:function(){return _},IS_BIG_ENDIAN:function(){return b},IS_LITTLE_ENDIAN:function(){return k},bytesMatch:function(){return A},bytesToNumber:function(){return S},bytesToString:function(){return w},concatTypedArrays:function(){return x},countBits:function(){return u},countBytes:function(){return l},isArrayBufferView:function(){return d},isTypedArray:function(){return h},numberToBytes:function(){return E},padStart:function(){return c},reverseBytes:function(){return P},sliceBytes:function(){return I},stringToBytes:function(){return C},toBinaryString:function(){return g},toHexString:function(){return m},toUint8:function(){return f}});var i,r,a=n("../node_modules/global/window.js"),s=n.n(a),o=function(e,t){for(var n="";t--;)n+=e;return n},u=function(e){return e.toString(2).length},l=function(e){return Math.ceil(u(e)/8)},c=function(e,t,n){return void 0===n&&(n=" "),(o(n,t)+e.toString()).slice(-t)},d=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&p._(e.buffer,ArrayBuffer)},h=function(e){return d(e)},f=function(e){return p._(e,Uint8Array)?e:(Array.isArray(e)||h(e)||p._(e,ArrayBuffer)||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},m=function(e){e=f(e);for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16),2,"0");return t},g=function(e){e=f(e);for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(2),8,"0");return t},v=s().BigInt||Number,y=[v("0x1"),v("0x100"),v("0x10000"),v("0x1000000"),v("0x100000000"),v("0x10000000000"),v("0x1000000000000"),v("0x100000000000000"),v("0x10000000000000000")],_=255===(r=new Uint8Array((i=new Uint16Array([65484])).buffer,i.byteOffset,i.byteLength))[0]?"big":204===r[0]?"little":"unknown",b="big"===_,k="little"===_,S=function(e,t){var n=void 0===t?{}:t,i=n.signed,r=n.le,a=void 0!==r&&r;e=f(e);var s=a?"reduce":"reduceRight",o=(e[s]?e[s]:Array.prototype[s]).call(e,function(t,n,i){var r=a?i:Math.abs(i+1-e.length);return t+v(n)*y[r]},v(0));if(void 0!==i&&i){var u=y[e.length]/v(2)-v(1);(o=v(o))>u&&(o-=u,o-=u,o-=v(2))}return Number(o)},E=function(e,t){var n=(void 0===t?{}:t).le,i=void 0!==n&&n;((void 0===e?"undefined":T._(e))!=="bigint"&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var r=l(e=v(e)),a=new Uint8Array(new ArrayBuffer(r)),s=0;s<r;s++){var o=i?s:Math.abs(s+1-a.length);a[o]=Number(e/y[s]&v(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a},w=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,f(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},C=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},x=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return f(t[0]);var i=new Uint8Array(t.reduce(function(e,t,n){return e+(t.byteLength||t.length)},0)),r=0;return t.forEach(function(e){e=f(e),i.set(e,r),r+=e.byteLength}),i},A=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,s=i.mask,o=void 0===s?[]:s;e=f(e);var u=(t=f(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&u.call(t,function(t,n){return t===(o[n]?o[n]&e[a+n]:e[a+n])})},I=function(e,t,n){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))},P=function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)}},
vendor: 1,077 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/codec-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{getAv1Codec:function(){return r},getAvcCodec:function(){return a},getHvcCodec:function(){return s}});var i=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),r=function(e){var t,n="",r=e[1]>>>3,a=31&e[1],s=e[2]>>>7,o=(64&e[2])>>6,u=(32&e[2])>>5,l=(16&e[2])>>4,c=(8&e[2])>>3,d=(4&e[2])>>2,h=3&e[2];return n+=r+"."+(0,i.padStart)(a,2,"0"),0===s?n+="M":1===s&&(n+="H"),t=2===r&&o?u?12:10:o?10:8,n+="."+(0,i.padStart)(t,2,"0"),n+="."+l,n+="."+c+d+h},a=function(e){return""+(0,i.toHexString)(e[1])+(0,i.toHexString)(252&e[2])+(0,i.toHexString)(e[3])},s=function(e){var t="",n=e[1]>>6,r=31&e[1],a=(32&e[1])>>5,s=e.subarray(2,6),o=e.subarray(6,12),u=e[12];1===n?t+="A":2===n?t+="B":3===n&&(t+="C"),t+=r+".";var l=parseInt((0,i.toBinaryString)(s).split("").reverse().join(""),2);l>255&&(l=parseInt((0,i.toBinaryString)(s),2)),t+=l.toString(16)+".",0===a?t+="L":t+="H",t+=u;for(var c="",d=0;d<o.length;d++){var h=o[d];h&&(c&&(c+="."),c+=h.toString(16))}return c&&(t+="."+c),t}},
vendor: 2,867 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/codecs.js":function(e,t,n){"use strict";n.r(t),n.d(t,{DEFAULT_AUDIO_CODEC:function(){return _},DEFAULT_VIDEO_CODEC:function(){return b},browserSupportsCodec:function(){return v},codecsFromDefault:function(){return h},getMimeForCodec:function(){return g},isAudioCodec:function(){return p},isTextCodec:function(){return m},isVideoCodec:function(){return f},mapLegacyAvcCodecs:function(){return c},muxerSupportsCodec:function(){return y},parseCodecs:function(){return d},translateLegacyCodec:function(){return u},translateLegacyCodecs:function(){return l}});var i=n("../node_modules/global/window.js"),r=n.n(i),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},s=["video","audio","text"],o=["Video","Audio","Text"],u=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},l=function(e){return e.map(u)},c=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e){return l([e])[0]})},d=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),s.forEach(function(i){var r=a[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var s=e.substring(0,r[1].length),o=e.replace(s,"");n.push({type:s,details:o,mediaType:i})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},h=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return d(r.playlists[0].attributes.CODECS)}return null},f=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())},p=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},m=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())},g=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return u(e.trim())}),n="video";1===t.length&&p(t[0])?n="audio":1===t.length&&m(t[0])&&(n="application");var i="mp4";return t.every(function(e){return a.mp4.test(e)})?i="mp4":t.every(function(e){return a.webm.test(e)})?i="webm":t.every(function(e){return a.ogg.test(e)})&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}},v=function(e){return void 0===e&&(e=""),r().MediaSource&&r().MediaSource.isTypeSupported&&r().MediaSource.isTypeSupported(g(e))||!1},y=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<o.length;t++)if(a["muxer"+o[t]].test(e))return!0;return!1})},_="mp4a.40.2",b="avc1.4d400d"},
vendor: 2,874 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/containers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{detectContainerForBytes:function(){return h},isLikely:function(){return d},isLikelyFmp4MediaSegment:function(){return f}});var i=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),r=n("../node_modules/@videojs/vhs-utils/es/mp4-helpers.js"),a=n("../node_modules/@videojs/vhs-utils/es/ebml-helpers.js"),s=n("../node_modules/@videojs/vhs-utils/es/id3-helpers.js"),o=n("../node_modules/@videojs/vhs-utils/es/nal-helpers.js"),u={webm:(0,i.toUint8)([119,101,98,109]),matroska:(0,i.toUint8)([109,97,116,114,111,115,107,97]),flac:(0,i.toUint8)([102,76,97,67]),ogg:(0,i.toUint8)([79,103,103,83]),ac3:(0,i.toUint8)([11,119]),riff:(0,i.toUint8)([82,73,70,70]),avi:(0,i.toUint8)([65,86,73]),wav:(0,i.toUint8)([87,65,86,69]),"3gp":(0,i.toUint8)([102,116,121,112,51,103]),mp4:(0,i.toUint8)([102,116,121,112]),fmp4:(0,i.toUint8)([115,116,121,112]),mov:(0,i.toUint8)([102,116,121,112,113,116]),moov:(0,i.toUint8)([109,111,111,118]),moof:(0,i.toUint8)([109,111,111,102])},l={aac:function(e){var t=(0,s.getId3Offset)(e);return(0,i.bytesMatch)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=(0,s.getId3Offset)(e);return(0,i.bytesMatch)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=(0,a.findEbml)(e,[a.EBML_TAGS.EBML,a.EBML_TAGS.DocType])[0];return(0,i.bytesMatch)(t,u.webm)},mkv:function(e){var t=(0,a.findEbml)(e,[a.EBML_TAGS.EBML,a.EBML_TAGS.DocType])[0];return(0,i.bytesMatch)(t,u.matroska)},mp4:function(e){return!(l["3gp"](e)||l.mov(e))&&(!!((0,i.bytesMatch)(e,u.mp4,{offset:4})||(0,i.bytesMatch)(e,u.fmp4,{offset:4})||(0,i.bytesMatch)(e,u.moof,{offset:4})||(0,i.bytesMatch)(e,u.moov,{offset:4}))||void 0)},mov:function(e){return(0,i.bytesMatch)(e,u.mov,{offset:4})},"3gp":function(e){return(0,i.bytesMatch)(e,u["3gp"],{offset:4})},ac3:function(e){var t=(0,s.getId3Offset)(e);return(0,i.bytesMatch)(e,u.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=(0,s.getId3Offset)(e);return(0,i.bytesMatch)(e,u.flac,{offset:t})},ogg:function(e){return(0,i.bytesMatch)(e,u.ogg)},avi:function(e){return(0,i.bytesMatch)(e,u.riff)&&(0,i.bytesMatch)(e,u.avi,{offset:8})},wav:function(e){return(0,i.bytesMatch)(e,u.riff)&&(0,i.bytesMatch)(e,u.wav,{offset:8})},h264:function(e){return(0,o.findH264Nal)(e,7,3).length},h265:function(e){return(0,o.findH265Nal)(e,[32,33],3).length}},c=Object.keys(l).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);c.forEach(function(e){var t=l[e];l[e]=function(e){return t((0,i.toUint8)(e))}});var d=l,h=function(e){e=(0,i.toUint8)(e);for(var t=0;t<c.length;t++){var n=c[t];if(d[n](e))return n}return""},f=function(e){return(0,r.findBox)(e,["moof"]).length>0}},
vendor: 395 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js":function(e,t,n){"use strict";var r=function(e){for(var t=o(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n};n.r(t),n.d(t,{default:function(){return r}});var a=n("../node_modules/global/window.js"),s=n.n(a),o=function(e){return s().atob?s().atob(e):i.Buffer.from(e,"base64").toString("binary")}},
vendor: 6,050 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/ebml-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{EBML_TAGS:function(){return a},decodeBlock:function(){return h},findEbml:function(){return d},parseData:function(){return m},parseTracks:function(){return p}});var i=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),r=n("../node_modules/@videojs/vhs-utils/es/codec-helpers.js"),a={EBML:(0,i.toUint8)([26,69,223,163]),DocType:(0,i.toUint8)([66,130]),Segment:(0,i.toUint8)([24,83,128,103]),SegmentInfo:(0,i.toUint8)([21,73,169,102]),Tracks:(0,i.toUint8)([22,84,174,107]),Track:(0,i.toUint8)([174]),TrackNumber:(0,i.toUint8)([215]),DefaultDuration:(0,i.toUint8)([35,227,131]),TrackEntry:(0,i.toUint8)([174]),TrackType:(0,i.toUint8)([131]),FlagDefault:(0,i.toUint8)([136]),CodecID:(0,i.toUint8)([134]),CodecPrivate:(0,i.toUint8)([99,162]),VideoTrack:(0,i.toUint8)([224]),AudioTrack:(0,i.toUint8)([225]),Cluster:(0,i.toUint8)([31,67,182,117]),Timestamp:(0,i.toUint8)([231]),TimestampScale:(0,i.toUint8)([42,215,177]),BlockGroup:(0,i.toUint8)([160]),BlockDuration:(0,i.toUint8)([155]),Block:(0,i.toUint8)([161]),SimpleBlock:(0,i.toUint8)([163])},s=[128,64,32,16,8,4,2,1],o=function(e){for(var t=1,n=0;n<s.length&&!(e&s[n]);n++)t++;return t},u=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var a=o(e[t]),u=e.subarray(t,t+a);return n&&(u=Array.prototype.slice.call(e,t,t+a),u[0]^=s[a-1]),{length:a,value:(0,i.bytesToNumber)(u,{signed:r}),bytes:u}},l=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?(0,i.numberToBytes)(t):t},c=function e(t,n,r){if(r>=n.length)return n.length;var a=u(n,r,!1);if((0,i.bytesMatch)(t.bytes,a.bytes))return r;var s=u(n,r+a.length);return e(t,n,r+s.length+s.value+a.length)},d=function e(t,n){n=Array.isArray(r=n)?r.map(function(e){return l(e)}):[l(r)],t=(0,i.toUint8)(t);var r,a=[];if(!n.length)return a;for(var s=0;s<t.length;){var o=u(t,s,!1),d=u(t,s+o.length),h=s+o.length+d.length;127===d.value&&(d.value=c(o,t,h),d.value!==t.length&&(d.value-=h));var f=h+d.value>t.length?t.length:h+d.value,p=t.subarray(h,f);(0,i.bytesMatch)(n[0],o.bytes)&&(1===n.length?a.push(p):a=a.concat(e(p,n.slice(1)))),s+=o.length+d.length+p.length}return a},h=function(e,t,n,r){"group"===t&&((s=d(e,[a.BlockDuration])[0])&&(s=1/n*(s=(0,i.bytesToNumber)(s))*n/1e3),e=d(e,[a.Block])[0],t="block");var s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l=u(e,0),c=o.getInt16(l.length,!1),h=e[l.length+2],f=e.subarray(l.length+3),p=1/n*(r+c)*n/1e3,m={duration:s,trackNumber:l.value,keyframe:"simple"===t&&h>>7==1,invisible:(8&h)>>3==1,lacing:(6&h)>>1,discardable:"simple"===t&&(1&h)==1,frames:[],pts:p,dts:p,timestamp:c};if(!m.lacing)return m.frames.push(f),m;var g=f[0]+1,v=[],y=1;if(2===m.lacing)for(var _=(f.length-y)/g,b=0;b<g;b++)v.push(_);if(1===m.lacing)for(var T=0;T<g-1;T++){var k=0;do k+=f[y],y++;while(255===f[y-1])v.push(k)}if(3===m.lacing)for(var S=0,E=0;E<g-1;E++){var w=0===E?u(f,y):u(f,y,!0,!0);S+=w.value,v.push(S),y+=w.length}return v.forEach(function(e){m.frames.push(f.subarray(y,y+e)),y+=e}),m},f=function(e){for(var t=0,n={};t<e.length;){var i=127&e[t],r=e[t+1],a=void 0;a=1===r?e[t+2]:e.subarray(t+2,t+2+r),1===i?n.profile=a:2===i?n.level=a:3===i?n.bitDepth=a:4===i?n.chromaSubsampling=a:n[i]=a,t+=2+r}return n},p=function(e){e=(0,i.toUint8)(e);var t=[],n=d(e,[a.Segment,a.Tracks,a.Track]);return(n.length||(n=d(e,[a.Tracks,a.Track])),n.length||(n=d(e,[a.Track])),n.length)?(n.forEach(function(e){var n=d(e,a.TrackType)[0];if(n&&n.length){if(1===n[0])n="video";else if(2===n[0])n="audio";else{if(17!==n[0])return;n="subtitle"}var s={rawCodec:(0,i.bytesToString)(d(e,[a.CodecID])[0]),type:n,codecPrivate:d(e,[a.CodecPrivate])[0],number:(0,i.bytesToNumber)(d(e,[a.TrackNumber])[0]),defaultDuration:(0,i.bytesToNumber)(d(e,[a.DefaultDuration])[0]),default:d(e,[a.FlagDefault])[0],rawData:e},o="";if(/V_MPEG4\/ISO\/AVC/.test(s.rawCodec))o="avc1."+(0,r.getAvcCodec)(s.codecPrivate);else if(/V_MPEGH\/ISO\/HEVC/.test(s.rawCodec))o="hev1."+(0,r.getHvcCodec)(s.codecPrivate);else if(/V_MPEG4\/ISO\/ASP/.test(s.rawCodec))o=s.codecPrivate?"mp4v.20."+s.codecPrivate[4].toString():"mp4v.20.9";else if(/^V_THEORA/.test(s.rawCodec))o="theora";else if(/^V_VP8/.test(s.rawCodec))o="vp8";else if(/^V_VP9/.test(s.rawCodec))if(s.codecPrivate){var u=f(s.codecPrivate),l=u.profile,c=u.level,h=u.bitDepth,p=u.chromaSubsampling;o="vp09."+(0,i.padStart)(l,2,"0")+"."+(0,i.padStart)(c,2,"0")+"."+(0,i.padStart)(h,2,"0")+"."+(0,i.padStart)(p,2,"0");var m=d(e,[224,[85,176],[85,177]])[0]||[],g=d(e,[224,[85,176],[85,185]])[0]||[],v=d(e,[224,[85,176],[85,186]])[0]||[],y=d(e,[224,[85,176],[85,187]])[0]||[];(m.length||g.length||v.length||y.length)&&(o+="."+(0,i.padStart)(y[0],2,"0")+"."+(0,i.padStart)(v[0],2,"0")+"."+(0,i.padStart)(m[0],2,"0")+"."+(0,i.padStart)(g[0],2,"0"))}else o="vp9";else/^V_AV1/.test(s.rawCodec)?o="av01."+(0,r.getAv1Codec)(s.codecPrivate):/A_ALAC/.test(s.rawCodec)?o="alac":/A_MPEG\/L2/.test(s.rawCodec)?o="mp2":/A_MPEG\/L3/.test(s.rawCodec)?o="mp3":/^A_AAC/.test(s.rawCodec)?o=s.codecPrivate?"mp4a.40."+(s.codecPrivate[0]>>>3).toString():"mp4a.40.2":/^A_AC3/.test(s.rawCodec)?o="ac-3":/^A_PCM/.test(s.rawCodec)?o="pcm":/^A_MS\/ACM/.test(s.rawCodec)?o="speex":/^A_EAC3/.test(s.rawCodec)?o="ec-3":/^A_VORBIS/.test(s.rawCodec)?o="vorbis":/^A_FLAC/.test(s.rawCodec)?o="flac":/^A_OPUS/.test(s.rawCodec)&&(o="opus");s.codec=o,t.push(s)}}),t.sort(function(e,t){return e.number-t.number})):t},m=function(e,t){var n=[],r=d(e,[a.Segment])[0],s=d(r,[a.SegmentInfo,a.TimestampScale])[0];s=s&&s.length?(0,i.bytesToNumber)(s):1e6;var o=d(r,[a.Cluster]);return t||(t=p(r)),o.forEach(function(e,t){var r=d(e,[a.SimpleBlock]).map(function(e){return{type:"simple",data:e}}),o=d(e,[a.BlockGroup]).map(function(e){return{type:"group",data:e}}),u=d(e,[a.Timestamp])[0]||0;u&&u.length&&(u=(0,i.bytesToNumber)(u)),r.concat(o).sort(function(e,t){return e.data.byteOffset-t.data.byteOffset}).forEach(function(e,t){var i=h(e.data,e.type,s,u);n.push(i)})}),{tracks:t,blocks:n}}},
vendor: 528 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/id3-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{getId3Offset:function(){return s},getId3Size:function(){return a}});var i=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),r=(0,i.toUint8)([73,68,51]),a=function(e,t){void 0===t&&(t=0);var n=(e=(0,i.toUint8)(e))[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?r+20:r+10},s=function e(t,n){return(void 0===n&&(n=0),(t=(0,i.toUint8)(t)).length-n<10||!(0,i.bytesMatch)(t,r,{offset:n}))?n:(n+=a(t,n),e(t,n))}},
vendor: 283 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/media-groups.js":function(e,t,n){"use strict";n.r(t),n.d(t,{forEachMediaGroup:function(){return i}});var i=function(e,t,n){t.forEach(function(t){for(var i in e.mediaGroups[t])for(var r in e.mediaGroups[t][i])n(e.mediaGroups[t][i][r],t,i,r)})}},
vendor: 349 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/media-types.js":function(e,t,n){"use strict";n.r(t),n.d(t,{simpleTypeFromSourceType:function(){return a}});var i=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return i.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},
vendor: 5,999 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/mp4-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{addSampleDescription:function(){return f},buildFrameTable:function(){return h},findBox:function(){return l},findNamedBox:function(){return c},parseDescriptors:function(){return u},parseMediaInfo:function(){return m},parseTracks:function(){return p}});var i,r=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),a=n("../node_modules/@videojs/vhs-utils/es/codec-helpers.js"),s=n("../node_modules/@videojs/vhs-utils/es/opus-helpers.js"),o=function(e){return"string"==typeof e?(0,r.stringToBytes)(e):e},u=function(e){e=(0,r.toUint8)(e);for(var t=[],n=0;e.length>n;){var a=e[n],s=0,o=0,u=e[++o];for(o++;128&u;)s=(127&u)<<7,u=e[o],o++;s+=127&u;for(var l=0;l<i.length;l++){var c=i[l],d=c.id,h=c.parser;if(a===d){t.push(h(e.subarray(o,o+s)));break}}n+=s+o}return t};i=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=(0,r.bytesToString)(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=u(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:u(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var l=function e(t,n,i){void 0===i&&(i=!1),n=Array.isArray(a=n)?a.map(function(e){return o(e)}):[o(a)],t=(0,r.toUint8)(t);var a,s=[];if(!n.length)return s;for(var u=0;u<t.length;){var l=(t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3])>>>0,c=t.subarray(u+4,u+8);if(0===l)break;var d=u+l;if(d>t.length){if(i)break;d=t.length}var h=t.subarray(u+8,d);(0,r.bytesMatch)(c,n[0])&&(1===n.length?s.push(h):s.push.apply(s,e(h,n.slice(1),i))),u=d}return s},c=function(e,t){if(!(t=o(t)).length)return e.subarray(e.length);for(var n=0;n<e.length;){if((0,r.bytesMatch)(e.subarray(n,n+t.length),t)){var i=(e[n-4]<<24|e[n-3]<<16|e[n-2]<<8|e[n-1])>>>0,a=i>1?n+i:e.byteLength;return e.subarray(n+4,a)}n++}return e.subarray(e.length)},d=function(e,t,n){void 0===t&&(t=4),void 0===n&&(n=function(e){return(0,r.bytesToNumber)(e)});var i=[];if(!e||!e.length)return i;for(var a=(0,r.bytesToNumber)(e.subarray(4,8)),s=8;a;s+=t,a--)i.push(n(e.subarray(s,s+t)));return i},h=function(e,t){for(var n=d(l(e,["stss"])[0]),i=d(l(e,["stco"])[0]),a=d(l(e,["stts"])[0],8,function(e){return{sampleCount:(0,r.bytesToNumber)(e.subarray(0,4)),sampleDelta:(0,r.bytesToNumber)(e.subarray(4,8))}}),s=d(l(e,["stsc"])[0],12,function(e){return{firstChunk:(0,r.bytesToNumber)(e.subarray(0,4)),samplesPerChunk:(0,r.bytesToNumber)(e.subarray(4,8)),sampleDescriptionIndex:(0,r.bytesToNumber)(e.subarray(8,12))}}),o=l(e,["stsz"])[0],u=d(o&&o.length&&o.subarray(4)||null),c=[],h=0;h<i.length;h++){for(var f=void 0,p=0;p<s.length;p++){var m=s[p];if(h+1>=m.firstChunk&&(p+1>=s.length||h+1<s[p+1].firstChunk)){f=m.samplesPerChunk;break}}for(var g=i[h],v=0;v<f;v++){var y=u[c.length],_=!n.length;n.length&&-1!==n.indexOf(c.length+1)&&(_=!0);for(var b={keyframe:_,start:g,end:g+y},T=0;T<a.length;T++){var k=a[T],S=k.sampleCount,E=k.sampleDelta;if(c.length<=S){b.timestamp=(c.length?c[c.length-1].timestamp:0)+E/t*1e3,b.duration=E;break}}c.push(b),g+=y}}return c},f=function(e,t){var n=(0,r.bytesToString)(t.subarray(0,4));if("video"===e.type?(e.info=e.info||{},e.info.width=t[28]<<8|t[29],e.info.height=t[30]<<8|t[31]):"audio"===e.type&&(e.info=e.info||{},e.info.channels=t[20]<<8|t[21],e.info.bitDepth=t[22]<<8|t[23],e.info.sampleRate=t[28]<<8|t[29]),"avc1"===n){var i=c(t,"avcC");n+="."+(0,a.getAvcCodec)(i),e.info.avcC=i}else if("hvc1"===n||"hev1"===n)n+="."+(0,a.getHvcCodec)(c(t,"hvcC"));else if("mp4a"===n||"mp4v"===n){var o=u(c(t,"esds").subarray(4))[0],l=o&&o.descriptors.filter(function(e){return 4===e.tag})[0];l?(n+="."+(0,r.toHexString)(l.oti),64===l.oti?n+="."+(l.descriptors[0].bytes[0]>>3).toString():32===l.oti?n+="."+l.descriptors[0].bytes[4].toString():221===l.oti&&(n="vorbis")):"audio"===e.type?n+=".40.2":n+=".20.9"}else if("av01"===n)n+="."+(0,a.getAv1Codec)(c(t,"av1C"));else if("vp09"===n){var d=c(t,"vpcC"),h=d[0],f=d[1],p=d[2]>>4,m=(15&d[2])>>1,g=(15&d[2])>>3,v=d[3],y=d[4],_=d[5];n+="."+(0,r.padStart)(h,2,"0"),n+="."+(0,r.padStart)(f,2,"0"),n+="."+(0,r.padStart)(p,2,"0"),n+="."+(0,r.padStart)(m,2,"0"),n+="."+(0,r.padStart)(v,2,"0"),n+="."+(0,r.padStart)(y,2,"0"),n+="."+(0,r.padStart)(_,2,"0"),n+="."+(0,r.padStart)(g,2,"0")}else if("theo"===n)n="theora";else if("spex"===n)n="speex";else if(".mp3"===n)n="mp4a.40.34";else if("msVo"===n)n="vorbis";else if("Opus"===n){n="opus";var b=c(t,"dOps");e.info.opus=(0,s.parseOpusHead)(b),e.info.codecDelay=65e5}else n=n.toLowerCase();e.codec=n},p=function(e,t){void 0===t&&(t=!0);var n=l(e=(0,r.toUint8)(e),["moov","trak"],!0),i=[];return n.forEach(function(e){var n={bytes:e},a=l(e,["mdia"])[0],s=l(a,["hdlr"])[0],o=(0,r.bytesToString)(s.subarray(8,12));"soun"===o?n.type="audio":"vide"===o?n.type="video":n.type=o;var u=l(e,["tkhd"])[0];if(u){var c=new DataView(u.buffer,u.byteOffset,u.byteLength);n.number=0===c.getUint8(0)?c.getUint32(12):c.getUint32(20)}var d=l(a,["mdhd"])[0];if(d){var p=0===d[0]?12:20;n.timescale=(d[p]<<24|d[p+1]<<16|d[p+2]<<8|d[p+3])>>>0}for(var m=l(a,["minf","stbl"])[0],g=l(m,["stsd"])[0],v=(0,r.bytesToNumber)(g.subarray(4,8)),y=8;v--;){var _=(0,r.bytesToNumber)(g.subarray(y,y+4));f(n,g.subarray(y+4,y+4+_)),y+=4+_}t&&(n.frameTable=h(m,n.timescale)),i.push(n)}),i},m=function(e){var t=l(e,["moov","mvhd"],!0)[0];if(t&&t.length){var n={};return 1===t[0]?(n.timestampScale=(0,r.bytesToNumber)(t.subarray(20,24)),n.duration=(0,r.bytesToNumber)(t.subarray(24,32))):(n.timestampScale=(0,r.bytesToNumber)(t.subarray(12,16)),n.duration=(0,r.bytesToNumber)(t.subarray(16,20))),n.bytes=t,n}}},
vendor: 1,230 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/nal-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{EMULATION_PREVENTION:function(){return s},NAL_TYPE_ONE:function(){return r},NAL_TYPE_TWO:function(){return a},discardEmulationPreventionBytes:function(){return o},findH264Nal:function(){return l},findH265Nal:function(){return c},findNal:function(){return u}});var i=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),r=(0,i.toUint8)([0,0,0,1]),a=(0,i.toUint8)([0,0,1]),s=(0,i.toUint8)([0,0,3]),o=function(e){for(var t=[],n=1;n<e.length-2;)(0,i.bytesMatch)(e.subarray(n,n+3),s)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var r=e.length-t.length,a=new Uint8Array(r),o=0;for(n=0;n<r;o++,n++)o===t[0]&&(o++,t.shift()),a[n]=e[o];return a},u=function(e,t,n,s){void 0===s&&(s=1/0),e=(0,i.toUint8)(e),n=[].concat(n);for(var u,l=0,c=0;l<e.length&&(c<s||u);){var d=void 0;if((0,i.bytesMatch)(e.subarray(l),r)?d=4:(0,i.bytesMatch)(e.subarray(l),a)&&(d=3),!d){l++;continue}if(c++,u)return o(e.subarray(u,l));var h=void 0;"h264"===t?h=31&e[l+d]:"h265"===t&&(h=e[l+d]>>1&63),-1!==n.indexOf(h)&&(u=l+d),l+=d+("h264"===t?1:2)}return e.subarray(0,0)},l=function(e,t,n){return u(e,"h264",t,n)},c=function(e,t,n){return u(e,"h265",t,n)}},
vendor: 1,144 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/opus-helpers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{OPUS_HEAD:function(){return i},parseOpusHead:function(){return r},setOpusHead:function(){return a}});var i=new Uint8Array([79,112,117,115,72,101,97,100]),r=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint8(0),i=0!==n,r={version:n,channels:t.getUint8(1),preSkip:t.getUint16(2,i),sampleRate:t.getUint32(4,i),outputGain:t.getUint16(8,i),channelMappingFamily:t.getUint8(10)};if(r.channelMappingFamily>0&&e.length>10){r.streamCount=t.getUint8(11),r.twoChannelStreamCount=t.getUint8(12),r.channelMapping=[];for(var a=0;a<r.channels;a++)r.channelMapping.push(t.getUint8(13+a))}return r},a=function(e){var t=new DataView(new ArrayBuffer(e.channelMappingFamily<=0?11:12+e.channels)),n=0!==e.version;return t.setUint8(0,e.version),t.setUint8(1,e.channels),t.setUint16(2,e.preSkip,n),t.setUint32(4,e.sampleRate,n),t.setUint16(8,e.outputGain,n),t.setUint8(10,e.channelMappingFamily),e.channelMappingFamily>0&&(t.setUint8(11,e.streamCount),e.channelMapping.foreach(function(e,n){t.setUint8(12+n,e)})),new Uint8Array(t.buffer)}},
vendor: 709 bytes, line 1
1"../node_modules/@videojs/vhs-utils/es/resolve-url.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/url-toolkit/src/url-toolkit.js"),r=n.n(i),a=n("../node_modules/global/window.js"),s=n.n(a),o="http://example.com",u=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=s().location&&s().location.href||"");var n="function"==typeof s().URL,i=/^\/\//.test(e),a=!s().location&&!/\/\//i.test(e);if(n?e=new(s()).URL(e,s().location||o):/\/\//i.test(e)||(e=r().buildAbsoluteURL(s().location&&s().location.href||"",e)),n){var u=new URL(t,e);return a?u.href.slice(o.length):i?u.href.slice(u.protocol.length):u.href}return r().buildAbsoluteURL(e,t)}},
vendor: 617 bytes, line 1
1"../node_modules/@videojs/xhr/lib/http-handler.js":function(e,t,n){"use strict";var i=n("../node_modules/global/window.js");e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,a){if(n)return void e(n);if(r.statusCode>=400&&r.statusCode<=599){var s=a;if(t)if(i.TextDecoder){var o,u=(void 0===(o=r.headers&&r.headers["content-type"])&&(o=""),o.toLowerCase().split(";").reduce(function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e},"utf-8"));try{s=new TextDecoder(u).decode(a)}catch(e){}}else s=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:s});return}e(null,a)}}},
vendor: 3,210 bytes, line 1
1"../node_modules/@videojs/xhr/lib/index.js":function(e,t,n){"use strict";var i=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},r=function(e,t,n){var i=e;return c(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=l({},t,{uri:e}),i.callback=n,i},a=function(e,t,n){return s(t=r(e,t,n))},s=function(e){if(void 0===e.callback)throw Error("callback argument missing");var t,n,r,s=!1,u=function(t,n,i){s||(s=!0,e.callback(t,n,i))};function l(e){return clearTimeout(r),p._(e,Error)||(e=Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,u(e,b)}function c(){if(!n){clearTimeout(r);var t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status,i=b,a=null;return 0!==t?(i={body:function(){var e=void 0;if(e=h.response?h.response:h.responseText||o(h),_)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:m,headers:{},url:f,rawRequest:h},h.getAllResponseHeaders&&(i.headers=d(h.getAllResponseHeaders()))):a=Error("Internal XMLHttpRequest Error"),u(a,i,i.body)}}var h=e.xhr||null;h||(h=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var f=h.url=e.uri||e.url,m=h.method=e.method||"GET",g=e.body||e.data,v=h.headers=e.headers||{},y=!!e.sync,_=!1,b={body:void 0,headers:{},statusCode:0,method:m,url:f,rawRequest:h};if("json"in e&&!1!==e.json&&(_=!0,v.accept||v.Accept||(v.Accept="application/json"),"GET"!==m&&"HEAD"!==m&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),g=JSON.stringify(!0===e.json?g:e.json))),h.onreadystatechange=function(){4===h.readyState&&setTimeout(c,0)},h.onload=c,h.onerror=l,h.onprogress=function(){},h.onabort=function(){n=!0},h.ontimeout=l,h.open(m,f,!y,e.username,e.password),y||(h.withCredentials=!!e.withCredentials),!y&&e.timeout>0&&(r=setTimeout(function(){if(!n){n=!0,h.abort("timeout");var e=Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",l(e)}},e.timeout)),h.setRequestHeader)for(t in v)v.hasOwnProperty(t)&&h.setRequestHeader(t,v[t]);else if(e.headers&&!i(e.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(g||null),h},o=function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null},u=n("../node_modules/global/window.js"),l=n("../node_modules/@babel/runtime/helpers/extends.js"),c=n("../node_modules/is-function/index.js");a.httpHandler=n("../node_modules/@videojs/xhr/lib/http-handler.js");var d=function(e){var t={};return e&&e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t};e.exports=a,e.exports.default=a,a.XMLHttpRequest=u.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:u.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,n,i){return(n=r(t,n,i)).method=e.toUpperCase(),s(n)}})},
vendor: 1,034 bytes, line 1
1"../node_modules/@xmldom/xmldom/lib/conventions.js":function(e,t){"use strict";var n=function(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e},i=n({HTML:"text/html",isHTML:function(e){return e===i.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),r=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===r.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||(void 0===e?"undefined":T._(e))!=="object")throw TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},t.freeze=n,t.MIME_TYPE=i,t.NAMESPACE=r},
vendor: 3,653 bytes, line 1
1"../node_modules/@xmldom/xmldom/lib/dom-parser.js":function(e,t,n){var i=function(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")},r=function(e){this.options=e||{locator:{}}},a=function(e,t,n){if(!e){if(p._(t,s))return t;e=t}var i={},r=p._(e,Function);function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"] "+e+u(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i},s=function(){this.cdata=!1},o=function(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber},u=function(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"},l=function(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e},c=function(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)},d=n("../node_modules/@xmldom/xmldom/lib/conventions.js"),h=n("../node_modules/@xmldom/xmldom/lib/dom.js"),f=n("../node_modules/@xmldom/xmldom/lib/entities.js"),m=n("../node_modules/@xmldom/xmldom/lib/sax.js"),g=h.DOMImplementation,v=d.NAMESPACE,y=m.ParseError,_=m.XMLReader;r.prototype.parseFromString=function(e,t){var n=this.options,r=new _,o=n.domBuilder||new s,u=n.errorHandler,l=n.locator,c=n.xmlns||{},d=/\/x?html?$/.test(t),h=d?f.HTML_ENTITIES:f.XML_ENTITIES;l&&o.setDocumentLocator(l),r.errorHandler=a(u,o,l),r.domBuilder=n.domBuilder||o,d&&(c[""]=v.HTML),c.xml=c.xml||v.XML;var p=n.normalizeLineEndings||i;return e&&"string"==typeof e?r.parse(p(e),c,h):r.errorHandler.error("invalid doc source"),o.doc},s.prototype={startDocument:function(){this.doc=new g().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),s=i.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u<s;u++){var e=i.getURI(u),l=i.getValue(u),n=i.getQName(u),d=r.createAttributeNS(e,n);this.locator&&o(i.getLocator(u),d),d.value=d.nodeValue=l,a.setAttributeNode(d)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=l.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else var i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&o(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=l.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&o(this.locator,i),c(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&o(this.locator,r),c(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,u(this.locator))},error:function(e){console.error("[xmldom error] "+e,u(this.locator))},fatalError:function(e){throw new y(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){s.prototype[e]=function(){return null}}),t.__DOMHandler=s,t.normalizeLineEndings=i,t.DOMParser=r},
vendor: 18,773 bytes, line 1
1"../node_modules/@xmldom/xmldom/lib/dom.js":function(e,t,n){var i=function(e){return""!==e},r=function(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e},a=function(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(i):[]).reduce(r,{})):[]},s=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o=function(e,t){var n=e.prototype;if(!p._(n,t)){var i=function(){};i.prototype=t.prototype,s(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)},u=function(){},l=function(e,t){this._node=e,this._refresh=t,c(this)},c=function(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if($(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];s(n,e),e._inc=t}},d=function(){},h=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return n},f=function(e,t,n,i){if(i?t[h(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&k(r,e,i),b(r,e,n))}},m=function(e,t,n){var i=h(t,n);if(i>=0){for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(k(a,e,n),n.ownerElement=null)}}else throw new ey(eg,Error(e.tagName+"@"+n))},g=function(){},v=function(){},y=function(e){return"<"==e&&"<"||">"==e&&">"||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"},_=function(){this.ownerDocument=this},b=function(e,t,n){e&&e._inc++,n.namespaceURI===Z.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)},k=function(e,t,n,i){e&&e._inc++,n.namespaceURI===Z.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]},S=function(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a,delete i[i.length]}}},E=function(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,S(e.ownerDocument,e),t},w=function(e){return e&&e.nodeType===v.DOCUMENT_TYPE_NODE},C=function(e){return e&&e.nodeType===v.ELEMENT_NODE},x=function(e){return e&&e.nodeType===v.TEXT_NODE},A=function(e,t){var n=e.childNodes||[];if(J(n,C)||w(t))return!1;var i=J(n,w);return!(t&&i&&n.indexOf(i)>n.indexOf(t))},I=function(e,t){var n=e.childNodes||[];if(J(n,function(e){return C(e)&&e!==t}))return!1;var i=J(n,w);return!(t&&i&&n.indexOf(i)>n.indexOf(t))},P=function(e,t,n){if(!(e&&(e.nodeType===v.DOCUMENT_NODE||e.nodeType===v.DOCUMENT_FRAGMENT_NODE||e.nodeType===v.ELEMENT_NODE)))throw new ey(em,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new ey(eg,"child not in parent");if(!(t&&(C(t)||x(t)||w(t)||t.nodeType===v.DOCUMENT_FRAGMENT_NODE||t.nodeType===v.COMMENT_NODE||t.nodeType===v.PROCESSING_INSTRUCTION_NODE))||w(t)&&e.nodeType!==v.DOCUMENT_NODE)throw new ey(em,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)},L=function(e,t,n){var i=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===v.DOCUMENT_FRAGMENT_NODE){var a=r.filter(C);if(a.length>1||J(r,x))throw new ey(em,"More than one element or text in fragment");if(1===a.length&&!A(e,n))throw new ey(em,"Element in fragment can not be inserted before doctype")}if(C(t)&&!A(e,n))throw new ey(em,"Only one element can be added and only after doctype");if(w(t)){if(J(i,w))throw new ey(em,"Only one doctype is allowed");var s=J(i,C);if(n&&i.indexOf(s)<i.indexOf(n))throw new ey(em,"Doctype can only be inserted before an element");if(!n&&s)throw new ey(em,"Doctype can not be appended since element is present")}},j=function(e,t,n){var i=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===v.DOCUMENT_FRAGMENT_NODE){var a=r.filter(C);if(a.length>1||J(r,x))throw new ey(em,"More than one element or text in fragment");if(1===a.length&&!I(e,n))throw new ey(em,"Element in fragment can not be inserted before doctype")}if(C(t)&&!I(e,n))throw new ey(em,"Only one element can be added and only after doctype");if(w(t)){if(J(i,function(e){return w(e)&&e!==n}))throw new ey(em,"Only one doctype is allowed");var s=J(i,C);if(n&&i.indexOf(s)<i.indexOf(n))throw new ey(em,"Doctype can only be inserted before an element")}},O=function(e,t,n,i){P(e,t,n),e.nodeType===v.DOCUMENT_NODE&&(i||L)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===ed){var a=t.firstChild;if(null==a)return t;var s=t.lastChild}else a=s=t;var o=n?n.previousSibling:e.lastChild;a.previousSibling=o,s.nextSibling=n,o?o.nextSibling=a:e.firstChild=a,null==n?e.lastChild=s:n.previousSibling=s;do a.parentNode=e;while(a!==s&&(a=a.nextSibling))return S(e.ownerDocument||e,e),t.nodeType==ed&&(t.firstChild=t.lastChild=null),t},D=function(){this._nsMap={}},R=function(){},N=function(){},M=function(){},U=function(){},B=function(){},F=function(){},q=function(){},V=function(){},H=function(){},z=function(){},G=function(){},W=function(){},Y=function(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r){var r=i.lookupPrefix(a);if(null==r)var s=[{namespace:a,prefix:null}]}return eb(this,n,e,t,s),n.join("")},X=function(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r||"xml"===i&&r===Z.XML||r===Z.XMLNS)return!1;for(var a=n.length;a--;){var s=n[a];if(s.prefix===i)return s.namespace!==r}return!0},K=function(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,y),'"')},$=function(e,t,n){e[t]=n},Q=n("../node_modules/@xmldom/xmldom/lib/conventions.js"),J=Q.find,Z=Q.NAMESPACE,ee={},et=ee.ELEMENT_NODE=1,en=ee.ATTRIBUTE_NODE=2,ei=ee.TEXT_NODE=3,er=ee.CDATA_SECTION_NODE=4,ea=ee.ENTITY_REFERENCE_NODE=5,es=ee.ENTITY_NODE=6,eo=ee.PROCESSING_INSTRUCTION_NODE=7,eu=ee.COMMENT_NODE=8,el=ee.DOCUMENT_NODE=9,ec=ee.DOCUMENT_TYPE_NODE=10,ed=ee.DOCUMENT_FRAGMENT_NODE=11,eh=ee.NOTATION_NODE=12,ef={},ep={};ep[1]="Index size error",ef.INDEX_SIZE_ERR=1,ep[2]="DOMString size error",ef.DOMSTRING_SIZE_ERR=2;var em=(ep[3]="Hierarchy request error",ef.HIERARCHY_REQUEST_ERR=3);ep[4]="Wrong document",ef.WRONG_DOCUMENT_ERR=4,ep[5]="Invalid character",ef.INVALID_CHARACTER_ERR=5,ep[6]="No data allowed",ef.NO_DATA_ALLOWED_ERR=6,ep[7]="No modification allowed",ef.NO_MODIFICATION_ALLOWED_ERR=7;var eg=(ep[8]="Not found",ef.NOT_FOUND_ERR=8);ep[9]="Not supported",ef.NOT_SUPPORTED_ERR=9;var ev=(ep[10]="Attribute in use",ef.INUSE_ATTRIBUTE_ERR=10);function ey(e,t){if(p._(t,Error))var n=t;else n=this,Error.call(this,ep[e]),this.message=ep[e],Error.captureStackTrace&&Error.captureStackTrace(this,ey);return n.code=e,t&&(this.message=this.message+": "+t),n}function e_(e,t){if(t(e))return!0;if(e=e.firstChild)do if(e_(e,t))return!0;while(e=e.nextSibling)}function eb(e,t,n,i,r){if(r||(r=[]),i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case et:var a,s=e.attributes,o=s.length,u=e.firstChild,l=e.tagName;n=Z.isHTML(e.namespaceURI)||n;var c=l;if(!n&&!e.prefix&&e.namespaceURI){for(var d=0;d<s.length;d++)if("xmlns"===s.item(d).name){a=s.item(d).value;break}if(!a)for(var h=r.length-1;h>=0;h--){var f=r[h];if(""===f.prefix&&f.namespace===e.namespaceURI){a=f.namespace;break}}if(a!==e.namespaceURI)for(var h=r.length-1;h>=0;h--){var f=r[h];if(f.namespace===e.namespaceURI){f.prefix&&(c=f.prefix+":"+l);break}}}t.push("<",c);for(var p=0;p<o;p++){var m=s.item(p);"xmlns"==m.prefix?r.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&r.push({prefix:"",namespace:m.value})}for(var p=0;p<o;p++){var m=s.item(p);if(X(m,n,r)){var g=m.prefix||"",v=m.namespaceURI;K(t,g?"xmlns:"+g:"xmlns",v),r.push({prefix:g,namespace:v})}eb(m,t,n,i,r)}if(l===c&&X(e,n,r)){var g=e.prefix||"",v=e.namespaceURI;K(t,g?"xmlns:"+g:"xmlns",v),r.push({prefix:g,namespace:v})}if(u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),n&&/^script$/i.test(l))for(;u;)u.data?t.push(u.data):eb(u,t,n,i,r.slice()),u=u.nextSibling;else for(;u;)eb(u,t,n,i,r.slice()),u=u.nextSibling;t.push("</",c,">")}else t.push("/>");return;case el:case ed:for(var u=e.firstChild;u;)eb(u,t,n,i,r.slice()),u=u.nextSibling;return;case en:return K(t,e.name,e.value);case ei:return t.push(e.data.replace(/[<&>]/g,y));case er:return t.push("<![CDATA[",e.data,"]]>");case eu:return t.push("<!--",e.data,"-->");case ec:var _=e.publicId,b=e.systemId;if(t.push("<!DOCTYPE ",e.name),_)t.push(" PUBLIC ",_),b&&"."!=b&&t.push(" ",b),t.push(">");else if(b&&"."!=b)t.push(" SYSTEM ",b,">");else{var T=e.internalSubset;T&&t.push(" [",T,"]"),t.push(">")}return;case eo:return t.push("<?",e.target," ",e.data,"?>");case ea:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}ep[11]="Invalid state",ef.INVALID_STATE_ERR=11,ep[12]="Syntax error",ef.SYNTAX_ERR=12,ep[13]="Invalid modification",ef.INVALID_MODIFICATION_ERR=13,ep[14]="Invalid namespace",ef.NAMESPACE_ERR=14,ep[15]="Invalid access",ef.INVALID_ACCESS_ERR=15,ey.prototype=Error.prototype,s(ef,ey),u.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)eb(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},l.prototype.item=function(e){return c(this),this[e]||null},o(l,u),d.prototype={length:0,item:u.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ey(ev);var n=this.getNamedItem(e.nodeName);return f(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new ey(ev);return t=this.getNamedItemNS(e.namespaceURI,e.localName),f(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return m(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return m(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},g.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new _;if(i.implementation=this,i.childNodes=new u,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new F;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},v.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return O(this,e,t)},replaceChild:function(e,t){O(this,e,t,j),t&&this.removeChild(t)},removeChild:function(e){return E(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,i){var r=new n.constructor;for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a)){var s=n[a];(void 0===s?"undefined":T._(s))!="object"&&s!=r[a]&&(r[a]=s)}switch(n.childNodes&&(r.childNodes=new u),r.ownerDocument=t,r.nodeType){case et:var o=n.attributes,l=r.attributes=new d,c=o.length;l._ownerElement=r;for(var h=0;h<c;h++)r.setAttributeNode(e(t,o.item(h),!0));break;case en:i=!0}if(i)for(var f=n.firstChild;f;)r.appendChild(e(t,f,i)),f=f.nextSibling;return r}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==ei&&e.nodeType==ei?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i}t=t.nodeType==en?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==en?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},s(ee,v),s(ee,v.prototype),_.prototype={nodeName:"#document",nodeType:el,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==ed){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return O(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===et&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),E(this,e)},replaceChild:function(e,t){O(this,e,t,j),e.ownerDocument=this,t&&this.removeChild(t),C(e)&&(this.documentElement=e)},importNode:function(e,t){return function e(t,n,i){var r;switch(n.nodeType){case et:(r=n.cloneNode(!1)).ownerDocument=t;case ed:break;case en:i=!0}if(r||(r=n.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,i)for(var a=n.firstChild;a;)r.appendChild(e(t,a,i)),a=a.nextSibling;return r}(this,e,t)},getElementById:function(e){var t=null;return e_(this.documentElement,function(n){if(n.nodeType==et&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=a(e);return new l(this,function(n){var i=[];return t.length>0&&e_(n.documentElement,function(r){if(r!==n&&r.nodeType===et){var s=r.getAttribute("class");if(s){var o=e===s;if(!o){var u=a(s);o=t.every(function(e){return u&&-1!==u.indexOf(e)})}o&&i.push(r)}}}),i})},createElement:function(e){var t=new D;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new u,(t.attributes=new d)._ownerElement=t,t},createDocumentFragment:function(){var e=new z;return e.ownerDocument=this,e.childNodes=new u,e},createTextNode:function(e){var t=new M;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new U;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new B;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new G;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new R;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new H;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new D,i=t.split(":"),r=n.attributes=new d;return n.childNodes=new u,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new R,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},o(_,v),D.prototype={nodeType:et,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===ed?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,S(this.ownerDocument,this,e),e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new l(this,function(t){var n=[];return e_(t,function(i){i!==t&&i.nodeType==et&&("*"===e||i.tagName==e)&&n.push(i)}),n})},getElementsByTagNameNS:function(e,t){return new l(this,function(n){var i=[];return e_(n,function(r){r!==n&&r.nodeType===et&&("*"===e||r.namespaceURI===e)&&("*"===t||r.localName==t)&&i.push(r)}),i})}},_.prototype.getElementsByTagName=D.prototype.getElementsByTagName,_.prototype.getElementsByTagNameNS=D.prototype.getElementsByTagNameNS,o(D,v),R.prototype.nodeType=en,o(R,v),N.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(ep[em])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},o(N,v),M.prototype={nodeName:"#text",nodeType:ei,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},o(M,N),U.prototype={nodeName:"#comment",nodeType:eu},o(U,N),B.prototype={nodeName:"#cdata-section",nodeType:er},o(B,N),F.prototype.nodeType=ec,o(F,v),q.prototype.nodeType=eh,o(q,v),V.prototype.nodeType=es,o(V,v),H.prototype.nodeType=ea,o(H,v),z.prototype.nodeName="#document-fragment",z.prototype.nodeType=ed,o(z,v),G.prototype.nodeType=eo,o(G,v),W.prototype.serializeToString=function(e,t,n){return Y.call(e,t,n)},v.prototype.toString=Y;try{Object.defineProperty&&(Object.defineProperty(l.prototype,"length",{get:function(){return c(this),this.$$length}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case et:case ed:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case et:case ed:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),$=function(e,t,n){e["$$"+t]=n})}catch(e){}t.DocumentType=F,t.DOMException=ey,t.DOMImplementation=g,t.Element=D,t.Node=v,t.NodeList=u,t.XMLSerializer=W},
vendor: 28,978 bytes, line 1
1"../node_modules/@xmldom/xmldom/lib/entities.js":function(e,t,n){"use strict";var i=n("../node_modules/@xmldom/xmldom/lib/conventions.js").freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:" ",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}),t.entityMap=t.HTML_ENTITIES},
vendor: 264 bytes, line 1
1"../node_modules/@xmldom/xmldom/lib/index.js":function(e,t,n){var i=n("../node_modules/@xmldom/xmldom/lib/dom.js");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("../node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},
vendor: 7,417 bytes, line 1
1"../node_modules/@xmldom/xmldom/lib/sax.js":function(e,t,n){var i=function(){},r=function(e,t,n,i,r){function c(e){var t,i=e.slice(1,-1);return Object.hasOwnProperty.call(n,i)?n[i]:"#"===i.charAt(0)?(t=parseInt(i.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>10),56320+(1023&t)):String.fromCharCode(t):(r.error("entity not found:"+e),e)}function m(t){if(t>E){var n=e.substring(E,t).replace(/&#?\w+;/g,c);T&&v(E),i.characters(n,0,t-E),E=t}}function v(t,n){for(;t>=_&&(n=b.exec(e));)_=(y=n.index)+n[0].length,T.lineNumber++;T.columnNumber=t-y+1}for(var y=0,_=0,b=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,k=[{currentNSMap:t}],S={},E=0;;){try{var w=e.indexOf("<",E);if(w<0){if(!e.substr(E).match(/^\s*$/)){var C=i.doc,x=C.createTextNode(e.substr(E));C.appendChild(x),i.currentElement=x}return}switch(w>E&&m(w),e.charAt(w+1)){case"/":var I=e.indexOf(">",w+3),P=e.substring(w+2,I).replace(/[ \t\n\r]+$/g,""),L=k.pop();I<0?(P=e.substring(w+2).replace(/[\s<].*/,""),r.error("end tag name: "+P+" is not complete:"+L.tagName),I=w+1+P.length):P.match(/\s</)&&(P=P.replace(/[\s<].*/,""),r.error("end tag name: "+P+" maybe not complete"),I=w+1+P.length);var j=L.localNSMap,O=L.tagName==P;if(O||L.tagName&&L.tagName.toLowerCase()==P.toLowerCase()){if(i.endElement(L.uri,L.localName,P),j)for(var D in j)Object.prototype.hasOwnProperty.call(j,D)&&i.endPrefixMapping(D);O||r.fatalError("end tag name: "+P+" is not match the current start tagName:"+L.tagName)}else k.push(L);I++;break;case"?":T&&v(w),I=h(e,w,i);break;case"!":T&&v(w),I=d(e,w,i,r);break;default:T&&v(w);var R=new f,N=k[k.length-1].currentNSMap,I=s(e,w,R,N,c,r),M=R.length;if(!R.closed&&l(e,I,R.tagName,S)&&(R.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),T&&M){for(var U=a(T,{}),B=0;B<M;B++){var F=R[B];v(F.offset),F.locator=a(T,{})}i.locator=U,o(R,i,N)&&k.push(R),i.locator=T}else o(R,i,N)&&k.push(R);g.isHTML(R.uri)&&!R.closed?I=u(e,I,R.tagName,c,i):I++}}catch(e){if(p._(e,A))throw e;r.error("element parse error: "+e),I=-1}I>E?E=I:m(Math.max(w,E)+1)}},a=function(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t},s=function(e,t,n,i,r,a){function s(e,t,i){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),i)}for(var o,u,l=++t,c=b;;){var d=e.charAt(l);switch(d){case"=":if(c===T)o=e.slice(t,l),c=S;else if(c===k)c=S;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(c===S||c===T)if(c===T&&(a.warning('attribute value must after "="'),o=e.slice(t,l)),t=l+1,(l=e.indexOf(d,t))>0)s(o,u=e.slice(t,l),t-1),c=w;else throw Error("attribute value no end '"+d+"' match");else if(c==E)s(o,u=e.slice(t,l),t),a.warning('attribute "'+o+'" missed start quot('+d+")!!"),t=l+1,c=w;else throw Error('attribute value must after "="');break;case"/":switch(c){case b:n.setTagName(e.slice(t,l));case w:case C:case x:c=x,n.closed=!0;case E:case T:break;case k:n.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),c==b&&n.setTagName(e.slice(t,l)),l;case">":switch(c){case b:n.setTagName(e.slice(t,l));case w:case C:case x:break;case E:case T:"/"===(u=e.slice(t,l)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case k:c===k&&(u=o),c==E?(a.warning('attribute "'+u+'" missed quot(")!'),s(o,u,t)):(g.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),s(u,u,t));break;case S:throw Error("attribute value missed!!")}return l;case"Â":d=" ";default:if(d<=" ")switch(c){case b:n.setTagName(e.slice(t,l)),c=C;break;case T:o=e.slice(t,l),c=k;break;case E:var u=e.slice(t,l);a.warning('attribute "'+u+'" missed quot(")!!'),s(o,u,t);case w:c=C}else switch(c){case k:n.tagName,g.isHTML(i[""])&&o.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),s(o,o,t),t=l,c=T;break;case w:a.warning('attribute space is required"'+o+'"!!');case C:c=T,t=l;break;case S:c=E,t=l;break;case x:throw Error("elements closed character '/' and '>' must be connected to")}}l++}},o=function(e,t,n){for(var i=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,u=s.value,l=o.indexOf(":");if(l>0)var d=s.prefix=o.slice(0,l),h=o.slice(l+1),f="xmlns"===d&&h;else h=o,d=null,f="xmlns"===o&&"";s.localName=h,!1!==f&&(null==r&&(r={},c(n,n={})),n[f]=r[f]=u,s.uri=g.XMLNS,t.startPrefixMapping(f,u))}for(var a=e.length;a--;){var d=(s=e[a]).prefix;d&&("xml"===d&&(s.uri=g.XML),"xmlns"!==d&&(s.uri=n[d||""]))}var l=i.indexOf(":");l>0?(d=e.prefix=i.slice(0,l),h=e.localName=i.slice(l+1)):(d=null,h=e.localName=i);var p=e.uri=n[d||""];if(t.startElement(p,h,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=r,!0;if(t.endElement(p,h,i),r)for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&t.endPrefixMapping(d)},u=function(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(n)||(s=s.replace(/&#?\w+;/g,i)),r.characters(s,0,s.length),a}return t+1},l=function(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t},c=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},d=function(e,t,n,i){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var r=e.indexOf("-->",t+4);if(r>t)return n.comment(e,t+4,r-t-4),r+3;i.error("Unclosed comment")}}else{if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=m(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var c=a[s-1];return n.startDTD(o,u,l),n.endDTD(),c.index+c[0].length}}return -1},h=function(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r)return r[0].length,n.processingInstruction(r[1],r[2]),i+2}return -1},f=function(){this.attributeNames={}},m=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i},g=n("../node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,v=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=RegExp("[\\-\\.0-9"+v.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),_=RegExp("^"+v.source+y.source+"*(?::"+v.source+y.source+"*)?$"),b=0,T=1,k=2,S=3,E=4,w=5,C=6,x=7;function A(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,A)}A.prototype=Error(),A.prototype.name=A.name,i.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),c(t,t={}),r(e,t,n,i,this.errorHandler),i.endDocument()}},f.prototype={setTagName:function(e){if(!_.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!_.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=i,t.ParseError=A},
1"./components/component-utils.js":function(e){var t=function(e){e.style.display="none"},n=function(e){e.style.display=""};e.exports={hide:t,show:n,setText:function(e,i){if(!i||i.length<=0){e.innerText="",t(e);return}e.innerText=i,n(e)}}},
1"./components/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{JumpBackButton:function(){return r.default},JumpForwardButton:function(){return i.default},LogoButton:function(){return a.default},ProgressControlEventsBlocker:function(){return s.default},TitleBar:function(){return o.default}});var i=n("./components/jumpButtons/jump-10-plus.js"),r=n("./components/jumpButtons/jump-10-minus.js"),a=n("./components/logoButton/logo-button.js"),s=n("./components/progress-control-events-blocker/progress-control-events-blocker.js"),o=n("./components/title-bar/title-bar.js")},
1"./components/jumpButtons/jump-10-minus.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"handleClick",value:function(e){d._(h._(t.prototype),"handleClick",this).call(this,e),this.player().currentTime(this.player().currentTime()-10)}},{key:"createEl",value:function(){return r().dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-min vjs-icon-replay-10 vjs-button",ariaLabel:"Jump back 10 seconds"})}}]),t}(r().getComponent("ClickableComponent"));r().registerComponent("JumpBackButton",a);var u=a},
1"./components/jumpButtons/jump-10-plus.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"handleClick",value:function(e){d._(h._(t.prototype),"handleClick",this).call(this,e),this.player().currentTime(this.player().currentTime()+10)}},{key:"createEl",value:function(){return r().dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-plus vjs-icon-forward-10 vjs-button",ariaLabel:"Jump forward 10 seconds"})}}]),t}(r().getComponent("ClickableComponent"));r().registerComponent("JumpForwardButton",a);var u=a},
1"./components/logoButton/logo-button.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i);n("./components/logoButton/logo-button.scss");var a=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=this.options_.playerOptions,t=e.showLogo?"block":"none",n=e.logoImageUrl?"background-image: url(".concat(e.logoImageUrl,")"):"";return r().dom.createEl("a",{},{class:"vjs-control vjs-cloudinary-button vjs-button",href:e.logoOnclickUrl,target:"_blank",style:"display: ".concat(t,"; ").concat(n),"aria-label":"Logo link"})}}]),t}(r().getComponent("ClickableComponent"));r().registerComponent("logoButton",a);var u=a},
1"./components/progress-control-events-blocker/progress-control-events-blocker.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=function(e){function t(e){o._(this,t);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s._(this,t,[e,n])}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control-events-blocker"})}}]),t}(r().getComponent("Component"));r().registerComponent("progressControlEventsBlocker",a);var u=a},
1"./components/qualitySelector/qualitySelector.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}}),n("./plugins/videojs-http-source-selector/plugin.js");var i=n("./utils/find.js");n("./components/qualitySelector/quality-selector.scss");var r={init:function(e){if(window.dashjs&&e&&e.qualityLevels&&e.dash&&e.dash.mediaPlayer){var t=dashjs.MediaPlayer;e.dash.qualityLevels=e.qualityLevels(),e.dash.mediaPlayer.getAutoSwitchQualityFor=function(t){var n=e.dash.mediaPlayer.getSettings();return!n||n.streaming.abr.autoSwitchBitrate[t]},e.dash.mediaPlayer.setAutoSwitchQualityFor=function(t,n){var i=e.dash.mediaPlayer,r={streaming:{abr:{autoSwitchBitrate:{}}}};r.streaming.abr.autoSwitchBitrate[t]=n,i.updateSettings(r)},e.dash.mediaPlayer.on(t.events.PLAYBACK_METADATA_LOADED,function(){var t=e.dash.mediaPlayer.getBitrateInfoListFor("video"),n=e.dash.mediaPlayer.getBitrateInfoListFor("audio");if(t.length>0){var r=t[t.length-1].bitrate;e.dash.audioMapper=t.map(function(e){return Math.round(e.bitrate/r*(n.length-1))}),t.forEach(function(t){e.dash.qualityLevels.addQualityLevel({id:t.bitrate,width:t.width,height:t.height,bandwidth:t.bitrate,selected:!0,enabled:function(t){var n=this;if(void 0===t)return void 0===this.selected||this.selected;if(this.selected=t,!0===t){var r=(0,i.findIndex)(e.qualityLevels().levels_,function(e){return e.id===n.id});e.qualityLevels().selectedIndex_=r,e.qualityLevels().trigger({type:"change",selectedIndex:r})}}})})}}),e.qualityLevels().on("change",function(t){1===e.dash.qualityLevels.levels_.filter(function(e){return e.enabled}).length?(e.dash.mediaPlayer.setQualityFor("video",t.selectedIndex),e.dash.mediaPlayer.setQualityFor("audio",e.dash.audioMapper[t.selectedIndex])):e.dash.mediaPlayer.getAutoSwitchQualityFor("video")||(e.dash.mediaPlayer.setAutoSwitchQualityFor("video",!0),e.dash.mediaPlayer.setAutoSwitchQualityFor("audio",!0))})}},setVisibility:function(e){var t=e.controlBar.getChild("sourceMenuButton");if(t){var n=e.qualityLevels();if(n&&n.length>1){var i=n.levels_.filter(function(e){return e.enabled});if(1===i.length){var r=n.levels_.findIndex(function(e){return e.id===i[0].id});t.children()[1].children()[r].selected(!0)}else t.children()[1].children()[0].selected(!0),t.children()[1].children().forEac
1h(function(e,t){t>0&&e.selected(!1)});t.show()}else t.hide()}}}},
1"./components/recommendations-overlay/index.js":function(e,t,n){"use strict";var i=function(e){return a._(function(){return S._(this,function(t){switch(t.label){case 0:if(t.trys.push([0,3,,4]),e.getChild("recommendationsOverlay"))return[3,2];return[4,n.e("recommendations-overlay").then(n.bind(n,"./components/recommendations-overlay/recommendations-overlay.js"))];case 1:t.sent(),e.addChild("recommendationsOverlay"),t.label=2;case 2:return[2,e];case 3:return console.error("Failed to load plugin:",t.sent()),[3,4];case 4:return[2]}})})()};n.r(t),n.d(t,{default:function(){return i}})},
1"./components/title-bar/title-bar.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i);n("./assets/styles/components/title-bar.scss");var a=n("./components/component-utils.js"),u=n.n(a),c=r().dom||r(),p=function(e){function t(e){o._(this,t);var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(n=s._(this,t,[e,i])).on(e,"cldsourcechanged",function(e,t){var i=t.source;return n.setItem(i)}),n}return f._(t,e),l._(t,[{key:"setItem",value:function(e){if(!e){this.setTitle(""),this.setSubtitle("");return}var t=e.info();this.setTitle(t.title),this.setSubtitle(t.subtitle)}},{key:"setTitle",value:function(e){return u().setText(this.titleEl,e),this.refresh(),e}},{key:"setSubtitle",value:function(e){return u().setText(this.subtitleEl,e),this.refresh(),e}},{key:"refresh",value:function(){this.titleEl.innerText||this.subtitleEl.innerText?this.show():this.hide()}},{key:"createEl",value:function(){this.titleEl=c.createEl("div",{className:"vjs-title-bar-title"}),this.subtitleEl=c.createEl("div",{className:"vjs-title-bar-subtitle"});var e=d._(h._(t.prototype),"createEl",this).call(this,"div",{append:this.titleEl,className:"vjs-title-bar"});return e.appendChild(this.titleEl),e.appendChild(this.subtitleEl),e}}]),t}(r().getComponent("Component"));r().registerComponent("titleBar",p);var m=p},
1"./config/defaults.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("./plugins/context-menu/contextMenuContent.js"),s=n("./video-player.const.js"),o={logoOnclickUrl:"https://cloudinary.com/",showLogo:!0,showJumpControls:!1,playsinline:r().browser.IS_IOS,skin:"dark",controls:!1,chaptersButton:!1,pictureInPictureToggle:!1,seekThumbnails:!0,aiHighlightsGraph:!1,preload:s.PRELOAD.AUTO,textTrackSettings:!1,loop:!1,muted:!1,posterOptions:{},sourceTypes:["auto"],contextMenu:{content:a.default},floatingWhenNotVisible:s.FLOATING_TO.NONE,hideContextMenu:!1,analytics:!1,cloudinaryAnalytics:!0,allowUsageReport:!0,playedEventPercents:[25,50,75,100]}},
1"./extended-events.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _},normalizeEventsParam:function(){return g}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("../node_modules/events/events.js"),u=n.n(a),l=n("./utils/assign.js"),c=n("./utils/type-inference.js"),d=n("./utils/consts.js"),h={percentsplayed:{percents:[25,50,75,100]}},p={events:[d.PLAYER_EVENT.PERCENTS_PLAYED,d.PLAYER_EVENT.PAUSE_NO_SEEK,d.PLAYER_EVENT.SEEK,d.PLAYER_EVENT.MUTE,d.PLAYER_EVENT.UNMUTE,d.PLAYER_EVENT.QUALITY_CHANGED]},m=function(e){function t(e){o._(this,t);var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(n=s._(this,t)).player=e;var a=r().obj.merge(p,i),u={lastState:void 0},l=0,c=0,f=!1,m=[],_=[],b=null,T=!1,k=function(){m=[],_=[]};return n.events=g(a.events,h),u={lastState:void 0},l=c=0,f=!1,k(),n.player.on(d.PLAYER_EVENT.PLAY,(function(){T&&(n.player.trigger("replay"),T=!1)}).bind(n)),n.player.on(d.PLAYER_EVENT.ENDED,(function(){T=!0}).bind(n)),(n.events.percentsplayed||n.events.timeplayed||n.events.seek||n.events.totaltimeplayed)&&n.player.on(d.PLAYER_EVENT.TIME_UPDATE,(function(e){var t=n.player.currentTime(),i=n.player.duration(),r=function(t,i){i.originalType="timeupdate",n.emit(t,e,i)};if(n.events.percentsplayed&&n.events.percentsplayed.percents.forEach(function(e){v(t,i,e)&&-1===m.indexOf(e)&&(m.push(e),r(d.PLAYER_EVENT.PERCENTS_PLAYED,{percent:e}))}),n.events.timeplayed){var a=n.events.timeplayed;(a.interval?[Math.floor(t/a.interval)*a.interval]:a.times).forEach(function(e){y(t,e)&&-1===_.indexOf(e)&&(_.push(e),r(d.PLAYER_EVENT.TIME_PLAYED,{time:e}))})}n.events.seek&&Math.abs((l=c)-(c=t))>1&&(f=!0,k(),r(d.PLAYER_EVENT.SEEK,{seekStart:l,seekEnd:c}))}).bind(n)),(n.events.mute||n.events.unmute)&&n.player.on(d.PLAYER_EVENT.VOLUME_CHANGE,(function(e){n.player.muted()&&"muted"!==u.lastState?(u.lastState="muted",n.emit(d.PLAYER_EVENT.MUTE,e)):n.player.muted()||"unmuted"===u.lastState||(u.lastState="unmuted",n.emit(d.PLAYER_EVENT.UNMUTE,e))}).bind(n)),n.events.pausenoseek&&(n.player.on(d.PLAYER_EVENT.PAUSE,(function(e){Math.round(n.player.currentTime())===Math.round(n.player.duration())||f||n.emit(d.PLAYER_EVENT.PAUSE_NO_SEEK,e)}).bind(n)),n.player.on(d.PLAYER_EVENT.PLAY,(function(){f=!1}).bind(n))),n.player.on(d.PLAYER_EVENT.LOADED_METADATA,(function(){n.player.currentSource().src!==b&&(k(),b=n.player.currentSource().src)}).bind(n)),n.player.on(d.PLAYER_EVENT.LOADED_DATA,(function(e){for(var t=n.player.textTracks(),i=null,r=0;r<t.length;r++)"segment-metadata"===t[r].label&&(i=t[r]);var a=null;i&&i.on("cuechange",function(){var t=i.activeCues[0];if(t){var r=t.value.resolution;if(a!==r){var s={from:a,to:r};n.emit(d.PLAYER_EVENT.QUALITY_CHANGED,e,s)}a=r}})}).bind(n)),n}return f._(t,e),t}(u()),g=function(e,t){var n=e;return"Array"===e.constructor.name&&(n=e.reduce(function(e,n){var i=t[n]||{};return(0,c.isPlainObject)(n)?e[n.type]=(0,l.assign)({},i,n):e[n]=i,e},{})),n},v=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return y(e,t*n/100,i)},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return e<=t+n&&e>=t-n},_=m},
1"./mixins/eventable.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i=function(e){var t=e;function n(){o._(this,n);var e,t={};return(e=s._(this,n)).on=function(){for(var n,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=r.length-1,o=r[s];return t[o]=function(t){t.Player=e;for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];o.apply(void 0,[t].concat(b._(i)))},r[s]=t[o],(n=e.videojs).on.apply(n,b._(r))},e.one=function(){for(var n,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=r.length-1,o=r[s];return t[o]=function(n){n.Player=e;for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];o.apply(void 0,[n].concat(b._(r))),delete t[o]},r[s]=t[o],(n=e.videojs).one.apply(n,b._(r))},e.off=function(){for(var n,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=r.length-1,o=r[s];r[s]=t[o];var u=(n=e.videojs).off.apply(n,b._(r));return delete t[o],u},e.trigger=function(){var t;(t=e.videojs).trigger.apply(t,arguments)},e}return f._(n,t),n}},
1"./plugins/ai-highlights-graph/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i);n("./plugins/ai-highlights-graph/ai-highlights-graph.scss");var a={},s=function(e,t){e.addClass("vjs-ai-highlights-graph"),e.aiHighlightsGraph=new o(e,t)},o=function(){function e(e,t){return this.player=e,this.options=t,this.initializeHighlightsGraph(),this}return e.prototype.src=function(e){this.resetPlugin(),this.options.src=e,this.initializeHighlightsGraph()},e.prototype.detach=function(){this.resetPlugin()},e.prototype.resetPlugin=function(){this.graphHolder&&this.graphHolder.parentNode.removeChild(this.graphHolder),delete this.progressBar,delete this.graphHolder,delete this.lastStyle},e.prototype.initializeHighlightsGraph=function(){var e=this;this.options.src&&fetch(this.options.src).then(function(e){return e.json()}).then(function(t){e.setupHighlightsGraphElement(),e.graphHolder&&e.createHighlightsGraph(t)})},e.prototype.setupHighlightsGraphElement=function(){if(this.progressBar=this.player.$(".vjs-progress-control"),this.progressBar){var e=this.player.$(".vjs-highlights-graph-display")||document.createElement("div");e.setAttribute("class","vjs-highlights-graph-display"),this.progressBar.appendChild(e),this.graphHolder=e}},e.prototype.createPath=function(e,t,n){var i=t/(e.length-1),r=e.map(function(e,t){return{x:t*i,y:n-e*n}}),a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("fill","lightblue");for(var s="M ".concat(r[0].x,",").concat(r[0].y),o=0;o<r.length-1;o++){var u=(r[o].x+r[o+1].x)/2,l=(r[o].y+r[o+1].y)/2;s+=" Q ".concat(r[o].x,",").concat(r[o].y," ").concat(u,",").concat(l)}return s+=" Q ".concat(r[r.length-1].x,",").concat(r[r.length-1].y," ").concat(r[r.length-1].x,",").concat(r[r.length-1].y),s+=" L ".concat(r[r.length-1].x,",").concat(n," L ").concat(r[0].x,",").concat(n," Z"),a.setAttribute("d",s),a},e.prototype.createHighlightsGraph=function(e){var t=e.data,n=this.player.$(".vjs-highlights-graph-display > svg")||document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox","0 0 ".concat(600," ").concat(20)),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("width",600),n.setAttribute("height",20),n.innerHTML="";var i=this.createPath(t,600,20);n.appendChild(i),this.graphHolder.appendChild(n)},e}(),u=function(e){var t=this;this.ready(function(){s(t,r().obj.merge(a,e))})}},
1"./plugins/analytics/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new p(this,e).init()};n.r(t),n.d(t,{default:function(){return i}});var r=n("../node_modules/video.js/dist/video.es-exposed.js"),a=n.n(r),s=n("./utils/slicing.js"),u=n("./extended-events.js"),c=n("./utils/consts.js"),d=[c.PLAYER_EVENT.PLAY,c.PLAYER_EVENT.PAUSE,c.PLAYER_EVENT.ENDED,c.PLAYER_EVENT.VOLUME_CHANGE,c.PLAYER_EVENT.RESIZE,c.PLAYER_EVENT.ERROR,c.PLAYER_EVENT.FULL_SCREEN_CHANGE,c.PLAYER_EVENT.START,c.PLAYER_EVENT.VIDEO_LOAD,c.PLAYER_EVENT.PERCENTS_PLAYED,c.PLAYER_EVENT.SEEK,c.PLAYER_EVENT.PLAYER_LOAD],h={percentsplayed:{percents:[25,50,75,100]}},f={events:d,category:"Video",defaultLabel:function(e){return e.cloudinary&&e.cloudinary.currentPublicId()||e.currentSource().src}},p=function(){function e(t){o._(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.player=t,this.options=a().obj.merge(f,n),this.events=(0,u.normalizeEventsParam)(this.options.events,h);var i=(0,s.sliceProperties)(this.events,c.PLAYER_EVENT.PERCENTS_PLAYED,c.PLAYER_EVENT.TIME_PLAYED,c.PLAYER_EVENT.PAUSE,c.PLAYER_EVENT.SEEK);i.pause&&(delete i.pause,i.pausenoseek={}),this._extendedEvents=new u.default(t,{events:i}),this._currentSource=null,this._startTracked=null,this._endTracked=null,this.resetState()}return l._(e,[{key:"init",value:function(){var e=this;this.events.shoppable&&(this.player.on("productHover",(function(t,n){e.track({action:"productHover",label:n.productName})}).bind(this)),this.player.on("productClick",(function(t,n){e.track({action:"productClick",label:n.productName})}).bind(this)),this.player.on("productHoverPost",(function(t,n){e.track({action:"productHoverPostPlay",label:n.productName})}).bind(this)),this.player.on("productClickPost",(function(t,n){e.track({action:"productClickPostPlay",label:n.productName})}).bind(this)),this.player.on("productBarMin",(function(){e.track({action:"shoppableBar",label:"closed"})}).bind(this)),this.player.on("productBarMax",(function(){e.track({action:"shoppableBar",label:"opened"})}).bind(this)),this.player.on("replay",(function(){e.track({action:"replay"})}).bind(this))),this.events.play&&this.player.on(c.PLAYER_EVENT.PLAY,(function(){e.track({action:"Play"})}).bind(this)),this.events.ended&&this.player.on(c.PLAYER_EVENT.ENDED,(function(){e._endTracked||(e.track({action:"Ended",nonInteraction:!0}),e._endTracked=!0)}).bind(this)),this.events.volumechange&&this.player.on(c.PLAYER_EVENT.VOLUME_CHANGE,(function(){var t=e.player.muted()?0:e.player.volume();e.track({action:"Volume Change",value:t})}).bind(this)),this.events.resize&&this.player.on(c.PLAYER_EVENT.RESIZE,(function(){var t="Resize - ".concat(e.player.width(),"x").concat(e.player.height(),"}");e.track({action:t})}).bind(this)),this.events.error&&this.player.on(c.PLAYER_EVENT.ERROR,(function(){e.track({action:"Error",nonInteraction:!0})}).bind(this)),this.events.start&&this.player.on(c.PLAYER_EVENT.PLAYING,(function(){e._startTracked&&(e.track({action:"Start"}),e._startTracked=!0)}).bind(this)),this.events.fullscreenchange&&this.player.on(c.PLAYER_EVENT.FULL_SCREEN_CHANGE,(function(){var t=e.player.isFullscreen()?"Enter Fullscreen":"Exit Fullscreen";e.track({action:t})}).bind(this)),this.events.percentsplayed&&this._extendedEvents.on(c.PLAYER_EVENT.PERCENTS_PLAYED,(function(t,n){var i=n.percent;e.track({action:"".concat(i," Percents Played"),nonInteraction:!0})}).bind(this)),this.events.timeplayed&&this._extendedEvents.on(c.PLAYER_EVENT.TIME_PLAYED,(function(t,n){var i=n.time;e.track({action:"".concat(i," Seconds Played"),value:i,nonInteraction:!0})}).bind(this)),this.events.pause&&this._extendedEvents.on(c.PLAYER_EVENT.PAUSE_NO_SEEK,(function(){e.track({action:"Pause"})}).bind(this)),this.events.seek&&this._extendedEvents.on(c.PLAYER_EVENT.SEEK,(function(t,n){var i=n.seekStart,r=n.seekEnd;e.track({action:"Seek Start",value:i}),e.track({action:"Seek End",value:r})}).bind(this)),this.events.playerload&&e.track({action:"Player Load",label:window.location.href,nonInteraction:!0}),this.player.on(c.PLAYER_EVENT.LOADED_METADATA,this.loadedmetadata.bind(this))}},{key:"track",value:function(e){var t=e.action,n=e.label,i=e.value,r=e.nonInteraction,a={eventCategory:this.options.category,eventAction:t,eventLabel:n||this.options.defaultLabel(this.player),eventValue:(void 0===i?null:i)||Math.round(this.player.currentTime()),nonInteraction:void 0!==r&&r};window.ga("send","event",a)}},{key:"videoload",value:function(){this.track({action:"Video Load",nonInteraction:!0})}},{key:"resetState",value:function(){this._currentSource="",this._startTracked=!1,this._endTracked=!1}},{key:"loadedmetadata",value:function(){var e=this.player.currentSource().src;e!==this._currentSource&&(this.resetState(),this._currentSource=e,this.events.videoload&&this.videoload())}}]),e}()},
1"./plugins/autoplay-on-scroll/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new l(this,e).init()};n.r(t),n.d(t,{default:function(){return i}});var r=n("./utils/positioning.js"),a=n("./utils/slicing.js"),s=n("./utils/assign.js"),u={fraction:.5,isMuted:!0},l=function e(t){var n=this;o._(this,e);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i=(0,s.assign)({},u,i),this.player=t;var l=(0,a.sliceProperties)(i,"fraction"),c=!1,d=!1,h=null,f=null;this.init=function(){y(),v()};var p=function(){window.removeEventListener("DOMContentLoaded",v,!1),window.removeEventListener("load",v,!1),window.removeEventListener("scroll",v,!1),window.removeEventListener("resize",v,!1),n.player.off("pause",h),n.player.off("play",f)},m=function(){c=!0,d=!1,n.player.pause()},g=function(){c=!1,d=!0,n.player.play()},v=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:l.fraction})?n.player.paused()&&g():n.player.paused()||n.player.activePlugins_.floatingPlayer||m()},y=function(){h=function(){n.player.waiting||c||p()},f=function(){d||p()},window.addEventListener("DOMContentLoaded",v,!1),window.addEventListener("load",v,!1),window.addEventListener("scroll",v,!1),window.addEventListener("resize",v,!1),n.player.on("pause",h),n.player.on("play",f)}}},
1"./plugins/chapters/index.js":function(e,t,n){"use strict";var i=function(e){return a._(function(){var t,i;return S._(this,function(r){switch(r.label){case 0:t=this,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.e("chapters").then(n.bind(n,"./plugins/chapters/chapters.js"))];case 2:return i=r.sent().default,t.ready(function(){return i(e,t)}),[3,4];case 3:return console.error("Failed to load plugin:",r.sent()),[3,4];case 4:return[2]}})}).call(this)};n.r(t),n.d(t,{default:function(){return i}})},
1"./plugins/cloudinary-analytics/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new s(this,e).init()};n.r(t),n.d(t,{default:function(){return i}});var r=n("../node_modules/cloudinary-video-analytics/dist/main.js"),a=n("./utils/consts.js"),s=function(){function e(t){var n=this;o._(this,e),c._(this,"getMetadata",function(){return{cloudName:n.player.cloudinary.cloudinaryConfig().cloud_name,publicId:n.player.cloudinary.currentPublicId()}}),c._(this,"sourceChanged",function(){var e=n.getMetadata();e.cloudName&&e.publicId?(n.currentVideMetadata=e,n.cloudinaryAnalytics.startManualTracking(e,{videoPlayerType:"cloudinary video player",videoPlayerVersion:"1.11.1"})):(n.currentVideMetadata.cloudName!==e.cloudName||n.currentVideMetadata.publicId!==e.publicId)&&n.cloudinaryAnalytics.stopManualTracking()}),this.player=t,this.cloudinaryAnalytics=(0,r.connectCloudinaryAnalytics)(this.player.videoElement),this.currentVideMetadata={cloudName:null,publicId:null}}return l._(e,[{key:"init",value:function(){this.player.on(a.PLAYER_EVENT.CLD_SOURCE_CHANGED,this.sourceChanged),this.player.on(a.PLAYER_EVENT.SOURCE_CHANGED,this.sourceChanged)}}]),e}()},
1"./plugins/cloudinary/common.js":function(e,t,n){"use strict";var i=function(e){var t=/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i;if(!1===t.test(e))throw Error("error: please provide a 3-bytes hex-sequence for example: 42001e");var n=e.match(t);n.shift();var i=n[0];i="string"==typeof(i=C[i])?i:"Unknown";var r=n[2];return r=String(r=parseInt(r,16)).split("").join("."),"".concat(i,":").concat(r)};n.r(t),n.d(t,{ERROR_CODE:function(){return b},VIDEO_CODEC:function(){return A},cloudinaryErrorsConverter:function(){return k},codecShorthandTrans:function(){return E},codecToSrcTransformation:function(){return I},extendCloudinaryConfig:function(){return v},getCloudinaryUrl:function(){return y},h264avcToString:function(){return x},isRawUrl:function(){return m},isSrcEqual:function(){return g},mergeTransformations:function(){return _},normalizeOptions:function(){return p},setupCloudinaryMiddleware:function(){return P}});var r=n("../node_modules/video.js/dist/video.es-exposed.js"),s=n.n(r),o=n("./utils/assign.js"),u=n("./utils/slicing.js"),l=n("./utils/type-inference.js"),c=n("./plugins/cloudinary/models/video-source/video-source.const.js"),d=n("../node_modules/@cloudinary/url-gen/backwards/createCloudinaryLegacyURL.js"),h=n("../node_modules/@cloudinary/url-gen/backwards/transformation.js"),f=n("./utils/object.js"),p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.tolerateMissingId;if((0,l.isPlainObject)(e)){var r=(0,o.assign)({},e);if(e=(0,u.sliceAndUnsetProperties)(r,"publicId").publicId,!(0,l.isString)(e)&&!(void 0!==i&&i))throw Error("Source is missing 'publicId'.");t&&(t=(0,o.assign)({},r,t))}return{publicId:e,options:t}},m=function(e){return c.URL_PATTERN.test(e)},g=function(e,t){var n=e,i=t;return(void 0===e?"undefined":T._(e))==="object"&&(n=e.src),(void 0===t?"undefined":T._(t))==="object"&&(i=t.src),/^\/\//.test(n)&&(i=i.slice(i.indexOf("//"))),/^\/\//.test(i)&&(n=n.slice(n.indexOf("//"))),n===i},v=function(e,t){return Object.assign(e,t)},y=function(e,t){return(0,d.createCloudinaryLegacyURL)(e,(0,f.omit)(t,["chainTarget"]))},_=function(e,t){var n="Transformation"===e.constructor.name&&e.toOptions?e.toOptions():e;return new h.default(n).fromOptions(t).toOptions()},b={NO_SUPPORTED_MEDIA:6,CUSTOM:10,UNKNOWN_CUSTOMER:11,RESOURCE_NOT_FOUND:12,PRIVATE_RESOURCE:13,UNAUTHENTICATED:14},k=function(e){var t=e.errorMsg,n=e.publicId,i=e.cloudName,r=e.statusCode,a="Video cannot be played",s={code:b.CUSTOM,message:"".concat(a).concat(t?"- "+t:""),statusCode:r},o=t.toLowerCase();return o.startsWith("unknown customer")&&(s.code=b.UNKNOWN_CUSTOMER,s.message="".concat(a," Unknown cloud-name ").concat(i)),o.startsWith("resource not found")&&(s.code=b.RESOURCE_NOT_FOUND,s.message="".concat(a," Public ID ").concat(n," not found")),o.startsWith("private resource")&&(s.code=b.PRIVATE_RESOURCE,s.message="".concat(a," Private video")),o.startsWith("unauthenticated access")&&(s.message="".concat(a," Requires authentication"),s.code=b.UNAUTHENTICATED),s},E=function(e){var t={h265:"hev1.1.6.L93.B0",vp9:"vp09.00.50.08",h264:"avc1.42E01E",av1:"av01.0.05M.08"};return t[e]?t[e]:e},w={avc1:"h264",avc2:"h264",svc1:"Scalable Video Coding",mvc1:"Multiview Video Coding",mvc2:"Multiview Video Coding"},C={0:"No",42:"baseline","4d":"main",58:"extended",64:"high","6e":"high 10","7a":"high 4:2:2",f4:"high 4:4:4","2c":"CAVLC 4:4:4",53:"Scalable Baseline",56:"Scalable High",80:"Stereo High",76:"Multiview High","8a":"Multiview Depth High"},x=function(e){var t=/(avc1|avc2|svc1|mvc1|mvc2)\.([0-9a-f]{6})/i;if(!1===t.test("avc1.42001e"))throw Error("Codec string is not formatted according to H.264/AVC standards for example avc1.42001e (maybe an iOS friendly version...)");var n=e.match(t);if(null!==n){n.shift();var r=w[n[0]],a="string"==typeof a?a:"Unknown";return r+":"+i(n[1])}return e},A={VP9:"vp9",HEV1:"hev1",H265:"h265",H264:"h264"},I=function(e){if(!e)return{};switch(e){case A.VP9:return{video_codec:A.VP9};case A.HEV1:return{video_codec:A.H265};case A.H264:return{video_codec:"".concat(A.H264,":baseline:3.0")};default:return{video_codec:x(e)}}},P=function(){s().use("video/auto",function(){return{setSource:function(e,t){return a._(function(){var n;return S._(this,function(i){switch(i.label){case 0:return[4,fetch(e.src,{method:"HEAD"})];case 1:return n=i.sent().headers,[2,t(null,{src:e.src,type:n.get("content-type")})]}})})()}}})}},
1"./plugins/cloudinary/event-handler-registry.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i=n("./utils/find.js"),r=function(){function e(t){o._(this,e),this._emitter=t,this._eventHandlers=[]}return l._(e,[{key:"on",value:function(e,t){this._eventHandlers.push({type:e,handler:t}),this._emitter.on(e,t)}},{key:"one",value:function(e,t){var n=this;this._eventHandlers.push({type:e,handler:t,wrapper:function(){t.apply(void 0,arguments),n.off(e,t)}}),this._emitter.one(e,t)}},{key:"off",value:function(e,t){var n=(0,i.findIndex)(this._eventHandlers,function(n){return n.type===e&&n.handler===t});if(-1!==n){var r=this._eventHandlers[n];this._emitter.off(e,r.wrapper||r.handler),this._eventHandlers.splice(n,1)}}},{key:"removeAllListeners",value:function(){var e=this;this._eventHandlers.forEach(function(t){e.off(t)})}}]),e}()},
1"./plugins/cloudinary/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.chainTarget=e.chainTarget||this,this.cloudinary=new S(this,e)};n.r(t),n.d(t,{CONSTRUCTOR_PARAMS:function(){return k},default:function(){return i}});var r=n("../node_modules/video.js/dist/video.es-exposed.js"),a=n.n(r),s=n("./utils/apply-with-props.js"),u=n("./utils/slicing.js"),c=n("./utils/cloudinary.js"),d=n("./utils/assign.js"),h=n("./utils/type-inference.js"),f=n("./plugins/index.js"),m=n("./plugins/cloudinary/common.js"),g=n("./plugins/cloudinary/models/video-source/video-source.js"),v=n("./plugins/cloudinary/event-handler-registry.js"),y=n("./plugins/cloudinary/models/audio-source/audio-source.js"),_=n("./components/recommendations-overlay/index.js"),T={transformation:{},sourceTypes:[],sourceTransformation:[],posterOptions:{}},k=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations"],S=function(){function e(t){var n=this;o._(this,e);var i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,m.setupCloudinaryMiddleware)(),this.player=t;var l=null,S=null,E=null,w=null,C=null,x=null,A=null,I=null,P=null,L=(r=(0,d.assign)({},T,r)).chainTarget,j=null,O=null,D=!1;this.source=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n=(0,d.assign)({},n),!e)return l;var r=null;if(p._(e,g.default))r=e;else{var a=(0,m.normalizeOptions)(e,n),s=a.publicId,o=a.options;r=i.buildSource(s,o)}if(r.recommendations()){var c,h=r.recommendations(),v=null,y=!1;n.recommendationOptions&&(y=(c=(0,u.sliceAndUnsetProperties)(n.recommendationOptions,"disableAutoShow","itemBuilder")).disableAutoShow,v=c.itemBuilder),(0,_.default)(t).then(function(){R(h,{disableAutoShow:y,itemBuilder:v})})}else N();l=r;var b=n.sourceTypes&&n.sourceTypes.some(function(e){return e.includes("dash")});return f.default.dashPlugin&&b?f.default.dashPlugin().then(function(){M()}):n.skipRefresh||M(),i.player.trigger("cldsourcechanged",{source:r}),L},this.buildSource=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=(t=(0,m.normalizeOptions)(e,n)).publicId,(n=t.options).cloudinaryConfig=(0,m.extendCloudinaryConfig)(i.cloudinaryConfig(),n.cloudinaryConfig||{}),n.transformation=(0,m.mergeTransformations)(i.transformation(),n.transformation||{}),n.sourceTransformation=n.sourceTransformation||i.sourceTransformation(),n.sourceTypes=n.sourceTypes||i.sourceTypes(),n.poster=n.poster||B(),n.queryParams=Object.assign(n.queryParams||{},n.usageReport?{_s:"vp-1.11.1"}:{}),n.sourceTypes.indexOf("audio")>-1?new y.default(e,n):new g.default(e,n)},this.posterOptions=function(e){return e?(C=e,L):C},this.disablePoster=function(e){n.player.poster(" "),n.player.posterImage.el().style.backgroundColor=e},this.cloudinaryConfig=function(e){return e?(x=e,L):x},this.transformation=function(e){return e?(A=e,L):A},this.sourceTypes=function(e){return e?(I=e,L):I},this.getCurrentSources=function(){return S},this.sourceTransformation=function(e){return e?(P=e,L):P},this.on=function(){var e;return(e=j).on.apply(e,arguments)},this.one=function(){var e;return(e=j).one.apply(e,arguments)},this.off=function(){var e;return(e=j).off.apply(e,arguments)},this.autoShowRecommendations=function(e){return void 0===e?D:(D=e,L)},this.dispose=function(){n.playlist&&n.playlist()&&n.disposePlaylist(),N(),l=void 0,j.removeAllListeners()};var R=function(e,t){var i=t.disableAutoShow,r=void 0!==i&&i,a=t.itemBuilder,s=void 0===a?null:a;if(N(),!Array.isArray(e)&&"function"!=typeof e&&!e.then)throw Error('"recommendations" must be either an array or a function');O={},s=s||function(e){return{source:p._(e,g.default)?e:n.buildSource(e),action:function(){return n.source(e)}}},O.sourceChangedHandler=function(){var t=function(e){if(void 0!==e&&e.length>0){var t=e.map(function(e){return s(e)});n.player.trigger("recommendationschanged",{items:t})}else n.player.trigger("recommendationsnoshow");O.sources=e};(0,h.isFunction)(e)?t(e()):e.then?e.then(t):t(e)},O.sourceChangedHandler(),O.endedHandler=function(){!r&&n.autoShowRecommendations()&&n.player.trigger("recommendationsshow")},n.on("ended",O.endedHandler)}
1,N=function(){O&&(n.off("cldsourcechanged",O.sourceChangedHandler),n.off("ended",O.endedHandler),delete O.endedHandler,delete O.sourceChangedHandler),O=null},M=function(){var e=n.source(),t=Object.assign({},n.player.cloudinary.posterOptions(),e.getInitOptions().poster);t.posterColor?n.disablePoster(t.posterColor):e.poster()&&n.player.poster(e.poster().url()),S=e.generateSources().reduce(function(e,t){if(t.isAdaptive)if(t.type.split("; ")[1]&&"MediaSource"in window){var n=t.type.split("; "),i=U("video/mp4; ".concat(n[1]||""));a().browser.IS_ANY_SAFARI&&(t.type="".concat(n[0],"; ").concat((0,m.codecShorthandTrans)("h264"))),i&&e.push(t)}else e.push(t);else e.push(t);return e},[]),n.player.src(S),E=e,n.playlist&&(w=n.playlist())},U=function(e){return document.createElement("video").canPlayType(e)||"MediaSource"in window&&MediaSource.isTypeSupported(e)},B=function(){var e=(0,d.assign)({},n.posterOptions());e.transformation=e.transformation||{},(e.transformation.width||e.transformation.height)&&!e.transformation.crop&&(e.transformation.crop="scale");var t=n.player.el();if(t&&t.clientWidth&&t.clientHeight&&!(0,c.isKeyInTransformation)(e.transformation,"width")&&!(0,c.isKeyInTransformation)(e.transformation,"height")){var i=function(e){return 100*Math.ceil(e/100)};e.transformation=(0,m.mergeTransformations)(e.transformation,{width:i(t.clientWidth),height:i(t.clientHeight),crop:"limit"})}return e};j=new v.default(this.player);var F=u.sliceAndUnsetProperties.apply(this,[r].concat(b._(k)));(0,s.applyWithProps)(this,F),this.on("sourcechanged",function(e,t){var i=t.to;E&&E.contains(i)?n.source()||(n.playlist&&w&&n.playlist(w),n.source(E,{skipRefresh:!0})):(n.player.trigger("cldsourcechanged",{}),n.dispose())})}return l._(e,[{key:"currentSourceType",value:function(){return this.source().getType()}},{key:"currentPublicId",value:function(){return this.source()&&this.source().publicId()}},{key:"currentPoster",value:function(){return this.source()&&this.source().poster()}}]),e}()},
1"./plugins/cloudinary/models/audio-source/audio-source.const.js":function(e,t,n){"use strict";n.r(t),n.d(t,{AUDIO_SUFFIX_REMOVAL_PATTERN:function(){return a},COMMON_AUDIO_FORMATS:function(){return r},DEFAULT_AUDIO_PARAMS:function(){return s},DEFAULT_POSTER_PARAMS:function(){return i}});var i={format:"jpg",resource_type:"video",transformation:{flags:"waveform"}},r=["mp3","ogg","wav","mp4"],a=RegExp("\\.(".concat(r.join("|"),")$$")),s={resource_type:"video",type:"upload",transformation:[]}},
1"./plugins/cloudinary/models/audio-source/audio-source.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var i=n("./plugins/cloudinary/models/video-source/video-source.js"),r=n("./plugins/cloudinary/models/image-source.js"),a=n("./plugins/cloudinary/common.js"),u=n("./utils/slicing.js"),c=n("./utils/assign.js"),d=n("./utils/querystring.js"),h=n("./plugins/cloudinary/models/audio-source/audio-source.const.js"),m=n("./utils/consts.js"),g=function(e){function t(e){o._(this,t);var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=(i=(0,a.normalizeOptions)(e,r)).publicId,r=i.options,e=e.replace(h.AUDIO_SUFFIX_REMOVAL_PATTERN,""),r=(0,c.assign)({},h.DEFAULT_AUDIO_PARAMS,r);var l=(0,u.sliceAndUnsetProperties)(r,"poster").poster;return(n=s._(this,t,[e,r]))._poster=null,n._type=m.SOURCE_TYPE.AUDIO,n.poster(l),n}return f._(t,e),l._(t,[{key:"getPoster",value:function(){return this._poster}},{key:"poster",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?(p._(e,r.default)?this._poster=e:(e=(t=(0,a.normalizeOptions)(e,n,{tolerateMissingId:!0})).publicId,n=t.options,e||(e=this.publicId(),n=(0,c.assign)({},n,h.DEFAULT_POSTER_PARAMS)),n.cloudinaryConfig=n.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new r.default(e,n)),this):this._poster}},{key:"generateSources",value:function(){var e=this;return this.sourceTypes().map(function(t){if("audio"!==t)return null;var n={},i=e.sourceTransformation()[t]||[e.transformation()];i&&(n.transformation=i),(0,c.assign)(n,{resource_type:"video",format:"mp3"});var r=e.queryParams()?(0,d.objectToQuerystring)(e.queryParams()):"";return{type:"video/mp4",src:"".concat(e.config().url(e.publicId(),n)).concat(r),cldSrc:e,poster:e.getPoster().url()}},this)}}]),t}(i.default)},
1"./plugins/cloudinary/models/base-source.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var i=n("./plugins/cloudinary/common.js"),r=n("./utils/slicing.js"),a=n("./utils/querystring.js"),s=function(){function e(t){var n=this;o._(this,e),c._(this,"_transformation",null);var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=(0,i.normalizeOptions)(t,a),u=s.publicId,l=s.options,d=(0,r.sliceAndUnsetProperties)(l,"cloudinaryConfig").cloudinaryConfig,h=(0,r.sliceAndUnsetProperties)(l,"transformation").transformation,f=(0,r.sliceAndUnsetProperties)(l,"queryParams").queryParams;if(!d)throw Error('Source is missing "cloudinaryConfig".');this.publicId=function(){return u},this.cloudinaryConfig=function(){return d},this.resourceConfig=function(){return l},this.queryParams=function(){return f},this.getType=function(){return n._type},this.transformation(h)}return l._(e,[{key:"transformation",value:function(e){return e&&(this._transformation=e),this._transformation}},{key:"config",value:function(){var e=this,t=this.cloudinaryConfig();return{cloud_name:t.cloudName,url:function(n,r){if((0,i.isRawUrl)(n))return n;var a=(0,i.mergeTransformations)(e.resourceConfig(),r);return(0,i.getCloudinaryUrl)(n,m._({},t,a))}}}},{key:"url",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).transformation,t=this.config().url(this.publicId(),{transformation:e||this.transformation()}),n=this.queryParams()?(0,a.objectToQuerystring)(this.queryParams()):"";return"".concat(t).concat(n)}}]),e}()},
1"./plugins/cloudinary/models/image-source.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var i=n("./plugins/cloudinary/models/base-source.js"),r=n("./plugins/cloudinary/common.js"),a=n("./utils/assign.js"),u=RegExp("\\.(".concat("jpg|png|gif|webp",")$$")),l={resource_type:"image",type:"upload",transformation:[]},c=function(e){function t(e){o._(this,t);var n,i,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=(i=(0,r.normalizeOptions)(e,c)).publicId,c=i.options,e=e.replace(u,""),c=(0,a.assign)({},l,c),(n=s._(this,t,[e,c]))._type="ImageSource",n}return f._(t,e),t}(i.default)},
1"./plugins/cloudinary/models/video-source/video-source.const.js":function(e,t,n){"use strict";n.r(t),n.d(t,{ADAPTIVE_SOURCETYPES:function(){return u},CONTAINER_MIME_TYPES:function(){return o},DEFAULT_POSTER_PARAMS:function(){return i},DEFAULT_VIDEO_PARAMS:function(){return r},FORMAT_MAPPINGS:function(){return l},URL_PATTERN:function(){return s},VIDEO_SUFFIX_REMOVAL_PATTERN:function(){return a}});var i={format:"jpg",resource_type:"video"},r={resource_type:"video",type:"upload",transformation:[],sourceTransformation:{},sourceTypes:["auto"],recommendations:null,info:{},interactionAreas:{},chapters:{}},a=RegExp("\\.(".concat("3g2|3gp|avi|flv|m3u8|ts|m2ts|mts|mov|mkv|mp4|mpeg|mpd|mxf|ogv|webm|wmv",")$$")),s=RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)"),o={hls:"application/x-mpegURL",dash:"application/dash+xml",opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},u=["hls","dash","mpd","m3u8"],l={hls:"m3u8",dash:"mpd"}},
1"./plugins/cloudinary/models/video-source/video-source.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var i=n("./utils/slicing.js"),r=n("./utils/assign.js"),a=n("./utils/querystring.js"),u=n("./utils/array.js"),c=n("./utils/consts.js"),d=n("./plugins/cloudinary/models/video-source/video-source.const.js"),h=n("./plugins/cloudinary/models/video-source/video-source.utils.js"),m=n("./plugins/cloudinary/common.js"),g=n("./plugins/cloudinary/models/base-source.js"),v=n("./plugins/cloudinary/models/image-source.js"),_=0,b=function(e){function t(e){o._(this,t);var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,m.isRawUrl)(e),l=(0,m.normalizeOptions)(e,a),h=l.publicId,f=l.options;u||(h=h.replace(d.VIDEO_SUFFIX_REMOVAL_PATTERN,"")),(f=(0,r.assign)({},d.DEFAULT_VIDEO_PARAMS,f)).poster||(f.poster=(0,r.assign)({publicId:h},d.DEFAULT_POSTER_PARAMS));var p=(0,i.sliceAndUnsetProperties)(f,"poster","sourceTypes","sourceTransformation","info","recommendations","textTracks","withCredentials","interactionAreas","chapters"),g=p.poster,v=p.sourceTypes,y=p.sourceTransformation,b=p.info,T=p.recommendations,k=p.textTracks,S=p.withCredentials,E=p.interactionAreas,w=p.chapters;return(n=s._(this,t,[h,f]))._sourceTypes=null,n._recommendations=null,n._textTracks=null,n._poster=null,n._info=null,n._sourceTransformation=null,n._interactionAreas=null,n._chapters=null,n._type=c.SOURCE_TYPE.VIDEO,n.isRawUrl=u,n._rawTransformation=f.raw_transformation,n.withCredentials=!!S,n.getInitOptions=function(){return a},n.poster(g),n.sourceTypes(v),n.sourceTransformation(y),n.info(b),n.interactionAreas(E),n.chapters(w),n.recommendations(T),n.textTracks(k),n.objectId=_++,n}return f._(t,e),l._(t,[{key:"textTracks",value:function(e){return void 0===e?this._textTracks:(this._textTracks=e,this)}},{key:"recommendations",value:function(e){return void 0===e?this._recommendations:(this._recommendations=e,this)}},{key:"sourceTypes",value:function(e){return e?(this._sourceTypes=e,this):this._sourceTypes}},{key:"info",value:function(e){return e?(this._info=e,this):this._info}},{key:"interactionAreas",value:function(e){return e?(this._interactionAreas=e,this):this._interactionAreas}},{key:"chapters",value:function(e){return e?(this._chapters=e,this):this._chapters}},{key:"sourceTransformation",value:function(e){return e?(this._sourceTransformation=e,this):this._sourceTransformation}},{key:"poster",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?p._(e,v.default)?(this._poster=e,this):(e=(t=(0,m.normalizeOptions)(e,n,{tolerateMissingId:!0})).publicId,n=t.options,!e&&this.isRawUrl)?null:(e||(e=this.publicId(),n=(0,r.assign)({},n,d.DEFAULT_POSTER_PARAMS)),n.cloudinaryConfig=n.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new v.default(e,n),this):this._poster}},{key:"contains",value:function(e){return this.generateSources().some(function(t){return(0,m.isSrcEqual)(t,e)})}},{key:"generateSources",value:function(){var e=this;if(this.isRawUrl){var t="auto"===this.sourceTypes()[0]?null:this.sourceTypes()[0];return[this.generateRawSource(this.publicId(),t)]}return this.sourceTypes().map(function(t){var n=e.sourceTransformation()[t]||e.transformation(),i=(0,h.normalizeFormat)(t),s=d.ADAPTIVE_SOURCETYPES.includes(i),o={};n&&(o.transformation=(0,u.castArray)(n)),(0,r.assign)(o,{resource_type:"video",format:i});var l=y._((0,h.formatToMimeTypeAndTransformation)(t),2),c=l[0],f=l[1];f&&!(0,h.isCodecAlreadyExist)(o.transformation,e._rawTransformation)&&(o.transformation=(0,m.mergeTransformations)(o.transformation,f)),"auto"===o.format&&(delete o.format,o.transformation=(0,m.mergeTransformations)(o.transformation,{fetch_format:"auto:video"})),s&&!JSON.stringify(o.transformation||{}).includes('"streaming_profile":')&&(o.transformation=(0,m.mergeTransformations)(o.transformation,{streaming_profile:"auto"}));var p=e.queryParams()?(0,a.objectToQuerystring)(e.queryParams()):"",g=e.config().url(e.publicId(),o),v=g.indexOf("?")>-1?p.replace("?","&"):p;return{type:c,src:g+v,cldSrc:e,isAdaptive:s,withCredentials:e.withCredentials}})}},{key:"generateRawSource",value:function(e,t){t=t||e.split(".").pop();var n=d.ADAPTIVE_SOURCETYPES.includes(t);return{type:t=d.CONTAINER_MIME_TYPES[t]?d.CONTAINER_MIME_TYPES[t]:t?"video/".concat(t):null,src:e,cldSrc:this,isAdaptive:n,withCredentials:this.withCredentials}}},{key:"getInteractionAreas",value:function(){return this._interactionAreas}}]),t}(g.default)},
1"./plugins/cloudinary/models/video-source/video-source.utils.js":function(e,t,n){"use strict";var i=function(e){var t=y._(e.toLowerCase().split("/"),2),n=t[0],i=t[1],r=a.CONTAINER_MIME_TYPES[n]||"video/".concat(n),o=[r];if(i){var u=(0,s.codecToSrcTransformation)(i);o=["".concat(r,'; codecs="').concat((0,s.codecShorthandTrans)(i),'"'),u]}return o},r=function(e){e=e.toLowerCase().split("/").shift();var t=a.FORMAT_MAPPINGS[e];return t||(t=e.split("/").shift()),t};n.r(t),n.d(t,{formatToMimeTypeAndTransformation:function(){return i},isCodecAlreadyExist:function(){return d},normalizeFormat:function(){return r}});var a=n("./plugins/cloudinary/models/video-source/video-source.const.js"),s=n("./plugins/cloudinary/common.js"),o=n("./utils/type-inference.js"),u=n("./utils/cloudinary.js"),l=n("./utils/array.js"),c=function(e){return e&&(0,l.some)(Object.values(s.VIDEO_CODEC),function(t){return e.includes(t)})},d=function(e,t){return!!(e||t)&&(!!(0,l.some)(["video_codec","streaming_profile"],function(t){return(0,u.isKeyInTransformation)(e,t)})||((0,o.isString)(t)?c(t):(0,l.some)(e,function(e){return(0,l.some)(e,function(e){return c((0,o.isPlainObject)(e)?e.video_codec:e)})})))}},
1"./plugins/colors/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new d(this,e).init()};n.r(t),n.d(t,{default:function(){return i},getDefaultPlayerColor:function(){return c}});var r=n("./utils/assign.js"),a=n("./utils/css-prefix.js"),s=n("./video-player.utils.js"),u={base:"#000000",accent:"#0D9AFF",text:"#FFFFFF"},l={base:"#FFFFFF",accent:"#0D9AFF",text:"#000000"},c=function(e){return(0,s.isLight)(e)?l:u},d=function e(t){var n=this;o._(this,e);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.player=t;var s=c(this.player.options_);i.colors=(0,r.assign)({},s,i.colors),this.init=function(){u(d("\n .PLAYER-CLASS-PREFIX {\n --color-accent: --accent-color;\n --color-base: --base-color;\n --color-text: --text-color;\n\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-time-tooltip,\n .PLAYER-CLASS-PREFIX .vjs-mouse-display:after,\n .PLAYER-CLASS-PREFIX .vjs-play-progress:after {\n color: --text-color;\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-slider {\n background-color: rgba(--text-color, 0.2);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-load-progress {\n background: rgba(--text-color, 0.3);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-level {\n background: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-play-progress {\n background: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-vertical {\n background-color: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-control:before {\n border-color: transparent transparent rgba(--accent-color, 0.4) transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-volume-level:before {\n border-color: transparent transparent --accent-color transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-progress-control:before {\n color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-highlights-graph-display {\n color: rgba(--text-color, 0.3);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n color: --text-color;\n background-image: linear-gradient(rgba(--base-color, 0.4), rgba(255, 255, 255, 0) 100%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay {\n color: --text-color;\n background-color: rgba(--base-color, 0.4);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item {\n box-shadow: 0 0.5em 1.2em 0px --base-color;\n color: --text-color;\n border: 1px solid --text-color !important;\n position: relative;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:active,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:hover {\n border: 1px solid --accent-color !important;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-menu-content .vjs-menu-item:active,\n .PLAYER-CLASS-PREFIX .vjs-menu-content .vjs-menu-item:focus,\n .PLAYER-CLASS-PREFIX .vjs-menu-content .vjs-menu-item:hover {\n color: --text-color;\n background-color: rgba(--text-color, 0.2);\n }\n\n .PLAYER-CLASS-PREFIX.vjs-ad-playing .vjs-progress-control .vjs-play-progress {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX.cld-plw-layout {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-video-player-floater-close polygon {\n fill: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-hotspot:after {\n background: --base-color;\n box-shadow: 0 0 0 4px --accent-color, 0 0 0 8px rgba(--text-color, 0.24);\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-tooltip {\n color: --base-color;\n background: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-semi-bg {\n background: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-semi-bg {\n background: rgba(--text-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-text {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-text {\n color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .accent-color-text {\n color: --accent-color;\n }
1\n")),"light"===n.player.options_.skin?u(d("\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-menu-button .vjs-menu-content {\n background-color: rgba(--base-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:active .vjs-recommendations-overlay-item-primary-content,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:hover .vjs-recommendations-overlay-item-primary-content {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:active div,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:hover div {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n @media only screen and (max-width: 768px) {\n .PLAYER-CLASS-PREFIX.cld-plw-vertical .cld-plw-item-info-wrap {\n color: --accent-color;\n }\n }\n")):u(d("\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-menu-button .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 80%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid rgba(--text-color, 0.5);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n"))};var u=function(e){var t=document.createElement("style");t.innerHTML=e,n.player.el_.appendChild(t)},l=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},d=function(e){return e.replace(/PLAYER\-CLASS\-PREFIX/g,(0,a.playerClassPrefix)(n.player)).replace(/rgba\(\-\-base\-color/g,"rgba("+l(i.colors.base)).replace(/rgba\(\-\-accent\-color/g,"rgba("+l(i.colors.accent)).replace(/rgba\(\-\-text\-color/g,"rgba("+l(i.colors.text)).replace(/\-\-base\-color/g,i.colors.base).replace(/\-\-accent\-color/g,i.colors.accent).replace(/\-\-text\-color/g,i.colors.text)}}},
1"./plugins/context-menu/components/context-menu-item.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("./utils/dom.js"),u=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"handleClick",value:function(){d._(h._(t.prototype),"handleClick",this).call(this),this.options_.listener()}},{key:"createEl",value:function(){var e=(0,a.createElement)("span",{class:"vjs-menu-item-text"+(this.options_.class?" ".concat(this.options_.class):"")});return e.appendChild(document.createTextNode(this.localize(this.options_.label))),(0,a.createElement)("li",{class:"vjs-menu-item",tabIndex:-1},e)}}]),t}(r().getComponent("MenuItem"))},
1"./plugins/context-menu/components/context-menu.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("./plugins/context-menu/components/context-menu-item.js"),u=n("./utils/positioning.js"),c=n("./utils/type-inference.js"),p=function(e){function t(e,n){var i;return o._(this,t),i=s._(this,t,[e,n]),n.content.forEach(function(t){var n=null;n=(0,c.isFunction)(t.listener)?t.listener:"string"==typeof t.href?function(){return window.open(t.href)}:function(){return!0},i.addItem(new a.default(e,{label:t.label,class:t.class,listener:function(){n.apply(void 0,arguments),i.dispose()}}))}),i}return f._(t,e),l._(t,[{key:"setPosition",value:function(e,t){(0,u.setPosition)(this.el(),e,t)}},{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this);if(r().dom.addClass(e,"vjs-context-menu-ui"),this.options_.position){var n=this.options_.position,i=n.left,a=n.top;this.setPosition(i,a)}return e}}]),t}(r().getComponent("Menu"))},
1"./plugins/context-menu/contextMenuContent.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i=function(e){var t=e.loop(),n=e.paused(),i=e.muted(),r=e.isFullscreen(),a={class:"player-version",label:"Cloudinary Player v1.11.1"};return e.controls()?[{label:t?"Unloop":"Loop",listener:function(){e.loop(!t)}},{label:n?"Play":"Pause",listener:function(){n?e.play():e.pause()}},{label:i?"Unmute":"Mute",listener:function(){e.muted(!i)}},{label:r?"Exit Fullscreen":"Fullscreen",listener:function(){r?e.exitFullscreen():e.requestFullscreen()}},a]:[a]}},
1"./plugins/context-menu/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new f(this,e).init()};n.r(t),n.d(t,{default:function(){return i}});var r=n("../node_modules/video.js/dist/video.es-exposed.js"),a=n.n(r);n("./plugins/context-menu/videojs-contextmenu.js"),n("./plugins/context-menu/context-menu.scss");var s=n("./plugins/context-menu/components/context-menu.js"),u=n("./utils/positioning.js"),l=n("./utils/slicing.js"),c=n("./utils/assign.js"),d=n("./utils/type-inference.js"),h={showNativeOnRecurringEvent:!1},f=function e(t,n){var i=this;if(o._(this,e),!Array.isArray(n.content)&&!(0,d.isFunction)(n.content))throw Error('"content" required');var r=(0,c.assign)({},h,n);this.player=t;var f=(0,l.sliceProperties)(r,"content","showNativeOnRecurringEvent");this.init=function(){i.player.contextmenu(),i.player.on("vjs-contextmenu",m),i.player.ready(function(){return i.player.addClass("vjs-context-menu")})};var p=function(e){var t=i.menu.el();t.style.visibility="hidden",i.player.el().appendChild(t);var n=t.getBoundingClientRect();i.player.el().removeChild(t),t.style.visibility="visible";var r=(0,u.getPointerPosition)(i.player.el(),e),a=i.player.el().getBoundingClientRect(),s=a.height-a.height*r.y+1,o=Math.round(a.width*r.x)+1,l=s,c=o;return s+n.height>a.height&&(l=s+n.height-a.height>n.height/2?s-n.height-1:a.height-n.height),o+n.width>a.width&&(c=o+n.width-a.width>n.width/2?o-n.width-1:a.width-n.width),l<s&&c<o&&(l=s-n.height-1,c=o-n.width-1),l=Math.max(0,l),{left:c=Math.max(0,c),top:l}},m=function(e){if(!i.menu||(i.menu.dispose(),!f.showNativeOnRecurringEvent)){f.showNativeOnRecurringEvent&&(i.player.contextmenu.options.cancel=!1),e.preventDefault();var t=f.content;(0,d.isFunction)(t)&&(t=t(i.player)),i.menu=new s.default(i.player,{content:t});var n=p(e),r=n.left,o=n.top;i.menu.setPosition(r,o);var u=function(e){("click"!==e.type||3!==e.which&&2!==e.button)&&i.menu.dispose()};i.menu.on("dispose",function(){i.player.contextmenu.options.cancel=!0,i.player.removeChild(i.menu),a().off(document,["click","tap"],u),delete i.menu}),i.player.addChild(i.menu),a().on(document,["click","tap"],u)}}}},
1"./plugins/context-menu/videojs-contextmenu.js":function(e,t,n){"use strict";var i=function(e,t){if(e.contextmenu.options.disabled)return e;var n={target:e,type:h};return["clientX","clientY","pageX","pageY","screenX","screenY"].forEach(function(e){n[e]=t[e]}),e.trigger(n)},r=function(e){var t=this.contextmenu.current;if(t){var n=this.contextmenu.options.wait;"touchend"===e.type&&new Date().getTime()-t.time>=n&&i(this,e),this.contextmenu.current=null}},a=function(e){var t=this.contextmenu.current;if(t){var n=e.touches[0],i=this.contextmenu.options.sensitivity;(n.screenX-t.screenX>i||n.screenY-t.screenY>i)&&(this.contextmenu.current=null)}},s=function(e){if(!this.contextmenu.current){var t=e.touches[0];this.contextmenu.current={screenX:t.screenX,screenY:t.screenY,time:new Date().getTime()}}},o=function(e){this.contextmenu.options.cancel&&!this.contextmenu.options.disabled&&e.preventDefault(),i(this,e),this.off(["touchcancel","touchend"],r),this.off("touchmove",a),this.off("touchstart",s)},u=function(e){var t=this;this.contextmenu.options=c().obj.merge(d,e),this.on("contextmenu",o),this.on(["touchcancel","touchend"],r),this.on("touchmove",a),this.on("touchstart",s),this.ready(function(){return t.addClass(h)})};n.r(t),n.d(t,{default:function(){return f}});var l=n("../node_modules/video.js/dist/video.es-exposed.js"),c=n.n(l),d={cancel:!0,sensitivity:10,wait:500,disabled:!1},h="vjs-contextmenu";c().registerPlugin("contextmenu",u);var f=u},
1"./plugins/dash/index.js":function(e,t,n){"use strict";var i=function(){return a._(function(){var e,t;return S._(this,function(i){switch(i.label){case 0:return[4,n.e("dash").then(n.bind(n,"./plugins/dash/videojs-dash.js"))];case 1:return i.sent(),e=window.dashjs,t=function(t,n){e.MediaPlayer().create().on(e.MediaPlayer.events.PLAYBACK_STALLED,function(e){console.warn("PLAYBACK_STALLED",e)})},s().Html5DashJS.hook("beforeinitialize",t),[2,Promise.resolve()]}})})()};n.r(t),n.d(t,{default:function(){return i}});var r=n("../node_modules/video.js/dist/video.es-exposed.js"),s=n.n(r)},
1"./plugins/floating-player/index.js":function(e,t,n){"use strict";var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new c(this,e).init()};n.r(t),n.d(t,{default:function(){return i}});var r=n("./utils/positioning.js"),a=n("./utils/slicing.js"),s=n("./utils/assign.js");n("./plugins/floating-player/floating-player.scss");var u=n("./video-player.const.js"),l={fraction:.5,collapsedWidth:300,floatTo:"right"},c=function e(t){var n=this;o._(this,e);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(i=(0,s.assign)({},l,i)).floatTo&&i.floatTo!==u.FLOATING_TO.LEFT&&i.floatTo!==u.FLOATING_TO.RIGHT&&(i.floatTo=l.floatTo),this.player=t;var c=this.player.el(),d=(0,a.sliceProperties)(i,"fraction"),h=null,f=!1,p=!1;this.init=function(){y(),"object"===T._(n.player.ima)&&b()};var m=function(e){var t=document.createElement("div");for(e.appendChild(t);e.firstChild!==t;)t.appendChild(e.firstChild);return t},g=function(){window.removeEventListener("DOMContentLoaded",C,!1),window.removeEventListener("load",C,!1),window.removeEventListener("scroll",C,!1),window.removeEventListener("resize",C,!1)},v=function(){window.addEventListener("DOMContentLoaded",C,!1),window.addEventListener("load",C,!1),window.addEventListener("scroll",C,!1),window.addEventListener("resize",C,!1)},y=function(){n.player.on("play",C),n.player.on("play",v),n.player.on("dispose",g)},_=function(){var e=c.getBoundingClientRect();h.setAttribute("class","cld-video-player-floater cld-video-player-floater-bottom-".concat(i.floatTo)),h.setAttribute("style",["width: "+i.collapsedWidth+"px;","top: "+e.top+"px;","left: "+e.left+"px;","right: "+(document.documentElement.clientWidth-e.right)+"px;","bottom: "+(document.documentElement.clientHeight-e.bottom)+"px;"].join("")),p=!0},b=function(){var e=c.getBoundingClientRect();h=m(c);var t=m(h);t.setAttribute("class","cld-video-player-floater-inner"),t.setAttribute("style","padding-bottom: "+100*e.height/e.width+"%;");var n=document.createElement("button");n.setAttribute("class","cld-video-player-floater-close"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><polygon fill-rule="evenodd" points="370 7.41 368.59 6 364 10.59 359.41 6 358 7.41 362.59 12 358 16.59 359.41 18 364 13.41 368.59 18 370 16.59 365.41 12" transform="translate(-358 -6)"/></svg>',n.onclick=function(){E(),w()},h.appendChild(n)},k=function(){var e=n.player.ima;e&&e.adsActive&&e.getAdsManager().resize(f?h.clientWidth:c.clientWidth,f?h.clientHeight:c.clientHeight)},S=function(){h||b(),p||_(),f=!0,setTimeout(function(){h.classList.add("cld-video-player-floating"),k()})},E=function(){h.classList.remove("cld-video-player-floating"),f=!1,k()},w=function(){g(),n.player.off("play",C),n.player.off("play",v)},C=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:d.fraction})?f&&E():f||S()}}},
1"./plugins/ima/index.js":function(e,t,n){"use strict";var i=function(e,t){return a._(function(){var i;return S._(this,function(a){switch(a.label){case 0:return[4,n.e("ima").then(n.bind(n,"./plugins/ima/ima.js"))];case 1:if(a.sent(),i={contribAdsLoaded:(0,r.isFunction)(e.ads),imaAdsLoaded:("u"<typeof google?"undefined":T._(google))==="object"&&"object"===T._(google.ima)},t.ads&&(!i.contribAdsLoaded||!i.imaAdsLoaded))return i.contribAdsLoaded||console.log("contribAds is not loaded"),i.imaAdsLoaded||console.log("imaSdk is not loaded"),[2,!1];return e.ima({id:e.el().id,adTagUrl:t.ads.adTagUrl,disableFlashAds:!0,prerollTimeout:t.ads.prerollTimeout||5e3,postrollTimeout:t.ads.postrollTimeout||5e3,showCountdown:!1!==t.ads.showCountdown,adLabel:t.ads.adLabel||"Advertisement",locale:t.ads.locale||"en",autoPlayAdBreaks:!1!==t.ads.autoPlayAdBreaks,debug:t.ads.denug}),Object.keys(t.ads).length>0&&"object"===T._(e.ima)&&("first-video"===t.ads.adsInPlaylist?e.one(s.PLAYER_EVENT.SOURCE_CHANGED,function(){e.ima.playAdBreak()}):e.on(s.PLAYER_EVENT.SOURCE_CHANGED,function(){e.ima.playAdBreak()})),[2]}})})()};n.r(t),n.d(t,{default:function(){return i}});var r=n("./utils/type-inference.js"),s=n("./utils/consts.js")},
1"./plugins/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}}),n("../node_modules/videojs-per-source-behaviors/dist/videojs-per-source-behaviors.es.js"),n("./plugins/videojs-http-source-selector/plugin.js");var i=n("./plugins/ai-highlights-graph/index.js"),r=n("./plugins/analytics/index.js"),a=n("./plugins/autoplay-on-scroll/index.js"),s=n("./plugins/cloudinary/index.js"),o=n("./plugins/cloudinary-analytics/index.js"),u=n("./plugins/colors/index.js"),l=n("./plugins/context-menu/index.js"),c=n("./plugins/floating-player/index.js"),d=n("./plugins/paced-transcript/index.js"),h=n("./plugins/vtt-thumbnails/index.js"),f=n("./plugins/chapters/index.js"),p=n("./plugins/dash/index.js"),m=n("./plugins/ima/index.js"),g=n("./plugins/playlist/index.js"),v=n("./plugins/shoppable-plugin/index.js"),y=n("./plugins/styled-text-tracks/index.js"),_=n("./plugins/interaction-areas/index.js"),b={aiHighlightsGraph:i.default,analytics:r.default,autoplayOnScroll:a.default,cloudinary:s.default,cloudinaryAnalytics:o.default,colors:u.default,contextMenu:l.default,floatingPlayer:c.default,pacedTranscript:d.default,vttThumbnails:h.default,chapters:f.default,dashPlugin:p.default,imaPlugin:m.default,playlist:g.default,shoppable:v.default,styledTextTracks:y.default,interactionAreas:_.default}},
1"./plugins/interaction-areas/index.js":function(e,t,n){"use strict";var i=function(e,t,i){return a._(function(){return S._(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.e("interaction-areas").then(n.bind(n,"./plugins/interaction-areas/interaction-areas.service.js"))];case 1:return(0,r.sent().interactionAreasService)(e,t,i),[3,3];case 2:return console.error("Failed to load plugin:",r.sent()),[3,3];case 3:return[2]}})})()};n.r(t),n.d(t,{default:function(){return i}})},
1"./plugins/interaction-areas/interaction-areas.const.js":function(e,t,n){"use strict";n.r(t),n.d(t,{CLOSE_INTERACTION_AREA_LAYOUT_DELAY:function(){return h},DEFAULT_INTERACTION_ARE_TRANSITION:function(){return f},INTERACTION_AREAS_CONTAINER_CLASS_NAME:function(){return s},INTERACTION_AREAS_PREFIX:function(){return a},INTERACTION_AREAS_TEMPLATE:function(){return o},INTERACTION_AREAS_THEME:function(){return u},INTERACTION_AREA_HAND_ICON:function(){return d},INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME:function(){return r},TEMPLATE_INTERACTION_AREAS_VTT:function(){return l}});var i,r="cld-ia-layout-state",a="vp-ia",s="interaction-areas-container",o={PORTRAIT:"portrait",LANDSCAPE:"landscape",All:"all",CENTER:"center"},u={PULSING:"pulsing",SHADOWED:"shadowed"},l=(i={},c._(i,o.PORTRAIT,"https://res.cloudinary.com/prod/raw/upload/v1623772481/video-player/vtts/portrait.vtt"),c._(i,o.LANDSCAPE,"https://res.cloudinary.com/prod/raw/upload/v1623772303/video-player/vtts/landscape.vtt"),c._(i,o.All,"https://res.cloudinary.com/prod/raw/upload/v1623250266/video-player/vtts/all.vtt"),c._(i,o.CENTER,"https://res.cloudinary.com/prod/raw/upload/v1623250265/video-player/vtts/center.vtt"),i),d="https://res.cloudinary.com/prod/image/upload/v1626764643/video-player/interaction-area-hand.svg",h=4500,f=250},
1"./plugins/paced-transcript/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i=n("./plugins/cloudinary/common.js"),r=function(e){var t=this,n=t.cloudinary.source(),r={kind:e.kind||"captions",label:e.label||"Captions",default:e.default,srclang:e.srclang||"en",src:e.src||(0,i.getCloudinaryUrl)(n.publicId(),(0,i.extendCloudinaryConfig)(t.cloudinary.cloudinaryConfig(),{resource_type:"raw"}))+".transcript",maxWords:e.maxWords,wordHighlight:e.wordHighlight,timeOffset:e.timeOffset||0};t.textTrackDisplay.el().classList.add("cld-paced-text-tracks");var s=function(e){var t=[],n=function(e){var n=e.startTime,i=e.endTime,a=e.text;t.push({startTime:n+r.timeOffset,endTime:i+r.timeOffset,text:a})};return e.forEach(function(e){for(var i=function(e){r.wordHighlight?a.slice(e,Math.min(e+s,a.length)).forEach(function(t,i){n({startTime:t.start_time,endTime:t.end_time,text:a.slice(e,e+s).map(function(e){return e===t?"<b>".concat(e.word,"</b>"):e.word}).join(" ")}),a[i+1]&&t.end_time<a[i+1].start_time&&n({startTime:t.end_time,endTime:a[i+1].start_time,text:a.slice(e,e+s).map(function(e){return e.word}).join(" ")})}):t.push({startTime:a[e].start_time,endTime:a[Math.min(e+s-1,a.length-1)].end_time,text:a.slice(e,e+s).map(function(e){return e.word}).join(" ")})},a=e.words,s=r.maxWords||a.length,o=0;o<a.length;o+=s)i(o)}),t};t.one("loadedmetadata",function(){a._(function(){var e,n;return S._(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,fetch(r.src)];case 1:return[4,i.sent().json()];case 2:return e=s(i.sent()),n=t.addRemoteTextTrack({kind:r.kind,label:r.label,srclang:r.srclang,default:r.default,mode:r.default?"showing":"disabled"}),[4,new Promise(function(e){return setTimeout(e,100)})];case 3:return i.sent(),e.forEach(function(e){n.track.addCue(new VTTCue(e.startTime,e.endTime,e.text))}),[3,5];case 4:return console.error("Error loading transcription file:",i.sent()),[3,5];case 5:return[2]}})})()})}},
1"./plugins/playlist/index.js":function(e,t,n){"use strict";var i=function(e){return a._(function(){var t,i;return S._(this,function(r){switch(r.label){case 0:t=this,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.e("playlist").then(n.bind(n,"./plugins/playlist/playlist.js"))];case 2:return i=(0,r.sent().default)(t,e),t.cloudinary.playlist=i,[2,i];case 3:return console.error("Failed to load plugin:",r.sent()),[3,4];case 4:return[2]}})}).call(this)};n.r(t),n.d(t,{default:function(){return i}})},
1"./plugins/shoppable-plugin/index.js":function(e,t,n){"use strict";var i=function(e,t){return a._(function(){return S._(this,function(i){switch(i.label){case 0:return[4,n.e("shoppable").then(n.bind(n,"./components/shoppable-bar/shoppable-widget.js"))];case 1:return new(i.sent()).default(e,t.shoppable).init(),[2]}})})()};n.r(t),n.d(t,{default:function(){return i}})},
1"./plugins/styled-text-tracks/index.js":function(e,t,n){"use strict";var i=function(e){return a._(function(){var t;return S._(this,function(n){t=this;try{t.ready(function(){return(0,r.default)(e,t)})}catch(e){console.error("Failed to load plugin:",e)}return[2]})}).call(this)};n.r(t),n.d(t,{default:function(){return i}});var r=n("./plugins/styled-text-tracks/styled-text-tracks.js")},
1"./plugins/styled-text-tracks/styled-text-tracks.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var i=n("./utils/fontFace.js"),r=n("./utils/css-prefix.js");n("./plugins/styled-text-tracks/styled-text-tracks.scss");var a=function(e,t){var n={theme:e.theme||"default",fontFace:e.fontFace,fontSize:e.fontSize,gravity:e.gravity||"bottom",box:e.box,style:e.style,wordHighlightStyle:e.wordHighlightStyle},a=document.createElement("style");t.el_.appendChild(a);var s=t.textTrackDisplay.el().classList;s.forEach(function(e){e.startsWith("cld-styled-text-tracks")&&s.remove(e)}),s.add("cld-styled-text-tracks"),s.add("cld-styled-text-tracks-theme-".concat(n.theme)),n.gravity.split("-").forEach(function(e){s.add("cld-styled-text-tracks-gravity-".concat(e))});var o=function(e,t){if(Object.entries(e)){var n=Object.entries(e).reduce(function(e,t){var n=y._(t,2),i=n[0],r=n[1];return e+"".concat(i,": ").concat(r," !important; ")},"");a.innerHTML+="".concat(t," { ").concat(n," } ")}},u=function(e){o(e,"\n .".concat((0,r.playerClassPrefix)(t)," .vjs-text-track-cue > div,\n .").concat((0,r.playerClassPrefix)(t)," ::cue\n "))};if(n.fontFace&&((0,i.fontFace)(t.textTrackDisplay.el(),n.fontFace),u({"font-family":n.fontFace})),n.box){var l=n.box,c=l.x,d=l.y,h=l.width,f=l.height;o(m._({translate:"".concat(c||0," ").concat(d||0)},h?{width:h}:void 0,f?{height:f}:void 0),"\n .".concat((0,r.playerClassPrefix)(t)," .vjs-text-track-display.cld-styled-text-tracks,\n .").concat((0,r.playerClassPrefix)(t)," ::-webkit-media-text-track-display\n "))}n.fontSize&&u({"font-size":n.fontSize}),n.style&&u(n.style),n.wordHighlightStyle&&(o(n.wordHighlightStyle,".".concat((0,r.playerClassPrefix)(t)," .cld-paced-text-tracks .vjs-text-track-cue b")),o(n.wordHighlightStyle,"video::cue(b)"))}},
1"./plugins/videojs-http-source-selector/components/SourceMenuButton.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("./plugins/videojs-http-source-selector/components/SourceMenuItem.js"),u=function(e){function t(e,n){o._(this,t);var i=s._(this,t,[e,n]),r=i.player().qualityLevels();if(n&&n.default){if("low"===n.default)for(var a=0;a<r.length;a++)r[a].enabled=0===a;else if("high"===n.default)for(var u=0;u<r.length;u++)r[u].enabled=u===r.length-1}return i.player().qualityLevels().on("addqualitylevel",function(e){i.update(e)}),i.menuButton_.el_.setAttribute("aria-label","Source Selector Button"),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return r().dom.createEl("div",{className:"vjs-http-source-selector vjs-menu-button vjs-menu-button-popup vjs-control vjs-button"})}},{key:"createItems",value:function(){for(var e=[],t=this.player().qualityLevels(),n=[],i=0;i<t.length;i++){var r=t.length-(i+1),s=r===t.selectedIndex,o="".concat(r),u=r;t[r].height?(o="".concat(t[r].height,"p"),u=parseInt(t[r].height,10)):t[r].bitrate&&(o="".concat(Math.floor(t[r].bitrate/1e3)," kbps"),u=parseInt(t[r].bitrate,10)),n.indexOf(o)>=0||(n.push(o),e.push(new a.default(this.player_,{label:o,index:r,selected:s,sortVal:u})))}return t.length>1&&e.push(new a.default(this.player_,{label:"Auto",index:t.length,selected:!1,sortVal:99999})),e.sort(function(e,t){return e.options_.sortVal<t.options_.sortVal?1:e.options_.sortVal>t.options_.sortVal?-1:0}),e}}]),t}(r().getComponent("MenuButton"))},
1"./plugins/videojs-http-source-selector/components/SourceMenuItem.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=r().getComponent("MenuItem"),u=r().getComponent("Component"),c=function(e){function t(e,n){return o._(this,t),n.selectable=!0,n.multiSelectable=!1,s._(this,t,[e,n])}return f._(t,e),l._(t,[{key:"handleClick",value:function(){var e=this.options_;console.log("Changing quality to:",e.label),d._(h._(t.prototype),"handleClick",this).call(this);for(var n=this.player().qualityLevels(),i=e.index===n.length,r=0;r<n.length;r++)i||e.index===r?n[r].enabled=!0:n[r].enabled=!1;i?this.deselectRest(6):this.deselectRest(e.index)}},{key:"deselectRest",value:function(e){this.parentComponent_&&this.parentComponent_.children().forEach(function(t){t.selected(e===t.options_.index)})}},{key:"update",value:function(){var e=this.player().qualityLevels().selectedIndex;this.selected(this.options_.index===e)}}]),t}(a);u.registerComponent("SourceMenuItem",c);var p=c},
1"./plugins/videojs-http-source-selector/plugin.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("./plugins/videojs-http-source-selector/components/SourceMenuButton.js"),s=n("./plugins/videojs-http-source-selector/components/SourceMenuItem.js"),o={},u=r().registerPlugin||r().plugin,l=function(e){if(e.addClass("vjs-http-source-selector"),console.log("videojs-http-source-selector initialized!"),console.log("player.techName_:"+e.techName_),"Html5"!==e.techName_)return!1;e.on(["loadedmetadata"],function(){if("undefined"===e.videojs_http_source_selector_initialized||!0===e.videojs_http_source_selector_initialized)console.log("player.videojs_http_source_selector_initialized == true");else{console.log("player.videojs_http_source_selector_initialized == false"),e.videojs_http_source_selector_initialized=!0;var t=e.controlBar,n=t.getChild("fullscreenToggle");n?t.el().insertBefore(t.addChild("SourceMenuButton").el(),n.el()):t.el().appendChild(t.addChild("SourceMenuButton").el())}})},c=function(e){var t=this;this.ready(function(){l(t,r().obj.merge(o,e))}),r().registerComponent("SourceMenuButton",a.default),r().registerComponent("SourceMenuItem",s.default)};u("httpSourceSelector",c);var d=c},
1"./plugins/vtt-thumbnails/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i);n("./plugins/vtt-thumbnails/vtt-thumbnails.scss");var a={},s={},o=function(e,t){e.addClass("vjs-vtt-thumbnails"),e.vttThumbnails=new u(e,t)},u=function(){function e(e,t){return this.player=e,this.options=t,this.initializeThumbnails(),this}return e.prototype.src=function(e){this.resetPlugin(),this.options.src=e,this.initializeThumbnails()},e.prototype.detach=function(){this.resetPlugin()},e.prototype.resetPlugin=function(){this.thumbnailHolder&&this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder),delete this.vttData,delete this.thumbnailHolder,delete this.lastStyle},e.prototype.initializeThumbnails=function(){var e=this;this.options.src&&fetch(this.options.src).then(function(e){return e.text()}).then(function(t){e.vttData=e.processVtt(t),e.setupThumbnailElement()})},e.prototype.setupThumbnailElement=function(){var e=this.player.$(".vjs-progress-holder .vjs-mouse-display");this.thumbnailHolder=this.player.$(".vjs-vtt-thumbnail-display")||r().dom.createEl("div",void 0,{class:"vjs-vtt-thumbnail-display",style:"width: ".concat(this.vttData[0].css.width)}),this.thumbnailHolder.innerHTML="",this.thumbnailHolder.setAttribute("class","vjs-vtt-thumbnail-display"),e.appendChild(this.thumbnailHolder);var t=parseInt(this.vttData[0].css.width,10)/2,n=this.updateThumbnailStyle.bind(this);this.player.getDescendant(["controlBar","progressControl","seekBar","mouseTimeDisplay"]).update=function(e,i){var a=this,s=i*this.player_.duration(),o=e.width;n(s),this.getChild("timeTooltip").updateTime(e,i,s,function(){e.width*i<t?a.el_.style.left="".concat(t,"px"):e.width*i+t>o?a.el_.style.left="".concat(e.width-t,"px"):a.el_.style.left="".concat(e.width*i,"px")}),this.getChild("timeTooltip").write(r().time.formatTime(s))}},e.prototype.getStyleForTime=function(e){for(var t=0;t<this.vttData.length;++t){var n=this.vttData[t];if(e>=n.start&&e<n.end){if(n.css.url&&!s[n.css.url]){var i=new Image;i.src=n.css.url,s[n.css.url]=i}return n.css}}},e.prototype.updateThumbnailStyle=function(e){var t=this.getStyleForTime(e);if(t)this.thumbnailHolder.style.opacity="1";else{this.thumbnailHolder.style.opacity="0";return}if(!this.lastStyle||this.lastStyle!==t)for(var n in this.lastStyle=t,t)Object.prototype.hasOwnProperty.call(t,n)&&(this.thumbnailHolder.style[n]=t[n])},e.prototype.processVtt=function(e){var t=this,n=[];return e.split(/[\r\n][\r\n]/i).forEach(function(e){if(e.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?[\r\n]{1}.*/gi)){var i=e.split(/[\r\n]/i),r=i[0].split(/ ?--> ?/i),a=r[0],s=r[1],o=i[1].split("/").pop(),u=t.getVttCss(o);n.push({start:t.getSecondsFromTimestamp(a),end:t.getSecondsFromTimestamp(s),css:u})}}),n},e.prototype.getPropsFromDef=function(e){var t=e.split(/#xywh=/i),n=t[0],i=t[1].match(/[0-9]+/gi);return{x:i[0],y:i[1],w:i[2],h:i[3],image:n}},e.prototype.getVttCss=function(e){var t={};e=[this.options.src.split(/([^\/]*)$/gi).shift().trim(),e.trim()].join("/");var n=this.getPropsFromDef(e);return t.background='url("'+n.image+'") no-repeat -'+n.x+"px -"+n.y+"px",t.width=n.w+"px",t.height=n.h+"px",t.url=n.image,t},e.prototype.getSecondsFromTimestamp=function(e){var t=y._(e.split(":").map(parseFloat),3);return 60*t[0]*60+60*t[1]+t[2]},e}(),l=function(e){var t=this;this.ready(function(){o(t,r().obj.merge(a,e))})}},
1"./utils/apply-with-props.js":function(e,t,n){"use strict";var i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.order,s=void 0===i?null:i,o=t,u=function(n){var i=t[n];void 0!==i&&e[n]&&(0,a.isFunction)(e[n])&&e[n](i)};s&&(o=(0,r.assign)({},t),s.forEach(function(e){u(e),delete o[e]})),Object.keys(o).forEach(function(e){u(e)})};n.r(t),n.d(t,{applyWithProps:function(){return i}});var r=n("./utils/assign.js"),a=n("./utils/type-inference.js")},
1"./utils/array.js":function(e,t,n){"use strict";n.r(t),n.d(t,{castArray:function(){return i},forEach:function(){return r},map:function(){return s},some:function(){return a}});var i=function(e){return Array.isArray(e)?e:[e]},r=function(e,t){Array.isArray(e)&&e.length&&e.forEach(t)},a=function(e,t){return!!Array.isArray(e)&&!!e.length&&e.some(t)},s=function(e,t){if(Array.isArray(e)&&e.length)return e.map(t)}},
1"./utils/assign.js":function(e,t,n){"use strict";var i=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=Object).assign.apply(t,[e].concat(b._(i)))};n.r(t),n.d(t,{assign:function(){return i}})},
1"./utils/attributes-normalizer.js":function(e,t,n){"use strict";var i=function(e){var t=null;if(""===e)return!0;try{t=JSON.parse(e)}catch(e){}return t||(t=Number(e))?t:e};n.r(t),n.d(t,{normalizeAttributes:function(){return o}});var r=n("./utils/string.js"),a=/^(data-cld-)(\w+)/,s={},o=function(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,o=n.length-1;o>=0;o--){var u=n[o].name,l=n[o].value;u.match(a)&&(u=(0,r.camelize)(u.replace(a,"$2"))),l="boolean"==typeof e[u]?null!==l:(s[u]||function(e){return i(e)})(l),t[u]=l}return t}},
1"./utils/cloudinary.js":function(e,t,n){"use strict";var i=function(e){for(var t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],n="queryKey",i=/(?:^|&)([^&=]*)=?([^&]*)/g,r=({strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}).loose.exec(e),a={},s=14;s--;)a[t[s]]=r[s]||"";return a[n]={},a[t[12]].replace(i,function(e,t,i){t&&(a[n][t]=i)}),a};n.r(t),n.d(t,{addTextTracks:function(){return h},handleCldError:function(){return c},isKeyInTransformation:function(){return d}});var r=n("./plugins/cloudinary/common.js"),a=n("./utils/find.js"),s={method:"head"},o={method:"get",credentials:"include",headers:{"Content-Range":"bytes=0-0"}},u=function(e,t){e.videojs.error((0,r.cloudinaryErrorsConverter)({errorMsg:t.headers.get("x-cld-error")||"",publicId:e.currentPublicId(),cloudName:e.cloudinaryConfig().cloud_name,error:t,statusCode:t.status}))},l=function(e,t){console.log("Trying sources: ",t),t.forEach(function(e){e.try=!0}),e.videojs.autoplay(e.videojs.autoplay()||e.playWasCalled),e.videojs.src(t)},c=function(e,t){var n=t.fetchErrorUsingGet?o:s,a=e.videojs.cloudinary.getCurrentSources();a.length>0?Promise.all(a.map(function(e){return fetch(e.src,n)})).then(function(t){var n=t.reduce(function(e,t){if(t.status>=200&&t.status<399&&""!==t.url){var n=i(t.url);e.push(n.host+n.path)}return e},[]),s=t[0];if(n.length){var o=a.filter(function(e){var t=i(e.src);return -1!==n.indexOf(t.host+t.path)&&!0!==e.try});o&&o.length?l(e,o):(console.log("No urls left to try so stopping"),e.videojs.error({code:r.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources",statusCode:t.status}))}else u(e,s)}).catch(function(t){e.videojs.error({code:7,message:t&&t.message?t.message:"Failed to test sources"})}):e.videojs.error({code:r.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources"})},d=function(e,t){return!!e&&!!t&&(Array.isArray(e)?!!(0,a.find)(e,function(e){return d(e,t)}):e.getValue?!!e.getValue(t):!!e[t])},h=function(e,t){e.forEach(function(e){(e.maxWords||e.wordHighlight)&&t.pacedTranscript?t.pacedTranscript(e):e.src&&fetch(e.src,s).then(function(n){n.status>=200&&n.status<=399&&t.addRemoteTextTrack(e,!0)})})}},
1"./utils/consts.js":function(e,t,n){"use strict";n.r(t),n.d(t,{PLAYER_EVENT:function(){return i},SOURCE_TYPE:function(){return r}});var i={READY:"ready",PLAY:"play",PLAYING:"playing",PAUSE:"pause",SEEK:"seek",SEEKING:"seeking",MUTE:"mute",UNMUTE:"unmute",PAUSE_NO_SEEK:"pausenoseek",ERROR:"error",TIME_UPDATE:"timeupdate",RETRY_PLAYLIST:"retryplaylist",CAN_PLAY_THROUGH:"canplaythrough",CLD_SOURCE_CHANGED:"cldsourcechanged",SOURCE_CHANGED:"sourcechanged",LOADED_METADATA:"loadedmetadata",LOADED_DATA:"loadeddata",REFRESH_TEXT_TRACKS:"refreshTextTracks",PLAYLIST_CREATED:"playlistcreated",UP_COMING_VIDEO_SHOW:"upcomingvideoshow",UP_COMING_VIDEO_HIDE:"upcomingvideohide",PLAYLIST_ITEM_CHANGED:"playlistitemchanged",VOLUME_CHANGE:"volumechange",FLUID:"fluid",PLAYLIST_PANEL:"PlaylistPanel",ENDED:"ended",RESIZE:"resize",START:"start",VIDEO_LOAD:"videoload",PRODUCT_BAR_MIN:"productBarMin",SHOW_PRODUCTS_OVERLAY:"showProductsOverlay",SHOPPABLE_ITEM_CHANGED:"shoppableitemchanged",FULL_SCREEN_CHANGE:"fullscreenchange",PERCENTS_PLAYED:"percentsplayed",TIME_PLAYED:"timeplayed",PLAYER_LOAD:"playerload",DISPOSE:"dispose",QUALITY_CHANGED:"qualitychanged"},r={AUDIO:"AudioSource",VIDEO:"VideoSource"}},
1"./utils/css-prefix.js":function(e,t,n){"use strict";n.r(t),n.d(t,{CLASS_PREFIX:function(){return s},playerClassPrefix:function(){return u},setSkinClassPrefix:function(){return d},skinClass:function(){return l},skinClassPrefix:function(){return c}});var i=n("./utils/string.js"),r=n("./config/defaults.js"),a=n("./utils/find.js"),s="cld-video-player",o="".concat(s,"-skin-"),u=function(e){return"".concat(s,"-").concat(e.id_)},l=function(e){return"".concat(o).concat(e)},c=function(e){return(0,a.find)(e.el().classList,function(e){return(0,i.startsWith)(e,o)})},d=function(e,t){var n=c(e),i=!!t&&t.replace(o,""),a="";(a=i?l(i):e.options_.skin?l(e.options_.skin):l(r.default.skin))!==n&&(n&&e.removeClass(n),e.addClass(a)),i&&e.options_.skin!==i&&(e.options_.skin=i)}},
1"./utils/dom.js":function(e,t,n){"use strict";n.r(t),n.d(t,{addEventListener:function(){return c},createElement:function(){return s},elementsCreator:function(){return l},styleElement:function(){return u},wrap:function(){return a}});var i=n("./utils/array.js"),r=n("./utils/type-inference.js"),a=function(e,t){return e.parentNode.insertBefore(t,e),t.appendChild(e),t},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.setAttribute(a,t[a]);return(0,i.castArray)(n).forEach(function(e){return o(e,r)}),r},o=function(e,t){if((0,r.isElement)(e))t.appendChild(e);else if(e&&(void 0===e?"undefined":T._(e))!=="object"){var n=document.createTextNode(e);t.appendChild(n)}},u=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n]);return e},l=function(e){var t=Array.isArray(e.children)?e.children.map(l):e.children,n=(0,r.isElement)(e)?e:s(e.tag,e.attr,t);return e.onClick&&(e.event={name:"click",callback:e.onClick}),e.event&&n.addEventListener(e.event.name,e.event.callback,!1),e.style&&u(n,e.style),n},c=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},
1"./utils/find.js":function(e,t,n){"use strict";var i=function(e,t){return Array.prototype.find&&Array.isArray(e)?e.find(t):a(e,t)[0]},r=function(e,t){return Array.prototype.findIndex?e.findIndex(t):a(e,t)[1]},a=function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i,n,e))return[i,n]}return[void 0,-1]};n.r(t),n.d(t,{find:function(){return i},findElementAndIndex:function(){return a},findIndex:function(){return r}})},
1"./utils/fontFace.js":function(e,t,n){"use strict";n.r(t),n.d(t,{fontFace:function(){return a}});var i=n("../node_modules/webfontloader/webfontloader.js"),r=n.n(i),a=function(e,t){void 0===t&&(t="Inter"),t&&"inherit"!==t?(r().load({google:{families:[t]}}),e.style.fontFamily=t):"inherit"===t&&(e.style.fontFamily="inherit")}},
1"./utils/get-analytics-player-options.js":function(e,t,n){"use strict";n.r(t),n.d(t,{getAnalyticsFromPlayerOptions:function(){return d}});var i=n("./config/defaults.js"),r=n("../node_modules/lodash/isEmpty.js"),a=n.n(r),s=function(e){return!a()(e)||null},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{sourceTypes:e.sourceTypes,autoShowRecommendations:e.autoShowRecommendations,fontFace:e.fontFace,posterOptions:s(e.posterOptions),posterOptionsPublicId:e.posterOptions&&s(e.posterOptions.publicId)}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m._({chapters:e.chapters&&(e.chapters.url?"url":"inline-chapters"),recommendations:e.recommendations&&e.recommendations.length,shoppable:s(e.shoppable),shoppableProductsLength:e.shoppable&&e.shoppable.products&&e.shoppable.products.length},e.info?{sourceInfoTitle:e.info.title,sourceInfoSubtitle:e.info.subtitle,sourceInfoDescription:e.info.description}:{},e.textTracks?m._({textTracks:s(e.textTracks),pacedTextTracks:s(e.textTracks)&&JSON.stringify(e.textTracks||{}).includes('"maxWords":'),wordHighlight:s(e.textTracks)&&JSON.stringify(e.textTracks||{}).includes('"wordHighlight":')},e.textTracks.options?{styledTextTracksTheme:e.textTracks.options.theme,styledTextTracksFont:e.textTracks.options.fontFace,styledTextTracksFontSize:e.textTracks.options.fontSize,styledTextTracksGravity:e.textTracks.options.gravity,styledTextTracksBox:s(e.textTracks.options.box),styledTextTracksStyle:s(e.textTracks.options.style),styledTextTracksWordHighlightStyle:s(e.textTracks.options.wordHighlightStyle)}:{}):{})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{adsAdTagUrl:e.adTagUrl,adsShowCountdown:e.showCountdown,adsAdLabel:e.adLabel,adsLocale:e.locale,adsPrerollTimeout:e.prerollTimeout,adsPostrollTimeout:e.postrollTimeout,adsAdsInPlaylist:e.adsInPlaylist}},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{playlistWidgetDirection:e.direction,playlistWidgetTotal:e.total}},d=function(e){return Object.entries(m._({aiHighlightsGraph:e.aiHighlightsGraph,analytics:s(e.analytics),autoplay:e.autoplay,autoplayMode:e.autoplayMode,bigPlayButton:e.bigPlayButton,className:e.class,cloudinaryAnalytics:e.cloudinaryAnalytics,controls:e.controls,floatingWhenNotVisible:e.floatingWhenNotVisible,fluid:e.fluid,height:e.height,hideContextMenu:e.hideContextMenu,logoImageUrl:e.logoImageUrl,logoOnclickUrl:e.logoOnclickUrl,loop:e.loop,maxTries:e.maxTries,muted:e.muted,playbackRates:e.playbackRates,playedEventPercents:e.playedEventPercents,playedEventTimes:e.playedEventTimes,playsinline:e.playsinline,preload:e.preload,videoTimeout:e.videoTimeout,seekThumbnails:e.seekThumbnails,showJumpControls:e.showJumpControls,chaptersButton:e.chaptersButton,pictureInPictureToggle:e.pictureInPictureToggle,showLogo:e.showLogo,skin:e.skin,videoJS:s(e.videoJS),width:e.width,withCredentials:e.withCredentials,colors:e.colors&&JSON.stringify(e.colors),controlBar:JSON.stringify(e.controlBar)!==JSON.stringify(i.default.controlBar)&&JSON.stringify(e.controlBar)},o(e.cloudinary),u(e.source),l(e.ads),c(e.playlistWidget))).reduce(function(e,t){var n=y._(t,2),r=n[0],a=n[1];return a!==i.default[r]&&null!=a&&(e[r]=a),e},{})}},
1"./utils/groupBy.js":function(e,t,n){"use strict";n.r(t),n.d(t,{groupBy:function(){return i}});var i=function(e,t){return e.reduce(function(e,n,i){return i=t(n),Object.prototype.hasOwnProperty.call(e,i)?e[i].push(n):e[i]=[n],e},{})}},
1"./utils/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n("./utils/assign.js"),r=n("./utils/slicing.js"),a=n("./utils/positioning.js"),s=n("./utils/string.js"),o=n("./utils/cloudinary.js"),u=n("./utils/apply-with-props.js"),l=n("./utils/groupBy.js"),c=n("./utils/mixin.js"),d=n("./utils/fontFace.js"),h=n("./utils/playButton.js"),f=n("./utils/css-prefix.js"),p=n("./utils/attributes-normalizer.js"),m=i.assign({},i,r,a,s,o,d,h,l,u,c,f,p)},
1"./utils/mixin.js":function(e,t,n){"use strict";var i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return t(e)},function e(){o._(this,e)})};n.r(t),n.d(t,{mixin:function(){return i}})},
1"./utils/object.js":function(e,t,n){"use strict";n.r(t),n.d(t,{convertKeysToSnakeCase:function(){return u},get:function(){return a},omit:function(){return o},pick:function(){return s}});var i=n("../node_modules/lodash/snakeCase.js"),r=n.n(i),a=function(e,t,n){if(e&&(void 0===e?"undefined":T._(e))==="object"){var i=t.split("."),r=e,a=!0,s=!1,o=void 0;try{for(var u,l=i[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if(!Object.prototype.hasOwnProperty.call(r,c)||void 0===r[c])return n;r=r[c]}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}return r}return n},s=function(e,t){return t.reduce(function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t},{})},o=function(e,t){return Object.keys(e).reduce(function(n,i){var r=e[i];return t.includes(i)||(n[i]=r),n},{})},u=function(e){var t={},n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(e)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;t[r()(u)]=e[u]}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return t}},
1"./utils/playButton.js":function(e,t,n){"use strict";n.r(t),n.d(t,{playButton:function(){return i}});var i=function(e,t){"init"===t.bigPlayButton&&(e.classList.add("vjs-big-play-button-init-only"),t.bigPlayButton=!0)}},
1"./utils/positioning.js":function(e,t,n){"use strict";var i=function(e){var t=e.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,a=window.pageXOffset||i.scrollLeft||n.scrollLeft,s=i.clientTop||n.clientTop||0,o=i.clientLeft||n.clientLeft||0;return{top:Math.round(t.top+r-s),left:Math.round(t.left+a-o)}},r=function(e,t){var n={},r=i(e),a=e.offsetWidth,s=e.offsetHeight,o=r.top,u=r.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(o-l+s)/s)),n.x=Math.max(0,Math.min(1,(c-u)/a)),n},a=function(e,t){var n=t.fraction,r=i(e),a=r.left,s=r.top,o=e.offsetHeight,u=e.offsetWidth;return Math.max(0,Math.min(u,window.pageXOffset+window.innerWidth-a,a+u-window.pageXOffset))*Math.max(0,Math.min(u,window.pageYOffset+window.innerHeight-s,s+o-window.pageYOffset))/(u*o)>n},s=function(e,t,n){e.style.left="".concat(t,"px"),e.style.top="".concat(n,"px")};n.r(t),n.d(t,{getElementPosition:function(){return i},getPointerPosition:function(){return r},isElementInViewport:function(){return a},setPosition:function(){return s}})},
1"./utils/querystring.js":function(e,t,n){"use strict";n.r(t),n.d(t,{objectToQuerystring:function(){return i}});var i=function(e){var t=Object.keys(e);if(!t.length)return"";var n=t.map(function(t){return"".concat(t,"=").concat(e[t])}).join("&");return"?".concat(n)}},
1"./utils/slicing.js":function(e,t,n){"use strict";var i=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return i.reduce(function(n,i){return Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i],t&&delete e[i]),n},{})},r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e,!1].concat(b._(n)))},a=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.apply(void 0,[e,!0].concat(b._(n)))};n.r(t),n.d(t,{sliceAndUnsetProperties:function(){return a},sliceProperties:function(){return r}})},
1"./utils/string.js":function(e,t,n){"use strict";var i=function(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})},r=function(e,t,n){if(String.prototype.startsWith)return e.startsWith(t,n);var i=i||0;return e.indexOf(t,i)===i};n.r(t),n.d(t,{camelize:function(){return i},startsWith:function(){return r}})},
1"./utils/type-inference.js":function(e,t,n){"use strict";var i=function(e){return null!==e&&(void 0===e?"undefined":T._(e))==="object"&&"[object Object]"===Object.prototype.toString.call(e)},r=function(e){return p._(e,String)||"string"==typeof e},a=function(e){return p._(e,Number)||"number"==typeof e},s=function(e){return"number"==typeof e&&e%1==0},o=function(e){return"boolean"==typeof e},u=function(e){return p._(e,Element)},l=function(e){return"function"==typeof e},c=function(){return null};n.r(t),n.d(t,{isBoolean:function(){return o},isElement:function(){return u},isFunction:function(){return l},isInteger:function(){return s},isNumber:function(){return a},isPlainObject:function(){return i},isString:function(){return r},noop:function(){return c}})},
1"./validators/validators-functions.js":function(e,t,n){"use strict";n.r(t),n.d(t,{getValidatorItem:function(){return r},isValidConfig:function(){return s},isValueValid:function(){return a}});var i=n("./utils/type-inference.js"),r=function(e){return(0,i.isFunction)(e)?e():e},a=function(e,t,n){var i=r(e),a=i.value(t);return a||console.error("cloudinary video player: ".concat(i.message(n))),a},s=function(e,t){if((0,i.isPlainObject)(t)){for(var n in e)if(Object.prototype.hasOwnProperty.call(t,n)){var r=e[n],o=t[n],u=(0,i.isPlainObject)(r);if(u&&!s(r,o)||!u&&!a(o,r,n))return!1}}return!0}},
1"./validators/validators-types.js":function(e,t,n){"use strict";n.r(t),n.d(t,{validator:function(){return o}});var i=n("./utils/type-inference.js"),r=n("./validators/validators-functions.js"),a=n("./utils/array.js"),s=function(e){return(0,i.isPlainObject)(e)?":(".concat(Object.values(e).join("/"),")"):""},o={isString:function(e){return{value:i.isString,message:function(t){return"'".concat(t,"' should be a string").concat(s(e))}}},isNumber:function(e){return{value:i.isNumber,message:function(t){return"'".concat(t,"' should be a number").concat(s(e))}}},isBoolean:function(){return{value:i.isBoolean,message:function(e){return"'".concat(e,"' should be a boolean")}}},isFunction:function(){return{value:i.isFunction,message:function(e){return"'".concat(e,"' should be a function")}}},isPlainObject:function(){return{value:i.isPlainObject,message:function(e){return"'".concat(e,"' should be an object")}}},isObject:function(){return{value:function(e){return e&&(void 0===e?"undefined":T._(e))==="object"},message:function(e){return"'".concat(e,"' should be an object")}}},isArray:function(){return{value:Array.isArray,message:function(e){return"'".concat(e,"' should be an array")}}},isArrayOfNumbers:function(){return{value:function(e){return Array.isArray(e)&&e.every(i.isNumber)},message:function(e){return"'".concat(e,"' should be an array of numbers")}}},isArrayOfStrings:function(){return{value:function(e){return Array.isArray(e)&&e.every(i.isString)},message:function(e){return"'".concat(e,"' should be an array of strings")}}},isArrayOfObjects:function(e){return{value:function(t){return t.every(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n],a=e[n];if(!(a&&(0,r.isValueValid)(a(i),i,n)))return!1}return!0})},message:function(){return"invalid array"}}},or:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return{value:function(e){return(0,a.some)(t,function(t){return(0,r.getValidatorItem)(t).value(e)})},message:function(e){return(0,a.map)(t,function(t){return(0,r.getValidatorItem)(t).message(e)}).join(" or ")}}}}}},
1"./validators/validators.js":function(e,t,n){"use strict";n.r(t),n.d(t,{playerValidators:function(){return s},sourceValidators:function(){return o}});var i=n("./video-player.const.js"),r=n("./plugins/interaction-areas/interaction-areas.const.js"),a=n("./validators/validators-types.js"),s={videojsOptions:{loop:a.validator.isBoolean,controls:a.validator.isBoolean,autoplay:a.validator.isBoolean,autoplayMode:a.validator.isString(i.AUTO_PLAY_MODE),bigPlayButton:a.validator.isBoolean,playbackRates:a.validator.isArray,showLogo:a.validator.isBoolean,logoImageUrl:a.validator.isString,logoOnclickUrl:a.validator.isString,videoJS:a.validator.isPlainObject,maxTries:a.validator.isNumber,muted:a.validator.isBoolean,playsinline:a.validator.isBoolean,videoTimeout:a.validator.isNumber,preload:a.validator.isString,sourceTransformation:a.validator.isPlainObject,allowUsageReport:a.validator.isBoolean,interactionAreas:{theme:{template:a.validator.isString(r.INTERACTION_AREAS_THEME)},layout:{enable:a.validator.isBoolean,showAgain:a.validator.isBoolean}}},playerOptions:{queryParams:a.validator.isPlainObject,publicId:a.validator.isString,fluid:a.validator.isBoolean,analytics:a.validator.isBoolean,cloudinaryAnalytics:a.validator.isBoolean,hideContextMenu:a.validator.isBoolean,playedEventPercents:a.validator.isArrayOfNumbers,showJumpControls:a.validator.isBoolean,chaptersButton:a.validator.isBoolean,pictureInPictureToggle:a.validator.isBoolean,seekThumbnails:a.validator.isBoolean,aiHighlightsGraph:a.validator.isBoolean,floatingWhenNotVisible:a.validator.isString(i.FLOATING_TO),playedEventTimes:a.validator.isArray,playlistWidget:{direction:a.validator.isString,total:a.validator.isNumber},colors:{base:a.validator.isString,accent:a.validator.isString,text:a.validator.isString},ads:{adTagUrl:a.validator.isString,showCountdown:a.validator.isBoolean,adLabel:a.validator.isString,locale:a.validator.isString,prerollTimeout:a.validator.isNumber,postrollTimeout:a.validator.isNumber,adsInPlaylist:a.validator.isString(i.ADS_IN_PLAYLIST)},cloudinary:{autoShowRecommendations:a.validator.isBoolean,sourceTypes:a.validator.isArrayOfStrings,transformation:a.validator.isObject,fontFace:a.validator.isString,posterOptions:{publicId:a.validator.isString,transformation:a.validator.isObject}}}},o={raw_transformation:a.validator.isString,shoppable:a.validator.isPlainObject,withCredentials:a.validator.isBoolean,chapters:a.validator.or(a.validator.isBoolean,a.validator.isPlainObject),interactionAreas:{enable:a.validator.isBoolean,template:a.validator.or(a.validator.isString(r.INTERACTION_AREAS_TEMPLATE),a.validator.isArray),vttUrl:a.validator.isString,onClick:a.validator.isFunction},textTracks:{options:{theme:a.validator.isString,fontFace:a.validator.isString,fontSize:a.validator.isString,gravity:a.validator.isString,box:a.validator.isPlainObject,style:a.validator.isPlainObject,wordHighlightStyle:a.validator.isPlainObject},captions:{label:a.validator.isString,language:a.validator.isString,default:a.validator.isBoolean,url:a.validator.isString,maxWords:a.validator.isNumber,wordHighlight:a.validator.isBoolean,timeOffset:a.validator.isNumber},subtitles:a.validator.isArrayOfObjects({label:a.validator.isString,language:a.validator.isString,default:a.validator.isBoolean,url:a.validator.isString,maxWords:a.validator.isNumber,wordHighlight:a.validator.isBoolean,timeOffset:a.validator.isNumber})},info:{title:a.validator.isString,subtitle:a.validator.isString,description:a.validator.isString},cloudinary:{sourceTypes:a.validator.isArrayOfStrings,transformation:a.validator.isObject}}},
1"./video-player-profile.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s},getProfile:function(){return r}});var i=n("./video-player.js"),r=function(e,t){return a._(function(){var e;return S._(this,function(i){switch(i.label){case 0:return[4,n.e("defaultProfiles").then(n.bind(n,"./config/profiles/index.js"))];case 1:if(Object.keys(e=i.sent().defaultProfiles).includes(t))return[2,e[t]];return[4,fetch(t,{method:"GET"}).then(function(e){return e.json()})];case 2:return[2,i.sent()]}})})()},s=function(e,t,n){return a._(function(){var a,s,o,u,l;return S._(this,function(c){switch(c.label){case 0:if(!t.profile)throw Error('VideoPlayerProfile method requires "profile" property');c.label=1;case 1:return c.trys.push([1,3,,4]),[4,r(t.cloud_name,t.profile)];case 2:return s=Object.assign({},(a=c.sent()).playerOptions,t),u=(o=new i.default(e,s,n)).source,o.source=function(e,t){var n=Object.assign({},a.sourceOptions,t);return u.call(o,e,n)},[2,o];case 3:throw l=c.sent(),new i.default(e,t).videojs.error("Invalid profile"),l;case 4:return[2]}})})()}},
1"./video-player.const.js":function(e,t,n){"use strict";n.r(t),n.d(t,{ADS_IN_PLAYLIST:function(){return h},AUTO_PLAY_MODE:function(){return c},CLOUDINARY_CONFIG_PARAM:function(){return o},CLOUDINARY_PARAMS:function(){return a},DEFAULT_HLS_OPTIONS:function(){return u},FLOATING_TO:function(){return d},FLUID_CLASS_NAME:function(){return l},PLAYER_PARAMS:function(){return s},PRELOAD:function(){return f}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations","fontFace","secure"],s=a.concat(["publicId","source","autoplayMode","playedEventPercents","playedEventTimes","analytics","cloudinaryAnalytics","allowUsageReport","fluid","ima","playlistWidget","hideContextMenu","colors","floatingWhenNotVisible","ads","showJumpControls","chaptersButton","pictureInPictureToggle","textTracks","qualitySelector","fetchErrorUsingGet","withCredentials","seekThumbnails","aiHighlightsGraph","chapters","queryParams"]),o=["cloud_name","secure","private_cdn","
1secure_distribution","cdn_subdomain","secure_cdn_subdomain","cname","shorten","sign_url","api_secret","url_suffix","use_root_path","auth_token"],u={html5:{handlePartialData:!1,vhs:{overrideNative:!r()||!r().browser||!r().browser.IS_IOS&&!r().browser.IS_SAFARI}}},l="cld-fluid",c={ALWAYS:"always",ON_SCROLL:"on-scroll",NEVER:"never"},d={LEFT:"left",RIGHT:"right",NONE:"none"},h={FIRST_VIDEO:"first-video",EVERY_VIDEO:"every-video"},f={AUTO:"auto",METADATA:"metadata",NONE:"none"}},
1"./video-player.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return U}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),d=n("../node_modules/uuid/dist/esm-browser/v4.js"),h=n("../node_modules/lodash/isEmpty.js"),y=n.n(h);n("./components/index.js");var _=n("./plugins/index.js"),k=n("./utils/index.js"),E=n("./config/defaults.js"),w=n("./mixins/eventable.js"),C=n("./extended-events.js"),x=n("./plugins/cloudinary/models/video-source/video-source.js"),A=n("./utils/type-inference.js"),I=n("./video-player.utils.js"),P=n("./video-player.const.js"),L=n("./validators/validators-functions.js"),j=n("./validators/validators.js"),O=n("./utils/object.js"),D=n("./utils/consts.js"),R=n("./utils/get-analytics-player-options.js"),N=n("./plugins/cloudinary/common.js"),M=n("./components/qualitySelector/qualitySelector.js");Object.keys(_.default).forEach(function(e){r().registerPlugin(e,_.default[e])}),(0,I.overrideDefaultVideojsComponents)();var U=function(e){function t(e,n,i){var a;return(o._(this,t),a=s._(this,t),c._(a,"_clearTimeOut",function(){a.videojs.clearTimeout(a.reTryId)}),a.nbCalls=0,a.videoElement=(0,I.getResolveVideoElement)(e),a.options=(0,I.extractOptions)(a.videoElement,n),a._videojsOptions=a.options.videojsOptions,a.videoElement.classList.add("video-js"),k.default.fontFace(a.videoElement,a.playerOptions.cloudinary.fontFace),k.default.playButton(a.videoElement,a._videojsOptions),a.videojs=r()(a.videoElement,a._videojsOptions),a._isPlayerConfigValid=!0,(0,L.isValidConfig)(a.options,j.playerValidators),a._isPlayerConfigValid)?(a._videojsOptions.muted&&a.videojs.volume(.4),a.playerOptions.fluid&&a.fluid(a.playerOptions.fluid),a._setCssClasses(),a._initPlugins(),a._initJumpButtons(),a._initPictureInPicture(),a._setVideoJsListeners(i),a):(a.videojs.error("invalid player configuration"),v._(a))}return f._(t,e),l._(t,[{key:"playerOptions",get:function(){return this.options.playerOptions}},{key:"getVPInstanceId",value:function(){return this.vpInstanceId||(this.vpInstanceId=(0,d.default)()),this.vpInstanceId}},{key:"_sendInternalAnalytics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=k.default.assign({},this.playerOptions,this.options.videojsOptions,e);if(t.allowUsageReport)try{var n=(0,R.getAnalyticsFromPlayerOptions)(t),i=new URLSearchParams(n).toString(),r=new URLSearchParams({vpVersion:"1.11.1",vpInstanceId:this.getVPInstanceId(),cloudName:t.cloudinary.cloudinaryConfig.cloud_name}).toString();fetch("".concat("https://analytics-api-s.cloudinary.com","/video_player_source?").concat(i,"&").concat(r))}catch(e){}}},{key:"_setVideoJsListeners",value:function(e){var t=this;this.videojs.on(D.PLAYER_EVENT.ERROR,function(){var e=t.videojs.error();if(e){var n=t._isPlayerConfigValid&&t.videojs.cloudinary.currentSourceType();[3===e.code&&r().browser.IS_SAFARI,4===e.code].includes(!0)&&[D.SOURCE_TYPE.AUDIO,D.SOURCE_TYPE.VIDEO].includes(n)?(t.videojs.error(null),k.default.handleCldError(t,t.playerOptions)):t._clearTimeOut()}}),this.videojs.tech_.on(D.PLAYER_EVENT.RETRY_PLAYLIST,function(){(0,O.get)(t.videojs,"hls.stats.mediaRequestsErrored",0)>0&&(t._clearTimeOut(),k.default.handleCldError(t,t.playerOptions))}),this.videojs.on(D.PLAYER_EVENT.PLAY,this._clearTimeOut),this.videojs.on(D.PLAYER_EVENT.CAN_PLAY_THROUGH,this._clearTimeOut),this.videojs.on(D.PLAYER_EVENT.CLD_SOURCE_CHANGED,this._onSourceChange.bind(this)),this.videojs.ready(function(){t._onReady(),e&&e(t)})}},{key:"_initPlugins",value:function(){this._initIma(),this._initAutoplay(),this._initContextMenu(),this._initPerSrcBehaviors(),this._initCloudinary(),this._initAnalytics(),this._initCloudinaryAnalytics(),this._initFloatingPlayer(),this._initColors(),this._initTextTracks(),this._initHighlightsGraph(),this._initSeekThumbs(),this._initChapters(),this._initInteractionAreas()}},{key:"_isFullScreen",value:function(){return this.videojs.player().isFullscreen()}},{key:"_initIma",value:function(){this.playerOptions.ads&&0!==Object.keys(this.playerOptions.ads).length&&_.default.imaPlugin(this.videojs,this.playerOptions)}},{key:"setTextTracks",value:function(e){var t=this.videojs.remoteTextTracks();if(t)for(var n=t.tracks_.length-1;n>=0;n--)this.videojs.removeRemoteTextTrack(t.tracks_[n]);if(e){var i=Object.keys(e),r=[],a=!0,s=!1,o=void 0;try{for(var u,l=i[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if("options"!==c){var d=Array.isArray(e[c])?e[c]:[e[c]],h=!0,f=!1,p=void 0;try{for(var v,y=d[Symbol.iterator]();!(h=(v=y.next()).done);h=!0){var _=v.value;r.push(g._(m._({},_),{kind:c,label:_.label,srclang:_.language,default:!!_.default,src:_.url}))}}catch(e){f=!0,p=e}finally{try{h||null==y.return||y.return()}finally{if(f)throw p}
1}}}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}k.default.addTextTracks(r,this.videojs),e.options&&this.videojs.styledTextTracks&&this.videojs.styledTextTracks(e.options)}}},{key:"_initSeekThumbs",value:function(){var e=this;this.playerOptions.seekThumbnails&&this.videojs.on(D.PLAYER_EVENT.CLD_SOURCE_CHANGED,function(t,n){var i=n.source;if(!(!i||i.getType()===D.SOURCE_TYPE.AUDIO||(0,N.isRawUrl)(i.publicId()))&&(!e.videojs.activePlugins_||!e.videojs.activePlugins_.vr)){var r=i.publicId(),a=k.default.assign({},i.transformation());a&&(delete a.streaming_profile,delete a.video_codec),a.flags=a.flags||[],a.flags.push("sprite");var s=i.config().url("".concat(r,".vtt"),{transformation:a}).replace(/\.json$/,"");(0,A.isFunction)(e.videojs.vttThumbnails)?e.videojs.vttThumbnails({src:s}):e.videojs.vttThumbnails.src(s)}})}},{key:"_initHighlightsGraph",value:function(){var e=this;this.playerOptions.aiHighlightsGraph&&this.videojs.on(D.PLAYER_EVENT.CLD_SOURCE_CHANGED,function(t,n){var i=n.source;if(!(!i||i.getType()===D.SOURCE_TYPE.AUDIO||(0,N.isRawUrl)(i.publicId()))){var r=i.publicId(),a=(0,O.pick)(i.transformation(),["start_offset","end_offset","duration"]),s=k.default.assign({},a);s.effect="preview",s.flags=s.flags||[],s.flags.push("getinfo");var o=i.config().url("".concat(r),{transformation:s}).replace(/\.json$/,"");(0,A.isFunction)(e.videojs.aiHighlightsGraph)?e.videojs.aiHighlightsGraph({src:o}):e.videojs.aiHighlightsGraph.src(o)}})}},{key:"_initChapters",value:function(){var e=this;!this.playerOptions.chaptersButton&&this.videojs.controlBar&&this.videojs.controlBar.removeChild("chaptersButton"),this.videojs.on(D.PLAYER_EVENT.CLD_SOURCE_CHANGED,function(t,n){var i=n.source;(!y()(i._chapters)||!0===i._chapters)&&e.videojs.chapters&&((0,A.isFunction)(e.videojs.chapters)?e.videojs.chapters(i._chapters):e.videojs.chapters.src(i._chapters))})}},{key:"_initInteractionAreas",value:function(){var e=this;this.videojs.on(D.PLAYER_EVENT.READY,function(){return a._(function(){return S._(this,function(e){return this.options.videojsOptions.interactionDisplay&&this.videojs.interactionAreas&&this.videojs.interactionAreas(this,this.playerOptions,this._videojsOptions),[2]})}).call(e)})}},{key:"_initColors",value:function(){this.videojs.colors(this.playerOptions.colors?{colors:this.playerOptions.colors}:{})}},{key:"_initQualitySelector",value:function(){var e=this;this.videojs.controlBar&&!1!==this.playerOptions.qualitySelector&&(this.videojs.httpSourceSelector({default:"auto"}),this.videojs.on(D.PLAYER_EVENT.LOADED_METADATA,function(){M.default.init(e.videojs)}),this.videojs.on(D.PLAYER_EVENT.LOADED_DATA,function(){M.default.setVisibility(e.videojs)}))}},{key:"_initTextTracks",value:function(){var e=this;this.videojs.on(D.PLAYER_EVENT.CLD_SOURCE_CHANGED,function(t,n){var i=n.source;e.setTextTracks(i._textTracks)})}},{key:"_initPerSrcBehaviors",value:function(){this.videojs.perSourceBehaviors&&this.videojs.perSourceBehaviors()}},{key:"_initJumpButtons",value:function(){!this.playerOptions.showJumpControls&&this.videojs.controlBar&&(this.videojs.controlBar.removeChild("JumpForwardButton"),this.videojs.controlBar.removeChild("JumpBackButton"))}},{key:"_initPictureInPicture",value:function(){!this.playerOptions.pictureInPictureToggle&&this.videojs.controlBar&&this.videojs.controlBar.removeChild("pictureInPictureToggle")}},{key:"_initCloudinary",value:function(){var e=this.playerOptions.cloudinary.cloudinaryConfig;e.chainTarget=this,!1!==e.secure&&(0,N.extendCloudinaryConfig)(e,{secure:!0}),this.videojs.cloudinary(this.playerOptions.cloudinary)}},{key:"_initAnalytics",value:function(){var e=this.playerOptions.analytics;if(!window.ga&&e)return void console.error("Google Analytics script is missing");if(e){var t=(void 0===e?"undefined":T._(e))==="object"?e:{};this.videojs.analytics(t)}}},{key:"_initCloudinaryAnalytics",value:function(){this.playerOptions.cloudinaryAnalytics&&(this.videojs.videoElement=this.videoElement,this.videojs.cloudinaryAnalytics())}},{key:"reTryVideo",value:function(e,t){var n=this;if(!this.isVideoReady())if(this.nbCalls<e)this.nbCalls++,this.reTryId=this.videojs.setTimeout(function(){return n.reTryVideo(e,t)},t);else{var i=Error("Video is not ready please try later");this.videojs.trigger("error",i)}}},{key:"isVideoReady",value:function(){return this.videojs.readyState()>=(/iPad|iPhone|iPod/.test(navigator.userAgent)?1:4)&&(this.nbCalls=0,!0)}},{key:"_initAutoplay",value:function(){"on-scroll"===this.playerOptions.autoplayMode&&this.videojs.autoplayOnScroll()}}
1,{key:"_initContextMenu",value:function(){this.playerOptions.hideContextMenu||this.videojs.contextMenu(E.default.contextMenu)}},{key:"_initFloatingPlayer",value:function(){this.playerOptions.floatingWhenNotVisible!==P.FLOATING_TO.NONE&&this.videojs.floatingPlayer({floatTo:this.playerOptions.floatingWhenNotVisible})}},{key:"_setCssClasses",value:function(){this.videojs.addClass(k.default.CLASS_PREFIX),this.videojs.addClass(k.default.playerClassPrefix(this.videojs)),k.default.setSkinClassPrefix(this.videojs,k.default.skinClassPrefix(this.videojs))}},{key:"_onReady",value:function(){this._setExtendedEvents();var e=this.playerOptions.source||this.playerOptions.publicId;e&&this.source(e,this.playerOptions)}},{key:"_onSourceChange",value:function(){this._sendInternalAnalytics(),this._initQualitySelector()}},{key:"_setExtendedEvents",value:function(){var e=this,t=[];this.playerOptions.playedEventPercents&&t.push({type:D.PLAYER_EVENT.PERCENTS_PLAYED,percents:this.playerOptions.playedEventPercents}),this.playerOptions.playedEventTimes&&t.push({type:D.PLAYER_EVENT.TIME_PLAYED,times:this.playerOptions.playedEventTimes}),t.push.apply(t,[D.PLAYER_EVENT.SEEK,D.PLAYER_EVENT.MUTE,D.PLAYER_EVENT.UNMUTE,D.PLAYER_EVENT.QUALITY_CHANGED]);var n=new C.default(this.videojs,{events:t});Object.keys(n.events).forEach(function(t){n.on(t,function(n,i){e.videojs.trigger({type:t,eventData:i})})})}},{key:"cloudinaryConfig",value:function(e){return this.videojs.cloudinary.cloudinaryConfig(e)}},{key:"currentPublicId",value:function(){return this.videojs.cloudinary.currentPublicId()}},{key:"currentSourceUrl",value:function(){return this.videojs.currentSource().src}},{key:"currentPoster",value:function(){return this.videojs.cloudinary.currentPoster()}},{key:"source",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=(t=(0,N.normalizeOptions)(e,n)).publicId,n=t.options,this._isPlayerConfigValid){if(!(0,L.isValidConfig)(n,j.sourceValidators))return void this.videojs.error("invalid source configuration");if(this._sendInternalAnalytics({source:n}),p._(e,x.default))return this.videojs.cloudinary.source(e,n);n.shoppable&&this.videojs.shoppable&&this.videojs.shoppable(this.videojs,n),this.playerOptions.allowUsageReport&&(n.usageReport=!0),clearTimeout(this.reTryId),this.nbCalls=0;var i=this.videojs.options_.maxTries||3,r=this.videojs.options_.videoTimeout||55e3;return this.reTryVideo(i,r),this.videojs.cloudinary.source(e,n)}}},{key:"posterOptions",value:function(e){return this.videojs.cloudinary.posterOptions(e)}},{key:"skin",value:function(e){return void 0!==e&&(0,A.isString)(e)&&k.default.setSkinClassPrefix(this.videojs,e),k.default.skinClassPrefix(this.videojs)}},{key:"playlist",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=k.default.assign({},n,{playlistWidget:this.playerOptions.playlistWidget}),this.videojs.one(D.PLAYER_EVENT.READY,function(){return a._(function(){return S._(this,function(t){switch(t.label){case 0:return[4,this.videojs.playlist(n)];case 1:return t.sent()(e,n),[2]}})}).call(t)}),this.videojs.cloudinary.playlist?this.videojs.cloudinary.playlist(e,n):this}},{key:"playlistByTag",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=k.default.assign({},n,{playlistWidget:this.playerOptions.playlistWidget}),new Promise(function(i){t.videojs.one(D.PLAYER_EVENT.READY,function(){return a._(function(){var t;return S._(this,function(r){switch(r.label){case 0:return[4,this.videojs.playlist(n)];case 1:return t=r.sent(),[4,this.sourcesByTag(e,n)];case 2:return t.apply(void 0,[r.sent(),n]),i(this),[2]}})}).call(t)})})}},{key:"sourcesByTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.sourcesByTag(e,t)}},{key:"fluid",value:function(e){return void 0===e?this.videojs.fluid():(e?this.videojs.addClass(P.FLUID_CLASS_NAME):this.videojs.removeClass(P.FLUID_CLASS_NAME),this.videojs.fluid(e),this.videojs.trigger(D.PLAYER_EVENT.FLUID,e),this)}},{key:"play",value:function(){return this.playWasCalled=!0,this.videojs.play(),this}},{key:"stop",value:function(){return this.pause(),this.currentTime(0),this}},{key:"playPrevious",value:function(){return this.playlist().playPrevious(),this}},{key:"playNext",value:function(){return this.playlist().playNext(),this}},{key:"transformation",value:function(e){return this.videojs.cloudinary.transformation(e)}},{key:"sourceTypes",value:function(e){return this.videojs.cloudinary.sourceTypes(e)}},{key:"sourceTransformation",value:function(e){return this.videojs.cloudinary.sourceTransformation(e)}},{key:"autoShowRecommendations",value:function(e){return this.videojs.cloudinary.autoShowRecommendations(e)}},{key:"duration",value:function(){return this.videojs.duration()}},{key:"height",value:function(e){return e?(this.videojs.height(e),this):this.videojs.height()}},{key:"width",value:function(e){return e?(this.videojs.width(e),this):this.videojs.width()}},{key:"volume",value:function(e){return e?(this.videojs.volume(e),this):this.videojs.volume()}},{key:"mute",value:function(){return this.isMuted()||this.videojs.muted(!0),this}},{key:"unmute",value:function(){return this.isMuted()&&this.videojs.muted(!1),this}},{key:"isMuted",value:function(){return this.videojs.muted()}},{key:"pause",value:function(){return this.videojs.pause(),this}},{key:"currentTime",value:function(e){return e||0===e?(this.videojs.currentTime(e),this):this.videojs.currentTime()}},{key:"maximize",value:function(){return this.isMaximized()||this.videojs.requestFullscreen(),this}},{key:"exitMaximize",value:function(){return this.isMaximized()&&this.videojs.exitFullscreen(),this}},{key:"isMaximized",value:function(){return this.videojs.isFullscreen()}},{key:"dispose",value:function(){this.videojs.dispose()}},{key:"controls",value:function(e){return void 0===e?this.videojs.controls():(this.videojs.controls(e),this)}},{key:"ima",value:function(){return{playAd:this.videojs.ima.playAd}}},{key:"loop",value:function(e){return void 0===e?this.videojs.loop():(this.videojs.loop(e),this)}},{key:"el",value:function(){return this.videojs.el()}}],[{key:"all",value:function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=document.querySelectorAll(e);return b._(a).map(function(e){return u._(t,[e].concat(b._(i)))})}}]),t}(k.default.mixin(w.default))},
1"./video-player.utils.js":function(e,t,n){"use strict";n.r(t),n.d(t,{addMetadataTrack:function(){return d},extractOptions:function(){return m},getResolveVideoElement:function(){return f},isLight:function(){return h},normalizeAutoplay:function(){return p},overrideDefaultVideojsComponents:function(){return g}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a=n("./utils/index.js"),s=n("./config/defaults.js"),o=n("./video-player.const.js"),u=n("./utils/type-inference.js"),l=n("../node_modules/css.escape/css.escape.js"),c=n.n(l),d=function(e,t){return e.addRemoteTextTrack({kind:"metadata",srclang:"en",src:t,default:!0},!0).track},h=function(e){return e.class.indexOf("cld-video-player-skin-light")>-1||"light"===e.skin},f=function(e){if((0,u.isString)(e)){var t=e;0===t.indexOf("#")&&(t=t.slice(1));try{e=document.querySelector("#".concat(c()(t)))||r().getPlayer(t)}catch(t){e=null}if(!e)throw Error("Could not find element with id ".concat(t))}if(e.tagName){if("VIDEO"!==e.tagName)throw Error("Element is not a video tag.")}else throw Error("Must specify either an element or an element id.");return e},p=function(e){var t=e.autoplayMode;if(t)switch(t){case o.AUTO_PLAY_MODE.ALWAYS:e.autoplay=!0;break;case o.AUTO_PLAY_MODE.ON_SCROLL:case o.AUTO_PLAY_MODE.NEVER:default:e.autoplay=!1}},m=function(e,t){var n,i,u=a.default.normalizeAttributes(e);(r().dom.hasClass(e,o.FLUID_CLASS_NAME)||r().dom.hasClass(e,"vjs-fluid"))&&(t.fluid=!0),p(t=a.default.assign({},o.DEFAULT_HLS_OPTIONS,s.default,u,t));var l=(n=a.default).sliceAndUnsetProperties.apply(n,[t].concat(b._(o.PLAYER_PARAMS)));return l.cloudinary=(i=a.default).sliceAndUnsetProperties.apply(i,[l].concat(b._(o.CLOUDINARY_PARAMS))),t.videojs&&(a.default.assign(t,t.videojs),delete t.videojs),{playerOptions:l,videojsOptions:t}},g=function(){var e=r().getComponent("Player").prototype.options_.children;e.push("titleBar");var t=r().getComponent("ControlBar");t&&((e=t.prototype.options_.children).splice(e.indexOf("progressControl"),0,"spacer","progressControlEventsBlocker"),e.splice(e.indexOf("playToggle"),1,"playToggle","JumpBackButton","JumpForwardButton"),e.push("logoButton"),e.splice(e.indexOf("skipForward"),1),e.splice(e.indexOf("skipBackward"),1));var n=r().getComponent("SeekBar");n&&!n.prototype.options_.children.includes("mouseTimeDisplay")&&n.prototype.options_.children.splice(1,0,"mouseTimeDisplay")}},
vendor: 10,999 bytes, line 1
1"../node_modules/cloudinary-video-analytics/dist/main.js":function(e){self,e.exports=function(){"use strict";var e,t=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i},n=function(){if(!e&&!(e="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(k)},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(S[e[t+0]]+S[e[t+1]]+S[e[t+2]]+S[e[t+3]]+"-"+S[e[t+4]]+S[e[t+5]]+"-"+S[e[t+6]]+S[e[t+7]]+"-"+S[e[t+8]]+S[e[t+9]]+"-"+S[e[t+10]]+S[e[t+11]]+S[e[t+12]]+S[e[t+13]]+S[e[t+14]]+S[e[t+15]]).toLowerCase()},r=function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n},a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e},s=function(e,t,n){var i;return(i=function(e,t){if("object"!==D(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==D(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"===D(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},o=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i},u=function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n},l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e},c=function(e,t,n){var i;return(i=function(e,t){if("object"!==M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==M(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"===M(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},d={d:function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},h={};function f(e){return(f="function"==typeof Symbol&&"symbol"==T._(Symbol.iterator)?function(e){return void 0===e?"undefined":T._(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":T._(e)})(e)}d.r(h),d.d(h,{connectCloudinaryAnalytics:function(){return q}});for(var p="pause",m=function(e,t){var n=function(){t("play",{})};return e.addEventListener("play",n),function(){e.removeEventListener("play",n)}},g=function(e,t){var n=function(){t(p,{})};e.addEventListener("pause",n);var i=function(){t(p,{})};return e.addEventListener("emptied",i),function(){e.removeEventListener("play",n),e.removeEventListener("emptied",i)}},v=function(e,t){var n=function(){var n,i;t("loadMetadata",{videoDuration:{videoDuration:1/0===(i=Number.isNaN(n=e.duration)?null:n)?"Infinity":i}.videoDuration})};return e.addEventListener("loadedmetadata",n),e.addEventListener("loadedmetadata_after_init",n),function(){e.removeEventListener("loadedmetadata",n),e.removeEventListener("loadedmetadata_after_init",n)}},y=function(e,t){return{eventName:e,eventTime:Date.now(),eventDetails:t}},_=function(e){var n={},i={};return function(r,a){n[r]=[],i[r]=[a];var s=n[r],o=i[r],u=function(e,t){return o.push(y(e,t))},l=[m(e,u),g(e,u),v(e,u)];if(e.readyState>0){var c=new CustomEvent("loadedmetadata_after_init");e.dispatchEvent(c)}return{flushEvents:function(){var e=o.splice(0,o.length);return s.splice.apply(s,[s.length,0].concat(function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return t(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),e},getAllEvents:function(){return s},destroy:function(){l.forEach(function(e){return e()})}}}},b={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},k=new Uint8Array(16),S=[],E=0;E<256;++E)S.push((E+256).toString(16).slice(1));var w=function(e,t,r){if(b.randomUUID&&!t&&!e)return b.randomUUID();var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=a[s];return t}return i(a)},C=function(){return w().replace(/-/g,"")},x="cld-analytics-user-id",A=function(){var e=window.localStorage.getItem(x);if(e)return e;var t=w().replace(/-/g,"");return window.localStorage.setItem(x,t),t};function I(e){return(I="function"==typeof Symbol&&"symbol"==T._(Symbol.iterator)?function(e){return void 0===e?"undefined":T._(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":T._(e)})(e)}var P=["string","number","boolean"],L=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,j="native",O=[j,"cloudinary video player"];function D(e){return(D="function"==typeof Symbol&&"symbol"==T._(Symbol.iterator)?function(e){return void 0===e?"undefined":T._(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":T._(e)})(e)}var R=function(e,t,n){var i,r,s=function(e){if("object"===I(e)&&null!==e&&!Array.isArray(e)){var t=Object.keys(e).reduce(function(t,n){return(P.includes(I(e[n]))||null===e[n])&&(t[n]=e[n]),t},{});return Object.keys(t).length>0?t:null}return null}(null==n?void 0:n.providedData),o=null!==s&&JSON.stringify(s).length<=1e3,u=null!=n&&n.customVideoUrlFallback?function(e,t){try{var n=t(e);return{cloudName:n.cloudName,publicId:n.publicId}}catch(e){return null}}(e,n.customVideoUrlFallback):null,l=null!==u&&"object"===I(u)&&"string"==typeof u.cloudName&&u.cloudName&&"string"==typeof u.publicId&&u.publicId?{cloudName:u.cloudName,publicId:u.publicId}:null;return y("viewStart",a(a({videoUrl:e,analyticsModuleVersion:"1.4.3",videoPlayer:{type:(r=null==n?void 0:n.videoPlayerType,O.includes(r)?r:j),version:"string"==typeof(i=null==n?void 0:n.videoPlayerVersion)&&L.test(i)?i:null}},t),{},{customerData:a(a({},o?{providedData:s}:{}),l?{videoData:l}:{})}))},N=function(e){var t=function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return o(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return t.push(y("viewEnd",{})),JSON.stringify(t)};function M(e){return(M="function"==typeof Symbol&&"symbol"==T._(Symbol.iterator)?function(e){return void 0===e?"undefined":T._(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":T._(e)})(e)}var U=function(e,t,n){var i=function(){var i=N(t());n(l(l({},e),{},{events:i}))};return window.addEventListener("beforeunload",i,{once:!0}),function(){window.removeEventListener("beforeunload",i),i()}},B=function(e){return e.currentSrc};function F(e){return(F="function"==typeof Symbol&&"symbol"==T._(Symbol.iterator)?function(e){return void 0===e?"undefined":T._(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":T._(e)})(e)}var q=function(e){var t=null,n=_(e),i=function(e){var t,n;return t="https://video-analytics-api.cloudinary.com/v1/video-analytics",n=Object.keys(e).reduce(function(t,n){return t.append(n,e[n]),t},new FormData),"function"!=typeof window.navigator.sendBeacon?window.fetch(t,{method:"POST",mode:"no-cors",body:n,keepalive:!0}):window.navigator.sendBeacon(t,n)},r=function(){t&&(t.clear(),t=null)};return{startManualTracking:function(a){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="object"!==f(a)?{isValid:!1,errorMessage:"Metadata param needs to be an object"}:"string"!=typeof a.cloudName?{isValid:!1,errorMessage:"You need to provide proper cloud name of your Cloudinary account [cloudName: string]"}:"string"!=typeof a.publicId?{isValid:!1,errorMessage:"You need to provide proper video public ID of your video on your Cloudinary cloud [videoPublicId: string]"}:{isValid:!0};if(!o.isValid)throw"Cloudinary video analytics tracking called without necessary data (".concat(o.errorMessage,")");if(s&&"object"!==F(s))throw"Options property must be an object";s.customVideoUrlFallback=function(){return a},r();var u=C(),l=n(u,R(B(e),{trackingType:"manual"},s)),c=U({userId:A(),viewId:u},l.flushEvents,i);t={viewId:u,clear:function(){l.destroy(),c()}}},stopManualTracking:r,startAutoTracking:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t)throw"Cloudinary video analytics tracking is already connected with this HTML Video Element";if(a&&"object"!==F(a))throw"Options property must be an object";var s=function(){var r=B(e);if(r===window.location.href||!r)return null;var s=C(),o=n(s,R(r,{trackingType:"auto"},a)),u=U({userId:A(),viewId:s},o.flushEvents,i);t={viewId:s,clear:function(){o.destroy(),u()}}};e.addEventListener("loadstart",function(){t||s()}),e.addEventListener("emptied",function(){r()}),s()}}};return h}()},
vendor: 680 bytes, line 1
1"../node_modules/css.escape/css.escape.js":function(e,t,n){e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");for(var t,n=String(e),i=n.length,r=-1,a="",s=n.charCodeAt(0);++r<i;){if(0==(t=n.charCodeAt(r))){a+="�";continue}if(t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==s){a+="\\"+t.toString(16)+" ";continue}if(0==r&&1==i&&45==t){a+="\\"+n.charAt(r);continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){a+=n.charAt(r);continue}a+="\\"+n.charAt(r)}return a};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(void 0!==n.g?n.g:this)},
vendor: 6,111 bytes, line 1
1"../node_modules/events/events.js":function(e){"use strict";var t,n=function(e){console&&console.warn&&console.warn(e)},i=function(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+(void 0===e?"undefined":T._(e)))},r=function(e){return void 0===e._maxListeners?_.defaultMaxListeners:e._maxListeners},a=function(e,t,a,s){if(i(a),void 0===(u=e._events)?(u=e._events=Object.create(null),e._eventsCount=0):(void 0!==u.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),u=e._events),l=u[t]),void 0===l)l=u[t]=a,++e._eventsCount;else if("function"==typeof l?l=u[t]=s?[a,l]:[l,a]:s?l.unshift(a):l.push(a),(o=r(e))>0&&l.length>o&&!l.warned){l.warned=!0;var o,u,l,c=Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,n(c)}return e},s=function(){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)},o=function(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=s.bind(i);return r.listener=n,i.wrapFn=r,r},u=function(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?h(r):c(r,r.length)},l=function(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0},c=function(e,t){for(var n=Array(t),i=0;i<t;++i)n[i]=e[i];return n},d=function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()},h=function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t},f=function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)},m=function(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function r(a){i.once&&e.removeEventListener(t,r),n(a)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+(void 0===e?"undefined":T._(e)))},g=("u"<typeof Reflect?"undefined":T._(Reflect))==="object"?Reflect:null,v=g&&"function"==typeof g.apply?g.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=g&&"function"==typeof g.ownKeys?g.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var y=Number.isNaN||function(e){return e!=e};function _(){_.init.call(this)}e.exports=_,e.exports.once=function(e,t){return new Promise(function(n,i){function r(n){e.removeListener(t,a),i(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&f(e,r,{once:!0})})},_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var b=10;Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(e){if("number"!=typeof e||e<0||y(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");b=e}}),_.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||y(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},_.prototype.getMaxListeners=function(){return r(this)},_.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),p._(a,Error))throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var o=r[e];if(void 0===o)return!1;if("function"==typeof o)v(o,this,t);else for(var u=o.length,l=c(o,u),n=0;n<u;++n)v(l[n],this,t);return!0},_.prototype.addListener=function(e,t){return a(this,e,t,!1)},_.prototype.on=_.prototype.addListener,_.prototype.prependListener=function(e,t){return a(this,e,t,!0)},_.prototype.once=function(e,t){return i(t),this.on(e,o(this,e,t)),this},_.prototype.prependOnceListener=function(e,t){return i(t),this.prependListener(e,o(this,e,t)),this},_.prototype.removeListener=function(e,t){var n,r,a,s,o;if(i(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,a=s;break}if(a<0)return this;0===a?n.shift():d(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},_.prototype.off=_.prototype.removeListener,_.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var r,a=Object.keys(n);for(i=0;i<a.length;++i)"removeListener"!==(r=a[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},_.prototype.listeners=function(e){return u(this,e,!0)},_.prototype.rawListeners=function(e){return u(this,e,!1)},_.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):l.call(e,t)},_.prototype.listenerCount=l,_.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},
vendor: 209 bytes, line 1
1"../node_modules/video.js/dist/video.es-exposed.js":function(e,t,n){var i=n("../node_modules/video.js/dist/video.es.js");n("../node_modules/expose-loader/dist/runtime/getGlobalThis.js").videojs=i,e.exports=i},
vendor: 427 bytes, line 1
1"../node_modules/expose-loader/dist/runtime/getGlobalThis.js":function(e,t,n){"use strict";e.exports=function(){var e;if(("u"<typeof globalThis?"undefined":T._(globalThis))==="object")return globalThis;try{e=this||Function("return this")()}catch(e){if(("u"<typeof window?"undefined":T._(window))==="object")return window;if(("u"<typeof self?"undefined":T._(self))==="object")return self;if(void 0!==n.g)return n.g}return e}()},
vendor: 236 bytes, line 1
1"../node_modules/global/document.js":function(e,t,n){var i,r=void 0!==n.g?n.g:"u">typeof window?window:{},a=n("?9835");"u">typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=i},
vendor: 128 bytes, line 1
1"../node_modules/global/window.js":function(e,t,n){e.exports="u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{}},
vendor: 314 bytes, line 1
1"../node_modules/is-function/index.js":function(e){e.exports=function(e){if(!e)return!1;var n=t.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"u">typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},
vendor: 1,543 bytes, line 1
1"../node_modules/keycode/index.js":function(e,t){var n=function(e){if(e&&"object"===(void 0===e?"undefined":T._(e))){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n=String(e),a=i[n.toLowerCase()];if(a)return a;var a=r[n.toLowerCase()];return a||(1===n.length?n.charCodeAt(0):void 0)};n.isEventKey=function(e,t){if(e&&"object"===(void 0===e?"undefined":T._(e))){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a=i[t.toLowerCase()];if(a)return a===n;var a=r[t.toLowerCase()];if(a)return a===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var s=t.names=t.title={};for(a in i)s[i[a]]=a;for(var o in r)i[o]=r[o]},
vendor: 156 bytes, line 1
1"../node_modules/lodash/_DataView.js":function(e,t,n){e.exports=n("../node_modules/lodash/_getNative.js")(n("../node_modules/lodash/_root.js"),"DataView")},
vendor: 146 bytes, line 1
1"../node_modules/lodash/_Map.js":function(e,t,n){e.exports=n("../node_modules/lodash/_getNative.js")(n("../node_modules/lodash/_root.js"),"Map")},
vendor: 154 bytes, line 1
1"../node_modules/lodash/_Promise.js":function(e,t,n){e.exports=n("../node_modules/lodash/_getNative.js")(n("../node_modules/lodash/_root.js"),"Promise")},
vendor: 146 bytes, line 1
1"../node_modules/lodash/_Set.js":function(e,t,n){e.exports=n("../node_modules/lodash/_getNative.js")(n("../node_modules/lodash/_root.js"),"Set")},
vendor: 107 bytes, line 1
1"../node_modules/lodash/_Symbol.js":function(e,t,n){e.exports=n("../node_modules/lodash/_root.js").Symbol},
vendor: 154 bytes, line 1
1"../node_modules/lodash/_WeakMap.js":function(e,t,n){e.exports=n("../node_modules/lodash/_getNative.js")(n("../node_modules/lodash/_root.js"),"WeakMap")},
vendor: 154 bytes, line 1
1"../node_modules/lodash/_arrayMap.js":function(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},
vendor: 166 bytes, line 1
1"../node_modules/lodash/_arrayReduce.js":function(e){e.exports=function(e,t,n,i){var r=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}},
vendor: 148 bytes, line 1
1"../node_modules/lodash/_asciiWords.js":function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},
vendor: 334 bytes, line 1
1"../node_modules/lodash/_baseGetTag.js":function(e,t,n){var i=n("../node_modules/lodash/_Symbol.js"),r=n("../node_modules/lodash/_getRawTag.js"),a=n("../node_modules/lodash/_objectToString.js"),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):a(e)}},
vendor: 220 bytes, line 1
1"../node_modules/lodash/_baseIsArguments.js":function(e,t,n){var i=n("../node_modules/lodash/_baseGetTag.js"),r=n("../node_modules/lodash/isObjectLike.js");e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},
vendor: 542 bytes, line 1
1"../node_modules/lodash/_baseIsNative.js":function(e,t,n){var i=n("../node_modules/lodash/isFunction.js"),r=n("../node_modules/lodash/_isMasked.js"),a=n("../node_modules/lodash/isObject.js"),s=n("../node_modules/lodash/_toSource.js"),o=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,d=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||r(e))&&(i(e)?d:o).test(s(e))}},
vendor: 826 bytes, line 1
1"../node_modules/lodash/_baseIsTypedArray.js":function(e,t,n){var i=n("../node_modules/lodash/_baseGetTag.js"),r=n("../node_modules/lodash/isLength.js"),a=n("../node_modules/lodash/isObjectLike.js"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&r(e.length)&&!!s[i(e)]}},
vendor: 310 bytes, line 1
1"../node_modules/lodash/_baseKeys.js":function(e,t,n){var i=n("../node_modules/lodash/_isPrototype.js"),r=n("../node_modules/lodash/_nativeKeys.js"),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},
vendor: 127 bytes, line 1
1"../node_modules/lodash/_basePropertyOf.js":function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},
vendor: 432 bytes, line 1
1"../node_modules/lodash/_baseToString.js":function(e,t,n){var i=n("../node_modules/lodash/_Symbol.js"),r=n("../node_modules/lodash/_arrayMap.js"),a=n("../node_modules/lodash/isArray.js"),s=n("../node_modules/lodash/isSymbol.js"),o=1/0,u=i?i.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return r(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-o?"-0":n}},
vendor: 107 bytes, line 1
1"../node_modules/lodash/_baseUnary.js":function(e){e.exports=function(e){return function(t){return e(t)}}},
vendor: 126 bytes, line 1
1"../node_modules/lodash/_coreJsData.js":function(e,t,n){e.exports=n("../node_modules/lodash/_root.js")["__core-js_shared__"]},
vendor: 295 bytes, line 1
1"../node_modules/lodash/_createCompounder.js":function(e,t,n){var i=n("../node_modules/lodash/_arrayReduce.js"),r=n("../node_modules/lodash/deburr.js"),a=n("../node_modules/lodash/words.js"),s=RegExp("['â]","g");e.exports=function(e){return function(t){return i(a(r(t).replace(s,"")),e,"")}}},
vendor: 1,459 bytes, line 1
1"../node_modules/lodash/_deburrLetter.js":function(e,t,n){e.exports=n("../node_modules/lodash/_basePropertyOf.js")({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"})},
vendor: 117 bytes, line 1
1"../node_modules/lodash/_freeGlobal.js":function(e,t,n){e.exports="object"==T._(n.g)&&n.g&&n.g.Object===Object&&n.g},
vendor: 209 bytes, line 1
1"../node_modules/lodash/_getNative.js":function(e,t,n){var i=n("../node_modules/lodash/_baseIsNative.js"),r=n("../node_modules/lodash/_getValue.js");e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},
vendor: 311 bytes, line 1
1"../node_modules/lodash/_getRawTag.js":function(e,t,n){var i=n("../node_modules/lodash/_Symbol.js"),r=Object.prototype,a=r.hasOwnProperty,s=r.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[o]=n:delete e[o]),r}},
vendor: 793 bytes, line 1
1"../node_modules/lodash/_getTag.js":function(e,t,n){var i=n("../node_modules/lodash/_DataView.js"),r=n("../node_modules/lodash/_Map.js"),a=n("../node_modules/lodash/_Promise.js"),s=n("../node_modules/lodash/_Set.js"),o=n("../node_modules/lodash/_WeakMap.js"),u=n("../node_modules/lodash/_baseGetTag.js"),l=n("../node_modules/lodash/_toSource.js"),c="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=l(i),g=l(r),v=l(a),y=l(s),_=l(o),b=u;(i&&b(new i(new ArrayBuffer(1)))!=p||r&&b(new r)!=c||a&&b(a.resolve())!=d||s&&b(new s)!=h||o&&b(new o)!=f)&&(b=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,i=n?l(n):"";if(i)switch(i){case m:return p;case g:return c;case v:return d;case y:return h;case _:return f}return t}),e.exports=b},
vendor: 103 bytes, line 1
1"../node_modules/lodash/_getValue.js":function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},
vendor: 172 bytes, line 1
1"../node_modules/lodash/_hasUnicodeWord.js":function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},
vendor: 221 bytes, line 1
1"../node_modules/lodash/_isMasked.js":function(e,t,n){var i,r=n("../node_modules/lodash/_coreJsData.js"),a=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!a&&a in e}},
vendor: 173 bytes, line 1
1"../node_modules/lodash/_isPrototype.js":function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},
vendor: 127 bytes, line 1
1"../node_modules/lodash/_nativeKeys.js":function(e,t,n){e.exports=n("../node_modules/lodash/_overArg.js")(Object.keys,Object)},
vendor: 328 bytes, line 1
1"../node_modules/lodash/_nodeUtil.js":function(e,t,n){e=n.nmd(e);var i=n("../node_modules/lodash/_freeGlobal.js"),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r&&i.process,o=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},
vendor: 129 bytes, line 1
1"../node_modules/lodash/_objectToString.js":function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},
vendor: 110 bytes, line 1
1"../node_modules/lodash/_overArg.js":function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},
vendor: 228 bytes, line 1
1"../node_modules/lodash/_root.js":function(e,t,n){var i=n("../node_modules/lodash/_freeGlobal.js"),r=("u"<typeof self?"undefined":T._(self))=="object"&&self&&self.Object===Object&&self;e.exports=i||r||Function("return this")()},
vendor: 187 bytes, line 1
1"../node_modules/lodash/_toSource.js":function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},
vendor: 1,151 bytes, line 1
1"../node_modules/lodash/_unicodeWords.js":function(e){var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="['â]",o="["+a+"]",u="["+i+"]",l="[^"+t+a+"\\d+"+n+i+r+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+r+"]",f="(?:"+u+"|"+l+")",p="(?:"+h+"|"+l+")",m="(?:"+s+"(?:d|ll|m|re|s|t|ve))?",g="(?:"+s+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",_="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+y+v+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(y+v+_),T=RegExp([h+"?"+u+"+"+m+"(?="+[o,h,"$"].join("|")+")",p+"+"+g+"(?="+[o,h+f,"$"].join("|")+")",h+"?"+f+"+"+m,h+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",b].join("|"),"g");e.exports=function(e){return e.match(T)||[]}},
vendor: 325 bytes, line 1
1"../node_modules/lodash/deburr.js":function(e,t,n){var i=n("../node_modules/lodash/_deburrLetter.js"),r=n("../node_modules/lodash/toString.js"),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(a,i).replace(s,"")}},
vendor: 332 bytes, line 1
1"../node_modules/lodash/isArguments.js":function(e,t,n){var i=n("../node_modules/lodash/_baseIsArguments.js"),r=n("../node_modules/lodash/isObjectLike.js"),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable;e.exports=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!o.call(e,"callee")}},
vendor: 73 bytes, line 1
1"../node_modules/lodash/isArray.js":function(e){e.exports=Array.isArray},
vendor: 205 bytes, line 1
1"../node_modules/lodash/isArrayLike.js":function(e,t,n){var i=n("../node_modules/lodash/isFunction.js"),r=n("../node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},
vendor: 266 bytes, line 1
1"../node_modules/lodash/isBuffer.js":function(e,t,n){e=n.nmd(e);var i=n("../node_modules/lodash/_root.js"),r=n("../node_modules/lodash/stubFalse.js"),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?i.Buffer:void 0,u=o?o.isBuffer:void 0;e.exports=u||r},
vendor: 722 bytes, line 1
1"../node_modules/lodash/isEmpty.js":function(e,t,n){var i=n("../node_modules/lodash/_baseKeys.js"),r=n("../node_modules/lodash/_getTag.js"),a=n("../node_modules/lodash/isArguments.js"),s=n("../node_modules/lodash/isArray.js"),o=n("../node_modules/lodash/isArrayLike.js"),u=n("../node_modules/lodash/isBuffer.js"),l=n("../node_modules/lodash/_isPrototype.js"),c=n("../node_modules/lodash/isTypedArray.js"),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||a(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!i(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},
vendor: 311 bytes, line 1
1"../node_modules/lodash/isFunction.js":function(e,t,n){var i=n("../node_modules/lodash/_baseGetTag.js"),r=n("../node_modules/lodash/isObject.js");e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},
vendor: 133 bytes, line 1
1"../node_modules/lodash/isLength.js":function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},
vendor: 154 bytes, line 1
1"../node_modules/lodash/isObject.js":function(e){e.exports=function(e){var t=void 0===e?"undefined":T._(e);return null!=e&&("object"==t||"function"==t)}},
vendor: 135 bytes, line 1
1"../node_modules/lodash/isObjectLike.js":function(e){e.exports=function(e){return null!=e&&(void 0===e?"undefined":T._(e))=="object"}},
vendor: 251 bytes, line 1
1"../node_modules/lodash/isSymbol.js":function(e,t,n){var i=n("../node_modules/lodash/_baseGetTag.js"),r=n("../node_modules/lodash/isObjectLike.js");e.exports=function(e){return(void 0===e?"undefined":T._(e))=="symbol"||r(e)&&"[object Symbol]"==i(e)}},
vendor: 239 bytes, line 1
1"../node_modules/lodash/isTypedArray.js":function(e,t,n){var i=n("../node_modules/lodash/_baseIsTypedArray.js"),r=n("../node_modules/lodash/_baseUnary.js"),a=n("../node_modules/lodash/_nodeUtil.js"),s=a&&a.isTypedArray;e.exports=s?r(s):i},
vendor: 168 bytes, line 1
1"../node_modules/lodash/snakeCase.js":function(e,t,n){e.exports=n("../node_modules/lodash/_createCompounder.js")(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})},
vendor: 82 bytes, line 1
1"../node_modules/lodash/stubFalse.js":function(e){e.exports=function(){return!1}},
vendor: 151 bytes, line 1
1"../node_modules/lodash/toString.js":function(e,t,n){var i=n("../node_modules/lodash/_baseToString.js");e.exports=function(e){return null==e?"":i(e)}},
vendor: 334 bytes, line 1
1"../node_modules/lodash/words.js":function(e,t,n){var i=n("../node_modules/lodash/_asciiWords.js"),r=n("../node_modules/lodash/_hasUnicodeWord.js"),a=n("../node_modules/lodash/toString.js"),s=n("../node_modules/lodash/_unicodeWords.js");e.exports=function(e,t,n){return(e=a(e),void 0===(t=n?void 0:t))?r(e)?s(e):i(e):e.match(t)||[]}},
vendor: 22,244 bytes, line 1
1"../node_modules/m3u8-parser/dist/m3u8-parser.es.js":function(e,t,n){"use strict";n.r(t),n.d(t,{LineStream:function(){return u},ParseStream:function(){return h},Parser:function(){return g}});var i=n("../node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/stream.js"),r=n("../node_modules/@babel/runtime/helpers/esm/extends.js"),a=n("../node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js"),u=function(e){function t(){var e;return o._(this,t),(e=s._(this,t)).buffer="",e}return f._(t,e),l._(t,[{key:"push",value:function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}]),t}(i.default),c=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},d=function(e){var t,n={};if(!e)return n;for(var i=e.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n},h=function(e){function t(){var e;return o._(this,t),(e=s._(this,t)).customParsers=[],e.tagMappers=[],e}return f._(t,e),l._(t,[{key:"push",value:function(e){var t,n,i=this;if(0!==(e=e.trim()).length){if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});this.tagMappers.reduce(function(t,n){var i=n(e);return i===e?t:t.concat([i])},[e]).forEach(function(e){for(var a=0;a<i.customParsers.length;a++)if(i.customParsers[a].call(i,e))return;if(0!==e.indexOf("#EXT"))return void i.trigger("data",{type:"comment",text:e.slice(1)});if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))return void i.trigger("data",{type:"tag",tagType:"m3u"});if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e)){n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),i.trigger("data",n);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e)){n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),i.trigger("data",n);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e)){n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),i.trigger("data",n);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),i.trigger("data",n);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),i.trigger("data",n);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e)){n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),i.trigger("data",n);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e)){n=(0,r.default)(c(t[1]),{type:"tag",tagType:"byterange"}),i.trigger("data",n);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e)){n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),i.trigger("data",n);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var s=d(t[1]);s.URI&&(n.uri=s.URI),s.BYTERANGE&&(n.byterange=c(s.BYTERANGE))}i.trigger("data",n);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=d(t[1]),n.attributes.RESOLUTION){var o=n.attributes.RESOLUTION.split("x"),u={};o[0]&&(u.width=parseInt(o[0],10)),o[1]&&(u.height=parseInt(o[1],10)),n.attributes.RESOLUTION=u}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e)){n={type:"tag",tagType:"media"},t[1]&&(n.attributes=d(t[1])),i.trigger("data",n);return}if(t=/^#EXT-X-ENDLIST/.exec(e))return void i.trigger("data",{type:"tag",tagType:"endlist"});if(t=/^#EXT-X-DISCONTINUITY/.exec(e))return void i.trigger("data",{type:"tag",tagType:"discontinuity"});if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e)){n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),i.trigger("data",n);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(e)){n={type:"tag",tagType:"key"},t[1]&&(n.attributes=d(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),i.trigger("data",n);return}if(t=/^#EXT-X-START:(.*)$/.exec(e)){n={type:"tag",tagType:"start"},t[1]&&(n.attributes=d(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),i.trigger("data",n);return}if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e)){n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",i.trigger("data",n);return}if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e)){n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",i.trigger("data",n);return}if(t=/^#EXT-X-CUE-IN:(.*)?$/.exec(e)){n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",i.trigger("data",n);return}if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"skip"}).attributes=d(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(" ")),i.trigger("data",n);return}if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"part"}).attributes=d(t[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=c(n.attributes.BYTERANGE)),i.trigger("data",n);return}if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"server-control"}).attributes=d(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),i.trigger("data",n);return}if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"part-inf"}).attributes=d(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),i.trigger("data",n);return}if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"preload-hint"}).attributes=d(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),i.trigger("data",n);return}if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"rendition-report"}).attributes=d(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),i.trigger("data",n);return}if((t=/^#EXT-X-DATERANGE:(.*)$/.exec(e))&&t[1]){(n={type:"tag",tagType:"daterange"}).attributes=d(t[1]),["ID","CLASS"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))});var l=/^X-([A-Z]+-)+[A-Z]+$/;for(var h in n.attributes)if(l.test(h)){var f=/[0-9A-Fa-f]{6}/g.test(n.attributes[h]),p=/^\d+(\.\d+)?$/.test(n.attributes[h]);n.attributes[h]=f?n.attributes[h].toString(16):p?parseFloat(n.attributes[h]):String(n.attributes[h])}i.trigger("data",n);return}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e))return void i.trigger("data",{type:"tag",tagType:"independent-segments"});if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e)){(n={type:"tag",tagType:"content-steering"}).attributes=d(t[1]),i.trigger("data",n);return}i.trigger("data",{type:"tag",data:e.slice(4)})})}}},{key:"addParser",value:function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0})}},{key:"addTagMapper",value:function(e){var t=e.expression,n=e.map;this.tagMappers.push(function(e){return t.test(e)?n(e):e})}}]),t}(i.default),p=function(e){var t={};return Object.keys(e).forEach(function(n){t[n.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})]=e[n]}),t},m=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=n&&3*n,u=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:"".concat(r," defaulting HOLD-BACK to targetDuration * 3 (").concat(o,").")})),o&&t[a]<o&&(this.trigger("warn",{message:"".concat(r," clamping HOLD-BACK (").concat(t[a],") to targetDuration * 3 (").concat(o,")")}),t[a]=o),i&&!t.hasOwnProperty(s)&&(t[s]=3*i,this.trigger("info",{message:"".concat(r," defaulting PART-HOLD-BACK to partTargetDuration * 3 (").concat(t[s],").")})),i&&t[s]<u&&(this.trigger("warn",{message:"".concat(r," clamping PART-HOLD-BACK (").concat(t[s],") to partTargetDuration * 2 (").concat(u,").")}),t[s]=u)}},g=function(e){function t(){o._(this,t),(e=s._(this,t)).lineStream=new u,e.parseStream=new h,e.lineStream.pipe(e.parseStream),e.lastProgramDateTime=null;var e,n,i,l=[],c={},d=!1,f=function(){},g={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},v=0;e.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};var y=0,_=0,b={};return e.on("end",function(){!c.uri&&(c.parts||c.preloadHints)&&(!c.map&&n&&(c.map=n),!c.key&&i&&(c.key=i),c.timeline||"number"!=typeof v||(c.timeline=v),e.manifest.preloadSegment=c)}),e.parseStream.on("data",function(t){var s,o;({tag:function(){(({version:function(){t.version&&(this.manifest.version=t.version)},"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(c.byterange=e,e.length=t.length,"offset"in t||(t.offset=y)),"offset"in t&&(c.byterange=e,e.offset=t.offset),y=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.title&&(c.title=t.title),t.duration>0&&(c.duration=t.duration),0===t.duration&&(c.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=l},key:function(){if(!t.attributes)return void this.trigger("warn",{message:"ignoring key declaration without attribute list"});if("NONE"===t.attributes.METHOD){i=null;return}if(!t.attributes.URI)return void this.trigger("warn",{message:"ignoring key declaration without URI"});if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes};return}if("com.microsoft.playready"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI};return}"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT?-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23))?this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,a.default)(t.attributes.URI.split(",")[1])}):this.trigger("warn",{message:"invalid key ID provided for Widevine"}):(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(i.iv=t.attributes.IV))},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,v=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){n={},t.uri&&(n.uri=t.uri),t.byterange&&(n.byterange=t.byterange),i&&(n.key=i)},"stream-inf":function(){(this.manifest.playlists=l,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes)?(c.attributes||(c.attributes={}),(0,r.default)(c.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,!(t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});var e=this.manifest.mediaGroups[t.attributes.TYPE];e[t.attributes["GROUP-ID"]]=e[t.attributes["GROUP-ID"]]||{},s=e[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),s[t.attributes.NAME]=o},discontinuity:function(){v+=1,c.discontinuity=!0,this.manifest.discontinuityStarts.push(l.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),c.dateTimeString=t.dateTimeString,c.dateTimeObject=t.dateTimeObject;var e=this.lastProgramDateTime;this.lastProgramDateTime=new Date(t.dateTimeString).getTime(),null===e&&this.manifest.segments.reduceRight(function(e,t){return t.programDateTime=e-1e3*t.duration,t.programDateTime},this.lastProgramDateTime)},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,m.call(this,this.manifest))},start:function(){!t.attributes||isNaN(t.attributes["TIME-OFFSET"])?this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"}):this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}},"cue-out":function(){c.cueOut=t.data},"cue-out-cont":function(){c.cueOutCont=t.data},"cue-in":function(){c.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;d=!0;var n=this.manifest.segments.length,i=p(t.attributes);c.parts=c.parts||[],c.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=_),_=i.byterange.offset+i.byterange.length);var r=c.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #".concat(r," for segment #").concat(n),t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,n){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #".concat(n," lacks required attribute(s): LAST-PART")})})},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),m.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,n=p(t.attributes),i=n.type&&"PART"===n.type;c.preloadHints=c.preloadHints||[],c.preloadHints.push(n),n.byterange&&!n.byterange.hasOwnProperty("offset")&&(n.byterange.offset=i?_:0,i&&(_=n.byterange.offset+n.byterange.length));var r=c.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #".concat(r," for segment #").concat(e),t.attributes,["TYPE","URI"]),n.type)for(var a=0;a<c.preloadHints.length-1;a++){var s=c.preloadHints[a];s.type&&s.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #".concat(r," for segment #").concat(e," has the same TYPE ").concat(n.type," as preload hint #").concat(a)})}},"rendition-report":function(){var e=p(t.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];d&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #".concat(n),t.attributes,i)},"part-inf":function(){this.manifest.partInf=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",t.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),m.call(this,this.manifest)},daterange:function(){this.manifest.dateRanges.push(p(t.attributes));var e=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_("#EXT-X-DATERANGE #".concat(e),t.attributes,["ID","START-DATE"]);var n=this.manifest.dateRanges[e];n.endDate&&n.startDate&&new Date(n.endDate)<new Date(n.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),n.duration&&n.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),n.plannedDuration&&n.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});var i=!!n.endOnNext;if(i&&!n.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),i&&(n.duration||n.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),n.duration&&n.endDate){var a=n.startDate.getTime()+1e3*n.duration;this.manifest.dateRanges[e].endDate=new Date(a)}if(b[n.id]){for(var s in b[n.id])if(n[s]&&JSON.stringify(b[n.id][s])!==JSON.stringify(n[s])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}var o=this.manifest.dateRanges.findIndex(function(e){return e.id===n.id});this.manifest.dateRanges[o]=(0,r.default)(this.manifest.dateRanges[o],n),b[n.id]=(0,r.default)(b[n.id],n),this.manifest.dateRanges.pop()}else b[n.id]=n},"independent-segments":function(){this.manifest.independentSegments=!0},"content-steering":function(){this.manifest.contentSteering=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",t.attributes,["SERVER-URI"])}})[t.tagType]||f).call(e)},uri:function(){c.uri=t.uri,l.push(c),!this.manifest.targetDuration||"duration"in c||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),c.duration=this.manifest.targetDuration),i&&(c.key=i),c.timeline=v,n&&(c.map=n),_=0,null!==this.lastProgramDateTime&&(c.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*c.duration),c={}},comment:function(){},custom:function(){t.segment?(c.custom=c.custom||{},c.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(e)}),e}return f._(t,e),l._(t,[{key:"warnOnMissingAttributes_",value:function(e,t,n){var i=[];n.forEach(function(e){t.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:"".concat(e," lacks required attribute(s): ").concat(i.join(", "))})}},{key:"push",value:function(e){this.lineStream.push(e)}},{key:"end",value:function(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}},{key:"addParser",value:function(e){this.parseStream.addParser(e)}},{key:"addTagMapper",value:function(e){this.parseStream.addTagMapper(e)}}]),t}(i.default)},
vendor: 420 bytes, line 1
1"../node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js":function(e,t,n){"use strict";var r=function(e){for(var t=o(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n};n.r(t),n.d(t,{default:function(){return r}});var a=n("../node_modules/global/window.js"),s=n.n(a),o=function(e){return s().atob?s().atob(e):i.Buffer.from(e,"base64").toString("binary")}},
vendor: 821 bytes, line 1
1"../node_modules/m3u8-parser/node_modules/@videojs/vhs-utils/es/stream.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2==arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}()},
1"./assets/styles/components/title-bar.scss":function(e,t,n){"use strict";n.r(t)},
1"./assets/styles/main.scss":function(e,t,n){"use strict";n.r(t)},
1"./components/logoButton/logo-button.scss":function(e,t,n){"use strict";n.r(t)},
1"./components/qualitySelector/quality-selector.scss":function(e,t,n){"use strict";n.r(t)},
1"./plugins/ai-highlights-graph/ai-highlights-graph.scss":function(e,t,n){"use strict";n.r(t)},
1"./plugins/context-menu/context-menu.scss":function(e,t,n){"use strict";n.r(t)},
1"./plugins/floating-player/floating-player.scss":function(e,t,n){"use strict";n.r(t)},
1"./plugins/styled-text-tracks/styled-text-tracks.scss":function(e,t,n){"use strict";n.r(t)},
1"./plugins/vtt-thumbnails/vtt-thumbnails.scss":function(e,t,n){"use strict";n.r(t)},
vendor: 22,490 bytes, line 1
1"../node_modules/mpd-parser/dist/mpd-parser.es.js":function(e,t,n){"use strict";n.r(t),n.d(t,{VERSION:function(){return ey},addSidxSegmentsToPlaylist:function(){return w},generateSidxKey:function(){return D},inheritAttributes:function(){return em},parse:function(){return e_},parseUTCTiming:function(){return eb},stringToMpdXml:function(){return eg},toM3u8:function(){return X},toPlaylists:function(){return ei}});var i=n("../node_modules/@videojs/vhs-utils/es/resolve-url.js"),r=n("../node_modules/global/window.js"),a=n.n(r),s=n("../node_modules/@videojs/vhs-utils/es/media-groups.js"),o=n("../node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js"),u=n("../node_modules/@xmldom/xmldom/lib/index.js"),l=function(e){return!!e&&(void 0===e?"undefined":T._(e))==="object"},d=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return(void 0===t?"undefined":T._(t))!=="object"||Object.keys(t).forEach(function(n){Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):l(e[n])&&l(t[n])?e[n]=d(e[n],t[n]):e[n]=t[n]}),e},{})},h=function(e){return Object.keys(e).map(function(t){return e[t]})},f=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n},p=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},m=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},g=function(e){var t=e.baseUrl,n=e.source,r=void 0===n?"":n,s=e.range,o=void 0===s?"":s,u=e.indexRange,l=void 0===u?"":u,c={uri:r,resolvedUri:(0,i.default)((void 0===t?"":t)||"",r)};if(o||l){var d,h=(o||l).split("-"),f=a().BigInt?a().BigInt(h[0]):parseInt(h[0],10),p=a().BigInt?a().BigInt(h[1]):parseInt(h[1],10);f<Number.MAX_SAFE_INTEGER&&(void 0===f?"undefined":T._(f))==="bigint"&&(f=Number(f)),p<Number.MAX_SAFE_INTEGER&&(void 0===p?"undefined":T._(p))==="bigint"&&(p=Number(p)),(void 0===(d=(void 0===p?"undefined":T._(p))==="bigint"||(void 0===f?"undefined":T._(f))==="bigint"?a().BigInt(p)-a().BigInt(f)+a().BigInt(1):p-f+1)?"undefined":T._(d))==="bigint"&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),c.byterange={length:d,offset:f}}return c},v=function(e){var t;return t="bigint"===T._(e.offset)||"bigint"===T._(e.length)?a().BigInt(e.offset)+a().BigInt(e.length)-a().BigInt(1):e.offset+e.length-1,"".concat(e.offset,"-").concat(t)},_=function(e){return(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e))?null:e},k={static:function(e){var t=e.duration,n=e.timescale,i=e.sourceDuration,r=e.periodDuration,a=_(e.endNumber),s=t/(void 0===n?1:n);return"number"==typeof a?{start:0,end:a}:"number"==typeof r?{start:0,end:r/s}:{start:0,end:i/s}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.periodStart,u=e.minimumUpdatePeriod,l=e.timeShiftBufferDepth,c=_(e.endNumber),d=(t+n)/1e3,h=i+(void 0===o?0:o),f=Math.ceil((d+(void 0===u?0:u)-h)*a/s),p=Math.floor((d-h-(void 0===l?1/0:l))*a/s),m=Math.floor((d-h)*a/s);return{start:Math.max(0,p),end:"number"==typeof c?c:Math.min(f,m)}}},S=function(e){var t=e.type,n=e.duration,i=e.timescale,r=e.periodDuration,a=e.sourceDuration,s=k[t](e),o=f(s.start,s.end).map(function(t){var n=e.duration,i=e.timescale,r=e.periodStart,a=e.startNumber;return{number:(void 0===a?1:a)+t,duration:n/(void 0===i?1:i),timeline:r,time:t*n}});if("static"===t){var u=o.length-1;o[u].duration=("number"==typeof r?r:a)-n/(void 0===i?1:i)*u}return o},E=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,s=e.periodStart,o=e.presentationTime,u=e.number,l=e.duration;if(!t)throw Error("NO_BASE_URL");var c=g({baseUrl:t,source:i.sourceURL,range:i.range}),d=g({baseUrl:t,source:t,indexRange:void 0===a?"":a});if(d.map=c,l){var h=S(e);h.length&&(d.duration=h[0].duration,d.timeline=h[0].timeline)}else r&&(d.duration=r,d.timeline=s);return d.presentationTime=o||s,d.number=void 0===u?0:u,[d]},w=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,o=e.timeline||0,u=e.sidx.byterange,l=u.offset+u.length,c=t.timescale,d=t.references.filter(function(e){return 1!==e.referenceType}),h=[],f=e.endList?"static":"dynamic",p=e.sidx.timeline,m=p,g=e.mediaSequence||0;i="bigint"===T._(t.firstOffset)?a().BigInt(l)+t.firstOffset:l+t.firstOffset;for(var v=0;v<d.length;v++){var y=t.references[v],_=y.referencedSize,b=y.subsegmentDuration,k=void 0;k=(void 0===i?"undefined":T._(i))==="bigint"?i+a().BigInt(_)-a().BigInt(1):i+_-1;var S=E({baseUrl:n,timescale:c,timeline:o,periodStart:p,presentationTime:m,number:g,duration:b,sourceDuration:s,indexRange:"".concat(i,"-").concat(k),type:f})[0];r&&(S.map=r),h.push(S),(void 0===i?"undefined":T._(i))==="bigint"?i+=a().BigInt(_):i+=_,m+=b/c,g++}return e.segments=h,e},C=["AUDIO","SUBTITLES"],x=1/60,A=function(e){var t;return(t=function(e){return e.timeline},h(e.reduce(function(e,n){return n.forEach(function(n){e[t(n)]=n}),e},{}))).sort(function(e,t){return e.timeline>t.timeline?1:-1})},I=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},P=function(e){var t=[];return(0,s.forEachMediaGroup)(e,C,function(e,n,i,r){t=t.concat(e.playlists||[])}),t},L=function(e){var t=e.playlist;t.mediaSequence=e.mediaSequence,t.segments.forEach(function(e,n){e.number=t.mediaSequence+n})},j=function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach(function(e){e.discontinuitySequence=i.findIndex(function(t){return t.timeline===e.timeline});var n=I(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=n.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<x});if(-1===a){L({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),(!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--;return}n.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),L({playlist:e,mediaSequence:n.segments[a].number})}})},O=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(P(t)),r=n.playlists.concat(P(n));return n.timelineStarts=A([t.timelineStarts,n.timelineStarts]),j({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},D=function(e){return e&&e.uri+"-"+v(e.byterange)},R=function(e){var t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),n=[];return Object.values(t).forEach(function(e){var t=h(e.reduce(function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,b._(t.segments))),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));n=n.concat(t)}),n.map(function(e){return e.discontinuityStarts=(e.segments||[]).reduce(function(e,t,n){return t.discontinuity&&e.push(n),e},[]),e})},N=function(e,t){var n=D(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&w(e,i,e.sidx.resolvedUri),e},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object.keys(t).length)return e;for(var n in e)e[n]=N(e[n],t);return e},U=function(e,t){var n=e.attributes,i=e.segments,r=e.sidx,a=e.mediaSequence,s=e.discontinuitySequence,o=e.discontinuityStarts,u={attributes:c._({NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},"PROGRAM-ID",1),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:o,timelineStarts:n.timelineStarts,mediaSequence:a,segments:i};return n.contentProtection&&(u.contentProtection=n.contentProtection),n.serviceLocation&&(u.attributes.serviceLocation=n.serviceLocation),r&&(u.sidx=r),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u},B=function(e){var t=e.attributes,n=e.segments,i=e.mediaSequence,r=e.discontinuityStarts,a=e.discontinuitySequence;void 0===n&&(n=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);var s=c._({NAME:t.id,BANDWIDTH:t.bandwidth},"PROGRAM-ID",1);t.codecs&&(s.CODECS=t.codecs);var o={attributes:s,uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:r,discontinuitySequence:a,mediaSequence:i,segments:n};return t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),o},F=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.reduce(function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"",o=r.attributes.label||"main";s&&!r.attributes.label&&(o="".concat(r.attributes.lang).concat(a?" (".concat(a,")"):"")),e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=N(U(r,i),n);return e[o].playlists.push(u),void 0===t&&"main"===a&&((t=r).default=!0),e},{});if(!t){var a=Object.keys(r)[0];r[a].default=!0}return r},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(function(e,n){var i=n.attributes.label||n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(N(B(n),t)),e},{})},V=function(e){var t=e.attributes,n=e.segments,i=e.sidx,r=e.discontinuityStarts,a={attributes:c._({NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth},"PROGRAM-ID",1),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:r,timelineStarts:t.timelineStarts,segments:n};return t.frameRate&&(a.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(a.contentProtection=t.contentProtection),t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),i&&(a.sidx=i),a},H=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},z=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},G=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},W=function(e,t){e.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})})},Y=function(e){return e?Object.keys(e).reduce(function(t,n){var i=e[n];return t.concat(i.playlists)},[]):[]},X=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.contentSteering,a=e.sidxMapping,s=void 0===a?{}:a,o=e.previousManifest,u=e.eventStream;if(!n.length)return{};var l=n[0].attributes,d=l.sourceDuration,h=l.type,f=l.suggestedPresentationDelay,p=l.minimumUpdatePeriod,m=R(n.filter(H)).map(V),g=R(n.filter(z)),v=R(n.filter(G)),y=n.map(function(e){return e.attributes.captionServices}).filter(Boolean),_={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},c._(t,"CLOSED-CAPTIONS",{}),c._(t,"SUBTITLES",{}),t),uri:"",duration:d,playlists:M(m,s)};p>=0&&(_.minimumUpdatePeriod=1e3*p),i&&(_.locations=i),r&&(_.contentSteering=r),"dynamic"===h&&(_.suggestedPresentationDelay=f),u&&u.length>0&&(_.eventStream=u);var b=0===_.playlists.length,T=g.length?F(g,s,b):null,k=v.length?q(v,s):null,S=m.concat(Y(T),Y(k));return(_.timelineStarts=A(S.map(function(e){return e.timelineStarts})),W(S,_.timelineStarts),T&&(_.mediaGroups.AUDIO.audio=T),k&&(_.mediaGroups.SUBTITLES.subs=k),y.length&&(_.mediaGroups["CLOSED-CAPTIONS"].cc=y.reduce(function(e,t){return t&&t.forEach(function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])}),e},{})),o)?O({oldManifest:o,newManifest:_}):_},K=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=e.periodStart,u=e.minimumUpdatePeriod;return Math.ceil((((i+r)/1e3+(void 0===u?0:u)-(a+(void 0===o?0:o)))*(void 0===s?1:s)-t)/n)},$=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,s=void 0===a?"":a,o=e.sourceDuration,u=e.timescale,l=void 0===u?1:u,c=e.startNumber,d=void 0===c?1:c,h=e.periodStart,f=[],p=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,_=g.t||0;p<0&&(p=_),_&&_>p&&(p=_);var b=void 0;if(y<0){var T=m+1;b=T===t.length?"dynamic"===n&&r>0&&s.indexOf("$Number$")>0?K(e,p,v):(o*l-p)/v:(t[T].t-p)/v}else b=y+1;for(var k=d+f.length+b,S=d+f.length;S<k;)f.push({number:S,duration:v/l,time:p,timeline:h}),p+=v,S++}return f},Q=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,J=function(e,t){return e.replace(Q,function(e,n,i,r){if("$$"===e)return"$";if(void 0===t[n])return e;var a=""+t[n];return"RepresentationID"===n||(r=i?parseInt(r,10):1,a.length>=r)?a:"".concat(Array(r-a.length+1).join("0")).concat(a)})},Z=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,a=void 0===r?{sourceURL:"",range:""}:r,s=g({baseUrl:e.baseUrl,source:J(a.sourceURL,n),range:a.range});return(!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?S(e):$(e,t)).map(function(t){n.Number=t.number,n.Time=t.time;var r=J(e.media||"",n),a=e.timescale||1,o=e.presentationTimeOffset||0,u=e.periodStart+(t.time-o)/a;return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:(0,i.default)(e.baseUrl||"",r),map:s,number:t.number,presentationTime:u}})},ee=function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=g({baseUrl:n,source:r.sourceURL,range:r.range}),s=g({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=a,s},et=function(e,t){var n,i=e.duration,r=e.segmentUrls,a=e.periodStart;if(!i&&!t||i&&t)throw Error("SEGMENT_TIME_UNSPECIFIED");var s=(void 0===r?[]:r).map(function(t){return ee(e,t)});return i&&(n=S(e)),t&&(n=$(e,t)),n.map(function(t,n){if(s[n]){var i=s[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/r,i}}).filter(function(e){return e})},en=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=Z,t=d(i,r.template)):r.base?(n=E,t=d(i,r.base)):r.list&&(n=et,t=d(i,r.list));var a={attributes:i};if(!n)return a;var s=n(t,r.segmentTimeline);if(t.duration){var o=t.duration,u=t.timescale;t.duration=o/(void 0===u?1:u)}else s.length?t.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a},ei=function(e){return e.map(en)},er=function(e,t){return m(e.childNodes).filter(function(e){return e.tagName===t})},ea=function(e){return e.textContent.trim()},es=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=y._(t.slice(1),6),i=n[0],r=n[1],a=n[2],s=n[3],o=n[4],u=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(u||0)},eo={mediaPresentationDuration:function(e){return es(e)},availabilityStartTime:function(e){var t;return t=e,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)/1e3},minimumUpdatePeriod:function(e){return es(e)},suggestedPresentationDelay:function(e){return es(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return es(e)},start:function(e){return es(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return parseFloat(e.split("/").reduce(function(e,t){return e/t}))},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?es(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},presentationTime:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},eu=function(e){return e&&e.attributes?m(e.attributes).reduce(function(e,t){var n=eo[t.name]||eo.DEFAULT;return e[t.name]=n(t.value),e},{}):{}},el={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},ec=function(e,t){return t.length?p(e.map(function(e){return t.map(function(t){var n=ea(t),r=(0,i.default)(e.baseUrl,n),a=d(eu(t),{baseUrl:r});return r!==n&&!a.serviceLocation&&e.serviceLocation&&(a.serviceLocation=e.serviceLocation),a})})):e},ed=function(e){var t=er(e,"SegmentTemplate")[0],n=er(e,"SegmentList")[0],i=n&&er(n,"SegmentURL").map(function(e){return d({tag:"SegmentURL"},eu(e))}),r=er(e,"SegmentBase")[0],a=n||t,s=a&&er(a,"SegmentTimeline")[0],o=n||r||t,u=o&&er(o,"Initialization")[0],l=t&&eu(t);l&&u?l.initialization=u&&eu(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,segmentTimeline:s&&er(s,"S").map(function(e){return eu(e)}),list:n&&d(eu(n),{segmentUrls:i,initialization:eu(u)}),base:r&&d(eu(r),{initialization:eu(u)})};return Object.keys(c).forEach(function(e){c[e]||delete c[e]}),c},eh=function(e){return p(er(e.node,"EventStream").map(function(t){var n=eu(t),i=n.schemeIdUri;return er(t,"Event").map(function(t){var r=eu(t),a=r.presentationTime||0,s=n.timescale||1,o=r.duration||0,u=a/s+e.attributes.start;return{schemeIdUri:i,value:n.value,id:r.id,start:u,end:u+o/s,messageData:ea(t)||r.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})}))},ef=function(e,t){if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;var n=d({serverURL:ea(e[0])},eu(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n},ep=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==i?null:0},em=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.manifestUri,i=t.NOW,r=void 0===i?Date.now():i,a=t.clientOffset,s=t.eventHandler,u=er(e,"Period");if(!u.length)throw Error("INVALID_NUMBER_OF_PERIOD");var l=er(e,"Location"),c=eu(e),h=ec([{baseUrl:void 0===n?"":n}],er(e,"BaseURL")),f=er(e,"ContentSteering");c.type=c.type||"static",c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=r,c.clientOffset=void 0===a?0:a,l.length&&(c.locations=l.map(ea));var m=[];return u.forEach(function(e,t){var n=eu(e),i=m[t-1];n.start=ep({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:c.type}),m.push({node:e,attributes:n})}),{locations:c.locations,contentSteeringInfo:ef(f,void 0===s?function(){}:s),representationInfo:p(m.map(function(e,t){var n=ec(h,er(e.node,"BaseURL")),i=d(c,{periodStart:e.attributes.start});"number"==typeof e.attributes.duration&&(i.periodDuration=e.attributes.duration);var r=er(e.node,"AdaptationSet"),a=ed(e.node);return p(r.map(function(e){var t,r,s=eu(e),u=ec(n,er(e,"BaseURL")),l=d(i,s,{role:eu(er(e,"Role")[0])}),c="urn:scte:dash:cc:cea-608:2015"===(t=eu(er(e,"Accessibility")[0])).schemeIdUri?("string"!=typeof t.value?[]:t.value.split(";")).map(function(e){var t,n,i;return n=e,/^CC\d=/.test(e)?(t=(i=y._(e.split("="),2))[0],n=i[1]):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}}):"urn:scte:dash:cc:cea-708:2015"===t.schemeIdUri?("string"!=typeof t.value?[]:t.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=y._(e.split("="),2),i=n[0],r=n[1];t.channel=i,t.language=e,(void 0===r?"":r).split(",").forEach(function(e){var n=y._(e.split(":"),2),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;c&&(l=d(l,{captionServices:c}));var h=er(e,"Label")[0];h&&h.childNodes.length&&(l=d(l,{label:h.childNodes[0].nodeValue.trim()}));var f=er(e,"ContentProtection").reduce(function(e,t){var n=eu(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=el[n.schemeIdUri];if(i){e[i]={attributes:n};var r=er(t,"cenc:pssh")[0];if(r){var a=ea(r);e[i].pssh=a&&(0,o.default)(a)}}return e},{});Object.keys(f).length&&(l=d(l,{contentProtection:f}));var m=ed(e),g=er(e,"Representation"),v=d(a,m);return p(g.map((r=l,function(e){var t=ec(u,er(e,"BaseURL")),n=d(r,eu(e)),i=ed(e);return t.map(function(e){return{segmentInfo:d(v,i),attributes:d(n,e)}})})))}))})),eventStream:p(m.map(eh))}},eg=function(e){if(""===e)throw Error("DASH_EMPTY_MANIFEST");var t,n,i=new u.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw Error("DASH_INVALID_XML");return n},ev=function(e){var t=er(e,"UTCTiming")[0];if(!t)return null;var n=eu(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return n},ey="1.3.0",e_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=em(eg(e),t);return X({dashPlaylists:ei(n.representationInfo),locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},eb=function(e){return ev(eg(e))}},
vendor: 793 bytes, line 1
1"../node_modules/mux.js/lib/tools/parse-sidx.js":function(e,t,n){var i=n("../node_modules/mux.js/lib/utils/numbers.js").getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:0x7fffffff&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:0xfffffff&t.getUint32(r+8)});return n}},
vendor: 441 bytes, line 1
1"../node_modules/mux.js/lib/utils/clock.js":function(e){var t,n,i,r;t=function(e){return 9e4*e},n=function(e,t){return e*t},i=function(e){return e/9e4},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:t,secondsToAudioTs:n,videoTsToSeconds:i,audioTsToSeconds:r=function(e,t){return e/t},audioTsToVideoTs:function(e,n){return t(r(e,n))},videoTsToAudioTs:function(e,t){return n(i(e),t)},metadataTsToSeconds:function(e,t,n){return i(n?e:e-t)}}},
vendor: 296 bytes, line 1
1"../node_modules/mux.js/lib/utils/numbers.js":function(e){e.exports={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:0x100000000*n.getUint32(0)+n.getUint32(4)},MAX_UINT32:0x100000000}},
vendor: 141 bytes, line 1
1"../node_modules/safe-json-parse/tuple.js":function(e){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},
vendor: 1,734 bytes, line 1
1"../node_modules/url-toolkit/src/url-toolkit.js":function(e){var t,n,i,r,a;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e.exports=a={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var r=a.parseURL(e);if(!r)throw Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var s=a.parseURL(t);if(!s)throw Error("Error trying to parse relative URL.");if(s.scheme)return i.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):t;var o=a.parseURL(e);if(!o)throw Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var u=n.exec(o.path);o.netLoc=u[1],o.path=u[2]}o.netLoc&&!o.path&&(o.path="/");var l={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(l.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var c=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+s.path;l.path=a.normalizePath(d)}else l.path=o.path,!s.params&&(l.params=o.params,s.query||(l.query=o.query));return null===l.path&&(l.path=i.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(l)},parseURL:function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}},
vendor: 213 bytes, line 1
1"../node_modules/uuid/dist/esm-browser/native.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},
vendor: 248 bytes, line 1
1"../node_modules/uuid/dist/esm-browser/regex.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},
vendor: 390 bytes, line 1
1"../node_modules/uuid/dist/esm-browser/rng.js":function(e,t,n){"use strict";var i,r=function(){if(!i&&!(i="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(a)};n.r(t),n.d(t,{default:function(){return r}});var a=new Uint8Array(16)},
vendor: 726 bytes, line 1
1"../node_modules/uuid/dist/esm-browser/stringify.js":function(e,t,n){"use strict";var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]};n.r(t),n.d(t,{default:function(){return o},unsafeStringify:function(){return i}});for(var r=n("../node_modules/uuid/dist/esm-browser/validate.js"),a=[],s=0;s<256;++s)a.push((s+256).toString(16).slice(1));var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=i(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},
vendor: 535 bytes, line 1
1"../node_modules/uuid/dist/esm-browser/v4.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var i=n("../node_modules/uuid/dist/esm-browser/native.js"),r=n("../node_modules/uuid/dist/esm-browser/rng.js"),a=n("../node_modules/uuid/dist/esm-browser/stringify.js"),s=function(e,t,n){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();var s=(e=e||{}).random||(e.rng||r.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=s[o];return t}return(0,a.unsafeStringify)(s)}},
vendor: 243 bytes, line 1
1"../node_modules/uuid/dist/esm-browser/validate.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i=n("../node_modules/uuid/dist/esm-browser/regex.js"),r=function(e){return"string"==typeof e&&i.default.test(e)}}
1},c._(x,"../node_modules/video.js/dist/video.es.js",function(e,t,n){"use strict";var i,r,a,m,g,S,E,w,C,x,A=function(e,t){tk(e).forEach(function(n){return t(e[n],n)})},I=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return tk(e).reduce(function(n,i){return t(n,e[i],i)},n)},P=function(e){return!!e&&(void 0===e?"undefined":T._(e))==="object"},L=function(e){return P(e)&&"[object Object]"===tT.call(e)&&e.constructor===Object},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[];for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t.push(i)}return t},O=function(e,t,n){var i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},D=function(e){return"string"==typeof e&&!!e.trim()},R=function(e){if(e.indexOf(" ")>=0)throw Error("class has illegal whitespace characters")},N=function(){return eJ()===e$().document},M=function(e){return P(e)&&1===e.nodeType},U=function(){try{return e$().parent!==e$().self}catch(e){return!0}},B=function(e){return function(t,n){if(!D(t))return eJ()[e](null);D(n)&&(n=eJ().querySelector(n));var i=M(n)?n:eJ();return i[e]&&i[e](t)}},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,r=eJ().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];"textContent"===e?q(r,n):(r[e]!==n||"tabIndex"===e)&&(r[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),i&&es(r,i),r},q=function(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e},V=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},H=function(e,t){return R(t),e.classList.contains(t)},z=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=e.classList).add.apply(t,b._(i.reduce(function(e,t){return e.concat(t.split(/\s+/))},[]))),e},G=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e?((t=e.classList).remove.apply(t,b._(i.reduce(function(e,t){return e.concat(t.split(/\s+/))},[]))),e):(t_.warn("removeClass was called with an element that doesn't exist"),null)},W=function(e,t,n){return"function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=void 0),t.split(/\s+/).forEach(function(t){return e.classList.toggle(t,n)}),e},Y=function(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)})},X=function(e){var t={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,s=i[r].value;n.includes(a)&&(s=null!==s),t[a]=s}return t},K=function(e,t){return e.getAttribute(t)},$=function(e,t,n){e.setAttribute(t,n)},Q=function(e,t){e.removeAttribute(t)},J=function(){eJ().body.focus(),eJ().onselectstart=function(){return!1}},Z=function(){eJ().onselectstart=function(){return!0}},ee=function(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(el(e,"height"))),n.width||(n.width=parseFloat(el(e,"width"))),n}},et=function(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==eJ()[tf.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}},en=function(e,t){var n={x:0,y:0};if(tW)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=el(i,"transform");
1if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);n.x+=s[12],n.y+=s[13]}i=i.parentNode}var o={},u=et(t.target),l=et(e),c=l.width,d=l.height,h=t.offsetY-(l.top-u.top),f=t.offsetX-(l.left-u.left);return t.changedTouches&&(f=t.changedTouches[0].pageX-l.left,h=t.changedTouches[0].pageY+l.top,tW&&(f-=n.x,h-=n.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,f/c)),o},ei=function(e){return P(e)&&3===e.nodeType},er=function(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e},ea=function(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return("function"==typeof e&&(e=e()),M(e)||ei(e))?e:"string"==typeof e&&/\S/.test(e)?eJ().createTextNode(e):void 0}).filter(function(e){return e})},es=function(e,t){return ea(t).forEach(function(t){return e.appendChild(t)}),e},eo=function(e,t){return es(er(e),t)},eu=function(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons},el=function(e,t){if(!e||!t)return"";if("function"==typeof e$().getComputedStyle){var n;try{n=e$().getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""},ec=function(e){b._(eJ().styleSheets).forEach(function(t){try{var n=b._(t.cssRules).map(function(e){return e.cssText}).join(""),i=eJ().createElement("style");i.textContent=n,e.document.head.appendChild(i)}catch(n){var r=eJ().createElement("link");r.rel="stylesheet",r.type=t.type,r.media=t.media.mediaText,r.href=t.href,e.document.head.appendChild(r)}})},ed=function(e,t){N()&&(t&&(a=t),e$().setTimeout(tZ,e))},eh=function(){return t8++},ef=function(e,t){if(t4.has(e)){var n=t4.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&t4.delete(e)}},ep=function(e,t,n,i){n.forEach(function(n){e(t,n,i)})},em=function(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||e$().event;for(var r in e={},i)"layerX"===r||"layerY"===r||"keyLocation"===r||"webkitMovementX"===r||"webkitMovementY"===r||"path"===r||"returnValue"===r&&i.preventDefault||(e[r]=i[r]);if(e.target||(e.target=e.srcElement||eJ()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=eJ().documentElement,s=eJ().body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e},eg=function(e,t,n){var i=function(){t7(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||eh(),t6(e,t,i)},ev=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw Error('The eventBusKey "'.concat(n,'" does not refer to an element.'));e.eventBusEl_=e[n]}else e.eventBusEl_=F("span",{className:"vjs-event-bus"});return Object.assign(e,ng),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&t4.has(e)&&t4.delete(e)}),e$().setTimeout(function(){e.eventBusEl_=null},0)}),e},ey=function(e,t){return Object.assign(e,nv),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&nu(e)&&e.on("statechanged",e.handleStateChanged),e},e_=function(e,t,n){if("number"!=typeof t||t<0||t>n)throw Error("Failed to execute '".concat(e,"' on 'TimeRanges': The index provided (").concat(t,") is non-numeric or out of bounds (0-").concat(n,")."))},eb=function(e,t,n,i){return e_(e,i,n.length-1),n[i][t]},eT=function(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:e.length,start:eb.bind(null,"start",0,e),end:eb.bind(null,"end",1,e)},e$().Symbol&&e$().Symbol.iterator&&(t[e$().Symbol.iterator]=function(){return(e||[]).values()}),t},ek=function(e,t){return Array.isArray(e)?eT(e):void 0===e||void 0===t?eT():eT([[e,t]])},eS=function(e){nE=e},eE=function(){nE=nS},ew=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return nE(e,t)},eC=function(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=ek(0,0));for(var a=0;a<e.length;a++)n=e.start(a),(i=e.end(a))>t&&(i=t),r+=i-n;return r/t},ex=function(e){return null!=e&&"function"==typeof e.then},eA=function(e){ex(e)&&e.then(null,function(e){})},eI=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var s=new n3.text.TrackClass(r);return a.addTrack(s),s},eP=function(e,t,n){e.setTimeout(function(){return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=_._(n),u=o[0],l=o.slice(1);if("string"==typeof u)e(t,n6[u],i,r,a,s);else if(u){var c=eN(r,u);if(!c.setSource)return a.push(c),e(t,l,i,r,a,s);c.setSource(Object.assign({},t),function(n,o){if(n)return e(t,l,i,r,a,s);a.push(c),e(o,t.type===o.type?l:n6[o.type],i,r,a,s)})}else l.length?e(t,l,i,r,a,s):s?i(t,a):e(t,n6["*"],i,r,a,!0)}(t,n6[t.type],n,e)},1)},eL=function(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})},ej=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+n_(n),a=e.reduce(eO(r),i),s=a===n9,o=s?null:t[n](a);return eD(e,n,o,s),o},eO=function(e){return function(t,n){return t===n9?n9:n[e]?n[e](t):t}},eD=function(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}},eR=function(e){n7[e.id()]=null},eN=function(e,t){var n=n7[e.id()],i=null;if(null==n)return i=t(e),n7[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=y._(n[r],2),s=a[0],o=a[1];s===t&&(i=o)}return null===i&&(i=t(e),n.push([t,i])),i},eM=function(e){if(!e.type){var t=ia(e.src);t&&(e.type=t)}return e},eU=function(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(7===e.length)n=e.slice(1);else throw Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"},eB=function(e,t,n){try{e.style[t]=n}catch(e){return}},eF=function(e){return e?"".concat(e,"px"):""},eq=function(e,t,n){return Math.min(n,Math.max(t,isNaN(e=Number(e))?t:e))},eV=function(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e},eH=function(e,t,n){if(t){for(var i=0;i<e.options.length;i++)if(eV(e.options[i].value,n)===t){e.selectedIndex=i;break}}},ez=function(e,t){var n=!1;return function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return n||t_.warn(e),n=!0,t.apply(this,r)}},eG=function(e,t,n,i){return ez("".concat(t," is deprecated and will be removed in ").concat(e,".0; please use ").concat(n," instead."),i)},eW=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=rZ.obj||rZ;return(i.merge||i.mergeOptions).apply(i,t)},eY=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=rZ.time||rZ;return(i.createTimeRanges||i.createTimeRanges).apply(i,t)},eX=function(){};n.r(t),n.d(t,{default:function(){return rZ}});for(var eK=n("../node_modules/global/window.js"),e$=n.n(eK),eQ=n("../node_modules/global/document.js"),eJ=n.n(eQ),eZ=n("../node_modules/keycode/index.js"),e0=n.n(eZ),e1=n("../node_modules/safe-json-parse/tuple.js"),e2=n.n(e1),e4=n("../node_modules/@videojs/xhr/lib/index.js"),e8=n.n(e4),e3=n("../node_modules/videojs-vtt.js/lib/browser-index.js"),e5=n.n(e3),e6=n("../node_modules/@babel/runtime/helpers/esm/extends.js"),e7=n("../node_modules/@videojs/vhs-utils/es/resolve-url.js"),e9=n("../node_modules/m3u8-parser/dist/m3u8-parser.es.js"),te=n("../node_modules/@videojs/vhs-utils/es/codecs.js"),tt=n("../node_modules/@videojs/vhs-utils/es/media-types.js"),tn=n("../node_modules/@videojs/vhs-utils/es/byte-helpers.js"),ti=n("../node_modules/mpd-parser/dist/mpd-parser.es.js"),tr=n("../node_modules/mux.js/lib/tools/parse-sidx.js"),ta=n.n(tr),ts=n("../node_modules/@videojs/vhs-utils/es/id3-helpers.js"),to=n("../node_modules/@videojs/vhs-utils/es/containers.js"),tu=n("../node_modules/mux.js/lib/utils/clock.js"),tl="8.10.0",tc={},td=function(e,t){return tc[e]=tc[e]||[],t&&(tc[e]=tc[e].concat(t)),tc[e]},th=function(e,t){var n=td(e).indexOf(t);return!(n<=-1)&&(tc[e]=tc[e].slice(),tc[e].splice(n,1),!0)},tf={prefixed:!0},tp=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],tm=tp[0],tg=0;tg<tp.length;tg++)if(tp[tg][1]in eJ()){i=tp[tg];break}if(i){for(var tv=0;tv<i.length;tv++)tf[tm[tv]]=i[tv];tf.prefixed=i[0]!==tm[0]}var ty=[],t_=function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a="info",s=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",a,t)};return n=function(e,n,i){var a=s.levels[n],o=new RegExp("^(".concat(a,")$")),u=t;if("log"!==e&&i.unshift(e.toUpperCase()+":"),r&&(u="%c".concat(t),i.unshift(r)),i.unshift(u+":"),ty){ty.push([].concat(i));var l=ty.length-1e3;ty.splice(0,l>0?l:0)}if(e$().console){var c=e$().console[e];c||"debug"!==e||(c=e$().console.info||e$().console.log),c&&a&&o.test(e)&&c[Array.isArray(i)?"apply":"call"](e$().console,i)}},s.createLogger=function(n,a,s){var o=void 0!==a?a:i;return e("".concat(t," ").concat(o," ").concat(n),o,void 0!==s?s:r)},s.createNewLogger=function(t,n,i){return e(t,n,i)},s.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},s.level=function(e){if("string"==typeof e){if(!s.levels.hasOwnProperty(e))throw Error('"'.concat(e,'" in not a valid log level'));a=e}return a},s.history=function(){return ty?[].concat(ty):[]},s.history.filter=function(e){return(ty||[]).filter(function(t){return new RegExp(".*".concat(e,".*")).test(t[0])})},s.history.clear=function(){ty&&(ty.length=0)},s.history.disable=function(){null!==ty&&(ty.length=0,ty=null)},s.history.enable=function(){null===ty&&(ty=[])},s.error=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",a,t)},s.warn=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",a,t)},s.debug=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",a,t)},s}("VIDEOJS"),tb=t_.createLogger,tT=Object.prototype.toString,tk=function(e){return P(e)?Object.keys(e):[]};function tS(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i={};return t.forEach(function(e){e&&A(e,function(e,t){if(!L(e)){i[t]=e;return}L(i[t])||(i[t]={}),i[t]=tS(i[t],e)})}),i}var tE=Object.freeze({__proto__:null,each:A,reduce:I,isObject:P,isPlain:L,merge:tS,values:j,defineLazyProperty:O}),tw=!1,tC=null,tx=!1,tA=!1,tI=!1,tP=!1,tL=!1,tj=null,tO=null,tD=null,tR=!1,tN=!1,tM=!1,tU=!1,tB=!!(N()&&("ontouchstart"in e$()||e$().navigator.maxTouchPoints||e$().DocumentTouch&&p._(e$().document,e$().DocumentTouch))),tF=e$().navigator&&e$().navigator.userAgentData;if(tF&&tF.platform&&tF.brands&&(tx="Android"===tF.platform,tI=!!tF.brands.find(function(e){return"Microsoft Edge"===e.brand}),tP=!!tF.brands.find(function(e){return"Chromium"===e.brand}),tL=!tI&&tP,tj=tO=(tF.brands.find(function(e){return"Chromium"===e.brand})||{}).version||null,tN="Windows"===tF.platform),!tP){var tq,tV,tH,tz,tG=e$().navigator&&e$().navigator.userAgent||"";tw=/iPod/i.test(tG),tC=(tq=tG.match(/OS (\d+)_/i))&&tq[1]?tq[1]:null,tx=/Android/i.test(tG),r=function(){var e=tG.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),tA=/Firefox/i.test(tG),tI=/Edg/i.test(tG),tP=/Chrome/i.test(tG)||/CriOS/i.test(tG),tL=!tI&&tP,tj=tO=(tV=tG.match(/(Chrome|CriOS)\/(\d+)/))&&tV[2]?parseFloat(tV[2]):null,!(tz=(tH=/MSIE\s(\d+)\.\d/.exec(tG))&&parseFloat(tH[1]))&&/Trident\/7.0/i.test(tG)&&/rv:11.0/.test(tG)&&(tz=11),tD=tz,tR=/Safari/i.test(tG)&&!tL&&!tx&&!tI,tN=/Windows/i.test(tG),tM=/iPad/i.test(tG)||tR&&tB&&!/iPhone/i.test(tG),tU=/iPhone/i.test(tG)&&!tM}var tW=tU||tM||tw,tY=(tR||tW)&&!tL,tX=Object.freeze({__proto__:null,get IS_IPOD(){return tw},get IOS_VERSION(){return tC},get IS_ANDROID(){return tx},get ANDROID_VERSION(){return r},get IS_FIREFOX(){return tA},get IS_EDGE(){return tI},get IS_CHROMIUM(){return tP},get IS_CHROME(){return tL},get CHROMIUM_VERSION(){return tj},get CHROME_VERSION(){return tO},get IE_VERSION(){return tD},get IS_SAFARI(){return tR},get IS_WINDOWS(){return tN},get IS_IPAD(){return tM},get IS_IPHONE(){return tU},TOUCH_ENABLED:tB,IS_IOS:tW,IS_ANY_SAFARI:tY}),tK=B("querySelector"),t$=B("querySelectorAll"),tQ=Object.freeze({__proto__:null,isReal:N,isEl:M,isInFrame:U,createEl:F,textContent:q,prependTo:V,hasClass:H,addClass:z,removeClass:G,toggleClass:W,setAttributes:Y,getAttributes:X,getAttribute:K,setAttribute:$,removeAttribute:Q,blockTextSelection:J,unblockTextSelection:Z,getBoundingClientRect:ee,findPosition:et,getPointerPosition:en,isTextNode:ei,emptyEl:er,normalizeContent:ea,appendContent:es,insertContent:eo,isSingleLeftClick:eu,$:tK,$$:t$,computedStyle:el,copyStyleSheetsToWindow:ec}),tJ=!1,tZ=function(){if(!1!==a.options.autoSetup){var e=Array.prototype.slice.call(eJ().getElementsByTagName("video")),t=Array.prototype.slice.call(eJ().getElementsByTagName("audio")),n=Array.prototype.slice.call(eJ().getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,s=i.length;r<s;r++){var o=i[r];if(o&&o.getAttribute)void 0===o.player&&null!==o.getAttribute("data-setup")&&a(o);else{ed(1);break}}else tJ||ed(1)}};function t0(){tJ=!0,e$().removeEventListener("load",t0)}N()&&("complete"===eJ().readyState?t0():e$().addEventListener("load",t0));var t1=function(e){var t=eJ().createElement("style");return t.className=e,t},t2=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},t4=new WeakMap,t8=3,t3=function(){if("boolean"!=typeof m){m=!1;try{var e=Object.defineProperty({},"passive",{get:function(){m=!0}});e$().addEventListener("test",null,e),e$().removeEventListener("test",null,e)}catch(e){}}return m},t5=["touchstart","touchmove"];
1function t6(e,t,n){if(Array.isArray(t))return ep(t6,e,t,n);t4.has(e)||t4.set(e,{});var i=t4.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=eh()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=em(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s<o;s++)if(t.isImmediatePropagationStopped())break;else try{a[s].call(e,t,n)}catch(e){t_.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;t3()&&t5.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function t7(e,t,n){if(t4.has(e)){var i=t4.get(e);if(i.handlers){if(Array.isArray(t))return ep(t7,e,t,n);var r=function(e,t){i.handlers[t]=[],ef(e,t)};if(void 0===t){for(var a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(e,a);return}var s=i.handlers[t];if(s){if(!n)return void r(e,t);if(n.guid)for(var o=0;o<s.length;o++)s[o].guid===n.guid&&s.splice(o--,1);ef(e,t)}}}}function t9(e,t,n){var i=t4.has(e)?t4.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=em(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)t9.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){t4.has(t.target)||t4.set(t.target,{});var a=t4.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function ne(e,t,n){if(Array.isArray(t))return ep(ne,e,t,n);var i=function(){t7(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||eh(),t6(e,t,i)}var nt=Object.freeze({__proto__:null,fixEvent:em,on:t6,off:t7,trigger:t9,one:ne,any:eg}),nn=function(e,t,n){t.guid||(t.guid=eh());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},ni=function(e,t){var n=e$().performance.now();return function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=e$().performance.now();s-n>=t&&(e.apply(void 0,b._(r)),n=s)}},nr=function(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e$(),a=function(){var a=this,s=arguments,o=function(){i=null,o=null,n||e.apply(a,s)};!i&&n&&e.apply(a,s),r.clearTimeout(i),i=r.setTimeout(o,t)};return a.cancel=function(){r.clearTimeout(i),i=null},a},na=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:30,bind_:nn,throttle:ni,debounce:nr}),ns=function(){function e(){o._(this,e)}return l._(e,[{key:"on",value:function(e,t){var n=this.addEventListener;this.addEventListener=function(){},t6(this,e,t),this.addEventListener=n}},{key:"off",value:function(e,t){t7(this,e,t)}},{key:"one",value:function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ne(this,e,t),this.addEventListener=n}},{key:"any",value:function(e,t){var n=this.addEventListener;this.addEventListener=function(){},eg(this,e,t),this.addEventListener=n}},{key:"trigger",value:function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=em(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),t9(this,e)}},{key:"queueTrigger",value:function(e){var t=this;g||(g=new Map);var n=e.type||e,i=g.get(this);i||(i=new Map,g.set(this,i));var r=i.get(n);i.delete(n),e$().clearTimeout(r);var a=e$().setTimeout(function(){i.delete(n),0===i.size&&(i=null,g.delete(t)),t.trigger(e)},0);i.set(n,a)}}]),e}();ns.prototype.allowedEvents_={},ns.prototype.addEventListener=ns.prototype.on,ns.prototype.removeEventListener=ns.prototype.off,ns.prototype.dispatchEvent=ns.prototype.trigger;var no=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:void 0===e?"undefined":T._(e)},nu=function(e){return p._(e,ns)||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},nl=function(e,t){nu(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},nc=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},nd=function(e,t,n){if(!e||!e.nodeName&&!nu(e))throw Error("Invalid target for ".concat(no(t),"#").concat(n,"; must be a DOM node or evented object."))},nh=function(e,t,n){if(!nc(e))throw Error("Invalid event type for ".concat(no(t),"#").concat(n,"; must be a non-empty string or array."))},nf=function(e,t,n){if("function"!=typeof e)throw Error("Invalid listener for ".concat(no(t),"#").concat(n,"; must be a function."))},np=function(e,t,n){var i,r,a,s,o,u=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return u?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=(s=y._(t,2))[0],a=s[1]):(i=(o=y._(t,3))[0],r=o[1],a=o[2]),nd(i,e,n),nh(r,e,n),nf(a,e,n),{isTargetingSelf:u,target:i,type:r,listener:a=nn(e,a)}},nm=function(e,t,n,i){nd(e,e,t),e.nodeName?nt[t](e,n,i):e[t](n,i)},ng={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=np(this,n,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,u=r.listener;if(nm(s,"on",o,u),!a){var l=function(){return e.off(s,o,u)};l.guid=u.guid;var c=function(){return e.off("dispose",l)};c.guid=u.guid,nm(this,"on","dispose",l),nm(s,"on","dispose",c)}},one:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=np(this,t,"one"),r=i.isTargetingSelf,a=i.target,s=i.type,o=i.listener;if(r)nm(a,"one",s,o);else{var u=this,l=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];u.off(a,s,l),o.apply(null,t)};l.guid=o.guid,nm(a,"one",s,l)}},any:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=np(this,t,"any"),r=i.isTargetingSelf,a=i.target,s=i.type,o=i.listener;if(r)nm(a,"any",s,o);else{var u=this,l=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];u.off(a,s,l),o.apply(null,t)};l.guid=o.guid,nm(a,"any",s,l)}},off:function(e,t,n){!e||nc(e)?t7(this.eventBusEl_,e,t):(nd(e,this,"off"),nh(t,this,"off"),nf(n,this,"off"),n=nn(this,n),this.off("dispose",n),e.nodeName?(t7(e,t,n),t7(e,"dispose",n)):nu(e)&&(e.off(t,n),e.off("dispose",n)))},trigger:function(e,t){if(nd(this.eventBusEl_,this,"trigger"),!nc(e&&"string"!=typeof e?e.type:e))throw Error("Invalid event type for ".concat(no(this),"#trigger; ")+"must be a non-empty string or object with a type key that has a non-empty value.");return t9(this.eventBusEl_,e,t)}},nv={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),A(e,function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e}),t&&nu(this)&&this.trigger({changes:t,type:"statechanged"}),t}},ny=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},n_=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},nb=function(e,t){return n_(e)===n_(t)},nT=Object.freeze({__proto__:null,toLowerCase:ny,toTitleCase:n_,titleCaseEquals:nb}),nk=function(){function e(t,n,i){var r=this;if(o._(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=tS({},this.options_),n=this.options_=tS(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var a=t&&t.id&&t.id()||"no_player";this.id_="".concat(a,"_component_").concat(eh())}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),n.className&&this.el_&&n.className.split(" ").forEach(function(e){return r.addClass(e)}),["on","off","one","any","trigger"].forEach(function(e){r[e]=void 0}),!1!==n.evented&&(ev(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ey(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return l._(e,[{key:"on",value:function(e,t){}},{key:"off",value:function(e,t){}},{key:"one",value:function(e,t){}},{key:"any",value:function(e,t){}},{key:"trigger",value:function(e,t){}},{key:"dispose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}},{key:"isDisposed",value:function(){return!!this.isDisposed_}},{key:"player",value:function(){return this.player_}},{key:"options",value:function(e){return e&&(this.options_=tS(this.options_,e)),this.options_}},{key:"el",value:function(){return this.el_}},{key:"createEl",value:function(e,t,n){return F(e,t,n)}},{key:"localize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],s=i&&i.split("-")[0],o=r&&r[s],u=n;return a&&a[e]?u=a[e]:o&&o[e]&&(u=o[e]),t&&(u=u.replace(/\{(\d+)\}/g,function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r})),u}},{key:"handleLanguagechange",value:function(){}},{key:"contentEl",value:function(){return this.contentEl_||this.el_}},{key:"id",value:function(){return this.id_}},{key:"name",value:function(){return this.name_}},{key:"children",value:function(){return this.children_}},{key:"getChildById",value:function(e){return this.childIndex_[e]}},{key:"getChild",value:function(e){if(e)return this.childNameIndex_[e]}},{key:"getDescendant",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i}},{key:"setIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(this.player_.options_.experimentalSvgIcons){var n="http://www.w3.org/2000/svg",i=F("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=eJ().createElementNS(n,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");var a=eJ().createElementNS(n,"use");return r.appendChild(a),a.setAttributeNS(null,"href","#vjs-icon-".concat(e)),i.appendChild(r),this.iconIsSet_?t.replaceChild(i,t.querySelector(".vjs-icon-placeholder")):t.appendChild(i),this.iconIsSet_=!0,i}}},{key:"addChild",value:function(t){var n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length;if("string"==typeof t){i=n_(t);var s=r.componentClass||i;r.name=i;var o=e.getComponent(s);if(!o)throw Error("Component ".concat(s," does not exist"));if("function"!=typeof o)return null;n=new o(this.player_||this,r)}else n=t;if(n.parentComponent_&&n.parentComponent_.removeChild(n),this.children_.splice(a,0,n),n.parentComponent_=this,"function"==typeof n.id&&(this.childIndex_[n.id()]=n),(i=i||n.name&&n_(n.name()))&&(this.childNameIndex_[i]=n,this.childNameIndex_[ny(i)]=n),"function"==typeof n.el&&n.el()){var u=null;this.children_[a+1]&&(this.children_[a+1].el_?u=this.children_[a+1].el_:M(this.children_[a+1])&&(u=this.children_[a+1])),this.contentEl().insertBefore(n.el(),u)}return n}},{key:"removeChild",value:function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[n_(e.name())]=null,this.childNameIndex_[ny(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}}},{key:"initChildren",value:function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||n_(t.name));return n&&!a.isTech(n)}
1).forEach(function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}})}}},{key:"buildCSSClass",value:function(){return""}},{key:"ready",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}},{key:"triggerReady",value:function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}},{key:"$",value:function(e,t){return tK(e,t||this.contentEl())}},{key:"$$",value:function(e,t){return t$(e,t||this.contentEl())}},{key:"hasClass",value:function(e){return H(this.el_,e)}},{key:"addClass",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];z.apply(void 0,[this.el_].concat(b._(t)))}},{key:"removeClass",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];G.apply(void 0,[this.el_].concat(b._(t)))}},{key:"toggleClass",value:function(e,t){W(this.el_,e,t)}},{key:"show",value:function(){this.removeClass("vjs-hidden")}},{key:"hide",value:function(){this.addClass("vjs-hidden")}},{key:"lockShowing",value:function(){this.addClass("vjs-lock-showing")}},{key:"unlockShowing",value:function(){this.removeClass("vjs-lock-showing")}},{key:"getAttribute",value:function(e){return K(this.el_,e)}},{key:"setAttribute",value:function(e,t){$(this.el_,e,t)}},{key:"removeAttribute",value:function(e){Q(this.el_,e)}},{key:"width",value:function(e,t){return this.dimension("width",e,t)}},{key:"height",value:function(e,t){return this.dimension("height",e,t)}},{key:"dimensions",value:function(e,t){this.width(e,!0),this.height(t)}},{key:"dimension",value:function(e,t,n){if(void 0!==t){(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",n||this.trigger("componentresize");return}if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return -1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+n_(e)],10)}},{key:"currentDimension",value:function(e){var t=0;if("width"!==e&&"height"!==e)throw Error("currentDimension only accepts width or height value");if(0===(t=parseFloat(t=el(this.el_,e)))||isNaN(t)){var n="offset".concat(n_(e));t=this.el_[n]}return t}},{key:"currentDimensions",value:function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}},{key:"currentWidth",value:function(){return this.currentDimension("width")}},{key:"currentHeight",value:function(){return this.currentDimension("height")}},{key:"focus",value:function(){this.el_.focus()}},{key:"blur",value:function(){this.el_.blur()}},{key:"handleKeyDown",value:function(e){this.player_&&(e0().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}},{key:"handleKeyPress",value:function(e){this.handleKeyDown(e)}},{key:"emitTapEvents",value:function(){var e,t=0,n=null;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=e$().performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(e=!1)}});var i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){n=null,!0===e&&e$().performance.now()-t<200&&(i.preventDefault(),this.trigger("tap"))})}},{key:"enableTouchActivity",value:function(){if(this.player()&&this.player().reportUserActivity){var e,t=nn(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}}},{key:"setTimeout",value:function(e,t){var n,i=this;return e=nn(this,e),this.clearTimersOnDispose_(),n=e$().setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n}},{key:"clearTimeout",value:function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),e$().clearTimeout(e)),e}},{key:"setInterval",value:function(e,t){e=nn(this,e),this.clearTimersOnDispose_();var n=e$().setInterval(e,t);return this.setIntervalIds_.add(n),n}},{key:"clearInterval",value:function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),e$().clearInterval(e)),e}},{key:"requestAnimationFrame",value:function(e){var t,n=this;return this.clearTimersOnDispose_(),e=nn(this,e),t=e$().requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}},{key:"requestNamedAnimationFrame",value:function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=nn(this,t);var i=this.requestAnimationFrame(function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}}},{key:"cancelNamedAnimationFrame",value:function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}},{key:"cancelAnimationFrame",value:function(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),e$().cancelAnimationFrame(e)),e}},{key:"clearTimersOnDispose_",value:function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
1h(function(t){var n=y._(t,2),i=n[0],r=n[1];e[i].forEach(function(t,n){return e[r](n)})}),e.clearingTimersOnDispose_=!1}))}}],[{key:"registerComponent",value:function(t,n){if("string"!=typeof t||!t)throw Error('Illegal component name, "'.concat(t,'"; must be a non-empty string.'));var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),s=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!s)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",Error('Illegal component, "'.concat(t,'"; ').concat(i,"."));t=n_(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var u=o.players,l=Object.keys(u);if(u&&l.length>0&&l.map(function(e){return u[e]}).every(Boolean))throw Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[ny(t)]=n,n}},{key:"getComponent",value:function(t){if(t&&e.components_)return e.components_[t]}}]),e}();nk.registerComponent("Component",nk);var nS=function(e,t){var n=Math.floor((e=e<0?0:e)%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),i=(((r=r>0||s>0?r+":":"")||a>=10)&&i<10?"0"+i:i)+":",r+i+(n=n<10?"0"+n:n)},nE=nS,nw=Object.freeze({__proto__:null,createTimeRanges:ek,createTimeRange:ek,setFormatTime:eS,resetFormatTime:eE,formatTime:ew});function nC(e){if(p._(e,nC))return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:P(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=nC.defaultMessages[this.code]||"")}nC.prototype.code=0,nC.prototype.message="",nC.prototype.status=null,nC.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],nC.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var nx=0;nx<nC.errorTypes.length;nx++)nC[nC.errorTypes[nx]]=nx,nC.prototype[nC.errorTypes[nx]]=nx;var nA=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,i){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},nI=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=nA(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===n.indexOf(e)}).map(nA))},nP="vjs-modal-dialog",nL=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=F("div",{className:"".concat(nP,"-content")},{role:"document"}),i.descEl_=F("p",{className:"".concat(nP,"-description vjs-control-text"),id:i.el().getAttribute("aria-describedby")}),q(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":"".concat(this.id(),"_description"),"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}},{key:"dispose",value:function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"buildCSSClass",value:function(){return"".concat(nP," vjs-hidden ").concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"label",value:function(){return this.localize(this.options_.label||"Modal Window")}},{key:"description",value:function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}},{key:"open",value:function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
1n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}},{key:"opened",value:function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}},{key:"close",value:function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}}},{key:"closeable",value:function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_}},{key:"fill",value:function(){this.fillWith(this.content())}},{key:"fillWith",value:function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),eo(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)}},{key:"empty",value:function(){this.trigger("beforemodalempty"),er(this.contentEl()),this.trigger("modalempty")}},{key:"content",value:function(e){return void 0!==e&&(this.content_=e),this.content_}},{key:"conditionalFocus_",value:function(){var e=eJ().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}},{key:"conditionalBlur_",value:function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}},{key:"handleKeyDown",value:function(e){if(e.stopPropagation(),e0().isEventKey(e,"Escape")&&this.closeable()){e.preventDefault(),this.close();return}if(e0().isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}eJ().activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}}},{key:"focusableEls_",value:function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(p._(e,e$().HTMLAnchorElement)||p._(e,e$().HTMLAreaElement))&&e.hasAttribute("href")||(p._(e,e$().HTMLInputElement)||p._(e,e$().HTMLSelectElement)||p._(e,e$().HTMLTextAreaElement)||p._(e,e$().HTMLButtonElement))&&!e.hasAttribute("disabled")||p._(e,e$().HTMLIFrameElement)||p._(e,e$().HTMLObjectElement)||p._(e,e$().HTMLEmbedElement)||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})}}]),t}(nk);nL.prototype.options_={pauseOnOpen:!0,temporary:!0},nk.registerComponent("ModalDialog",nL);var nj=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o._(this,t),(e=s._(this,t)).tracks_=[],Object.defineProperty(e,"length",{get:function(){return this.tracks_.length}});for(var i=0;i<n.length;i++)e.addTrack(n[i]);return e}return f._(t,e),l._(t,[{key:"addTrack",value:function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},nu(e)&&e.addEventListener("labelchange",e.labelchange_)}},{key:"removeTrack",value:function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}},{key:"getTrackById",value:function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t}}]),t}(ns);for(var nO in nj.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},nj.prototype.allowedEvents_)nj.prototype["on"+nO]=null;var nD=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},nR=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o._(this,t);for(var i=n.length-1;i>=0;i--)if(n[i].enabled){nD(n,n[i]);break}return(e=s._(this,t,[n])).changing_=!1,e}return f._(t,e),l._(t,[{key:"addTrack",value:function(e){var n=this;e.enabled&&nD(this,e),d._(h._(t.prototype),"addTrack",this).call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,nD(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}},{key:"removeTrack",value:function(e){d._(h._(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}]),t}(nj),nN=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},nM=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o._(this,t);for(var i=n.length-1;i>=0;i--)if(n[i].selected){nN(n,n[i]);break}return(e=s._(this,t,[n])).changing_=!1,Object.defineProperty(e,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set:function(){}}),e}return f._(t,e),l._(t,[{key:"addTrack",value:function(e){var n=this;e.selected&&nN(this,e),d._(h._(t.prototype),"addTrack",this).call(this,e),e.addEventListener&&(e.selectedChange_=function(){n.changing_||(n.changing_=!0,nN(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}},{key:"removeTrack",value:function(e){d._(h._(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}]),t}(nj),nU=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"addTrack",value:function(e){var n=this;d._(h._(t.prototype),"addTrack",this).call(this,e),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}},{key:"removeTrack",value:function(e){d._(h._(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}]),t}(nj),nB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o._(this,e),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var n=0,i=t.length;n<i;n++)this.addTrackElement_(t[n])}return l._(e,[{key:"addTrackElement_",value:function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
1),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}},{key:"getTrackElementByTrack_",value:function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}},{key:"removeTrackElement_",value:function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}}]),e}(),nF=function(){function e(t){o._(this,e),e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}return l._(e,[{key:"setCues_",value:function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)}},{key:"getCueById",value:function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t}}]),e}(),nq={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},nV={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},nH={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},nz={disabled:"disabled",hidden:"hidden",showing:"showing"},nG=function(e){function t(){var e,n=function(t){Object.defineProperty(e,t,{get:function(){return r[t]},set:function(){}})},i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o._(this,t),e=s._(this,t);var r={id:i.id||"vjs_track_"+eh(),kind:i.kind||"",language:i.language||""},a=i.label||"";for(var u in r)n(u);return Object.defineProperty(e,"label",{get:function(){return a}
1,set:function(e){e!==a&&(a=e,this.trigger("labelchange"))}}),e}return f._(t,e),t}(ns),nW=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=eJ().createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=e$().location.protocol),i.host||(i.host=e$().location.host),i},nY=function(e){if(!e.match(/^https?:\/\//)){var t=eJ().createElement("a");t.href=e,e=t.href}return e},nX=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},nK=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e$().location,n=nW(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},n$=Object.freeze({__proto__:null,parseUrl:nW,getAbsoluteURL:nY,getFileExtension:nX,isCrossOrigin:nK}),nQ=function(e,t){var n=new(e$()).WebVTT.Parser(e$(),e$().vttjs,e$().WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(e$().console&&e$().console.groupCollapsed&&e$().console.groupCollapsed("Text Track parsing errors for ".concat(t.src)),i.forEach(function(e){return t_.error(e)}),e$().console&&e$().console.groupEnd&&e$().console.groupEnd()),n.flush()},nJ=function(e,t){var n={uri:e},i=nK(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),e8()(n,nn(this,function(e,n,i){if(e)return t_.error(e,n);t.loaded_=!0,"function"!=typeof e$().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){return"vttjserror"===e.type?void t_.error("vttjs failed to load, stopping trying to process ".concat(t.src)):nQ(i,t)}):nQ(i,t)}))},nZ=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o._(this,t),!n.tech)throw Error("A tech was not provided.");var i=tS(n,{kind:nH[n.kind]||"subtitles",language:n.language||n.srclang||""}),r=nz[i.mode]||"disabled",a=i.default;("metadata"===i.kind||"chapters"===i.kind)&&(r="hidden"),(e=s._(this,t,[i])).tech_=i.tech,e.cues_=[],e.activeCues_=[],e.preload_=!1!==e.tech_.preloadTextTracks;var u=new nF(e.cues_),l=new nF(e.activeCues_),c=!1;return e.timeupdateHandler=nn(e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),e.tech_.one("dispose",function(){e.stopTracking()}),"disabled"!==r&&e.startTracking(),Object.defineProperties(e,{default:{get:function(){return a}
1,set:function(){}},mode:{get:function(){return r},set:function(e){nz[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||nJ(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?u:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return l;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];r.startTime<=e&&r.endTime>=e&&t.push(r)}if(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(c=!0);return this.activeCues_=t,l.setCues_(this.activeCues_),l},set:function(){}}}),i.src?(e.src=i.src,e.preload_||(e.loaded_=!0),(e.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&nJ(e.src,e)):e.loaded_=!0,e}return f._(t,e),l._(t,[{key:"startTracking",value:function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}},{key:"stopTracking",value:function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}},{key:"addCue",value:function(e){var t=e;if(!("getCueAsHTML"in t)){for(var n in t=new(e$()).vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}},{key:"removeCue",value:function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}]),t}(nG);nZ.prototype.allowedEvents_={cuechange:"cuechange"};var n0=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o._(this,t);var i=tS(n,{kind:nV[n.kind]||""});e=s._(this,t,[i]);var r=!1;return Object.defineProperty(e,"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(e.enabled=i.enabled),e.loaded_=!0,e}return f._(t,e),t}(nG),n1=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o._(this,t);var i=tS(n,{kind:nq[n.kind]||""});e=s._(this,t,[i]);var r=!1;return Object.defineProperty(e,"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(e.selected=i.selected),e}return f._(t,e),t}(nG),n2=function(e){function t(){var e,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o._(this,t),e=s._(this,t);var r=new nZ(i);return e.kind=r.kind,e.src=r.src,e.srclang=r.language,e.label=r.label,e.default=r.default,Object.defineProperties(e,{readyState:{get:function(){return n}},track:{get:function(){return r}}}),n=t.NONE,r.addEventListener("loadeddata",function(){n=t.LOADED,e.trigger({type:"load",target:e})}),e}return f._(t,e),t}(ns);n2.prototype.allowedEvents_={load:"load"},n2.NONE=0,n2.LOADING=1,n2.LOADED=2,n2.ERROR=3;var n4={audio:{ListClass:nR,TrackClass:n0,capitalName:"Audio"},video:{ListClass:nM,TrackClass:n1,capitalName:"Video"},text:{ListClass:nU,TrackClass:nZ,capitalName:"Text"}};Object.keys(n4).forEach(function(e){n4[e].getterName="".concat(e,"Tracks"),n4[e].privateName="".concat(e,"Tracks_")});var n8={remoteText:{ListClass:nU,TrackClass:nZ,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:nB,TrackClass:n2,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},n3=Object.assign({},n4,n8);n8.names=Object.keys(n8),n4.names=Object.keys(n4),n3.names=[].concat(n8.names).concat(n4.names);var n5=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return o._(this,t),n.reportTouchActivity=!1,(e=s._(this,t,[null,n,i])).onDurationChange_=function(t){return e.onDurationChange(t)},e.trackProgress_=function(t){return e.trackProgress(t)},e.trackCurrentTime_=function(t){return e.trackCurrentTime(t)},e.stopTrackingCurrentTime_=function(t){return e.stopTrackingCurrentTime(t)},e.disposeSourceHandler_=function(t){return e.disposeSourceHandler(t)}
1,e.queuedHanders_=new Set,e.hasStarted_=!1,e.on("playing",function(){this.hasStarted_=!0}),e.on("loadstart",function(){this.hasStarted_=!1}),n3.names.forEach(function(t){var i=n3[t];n&&n[i.getterName]&&(e[i.privateName]=n[i.getterName])}),e.featuresProgressEvents||e.manualProgressOn(),e.featuresTimeupdateEvents||e.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===n["native".concat(t,"Tracks")]&&(e["featuresNative".concat(t,"Tracks")]=!1)}),!1===n.nativeCaptions||!1===n.nativeTextTracks?e.featuresNativeTextTracks=!1:(!0===n.nativeCaptions||!0===n.nativeTextTracks)&&(e.featuresNativeTextTracks=!0),e.featuresNativeTextTracks||e.emulateTextTracks(),e.preloadTextTracks=!1!==n.preloadTextTracks,e.autoRemoteTextTracks_=new n3.text.ListClass,e.initTrackListeners(),n.nativeControlsForTouch||e.emitTapEvents(),e.constructor&&(e.name_=e.constructor.name||"Unknown Tech"),e}return f._(t,e),l._(t,[{key:"triggerSourceset",value:function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})}},{key:"manualProgressOn",value:function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}},{key:"manualProgressOff",value:function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}},{key:"trackProgress",value:function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(nn(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}},{key:"onDurationChange",value:function(e){this.duration_=this.duration()}},{key:"buffered",value:function(){return ek(0,0)}},{key:"bufferedPercent",value:function(){return eC(this.buffered(),this.duration_)}},{key:"stopTrackingProgress",value:function(){this.clearInterval(this.progressInterval)}},{key:"manualTimeUpdatesOn",value:function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}},{key:"manualTimeUpdatesOff",value:function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}},{key:"trackCurrentTime",value:function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}},{key:"stopTrackingCurrentTime",value:function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}},{key:"dispose",value:function(){this.clearTracks(n4.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),d._(h._(t.prototype),"dispose",this).call(this)}},{key:"clearTracks",value:function(e){var t=this;
1(e=[].concat(e)).forEach(function(e){for(var n=t["".concat(e,"Tracks")]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}})}},{key:"cleanupAutoTextTracks",value:function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}}},{key:"reset",value:function(){}},{key:"crossOrigin",value:function(){}},{key:"setCrossOrigin",value:function(){}},{key:"error",value:function(e){return void 0!==e&&(this.error_=new nC(e),this.trigger("error")),this.error_}},{key:"played",value:function(){return this.hasStarted_?ek(0,0):ek()}},{key:"play",value:function(){}},{key:"setScrubbing",value:function(e){}},{key:"scrubbing",value:function(){}},{key:"setCurrentTime",value:function(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}},{key:"initTrackListeners",value:function(){var e=this;n4.names.forEach(function(t){var n=n4[t],i=function(){e.trigger("".concat(t,"trackchange"))},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})}},{key:"addWebVttScript_",value:function(){var e=this;if(!e$().WebVTT)if(eJ().body.contains(this.el())){if(!this.options_["vtt.js"]&&L(e5())&&Object.keys(e5()).length>0)return void this.trigger("vttjsloaded");var t=eJ().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),e$().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}},{key:"emulateTextTracks",value:function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",a)})}},{key:"addTextTrack",value:function(e,t,n){if(!e)throw Error("TextTrack kind is required but was not provided");return eI(this,e,t,n)}},{key:"createRemoteTextTrack",value:function(e){var t=tS(e,{tech:this});return new n8.remoteTextEl.TrackClass(t)}},{key:"addRemoteTextTrack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=this.createRemoteTextTrack(t);return"boolean"!=typeof n&&(n=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===n&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(i.track)}),i}},{key:"removeRemoteTextTrack",value:function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}},{key:"getVideoPlaybackQuality",value:function(){return{}}},{key:"requestPictureInPicture",value:function(){return Promise.reject()}},{key:"disablePictureInPicture",value:function(){return!0}},{key:"setDisablePictureInPicture",value:function(){}},{key:"requestVideoFrameCallback",value:function(e){var t=this,n=eh();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",function(){t.queuedHanders_.has(n)&&(t.queuedH
1anders_.delete(n),e())})):this.requestNamedAnimationFrame(n,e),n}},{key:"cancelVideoFrameCallback",value:function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}},{key:"setPoster",value:function(){}},{key:"playsinline",value:function(){}},{key:"setPlaysinline",value:function(){}},{key:"overrideNativeAudioTracks",value:function(e){}},{key:"overrideNativeVideoTracks",value:function(e){}},{key:"canPlayType",value:function(e){return""}}],[{key:"canPlayType",value:function(e){return""}},{key:"canPlaySource",value:function(e,n){return t.canPlayType(e.type)}},{key:"isTech",value:function(e){return p._(e.prototype,t)||p._(e,t)||e===t}},{key:"registerTech",value:function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw Error("Tech ".concat(e," must be a Tech"));if(!t.canPlayType)throw Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw Error("Techs must have a static canPlaySource method on them");return e=n_(e),t.techs_[e]=n,t.techs_[ny(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n}},{key:"getTech",value:function(e){if(e){if(t.techs_&&t.techs_[e])return t.techs_[e];if(e=n_(e),e$()&&e$().videojs&&e$().videojs[e])return t_.warn("The ".concat(e," tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)")),e$().videojs[e]}}}]),t}(nk);n3.names.forEach(function(e){var t=n3[e];n5.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),n5.prototype.featuresVolumeControl=!0,n5.prototype.featuresMuteControl=!0,n5.prototype.featuresFullscreenResize=!1,n5.prototype.featuresPlaybackRate=!1,n5.prototype.featuresProgressEvents=!1,n5.prototype.featuresSourceset=!1,n5.prototype.featuresTimeupdateEvents=!1,n5.prototype.featuresNativeTextTracks=!1,n5.prototype.featuresVideoFrameCallback=!1,n5.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;
1i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:t_.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},nk.registerComponent("Tech",n5),n5.registerTech("Tech",n5),n5.defaultTechOrder_=[];var n6={},n7={},n9={},ie={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},it={setCurrentTime:1,setMuted:1,setVolume:1},ii={play:1,pause:1},ir={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ia=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ir[nX(e).toLowerCase()]||""},is=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return ia(t)},io=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){Array.isArray(e=io(e))?t=t.concat(e):P(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[eM({src:e})]:P(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[eM(e)]:[];return e},iu=function(e){function t(e,n,i){o._(this,t);var r,a=tS({createEl:!1},n);if(r=s._(this,t,[e,a,i]),n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var u=0,l=n.playerOptions.techOrder;u<l.length;u++){var c=n_(l[u]),d=n5.getTech(c);if(c||(d=nk.getComponent(c)),d&&d.isSupported()){e.loadTech_(c);break}}return r}return f._(t,e),t}(nk);nk.registerComponent("MediaLoader",iu);var il=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&t_.error("Creating a ClickableComponent with an HTML element of ".concat(e," is not supported; use a Button instead.")),n=Object.assign({role:"button"},n),this.tabIndex_=t.tabIndex;var i=F(e,t,n);return this.player_.options_.experimentalSvgIcons||i.appendChild(F("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}},{key:"dispose",value:function(){this.controlTextEl_=null,d._(h._(t.prototype),"dis
1pose",this).call(this)}},{key:"createControlTextEl",value:function(e){return this.controlTextEl_=F("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,q(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)}},{key:"buildCSSClass",value:function(){return"vjs-control vjs-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"enable",value:function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}},{key:"disable",value:function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}},{key:"handleLanguagechange",value:function(){this.controlText(this.controlText_)}},{key:"handleClick",value:function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}},{key:"handleKeyDown",value:function(e){e0().isEventKey(e,"Space")||e0().isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(nk);nk.registerComponent("ClickableComponent",il);var ic=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).update(),i.update_=function(e){return i.update(e)},e.on("posterchange",i.update_),i}return f._(t,e),l._(t,[{key:"dispose",value:function(){this.player().off("posterchange",this.update_),d._(h._(t.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){return F("div",{className:"vjs-poster"})}},{key:"crossOrigin",value:function(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null!==e&&"anonymous"!==e&&"use-credentials"!==e?this.player_.log.warn('crossOrigin must be null, "anonymous" or "use-credentials", given "'.concat(e,'"')):this.$("img")&&(this.$("img").crossOrigin=e)}},{key:"update",value:function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}},{key:"setSrc",value:function(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(F("picture",{className:"vjs-poster",tabIndex:-1},{},F("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}},{key:"handleClick",value:function(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?eA(this.player_.play()):this.player_.pause())}}]),t}(il);ic.prototype.crossorigin=ic.prototype.crossOrigin,nk.registerComponent("PosterImage",ic);var id="#222",ih="#ccc",ip={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},im=function(e){function t(e,n,i){o._(this,t);var r=s._(this,t,[e,n,i]),a=function(e){r.updateDisplayOverlay(),r.updateDisplay(e)};return e.on("loadstart",function(e){return r.toggleDisplay(e)}),e.on("texttrackchange",function(e){return r.updateDisplay(e)}),e.on("loadedmetadata",function(e){r.updateDisplayOverlay(),r.preselectTrack(e)}),e.ready(nn(r,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",a),e.on("playerresize",a);var t=e$().screen.orientation||e$(),n=e$().screen.orientation?"change":"orientationchange";t.addEventListener(n,a),e.on("dispose",function(){return t.removeEventListener(n,a)});for(var i=this.options_.playerOptions.tracks||[],r=0;r<i.length;r++)this.player_.addRemoteTextTrack(i[r],!0);this.preselectTrack()})),r}return f._(t,e),l._(t,[{key:"preselectTrack",value:function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in i?o.kind===a.kind?n=o:n||(n=o):a&&!a.enabled?(n=null,e=null,t=null):o.default&&("descriptions"!==o.kind||e?o.kind in i&&!t&&(t=o):e=o)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")}},{key:"toggleDisplay",value:function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}},{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}},{key:"clearDisplay",value:function(){"function"==typeof e$().WebVTT&&e$().WebVTT.processCues(e$(),[],this.el_)}},{key:"updateDisplay",value:function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;
1if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n);return}for(var a=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?a=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},{key:"updateDisplayOverlay",value:function(){if(this.player_.videoHeight()&&e$().CSS.supports("inset-inline: 10px")){var e=this.player_.currentWidth(),t=this.player_.currentHeight(),n=e/t,i=this.player_.videoWidth()/this.player_.videoHeight(),r=0,a=0;Math.abs(n-i)>.1&&(n>i?r=Math.round((e-t*i)/2):a=Math.round((t-e/i)/2)),eB(this.el_,"insetInline",eF(r)),eB(this.el_,"insetBlock",eF(a))}}},{key:"updateDisplayState",value:function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var r=n[i];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&eB(a.firstChild,"color",eU(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&eB(a.firstChild,"backgroundColor",eU(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?eB(a,"backgroundColor",eU(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px ".concat(id,", 2px 2px 4px ").concat(id,", 2px 2px 5px ").concat(id):"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px ".concat(id,", 2px 2px ").concat(id,", 3px 3px ").concat(id):"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px ".concat(ih,", 0 1px ").concat(ih,", -1px -1px ").concat(id,", 0 -1px ").concat(id):"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px ".concat(id,", 0 0 4px ").concat(id,", 0 0 4px ").concat(id,", 0 0 4px ").concat(id))),t.fontPercent&&1!==t.fontPercent){var s=e$().parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=ip[t.fontFamily])}}}},{key:"updateForTrack",value:function(e){if(Array.isArray(e)||(e=[e]),!("function"!=typeof e$().WebVTT||e.every(function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);e$().WebVTT.processCues(e$(),t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var u=s.activeCues[o].displayState;z(u,"vjs-text-track-cue","vjs-text-track-cue-"+(s.language?s.language:a)),s.language&&$(u,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}}}]),t}(nk);nk.registerComponent("TextTrackDisplay",im);var ig=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"Video Player"),i=F("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r}},{key:"handleLanguagechange",value:function(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}]),t}(nk);nk.registerComponent("LoadingSpinner",ig);var iv=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button";var i=F(e,t=Object.assign({className:this.buildCSSClass()},t),n=Object.assign({type:"button"},n));return this.player_.options_.experimentalSvgIcons||i.appendChild(F("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return t_.warn("Adding an actionable (user controllable) child to a Button (".concat(n,") is not supported; use a ClickableComponent instead.")),nk.prototype.addChild.call(this,e,t)}},{key:"enable",value:function(){d._(h._(t.prototype),"enable",this).call(this),this.el_.removeAttribute("disabled")}},{key:"disable",value:function(){d._(h._(t.prototype),"disable",this).call(this),this.el_.setAttribute("disabled","disabled")}},{key:"handleKeyDown",value:function(e){e0().isEventKey(e,"Space")||e0().isEventKey(e,"Enter")?e.stopPropagation():d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(il);nk.registerComponent("Button",iv);var iy=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).mouseused_=!1,i.setIcon("play"),i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-big-play-button"}},{key:"handleClick",value:function(e){var t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e){eA(t),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(!i)return void this.player_.tech(!0).focus();var r=function(){return i.focus()};ex(t)?t.then(r,function(){}):this.setTimeout(r,1)}},{key:"handleKeyDown",value:function(e){this.mouseused_=!1,d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleMouseDown",value:function(e){this.mouseused_=!0}}]),t}(iv);iy.prototype.controlText_="Play Video",nk.registerComponent("BigPlayButton",iy);var i_=function(e){function t(e,n){var i;
1return o._(this,t),(i=s._(this,t,[e,n])).setIcon("cancel"),i.controlText(n&&n.controlText||i.localize("Close")),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-close-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){this.trigger({type:"close",bubbles:!1})}},{key:"handleKeyDown",value:function(e){e0().isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(iv);nk.registerComponent("CloseButton",i_);var ib=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),n=s._(this,t,[e,i]),i.replay=void 0===i.replay||i.replay,n.setIcon("play"),n.on(e,"play",function(e){return n.handlePlay(e)}),n.on(e,"pause",function(e){return n.handlePause(e)}),i.replay&&n.on(e,"ended",function(e){return n.handleEnded(e)}),n}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-play-control ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){this.player_.paused()?eA(this.player_.play()):this.player_.pause()}},{key:"handleSeeked",value:function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}},{key:"handlePlay",value:function(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}},{key:"handlePause",value:function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}},{key:"handleEnded",value:function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})}}]),t}(iv);ib.prototype.controlText_="Play",nk.registerComponent("PlayToggle",ib);var iT=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).on(e,["timeupdate","ended","seeking"],function(e){return i.update(e)}),i.updateTextNode_(),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=this.buildCSSClass(),n=d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"".concat(e," vjs-time-control vjs-control")}),i=F("span",{className:"vjs-control-text",textContent:"".concat(this.localize(this.labelText_),"Â ")},{role:"presentation"});return n.appendChild(i),this.contentEl_=F("span",{className:"".concat(e,"-display")},{role:"presentation"}),n.appendChild(this.contentEl_),n}},{key:"dispose",value:function(){this.contentEl_=null,this.textNode_=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"update",value:function(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}},{key:"updateTextNode_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t=ew(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,t_.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=eJ().createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}}))}},{key:"updateContent",value:function(e){}}]),t}(nk);iT.prototype.labelText_="Time",iT.prototype.controlText_="Time",nk.registerComponent("TimeDisplay",iT);var ik=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-current-time"}},{key:"updateContent",value:function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}]),t}(iT);ik.prototype.labelText_="Current Time",ik.prototype.controlText_="Current Time",nk.registerComponent("CurrentTimeDisplay",ik);var iS=function(e){function t(e,n){o._(this,t);var i=s._(this,t,[e,n]),r=function(e){return i.updateContent(e)};return i.on(e,"durationchange",r),i.on(e,"loadstart",r),i.on(e,"loadedmetadata",r),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-duration"}},{key:"updateContent",value:function(e){var t=this.player_.duration();this.updateTextNode_(t)}}]),t}(iT);iS.prototype.labelText_="Duration",iS.prototype.controlText_="Duration",nk.registerComponent("DurationDisplay",iS);var iE=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=d._(h._(t.prototype),"createEl",this).call(this,"div"),i=d._(h._(t.prototype),"createEl",this).call(this,"span",{textContent:"/"});return n.appendChild(i),e.appendChild(n),e}}]),t}(nk);nk.registerComponent("TimeDivider",iE);var iw=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).on(e,"durationchange",function(e){return i.updateContent(e)}),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-remaining-time"}},{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this);return!1!==this.options_.displayNegative&&e.insertBefore(F("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}},{key:"updateContent",value:function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))}}]),t}(iT);iw.prototype.labelText_="Remaining Time",iw.prototype.controlText_="Remaining Time",nk.registerComponent("RemainingTimeDisplay",iw);var iC=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=F("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(F("span",{className:"vjs-control-text",textContent:"".concat(this.localize("Stream Type"),"Â ")})),this.contentEl_.appendChild(eJ().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}},{key:"dispose",value:function(){this.contentEl_=null,d._(h._(t.prototype),"dis
1pose",this).call(this)}},{key:"updateShowing",value:function(e){this.player().duration()===1/0?this.show():this.hide()}}]),t}(nk);nk.registerComponent("LiveDisplay",iC);var ix=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=F("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}},{key:"updateLiveEdgeStatus",value:function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}},{key:"handleClick",value:function(){this.player_.liveTracker.seekToLiveEdge()}},{key:"dispose",value:function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,d._(h._(t.prototype),"dispose",this).call(this)}}]),t}(iv);ix.prototype.controlText_="Seek to live, currently playing live",nk.registerComponent("SeekToLive",ix);var iA=Object.freeze({__proto__:null,clamp:eq}),iI=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}return f._(t,e),l._(t,[{key:"enabled",value:function(){return this.enabled_}},{key:"enable",value:function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}},{key:"disable",value:function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}}},{key:"createEl",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=Object.assign({tabIndex:0},n),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),d._(h._(t.prototype),"createEl",this).call(this,e,n,i)}},{key:"handleMouseDown",value:function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||tL||e.preventDefault(),J(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}},{key:"handleMouseMove",value:function(e){}},{key:"handleMouseUp",value:function(e){var t=this.bar.el_.ownerDocument;Z(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}},{key:"update",value:function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"})),t}}},{key:"getProgress",value:function(){return Number(eq(this.getPercent(),0,1).toFixed(4))}},{key:"calculateDistance",value:function(e){var t=en(this.el_,e);return this.vertical()?t.y:t.x}},{key:"handleKeyDown",value:function(e){e0().isEventKey(e,"Left")||e0().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):e0().isEventKey(e,"Right")||e0().isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleClick",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"vertical",value:function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}]),t}(nk);nk.registerComponent("Slider",iI);
1var iP=function(e,t){return eq(e/t*100,0,100).toFixed(2)+"%"},iL=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).partEls_=[],i.on(e,"progress",function(e){return i.update(e)}),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-load-progress"}),n=F("span",{className:"vjs-control-text"}),i=F("span",{textContent:this.localize("Loaded")}),r=eJ().createTextNode(": ");return this.percentageEl_=F("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),e}},{key:"dispose",value:function(){this.partEls_=null,this.percentageEl_=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"update",value:function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=iP(r,i);t.percent_!==s&&(t.el_.style.width=s,q(t.percentageEl_,s),t.percent_=s);for(var o=0;o<n.length;o++){var u=n.start(o),l=n.end(o),c=a[o];c||(c=t.el_.appendChild(F()),a[o]=c),(c.dataset.start!==u||c.dataset.end!==l)&&(c.dataset.start=u,c.dataset.end=l,c.style.left=iP(u,r),c.style.width=iP(l-u,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length})}}]),t}(nk);nk.registerComponent("LoadProgressBar",iL);var ij=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).update=ni(nn(i,i.update),30),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t,n){var i=et(this.el_),r=ee(this.player_.el()),a=e.width*t;if(r&&i){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),u=i.width/2;s<u?u+=u-s:o<u&&(u=o),u<0?u=0:u>i.width&&(u=i.width),u=Math.round(u),this.el_.style.right="-".concat(u,"px"),this.write(n)}}},{key:"write",value:function(e){q(this.el_,e)}},{key:"updateTime",value:function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),u=o-t*o;a=(u<1?"":"-")+ew(u,o)}else a=ew(n,s);r.update(e,t,a),i&&i()})}}]),t}(nk);nk.registerComponent("TimeTooltip",ij);var iO=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).setIcon("circle"),i.update=ni(nn(i,i.update),30),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}}}]),t}(nk);iO.prototype.options_={children:[]},tW||tx||iO.prototype.options_.children.push("timeTooltip"),nk.registerComponent("PlayProgressBar",iO);var iD=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).update=ni(nn(i,i.update),30),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-mouse-display"})}},{key:"update",value:function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,function(){n.el_.style.left="".concat(e.width*t,"px")})}}]),t}(nk);iD.prototype.options_={children:["timeTooltip"]},nk.registerComponent("MouseTimeDisplay",iD);var iR=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).setEventHandlers_(),i}return f._(t,e),l._(t,[{key:"setEventHandlers_",value:function(){var e=this;this.update_=nn(this,this.update),this.update=ni(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in eJ()&&"visibilityState"in eJ()&&this.on(eJ(),"visibilitychange",this.toggleVisibility_)}},{key:"toggleVisibility_",value:function(e){"hidden"===eJ().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}},{key:"enableInterval_",value:function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))}},{key:"disableInterval_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}},{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}},{key:"update",value:function(e){var n=this;if("hidden"!==eJ().visibilityState){var i=d._(h._(t.prototype),"update",this).call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();
1t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),(n.currentTime_!==e||n.duration_!==r)&&(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ew(e,r),ew(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(ee(n.el()),n.getProgress())}),i}}},{key:"userSeek_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}},{key:"getCurrentTime_",value:function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}},{key:"getPercent",value:function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e}},{key:"handleMouseDown",value:function(e){eu(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),d._(h._(t.prototype),"handleMouseDown",this).call(this,e))}},{key:"handleMouseMove",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(!eu(e)||isNaN(this.player_.duration()))){n||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),s=r.liveCurrentTime();if((t=a+i*r.liveWindow())>=s&&(t=s),t<=a&&(t=a+.1),t===1/0)return}else(t=i*this.player_.duration())===this.player_.duration()&&(t-=.1);this.userSeek_(t),this.player_.options_.enableSmoothSeeking&&this.update()}}},{key:"enable",value:function(){d._(h._(t.prototype),"enable",this).call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()}},{key:"disable",value:function(){d._(h._(t.prototype),"disable",this).call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()}},{key:"handleMouseUp",value:function(e){d._(h._(t.prototype),"handleMouseUp",this).call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?eA(this.player_.play()):this.update_()}},{key:"stepForward",value:function(){this.userSeek_(this.player_.currentTime()+5)}},{key:"stepBack",value:function(){this.userSeek_(this.player_.currentTime()-5)}},{key:"handleAction",value:function(e){this.player_.paused()?this.player_.play():this.player_.pause()}},{key:"handleKeyDown",value:function(e){var n=this.player_.liveTracker;if(e0().isEventKey(e,"Space")||e0().isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(e0().isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(e0().isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e0()(e))){e.preventDefault(),e.stopPropagation();var i=(e0().codes[e0()(e)]-e0().codes["0"])*10/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else e0().isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):e0().isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"dispose",value:function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in eJ()&&"visibilityState"in eJ()&&this.off(eJ(),"visibilitychange",this.toggleVisibility_),d._(h._(t.prototype),"dispose",this).call(this)}}]),t}(iI);iR.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},tW||tx||iR.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),nk.registerComponent("SeekBar",iR);var iN=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).handleMouseMove=ni(nn(i,i.handleMouseMove),30),i.throttledHandleMouseSeek=ni(nn(i,i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control vjs-control"})}},{key:"handleMouseMove",value:function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=et(r),s=en(r,e).x;s=eq(s,0,1),i&&i.update(a,s),n&&n.update(a,t.getProgress())}}}},{key:"handleMouseSeek",value:function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)}},{key:"enabled",value:function(){return this.enabled_}}
1,{key:"disable",value:function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&eA(this.player_.play())}}},{key:"enable",value:function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}},{key:"removeListenersAddedOnMousedownAndTouchstart",value:function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseDown",value:function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseUp",value:function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}]),t}(nk);iN.prototype.options_={children:["seekBar"]},nk.registerComponent("ProgressControl",iN);var iM=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).setIcon("picture-in-picture-enter"),i.on(e,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){return i.handlePictureInPictureAudioModeChange()}),i.disable(),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-picture-in-picture-control vjs-hidden ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handlePictureInPictureAudioModeChange",value:function(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}},{key:"handlePictureInPictureEnabledChange",value:function(){eJ().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in e$()?this.enable():this.disable()}},{key:"handlePictureInPictureChange",value:function(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}},{key:"handleClick",value:function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}},{key:"show",value:function(){"function"==typeof eJ().exitPictureInPicture&&d._(h._(t.prototype),"show",this).call(this)}}]),t}(iv);iM.prototype.controlText_="Picture-in-Picture",nk.registerComponent("PictureInPictureToggle",iM);var iU=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).setIcon("fullscreen-enter"),i.on(e,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===eJ()[e.fsApi_.fullscreenEnabled]&&i.disable(),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-fullscreen-control ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handleFullscreenChange",value:function(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}},{key:"handleClick",value:function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}]),t}(iv);iU.prototype.controlText_="Fullscreen",nk.registerComponent("FullscreenToggle",iU);var iB=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},iF=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-level"});
1return this.setIcon("circle",e),e.appendChild(d._(h._(t.prototype),"createEl",this).call(this,"span",{className:"vjs-control-text"})),e}}]),t}(nk);nk.registerComponent("VolumeLevel",iF);var iq=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).update=ni(nn(i,i.update),30),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t,n,i){if(!n){var r=ee(this.el_),a=ee(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,u=e.width-s+(a.right-e.right),l=r.width/2;o<l?l+=l-o:u<l&&(l=u),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-".concat(l,"px")}this.write("".concat(i,"%"))}},{key:"write",value:function(e){q(this.el_,e)}},{key:"updateVolume",value:function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,n,i.toFixed(0)),r&&r()})}}]),t}(nk);nk.registerComponent("VolumeLevelTooltip",iq);var iV=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).update=ni(nn(i,i.update),30),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-mouse-display"})}},{key:"update",value:function(e,t,n){var i=this;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,100*t,function(){n?i.el_.style.bottom="".concat(e.height*t,"px"):i.el_.style.left="".concat(e.width*t,"px")})}}]),t}(nk);iV.prototype.options_={children:["volumeLevelTooltip"]},nk.registerComponent("MouseVolumeLevelDisplay",iV);var iH=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(e,"volumechange",function(e){return i.updateARIAAttributes(e)}),e.ready(function(){return i.updateARIAAttributes()}),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}},{key:"handleMouseDown",value:function(e){eu(e)&&d._(h._(t.prototype),"handleMouseDown",this).call(this,e)}},{key:"handleMouseMove",value:function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=ee(n),r=this.vertical(),a=en(n,e);a=eq(a=r?a.y:a.x,0,1),t.update(i,a,r)}eu(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}},{key:"checkMuted",value:function(){this.player_.muted()&&this.player_.muted(!1)}},{key:"getPercent",value:function(){return this.player_.muted()?0:this.player_.volume()}},{key:"stepForward",value:function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}},{key:"stepBack",value:function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}},{key:"updateARIAAttributes",value:function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}},{key:"volumeAsPercentage_",value:function(){return Math.round(100*this.player_.volume())}},{key:"updateLastVolume_",value:function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})}}]),t}(iI);iH.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},tW||tx||iH.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),iH.prototype.playerEvent="volumechange",nk.registerComponent("VolumeBar",iH);var iz=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),i.vertical=i.vertical||!1,(void 0===i.volumeBar||L(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical),iB(n=s._(this,t,[e,i]),e),n.throttledHandleMouseMove=ni(nn(n,n.handleMouseMove),30),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",function(e){return n.handleMouseDown(e)}),n.on("touchstart",function(e){return n.handleMouseDown(e)}),n.on("mousemove",function(e){return n.handleMouseMove(e)}),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-control vjs-control ".concat(e)})}},{key:"handleMouseDown",value:function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseUp",value:function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseMove",value:function(e){this.volumeBar.handleMouseMove(e)}}]),t}(nk);iz.prototype.options_={children:["volumeBar"]}
1,nk.registerComponent("VolumeControl",iz);var iG=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},iW=function(e){function t(e,n){var i;return o._(this,t),iG(i=s._(this,t,[e,n]),e),i.on(e,["loadstart","volumechange"],function(e){return i.update(e)}),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-mute-control ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();0===t?(this.player_.volume(n<.1?.1:n),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())}},{key:"update",value:function(e){this.updateIcon_(),this.updateControlText_()}},{key:"updateIcon_",value:function(){var e=this.player_.volume(),t=3;this.setIcon("volume-high"),tW&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),G(this.el_,[0,1,2,3].reduce(function(e,t){return e+"".concat(t?" ":"","vjs-vol-").concat(t)},"")),z(this.el_,"vjs-vol-".concat(t))}},{key:"updateControlText_",value:function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}]),t}(iv);iW.prototype.controlText_="Mute",nk.registerComponent("MuteToggle",iW);var iY=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||L(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline),(n=s._(this,t,[e,i])).handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(e,["loadstart"],function(e){return n.volumePanelState_(e)}),n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)}),n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)}),n.on("keydown",function(e){return n.handleKeyPress(e)}),n.on("mouseover",function(e){return n.handleMouseOver(e)}),n.on("mouseout",function(e){return n.handleMouseOut(e)}),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}return f._(t,e),l._(t,[{key:"sliderActive_",value:function(){this.addClass("vjs-slider-active")}},{key:"sliderInactive_",value:function(){this.removeClass("vjs-slider-active")}},{key:"volumePanelState_",value:function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}},{key:"createEl",value:function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-panel vjs-control ".concat(e)})}},{key:"dispose",value:function(){this.handleMouseOut(),d._(h._(t.prototype),"dispose",this).call(this)}},{key:"handleVolumeControlKeyUp",value:function(e){e0().isEventKey(e,"Esc")&&this.muteToggle.focus()}},{key:"handleMouseOver",value:function(e){this.addClass("vjs-hover"),t6(eJ(),"keyup",this.handleKeyPressHandler_)}},{key:"handleMouseOut",value:function(e){this.removeClass("vjs-hover"),t7(eJ(),"keyup",this.handleKeyPressHandler_)}},{key:"handleKeyPress",value:function(e){e0().isEventKey(e,"Esc")&&this.handleMouseOut()}}]),t}(nk);iY.prototype.options_={children:["muteToggle","volumeControl"]},nk.registerComponent("VolumePanel",iY);var iX=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).validOptions=[5,10,30],i.skipTime=i.getSkipForwardTime(),i.skipTime&&i.validOptions.includes(i.skipTime)?(i.setIcon("forward-".concat(i.skipTime)),i.controlText(i.localize("Skip forward {1} seconds",[i.skipTime])),i.show()):i.hide(),i}return f._(t,e),l._(t,[{key:"getSkipForwardTime",value:function(){var e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}},{key:"buildCSSClass",value:function(){return"vjs-skip-forward-".concat(this.getSkipForwardTime()," ").concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){if(!isNaN(this.player_.duration())){var t,n=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive
1()?i.seekableEnd():this.player_.duration();t=n+this.skipTime<=r?n+this.skipTime:r,this.player_.currentTime(t)}}},{key:"handleLanguagechange",value:function(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}]),t}(iv);iX.prototype.controlText_="Skip Forward",nk.registerComponent("SkipForward",iX);var iK=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).validOptions=[5,10,30],i.skipTime=i.getSkipBackwardTime(),i.skipTime&&i.validOptions.includes(i.skipTime)?(i.setIcon("replay-".concat(i.skipTime)),i.controlText(i.localize("Skip backward {1} seconds",[i.skipTime])),i.show()):i.hide(),i}return f._(t,e),l._(t,[{key:"getSkipBackwardTime",value:function(){var e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}},{key:"buildCSSClass",value:function(){return"vjs-skip-backward-".concat(this.getSkipBackwardTime()," ").concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"handleClick",value:function(e){var t,n=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()&&i.seekableStart();t=r&&n-this.skipTime<=r?r:n>=this.skipTime?n-this.skipTime:0,this.player_.currentTime(t)}},{key:"handleLanguagechange",value:function(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}]),t}(iv);iK.prototype.controlText_="Skip Backward",nk.registerComponent("SkipBackward",iK);var i$=function(e){function t(e,n){var i;return o._(this,t),i=s._(this,t,[e,n]),n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}return f._(t,e),l._(t,[{key:"addEventListenerForItem",value:function(e){p._(e,nk)&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}},{key:"removeEventListenerForItem",value:function(e){p._(e,nk)&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}},{key:"removeChild",value:function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),d._(h._(t.prototype),"removeChild",this).call(this,e)}},{key:"addItem",value:function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)}},{key:"createEl",value:function(){var e=this.options_.contentElType||"ul";this.contentEl_=F(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=d._(h._(t.prototype),"createEl",this).call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),t6(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n}},{key:"dispose",value:function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"handleBlur",value:function(e){var t=e.relatedTarget||eJ().activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}}},{key:"handleTapClick",value:function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(Array.isArray(t)){var n=t.filter(function(t){return t.el()===e.target})[0];n&&"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}}}},{key:"handleKeyDown",value:function(e){e0().isEventKey(e,"Left")||e0().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(e0().isEventKey(e,"Right")||e0().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}},{key:"stepForward",value:function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}},{key:"stepBack",value:function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}]),t}(nk);nk.registerComponent("Menu",i$);var iQ=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o._(this,t),(n=s._(this,t,[e,i])).menuButton_=new iv(e,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=iv.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var a=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",a),n.on(n.menuButton_,"click",a),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),t6(eJ(),"keyup",
1n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}return f._(t,e),l._(t,[{key:"update",value:function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}},{key:"createMenu",value:function(){var e=new i$(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=F("li",{className:"vjs-menu-title",textContent:n_(this.options_.title),tabIndex:-1}),n=new nk(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e}},{key:"createItems",value:function(){}},{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:this.buildWrapperCSSClass()},{})}},{key:"setIcon",value:function(e){d._(h._(t.prototype),"setIcon",this).call(this,e,this.menuButton_.el_)}},{key:"buildWrapperCSSClass",value:function(){var e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";var n=iv.prototype.buildCSSClass();return"vjs-menu-button ".concat(e," ").concat(n," ").concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildCSSClass",value:function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button ".concat(e," ").concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)}},{key:"dispose",value:function(){this.handleMouseLeave(),d._(h._(t.prototype),"dispose",this).call(this)}},{key:"handleClick",value:function(e){this.buttonPressed_?this.unpressButton():this.pressButton()}},{key:"handleMouseLeave",value:function(e){this.removeClass("vjs-hover"),t7(eJ(),"keyup",this.handleMenuKeyUp_)}},{key:"focus",value:function(){this.menuButton_.focus()}},{key:"blur",value:function(){this.menuButton_.blur()}},{key:"handleKeyDown",value:function(e){e0().isEventKey(e,"Esc")||e0().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),e0().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(e0().isEventKey(e,"Up")||e0().isEventKey(e,"Down"))&&!this.buttonPressed_&&(e.preventDefault(),this.pressButton())}},{key:"handleMenuKeyUp",value:function(e){(e0().isEventKey(e,"Esc")||e0().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}},{key:"handleSubmenuKeyPress",value:function(e){this.handleSubmenuKeyDown(e)}},{key:"handleSubmenuKeyDown",value:function(e){(e0().isEventKey(e,"Esc")||e0().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),e0().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}},{key:"pressButton",value:function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),tW&&U()||this.menu.focus())}},{key:"unpressButton",value:function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}},{key:"disable",value:function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}},{key:"enable",value:function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}]),t}(nk);nk.registerComponent("MenuButton",iQ);var iJ=function(e){function t(e,n){o._(this,t);var i,r=n.tracks;if((i=s._(this,t,[e,n])).items.length<=1&&i.hide(),!r)return v._(i);var a=nn(i,i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)}),i}return f._(t,e),t}(iQ);nk.registerComponent("TrackButton",iJ);var iZ=["Tab","Esc","Up","Down","Right","Left"],i0=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}return f._(t,e),l._(t,[{key:"createEl",value:function(e,n,i){this.nonIconControl
1=!0;var r=d._(h._(t.prototype),"createEl",this).call(this,"li",Object.assign({className:"vjs-menu-item",tabIndex:-1},n),i),a=F("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(a):r.replaceChild(a,r.querySelector(".vjs-icon-placeholder")),r}},{key:"handleKeyDown",value:function(e){iZ.some(function(t){return e0().isEventKey(e,t)})||d._(h._(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleClick",value:function(e){this.selected(!0)}},{key:"selected",value:function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}]),t}(il);nk.registerComponent("MenuItem",i0);var i1=function(e){function t(e,n){o._(this,t);var i,r,a=n.track,u=e.textTracks();n.label=a.label||a.language||"Unknown",n.selected="showing"===a.mode,(i=s._(this,t,[e,n])).track=a,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var l=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(i,t)},c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(i,t)};return e.on(["loadstart","texttrackchange"],l),u.addEventListener("change",l),u.addEventListener("selectedlanguagechange",c),i.on("dispose",function(){e.off(["loadstart","texttrackchange"],l),u.removeEventListener("change",l),u.removeEventListener("selectedlanguagechange",c)}),void 0===u.onchange&&i.on(["tap","click"],function(){if("object"!==T._(e$().Event))try{r=new(e$()).Event("change")}catch(e){}r||(r=eJ().createEvent("Event")).initEvent("change",!0,!0),u.dispatchEvent(r)}),i.handleTracksChange(),i}return f._(t,e),l._(t,[{key:"handleClick",value:function(e){var n=this.track,i=this.player_.textTracks();if(d._(h._(t.prototype),"handleClick",this).call(this,e),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}}},{key:"handleTracksChange",value:function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}},{key:"handleSelectedLanguageChange",value:function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})}}},{key:"dispose",value:function(){this.track=null,d._(h._(t.prototype),"dispose",this).call(this)}}]),t}(i0);nk.registerComponent("TextTrackMenuItem",i1);var i2=function(e){function t(e,n){return o._(this,t),n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,s._(this,t,[e,n])}return f._(t,e),l._(t,[{key:"handleTracksChange",value:function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)}},{key:"handleSelectedLanguageChange",value:function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})}},{key:"handleLanguagechange",value:function(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),d._(h._(t.prototype),"handleLanguagechange",this).call(this)}}]),t}(i1);nk.registerComponent("OffTextTrackMenuItem",i2);var i4=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),n.tracks=e.textTracks(),s._(this,t,[e,n])}return f._(t,e),l._(t,[{key:"createItems",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i1;this.label_&&(e="".concat(this.label_," off")),t.push(new i2(this.player_,{kinds:this.kinds_,kind:this.kind_,label:e})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var s=new n(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-".concat(a.kind,"-menu-item")),t.push(s)}}return t}}]),t}(iJ);nk.registerComponent("TextTrackButton",i4);var i8=function(e){function t(e,n){o._(this,t);var i,r=n.track,a=n.cue,u=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=u&&u<a.endTime,(i=s._(this,t,[e,n])).track=r,
1i.cue=a,i}return f._(t,e),l._(t,[{key:"handleClick",value:function(e){d._(h._(t.prototype),"handleClick",this).call(this),this.player_.currentTime(this.cue.startTime)}}]),t}(i0);nk.registerComponent("ChaptersTrackMenuItem",i8);var i3=function(e){function t(e,n,i){var r;return o._(this,t),(r=s._(this,t,[e,n,i])).setIcon("chapters"),r.selectCurrentItem_=function(){r.items.forEach(function(e){e.selected(r.track_.activeCues[0]===e.cue)})},r}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-chapters-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-chapters-button ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"update",value:function(e){if(!e||!e.track||"chapters"===e.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),d._(h._(t.prototype),"update",this).call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&d._(h._(t.prototype),"update",this).call(this)}}},{key:"setTrack",value:function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}},{key:"findChaptersTrack",value:function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}}},{key:"getMenuCaption",value:function(){return this.track_&&this.track_.label?this.track_.label:this.localize(n_(this.kind_))}},{key:"createMenu",value:function(){return this.options_.title=this.getMenuCaption(),d._(h._(t.prototype),"createMenu",this).call(this)}},{key:"createItems",value:function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new i8(this.player_,{track:this.track_,cue:r});e.push(a)}return e}}]),t}(i4);i3.prototype.kind_="chapters",i3.prototype.controlText_="Chapters",nk.registerComponent("ChaptersButton",i3);var i5=function(e){function t(e,n,i){o._(this,t),(r=s._(this,t,[e,n,i])).setIcon("audio-description");var r,a=e.textTracks(),u=nn(r,r.handleTracksChange);return a.addEventListener("change",u),r.on("dispose",function(){a.removeEventListener("change",u)}),r}return f._(t,e),l._(t,[{key:"handleTracksChange",value:function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()}},{key:"buildCSSClass",value:function(){return"vjs-descriptions-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-descriptions-button ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}}]),t}(i4);i5.prototype.kind_="descriptions",i5.prototype.controlText_="Descriptions",nk.registerComponent("DescriptionsButton",i5);var i6=function(e){function t(e,n,i){var r;return o._(this,t),(r=s._(this,t,[e,n,i])).setIcon("subtitles"),r}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-subtitles-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-subtitles-button ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}}]),t}(i4);i6.prototype.kind_="subtitles",i6.prototype.controlText_="Subtitles",nk.registerComponent("SubtitlesButton",i6);var i7=function(e){function t(e,n){var i;return o._(this,t),n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=s._(this,t,[e,n])).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return f._(t,e),l._(t,[{key:"handleClick",value:function(e){this.player().getChild("textTrackSettings").open()}},{key:"handleLanguagechange",value:function(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),d._(h._(t.prototype),"handleLanguagechange",this).call(this)}}]),t}(i1);nk.registerComponent("CaptionSettingsMenuItem",i7);var i9=function(e){function t(e,n,i){var r;return o._(this,t),(r=s._(this,t,[e,n,i])).setIcon("captions"),r}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-captions-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-captions-button ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new i7(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),d._(h._(t.prototype),"createItems",this).call(this,e)}}]),t}(i4);i9.prototype.kind_="captions",i9.prototype.controlText_="Captions",nk.registerComponent("CaptionsButton",i9);var re=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(e,n,i){var r=d._(h._(t.prototype),"createEl",this).call(this,e,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):a.appendChild(F("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(F("span",{className:"vjs-control-text",textContent:" ".concat(this.localize("Captions"))}))),r}}]),t}(i1);nk.registerComponent("SubsCapsMenuItem",re);var rt=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),(n=s._(this,t,[e,i])).label_="subtitles",n.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1&&(n.label_="captions",n.setIcon("captions")),n.menuButton_.controlText(n_(n.label_)),n}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-subs-caps-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-subs-caps-button ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new i7(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=d._(h._(t.prototype),"createItems",this).call(this,e,re)}}]),t}(i4);rt.prototype.kinds_=["captions","subtitles"],rt.prototype.controlText_="Subtitles",nk.registerComponent("SubsCapsButton",rt);var rn=function(e){function t(e,n){o._(this,t);var i,r=n.track,a=e.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=s._(this,t,[e,n])).track=r,
1i.addClass("vjs-".concat(r.kind,"-menu-item"));var u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(i,t)};return a.addEventListener("change",u),i.on("dispose",function(){a.removeEventListener("change",u)}),i}return f._(t,e),l._(t,[{key:"createEl",value:function(e,n,i){var r=d._(h._(t.prototype),"createEl",this).call(this,e,n,i),a=r.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(a.appendChild(F("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(F("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}},{key:"handleClick",value:function(e){if(d._(h._(t.prototype),"handleClick",this).call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}}},{key:"handleTracksChange",value:function(e){this.selected(this.track.enabled)}}]),t}(i0);nk.registerComponent("AudioTrackMenuItem",rn);var ri=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),i.tracks=e.audioTracks(),(n=s._(this,t,[e,i])).setIcon("audio"),n}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-audio-button ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-audio-button ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new rn(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e}}]),t}(iJ);ri.prototype.controlText_="Audio Track",nk.registerComponent("AudioTrackButton",ri);var rr=function(e){function t(e,n){o._(this,t);var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===e.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=s._(this,t,[e,n])).label=r,i.rate=a,i.on(e,"ratechange",function(e){return i.update(e)}),i}return f._(t,e),l._(t,[{key:"handleClick",value:function(e){d._(h._(t.prototype),"handleClick",this).call(this),this.player().playbackRate(this.rate)}},{key:"update",value:function(e){this.selected(this.player().playbackRate()===this.rate)}}]),t}(i0);rr.prototype.contentElType="button",nk.registerComponent("PlaybackRateMenuItem",rr);var ra=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(e,"loadstart",function(e){return i.updateVisibility(e)}),i.on(e,"ratechange",function(e){return i.updateLabel(e)}),i.on(e,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){var e=d._(h._(t.prototype),"createEl",this).call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=F("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}},{key:"dispose",value:function(){this.labelEl_=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"buildCSSClass",value:function(){return"vjs-playback-rate ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"vjs-playback-rate ".concat(d._(h._(t.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new rr(this.player(),{rate:e[n]+"x"}));return t}},{key:"handlePlaybackRateschange",value:function(e){this.update()}},{key:"playbackRates",value:function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]}},{key:"playbackRateSupported",value:function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}},{key:"updateVisibility",value:function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}},{key:"updateLabel",value:function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}]),t}(iQ);ra.prototype.controlText_="Playback Rate",nk.registerComponent("PlaybackRateMenuButton",ra);var rs=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-spacer ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className||(n.className=this.buildCSSClass()),d._(h._(t.prototype),"createEl",this).call(this,e,n,i)}}]),t}(nk);nk.registerComponent("Spacer",rs);var ro=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-custom-control-spacer ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:this.buildCSSClass(),textContent:"Â "})}}]),t}(rs);nk.registerComponent("CustomControlSpacer",ro);var ru=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"div",{className:"vjs-control-bar",dir:"ltr"})}}]),t}(nk);ru.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},nk.registerComponent("ControlBar",ru);var rl=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).on(e,"error",function(e){i.close(),i.open(e)}),i}return f._(t,e),l._(t,[{key:"buildCSSClass",value:function(){return"vjs-error-display ".concat(d._(h._(t.prototype),"buildCSSClass",this).call(this))}},{key:"content",value:function(){var e=this.player().error();return e?this.localize(e.message):""}}]),t}(nL);rl.prototype.options_=Object.assign({}
1,nL.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),nk.registerComponent("ErrorDisplay",rl);var rc="vjs-text-track-settings",rd=["#000","Black"],rh=["#00F","Blue"],rf=["#0FF","Cyan"],rp=["#0F0","Green"],rm=["#F0F","Magenta"],rg=["#F00","Red"],rv=["#FFF","White"],ry=["#FF0","Yellow"],r_=["1","Opaque"],rb=["0.5","Semi-Transparent"],rT=["0","Transparent"],rk={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[rd,rv,rg,rp,rh,ry,rm,rf]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[r_,rb,rT]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[rv,rd,rg,rp,rh,ry,rm,rf]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[r_,rb]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[rT,rb,r_]}};rk.windowColor.options=rk.backgroundColor.options;var rS=function(e){function t(e,n){var i;return o._(this,t),n.temporary=!1,(i=s._(this,t,[e,n])).updateDisplay=i.updateDisplay.bind(i),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=F("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),A(rk,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}return f._(t,e),l._(t,[{key:"dispose",value:function(){this.endDialog=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"createElSelect_",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",r=rk[e],a=r.id.replace("%s",this.id_),s=[n,a].join(" ").trim(),o="vjs_select_".concat(eh());return["<".concat(i,' id="').concat(a,'"').concat("label"===i?' for="'.concat(o,'" class="vjs-label"'):"",">"),this.localize(r.label),"</".concat(i,">"),'<select aria-labelledby="'.concat(s,'" id="').concat(o,'">')].concat(r.options.map(function(e){var n=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'.concat(n,'" value="').concat(e[0],'" '),'aria-labelledby="'.concat(s," ").concat(n,'">'),t.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")}},{key:"createElFgColor_",value:function(){var e="captions-text-legend-".concat(this.id_);return['<fieldset class="vjs-fg vjs-track-setting">','<legend id="'.concat(e,'">'),this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}},{key:"createElBgColor_",value:function(){var e="captions-background-".concat(this.id_);return['<fieldset class="vjs-bg vjs-track-setting">','<legend id="'.concat(e,'">
1'),this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}},{key:"createElWinColor_",value:function(){var e="captions-window-".concat(this.id_);return['<fieldset class="vjs-window vjs-track-setting">','<legend id="'.concat(e,'">'),this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}},{key:"createElColors_",value:function(){return F("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}},{key:"createElFont_",value:function(){return F("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}},{key:"createElControls_",value:function(){var e=this.localize("restore all settings to the default values");return F("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'.concat(e,'">'),this.localize("Reset"),'<span class="vjs-control-text"> '.concat(e,"</span>"),"</button>",'<button type="button" class="vjs-done-button">'.concat(this.localize("Done"),"</button>")].join("")})}},{key:"content",value:function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}},{key:"label",value:function(){return this.localize("Caption Settings Dialog")}},{key:"description",value:function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}},{key:"buildCSSClass",value:function(){return d._(h._(t.prototype),"buildCSSClass",this).call(this)+" vjs-text-track-settings"}},{key:"getValues",value:function(){var e=this;return I(rk,function(t,n,i){var r,a,s=(r=e.$(n.selector),a=n.parser,eV(r.options[r.options.selectedIndex].value,a));return void 0!==s&&(t[i]=s),t},{})}},{key:"setValues",value:function(e){var t=this;A(rk,function(n,i){eH(t.$(n.selector),e[i],n.parser)})}},{key:"setDefaults",value:function(){var e=this;A(rk,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})}},{key:"restoreSettings",value:function(){var e;try{e=JSON.parse(e$().localStorage.getItem(rc))}catch(e){t_.warn(e)}e&&this.setValues(e)}},{key:"saveSettings",value:function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?e$().localStorage.setItem(rc,JSON.stringify(e)):e$().localStorage.removeItem(rc)}catch(e){t_.warn(e)}}}},{key:"updateDisplay",value:function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}},{key:"conditionalBlur_",value:function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()}},{key:"handleLanguagechange",value:function(){this.fill()}}]),t}(nL);nk.registerComponent("TextTrackSettings",rS);var rE=function(e){function t(e,n){o._(this,t);var i,r=n.ResizeObserver||e$().ResizeObserver;null===n.ResizeObserver&&(r=!1);var a=tS({createEl:!r,reportTouchActivity:!1},n);return(i=s._(this,t,[e,a])).ResizeObserver=n.ResizeObserver||e$().ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=nr(function(){i.resizeHandler()},100,!1,i),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){t7(this,"resize",e),t7(this,"unload",t),t=null};t6(i.el_.contentWindow,"unload",t),t6(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return d._(h._(t.prototype),"createEl",this).call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}},{key:"resizeHandler",value:function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}},{key:"dispose",value:function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,d._(h._(t.prototype),"dis
1pose",this).call(this)}}]),t}(nk);nk.registerComponent("ResizeManager",rE);var rw={trackingThreshold:20,liveTolerance:15},rC=function(e){function t(e,n){o._(this,t);var i,r=tS(rw,n,{createEl:!1});return(i=s._(this,t,[e,r])).trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),i}return f._(t,e),l._(t,[{key:"trackLive_",value:function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(e$().performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}}},{key:"handleDurationchange",value:function(){this.toggleTracking()}},{key:"toggleTracking",value:function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}},{key:"startTracking",value:function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}},{key:"handleFirstTimeupdate",value:function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}},{key:"handleSeeked",value:function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}},{key:"handlePlay",value:function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}},{key:"reset_",value:function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}},{key:"nextSeekedFromUser",value:function(){this.nextSeekedFromUser_=!0}},{key:"stopTracking",value:function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}},{key:"seekableEnd",value:function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0}},{key:"seekableStart",value:function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}},{key:"liveWindow",value:function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}},{key:"isLive",value:function(){return this.isTracking()}},{key:"atLiveEdge",value:function(){return!this.behindLiveEdge()}},{key:"liveCurrentTime",value:function(){return this.pastSeekEnd()+this.seekableEnd()}},{key:"pastSeekEnd",value:function(){var e=this.seekableEnd();return -1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}},{key:"behindLiveEdge",value:function(){return this.behindLiveEdge_}},{key:"isTracking",value:function(){return"number"==typeof this.trackingInterval_}},{key:"seekToLiveEdge",value:function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}},{key:"dispose",value:function(){this.stopTracking(),d._(h._(t.prototype),"dis
1pose",this).call(this)}}]),t}(nk);nk.registerComponent("LiveTracker",rC);var rx=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t,[e,n])).on("statechanged",function(e){return i.updateDom_()}),i.updateDom_(),i}return f._(t,e),l._(t,[{key:"createEl",value:function(){return this.els={title:F("div",{className:"vjs-title-bar-title",id:"vjs-title-bar-title-".concat(eh())}),description:F("div",{className:"vjs-title-bar-description",id:"vjs-title-bar-description-".concat(eh())})},F("div",{className:"vjs-title-bar"},{},j(this.els))}},{key:"updateDom_",value:function(){var e=this,t=this.player_.tech_,n=t&&t.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(function(t){var r=e.state[t],a=e.els[t],s=i[t];er(a),r&&q(a,r),n&&(n.removeAttribute(s),r&&n.setAttribute(s,a.id))}),this.state.title||this.state.description?this.show():this.hide()}},{key:"update",value:function(e){this.setState(e)}},{key:"dispose",value:function(){var e=this.player_.tech_,n=e&&e.el_;n&&(n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-describedby")),d._(h._(t.prototype),"dispose",this).call(this),this.els=null}}]),t}(nk);nk.registerComponent("TitleBar",rx);var rA=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var s=n[a].src;s&&-1===i.indexOf(s)&&i.push(s)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},rI=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=eJ().createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=eJ().createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",e$().Element.prototype.appendChild.call(this,n),this.innerHTML}}),rP=function(e,t){for(var n={},i=0;i<e.length&&(!(n=Object.getOwnPropertyDescriptor(e[i],t))||!n.set||!n.get);i++);return n.enumerable=!0,n.configurable=!0,n},rL=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=rP([e.el(),e$().HTMLMediaElement.prototype,e$().Element.prototype,rI],"innerHTML"),r=function(n){return function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=n.apply(t,r);return rA(e),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))}),Object.defineProperty(t,"innerHTML",tS(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},rj=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?nY(e$().Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return e$().Element.prototype.setAttribute.call(this,"src",e),e}}),rO=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=rP([e.el(),e$().HTMLMediaElement.prototype,rj],"src"),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",tS(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=r.call(t);return rA(e)||(e.triggerSourceset(""),rL(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):rA(e)||rL(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},rD=function(e){function t(e,n){o._(this,t);var i=s._(this,t,[e,n]),r=e.source,a=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,r&&(i.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var u=i.el_.childNodes,l=u.length,c=[];l--;){var d=u[l];"track"===d.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(d),i.remoteTextTracks().addTrack(d.track),i.textTracks().addTrack(d.track),!a&&!i.el_.hasAttribute("crossorigin")&&nK(d.src)&&(a=!0)):c.push(d))}for(var h=0;h<c.length;h++)i.el_.removeChild(c[h])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&t_.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(tB||tU)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}return f._(t,e),l._(t,[{key:"dispose",value:function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
1poseMediaElement(this.el_),this.options_=null,d._(h._(t.prototype),"dispose",this).call(this)}},{key:"setupSourcesetHandling_",value:function(){rO(this)}},{key:"restoreMetadataTracksInIOSNativePlayer_",value:function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var i=function(){for(var n=0;n<e.length;n++){var r=e[n];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)})}},{key:"overrideNative_",value:function(e,t){var n=this;if(t===this["featuresNative".concat(e,"Tracks")]){var i=e.toLowerCase();this["".concat(i,"TracksListeners_")]&&Object.keys(this["".concat(i,"TracksListeners_")]).forEach(function(e){n.el()["".concat(i,"Tracks")].removeEventListener(e,n["".concat(i,"TracksListeners_")][e])}),this["featuresNative".concat(e,"Tracks")]=!t,this["".concat(i,"TracksListeners_")]=null,this.proxyNativeTracksForType_(i)}}},{key:"overrideNativeAudioTracks",value:function(e){this.overrideNative_("Audio",e)}},{key:"overrideNativeVideoTracks",value:function(e){this.overrideNative_("Video",e)}},{key:"proxyNativeTracksForType_",value:function(e){var t=this,n=n4[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative".concat(n.capitalName,"Tracks")]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[n8.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",function(t){return i.removeEventListener(e,n)})}),this.on("loadstart",s),this.on("dispose",function(e){return t.off("loadstart",s)})}}},{key:"proxyNativeTracks_",value:function(){var e=this;n4.names.forEach(function(t){e.proxyNativeTracksForType_(t)})}},{key:"createEl",value:function(){var e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=eJ().createElement("video");var i=tS({},this.options_.tag&&X(this.options_.tag));tB&&!0===this.options_.nativeControlsForTouch||delete i.controls,Y(e,Object.assign(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&$(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],a=0;a<r.length;a++){var s=r[a],o=this.options_[s];void 0!==o&&(o?$(e,s,s):Q(e,s),e[s]=o)}return e}},{key:"handleLateInit_",value:function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};this.on("loadedmetadata",i),this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")});return}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}}},{key:"setScrubbing",value:function(e){this.isScrubbing_=e}},{key:"scrubbing",value:function(){return this.isScrubbing_}},{key:"setCurrentTime",value:function(e){try{this.isScrubbing_&&this.el_.fastSeek&&tY?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){t_(e,"Video is not ready. (Video.js)")}}},{key:"duration",value:function(){var e=this;if(this.el_.duration===1/0&&tx&&tL&&0===this.el_.currentTime){var t=function(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN}},{key:"width",value:function(){return this.el_.offsetWidth}},{key:"height",value:function(){return this.el_.offsetHeight}},{key:"proxyWebkitFullscreen_",value:function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}}},{key:"supportsFullScreen",value:function(){return"function"==typeof this.el_.webkitEnterFullScreen}},{key:"enterFullScreen",value:function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)eA(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}},{key:"exitFullScreen",value:function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",Error("The video is not fullscreen"))}},{key:"requestPictureInPicture",value:function(){return this.el_.requestPictureInPicture()}},{key:"requestVideoFrameCallback",value:function(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):d._(h._(t.prototype),"requestVideoFrameCallback",this).call(this,e)}},{key:"cancelVideoFrameCallback",value:function(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):d._(h._(t.prototype),"cancelVideoFrameCallback",this).call(this,e)}},{key:"src",value:function(e){if(void 0===e)return this.el_.src;this.setSrc(e)}},{key:"reset",value:function(){t.resetMediaElement(this.el_)}},{key:"currentSrc",value:function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}},{key:"setControls",value:function(e){this.el_.controls=!!e}},{key:"addTextTrack",value:function(e,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,i):d._(h._(t.prototype),"addTextTrack",this).call(this,e,n,i)}},{key:"createRemoteTextTrack",value:function(e){if(!this.featuresNativeTextTracks)return d._(h._(t.prototype),"createRemoteTextTrack",this).call(this,e);var n=eJ().createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n}},{key:"addRemoteTextTrack",value:function(e,n){var i=d._(h._(t.prototype),"addRemoteTextTrack",this).call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}},{key:"removeRemoteTextTrack",value:function(e){if(d._(h._(t.prototype),"removeRemoteTextTrack",this).call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)(e===n[i]||e===n[i].track)&&this.el().removeChild(n[i])}},{key:"getVideoPlaybackQuality",value:function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),e$().performance&&(e.creationTime=e$().performance.now()),e}}]),t}(n5);O(rD,"TEST_VID",function(){if(N()){var e=eJ().createElement("video"),t=eJ().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}
1),rD.isSupported=function(){try{rD.TEST_VID.volume=.5}catch(e){return!1}return!!(rD.TEST_VID&&rD.TEST_VID.canPlayType)},rD.canPlayType=function(e){return rD.TEST_VID.canPlayType(e)},rD.canPlaySource=function(e,t){return rD.canPlayType(e.type)},rD.canControlVolume=function(){try{var e=rD.TEST_VID.volume;rD.TEST_VID.volume=e/2+.1;var t=e!==rD.TEST_VID.volume;if(t&&tW)return e$().setTimeout(function(){rD&&rD.prototype&&(rD.prototype.featuresVolumeControl=e!==rD.TEST_VID.volume)}),!1;return t}catch(e){return!1}},rD.canMuteVolume=function(){try{var e=rD.TEST_VID.muted;return rD.TEST_VID.muted=!e,rD.TEST_VID.muted?$(rD.TEST_VID,"muted","muted"):Q(rD.TEST_VID,"muted"),e!==rD.TEST_VID.muted}catch(e){return!1}},rD.canControlPlaybackRate=function(){if(tx&&tL&&tO<58)return!1;try{var e=rD.TEST_VID.playbackRate;return rD.TEST_VID.playbackRate=e/2+.1,e!==rD.TEST_VID.playbackRate}catch(e){return!1}},rD.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(eJ().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(eJ().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(eJ().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(eJ().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},rD.supportsNativeTextTracks=function(){return tY||tW&&tL},rD.supportsNativeVideoTracks=function(){return!!(rD.TEST_VID&&rD.TEST_VID.videoTracks)},rD.supportsNativeAudioTracks=function(){return!!(rD.TEST_VID&&rD.TEST_VID.audioTracks)},rD.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=y._(e,2),n=t[0],i=t[1];O(rD.prototype,n,function(){return rD[i]()},!0)}),rD.prototype.featuresVolumeControl=rD.canControlVolume(),rD.prototype.movingMediaElementInDOM=!tW,rD.prototype.featuresFullscreenResize=!0,rD.prototype.featuresProgressEvents=!0,rD.prototype.featuresTimeupdateEvents=!0,rD.prototype.featuresVideoFrameCallback=!!(rD.TEST_VID&&rD.TEST_VID.requestVideoFrameCallback),rD.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},rD.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){rD.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){rD.prototype["set"+n_(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){rD.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){rD.prototype["set"+n_(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){rD.prototype[e]=function(){return this.el_[e]()}}),n5.withSourceHandlers(rD),rD.nativeSourceHandler={},rD.nativeSourceHandler.canPlayType=function(e){try{return rD.TEST_VID.canPlayType(e)}catch(e){return""}},rD.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return rD.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=nX(e.src);return rD.nativeSourceHandler.canPlayType("video/".concat(n))}return""},rD.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},rD.nativeSourceHandler.dispose=function(){},rD.registerSourceHandler(rD.nativeSourceHandler),n5.registerTech("Html5",rD);var rR=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],rN={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},rM=["tiny","xsmall","small","medium","large","xlarge","huge"],rU={};rM.forEach(function(e){var t="x"===e.charAt(0)?"x-".concat(e.substring(1)):e;rU[e]="vjs-layout-".concat(t)});var rB={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},rF=function(e){function t(e,n,i){if(o._(this,t),e.id=e.id||n.id||"vjs_video_".concat(eh()),(n=Object.assign(t.getTagSettings(e),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){var r,a=e.closest("[lang]");a&&(n.language=a.getAttribute("lang"))}if((r=s._(this,t,[null,n,i])).boundDocumentFullscreenChange_=function(e){return r.documentFullscreenChange_(e)},r.boundFullWindowOnEscKey_=function(e){return r.fullWindowOnEscKey(e)},r.boundUpdateStyleEl_=function(e){return r.updateStyleEl_(e)},r.boundApplyInitTime_=function(e){return r.applyInitTime_(e)},r.boundUpdateCurrentBreakpoint_=function(e){return r.updateCurrentBreakpoint_(e)},r.boundHandleTechClick_=function(e){return r.handleTechClick_(e)},r.boundHandleTechDoubleClick_=function(e){return r.handleTechDoubleClick_(e)},r.boundHandleTechTouchStart_=function(e){return r.handleTechTouchStart_(e)},r.boundHandleTechTouchMove_=function(e){return r.handleTechTouchMove_(e)},r.boundHandleTechTouchEnd_=function(e){return r.handleTechTouchEnd_(e)},r.boundHandleTechTap_=function(e){return r.handleTechTap_(e)},r.isFullscreen_=!1,r.log=tb(r.id_),r.fsApi_=tf,r.isPosterFromTech_=!1,r.queuedCallbacks_=[],r.isReady_=!1,r.hasStarted_=!1,r.userActive_=!1,r.debugEnabled_=!1,r.audioOnlyMode_=!1,r.audioPosterMode_=!1,r.audioOnlyCache_={playerHe
1ight:null,hiddenChildren:[]},!r.options_||!r.options_.techOrder||!r.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(r.tag=e,r.tagAttributes=e&&X(e),r.language(r.options_.language),n.languages){var u={};Object.getOwnPropertyNames(n.languages).forEach(function(e){u[e.toLowerCase()]=n.languages[e]}),r.languages_=u}else r.languages_=t.prototype.options_.languages;r.resetCache_(),r.poster_=n.poster||"",r.controls_=!!n.controls,e.controls=!1,e.removeAttribute("controls"),r.changingSrc_=!1,r.playCallbacks_=[],r.playTerminatedQueue_=[],e.hasAttribute("autoplay")?r.autoplay(!0):r.autoplay(r.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(function(e){if("function"!=typeof r[e])throw Error('plugin "'.concat(e,'" does not exist'))}),r.scrubbing_=!1,r.el_=r.createEl(),ev(r,{eventBusKey:"el_"}),r.fsApi_.requestFullscreen&&(t6(eJ(),r.fsApi_.fullscreenchange,r.boundDocumentFullscreenChange_),r.on(r.fsApi_.fullscreenchange,r.boundDocumentFullscreenChange_)),r.fluid_&&r.on(["playerreset","resize"],r.boundUpdateStyleEl_);var l=tS(r.options_);if(n.plugins&&Object.keys(n.plugins).forEach(function(e){r[e](n.plugins[e])}),n.debug&&r.debug(!0),r.options_.playerOptions=l,r.middleware_=[],r.playbackRates(n.playbackRates),n.experimentalSvgIcons){var c=new(e$()).DOMParser(
vendor: 16,361 bytes, line 1
1).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1
1792 1792" id="vjs-icon-twitter">\n <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',"image/svg+xml");if(c.querySelector("parsererror"))t_.warn("Failed to load SVG Icons. Falling back to Font Icons."),r.options_.experimentalSvgIcons=null;else{var d=c.documentElement;d.style.display="none",r.el_.appendChild(d),r.addClass("vjs-svg-icons-enabled")}}r.initChildren(),r.isAudio("audio"===e.nodeName.toLowerCase()),r.controls()?r.addClass("vjs-controls-enabled"):r.addClass("vjs-controls-disabled"),r.el_.setAttribute("role","region"),r.isAudio()?r.el_.setAttribute("aria-label",r.localize("Audio Player")):r.el_.setAttribute("aria-label",r.localize("Video Player")),r.isAudio()&&r.addClass("vjs-audio"),tB&&r.addClass("vjs-touch-enabled"),tW||r.addClass("vjs-workinghover"),t.players[r.id_]=r;var h=tl.split(".")[0];return r.addClass("vjs-v".concat(h)),r.userActive(!0),r.reportUserActivity(),r.one("play",function(e){return r.listenForUserActivity_(e)}
1),r.on("keydown",function(e){return r.handleKeyDown(e)}),r.on("languagechange",function(e){return r.handleLanguagechange(e)}),r.breakpoints(r.options_.breakpoints),r.responsive(r.options_.responsive),r.on("ready",function(){r.audioPosterMode(r.options_.audioPosterMode),r.audioOnlyMode(r.options_.audioOnlyMode)}),r}return f._(t,e),l._(t,[{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.off("dispose"),t7(eJ(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),t7(eJ(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),eR(this),n3.names.forEach(function(t){var n=e[n3[t].getterName]();n&&n.off&&n.off()}),d._(h._(t.prototype),"dispose",this).call(this,{restoreEl:this.options_.restoreEl})}},{key:"createEl",value:function(){var e,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=n.parentNode:r||(e=this.el_=d._(h._(t.prototype),"createEl",this).call(this,"div"));var a=X(n);if(r){for(e=this.el_=n,n=this.tag=eJ().createElement("video");e.children.length;)n.appendChild(e.firstChild);H(e,"video-js")||z(e,"video-js"),e.appendChild(n),i=this.playerElIngest_=e,Object.keys(e).forEach(function(t){try{n[t]=e[t]}catch(e){}})}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",tL&&tN&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(t){r&&"class"===t||e.setAttribute(t,a[t]),r&&n.setAttribute(t,a[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==e$().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=t1("vjs-styles-dimensions");var s=tK(".vjs-styles-defaults"),o=tK("head");o.insertBefore(this.styleEl_,s?s.nextSibling:o.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),l=0;l<u.length;l++){var c=u.item(l);z(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(e,n),V(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}},{key:"crossOrigin",value:function(e){return void 0===e?this.techGet_("crossOrigin"):null!==e&&"anonymous"!==e&&"use-credentials"!==e?void t_.warn('crossOrigin must be null, "anonymous" or "use-credentials", given "'.concat(e,'"')):void(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e))}},{key:"width",value:function(e){return this.dimension("width",e)}},{key:"height",value:function(e){return this.dimension("height",e)}},{key:"dimension",value:function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t){this[n]=void 0,this.updateStyleEl_();return}var i=parseFloat(t);isNaN(i)?t_.error('Improper value "'.concat(t,'" supplied for for ').concat(e)):(this[n]=i,this.updateStyleEl_())}},{key:"fluid",value:function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,nu(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),nl(this,function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}},{key:"fill",value:function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}},{key:"aspectRatio",value:function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}},{key:"updateStyleEl_",value:function(){if(!0===e$().VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i="number"==typeof this.width_?this.width_:this.options_.width,r="number"==typeof this.height_?this.height_:this.options_.height,a=this.tech_&&this.tech_.el();a&&(i>=0&&(a.width=i),r>=0&&(a.height=r));return}var s=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),t2(this.styleEl_,"\n .".concat(n," {\n width: ").concat(e,"px;\n height: ").concat(t,"px;\n }\n\n .").concat(n,".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ").concat(100*o,"%;\n }\n "))}},{key:"loadTech_",value:function(e,t){var n,i,r=this;this.tech_&&this.unloadTech_();var a=n_(e),s=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==a&&this.tag&&(n5.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var o=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(o=!1);var u={source:t,autoplay:o,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:"".concat(this.id(),"_").concat(s,"_api"),playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
1n3.names.forEach(function(e){var t=n3[e];u[t.getterName]=r[t.privateName]}),Object.assign(u,this.options_[a]),Object.assign(u,this.options_[s]),Object.assign(u,this.options_[e.toLowerCase()]),this.tag&&(u.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(u.startTime=this.cache_.currentTime);var l=n5.getTech(e);if(!l)throw Error("No Tech named '".concat(a,"' exists! '").concat(a,"' should be registered using videojs.registerTech()'"));this.tech_=new l(u),this.tech_.ready(nn(this,this.handleTechReady_),!0),n=this.textTracksJson_||[],i=this.tech_,n.forEach(function(e){var t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),i.textTracks(),rR.forEach(function(e){r.on(r.tech_,e,function(t){return r["handleTech".concat(n_(e),"_")](t)})}),Object.keys(rN).forEach(function(e){r.on(r.tech_,e,function(t){0===r.tech_.playbackRate()&&r.tech_.seeking()?r.queuedCallbacks_.push({callback:r["handleTech".concat(rN[e],"_")].bind(r),event:t}):r["handleTech".concat(rN[e],"_")](t)})}),this.on(this.tech_,"loadstart",function(e){return r.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return r.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return r.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return r.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return r.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return r.handleTechPlay_(e)}),this.on(this.tech_,"pause",function(e){return r.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return r.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return r.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return r.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return r.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return r.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return r.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return r.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return r.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return r.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===a&&this.tag||V(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}},{key:"unloadTech_",value:function(){var e=this;n3.names.forEach(function(t){var n=n3[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=nI(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}},{key:"tech",value:function(e){return void 0===e&&t_.warn("Using the tech directly can be dangerous. I hope you know
1what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}},{key:"version",value:function(){return{"video.js":tl}}},{key:"addTechControlsListeners_",value:function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}},{key:"removeTechControlsListeners_",value:function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}},{key:"handleTechReady_",value:function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}},{key:"handleTechLoadStart_",value:function(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()&&this.hasStarted(!1),this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}},{key:"manualAutoplay_",value:function(e){var t,n=this;if(this.tech_&&"string"==typeof e){var i=function(){var e=n.muted();n.muted(!0);var t=function(){n.muted(e)};n.playTerminatedQueue_.push(t);var i=n.play();if(ex(i))return i.catch(function(e){throw t(),Error("Rejection at manualAutoplay. Restoring muted value. ".concat(e||""))})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():i():ex(t=this.play())&&(t=t.catch(i)),ex(t))return t.then(function(){n.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){n.trigger({type:"autoplay-failure",autoplay:e})})}}},{key:"updateSourceCaches_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=is(this,t)),this.cache_.source=tS({},e,{src:t,type:n});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o<a.length;o++){var u=X(a[o]);r.push(u),u.src&&u.src===t&&s.push(u.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}},{key:"handleTechSourceset_",value:function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet_("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}},{key:"hasStarted",value:function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}},{key:"handleTechPlay_",value:function(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}},{key:"handleTechRateChange_",value:function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}},{key:"handleTechWaiting_",value:function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),n=function(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))};this.on("timeupdate",n)}},{key:"handleTechCanPlay_",value:function(){this.removeClass("vjs-waiting"),this.trigger("canplay")}},{key:"handleTechCanPlayThrough_",value:function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}},{key:"handleTechPlaying_",value:function(){this.removeClass("vjs-waiting"),this.trigger("playing")}},{key:"handleTechSeeking_",value:function(){this.addClass("vjs-seeking"),this.trigger("seeking")}},{key:"handleTechSeeked_",value:function(){this.removeClass("vjs-seeking","vjs-e
1nded"),this.trigger("seeked")}},{key:"handleTechPause_",value:function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}},{key:"handleTechEnded_",value:function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}},{key:"handleTechDurationChange_",value:function(){this.duration(this.techGet_("duration"))}},{key:"handleTechClick_",value:function(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?eA(this.play()):this.pause())}},{key:"handleTechDoubleClick_",value:function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}},{key:"handleTechTap_",value:function(){this.userActive(!this.userActive())}},{key:"handleTechTouchStart_",value:function(){this.userWasActive=this.userActive()}},{key:"handleTechTouchMove_",value:function(){this.userWasActive&&this.reportUserActivity()}},{key:"handleTechTouchEnd_",value:function(e){e.cancelable&&e.preventDefault()}},{key:"toggleFullscreenClass_",value:function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}},{key:"documentFullscreenChange_",value:function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=eJ()[this.fsApi_.fullscreenElement]===n;!i&&n.matches&&(i=n.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}}},{key:"handleTechFullscreenChange_",value:function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){n.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}},{key:"handleTechFullscreenError_",value:function(e,t){this.trigger("fullscreenerror",t)}},{key:"togglePictureInPictureClass_",value:function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}},{key:"handleTechEnterPictureInPicture_",value:function(e){this.isInPictureInPicture(!0)}},{key:"handleTechLeavePictureInPicture_",value:function(e){this.isInPictureInPicture(!1)}},{key:"handleTechError_",value:function(){var e=this.tech_.error();e&&this.error(e)}},{key:"handleTechTextData_",value:function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}},{key:"getCache",value:function(){return this.cache_}},{key:"resetCache_",value:function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}},{key:"techCall_",value:function(e,t){this.ready(function(){if(e in it){var n,i;return n=this.middleware_,i=this.tech_,i[e](n.reduce(eO(e),t))}if(e in ii)return ej(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw t_(e),e}},!0)}},{key:"techGet_",value:function(e){if(this.tech_&&this.tech_.isReady_){if(e in ie){var t,n;return t=this.middleware_,n=this.tech_,t.reduceRight(eO(e),n[e]())}if(e in ii)return ej(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw t_("Video.js: ".concat(e," method not defined for ").concat(this.techName_," playback technology."),t),t;if("TypeError"===t.name)throw t_("Video.js: ".concat(e," unavailable on ").concat(this.techName_," playback technology element."),t),this.tech_.isReady_=!1,t;throw t_(t),t}}}},{key:"play",value:function(){var e=this;return new Promise(function(t){e.play_(t)})}},{key:"play_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eA;this.playCallbacks_.push(t);var n=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),i=!!(tY||tW);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&i&&this.load();return}var r=this.techGet_("play");
1i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}},{key:"runPlayTerminatedQueue_",value:function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}},{key:"runPlayCallbacks_",value:function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}},{key:"pause",value:function(){this.techCall_("pause")}},{key:"paused",value:function(){return!1!==this.techGet_("paused")}},{key:"played",value:function(){return this.techGet_("played")||ek(0,0)}},{key:"scrubbing",value:function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}},{key:"currentTime",value:function(e){if(void 0===e)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}},{key:"applyInitTime_",value:function(){this.currentTime(this.cache_.initTime)}},{key:"duration",value:function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}},{key:"remainingTime",value:function(){return this.duration()-this.currentTime()}},{key:"remainingTimeDisplay",value:function(){return Math.floor(this.duration())-Math.floor(this.currentTime())}},{key:"buffered",value:function(){var e=this.techGet_("buffered");return e&&e.length||(e=ek(0,0)),e}},{key:"seekable",value:function(){var e=this.techGet_("seekable");return e&&e.length||(e=ek(0,0)),e}},{key:"seeking",value:function(){return this.techGet_("seeking")}},{key:"ended",value:function(){return this.techGet_("ended")}},{key:"networkState",value:function(){return this.techGet_("networkState")}},{key:"readyState",value:function(){return this.techGet_("readyState")}},{key:"bufferedPercent",value:function(){return eC(this.buffered(),this.duration())}},{key:"bufferedEnd",value:function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n}},{key:"volume",value:function(e){var t;if(void 0!==e){t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),t>0&&this.lastVolume_(t);return}return isNaN(t=parseFloat(this.techGet_("volume")))?1:t}},{key:"muted",value:function(e){return void 0!==e?void this.techCall_("setMuted",e):this.techGet_("muted")||!1}},{key:"defaultMuted",value:function(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}},{key:"lastVolume_",value:function(e){if(void 0!==e&&0!==e){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}},{key:"supportsFullScreen",value:function(){return this.techGet_("supportsFullScreen")||!1}},{key:"isFullscreen",value:function(e){if(void 0!==e){var t=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}},{key:"requestFullscreen",value:function(e){this.isInPictureInPicture()&&this.exitPictureInPicture();var t=this;return new Promise(function(n,i){var r=function(){t.off("fullscreenerror",s),t.off("fullscreenchange",a)},a=function(){r(),n()},s=function(e,t){r(),i(t)};t.one("fullscreenchange",a),t.one("fullscreenerror",s);var o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(n,i))})}},{key:"requestFullscreenHelper_",value:function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}},{key:"exitFullscreen",value:function(){var e=this;return new Promise(function(t,n){var i=function(){e.off("fullscreenerror",a),e.off("fullscreenchange",r)},r=function(){i(),t()},a=function(e,t){i(),n(t)};e.one("fullscreenchange",r),e.one("fullscreenerror",a);var s=e.exitFullscreenHelper_();s&&(s.then(i,i),s.then(t,n))})}},{key:"exitFullscreenHelper_",value:function(){var e=this;if(this.fsApi_.requestFullscreen){var t=eJ()[this.fsApi_.exitFullscreen]();return t&&eA(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}},{key:"enterFullWindow",value:function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=eJ().documentElement.style.overflow,t6(eJ(),"keydown",this.boundFullWindowOnEscKey_),eJ().documentElement.style.overflow="hidden",z(eJ().body,"vjs-full-window"),this.trigger("enterFullWindow")}},{key:"fullWindowOnEscKey",value:function(e){e0().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}},{key:"exitFullWindow",value:function(){this.isFullscreen(!1),this.isFullWindow=!1,t7(eJ(),"keydown",this.boundFullWindowOnEscKey_),eJ().documentElement.style.overflow=this.docOrigOverflow,G(eJ().body,"vjs-full-window"),this.trigger("exitFullWindow")}},{key:"disablePictureInPicture",value:function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}},{key:"isInPictureInPicture",value:function(e){if(void 0!==e){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}},{key:"requestPictureInPicture",value:function(){var e=this;if(this.options_.enableDocumentPictureInPicture&&e$().documentPictureInPicture){var t=eJ().createElement(this.el().tagName);return t.classList=this.el().classList,t.classList.add("vjs-pip-container"),this.posterImage&&t.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&t.appendChild(this.titleBar.el().cloneNode(!0)),t.appendChild(F("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),e$().documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(function(n){return ec(n),e.el_.parentNode.insertBefore(t,e.el_),n.document.body.appendChild(e.el_),n.document.body.classList.add("vjs-pip-window"),e.player_.isInPictureInPicture(!0),e.player_.trigger("enterpictureinpicture"),n.addEventListener("pagehide",function(n){var i=n.target.querySelector(".video-js");t.parentNode.replaceChild(i,t),e.player_.isInPictureInPicture(!1),e.player_.trigger("leavepictureinpicture")}),n})}return"pictureInPictureEnabled"in eJ()&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}},{key:"exitPictureInPicture",value:function(){return e$().documentPictureInPicture&&e$().documentPictureInPicture.window?(e$().documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in eJ()?eJ().exitPictureInPicture():void 0}},{key:"handleKeyDown",value:function(e){var t,n,i=this.options_.userActions;i&&i.hotkeys&&(n=(t=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof i.hotkeys?i.hotkeys.call(this,e):this.handleHotkeys(e)))}},{key:"handleHotkeys",value:function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return e0().isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return e0().isEventKey(e,"m")}:r,s=t.playPauseKey,o=void 0===s?function(e){return e0().isEventKey(e,"k")||e0().isEventKey(e,"Space")}:s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var u=nk.getComponent("FullscreenToggle");!1!==eJ()[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else a.call(this,e)?(e.preventDefault(),e.stopPropagation(),nk.getComponent("MuteToggle").prototype.handleClick.call(this,e)):o.call(this,e)&&(e.preventDefault(),e.stopPropagation(),nk.getComponent("PlayToggle").prototype.handleClick.call(this,e))}},{key:"canPlayType",value:function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=n5.getTech(r);if(a||(a=nk.getComponent(r)),!a){t_.error('The "'.concat(r,'" tech is undefined. Skipped browser support check for that tech.'));continue}if(a.isSupported()&&(t=a.canPlayType(e)))return t}return""}},{key:"selectSource",value:function(e){var t,n=this,i=this.options_.techOrder.map(function(e){return[e,n5.getTech(e)]}).filter(function(e){var t=y._(e,2),n=t[0],i=t[1];return i?i.isSupported():(t_.error('The "'.concat(n,'" tech is undefined. Skipped browser support check for that tech.')),!1)}
1),r=function(e,t,n){var i;return e.some(function(e){return t.some(function(t){if(i=n(e,t))return!0})}),i},a=function(e,t){var i=y._(e,2),r=i[0];if(i[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(t=this.options_.sourceOrder?r(e,i,function(e,t){return a(t,e)}):r(i,e,a))||!1}},{key:"handleSrc_",value:function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=io(e);if(!i.length)return void this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),eP(this,i[0],function(e,r){if(n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e),n.src_(e))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void n.triggerReady());eL(r,n.tech_)}),i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}},{key:"src",value:function(e){return this.handleSrc_(e,!1)}},{key:"src_",value:function(e){var t=this,n=this.selectSource([e]);return!n||(nb(n.tech,this.techName_)?this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(function(){t.changingSrc_=!1})),!1)}},{key:"load",value:function(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}},{key:"reset",value:function(){var e=this;this.paused()?this.doReset_():eA(this.play().then(function(){return e.doReset_()}))}},{key:"doReset_",value:function(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),nu(this)&&this.trigger("playerreset")}},{key:"resetControlBarUI_",value:function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}},{key:"resetProgressBar_",value:function(){this.currentTime(0);var e=this.controlBar||{},t=e.currentTimeDisplay,n=e.durationDisplay,i=e.progressControl,r=e.remainingTimeDisplay,a=(i||{}).seekBar;t&&t.updateContent(),n&&n.updateContent(),r&&r.updateContent(),a&&(a.update(),a.loadProgressBar&&a.loadProgressBar.update())}},{key:"resetPlaybackRate_",value:function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}},{key:"resetVolumeBar_",value:function(){this.volume(1),this.trigger("volumechange")}},{key:"currentSources",value:function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}},{key:"currentSource",value:function(){return this.cache_.source||{}}},{key:"currentSrc",value:function(){return this.currentSource()&&this.currentSource().src||""}},{key:"currentType",value:function(){return this.currentSource()&&this.currentSource().type||""}},{key:"preload",value:function(e){if(void 0!==e){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}},{key:"autoplay",value:function(e){var t;if(void 0===e)return this.options_.autoplay||!1;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}},{key:"playsinline",value:function(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}},{key:"loop",value:function(e){if(void 0!==e){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}},{key:"poster",value:function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}},{key:"handleTechPosterChange_",value:function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}},{key:"controls",value:function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
1sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}},{key:"usingNativeControls",value:function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}},{key:"error",value:function(e){var t=this;if(void 0===e)return this.error_||null;if(td("beforeerror").forEach(function(n){var i=n(t,e);P(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),this.one("loadstart",function(){this.off(["click","touchstart"],n)});return}if(null===e){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new nC(e),this.addClass("vjs-error"),t_.error("(CODE:".concat(this.error_.code," ").concat(nC.errorTypes[this.error_.code],")"),this.error_.message,this.error_),this.trigger("error"),td("error").forEach(function(e){return e(t,t.error_)})}},{key:"reportUserActivity",value:function(e){this.userActivity_=!0}},{key:"userActive",value:function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}},{key:"listenForUserActivity_",value:function(){var e,t,n,i,r=nn(this,this.reportUserActivity),a=function(t){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){(e.screenX!==t||e.screenY!==n)&&(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",a),this.on("mouseleave",a);var s=this.getChild("controlBar");!s||tW||tx||(s.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var e=this.options_.inactivityTimeout;e<=0||(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)}},{key:"playbackRate",value:function(e){return void 0!==e?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}},{key:"defaultPlaybackRate",value:function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}},{key:"isAudio",value:function(e){if(void 0!==e){this.isAudio_=!!e;return}return!!this.isAudio_}},{key:"enableAudioOnlyUI_",value:function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach(function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}},{key:"disableAudioOnlyUI_",value:function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}
1),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}},{key:"audioOnlyMode",value:function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){var n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),Promise.all(n).then(function(){return t.enableAudioOnlyUI_()})}return Promise.resolve().then(function(){return t.disableAudioOnlyUI_()})}},{key:"enablePosterModeUI_",value:function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}},{key:"disablePosterModeUI_",value:function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}},{key:"audioPosterMode",value:function(e){var t=this;return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e)?this.audioOnlyMode()?this.audioOnlyMode(!1).then(function(){t.enablePosterModeUI_()}):Promise.resolve().then(function(){t.enablePosterModeUI_()}):Promise.resolve().then(function(){t.disablePosterModeUI_()})}},{key:"addTextTrack",value:function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)}},{key:"addRemoteTextTrack",value:function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}},{key:"removeRemoteTextTrack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}},{key:"getVideoPlaybackQuality",value:function(){return this.techGet_("getVideoPlaybackQuality")}},{key:"videoWidth",value:function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}},{key:"videoHeight",value:function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}},{key:"language",value:function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),nu(this)&&this.trigger("languagechange"))}},{key:"languages",value:function(){return tS(t.prototype.options_.languages,this.languages_)}},{key:"toJSON",value:function(){var e=tS(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=tS(i)).player=void 0,e.tracks[n]=i}return e}},{key:"createModal",value:function(e,t){var n=this;(t=t||{}).content=e||"";var i=new nL(this,t);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i}},{key:"updateCurrentBreakpoint_",value:function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<rM.length;n++){var i=rM[n];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(rU[e]),this.addClass(rU[i]),this.breakpoint_=i;break}}}},{key:"removeCurrentBreakpoint_",value:function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}},{key:"breakpoints",value:function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},rB,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}},{key:"responsive",value:function(e){return void 0===e?this.responsive_:(e=!!e)!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}},{key:"currentBreakpoint",value:function(){return this.breakpoint_}},{key:"currentBreakpointClass",value:function(){return rU[this.breakpoint_]||""}},{key:"loadMedia",value:function(e,t){var n=this;if(e&&(void 0===e?"undefined":T._(e))==="object"){var i=this.crossOrigin();this.reset(),this.cache_.media=tS(e);var r=this.cache_.media,a=r.artist,s=r.artwork,o=r.description,u=r.poster,l=r.src,c=r.textTracks,d=r.title;!s&&u&&(this.cache_.media.artwork=[{src:u,type:ia(u)}]),i&&this.crossOrigin(i),l&&this.src(l),u&&this.poster(u),Array.isArray(c)&&c.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.titleBar&&this.titleBar.update({title:d,description:o||a||""}),this.ready(t)}}},{key:"getMedia",value:function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:ia(t.poster)}]),t}return tS(this.cache_.media)}},{key:"debug",value:function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}},{key:"playbackRates",value:function(e){return void 0===e?this.cache_.playbackRates:Array.isArray(e)?void(e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))):void 0}}],[{key:"getTagSettings",value:function(e){var t={sources:[],tracks:[]},n=X(e),i=n["data-setup"];if(H(e,"vjs-fill")&&(n.fill=!0),H(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=y._(e2()(i||"{}"),2),a=r[0],s=r[1];a&&t_.error(a),Object.assign(n,s)}if(Object.assign(t,n),e.hasChildNodes())for(var o=e.childNodes,u=0,l=o.length;u<l;u++){var c=o[u],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(X(c)):"track"===d&&t.tracks.push(X(c))}return t}}]),t}(nk);
1n3.names.forEach(function(e){var t=n3[e];rF.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),rF.prototype.crossorigin=rF.prototype.crossOrigin,rF.players={};var rq=e$().navigator;rF.prototype.options_={techOrder:n5.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:rq&&(rq.languages&&rq.languages[0]||rq.userLanguage||rq.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1},rR.forEach(function(e){rF.prototype["handleTech".concat(n_(e),"_")]=function(){return this.trigger(e)}}),nk.registerComponent("Player",rF);var rV="plugin",rH="activePlugins_",rz={},rG=function(e){return rz.hasOwnProperty(e)},rW=function(e){return rG(e)?rz[e]:void 0},rY=function(e,t){e[rH]=e[rH]||{},e[rH][t]=!0},rX=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},rK=function(e,t){var n=function(){rX(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return rY(this,e),rX(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n},r$=function(e,t){return t.prototype.name=e,function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];rX(this,{name:e,plugin:t,instance:null},!0);var a=u._(t,b._([this].concat(b._(i))));return this[e]=function(){return a},rX(this,a.getEventHash()),a}},rQ=function(){function e(t){if(o._(this,e),this.constructor===e)throw Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),ev(this),delete this.trigger,ey(this,this.constructor.defaultState),rY(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}return l._(e,[{key:"version",value:function(){return this.constructor.VERSION}},{key:"getEventHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t9(this.eventBusEl_,e,this.getEventHash(t))}},{key:"handleStateChanged",value:function(e){}},{key:"dispose",value:function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[rH][e]=!1,this.player=this.state=null,t[e]=r$(e,rz[e])}}],[{key:"isBasic",value:function(t){var n="string"==typeof t?rW(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)}},{key:"registerPlugin",value:function(t,n){if("string"!=typeof t)throw Error('Illegal plugin name, "'.concat(t,'", must be a string, was ').concat(void 0===t?"undefined":T._(t),"."));if(rG(t))t_.warn('A plugin named "'.concat(t,'" already exists. You may want to avoid re-registering plugins!'));else if(rF.prototype.hasOwnProperty(t))throw Error('Illegal plugin name, "'.concat(t,'", cannot share a name with an existing player method!'));if("function"!=typeof n)throw Error('Illegal plugin for "'.concat(t,'", must be a function, was ').concat(void 0===n?"undefined":T._(n),"."));return rz[t]=n,t!==rV&&(e.isBasic(n)?rF.prototype[t]=rK(t,n):rF.prototype[t]=r$(t,n)),n}},{key:"deregisterPlugin",value:function(e){if(e===rV)throw Error("Cannot de-register base plugin.");rG(e)&&(delete rz[e],delete rF.prototype[e])}},{key:"getPlugins",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(rz);return t.forEach(function(t){var n=rW(t);n&&((e=e||{})[t]=n)}),e}},{key:"getPluginVersion",value:function(e){var t=rW(e);return t&&t.VERSION||""}}]),e}();rQ.getPlugin=rW,rQ.BASE_PLUGIN_NAME=rV,rQ.registerPlugin(rV,rQ),rF.prototype.usingPlugin=function(e){return!!this[rH]&&!0===this[rH][e]},rF.prototype.hasPlugin=function(e){return!!rG(e)};var rJ=function(e){return 0===e.indexOf("#")?e.slice(1):e};function rZ(e,t,n){var i=rZ.getPlayer(e);if(i)return t&&t_.warn('Player "'.concat(e,'" is already initialised. Options will not be applied.')),n&&i.ready(n),i;var r="string"==typeof e?tK("#"+rJ(e)):e;
1if(!M(r))throw TypeError("The element or ID supplied is not valid. (videojs)");var a="getRootNode"in r&&p._(r.getRootNode(),e$().ShadowRoot)?r.getRootNode():r.ownerDocument.body;return r.ownerDocument.defaultView&&a.contains(r)||t_.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),td("beforesetup").forEach(function(e){var n=e(r,tS(t));!P(n)||Array.isArray(n)?t_.error("please return an object in beforesetup hooks"):t=tS(t,n)}),i=new(nk.getComponent("Player"))(r,t,n),td("setup").forEach(function(e){return e(i)}),i}if(rZ.hooks_=tc,rZ.hooks=td,rZ.hook=function(e,t){td(e,t)},rZ.hookOnce=function(e,t){td(e,[].concat(t).map(function(t){var n=function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return th(e,n),t.apply(void 0,b._(r))};return n}))},rZ.removeHook=th,!0!==e$().VIDEOJS_NO_DYNAMIC_STYLE&&N()){var r0=tK(".vjs-styles-defaults");if(!r0){r0=t1("vjs-styles-defaults");var r1=tK("head");r1&&r1.insertBefore(r0,r1.firstChild),t2(r0,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}ed(1,rZ),rZ.VERSION=tl,rZ.options=rF.prototype.options_,rZ.getPlayers=function(){return rF.players},rZ.getPlayer=function(e){var t,n=rF.players;if("string"==typeof e){var i=rJ(e),r=n[i];if(r)return r;t=tK("#"+i)}else t=e;if(M(t)){var a=t.player,s=t.playerId;if(a||n[s])return a||n[s]}},rZ.getAllPlayers=function(){return Object.keys(rF.players).map(function(e){return rF.players[e]}).filter(Boolean)},rZ.players=rF.players,rZ.getComponent=nk.getComponent,rZ.registerComponent=function(e,t){return n5.isTech(t)&&t_.warn("The ".concat(e," tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")),nk.registerComponent.call(nk,e,t)},rZ.getTech=n5.getTech,rZ.registerTech=n5.registerTech,rZ.use=function(e,t){n6[e]=n6[e]||[],n6[e].push(t)},Object.defineProperty(rZ,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(rZ.middleware,"TERMINATOR",{value:n9,writeable:!1,enumerable:!0}),rZ.browser=tX,rZ.obj=tE,rZ.mergeOptions=eG(9,"videojs.mergeOptions","videojs.obj.merge",tS),rZ.defineLazyProperty=eG(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",O),rZ.bind=eG(9,"videojs.bind","native Function.prototype.bind",nn),rZ.registerPlugin=rQ.registerPlugin,rZ.deregisterPlugin=rQ.deregisterPlugin,rZ.plugin=function(e,t){return t_.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),rQ.registerPlugin(e,t)},rZ.getPlugins=rQ.getPlugins,rZ.getPlugin=rQ.getPlugin,rZ.getPluginVersion=rQ.getPluginVersion,rZ.addLanguage=function(e,t){return e=(""+e).toLowerCase(),rZ.options.languages=tS(rZ.options.languages,c._({},e,t)),rZ.options.languages[e]},rZ.log=t_,rZ.createLogger=tb,rZ.time=nw,rZ.createTimeRange=eG(9,"videojs.createTimeRange","videojs.time.createTimeRanges",ek),rZ.createTimeRanges=eG(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",ek),rZ.formatTime=eG(9,"videojs.formatTime","videojs.time.formatTime",ew),rZ.setFormatTime=eG(9,"videojs.setFormatTime","videojs.time.setFormatTime",eS),rZ.resetFormatTime=eG(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",eE),rZ.parseUrl=eG(9,"videojs.parseUrl","videojs.url.parseUrl",nW),rZ.isCrossOrigin=eG(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",nK),rZ.EventTarget=ns,rZ.any=eg,rZ.on=t6,rZ.one=ne,rZ.off=t7,rZ.trigger=t9,rZ.xhr=e8(),rZ.TextTrack=nZ,rZ.AudioTrack=n0,rZ.VideoTrack=n1,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){rZ[e]=function(){return t_.warn("videojs.".concat(e,"() is deprecated; use videojs.dom.").concat(e,"() instead")),tQ[e].apply(null,arguments)}}),rZ.computedStyle=eG(9,"videojs.computedStyle","videojs.dom.computedStyle",el),rZ.dom=tQ,rZ.fn=na,rZ.num=iA,rZ.str=nT,rZ.url=n$;var r2=function e(t){o._(this,e);var n=this;return n.id=t.id,n.label=n.id,n.width=t.width,n.height=t.height,n.bitrate=t.bandwidth,n.frameRate=t.frameRate,n.enabled_=t.enabled,Object.defineProperty(n,"enabled",{get:function(){return n.enabled_()},set:function(e){n.enabled_(e)}}),n},r4=function(e){function t(){o._(this,t);var e=s._(this,t);return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:function(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get:function(){return e.levels_.length}}),e[Symbol.iterator]=function(){return e.levels_.values()},v._(e,e)}return f._(t,e),l._(t,[{key:"addQualityLevel",value:function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var n=this.levels_.length;return t=new r2(e),""+n in this||Object.defineProperty(this,n,{get:function(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}},{key:"removeQualityLevel",value:function(e){for(var t=null,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}},{key:"getQualityLevelById",value:function(e){for(var t=0,n=this.length;t<n;t++){var i=this[t];if(i.id===e)return i}return null}},{key:"dispose",value:function(){this.selectedIndex_=-1,this.levels_.length=0}}]),t}(rZ.EventTarget);for(var r8 in r4.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},r4.prototype.allowedEvents_)r4.prototype["on"+r8]=null;var r3="4.0.0",r5=function(e,t){var n=e.qualityLevels,i=new r4,r=function(){i.dispose(),e.qualityLevels=n,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=function(){return i},e.qualityLevels.VERSION=r3,i},r6=function(e){return r5(this,rZ.obj.merge({},e))};rZ.registerPlugin("qualityLevels",r6),r6.VERSION=r3;var r7=e7.default,r9=function(e,t){return t&&t.responseURL&&e!==t.responseURL?t.responseURL:e},ae=function(e){return rZ.log.debug?rZ.log.debug.bind(rZ,"VHS:","".concat(e," >")):function(){}},at=1/30,an=1/30*3,ai=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return eY(i)},ar=function(e,t){return ai(e,function(e,n){return e-an<=t&&n+an>=t})},aa=function(e,t){return ai(e,function(e){return e-at>=t})},as=function(e){if(e.length<2)return eY();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return eY(t)},ao=function(e,t){var n=null,i=null,r=0,a=[],s=[];if(!e||!e.length||!t||!t.length)return eY();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2==++r&&(n=a[o].time):"end"===a[o].type&&1==--r&&(i=a[o].time),null!==n&&null!==i&&(s.push([n,i]),n=null,i=null);return eY(s)},au=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},al=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return((e.length?e.end(e.length-1):0)-t)/n},ac=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},ad=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},ah=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},af=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);if(!(t>a)){if(t>r&&t<=a){n+=a-t;continue}n+=a-r}}return n},ap=function(e,t){if(!t.preload)return t.duration;var n=0;
1return(t.parts||[]).forEach(function(e){n+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(n+=e.partTargetDuration)}),n},am=function(e){return(e.segments||[]).reduce(function(e,t,n){return t.parts?t.parts.forEach(function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e},[])},ag=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},av=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=(t.preloadHints||[]).reduce(function(e,t){return e+ +("PART"===t.type)},0);return i+(n&&n.length?n.length:0)}},ay=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=ag(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},a_=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=ap(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},ab=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=ap(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},aT=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=a_(e,t);if(i.precise)return i.result;var r=ab(e,t);return r.precise?r.result:i.result+n},ak=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return e$()[1/0]}return aT(e,t,n)},aS=function(e){var t,n=e.defaultDuration,i=e.durationList,r=e.startIndex,a=e.endIndex,s=0;if(r>a&&(r=(t=[a,r])[0],a=t[1]),r<0){for(var o=r;o<Math.min(0,a);o++)s+=n;r=0}for(var u=r;u<a;u++)s+=i[u].duration;return s},aE=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return ak(e);if(null===t)return null;t=t||0;var r=aT(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:ay(null,e)),Math.max(0,r)},aw=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},aC=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ax=function(e){var t=aw(e);return!e.disabled&&!t},aA=function(e,t){return t.attributes&&t.attributes[e]},aI=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!ax(e)&&(e.attributes.BANDWIDTH||0)<n}).length},aP=function(e,t){return(!!e||!!t)&&(!!e||!t)&&(!e||!!t)&&(e===t||!!e.id&&!!t.id&&e.id===t.id||!!e.resolvedUri&&!!t.resolvedUri&&e.resolvedUri===t.resolvedUri||!!e.uri&&!!t.uri&&e.uri===t.uri)},aL=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]))break;if(i)break}return!!i},aj=function(e){if(!e||!e.playlists||!e.playlists.length)return aL(e,function(e){return e.playlists&&e.playlists.length||e.uri});for(var t=0;t<e.playlists.length;t++){var n=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every(function(e){return(0,te.isAudioCodec)(e)})||aL(e,function(e){return aP(n,e)})?"continue":{v:!1}}(t);if("object"===T._(n))return n.v}return!0},aO={liveEdgeDelay:ay,duration:ak,seekable:function(e,t,n){var i=t||0,r=aE(e,t,!0,n);return null===r?eY():(r<i&&(r=i),eY(i,r))},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.exactManifestTimings,o=n-a,u=am(t),l=0,c=0;c<u.length;c++){var d=u[c];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){l=c;break}}if(o<0){if(l>0)for(var h=l-1;h>=0;h--){var f=u[h];
1if(o+=f.duration,s){if(o<0)continue}else if(o+at<=0)continue;return{partIndex:f.partIndex,segmentIndex:f.segmentIndex,startTime:a-aS({defaultDuration:t.targetDuration,durationList:u,startIndex:l,endIndex:h})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n}}if(l<0){for(var p=l;p<0;p++)if((o-=t.targetDuration)<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n};l=0}for(var m=l;m<u.length;m++){var g=u[m];o-=g.duration;var v=g.duration>at,y=0===o,_=v&&o+at>=0;if(!y&&!_||m===u.length-1){if(s){if(o>0)continue}else if(o-at>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+aS({defaultDuration:t.targetDuration,durationList:u,startIndex:l,endIndex:m})}}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:n}},isEnabled:ax,isDisabled:function(e){return e.disabled},isExcluded:aw,isIncompatible:aC,playlistEnd:aE,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:aA,estimateSegmentRequestTime:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return aA("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:aI,isAudioOnly:aj,playlistMatch:aP,segmentDurationWithParts:ap},aD=rZ.log,aR=function(e,t){return"".concat(e,"-").concat(t)},aN=function(e,t,n){return"placeholder-uri-".concat(e,"-").concat(t,"-").concat(n)},aM=function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=e.customTagMappers,s=e.llhls,o=new e9.Parser;t&&o.on("warn",t),n&&o.on("info",n),(void 0===r?[]:r).forEach(function(e){return o.addParser(e)}),(void 0===a?[]:a).forEach(function(e){return o.addTagMapper(e)}),o.push(i),o.end();var u=o.manifest;if(!s&&(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){u.hasOwnProperty(e)&&delete u[e]}),u.segments&&u.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!u.targetDuration){var l=10;u.segments&&u.segments.length&&(l=u.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t({message:"manifest has no targetDuration defaulting to ".concat(l)}),u.targetDuration=l}var c=ag(u);if(c.length&&!u.partTargetDuration){var d=c.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t({message:"manifest has no partTargetDuration defaulting to ".concat(d)}),aD.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),u.partTargetDuration=d}return u},aU=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i])t(e.mediaGroups[n][i][r],n,i,r)})},aB=function(e){var t=e.playlist,n=e.uri;t.id=e.id,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},aF=function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];aB({playlist:n,id:aR(t,n.uri)}),n.resolvedUri=r7(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||aD.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},aq=function(e){aU(e,function(t){t.uri&&(t.resolvedUri=r7(e.uri,t.uri))})},aV=function(e,t){var n=aR(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:e$().location.href,resolvedUri:e$().location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i},aH=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:aN;e.uri=t;for(var i=0;i<e.playlists.length;i++)if(!e.playlists[i].uri){var r="placeholder-uri-".concat(i);e.playlists[i].uri=r}var a=aj(e);aU(e,function(t,i,r,s){if(!t.playlists||!t.playlists.length){if(a&&"AUDIO"===i&&!t.uri)for(var o=0;o<e.playlists.length;o++){var u=e.playlists[o];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===r)return}t.playlists=[(0,e6.default)({},t)]}
1t.playlists.forEach(function(t,a){var o=n(i,r,s,t),u=aR(a,o);t.uri?t.resolvedUri=t.resolvedUri||r7(e.uri,t.uri):(t.uri=0===a?o:u,t.resolvedUri=t.uri),t.id=t.id||u,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),aF(e),aq(e)},az=function(){function e(){o._(this,e),this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}return l._(e,[{key:"setOffset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null===this.offset_&&e.length){var t=y._(e,1)[0];void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}}},{key:"setPendingDateRanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length){var t=y._(e,1)[0].startDate.getTime();this.trimProcessedDateRanges_(t),this.pendingDateRanges_=e.reduce(function(e,t){return e.set(t.id,t),e},new Map)}}},{key:"processDateRange",value:function(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}},{key:"getDateRangesToProcess",value:function(){var e=this;if(null===this.offset_)return[];var t={},n=[];this.pendingDateRanges_.forEach(function(i,r){if(!e.processedDateRanges_.has(r)&&(i.startTime=i.startDate.getTime()/1e3-e.offset_,i.processDateRange=function(){return e.processDateRange(i)},n.push(i),i.class))if(t[i.class]){var a=t[i.class].push(i);i.classListIndex=a-1}else t[i.class]=[i],i.classListIndex=0});var i=!0,r=!1,a=void 0;try{for(var s,o=n[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){var u=s.value,l=t[u.class]||[];u.endDate?u.endTime=u.endDate.getTime()/1e3-this.offset_:u.endOnNext&&l[u.classListIndex+1]?u.endTime=l[u.classListIndex+1].startTime:u.duration?u.endTime=u.startTime+u.duration:u.plannedDuration?u.endTime=u.startTime+u.plannedDuration:u.endTime=u.startTime}}catch(e){r=!0,a=e}finally{try{i||null==o.return||o.return()}finally{if(r)throw a}}return n}},{key:"trimProcessedDateRanges_",value:function(e){var t=this;new Map(this.processedDateRanges_).forEach(function(n,i){n.startDate.getTime()<e&&t.processedDateRanges_.delete(i)})}}]),e}(),aG=rZ.EventTarget,aW=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var a=i.parts||[],s=av(t)-1;s>-1&&s!==a.length-1&&(n._HLS_part=s),(s>-1||a.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var o=new(e$()).URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){n.hasOwnProperty(e)&&o.searchParams.set(e,n[e])}),e=o.toString()}return e},aY=function(e,t){if(!e)return t;var n=eW(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=eW(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},aX=function(e,t,n){var i,r=e.slice(),a=t.slice();n=n||0;for(var s=[],o=0;o<a.length;o++){var u=r[o+n],l=a[o];u?(i=u.map||i,s.push(aY(u,l))):(i&&!l.map&&(l.map=i),s.push(l))}return s},aK=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=r7(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=r7(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=r7(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=r7(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=r7(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=r7(t,e.uri))})},a$=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t}n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},aQ=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},aJ=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:aQ,i=eW(e,{}),r=i.playlists[t.id];if(!r||n(r,t))return null;t.segments=a$(t);var a=eW(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var s=0;s<t.skip.skippedSegments;s++)t.segments.unshift({skipped:!0})}a.segments=aX(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}
1a.segments.forEach(function(e){aK(e,a.resolvedUri)});for(var o=0;o<i.playlists.length;o++)i.playlists[o].id===t.id&&(i.playlists[o]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,aU(e,function(e,n,i,r){if(e.playlists)for(var s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=a)}),i},aZ=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},a0=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(o._(this,t),i=s._(this,t),!e)throw Error("A non-empty playlist URL or object is required");i.logger_=ae("PlaylistLoader");var a=r.withCredentials;i.src=e,i.vhs_=n,i.withCredentials=void 0!==a&&a,i.addDateRangesToTextTrack_=r.addDateRangesToTextTrack;var u=n.options_;return i.customTagParsers=u&&u.customTagParsers||[],i.customTagMappers=u&&u.customTagMappers||[],i.llhls=u&&u.llhls,i.dateRangesStorage_=new az,i.state="HAVE_NOTHING",i.handleMediaupdatetimeout_=i.handleMediaupdatetimeout_.bind(i),i.on("mediaupdatetimeout",i.handleMediaupdatetimeout_),i.on("loadedplaylist",i.handleLoadedPlaylist_.bind(i)),i}return f._(t,e),l._(t,[{key:"handleLoadedPlaylist_",value:function(){var e=this.media();if(e){this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);var t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}}},{key:"handleMediaupdatetimeout_",value:function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=r7(this.main.uri,t.uri);this.llhls&&(n=aW(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(t,n){if(e.request){if(t)return e.playlistRequestError(e.request,e.media(),"HAVE_METADATA");e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}})}}},{key:"playlistRequestError",value:function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.main.playlists[r],status:e.status,message:"HLS playlist request error at URL: ".concat(i,"."),responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}},{key:"parseManifest_",value:function(e){var t=this,n=e.url;return aM({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for ".concat(n,": ").concat(i))},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for ".concat(n,": ").concat(i))},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}},{key:"haveMetadata",value:function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),aB({playlist:a,uri:i,id:r});var s=aJ(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.main=s,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(aZ(this.media(),!!s)),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),e$().clearTimeout(this.mediaUpdateTimeout),e$().clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new az,this.off()}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(e$().clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=e$().setTimeout(this.media.bind(this,e,!1),i);return}var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,a&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(aZ(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=r9(e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},{key:"pause",value:function(){this.mediaUpdateTimeout&&(e$().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;this.mediaUpdateTimeout&&(e$().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=e$().setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},i);return}this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"updateMediaUpdateTimeout_",value:function(e){var t=this;this.mediaUpdateTimeout&&(e$().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=e$().setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))}},{key:"start",value:function(){var e=this;if(this.started=!0,"object"===T._(this.src)){this.src.uri||(this.src.uri=e$().location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){e.setupInitialPlaylist(e.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: ".concat(e.src,"."),responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=r9(e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}})}},{key:"srcUri",value:function(){return"string"==typeof this.src?this.src:this.src.uri}},{key:"setupInitialPlaylist",value:function(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,aH(this.main,this.srcUri()),e.playlists.forEac
1h(function(e){e.segments=a$(e),e.segments.forEach(function(t){aK(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}var t=this.srcUri()||e$().location.href;this.main=aV(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}},{key:"updateOrDeleteClone",value:function(e,t){for(var n=this.main,i=e.ID,r=n.playlists.length;r--;){var a=n.playlists[r];if(a.attributes["PATHWAY-ID"]===i){var s=a.resolvedUri,o=a.id;if(t){var u=this.createCloneURI_(a.resolvedUri,e),l=aR(i,u),c=this.createCloneAttributes_(i,a.attributes),d=this.createClonePlaylist_(a,l,e,c);n.playlists[r]=d,n.playlists[l]=d,n.playlists[u]=d}else n.playlists.splice(r,1);delete n.playlists[o],delete n.playlists[s]}}this.updateOrDeleteCloneMedia(e,t)}},{key:"updateOrDeleteCloneMedia",value:function(e,t){var n=this.main,i=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){if(n.mediaGroups[e]&&n.mediaGroups[e][i]){for(var t in n.mediaGroups[e])if(t===i){for(var r in n.mediaGroups[e][t])n.mediaGroups[e][t][r].playlists.forEac
1h(function(e,t){var i=n.playlists[e.id],r=i.id,a=i.resolvedUri;delete n.playlists[r],delete n.playlists[a]});delete n.mediaGroups[e][t]}}}),t&&this.createClonedMediaGroups_(e)}},{key:"addClonePathway",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.main,i=n.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),a=aR(e.ID,r),s=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,a,e,s);n.playlists[i]=o,n.playlists[a]=o,n.playlists[r]=o,this.createClonedMediaGroups_(e)}},{key:"createClonedMediaGroups_",value:function(e){var t=this,n=e.ID,i=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(a){if(r.mediaGroups[a]&&!r.mediaGroups[a][n])for(var s in r.mediaGroups[a]){var o=function(i){var o=r.mediaGroups[a][s][i];r.mediaGroups[a][n][i]=(0,e6.default)({},o);var u=r.mediaGroups[a][n][i],l=t.createCloneURI_(o.resolvedUri,e);u.resolvedUri=l,u.uri=l,u.playlists=[],o.playlists.forEach(function(s,o){var l=r.playlists[s.id],c=aN(a,n,i),d=aR(n,c);if(l&&!r.playlists[d]){var h=t.createClonePlaylist_(l,d,e),f=h.resolvedUri;r.playlists[d]=h,r.playlists[f]=h}u.playlists[o]=t.createClonePlaylist_(s,d,e)})};if(s===i)for(var u in r.mediaGroups[a][n]={},r.mediaGroups[a][s])o(u)}})}},{key:"createClonePlaylist_",value:function(e,t,n,i){var r=this.createCloneURI_(e.resolvedUri,n),a={resolvedUri:r,uri:r,id:t};return e.segments&&(a.segments=[]),i&&(a.attributes=i),eW(e,a)}},{key:"createCloneURI_",value:function(e,t){var n=new URL(e);n.hostname=t["URI-REPLACEMENT"].HOST;var i=t["URI-REPLACEMENT"].PARAMS,r=!0,a=!1,s=void 0;try{for(var o,u=Object.keys(i)[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var l=o.value;n.searchParams.set(l,i[l])}}catch(e){a=!0,s=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw s}}return n.href}},{key:"createCloneAttributes_",value:function(e,t){var n=c._({},"PATHWAY-ID",e);return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(i){t[i]&&(n[i]=e)}),n}},{key:"getKeyIdSet",value:function(e){if(e.contentProtection){var t=new Set;for(var n in e.contentProtection){var i=e.contentProtection[n].attributes.keyId;i&&t.add(i.toLowerCase())}return t}}}]),t}(aG),a1=rZ.xhr,a2=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},a4=function(e,t){if(e&&e.size){var n=t;return e.forEach(function(e){n=e(n)}),n}},a8=function(e,t,n,i){e&&e.size&&e.forEach(function(e){e(t,n,i)})},a3=function(){var e=function e(t,n){t=eW({timeout:45e3},t);var i=e.beforeRequest||rZ.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||rZ.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||rZ.Vhs.xhr._responseCallbackSet;i&&"function"==typeof i&&(rZ.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(i));var s=!0===rZ.Vhs.xhr.original?a1:rZ.Vhs.xhr,o=a4(r,t);r.delete(i);var u=s(o||t,function(e,t){return a8(a,u,e,t),a2(u,e,t,n)}),l=u.abort;return u.abort=function(){return u.aborted=!0,l.apply(u,arguments)},u.uri=t.uri,u.requestTime=Date.now(),u};return e.original=!0,e},a5=function(e){return"bytes="+e.offset+"-"+("bigint"===T._(e.offset)||"bigint"===T._(e.length)?e$().BigInt(e.offset)+e$().BigInt(e.length)-e$().BigInt(1):e.offset+e.length-1)},a6=function(e){var t={};return e.byterange&&(t.Range=a5(e.byterange)),t},a7=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},a9=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},se=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];(0,tn.isArrayBufferView)(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t},st=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},sn=function(e){return e.resolvedUri},si=function(e){for(var t=Array.prototype.slice.call(e),n="",i=0;i<t.length/16;i++)n+=t.slice(16*i,16*i+16).map(a7).join("")+" "+t.slice(16*i,16*i+16).map(a9).join("")+"\n";return n},sr=Object.freeze({__proto__:null,createTransferableMessage:se,initSegmentId:st,segmentKeyId:sn,hexDump:si,tagDump:function(e){return si(e.bytes)},textRanges:function(e){var t,n,i="";for(n=0;n<e.length;n++)i+=(t=n,e.start(t)+"-"+e.end(t)+" ");return i}}),sa=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=t.videoTimingInfo.transmuxedPresentationStart;return new Date(t.dateTimeObject.getTime()+1e3*(e-(i+n)))},ss=function(e,t){try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var n,i,r=t.segments[0];if(i<new Date(r.dateTimeObject))return null;for(var a=0;a<t.segments.length-1&&(r=t.segments[a],!(i<new Date(t.segments[a+1].dateTimeObject)));a++);var s=t.segments[t.segments.length-1],o=s.dateTimeObject,u=s.videoTimingInfo?(n=s.videoTimingInfo).transmuxedPresentationEnd-n.transmuxedPresentationStart-n.transmuxerPrependedSeconds:s.duration+.25*s.duration;return i>new Date(o.getTime()+1e3*u)?null:(i>new Date(o)&&(r=s),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:aO.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})},so=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},su=function(e,t){try{n=new Date(e),i=new Date(t)}catch(e){}var n,i,r=n.getTime();return(i.getTime()-r)/1e3},sl=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},sc=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw Error("getProgramTime: callback must be provided");
1if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=so(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:i},o=sa(i,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},sd=function(e){var t=e.programTime,n=e.playlist,i=e.retryCount,r=void 0===i?2:i,a=e.seekTo,s=e.pauseAfterSeek,o=void 0===s||s,u=e.tech,l=e.callback;if(!l)throw Error("seekToProgramTime: callback must be provided");if(void 0===t||!n||!a)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!u.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!sl(n))return l({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var c=ss(t,n);if(!c)return l({message:"".concat(t," was not found in the stream")});var d=c.segment,h=su(d.dateTimeObject,t);if("estimate"===c.type)return 0===r?l({message:"".concat(t," is not buffered yet. Try again")}):(a(c.estimatedStart+h),void u.one("seeked",function(){sd({programTime:t,playlist:n,retryCount:r-1,seekTo:a,pauseAfterSeek:o,tech:u,callback:l})}));var f=d.start+h;u.one("seeked",function(){return l(null,u.currentTime())}),o&&u.pause(),a(f)},sh=function(e,t){if(4===e.readyState)return t()},sf=function(e,t,n){var i,r=[],a=!1,s=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},o=function(e,t){if(!a){if(e)return s(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=(0,tn.concatTypedArrays)(r,(0,tn.stringToBytes)(n,!0)),i=i||(0,ts.getId3Offset)(r),r.length<10||i&&r.length<i+2)return sh(t,function(){return s(e,t,"",r)});var o=(0,to.detectContainerForBytes)(r);return"ts"===o&&r.length<188||!o&&r.length<376?sh(t,function(){return s(e,t,"",r)}):s(null,t,o,r)}},u=t({uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){return t.total,t.loaded,a2(e,null,{statusCode:e.status},o)})}},function(e,t){return a2(u,e,t,o)});return u},sp=rZ.EventTarget,sm=function(e,t){if(!aQ(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length)||!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,s=r.byterange;if(a&&!s||!a&&s||a.offset!==s.offset||a.length!==s.length)return!1}}return!0},sg=function(e,t,n,i){var r=i.attributes.NAME||n;return"placeholder-uri-".concat(e,"-").concat(t,"-").concat(r)},sv=function(e){var t=e.mainXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,s=(0,ti.parse)(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a});return aH(s,n,sg),s},sy=function(e,t){aU(e,function(n,i,r,a){a in t.mediaGroups[i][r]||delete e.mediaGroups[i][r][a]})},s_=function(e,t,n){for(var i=!0,r=eW(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var s=t.playlists[a];if(s.sidx){var o=(0,ti.generateSidxKey)(s.sidx);n&&n[o]&&n[o].sidx&&(0,ti.addSidxSegmentsToPlaylist)(s,n[o].sidx,s.sidx.resolvedUri)}var u=aJ(r,s,sm);u&&(r=u,i=!1)}return(aU(t,function(e,t,n,a){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,o=aJ(r,e.playlists[0],sm);o&&(a in(r=o).mediaGroups[t][n]||(r.mediaGroups[t][n][a]=e),r.mediaGroups[t][n][a].playlists[0]=r.playlists[s],i=!1)}}),sy(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i)?null:r},sb=function(e,t){var n={};for(var i in e){var r=e[i].sidx;if(r){var a,s=(0,ti.generateSidxKey)(r);if(!t[s])break;a=t[s].sidxInfo,(!a.map&&!r.map||a.map&&r.map&&a.map.byterange.offset===r.map.byterange.offset&&a.map.byterange.length===r.map.byterange.length)&&a.uri===r.uri&&a.byterange.offset===r.byterange.offset&&a.byterange.length===r.byterange.length&&(n[s]=t[s])}}return n},sT=function(e,t){var n=sb(e.playlists,t);return aU(e,function(e,i,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;n=eW(n,sb(s,t))}}),n},sk=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;o._(this,t),(i=s._(this,t)).mainPlaylistLoader_=a||i,a||(i.isMain_=!0);var u=r.withCredentials;
1if(i.vhs_=n,i.withCredentials=void 0!==u&&u,i.addMetadataToTextTrack=r.addMetadataToTextTrack,!e)throw Error("A non-empty playlist URL or object is required");return i.on("minimumUpdatePeriod",function(){i.refreshXml_()}),i.on("mediaupdatetimeout",function(){i.refreshMedia_(i.media().id)}),i.state="HAVE_NOTHING",i.loadedPlaylists_={},i.logger_=ae("DashPlaylistLoader"),i.isMain_?(i.mainPlaylistLoader_.srcUrl=e,i.mainPlaylistLoader_.sidxMapping_={}):i.childPlaylist_=e,i}return f._(t,e),l._(t,[{key:"requestErrored_",value:function(e,t,n){return!this.request||((this.request=null,e)?(this.error=(void 0===e?"undefined":T._(e))!=="object"||p._(e,Error)?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)}},{key:"addSidxSegments_",value:function(e,t,n){var i=this,r=e.sidx&&(0,ti.generateSidxKey)(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=e$().setTimeout(function(){return n(!1)},0);return}var a=r9(e.sidx.resolvedUri),s=function(a,s){if(!i.requestErrored_(a,s,t)){var o,u=i.mainPlaylistLoader_.sidxMapping_;try{o=ta()((0,tn.toUint8)(s.response).subarray(8))}catch(e){i.requestErrored_(e,s,t);return}return u[r]={sidxInfo:e.sidx,sidx:o},(0,ti.addSidxSegmentsToPlaylist)(e,o,e.sidx.resolvedUri),n(!0)}};this.request=sf(a,this.vhs_.xhr,function(t,n,r,o){if(t)return s(t,n);if(!r||"mp4"!==r)return s({status:n.status,message:"Unsupported ".concat(r||"unknown"," container type for sidx segment at URL: ").concat(a),response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},n);var u=e.sidx.byterange,l=u.offset,c=u.length;if(o.length>=c+l)return s(t,{response:o.subarray(l,l+c),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:a6({byterange:e.sidx.byterange})},s)})}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},e$().clearTimeout(this.minimumUpdatePeriodTimeout_),e$().clearTimeout(this.mediaRequest_),e$().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,i&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,function(i){t.haveMetadata({startingState:n,playlist:e})}))}},{key:"haveMetadata",value:function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MAIN_MANIFEST"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),e$().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(e$().clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var t=this;e$().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=e$().setTimeout(function(){return t.load()},i);return}this.started?n&&!n.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var e=this;if(this.started=!0,!this.isMain_){this.mediaRequest_=e$().setTimeout(function(){return e.haveMain_()},0);return}this.requestMain_(function(t,n){e.haveMain_(),e.hasPendingRequest()||e.media_||e.media(e.mainPlaylistLoader_.main.playlists[0])})}},{key:"requestMain_",value:function(e){var t=this;this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials}
1,function(n,i){if(t.requestErrored_(n,i)){"HAVE_NOTHING"===t.state&&(t.started=!1);return}var r=i.responseText!==t.mainPlaylistLoader_.mainXml_;if(t.mainPlaylistLoader_.mainXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.mainLoaded_=Date.parse(i.responseHeaders.date):t.mainLoaded_=Date.now(),t.mainPlaylistLoader_.srcUrl=r9(t.mainPlaylistLoader_.srcUrl,i),r){t.handleMain_(),t.syncClientServerClock_(function(){return e(i,r)});return}return e(i,r)})}},{key:"syncClientServerClock_",value:function(e){var t=this,n=(0,ti.parseUTCTiming)(this.mainPlaylistLoader_.mainXml_);return null===n?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.mainPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:r7(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(i,r){var a;if(t.request){if(i)return t.mainPlaylistLoader_.clientOffset_=t.mainLoaded_-Date.now(),e();a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.mainLoaded_:Date.parse(r.responseText),t.mainPlaylistLoader_.clientOffset_=a-Date.now(),e()}}))}},{key:"haveMain_",value:function(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}},{key:"handleMain_",value:function(){this.mediaRequest_=null;var e=this.mainPlaylistLoader_.main,t=sv({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=s_(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;var n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(t),!!t}},{key:"updateMinimumUpdatePeriodTimeout_",value:function(){var e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(e$().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.main&&e.main.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0){t<0&&this.logger_("found invalid minimumUpdatePeriod of ".concat(t,", not setting a timeout"));return}this.createMUPTimeout_(t)}},{key:"createMUPTimeout_",value:function(e){var t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=e$().setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}},{key:"refreshXml_",value:function(){var e=this;this.requestMain_(function(t,n){n&&(e.media_&&(e.media_=e.mainPlaylistLoader_.main.playlists[e.media_.id]),e.mainPlaylistLoader_.sidxMapping_=sT(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})}},{key:"refreshMedia_",value:function(e){var t=this;if(!e)throw Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();var n=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){var r=function(){t.media().endList||(t.mediaUpdateTimeout=e$().setTimeout(function(){t.trigger("mediaupdatetimeout"),r()},aZ(t.media(),!!i)))};r()}this.trigger("loadedplaylist")}},{key:"addEventStreamToMetadataTrack_",value:function(e){if(e&&this.mainPlaylistLoader_.main.eventStream){var t=this.mainPlaylistLoader_.main.eventStream.map(function(e){return{cueTime:e.start,frames:[{data:e.messageData}]}});this.addMetadataToTextTrack("EventStream",t,this.mainPlaylistLoader_.main.duration)}}},{key:"getKeyIdSet",value:function(e){if(e.contentProtection){var t=new Set;for(var n in e.contentProtection){var i=e.contentProtection[n].attributes["cenc:default_KID"];i&&t.add(i.replace(/-/g,"").toLowerCase())}return t}}}]),t}(k._(sp)),sS={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},sE=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},sw=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},sC=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},sx=function(e){return function(){var t=sC(e),n=sw(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},sA=function(e){return"var browserWorkerPolyFill = ".concat(sw.toString(),";\n")+"browserWorkerPolyFill(self);\n"+e},sI=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},sP=sx(sA(sI(function(){var e,t,i,r,a,s,u,c,d,h,f,p,m,g,v,y,_,b,k,S,E,w,C,x,A,I,P,L,j,O,D,R,N,M,U,B,F,q,V,H,z,G,W,Y,X,K,$,Q,J,Z,ee,et,en="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{},ei=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2==arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};ei.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},ei.prototype.push=function(e){this.trigger("data",e)},ei.prototype.flush=function(e){this.trigger("done",e)},ei.prototype.partialFlush=function(e){this.trigger("partialdone",e)},ei.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},ei.prototype.reset=function(e){this.trigger("reset",e)};var er=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
1Number(t):t:0x100000000*n.getUint32(0)+n.getUint32(4)};if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"u">typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array([105,115,111,109]),A=new Uint8Array([97,118,99,49]),x=new Uint8Array([0,0,0,1]),I={video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])},j=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),L=new Uint8Array([0,0,0,0,0,0,0,0]),D=O=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=O,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}u=function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(new DataView((n=new Uint8Array(r+8)).buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n};v=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),u(w.mdhd,t)},g=function(e){var t;return u(w.mdia,v(e),(t=e.type,u(w.hdlr,I[t])),c(e))},c=function(e){return u(w.minf,"video"===e.type?u(w.vmhd,P):u(w.smhd,L),u(w.dinf,u(w.dref,j)),_(e))},d=function(e){for(var t=e.length,n=[];t--;)n[t]=p(e[t]);return u.apply(null,[w.moov,f(0xffffffff)].concat(n).concat(h(e)))},h=function(e){for(var t=e.length,n=[];t--;)n[t]=S(e[t]);return u.apply(null,[w.mvex].concat(n))},f=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return u(w.mvhd,t)},y=function(e){var t,n,i=e.samples||[],r=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)t=i[n].flags,r[n+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return u(w.sdtp,r)},_=function(e){return u(w.stbl,b(e),u(w.stts,N),u(w.stsc,D),u(w.stsz,R),u(w.stco,O))},b=function(e){return u(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?t(e):i(e))},t=function(e){var t,n,i=e.sps||[],r=e.pps||[],a=[],s=[];for(t=0;t<i.length;t++)a.push((65280&i[t].byteLength)>>>8),a.push(255&i[t].byteLength),a=a.concat(Array.prototype.slice.call(i[t]));for(t=0;t<r.length;t++)s.push((65280&r[t].byteLength)>>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));if(n=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],a,[r.length],s))),u(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var o=e.sarRatio[0],l=e.sarRatio[1];n.push(u(w.pasp,new Uint8Array([(0xff000000&o)>>24,(0xff0000&o)>>16,(65280&o)>>8,255&o,(0xff000000&l)>>24,(0xff0000&l)>>16,(65280&l)>>8,255&l])))}return u.apply(null,n)},i=function(e){return u(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),u(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2])))},m=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(0xff000000&e.id)>>24,(0xff0000&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(0xff000000&e.duration)>>24,(0xff0000&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return u(w.tkhd,t)},k=function(e){var t,n,i,r,a,s;return(t=u(w.tfhd,new Uint8Array([0,0,0,58,(0xff000000&e.id)>>24,(0xff0000&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/0x100000000),s=Math.floor(e.baseMediaDecodeTime%0x100000000),n=u(w.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),"audio"===e.type)?(i=E(e,92),u(w.traf,t,n,i)):(r=y(e),i=E(e,r.length+92),u(w.traf,t,n,i,r))},p=function(e){return e.duration=e.duration||0xffffffff,u(w.trak,m(e),g(e))},S=function(e){var t=new Uint8Array([0,0,0,0,(0xff000000&e.id)>>24,(0xff0000&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),u(w.trex,t)},s=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(0xff000000&e.length)>>>24,(0xff0000&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(0xff000000&t)>>>24,(0xff0000&t)>>>16,(65280&t)>>>8,255&t]},a=function(e,t){var n,i,r,a,o,l;for(t+=20+16*(a=e.samples||[]).length,(i=new Uint8Array((r=s(a,t)).length+16*a.length)).set(r),n=r.length,l=0;l<a.length;l++)o=a[l],i[n++]=(0xff000000&o.duration)>>>24,i[n++]=(0xff0000&o.duration)>>>16,i[n++]=(65280&o.duration)>>>8,i[n++]=255&o.duration,i[n++]=(0xff000000&o.size)>>>24,i[n++]=(0xff0000&o.size)>>>16,i[n++]=(65280&o.size)>>>8,i[n++]=255&o.size,i[n++]=o.flags.isLeading<<2|o.flags.dependsOn,i[n++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,i[n++]=61440&o.flags.degradationPriority,i[n++]=15&o.flags.degradationPriority,i[n++]=(0xff000000&o.compositionTimeOffset)>>>24,i[n++]=(0xff0000&o.compositionTimeOffset)>>>16,i[n++]=(65280&o.compositionTimeOffset)>>>8,i[n++]=255&o.compositionTimeOffset;return u(w.trun,i)},r=function(e,t){var n,i,r,a,o,l;for(t+=20+8*(a=e.samples||[]).length,(n=new Uint8Array((r=s(a,t)).length+8*a.length)).set(r),i=r.length,l=0;l<a.length;l++)o=a[l],n[i++]=(0xff000000&o.duration)>>>24,n[i++]=(0xff0000&o.duration)>>>16,n[i++]=(65280&o.duration)>>>8,n[i++]=255&o.duration,n[i++]=(0xff000000&o.size)>>>24,n[i++]=(0xff0000&o.size)>>>16,n[i++]=(65280&o.size)>>>8,n[i++]=255&o.size;return u(w.trun,n)},E=function(e,t){return"audio"===e.type?r(e,t):a(e,t)};var ea=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},es=[33,16,5,32,164,27],eo=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],eu=function(e){for(var t=[];e--;)t.push(0);return t};U=function(e){return 9e4*e},B=function(e,t){return e*t},F=function(e){return e/9e4},q=function(e,t){return e/t};var el=9e4,ec=U,ed=F,eh=function(e,t){return U(q(e,t))},ef=function(e,t){return B(F(e),t)},ep=function(e,t,n){return F(n?e:e-t)},em=function(){if(!M){var e;M=Object.keys(e={96e3:[es,[227,64],eu(154),[56]],88200:[es,[231],eu(170),[56]],64e3:[es,[248,192],eu(240),[56]],48e3:[es,[255,192],eu(268),[55,148,128],eu(54),[112]],44100:[es,[255,192],eu(268),[55,163,128],eu(84),[112]],32e3:[es,[255,192],eu(268),[55,234],eu(226),[112]],24e3:[es,[255,192],eu(268),[55,255,128],eu(268),[111,112],eu(126),[224]],16e3:[es,[255,192],eu(268),[55,255,128],eu(268),[111,255],eu(269),[223,108],eu(195),[1,192]],12e3:[eo,eu(268),[3,127,248],eu(268),[6,255,240],eu(268),[13,255,224],eu(268),[27,253,128],eu(259),[56]],11025:[eo,eu(268),[3,127,248],eu(268),[6,255,240],eu(268),[13,255,224],eu(268),[27,255,192],eu(268),[55,175,128],eu(108),[112]],8e3:[eo,eu(268),[3,121,16],eu(47),[7]]}).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(e,t){return e.concat(t)},[])),t},{})}return M},eg=function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n},ev=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},ey=function(e){return 181!==e.payload[0]||(e.payload[1]<<8|e.payload[2])!=49||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},e_=function(e,t){var n,i,r,a,s=[];if(!(64&t[0]))return s;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[(r=3*n)+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s},eb=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;n=new Uint8Array(t=i-r.length);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},eT=4,ek=function(e){e=e||{},ek.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new eO(0,0),new eO(0,1),new eO(1,0),new eO(1,1)],this.parse708captions_&&(this.cc708Stream_=new eA({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};ek.prototype=new ei,ek.prototype.push=function(e){var t,n,i;
1if("sei_rbsp"===e.nalUnitType&&(t=ev(e.escapedRBSP)).payload&&t.payloadType===eT&&(n=ey(t))){if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}i=e_(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},ek.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},ek.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},ek.prototype.flush=function(){return this.flushStream("flush")},ek.prototype.partialFlush=function(){return this.flushStream("partialFlush")},ek.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},ek.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},ek.prototype.setsChannel1Active=function(e){return(30720&e.ccData)==4096},ek.prototype.setsChannel2Active=function(e){return(30720&e.ccData)==6144},ek.prototype.setsTextOrXDSActive=function(e){return(28928&e.ccData)==256||(30974&e.ccData)==4138||(30974&e.ccData)==6186},ek.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var eS={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},eE=function(e){var t=eS[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},ew=function(e){return 32<=e&&e<=127||160<=e&&e<=255},eC=function(e){this.windowNum=e,this.reset()};eC.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},eC.prototype.getText=function(){return this.rows.join("\n")},eC.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},eC.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},eC.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},eC.prototype.addText=function(e){this.rows[this.rowIdx]+=e},eC.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var ex=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new eC(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};ex.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new eC(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},ex.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},ex.prototype.createTextDecoder=function(e){if("u"<typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var eA=function(e){e=e||{},eA.prototype.init.call(this);var t,n=this,i=e.captionServices||{},r={};
1Object.keys(i).forEach(function(e){t=i[e],/^SERVICE/.test(e)&&(r[e]=t.encoding)}),this.serviceEncodings=r,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?n.new708Packet():null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e)}};eA.prototype=new ei,eA.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},eA.prototype.add708Bytes=function(e){var t=e.ccData;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(t>>>8),this.current708Packet.data.push(255&t)},eA.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)n=(a=t[r++])>>5,i=31&a,7===n&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},eA.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r<t+n&&r<a.length;r++)ew(i=a[r])?r=this.handleText(r,s):24===i?r=this.multiByteCharacter(r,s):16===i?r=this.extendedCommands(r,s):128<=i&&i<=135?r=this.setCurrentWindow(r,s):152<=i&&i<=159?r=this.defineWindow(r,s):136===i?r=this.clearWindows(r,s):140===i?r=this.deleteWindows(r,s):137===i?r=this.displayWindows(r,s):138===i?r=this.hideWindows(r,s):139===i?r=this.toggleWindows(r,s):151===i?r=this.setWindowAttributes(r,s):144===i?r=this.setPenAttributes(r,s):145===i?r=this.setPenColor(r,s):146===i?r=this.setPenLocation(r,s):143===i?s=this.reset(r,s):8===i?s.currentWindow.backspace():12===i?s.currentWindow.clearText():13===i?s.currentWindow.pendingNewLine=!0:14===i?s.currentWindow.clearText():141===i&&r++},eA.prototype.extendedCommands=function(e,t){return ew(this.current708Packet.data[++e])&&(e=this.handleText(e,t,{isExtended:!0})),e},eA.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},eA.prototype.initService=function(e,t){var n,i="SERVICE"+e,r=this;return i in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new ex(e,n,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},eA.prototype.handleText=function(e,t,n){var i,r,a=n&&n.isExtended,s=n&&n.isMultiByte,o=this.current708Packet.data,u=o[e],l=o[e+1],c=t.currentWindow;return s?(r=[u,l],e++):r=[u],i=t.textDecoder_&&!a?t.textDecoder_.decode(new Uint8Array(r)):s?String.fromCharCode(parseInt(r.map(function(e){return("0"+(255&e).toString(16)).slice(-2)}).join(""),16)):eE(4096*!!a|u),c.pendingNewLine&&!c.isEmpty()&&c.newLine(this.getPts(e)),c.pendingNewLine=!1,c.addText(i),e},eA.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return ew(i)&&ew(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},eA.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data[e];return t.setCurrentWindow(7&n),e},eA.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return a.visible=(32&(i=n[++e]))>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,a.relativePositioning=(128&(i=n[++e]))>>7,a.anchorVertical=127&i,a.anchorHorizontal=i=n[++e],a.anchorPoint=(240&(i=n[++e]))>>4,a.rowCount=15&i,a.columnCount=63&(i=n[++e]),a.windowStyle=(56&(i=n[++e]))>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},eA.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return r.fillOpacity=(192&(i=n[++e]))>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,r.borderType=(192&(i=n[++e]))>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,r.effectSpeed=(240&(i=n[++e]))>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},eA.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},eA.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
1:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},eA.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},eA.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},eA.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},eA.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},eA.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},eA.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return r.textTag=(240&(i=n[++e]))>>4,r.offset=(12&i)>>2,r.penSize=3&i,r.italics=(128&(i=n[++e]))>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},eA.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return r.fgOpacity=(192&(i=n[++e]))>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,r.bgOpacity=(192&(i=n[++e]))>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,r.edgeRed=(48&(i=n[++e]))>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},eA.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,r.row=15&n[++e],r.column=63&n[++e],e},eA.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var eI={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},eP=function(e){return null===e?"":String.fromCharCode(e=eI[e]||e)},eL=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ej=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},eO=function(e,t){eO.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if((t=32639&e.ccData)===this.lastControlCode_){this.lastControlCode_=null;return}if((61440&t)==4096?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=ej();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ej();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=ej()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=eP((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),a=eP((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,(14&r)==14&&this.addFormatting(e.pts,["i"]),(1&r)==1&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r)){var s=3&r;this.nonDisplayed_[this.row_].offset=s,this.column_+=s}else if(this.isPAC(i,r)){var o=eL.indexOf(7968&t);if("rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),(16&t)==16){var u=(14&t)>>1;this.column_=4*u,this.nonDisplayed_[this.row_].indent+=u}this.isColorPAC(r)&&(14&r)==14&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=eP(i)+eP(r),this[this.mode_](e.pts,a),this.column_+=a.length)}};eO.prototype=new ei,eO.prototype.flushDisplayed=function(e){var t=this,n=function(e){t.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},i=[];this.displayed_.forEach(function(e,t){if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){n(t)}e.text.length&&i.push({text:e.text,line:t+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&n(t)}),i.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:i,stream:this.name_})},eO.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ej(),this.nonDisplayed_=ej(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},eO.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},eO.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},eO.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},eO.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},eO.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},eO.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},eO.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},eO.prototype.isNormalChar=function(e){return e>=32&&e<=127},eO.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=ej(),this.displayed_=ej()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},eO.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},eO.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},eO.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_].text;n+=t,this.nonDisplayed_[this.row_].text=n},eO.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n},eO.prototype.shiftRowsUp_=function(){var e;
1for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},eO.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n};var eD=ek,eR=eO,eN=eA,eM={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},eU="shared",eB=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>0x100000000;)e+=0x200000000*n;return e},eF=function(e){var t,n;eF.prototype.init.call(this),this.type_=e||eU,this.push=function(e){"metadata"===e.type?this.trigger("data",e):(this.type_===eU||e.type===this.type_)&&(void 0===n&&(n=e.dts),e.dts=eB(e.dts,n),e.pts=eB(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};eF.prototype=new ei;var eq=function(e,t,n){if(!e)return -1;for(var i=n;i<e.length;i++)if(e[i]===t)return i;return -1},eV=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},eH=function(e,t,n){return decodeURIComponent(eV(e,t,n))},ez=function(e,t,n){return unescape(eV(e,t,n))},eG=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},eW={APIC:function(e){var t,n,i=1;3!==e.data[0]||(t=eq(e.data,0,i))<0||(e.mimeType=ez(e.data,i,t),i=t+1,e.pictureType=e.data[i],i++,(n=eq(e.data,0,i))<0||(e.description=eH(e.data,i,n),i=n+1,"-->"===e.mimeType?e.url=ez(e.data,i,e.data.length):e.pictureData=e.data.subarray(i,e.data.length)))},"T*":function(e){3===e.data[0]&&(e.value=eH(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;3!==e.data[0]||-1!==(t=eq(e.data,0,1))&&(e.description=eH(e.data,1,t),e.value=eH(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=ez(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;3!==e.data[0]||-1!==(t=eq(e.data,0,1))&&(e.description=eH(e.data,1,t),e.url=ez(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=ez(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},eY=function(e){var t,n=10,i=0,r=[];if(!(e.length<10)&&73===e[0]&&68===e[1]&&51===e[2]){i=eG(e.subarray(6,10))+10,64&e[5]&&(n+=4,n+=eG(e.subarray(10,14)),i-=eG(e.subarray(16,20)));do{if((t=eG(e.subarray(n+4,n+8)))<1)break;var a={id:String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]),data:e.subarray(n+10,n+t+10)};a.key=a.id,eW[a.id]?eW[a.id](a):"T"===a.id[0]?eW["T*"](a):"W"===a.id[0]&&eW["W*"](a),r.push(a),n+=10,n+=t}while(n<i)return r}},eX=eG,eK=eW;(V=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(V.prototype.init.call(this),this.dispatchType=eM.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,s,o,u;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||73!==e.data[0]||68!==e.data[1]||51!==e.data[2]))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=eX(e.data.subarray(6,10))+10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u<i;)t.data.set(r[0].data.subarray(0,i-u),u),u+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=eX(t.data.subarray(10,14)),i-=eX(t.data.subarray(16,20)));do{if((s=eX(t.data.subarray(n+4,n+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((o={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+s+10)}).key=o.id,eK[o.id]?eK[o.id](o):"T"===o.id[0]?eK["T*"](o):"W"===o.id[0]&&eK["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var l=o.data,c=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;c*=4,o.timeStamp=c+=3&l[7],void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),n+=10,n+=s}while(n<i)this.trigger("data",t)}}}}).prototype=new ei;var e$=V;(H=function(){var e=new Uint8Array(188),t=0;H.prototype.init.call(this),this.push=function(n){var i,r=0,a=188;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;){if(71===i[r]&&71===i[a]){this.trigger("data",i.subarray(r,a)),r+=188,a+=188;continue}r++,a++}r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new ei,(z=function(){var e,t,n,i;z.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],s=(31&e[r+1])<<8|e[r+2];a===eM.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=s:a===eM.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=s:a===eM.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][s]=a),r+=((15&e[r+3])<<8|e[r+4])+5}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
1else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=eM.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=eM.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new ei,z.STREAM_TYPES={h264:27,adts:15},(G=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=function(e,t){var n,i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=(4&e[6])!=0,192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},o=function(e,n,i){var r,a=new Uint8Array(e.size),o={type:n},u=0,l=0,c=!1;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,u=0;u<e.data.length;u++)r=e.data[u],a.set(r.data,l),l+=r.data.byteLength;s(a,o),c="video"===n||o.packetLength<=e.size,(i||c)&&(e.size=0,e.data.length=0),c&&t.trigger("data",o)}};G.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case eM.H264_STREAM_TYPE:e=i,t="video";break;case eM.ADTS_STREAM_TYPE:e=r,t="audio";break;case eM.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=s.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new ei;var eQ={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:H,TransportParseStream:z,ElementaryStream:G,TimestampRolloverStream:eF,CaptionStream:eD,Cea608Stream:eR,Cea708Stream:eN,MetadataStream:e$};for(var eJ in eM)eM.hasOwnProperty(eJ)&&(eQ[eJ]=eM[eJ]);var eZ=el,e0=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(W=function(e){var t,n=0;W.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes ".concat(e," to ").concat(t," in frame ").concat(n," outside syncword")})},this.push=function(i){var r,a,s,o,u,l,c=0;if(e||(n=0),"audio"===i.type){for(t&&t.length?((t=new Uint8Array((o=t).byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;c+7<t.length;){if(255!==t[c]||(246&t[c+1])!=240){"number"!=typeof r&&(r=c),c++;continue}if("number"==typeof r&&(this.skipWarn_(r,c),r=null),s=(1&~t[c+1])*2,a=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(u=((3&t[c+6])+1)*1024)*eZ/e0[(60&t[c+2])>>>2],t.byteLength-c<a)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:u,audioobjecttype:(t[c+2]>>>6&3)+1,channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:e0[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+s,c+a)}),n++,c+=a}"number"==typeof r&&(this.skipWarn_(r,c),r=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new ei;var e1=W,e2=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw Error("no bytes available");a.set(e.subarray(r,r+s)),n=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var r;i>e||(e-=i,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord()),n<<=e,i-=e},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return((i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0)?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;
1for(e=0;e<i;++e)if((n&0x80000000>>>e)!=0)return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(X=function(){var e,t,n=0;X.prototype.init.call(this),this.push=function(i){t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var r,a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do e++;while(1!==t[e]&&e<a)n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new ei,K={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(Y=function(){var e,t,n,i,r,a,s,o=new X;Y.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",function(s){var o={trackId:t,pts:n,dts:i,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r},r=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;n=new Uint8Array(t=i-r.length);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},a=function(e){var t,n,i,r,a,o,u,l,c,d,h,f,p=0,m=0,g=0,v=0,y=[1,1];if(n=(t=new e2(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),K[n]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,f=0;f<h;f++)t.readBoolean()&&(f<6?s(16,t):s(64,t));if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),u=t.readUnsignedExpGolomb(),f=0;f<u;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),l=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(p=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y[0],y[1]}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:(l+1)*16-2*p-2*m,height:(2-d)*(c+1)*16-2*g-2*v,sarRatio:y}}}).prototype=new ei;var e4=Y,e8=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],e3=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(n=n>=0?n:0,(16&e[t+5])>>4)?n+20:n+10},e5=function(e,t){return e.length-t<10||73!==e[t]||68!==e[t+1]||51!==e[t+2]?t:(t+=e3(e,t),e5(e,t))},e6=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},e7=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},e9={isLikelyAacData:function(e){var t=e5(e,0);return e.length>
1=t+2&&(255&e[t])==255&&(240&e[t+1])==240&&(22&e[t+1])==16},parseId3TagSize:e3,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return 73===e[t]&&68===e[t+1]&&51===e[t+2]?"timed-metadata":!0&e[t]&&(240&e[t+1])==240?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255!==e[t]||(246&e[t+1])!=240){t++;continue}return e8[(60&e[t+2])>>>2]}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=e6(e.subarray(10,14)));do{if((n=e6(e.subarray(t+4,t+8)))<1)break;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===unescape(e7(i,0,r))){var a=i.subarray(r+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength)return null}};($=function(){var e=new Uint8Array,t=0;$.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,s=0,o=0;for(e.length?(a=e.length,(e=new Uint8Array(n.byteLength+a)).set(e.subarray(0,a)),e.set(n,a)):e=n;e.length-o>=3;){if(73===e[o]&&68===e[o+1]&&51===e[o+2]){if(e.length-o<10||(s=e9.parseId3TagSize(e,o),o+s>e.length))break;i={type:"timed-metadata",data:e.subarray(o,o+s)},this.trigger("data",i),o+=s;continue}if((255&e[o])==255&&(240&e[o+1])==240){if(e.length-o<7||(s=e9.parseAdtsSize(e,o),o+s>e.length))break;r={type:"audio",data:e.subarray(o,o+s),pts:t,dts:t},this.trigger("data",r),o+=s;continue}o++}e=e.length-o>0?e.subarray(o):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new ei;var te=$,tt=function(e){return u(w.mdat,e)},tn=function(e,t){for(var n=[],i=t.length;i--;)n[i]=k(t[i]);return u.apply(null,[w.moof,u(w.mfhd,new Uint8Array([0,0,0,0,(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e]))].concat(n))},ti=function(e){var t,n=u(w.ftyp,C,x,C,A),i=d(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t},tr=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},ta=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},ts=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},to=function(e,t){var n,i,r,a,s=t||0,o=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)r=ea(a[i],s),s+=r.size,o.push(r);return o},tu=function(e){var t,n,i,r,a,s,o=0,u=new Uint8Array(e.byteLength+4*e.nalCount),l=new DataView(u.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)s=a[i],l.setUint32(o,s.data.byteLength),o+=4,u.set(s.data,o),o+=s.data.byteLength;return u},tl=function(e,t,n,i){var r,a,s,o,u=0,l=0,c=0;if(t.length&&(r=eh(e.baseMediaDecodeTime,e.samplerate),u=Math.ceil(el/(e.samplerate/1024)),n&&i&&(c=(l=Math.floor((r-Math.max(n,i))/u))*u),!(l<1)&&!(c>el/2))){for((a=em()[e.samplerate])||(a=t[0].data),s=0;s<l;s++)o=t[0],t.splice(0,0,{data:a,dts:o.dts-u,pts:o.pts-u});return e.baseMediaDecodeTime-=Math.floor(ef(c,e.samplerate)),c}},tc=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push({size:e[t].data.byteLength,duration:1024});return n},td=function(e){var t,n,i=0,r=new Uint8Array(eg(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},th=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},tf=function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=Math.max(0,n=e.timelineStartInfo.baseMediaDecodeTime+i),"audio"===e.type&&(n*=e.samplerate/el,n=Math.floor(n)),n},tp=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},tm=e9.isLikelyAacData,tg=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],tv=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],ty=function(e,t){t.stream=e,this.trigger("log",t)},t_=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",ty.bind(e,r))}},tb=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},tT=function(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}};(J=function(e,t){var n,i=[],r=0,a=0,s=1/0;n=(t=t||{}).firstSequenceNumber||0,J.prototype.init.call(this),this.push=function(t){tp(e,t),e&&tg.forEach(function(n){e[n]=t[n]}),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var o,u,l,c,d,h,f,p,m,g;0===i.length||(p=i,m=e,g=r,o=m.minSegmentDts>=g?p:(m.minSegmentDts=1/0,p.filter(function(e){return e.dts>=g&&(m.minSegmentDts=Math.min(m.minSegmentDts,e.dts),m.minSegmentPts=m.minSegmentDts,!0)})),e.baseMediaDecodeTime=tf(e,t.keepOriginalTimestamps),f=tl(e,o,a,s),e.samples=tc(o),l=tt(td(o)),i=[],c=new Uint8Array((u=tn(n,[e])).byteLength+l.byteLength),n++,c.set(u),c.set(l,u.byteLength),th(e),d=Math.ceil(1024*el/e.samplerate),o.length&&(h=o.length*d,this.trigger("segmentTimingInfo",tT(eh(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,f||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:c})),this.trigger("done","AudioSegmentStream")},this.reset=function(){th(e),i=[],this.trigger("reset")}}).prototype=new ei,(Q=function(e,t){var n,i,r,a=[],s=[];n=(t=t||{}).firstSequenceNumber||0,Q.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){tp(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],tv.forEach(function(t){e[t]=i[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,r,o,u,l,c,d,h,f=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();
1if(0===a.length){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if((o=ta(tr(a)))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],e))?(f=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=ts(o)),s.length){if(!(i=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o))){this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}th(e),o=i}tp(e,o),e.samples=to(o),l=tt(tu(o)),e.baseMediaDecodeTime=tf(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",tT(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,f)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),c=new Uint8Array((u=tn(n,[e])).byteLength+l.byteLength),n++,c.set(u),c.set(l,u.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){th(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,e.pps&&tb(e.pps[0],a.pps[0])&&e.sps&&tb(e.sps[0],a.sps[0])&&!(r.dts<e.timelineStartInfo.dts)&&(n=t.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||o>n)&&(i=a,o=n);return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,o,u,l;for(a=e.byteLength,o=e.nalCount,u=e.duration,t=n=0;t<s.length&&n<e.length&&(i=s[t],r=e[n],i.pts!==r.pts);){if(r.pts>i.pts){t++;continue}n++,a-=r.byteLength,o-=r.nalCount,u-=r.duration}return 0===n?e:n===e.length?null:((l=e.slice(n)).byteLength=a,l.duration=u,l.nalCount=o,l.pts=l[0].pts,l.dts=l[0].dts,l)},this.alignGopsAtEnd_=function(e){for(t=s.length-1,n=e.length-1,a=null,o=!1;t>=0&&n>=0;){if(i=s[t],r=e[n],i.pts===r.pts){o=!0;break}if(i.pts>r.pts){t--;continue}t===s.length-1&&(a=n),n--}if(!o&&null===a)return null;if(0===(u=o?n:a))return e;var t,n,i,r,a,o,u,l=e.slice(u),c=l.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return l.byteLength=c.byteLength,l.duration=c.duration,l.nalCount=c.nalCount,l.pts=l[0].pts,l.dts=l[0].dts,l},this.alignGopsWith=function(e){s=e}}).prototype=new ei,(ee=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ee.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):void(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),"audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes)))}}).prototype=new ei,ee.prototype.flush=function(e){var t,n,i,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;else if(this.remuxTracks)return;else if(0===this.pendingTracks.length){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,tv.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,tg.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,s.initSegment=new Uint8Array((i=ti(this.pendingTracks)).byteLength),s.initSegment.set(i),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=ep(t.startPts,o,this.keepOriginalTimestamps),t.endTime=ep(t.endPts,o,this.keepOriginalTimestamps),s.captionStream
vendor: 6,763 bytes, line 1
1s[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=ep(n.pts,o,this.keepOriginalTimestamps),s.metadata.push(n);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)n=s.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ee.prototype.setRemux=function(e){this.remuxTracks=e},(Z=function(e){var t,n,i=this,r=!0;Z.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new eQ.MetadataStream,r.aacStream=new te,r.audioTimestampRolloverStream=new eQ.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new eQ.TimestampRolloverStream("timed-metadata"),r.adtsStream=new e1,r.coalesceStream=new ee(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new J(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),t_(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new eQ.MetadataStream,r.packetStream=new eQ.TransportPacketStream,r.parseStream=new eQ.TransportParseStream,r.elementaryStream=new eQ.ElementaryStream,r.timestampRolloverStream=new eQ.TimestampRolloverStream,r.adtsStream=new e1,r.h264Stream=new e4,r.captionStream=new eQ.CaptionStream(e),r.coalesceStream=new ee(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Q(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new J(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),t_(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,th(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,th(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=tm(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new ei;var tk=Z,tS=function(e){return e>>>0},tE=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},tw=function(e,t){var n,i,r,a,s,o=[];if(!t.length)return null;for(n=0;n<e.byteLength;)i=tS(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),r=tE(e.subarray(n+4,n+8)),a=i>1?n+i:e.byteLength,r===t[0]&&(1===t.length?o.push(e.subarray(n+8,a)):(s=tw(e.subarray(n+8,a),t.slice(1))).length&&(o=o.c
1oncat(s))),n=a;return o},tC=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=er(e.subarray(4)):t.baseMediaDecodeTime=tS(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},tx=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},tA=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],o=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:tx(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(t.flags=tx(e.subarray(d,d+4)),d+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},tI=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],s=8&i.flags[2],o=16&i.flags[2],u=32&i.flags[2],l=65536&i.flags[0],c=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),s&&(i.defaultSampleDuration=n.getUint32(t),t+=4),o&&(i.defaultSampleSize=n.getUint32(t),t+=4),u&&(i.defaultSampleFlags=n.getUint32(t)),l&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i},tP="u">typeof window?window:void 0!==en?en:"u">typeof self?self:{},tL=eb,tj=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},tO=function(e,t,n){var i,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),u={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var l=e.subarray(r+1,r+1+a),c=tj(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:l,escapedRBSP:tL(l),trackId:n},c)i.pts=c.pts,i.dts=c.dts,s=c;else if(s)i.pts=s.pts,i.dts=s.dts;else{u.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}u.seiNals.push(i)}return u},tD=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,s=n.trackId,o=[];return e.forEach(function(e){var t=tA(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),(void 0===i?"undefined":T._(i))==="bigint"?(e.pts=i+tP.BigInt(e.compositionTimeOffset),i+=tP.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)}),o=o.concat(t)}),o},tR=function(e,t){var n=tw(e,["moof","traf"]),i=tw(e,["mdat"]),r={},a=[];return i.forEach(function(e,t){var i=n[t];a.push({mdat:e,traf:i})}),a.forEach(function(e){var n,i=e.mdat,a=e.traf,s=tI(tw(a,["tfhd"])[0]),o=s.trackId,u=tw(a,["tfdt"]),l=u.length>0?tC(u[0]).baseMediaDecodeTime:0,c=tw(a,["trun"]);t===o&&c.length>0&&(n=tO(i,tD(c,l,s),o),r[o]||(r[o]={seiNals:[],logs:[]}),r[o].seiNals=r[o].seiNals.concat(n.seiNals),r[o].logs=r[o].logs.concat(n.logs))}),r},tN=function(e,t,n){if(null===t)return null;var i=tR(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}},tM=function(){var e,t,n,i,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new eD,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return(!e||0!==e.length)&&(!t||(void 0===t?"undefined":T._(t))!=="object"||0!==Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,a,s){var o;if(!this.isInitialized()||!a||!s)return null;if(this.isNewInit(a,s))i=s[n=a[0]];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var u=t.shift();this.parse(u,a,s)}return((o=tN(e,n,i))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals)?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStream
1s:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},tU=function(e){for(var t=0,n=String.fromCharCode(e[0]),i="";"\0"!==n;)i+=n,n=String.fromCharCode(e[++t]);return i+n},tB=function(e,t){var n="\0"!==t.scheme_id_uri,i=0===e&&tF(t.presentation_time_delta)&&n,r=1===e&&tF(t.presentation_time)&&n;return!(e>1)&&i||r},tF=function(e){return void 0!==e||null!==e},tq=function(e){return("00"+e.toString(16)).slice(-2)},tV=function(e){var t,n,i,r,a,s,o,u=4,l=e[0];if(0===l){t=tU(e.subarray(u)),u+=t.length,n=tU(e.subarray(u)),u+=n.length;var c=new DataView(e.buffer);i=c.getUint32(u),u+=4,a=c.getUint32(u),u+=4,s=c.getUint32(u),u+=4,o=c.getUint32(u),u+=4}else if(1===l){var c=new DataView(e.buffer);i=c.getUint32(u),u+=4,r=er(e.subarray(u)),u+=8,s=c.getUint32(u),u+=4,o=c.getUint32(u),u+=4,t=tU(e.subarray(u)),u+=t.length,n=tU(e.subarray(u)),u+=n.length}var d={scheme_id_uri:t,value:n,timescale:i||1,presentation_time:r,presentation_time_delta:a,event_duration:s,id:o,message_data:new Uint8Array(e.subarray(u,e.byteLength))};return tB(l,d)?d:void 0},tH=function(e,t,n,i){return e||0===e?e/t:i+n/t};et=function(e){var t=0===e[0]?12:20;return tS(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])};var tz=function(e,t){var n=tw(t,["moof","traf"]).reduce(function(t,n){var i,r,a=tw(n,["tfhd"])[0],s=e[tS(a[4]<<24|a[5]<<16|a[6]<<8|a[7])]||9e4,o=tw(n,["tfdt"])[0],u=new DataView(o.buffer,o.byteOffset,o.byteLength);return(void 0===(i=1===o[0]?er(o.subarray(4,12)):u.getUint32(4))?"undefined":T._(i))==="bigint"?r=i/tP.BigInt(s):"number"!=typeof i||isNaN(i)||(r=i/s),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t},1/0);return(void 0===n?"undefined":T._(n))==="bigint"||isFinite(n)?n:0},tG=function(e){var t=tw(e,["moov","trak"]),n=[];return t.forEach(function(e){var t={},i=tw(e,["tkhd"])[0];i&&(t.id=0===(o=new DataView(i.buffer,i.byteOffset,i.byteLength)).getUint8(0)?o.getUint32(12):o.getUint32(20));var r=tw(e,["mdia","hdlr"])[0];if(r){var a=tE(r.subarray(8,12));"vide"===a?t.type="video":"soun"===a?t.type="audio":t.type=a}var s=tw(e,["mdia","minf","stbl","stsd"])[0];if(s){var o,u,l=s.subarray(8);t.codec=tE(l.subarray(4,8));var c=tw(l,[t.codec])[0];c&&(/^[asm]vc[1-9]$/i.test(t.codec)?"avcC"===tE((u=c.subarray(78)).subarray(4,8))&&u.length>11?(t.codec+=".",t.codec+=tq(u[9]),t.codec+=tq(u[10]),t.codec+=tq(u[11])):t.codec="avc1.4d400d":/^mp4[a,v]$/i.test(t.codec)?"esds"===tE((u=c.subarray(28)).subarray(4,8))&&u.length>20&&0!==u[19]?(t.codec+="."+tq(u[19]),t.codec+="."+tq(u[20]>>>2&63).replace(/^0/,"")):t.codec="mp4a.40.2":t.codec=t.codec.toLowerCase())}var d=tw(e,["mdia","mdhd"])[0];d&&(t.timescale=et(d)),n.push(t)}),n},tW=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return tw(e,["emsg"]).map(function(e){var n=tV(new Uint8Array(e)),i=eY(n.message_data);return{cueTime:tH(n.presentation_time,n.timescale,n.presentation_time_delta,t),duration:tH(n.event_duration,n.timescale),frames:i}})},tY=function(e){var t=31&e[1];return t<<=8,t|=e[2]},tX=function(e){return!!(64&e[1])},tK=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},t$=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},tQ={};tQ.ts={parseType:function(e,t){var n=tY(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=tX(e),n=4+tK(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t,n={},i=tX(e),r=4+tK(e);if(i&&(r+=e[r]+1),1&e[r+5]){t=3+((15&e[r+1])<<8|e[r+2])-4;for(var a=12+((15&e[r+10])<<8|e[r+11]);a<t;){var s=r+a;n[(31&e[s+1])<<8|e[s+2]]=e[s],a+=((15&e[s+3])<<8|e[s+4])+5}return n}},parsePayloadUnitStartIndicator:tX,parsePesType:function(e,t){switch(t[tY(e)]){case eM.H264_STREAM_TYPE:return"video";case eM.ADTS_STREAM_TYPE:return"audio";case eM.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!tX(e))return null;var t,n=4+tK(e);if(n>=e.byteLength)return null;var i=null;return 192&(t=e[n+7])&&((i={}).pts=(14&e[n+9])<<27|(255&e[n+10])<<20|(254&e[n+11])<<12|(255&e[n+12])<<5|(254&e[n+13])>>>3,i.pts*=4,i.pts+=(6&e[n+13])>>>1,i.dts=i.pts,64&t&&(i.dts=(14&e[n+14])<<27|(255&e[n+15])<<20|(254&e[n+16])<<12|(255&e[n+17])<<5|(254&e[n+18])>>>3,i.dts*=4,i.dts+=(6&e[n+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t,n=4+tK(e),i=e.subarray(n),r=0,a=0,s=!1;a<i.byteLength-3;a++)if(1===i[a+2]){r=a+5;break}for(;r<i.byteLength;)switch(i[r]){case 0:if(0!==i[r-1]){r+=2;break}if(0!==i[r-2]){r++;break}a+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===t$(31&i[a+3])&&(s=!0);do r++;while(1!==i[r]&&r<i.length)a=r-2,r+=3;break;case 1:if(0!==i[r-1]||0!==i[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===t$(31&i[a+3])&&(s=!0),a=r-2,r+=3;break;default:r+=3}return i=i.subarray(a),r-=a,a=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===t$(31&i[a+3])&&(s=!0),s}},tQ.aac=e9;var tJ=el,tZ=function(e,t){for(var n,i=0,r=188;r<e.byteLength;){if(71===e[i]&&71===e[r]){switch(n=e.subarray(i,r),tQ.ts.parseType(n,t.pid)){case"pat":t.pid=tQ.ts.parsePat(n);break;case"pmt":var a=tQ.ts.parsePmt(n);t.table=t.table||{}
1,Object.keys(a).forEach(function(e){t.table[e]=a[e]})}i+=188,r+=188;continue}i++,r++}},t0=function(e,t,n){for(var i,r,a,s,o,u=0,l=188,c=!1;l<=e.byteLength;){if(71===e[u]&&(71===e[l]||l===e.byteLength)){if(i=e.subarray(u,l),"pes"===tQ.ts.parseType(i,t.pid)&&(a=tQ.ts.parsePesType(i,t.table),s=tQ.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&s&&(o=tQ.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),c=!0)),c)break;u+=188,l+=188;continue}u++,l++}for(u=(l=e.byteLength)-188,c=!1;u>=0;){if(71===e[u]&&(71===e[l]||l===e.byteLength)){if(i=e.subarray(u,l),"pes"===tQ.ts.parseType(i,t.pid)&&(a=tQ.ts.parsePesType(i,t.table),s=tQ.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&s&&(o=tQ.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),c=!0)),c)break;u-=188,l-=188;continue}u--,l--}},t1=function(e,t,n){for(var i,r,a,s,o,u,l,c,d=0,h=188,f=!1,p={data:[],size:0};h<e.byteLength;){if(71===e[d]&&71===e[h]){if(i=e.subarray(d,h),"pes"===tQ.ts.parseType(i,t.pid)&&(a=tQ.ts.parsePesType(i,t.table),s=tQ.ts.parsePayloadUnitStartIndicator(i),"video"===a)&&(s&&!f&&(o=tQ.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),f=!0),!n.firstKeyFrame)){if(s&&0!==p.size){for(u=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),u.set(c,l),l+=c.byteLength;if(tQ.ts.videoPacketContainsKeyFrame(u)){var m=tQ.ts.parsePesTime(u);m?(n.firstKeyFrame=m,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(f&&n.firstKeyFrame)break;d+=188,h+=188;continue}d++,h++}for(d=(h=e.byteLength)-188,f=!1;d>=0;){if(71===e[d]&&71===e[h]){if(i=e.subarray(d,h),"pes"===tQ.ts.parseType(i,t.pid)&&(a=tQ.ts.parsePesType(i,t.table),s=tQ.ts.parsePayloadUnitStartIndicator(i),"video"===a&&s&&(o=tQ.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),f=!0)),f)break;d-=188,h-=188;continue}d--,h--}},t2=function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=eB(e.dts,n),e.pts=eB(e.pts,n),e.dtsTime=e.dts/tJ,e.ptsTime=e.pts/tJ})}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach(function(e){e.dts=eB(e.dts,i),e.pts=eB(e.pts,i),e.dtsTime=e.dts/tJ,e.ptsTime=e.pts/tJ}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=eB(r.dts,i),r.pts=eB(r.pts,i),r.dtsTime=r.dts/tJ,r.ptsTime=r.pts/tJ}}},t4=function(e){for(var t,n=!1,i=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(tQ.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10||(s=tQ.aac.parseId3TagSize(e,o))>e.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=tQ.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7||(s=tQ.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=tQ.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(n)return null}if(null===r||null===a)return null;var u=tJ/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*u,pts:a+1024*i*u}]}},t8=function(e){var t={pid:null,table:null},n={};for(var i in tZ(e,t),t.table)if(t.table.hasOwnProperty(i))switch(t.table[i]){case eM.H264_STREAM_TYPE:n.video=[],t1(e,t,n),0===n.video.length&&delete n.video;break;
1case eM.ADTS_STREAM_TYPE:n.audio=[],t0(e,t,n),0===n.audio.length&&delete n.audio}return n},t3=function(e,t){var n;return(n=tQ.aac.isLikelyAacData(e)?t4(e):t8(e))&&(n.audio||n.video)?(t2(n,t),n):null},t5=function(e,t){t.on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var n={start:{decode:ed(t.start.dts),presentation:ed(t.start.pts)},end:{decode:ed(t.end.dts),presentation:ed(t.end.pts)},baseMediaDecodeTime:ed(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ed(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){var n={start:{decode:ed(t.start.dts),presentation:ed(t.start.pts)},end:{decode:ed(t.end.dts),presentation:ed(t.end.pts)},baseMediaDecodeTime:ed(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ed(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ed(t.start),end:ed(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ed(t.start),end:ed(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},t6=function(){function e(t,n){o._(this,e),this.options=n||{},this.self=t,this.init()}return l._(e,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new tk(this.options),t5(this.self,this.transmuxer)}},{key:"pushMp4Captions",value:function(e){this.captionParser||(this.captionParser=new tM,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])}},{key:"probeMp4StartTime",value:function(e){var t=e.timescales,n=e.data,i=tz(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])}},{key:"probeMp4Tracks",value:function(e){var t=e.data,n=tG(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])}},{key:"probeEmsgID3",value:function(e){var t=e.data,n=tW(t,e.offset);this.self.postMessage({action:"probeEmsgID3",id3Frames:n,emsgData:t},[t.buffer])}},{key:"probeTs",value:function(e){var t=e.data,n=e.baseStartTime,i=t3(t,"number"!=typeof n||isNaN(n)?void 0:n*el),r=null;i&&((r={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1}).hasVideo&&(r.videoStart=i.video[0].ptsTime),r.hasAudio&&(r.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:t},[t.buffer])}},{key:"clearAllMp4Captions",value:function(){this.captionParser&&this.captionParser.clearAllCaptions()}},{key:"clearParsedMp4Captions",value:function(){this.captionParser&&this.captionParser.clearParsedCaptions()}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.transmuxer.reset()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ec(t)))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ec(e.appendStart)))}},{key:"setRemux",value:function(e){this.transmuxer.setRemux(e.remux)}},{key:"flush",value:function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}},{key:"endTimeline",value:function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}();self.onmessage=function(e){if("init"===e.data.action&&e.data.options){this.messageHandlers=new t6(self,e.data.options);return}this.messageHandlers||(this.messageHandlers=new t6(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}}))),sL=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,s=i.captions,o=i.captionStream
1s,u=i.metadata,l=i.videoFrameDtsTime,c=i.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:u});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==l&&(h.videoFrameDtsTime=l),void 0!==c&&(h.videoFramePtsTime=c),n(h)},sj=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},sO=function(e,t){t.gopInfo=e.data.gopInfo},sD=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,u=e.onAudioTimingInfo,l=e.onVideoTimingInfo,c=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,f=e.onCaptions,m=e.onDone,g=e.onEndedTimeline,v=e.onTransmuxerLog,y=e.isEndOfTimeline,_={buffer:[]},b=y;if(t.onmessage=function(n){t.currentTransmux!==e||("data"===n.data.action&&sL(n,_,s),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&sO(n,_),"audioTimingInfo"===n.data.action&&u(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&l(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&f(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,g()),"log"===n.data.action&&v(n.data.log),"transmuxed"!==n.data.type||b||(t.onmessage=null,sj({transmuxedData:_,callback:m}),sR(t)))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var T=p._(n,ArrayBuffer)?n:n.buffer,k=p._(n,ArrayBuffer)?0:n.byteOffset;t.postMessage({action:"push",data:T,byteOffset:k,byteLength:n.byteLength},[T])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},sR=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():sD(e.currentTransmux))},sN=function(e,t){e.postMessage({action:t}),sR(e)},sM=function(e,t){if(!t.currentTransmux){t.currentTransmux=e,sN(t,e);return}t.transmuxQueue.push(sN.bind(null,t,e))},sU=function(e){if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,sD(e);return}e.transmuxer.transmuxQueue.push(e)},sB=function(e){sM("reset",e)},sF=function(e){var t=new sP;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},sq=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=(0,e6.default)({},e,{endAction:null,transmuxer:null,callback:null}),a=function(r){r.data.action===n&&(t.removeEventListener("message",a),r.data.data&&(r.data.data=new Uint8Array(r.data.data,e.byteOffset||0,e.byteLength||r.data.data.byteLength),e.data&&(e.data=r.data.data)),i(r.data))};if(t.addEventListener("message",a),e.data){var s=p._(e.data,ArrayBuffer);r.byteOffset=s?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var o=[s?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},sV=function(e){e.forEach(function(e){e.abort()})},sH=function(e){var t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8e3),n},sz=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:-101,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:-102,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t}:null},sG=function(e,t,n){return function(i,r){var a=r.response,s=sz(i,r);if(s)return n(s,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},e);for(var o=new DataView(a),u=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),l=0;l<t.length;l++)t[l].bytes=u;return n(null,e)}},sW=function(e,t){var n=(0,to.detectContainerForBytes)(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported ".concat(n||"unknown"," container for initialization segment at URL: ").concat(i),code:2})}sq({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;
1return e.map.bytes=r,i.forEach(function(t){e.map.tracks=e.map.tracks||{},!e.map.tracks[t.type]&&(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null)}})},sY=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=sz(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,sW(t,function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)})}},sX=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=sz(e,r);if(a)return n(a,t);var s="arraybuffer"!==i&&r.responseText?sE(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats={bandwidth:r.bandwidth,bytesReceived:r.bytesReceived||0,roundTripTime:r.roundTripTime||0},t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),n(null,t)}},sK=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=t.map&&t.map.tracks||{},m=!!(p.audio&&p.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),_=r.bind(null,t,"video","end");sq({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),i=null),sU({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(m&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),v&&void 0!==e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),_&&void 0!==e.end&&_(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){o(t,e,n)},onCaptions:function(e){u(t,[e])},isEndOfTimeline:l,onEndedTimeline:function(){c()},onTransmuxerLog:f,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})},s$=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=new Uint8Array(n);if((0,to.isLikelyFmp4MediaSegment)(p)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e,n){d(t,{data:p,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),n&&n.length&&o(t,n),e&&e.length&&u(t,e),h(null,t,{})};sq({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=p=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),sq({action:"probeEmsgID3",data:p,transmuxer:t.transmuxer,offset:a,callback:function(e){var i=e.emsgData,r=e.id3Frames;(n=i.buffer,t.bytes=p=i,m.video&&i.byteLength&&t.transmuxer)?sq({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEach(function(e){f(eW(e,{stream:"mp4CaptionParser"}))}),v(e.captions,r)}}):v(void 0,r)}})}});return}if(!t.transmuxer)return void h(null,t,{});if(void 0===t.container&&(t.container=(0,to.detectContainerForBytes)(p)),"ts"!==t.container&&"aac"!==t.container){i(t,{hasAudio:!1,hasVideo:!1}),h(null,t,{});return}sK({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:f})},sQ=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,s=e.decryptionWorker,o=function(e){if(e.data.source===i){s.removeEventListener("message",o);var n=e.data.decrypted;t(new Uint8Array(n.bytes,n.byteOffset,n.byteLength))}};s.addEventListener("message",o),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),s.postMessage(se({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},sJ=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog;sQ({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t}
1,function(e){n.bytes=e,s$({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:f})})},sZ=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,sV(t),h(e,g);if((p+=1)===t.length){var v=function(){if(g.encryptedBytes)return sJ({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:f});s$({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:f})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return sQ({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(e){g.map.bytes=e,sW(g,function(e){if(e)return sV(t),h(e,g);v()})});v()}}}},s0=function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}},s1=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){if(!e.target.aborted)return t.stats=eW(t.stats,sH(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},s2=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,u=e.timingInfoFn,l=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,f=e.isEndOfTimeline,p=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],_=sZ({activeXhrs:y,decryptionWorker:i,trackInfoFn:o,timingInfoFn:u,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var b=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&b.push(r.map.key);var T=t(eW(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),sG(r,b,_));y.push(T)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var k=t(eW(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),sG(r,[r.map.key],_));y.push(k)}var S=t(eW(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:a6(r.map)}),sY({segment:r,finishProcessingFn:_}));y.push(S)}var E=eW(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:a6(r)}),w=sX({segment:r,finishProcessingFn:_,responseType:E.responseType}),C=t(E,w);C.addEventListener("progress",s1({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:u,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m})),y.push(C);var x={};return y.forEach(function(e){e.addEventListener("loadend",s0({loadendState:x,abortFn:a}))}),function(){return sV(y)}},s4=ae("CodecUtils"),s8=function(e){var t=e.attributes||{};if(t.CODECS)return(0,te.parseCodecs)(t.CODECS)},s3=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},s5=function(e,t){if(!s3(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},s6=function(e){var t={};return e.forEach(function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push((0,te.translateLegacyCodec)("".concat(i).concat(r)))}),Object.keys(t).forEach(function(e){if(t[e].length>1){s4("multiple ".concat(e," codecs found as attributes: ").concat(t[e].join(", "),". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.")),t[e]=null;return}t[e]=t[e][0]}),t},s7=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},s9=function(e,t){var n=t.attributes||{},i=s6(s8(t)||[]);if(s3(e,t)&&!i.audio&&!s5(e,t)){var r=s6((0,te.codecsFromDefault)(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},oe=ae("PlaylistSelector"),ot=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},on=function(e,t){if(!e)return"";var n=e$().getComputedStyle(e);return n?n[t]:""},oi=function(e,t){var n=e.slice();e.sort(function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r})},or=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||e$().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),n-(i=i||e$().Number.MAX_VALUE)},oa=function(e,t,n,i,r,a){if(e){var s,o,u,l,c={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},d=e.playlists;aO.isAudioOnly(e)&&(d=a.getAudioTrackPlaylists_(),c.audioOnly=!0);var h=d.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||e$().Number.MAX_VALUE,width:t,height:n,playlist:e}});oi(h,function(e,t){return e.bandwidth-t.bandwidth});var f=(h=h.filter(function(e){return!aO.isIncompatible(e.playlist)})).filter(function(e){return aO.isEnabled(e.playlist)});f.length||(f=h.filter(function(e){return!aO.isDisabled(e.playlist)}));var p=f.filter(function(e){return e.bandwidth*sS.BANDWIDTH_VARIANCE<t}),m=p[p.length-1],g=p.filter(function(e){return e.bandwidth===m.bandwidth})[0];if(!1===r){var v=g||f[0]||h[0];if(v&&v.playlist){var y="sortedPlaylistReps";return g&&(y="bandwidthBestRep"),f[0]&&(y="enabledPlaylistReps"),oe("choosing ".concat(ot(v)," using ").concat(y," with options"),c),v.playlist}return oe("could not choose a playlist with options",c),null}var _=p.filter(function(e){return e.width&&e.height});oi(_,function(e,t){return e.width-t.width});var b=_.filter(function(e){return e.width===n&&e.height===i});m=b[b.length-1];var T=b.filter(function(e){return e.bandwidth===m.bandwidth})[0];if(T||(m=(o=(s=_.filter(function(e){return e.width>n||e.height>i})).filter(function(e){return e.width===s[0].width&&e.height===s[0].height}))[o.length-1],u=o.filter(function(e){return e.bandwidth===m.bandwidth})[0]),a.leastPixelDiffSelector){var k=_.map(function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e});oi(k,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),l=k[0]}var S=l||u||T||g||f[0]||h[0];if(S&&S.playlist){var E="sortedPlaylistReps";return l?E="leastPixelDiffRep":u?E="resolutionPlusOneRep":T?E="resolutionBestRep":g?E="bandwidthBestRep":f[0]&&(E="enabledPlaylistReps"),oe("choosing ".concat(ot(S)," using ").concat(E," with options"),c),S.playlist}return oe("could not choose a playlist with options",c),null}},os=function(){var e=this.useDevicePixelRatio&&e$().devicePixelRatio||1;return oa(this.playlists.main,this.systemBandwidth,parseInt(on(this.tech_.el(),"width"),10)*e,parseInt(on(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},oo=function(e){var t=e.main,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,u=e.syncController,l=t.playlists.filter(function(e){return!aO.isIncompatible(e)}
1),c=l.filter(aO.isEnabled);c.length||(c=l.filter(function(e){return!aO.isDisabled(e)}));var d=c.filter(aO.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=u.getSyncPoint(e,r,o,n),l=aO.estimateSegmentRequestTime(a,i,e);return{playlist:e,rebufferingImpact:l*(t?1:2)-s}}),h=d.filter(function(e){return e.rebufferingImpact<=0});return(oi(h,function(e,t){return or(t.playlist,e.playlist)}),h.length)?h[0]:(oi(d,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),d[0]||null)},ou=function(e){var t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,n),n+=e.byteLength})),t},ol=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},s=n,o=n,u=!1,l=a[i];l&&(s=l.label,o=l.language,u=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:u,label:s,language:o},!1).track}}},oc=function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=e$().WebKitDataCue||e$().VTTCue;n.forEach(function(e){var n=e.stream;e.content?e.content.forEach(function(a){var s=new r(e.startTime+i,e.endTime+i,a.text);s.line=a.line,s.align="left",s.position=a.position,s.positionAlign="line-left",t[n].addCue(s)}):t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))})}},od=function(e){Object.defineProperties(e.frame,{id:{get:function(){return rZ.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return rZ.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return rZ.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},oh=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var a=e$().WebKitDataCue||e$().VTTCue,s=t.metadataTrack_;if(s&&(n.forEach(function(e){var t=e.cueTime+i;"number"!=typeof t||e$().isNaN(t)||t<0||!(t<1/0)||e.frames&&e.frames.length&&e.frames.forEach(function(e){var n=new a(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,od(n),s.addCue(n)})}),s.cues&&s.cues.length)){for(var o=s.cues,u=[],l=0;l<o.length;l++)o[l]&&u.push(o[l]);var c=u.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),d=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var n=c[e],i=isFinite(r)?r:e,a=Number(d[t+1])||i;n.forEach(function(e){e.endTime=a})})}}},of={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},op=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),om=function(e){var t=e.inbandTextTracks,n=e.dateRanges,i=t.metadataTrack_;if(i){var r=e$().WebKitDataCue||e$().VTTCue;n.forEach(function(e){var t=!0,n=!1,a=void 0;try{for(var s,o=Object.keys(e)[Symbol.iterator]();!(t=(s=o.next()).done);t=!0){var u=s.value;if(!op.has(u)){var l=new r(e.startTime,e.endTime,"");l.id=e.id,l.type="com.apple.quicktime.HLS",l.value={key:of[u],data:e[u]},("scte35Out"===u||"scte35In"===u)&&(l.value.data=new Uint8Array(l.value.data.match(/[\da-f]{2}/gi)).buffer),i.addCue(l)}}}catch(e){n=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw a}}e.processDateRange()})}},og=function(e,t,n){!e.metadataTrack_&&(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,rZ.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},ov=function(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)},oy=function(e){var t=e.cues;if(t)for(var n={},i=t.length-1;i>=0;i--){var r=t[i],a="".concat(r.startTime,"-").concat(r.endTime,"-").concat(r.text);n[a]?e.removeCue(r):n[a]=r}},o_=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*tu.ONE_SECOND_IN_TS);for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)},ob=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)},oT=function(e,t,n,i){for(var r=Math.ceil((t-i)*tu.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*tu.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var u=o+1;u--&&!(e[u].pts<=r););return u=Math.max(u,0),s.splice(u,o-u+1),s},ok=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r]||e[a]!==t[a])return!1}return!0},oS=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(i.push(a),(r+=s.duration)>n))return a}return 0===i.length?0:i[i.length-1]},oE=function(e){return"number"==typeof e&&isFinite(e)},ow=1/60,oC=function(e,t,n){var i=t-sS.BACK_BUFFER_LENGTH;return e.length&&(i=Math.max(i,e.start(0))),Math.min(t-n,i)},ox=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,u=a.segments,l=e.mediaIndex,c=e.partIndex,d=e.timeline,h=(void 0===u?[]:u).length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime (".concat(e.getMediaInfoForTime,")"):e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent ".concat(e.independent));var p="number"==typeof c,m=e.segment.uri?"segment":"pre-segment",g=p?av({preloadSegment:i})-1:0;return"".concat(m," [").concat(s+l,"/").concat(s+h,"]")+(p?" part [".concat(c,"/").concat(g,"]"):"")+" segment start/end [".concat(i.start," => ").concat(i.end,"]")+(p?" part start/end [".concat(r.start," => ").concat(r.end,"]"):"")+" startOfSegment [".concat(t,"]")+" duration [".concat(n,"]")+" timeline [".concat(d,"]")+" selected by [".concat(f,"]")+" playlist [".concat(o,"]")},oA=function(e){return"".concat(e,"TimingInfo")},oI=function(e){var t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered;
1return e.overrideCheck||t!==n?t<n?i:r.length?r.end(r.length-1):i:null},oP=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==i}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==i}return!1},oL=function(e){var t=0;return["video","audio"].forEach(function(n){var i,r=e["".concat(n,"TimingInfo")];if(r){var a=r.start,s=r.end;(void 0===a?"undefined":T._(a))==="bigint"||(void 0===s?"undefined":T._(s))==="bigint"?i=e$().BigInt(s)-e$().BigInt(a):"number"==typeof a&&"number"==typeof s&&(i=s-a),void 0!==i&&i>t&&(t=i)}}),(void 0===t?"undefined":T._(t))==="bigint"&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},oj=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+at},oO=function(e,t){if("hls"!==t)return null;var n=oL({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;var i=e.playlist.targetDuration,r=oj({segmentDuration:n,maxDuration:2*i}),a=oj({segmentDuration:n,maxDuration:i}),s="Segment with index ".concat(e.mediaIndex," ")+"from playlist ".concat(e.playlist.id," ")+"has a duration of ".concat(n," ")+"when the reported duration is ".concat(e.duration," ")+"and the target duration is ".concat(i,". ")+"For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||a?{severity:r?"warn":"info",message:s}:null},oD=function(e){function t(e){var n;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1],o._(this,t),n=s._(this,t),!e)throw TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw TypeError("No currentTime getter specified");if(!e.mediaSource)throw TypeError("No MediaSource specified");return n.bandwidth=e.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.partIndex=null,n.hasPlayed_=e.hasPlayed,n.currentTime_=e.currentTime,n.seekable_=e.seekable,n.seeking_=e.seeking,n.duration_=e.duration,n.mediaSource_=e.mediaSource,n.vhs_=e.vhs,n.loaderType_=e.loaderType,n.currentMediaInfo_=void 0,n.startingMediaInfo_=void 0,n.segmentMetadataTrack_=e.segmentMetadataTrack,n.goalBufferLength_=e.goalBufferLength,n.sourceType_=e.sourceType,n.sourceUpdater_=e.sourceUpdater,n.inbandTextTracks_=e.inbandTextTracks,n.state_="INIT",n.timelineChangeController_=e.timelineChangeController,n.shouldSaveSegmentTimingInfo_=!0,n.parse708captions_=e.parse708captions,n.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,n.captionServices_=e.captionServices,n.exactManifestTimings=e.exactManifestTimings,n.addMetadataToTextTrack=e.addMetadataToTextTrack,n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.shouldForceTimestampOffsetAfterResync_=!1,n.pendingSegment_=null,n.xhrOptions_=null,n.pendingSegments_=[],n.audioDisabled_=!1,n.isPendingTimestampOffset_=!1,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=!1,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=e.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=e.decrypter,n.syncController_=e.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",function(){n.isEndOfStream_()||(n.ended_=!1)}),n.fetchAtBuffer_=!1,n.logger_=ae("SegmentLoader[".concat(n.loaderType_,"]")),Object.defineProperty(n,"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_("".concat(this.state_," -> ").concat(e)),this.state_=e,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}
1),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),n}return f._(t,e),l._(t,[{key:"createTransmuxer_",value:function(){return sF({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}},{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}},{key:"dispose",value:function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&e$().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}},{key:"setAudio",value:function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}},{key:"abort",value:function(){if("WAITING"!==this.state){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,e$().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}},{key:"checkForAbort_",value:function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}},{key:"error",value:function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.transmuxer_&&sB(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return eY();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}},{key:"initSegmentForMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=st(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e}},{key:"segmentKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=sn(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();this.couldBeginLoading_()&&("READY"===this.state||"INIT"===this.state)&&(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update [".concat(r," => ").concat(e.id||e.uri,"]")),this.syncController_.updateMediaSequenceMap(e,this.currentTime_(),this.loaderType_),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri){null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift [".concat(a,"]")),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index ".concat(this.partIndex,") no longer exists.")),this.resetLoader(),this.mediaIndex=o}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(e$().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"resetEverything",value:function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.transmuxer_&&sB(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.shouldForceTimestampOffsetAfterResync_=!0,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");var r=1,a=function(){0==--r&&n()};for(var s in(i||!this.audioDisabled_)&&(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=oT(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)ov(e,t,this.inbandTextTracks_[s]);ov(e,t,this.segmentMetadataTrack_),a()}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&e$().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=e$().setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&e$().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=e$().setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}}},{key:"isEndOfStream_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaIndex,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.partIndex;if(!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a}},{key:"chooseNextRequest_",value:function(){var e=this.buffered_(),t=
1ah(e)||0,n=af(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(s.isSyncRequest)s.mediaIndex=oS(this.currentTimeline_,a,t),this.logger_("choose next request. Can not find sync point. Fallback to media Index: ".concat(s.mediaIndex));else if(null!==this.mediaIndex){var o=a[this.mediaIndex],u="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[u+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=u+1):s.mediaIndex=this.mediaIndex+1}else{var l=aO.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=l.segmentIndex,d=l.startTime,h=l.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd ".concat(t):"currentTime ".concat(this.currentTime_()),s.mediaIndex=c,s.startOfSegment=d,s.partIndex=h,this.logger_("choose next request. Playlist switched and we have a sync point. Media Index: ".concat(s.mediaIndex," "))}var f=a[s.mediaIndex],p=f&&"number"==typeof s.partIndex&&f.parts&&f.parts[s.partIndex];if(!f||"number"==typeof s.partIndex&&!p)return null;"number"!=typeof s.partIndex&&f.parts&&(s.partIndex=0,p=f.parts[0]);var m=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!n&&p&&!m&&!p.independent)if(0===s.partIndex){var g=a[s.mediaIndex-1],v=g.parts&&g.parts.length&&g.parts[g.parts.length-1];v&&v.independent&&(s.mediaIndex-=1,s.partIndex=g.parts.length-1,s.independent="previous segment")}else f.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");var y=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&y&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,s.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(s))}},{key:"generateSegmentInfo_",value:function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,u=e.getMediaInfoForTime,l=n.segments[i],c="number"==typeof s&&l.parts[s],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||l.resolvedUri,mediaIndex:i,partIndex:c?s:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:l.timeline,duration:c&&c.duration||l.duration,segment:l,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:t},h=void 0!==o?o:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:l.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var f=ah(this.sourceUpdater_.audioBuffered());return"number"==typeof f&&(d.audioAppendStart=f-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=o_(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}},{key:"timestampOffsetForSegment_",value:function(e){return oI(e)}},{key:"earlyAbortWhenNeeded_",value:function(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=aO.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=al(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=oo({main:this.vhs_.playlists.main,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a-s.rebufferingImpact,u=.5;a<=at&&(u=1),s.playlist&&s.playlist.uri!==this.playlist_.uri&&!(o<u)&&(this.bandwidth=s.playlist.attributes.BANDWIDTH*sS.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},{key:"handleAbort_",value:function(e){this.logger_("Aborting ".concat(ox(e))),this.mediaRequestsAborted+=1}},{key:"handleProgress_",value:function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}},{key:"handleTrackInfo_",value:function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},ok(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))}},{key:"handleTimingInfo_",value:function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=oA(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: ".concat(t," - ").concat(n," - ").concat(i)),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}}},{key:"handleCaptions_",value:function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");
1if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],a=t.startTime,s=t.endTime,o=t.captions,u=n.inbandTextTracks_;n.logger_("adding cues from ".concat(a," -> ").concat(s," for ").concat(e)),ol(u,n.vhs_.tech_,e),ov(a,s,u[e]),oc({captionArray:o,inbandTextTracks:u,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}}},{key:"handleId3_",value:function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n));this.addMetadataToTextTrack(n,t,this.duration_())}}},{key:"processMetadataQueue_",value:function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}},{key:"processCallQueue_",value:function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})}},{key:"processLoadQueue_",value:function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})}},{key:"hasEnoughInfoToLoad_",value:function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!oP({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}},{key:"getCurrentMediaInfo_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pendingSegment_;return e&&e.trackInfo||this.currentMediaInfo_}},{key:"getMediaInfo_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pendingSegment_;return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}},{key:"getPendingSegmentPlaylist",value:function(){return this.pendingSegment_?this.pendingSegment_.playlist:null}},{key:"hasEnoughInfoToAppend_",value:function(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo||n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||oP({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}},{key:"handleData_",value:function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[oA(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==n.mediaIndex||s.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}}},{key:"updateAppendInitSegmentStatus",value:function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}},{key:"getInitSegmentAndUpdateState_",value:function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=st(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null}},{key:"handleQuotaExceededError_",value:function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audio
1Buffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ac(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ac(o).join(", "));var u=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,c=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(l-u<=1&&d-c<=1){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. "+"Appended byte length: ".concat(a.byteLength,", ")+"audio buffer: ".concat(ac(s).join(", "),", ")+"video buffer: ".concat(ac(o).join(", "),", ")),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:a}));var h=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ".concat(h)),this.remove(0,h,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in ".concat(1,"s")),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=e$().setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3)},!0)}},{key:"handleAppendError_",value:function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;if(t){if(22===t.code)return void this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error("".concat(i," append of ").concat(r.length,"b failed for segment ")+"#".concat(n.mediaIndex," in playlist ").concat(n.playlist.id)),this.trigger("appenderror")}}},{key:"appendToSourceBuffer_",value:function(e){var t=e.segmentInfo,n=e.type,i=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;i&&(s.unshift(i),o+=i.byteLength),a=ou({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))}},{key:"handleSegmentTimingInfo_",value:function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r="".concat(e,"TimingInfo");i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}}},{key:"appendData_",value:function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}}},{key:"loadSegment_",value:function(e){var t=this;(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_())?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(function(){var n=(0,e6.default)({},e,{forceTimestampOffset:!0});(0,e6.default)(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)})}},{key:"updateTransmuxerAndRequestSegment_",value:function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_("Requesting ".concat(ox(e))),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=s2({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.b
1ind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:i||r&&a,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_("".concat(ox(e)," logged from transmuxer stream ").concat(a," as a ").concat(r,": ").concat(i))}})}},{key:"trimBackBuffer_",value:function(e){var t=oC(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i}},{key:"saveTransferStats_",value:function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}},{key:"saveBandwidthRelatedStats_",value:function(e,t){(this.pendingSegment_.byteLength=t.bytesReceived,e<ow)?this.logger_("Ignoring segment's bandwidth because its duration of ".concat(e)+" is less than the min to record ".concat(ow)):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)}},{key:"handleTimeout_",value:function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}},{key:"segmentRequestFinished_",value:function(e,t,n){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));if((this.saveTransferStats_(t.stats),this.pendingSegment_)&&t.requestId===this.pendingSegment_.requestId){if(e)return(this.pendingSegment_=null,this.state="READY",-102===e.code)?void 0:(this.pause(),-101===e.code)?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"));var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=ob(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}}},{key:"setTimeMapping_",value:function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}},{key:"updateMediaSecondsLoaded_",value:function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}},{key:"shouldUpdateTransmuxerTimestampOffset_",value:function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}},{key:"trueSegmentStart_",value:function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,u=e.audioTimingInfo;if(void 0!==t)return t;if(!s)return u.start;var l=n.segments[i-1];return 0!==i&&l&&void 0!==l.start&&l.end===r+a?o.start:r}},{key:"waitForAppendsToComplete_",value:function(e){var t=this.getCurrentMediaInfo_(e);if(!t){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,s=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_){e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}},{key:"checkAppendsDone_",value:function(e){this.checkForAbort_(e.requestId)||
1(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}},{key:"checkForIllegalMediaSwitch",value:function(e){var t,n,i=(t=this.loaderType_,n=this.getCurrentMediaInfo_(),"main"===t&&n&&e?e.hasAudio||e.hasVideo?n.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!n.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null);return!!i&&(this.error({message:i,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}},{key:"updateSourceBufferTimestampOffset_",value:function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}}},{key:"getSegmentStartTimeForTimestampOffsetCalculation_",value:function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start}},{key:"updateTimingInfoEnd_",value:function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}},{key:"handleAppendsDone_",value:function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=oO(e,this.sourceType_);if(t&&("warn"===t.severity?rZ.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_("Throwing away un-appended sync request ".concat(ox(e)));this.logger_("Appended ".concat(ox(e))),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a){this.logger_("bad ".concat(r?"segment":"part"," ").concat(ox(e))),this.resetEverything();return}null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}},{key:"recordThroughput_",value:function(e){if(e.duration<ow)return void this.logger_("Ignoring segment's throughput because its duration of ".concat(e.duration)+" is less than the min to record ".concat(ow));var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8e3);this.throughput.rate+=(i-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(oE(n)&&oE(i)){ov(n,i,this.segmentMetadataTrack_);var r=e$().WebKitDataCue||e$().VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.ur
1i,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},s=new r(n,i,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),t}(rZ.EventTarget),oR=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},oN=["video","audio"],oM=function(e,t){var n=t["".concat(e,"Buffer")];return n&&n.updating||t.queuePending[e]},oU=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)break;if(i.type===e)return n}return null},oB=function(e,t){if(0!==t.queue.length){var n=0,i=t.queue[n];if("mediaSource"===i.type){t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),i.action(t),i.doneFn&&i.doneFn(),oB("audio",t),oB("video",t));return}if("mediaSource"!==e&&!(!t.ready()||"closed"===t.mediaSource.readyState||oM(e,t))){if(i.type!==e){if(null===(n=oU(e,t.queue)))return;i=t.queue[n]}if(t.queue.splice(n,1),t.queuePending[e]=i,i.action(e,t),!i.doneFn){t.queuePending[e]=null,oB(e,t);return}}}},oF=function(e,t){var n=t["".concat(e,"Buffer")],i=oR(e);n&&(n.removeEventListener("updateend",t["on".concat(i,"UpdateEnd_")]),n.removeEventListener("error",t["on".concat(i,"Error_")]),t.codecs[e]=null,t["".concat(e,"Buffer")]=null)},oq=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},oV=function(e,t){return function(n,i){var r=i["".concat(n,"Buffer")];if(oq(i.mediaSource,r)){i.logger_("Removing ".concat(e," to ").concat(t," from ").concat(n,"Buffer"));try{r.remove(e,t)}catch(r){i.logger_("Remove ".concat(e," to ").concat(t," from ").concat(n,"Buffer failed"))}}}},oH=function(e){return function(t,n){var i=n["".concat(t,"Buffer")];oq(n.mediaSource,i)&&(n.logger_("Setting ".concat(t,"timestampOffset to ").concat(e)),i.timestampOffset=e)}},oz=function(e){return function(t,n){e()}},oG=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),oB(t,n)},oW=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t["".concat(e,"Error_")])}oB(e,t)}},oY=function(e){function t(e){var n;return o._(this,t),(n=s._(this,t)).mediaSource=e,n.sourceopenListener_=function(){return oB("mediaSource",n)},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=ae("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=oW("video",n),n.onAudioUpdateEnd_=oW("audio",n),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}return f._(t,e),l._(t,[{key:"initializedEme",value:function(){this.initializedEme_=!0,this.triggerReady()}},{key:"hasCreatedSourceBuffers",value:function(){return this.createdSourceBuffers_}},{key:"hasInitializedAnyEme",value:function(){return this.initializedEme_}},{key:"ready",value:function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}},{key:"createSourceBuffers",value:function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}}
1,{key:"triggerReady",value:function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}},{key:"addSourceBuffer",value:function(e,t){var n,i;oG({type:"mediaSource",sourceUpdater:this,action:(n=e,i=t,function(e){var t=oR(n),r=(0,te.getMimeForCodec)(i);e.logger_("Adding ".concat(n,"Buffer with codec ").concat(i," to mediaSource"));var a=e.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",e["on".concat(t,"UpdateEnd_")]),a.addEventListener("error",e["on".concat(t,"Error_")]),e.codecs[n]=i,e["".concat(n,"Buffer")]=a}),name:"addSourceBuffer"})}},{key:"abort",value:function(e){oG({type:e,sourceUpdater:this,action:function(e,t){if("open"===t.mediaSource.readyState){var n=t["".concat(e,"Buffer")];if(oq(t.mediaSource,n)){t.logger_("calling abort on ".concat(e,"Buffer"));try{n.abort()}catch(t){rZ.log.warn("Failed to abort on ".concat(e,"Buffer"),t)}}}},name:"abort"})}},{key:"removeSourceBuffer",value:function(e){var t;this.canRemoveSourceBuffer()?oG({type:"mediaSource",sourceUpdater:this,action:(t=e,function(e){var n=e["".concat(t,"Buffer")];if(oF(t,e),oq(e.mediaSource,n)){e.logger_("Removing ".concat(t,"Buffer with codec ").concat(e.codecs[t]," from mediaSource"));try{e.mediaSource.removeSourceBuffer(n)}catch(e){rZ.log.warn("Failed to removeSourceBuffer ".concat(t,"Buffer"),e)}}}),name:"removeSourceBuffer"}):rZ.log.error("removeSourceBuffer is not supported!")}},{key:"canRemoveSourceBuffer",value:function(){return!rZ.browser.IS_FIREFOX&&e$().MediaSource&&e$().MediaSource.prototype&&"function"==typeof e$().MediaSource.prototype.removeSourceBuffer}},{key:"canChangeType",value:function(){return this.constructor.canChangeType()}},{key:"changeType",value:function(e,t){var n;this.canChangeType()?oG({type:e,sourceUpdater:this,action:(n=t,function(e,t){var i=t["".concat(e,"Buffer")],r=(0,te.getMimeForCodec)(n);if(oq(t.mediaSource,i)&&t.codecs[e]!==n){t.logger_("changing ".concat(e,"Buffer codec from ").concat(t.codecs[e]," to ").concat(n));try{i.changeType(r),t.codecs[e]=n}catch(t){rZ.log.warn("Failed to changeType on ".concat(e,"Buffer"),t)}}}),name:"changeType"}):rZ.log.error("changeType is not supported!")}},{key:"addOrChangeSourceBuffers",value:function(e){var t=this;if(!e||(void 0===e?"undefined":T._(e))!=="object"||0===Object.keys(e).length)throw Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)})}},{key:"appendBuffer",value:function(e,t){var n,i,r,a=this,s=e.segmentInfo,o=e.type,u=e.bytes;if(this.processedAppend_=!0,"audio"===o&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,t]),this.logger_("delayed audio append of ".concat(u.length," until video append"));return}if(oG({type:o,sourceUpdater:this,action:(n=u,i=s||{mediaIndex:-1},r=t,function(e,t){var a=t["".concat(e,"Buffer")];if(oq(t.mediaSource,a)){t.logger_("Appending segment ".concat(i.mediaIndex,"'s ").concat(n.length," bytes to ").concat(e,"Buffer"));try{a.appendBuffer(n)}catch(n){t.logger_("Error with code ".concat(n.code," ")+(22===n.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment ".concat(i.mediaIndex," to ").concat(e,"Buffer")),t.queuePending[e]=null,r(n)}}}),doneFn:t,name:"appendBuffer"}),"video"===o){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var l=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio ".concat(l.length," appendBuffers")),this.delayedAudioAppendQueue_.length=0,l.forEach(function(e){a.appendBuffer.apply(a,e)})}}},{key:"audioBuffered",value:function(){return oq(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:eY()}},{key:"videoBuffered",value:function(){return oq(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:eY()}},{key:"buffered",value:function(){var e=oq(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=oq(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():ao(this.audioBuffered(),this.videoBuffered())}},{key:"setDuration",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eX;oG({type:"mediaSource",sourceUpdater:this,action:(t=e,function(e){e.logger_("Setting mediaSource duration to ".concat(t));try{e.mediaSource.duration=t}catch(e){rZ.log.warn("Failed to set media source duration",e)}}),name:"duration",doneFn:n})}},{key:"endOfStream",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eX;"string"!=typeof t&&(t=void 0),oG({type:"mediaSource",sourceUpdater:this,action:(e=t,function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream(".concat(e||"",")"));try{t.mediaSource.endOfStream(e)}catch(e){rZ.log.warn("Failed to call media source endOfStream",e)}}}),name:"endOfStream",doneFn:n})}},{key:"removeAudio",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eX;this.audioBuffered().length&&0!==this.audioBuffered().end(0)?oG({type:"audio",sourceUpdater:this,action:oV(e,t),doneFn:n,name:"remove"}):n()}},{key:"removeVideo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eX;this.videoBuffered().length&&0!==this.videoBuffered().end(0)?oG({type:"video",sourceUpdater:this,action:oV(e,t),doneFn:n,name:"remove"}):n()}},{key:"updating",value:function(){return!!(oM("audio",this)||oM("video",this))}},{key:"audioTimestampOffset",value:function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(oG({type:"audio",sourceUpdater:this,action:oH(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}},{key:"videoTimestampOffset",value:function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(oG({type:"video",sourceUpdater:this,action:oH(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}},{key:"audioQueueCallback",value:function(e){this.audioBuffer&&oG({type:"audio",sourceUpdater:this,action:oz(e),name:"callback"})}},{key:"videoQueueCallback",value:function(e){this.videoBuffer&&oG({type:"video",sourceUpdater:this,action:oz(e),name:"callback"})}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),oN.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e["".concat(t,"QueueCallback")](function(){return oF(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}],[{key:"canChangeType",value:function(){return e$().SourceBuffer&&e$().SourceBuffer.prototype&&"function"==typeof e$().SourceBuffer.prototype.changeType}}]),t}(rZ.EventTarget),oX=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},oK=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),o$=function(e){function t(){return o._(this,t),s._(this,t,["Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded."])}return f._(t,e),t}(k._(Error)),oQ=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o._(this,t),(n=s._(this,t,[e,i])).mediaSource_=null,n.subtitlesTrack_=null,n.loaderType_="subtitle",n.featuresNativeTextTracks_=e.featuresNativeTextTracks,n.loadVttJs=e.loadVttJs,n.shouldSaveSegmentTimingInfo_=!1,n}return f._(t,e),l._(t,[{key:"createTransmuxer_",value:function(){return null}},{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return eY();var e=this.subtitlesTrack_.cues;return eY([[e[0].startTime,e[e.length-1].startTime]])}},{key:"initSegmentForMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=st(e),i=this.initSegments_[n];
1if(t&&!i&&e.bytes){var r=new Uint8Array(oK.byteLength+e.bytes.byteLength);r.set(e.bytes),r.set(oK,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return i||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(e,t){ov(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(t)}}},{key:"timestampOffsetForSegment_",value:function(){return null}},{key:"chooseNextRequest_",value:function(){return this.skipEmptySegments_(d._(h._(t.prototype),"chooseNextRequest_",this).call(this))}},{key:"skipEmptySegments_",value:function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}},{key:"stopForError",value:function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}},{key:"segmentRequestFinished_",value:function(e,t,n){var i=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){-101===e.code&&this.handleTimeout_(),-102===e.code?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof e$().WebVTT&&"function"==typeof this.loadVttJs){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(function(){return i.segmentRequestFinished_(e,t,n)},function(){return i.stopForError({message:"Error loading vtt.js"})});return}a.requested=!0;try{this.parseVTTCues_(r)}catch(e){this.stopForError({message:e.message});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach(function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new(e$()).VTTCue(e.startTime,e.endTime,e.text):e)}),oy(this.subtitlesTrack_),this.handleAppendsDone_()}},{key:"handleData_",value:function(){}},{key:"updateTimingInfoEnd_",value:function(){}},{key:"parseVTTCues_",value:function(e){var t,n=!1;if("function"!=typeof e$().WebVTT)throw new o$;"function"==typeof e$().TextDecoder?t=new(e$()).TextDecoder("utf8"):(t=e$().WebVTT.StringDecoder(),n=!0);var i=new(e$()).WebVTT.Parser(e$(),e$().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){rZ.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=oX(r)),i.parse(r)}var a=e.bytes;n&&(a=oX(a)),i.parse(a),i.flush()}},{key:"updateTimeMapping_",value:function(e,t,n){var i=this,r=e.segment;if(t){if(!e.cues.length){r.empty=!0;return}var a=e.timestampmap,s=a.MPEGTS,o=a.LOCAL,u=s/tu.ONE_SECOND_IN_TS-o+t.mapping;if(e.cues.forEach(function(e){var n=e.endTime-e.startTime,r=0===s?e.startTime+u:i.handleRollover_(e.startTime+u,t.time);e.startTime=Math.max(r,0),e.endTime=Math.max(r+n,0)}),!n.syncInfo){var l=e.cues[0].startTime,c=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(l,c-r.duration)}}}}},{key:"handleRollover_",value:function(e,t){if(null===t)return e;var n,i=e*tu.ONE_SECOND_IN_TS,r=t*tu.ONE_SECOND_IN_TS;for(n=r<i?-0x200000000:0x200000000;Math.abs(i-r)>0x100000000;)i+=n;return i/tu.ONE_SECOND_IN_TS}}]),t}(oD),oJ=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},oZ=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.segments)for(var r=i,a=0;a<e.segments.length;a++){var s=e.segments[a];if(n||(n=oJ(t,r+s.duration/2)),n){if("cueIn"in s){n.endTime=r,n.adEndTime=r,r+=s.duration,n=null;continue}if(r<n.endTime){r+=s.duration;continue}n.endTime+=s.duration}else if("cueOut"in s&&((n=new(e$()).VTTCue(r,r+s.duration,s.cueOut)).adStartTime=r,n.adEndTime=r+parseFloat(s.cueOut),t.addCue(n)),"cueOutCont"in s){var o=y._(s.cueOutCont.split("/").map(parseFloat),2),u=o[0],l=o[1];(n=new(e$()).VTTCue(r,r+s.duration,"")).adStartTime=r-u,n.adEndTime=n.adStartTime+l,t.addCue(n)}r+=s.duration}},o0=[{name:"VOD",run:function(e,t,n,i,r){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"MediaSequence",run:function(e,t,n,i,r,a){if(!a)return null;var s=e.getMediaSequenceMap(a);if(!s||0===s.size||void 0===t.mediaSequence||!Array.isArray(t.segments)||!t.segments.length)return null;var o=t.mediaSequence,u=0,l=!0,c=!1,d=void 0;try{for(var h,f=t.segments[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var p=h.value,m=s.get(o);if(!m)break;if(r>=m.start&&r<m.end){if(Array.isArray(p.parts)&&p.parts.length){var g=m.start,v=0,y=!0,_=!1,b=void 0;try{for(var T,k=p.parts[Symbol.iterator]();!(y=(T=k.next()).done);y=!0){var S=T.value,E=g,w=E+S.duration;if(r>=E&&r<w)return{time:m.start,segmentIndex:u,partIndex:v};v++,g=w}}catch(e){_=!0,b=e}finally{try{y||null==k.return||k.return()}finally{if(_)throw b}}}return{time:m.start,segmentIndex:u,partIndex:null}}u++,o++}}catch(e){c=!0,d=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw d}}return null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=am(t);r=r||0;for(var u=0;u<o.length;u++){var l=t.endList||0===r?u:o.length-(u+1),c=o[l],d=c.segment,h=e.timelineToDatetimeMappings[d.timeline];if(h&&d.dateTimeObject){var f=d.dateTimeObject.getTime()/1e3+h;if(d.parts&&"number"==typeof c.partIndex)for(var p=0;p<c.partIndex;p++)f+=d.parts[p].duration;var m=Math.abs(r-f);if(null!==s&&(0===m||s<m))break;s=m,a={time:f,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,s=null;r=r||0;for(var o=am(t),u=0;u<o.length;u++){var l=t.endList||0===r?u:o.length-(u+1),c=o[l],d=c.segment,h=c.part&&c.part.start||d&&d.start;if(d.timeline===i&&void 0!==h){var f=Math.abs(r-h);if(null!==s&&s<f)break;(!a||null===s||s>=f)&&(s=f,a={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var u=t.discontinuityStarts[o],l=t.discontinuitySequence+o+1,c=e.discontinuities[l];if(c){var d=Math.abs(r-c.time);if(null!==s&&s<d)break;(!a||null===s||s>=d)&&(s=d,a={time:c.time,segmentIndex:u,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],o1=function(e){function t(){var e;return arguments.length>0&&void 0!==arguments[0]&&arguments[0],o._(this,t),(e=s._(this,t)).timelines=[],e.discontinuities=[],e.timelineToDatetimeMappings={},e.mediaSequenceStorage_=new Map,e.logger_=ae("SyncController"),e}return f._(t,e),l._(t,[{key:"getMediaSequenceMap",value:function(e){return this.mediaSequenceStorage_.get(e)}},{key:"updateMediaSequenceMap",value:function(e,t,n){if(void 0!==e.mediaSequence&&Array.isArray(e.segments)&&e.segments.length){var i,r=this.getMediaSequenceMap(n),a=new Map,s=e.mediaSequence;r?r.has(e.mediaSequence)?i=r.get(e.mediaSequence).start:(this.logger_("MediaSequence sync for ".concat(n," segment loader - received a gap between playlists.\nFallback base time to: ").concat(t,".\nReceived media sequence: ").concat(s,".\nCurrent map: "),r),i=t):i=0,this.logger_("MediaSequence sync for ".concat(n," segment loader.\nReceived media sequence: ").concat(s,".\nbase time is ").concat(i,"\nCurrent map: "),r),e.segments.forEac
1h(function(e){var t=i,n=t+e.duration;a.set(s,{start:t,end:n}),s++,i=n}),this.mediaSequenceStorage_.set(n,a)}}},{key:"getSyncPoint",value:function(e,t,n,i,r){if(t!==1/0)return o0.find(function(e){return"VOD"===e.name}).run(this,e,t);var a=this.runStrategies_(e,t,n,i,r);if(!a.length)return null;var s=!0,o=!1,u=void 0;try{for(var l,c=a[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var d=l.value,h=d.syncPoint,f=d.strategy,p=h.segmentIndex,m=h.time;if(!(p<0)){var g=e.segments[p],v=m+g.duration;if(this.logger_("Strategy: ".concat(f,". Current time: ").concat(i,". selected segment: ").concat(p,". Time: [").concat(m," -> ").concat(v,"]}")),i>=m&&i<v)return this.logger_("Found sync point with exact match: ",h),h}}}catch(e){o=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(o)throw u}}return this.selectSyncPoint_(a,{key:"time",value:i})}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0,"main");if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+aS({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))}},{key:"runStrategies_",value:function(e,t,n,i,r){for(var a=[],s=0;s<o0.length;s++){var o=o0[s],u=o.run(this,e,t,n,i,r);u&&(u.strategy=o.name,a.push({strategy:o.name,syncPoint:u}))}return a}},{key:"selectSyncPoint_",value:function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<i&&(i=s,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for [".concat(t.key,": ").concat(t.value,"] chosen with strategy")+" [".concat(r,"]: [time:").concat(n.time,",")+" segmentIndex:".concat(n.segmentIndex)+("number"==typeof n.partIndex?",partIndex:".concat(n.partIndex):"")+"]"),n}},{key:"saveExpiredSegmentInfo",value:function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>86400)return void rZ.log.warn("Not saving expired segment info. Media sequence gap ".concat(n," is too large."));for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:".concat(t.syncInfo.time,",")+" mediaSequence: ".concat(t.syncInfo.mediaSequence,"]")),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMappingForStart",value:function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}}},{key:"saveSegmentTimingInfo",value:function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-(a.getTime()/1e3))}},{key:"timestampOffsetForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t,n){var i,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline ".concat(e.timeline,": ")+"[time: ".concat(o.time,"] [mapping: ").concat(o.mapping,"]"))),i=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;i=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=i,s.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){var u=void 0;u=s<0?n.start-aS({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+aS({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:u,accuracy:o}}}}},{key:"dispose",value:function(){this.trigger("dispose"),this.off()}}]),t}(rZ.EventTarget),o2=function(e){function t(){var e;return o._(this,t),(e=s._(this,t)).pendingTimelineChanges_={},e.lastTimelineChanges_={},e}return f._(t,e),l._(t,[{key:"clearPendingTimelineChange",value:function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}},{key:"pendingTimelineChange",value:function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]}},{key:"lastTimelineChange",value:function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]}},{key:"dispose",value:function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}]),t}(rZ.EventTarget),o4=sx(sA(sI(function(){var e,t,i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2==arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
1else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),r=function(){var e,t,n,i,r,a,s,o,u=[[[],[],[],[],[]],[[],[],[],[],[]]],l=u[0],c=u[1],d=l[4],h=c[4],f=[],p=[];for(e=0;e<256;e++)p[(f[e]=e<<1^(e>>7)*283)^e]=e;for(t=n=0;!d[t];t^=i||1,n=p[n]||1)for(a=(a=n^n<<1^n<<2^n<<3^n<<4)>>8^255&a^99,d[t]=a,h[a]=t,o=0x1010101*f[r=f[i=f[t]]]^65537*r^257*i^0x1010100*t,s=257*f[a]^0x1010100*a,e=0;e<4;e++)l[e][t]=s=s<<24^s>>>8,c[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)l[e]=l[e].slice(0),c[e]=c[e].slice(0);return u},a=null,u=function(){function e(t){o._(this,e),a||(a=r()),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];var n,i,s,u=this._tables[0][4],l=this._tables[1],c=t.length,d=1;if(4!==c&&6!==c&&8!==c)throw Error("Invalid aes key size");var h=t.slice(0),f=[];for(this._key=[h,f],n=c;n<4*c+28;n++)s=h[n-1],(n%c==0||8===c&&n%c==4)&&(s=u[s>>>24]<<24^u[s>>16&255]<<16^u[s>>8&255]<<8^u[255&s],n%c==0&&(s=s<<8^s>>>24^d<<24,d=d<<1^(d>>7)*283)),h[n]=h[n-c]^s;for(i=0;n;i++,n--)s=h[3&i?n:n-4],n<=4||i<4?f[i]=s:f[i]=l[0][u[s>>>24]]^l[1][u[s>>16&255]]^l[2][u[s>>8&255]]^l[3][u[255&s]]}return l._(e,[{key:"decrypt",value:function(e,t,n,i,r,a){var s,o,u,l,c=this._key[1],d=e^c[0],h=i^c[1],f=n^c[2],p=t^c[3],m=c.length/4-2,g=4,v=this._tables[1],y=v[0],_=v[1],b=v[2],T=v[3],k=v[4];for(l=0;l<m;l++)s=y[d>>>24]^_[h>>16&255]^b[f>>8&255]^T[255&p]^c[g],o=y[h>>>24]^_[f>>16&255]^b[p>>8&255]^T[255&d]^c[g+1],u=y[f>>>24]^_[p>>16&255]^b[d>>8&255]^T[255&h]^c[g+2],p=y[p>>>24]^_[d>>16&255]^b[h>>8&255]^T[255&f]^c[g+3],g+=4,d=s,h=o,f=u;for(l=0;l<4;l++)r[(3&-l)+a]=k[d>>>24]<<24^k[h>>16&255]<<16^k[f>>8&255]<<8^k[255&p]^c[g++],s=d,d=h,h=f,f=p,p=s}}]),e}(),c=function(e){function t(){var e;return o._(this,t),(e=s._(this,t,[i])).jobs=[],e.delay=1,e.timeout_=null,e}return f._(t,e),l._(t,[{key:"processJob_",value:function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}},{key:"push",value:function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),t}(i),d=function(e){return e<<24|(65280&e)<<8|(0xff0000&e)>>8|e>>>24},h=function(e,t,n){var i,r,a,s,o,l,c,h,f,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new u(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],s=n[3],f=0;f<p.length;f+=4)o=d(p[f]),l=d(p[f+1]),c=d(p[f+2]),h=d(p[f+3]),m.decrypt(o,l,c,h,v,f),v[f]=d(v[f]^i),v[f+1]=d(v[f+1]^r),v[f+2]=d(v[f+2]^a),v[f+3]=d(v[f+3]^s),i=o,r=l,a=c,s=h;return g},m=function(){function e(t,n,i,r){o._(this,e);var a=e.STEP,s=new Int32Array(t.buffer),u=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,u)),l=a;l<s.length;l+=a)i=new Uint32Array([d(s[l-4]),d(s[l-3]),d(s[l-2]),d(s[l-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,u));this.asyncStream_.push(function(){r(null,u.subarray(0,u.byteLength-u[u.byteLength-1]))})}return l._(e,[{key:"decryptChunk_",value:function(e,t,n,i){return function(){var r=h(e,t,n);i.set(r,e.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),e}(),g="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{},v=("u">typeof window?window:void 0!==g?g:"u">typeof self?self:{}).BigInt||Number;v("0x1"),v("0x100"),v("0x10000"),v("0x1000000"),v("0x100000000"),v("0x10000000000"),v("0x1000000000000"),v("0x100000000000000"),v("0x10000000000000000"),255===(t=new Uint8Array((e=new Uint16Array([65484])).buffer,e.byteOffset,e.byteLength))[0]||t[0];var y=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&p._(i.buffer,ArrayBuffer))?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t};self.onmessage=function(e){var t=e.data;
1new m(new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4),function(e,n){self.postMessage(y({source:t.source,decrypted:n}),[n.buffer])})}}))),o8=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},o3=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},o5=function(e,t){t.activePlaylistLoader=e,e.load()},o6=(S={},c._(S,"AUDIO",function(e,t){return function(){var n=t.mediaTypes[e],i=t.excludePlaylist,r=n.activeTrack(),a=n.activeGroup(),s=(a.filter(function(e){return e.default})[0]||a[0]).id,o=n.tracks[s];if(r===o)return void i({error:{message:"Problem encountered loading the default audio track."}});for(var u in rZ.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===o;n.onTrackChanged()}}),c._(S,"SUBTITLES",function(e,t){return function(){var n=t.mediaTypes[e];rZ.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");var i=n.activeTrack();i&&(i.mode="disabled"),n.onTrackChanged()}}),S),o7=(E={},c._(E,"AUDIO",function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),i.paused()||a.load()}),t.on("error",o6[e](e,n))}}),c._(E,"SUBTITLES",function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],s=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),i.paused()||a.load()}),t.on("error",o6[e](e,n))}),E),o9=(w={},c._(w,"AUDIO",function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.main.mediaGroups,o=t.mediaTypes[e],u=o.groups,l=o.tracks,c=o.logger_,d=t.mainPlaylistLoader,h=aj(d.main);for(var f in(!s[e]||0===Object.keys(s[e]).length)&&(s[e]={main:{default:{default:!0}}},h&&(s[e].main.default.playlists=d.main.playlists)),s[e])for(var p in u[f]||(u[f]=[]),s[e][f]){var m=s[e][f][p],g=void 0;if(h?(c("AUDIO group '".concat(f,"' label '").concat(p,"' is a main playlist")),m.isMainPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new a0(m.playlists[0],n,a):m.resolvedUri?new a0(m.resolvedUri,n,a):m.playlists&&"dash"===i?new sk(m.playlists[0],n,a,d):null,m=eW({id:p,playlistLoader:g},m),o7[e](e,m.playlistLoader,t),u[f].push(m),void 0===l[p]){var v=new rZ.AudioTrack({id:p,kind:o8(m),enabled:!1,language:m.language,default:m.default,label:p});l[p]=v}}r.on("error",o6[e](e,t))}),c._(w,"SUBTITLES",function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.main.mediaGroups,u=t.mediaTypes[e],l=u.groups,c=u.tracks,d=t.mainPlaylistLoader;for(var h in o[e])for(var f in l[h]||(l[h]=[]),o[e][h])if(i.options_.useForcedSubtitles||!o[e][h][f].forced){var p=o[e][h][f],m=void 0;if("hls"===r)m=new a0(p.resolvedUri,i,s);else if("dash"===r){if(!p.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new sk(p.playlists[0],i,s,d)}else"vhs-json"===r&&(m=new a0(p.playlists?p.playlists[0]:p.resolvedUri,i,s));if(p=eW({id:f,playlistLoader:m},p),o7[e](e,p.playlistLoader,t),l[h].push(p),void 0===c[f]){var g=n.addRemoteTextTrack({id:f,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:f},!1).track;c[f]=g}}a.on("error",o6[e](e,t))}),c._(w,"CLOSED-CAPTIONS",function(e,t){var n=t.tech,i=t.main.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in i[e])for(var u in a[o]||(a[o]=[]),i[e][o]){var l=i[e][o][u];if(/^(?:CC|SERVICE)/.test(l.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:u,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(c[d.instreamId]&&(d=eW(d,c[d.instreamId])),void 0===d.default&&delete d.default,a[o].push(eW({id:u},l)),void 0===s[u]){var h=n.addRemoteTextTrack({id:d.instreamId,
1kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;s[u]=h}}}}),w),ue=function(e,t){for(var n=0;n<e.length;n++)if(aP(t,e[n])||e[n].playlists&&ue(e[n].playlists,t))return!0;return!1},ut=(C={},c._(C,"AUDIO",function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}}),c._(C,"SUBTITLES",function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}),C),un=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}},ui=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){o9[t](t,e)});var t=e.mediaTypes,n=e.mainPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,s=a.AUDIO,o=a.main;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=function(t){var i=e.mainPlaylistLoader,r=e.mediaTypes[n].groups,a=i.media();if(!a)return null;var s=null;a.attributes[n]&&(s=r[a.attributes[n]]);var o=Object.keys(r);if(!s)if("AUDIO"===n&&o.length>1&&aj(e.main))for(var u=0;u<o.length;u++){var l=r[o[u]];if(ue(l,a)){s=l;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return void 0===t?s:null!==t&&s&&s.filter(function(e){return e.id===t.id})[0]||null},t[n].activeTrack=ut[n](n,e),t[n].onGroupChanged=function(){var t=e.segmentLoaders,i=t[n],r=t.main,a=e.mediaTypes[n],s=a.activeTrack(),o=a.getActiveGroup(),u=a.activePlaylistLoader,l=a.lastGroup_;if((!o||!l||o.id!==l.id)&&(a.lastGroup_=o,a.lastTrack_=s,o3(i,a),o&&!o.isMainPlaylist)){if(!o.playlistLoader){u&&r.resetEverything();return}i.resyncLoader(),o5(o.playlistLoader,a)}},t[n].onGroupChanging=function(){var t=e.segmentLoaders[n];e.mediaTypes[n].lastGroup_=null,t.abort(),t.pause()},t[n].onTrackChanged=function(){var t=e.mainPlaylistLoader,i=e.segmentLoaders,r=i[n],a=i.main,s=e.mediaTypes[n],o=s.activeTrack(),u=s.getActiveGroup(),l=s.activePlaylistLoader,c=s.lastTrack_;if((!c||!o||c.id!==o.id)&&(s.lastGroup_=u,s.lastTrack_=o,o3(r,s),u)){if(u.isMainPlaylist){if(!o||!c||o.id===c.id)return;var d=e.vhs.playlistController_,h=d.selectPlaylist();if(d.media()===h)return;s.logger_("track change. Switching main audio from ".concat(c.id," to ").concat(o.id)),t.pause(),a.resetEverything(),d.fastQualityChange_(h);return}if("AUDIO"===n){if(!u.playlistLoader){a.setAudio(!0),a.resetEverything();return}r.setAudio(!0),a.setAudio(!1)}if(l===u.playlistLoader)return void o5(u.playlistLoader,s);r.track&&r.track(o),r.resetEverything(),o5(u.playlistLoader,s)}},t[n].getActiveGroup=un(n,e)});var u=t.AUDIO.activeGroup();if(u){var l=(u.filter(function(e){return e.default})[0]||u[0]).id;t.AUDIO.tracks[l].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var c=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};for(var d in i.audioTracks().addEventListener("change",c),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",c),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[d])},ur=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:eX,activeTrack:eX,getActiveGroup:eX,onGroupChanged:eX,onTrackChanged:eX,lastTrack_:null,logger_:ae("MediaGroups[".concat(t,"]"))}}),e},ua=function(){function e(){o._(this,e),this.priority_=[],this.pathwayClones_=new Map}return l._(e,[{key:"version",get:function(){return this.version_},set:function(e){1===e&&(this.version_=e)}},{key:"ttl",get:function(){return this.ttl_},set:function(e){this.ttl_=e||300}},{key:"reloadUri",get:function(){return this.reloadUri_},set:function(e){e&&(this.reloadUri_=r7(this.reloadUri_,e))}},{key:"priority",get:function(){return this.priority_},set:function(e){e&&e.length&&(this.priority_=e)}},{key:"pathwayClones",get:function(){return this.pathwayClones_},set:function(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(function(e){return[e.ID,e]})))}}]),e}(),us=function(e){function t(e,n){var i;return o._(this,t),(i=s._(this,t)).currentPathway=null,i.defaultPathway=null,i.queryBeforeStart=!1,i.availablePathways_=new Set,i.steeringManifest=new ua,i.proxyServerUrl_=null,i.manifestType_=null,i.ttlTimeout_=null,i.request_=null,i.currentPathwayClones=new Map,i.nextPathwayClones=new Map,i.excludedSteeringManifestURLs=new Set,i.logger_=ae("Content Steering"),i.xhr_=e,i.getBandwidth_=n,i}return f._(t,e),l._(t,[{key:"assignTagProperties",value:function(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";var n=t.serverUri||t.serverURL;if(!n){this.logger_("steering manifest URL is ".concat(n,", cannot request steering manifest.")),this.trigger("error");return}n.startsWith("data:")?this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1)):(this.steeringManifest.reloadUri=r7(e,n),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}},{key:"requestSteeringManifest",value:function(e){var t=this,n=this.steeringManifest.reloadUri;if(n){var i=e?n:this.getRequestURI(n);if(!i){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}this.request_=this.xhr_({uri:i},function(e,n){if(e){if(410===n.status){t.logger_("manifest request 410 ".concat(e,".")),t.logger_("There will be no more content steering requests to ".concat(i," this session.")),t.excludedSteeringManifestURLs.add(i);return}if(429===n.status){var r=n.responseHeaders["retry-after"];t.logger_("manifest request 429 ".concat(e,".")),t.logger_("content steering will retry in ".concat(r," seconds.")),t.startTTLTimeout_(parseInt(r,10));return}t.logger_("manifest failed to load ".concat(e,".")),t.startTTLTimeout_();return}var a=JSON.parse(t.request_.responseText);t.assignSteeringProperties_(a),t.startTTLTimeout_()})}}},{key:"setProxyServerUrl_",value:function(e){var t=new(e$()).URL(e),n=new(e$()).URL(this.proxyServerUrl_);return n.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(n.toString())}},{key:"decodeDataUriManifest_",value:function(e){var t=JSON.parse(e$().atob(e));this.assignSteeringProperties_(t)}},{key:"setSteeringParams_",value:function(e){var t=new(e$()).URL(e),n=this.getPathway(),i=this.getBandwidth_();if(n){var r="_".concat(this.manifestType_,"_pathway");t.searchParams.set(r,n)}if(i){var a="_".concat(this.manifestType_,"_throughput");t.searchParams.set(a,i)}return t.toString()}},{key:"assignSteeringProperties_",value:function(e){var t=this;if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_("manifest version is ".concat(e.VERSION,", which is not supported.")),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for c
1ontent steering. Ending content steering."),this.trigger("error"),this.dispose());var n=function(e){var n=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var o=a.value;if(t.availablePathways_.has(o))return o}}catch(e){i=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}return b._(t.availablePathways_)[0]}(this.steeringManifest.priority);this.currentPathway!==n&&(this.currentPathway=n,this.trigger("content-steering"))}},{key:"getPathway",value:function(){return this.currentPathway||this.defaultPathway}},{key:"getRequestURI",value:function(e){var t=this;if(!e)return null;var n=function(e){return t.excludedSteeringManifestURLs.has(e)};if(this.proxyServerUrl_){var i=this.setProxyServerUrl_(e);if(!n(i))return i}var r=this.setSteeringParams_(e);return n(r)?null:r}},{key:"startTTLTimeout_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.steeringManifest.ttl;this.ttlTimeout_=e$().setTimeout(function(){e.requestSteeringManifest()},1e3*t)}},{key:"clearTTLTimeout_",value:function(){e$().clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}},{key:"abort",value:function(){this.request_&&this.request_.abort(),this.request_=null}},{key:"dispose",value:function(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new ua}},{key:"addAvailablePathway",value:function(e){e&&this.availablePathways_.add(e)}},{key:"clearAvailablePathways",value:function(){this.availablePathways_.clear()}},{key:"excludePathway",value:function(e){return this.availablePathways_.delete(e)}},{key:"didDASHTagChange",value:function(e,t){return!t&&this.steeringManifest.reloadUri||t&&(r7(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}},{key:"getAvailablePathways",value:function(){return this.availablePathways_}}]),t}(rZ.EventTarget),uo=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],uu=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},ul=function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,s=e.bufferHighWaterLine,o=e.duration,u=e.bufferBasedABR,l=e.log;if(!r)return rZ.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch ".concat(t&&t.id||"null"," -> ").concat(r.id);if(!t)return l("".concat(c," as current playlist is not set")),!0;if(r.id===t.id)return!1;var d=!!ar(n,i).length;if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(l("".concat(c," as current playlist is live")),!0):(l("not ".concat(c," as current playlist is live llhls, but currentTime isn't in buffered.")),!1);var h=af(n,i),f=u?sS.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:sS.MAX_BUFFER_LOW_WATER_LINE;if(o<f)return l("".concat(c," as duration < max low water line (").concat(o," < ").concat(f,")")),!0;var p=r.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(p<m&&(!u||h<s)){var g="".concat(c," as next bandwidth < current bandwidth (").concat(p," < ").concat(m,")");return u&&(g+=" and forwardBuffer < bufferHighWaterLine (".concat(h," < ").concat(s,")")),l(g),!0}if((!u||p>m)&&h>=a){var v="".concat(c," as forwardBuffer >= bufferLowWaterLine (").concat(h," >= ").concat(a,")");return u&&(v+=" and next bandwidth > current bandwidth (".concat(p," > ").concat(m,")")),l(v),!0}return l("not ".concat(c," as no switching criteria met")),!1},uc=function(e){function t(e){o._(this,t);var n=s._(this,t),i=e.src,r=e.withCredentials,a=e.tech,u=e.bandwidth,l=e.externVhs,c=e.useCueTags,d=e.playlistExclusionDuration,h=e.enableLowInitialPlaylist,f=e.sourceType,p=e.cacheEncryptionKeys,m=e.bufferBasedABR,g=e.leastPixelDiffSelector,v=e.captionServices;if(!i)throw Error("A non-empty playlist URL or JSON manifest string is required");var y=e.maxPlaylistRetries;null==y&&(y=1/0),x=l,n.bufferBasedABR=!!m,n.leastPixelDiffSelector=!!g,n.withCredentials=r,n.tech_=a,n.vhs_=a.vhs,n.sourceType_=f,n.useCueTags_=c,n.playlistExclusionDuration=d,n.maxPlaylistRetries=y,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:r,maxPlaylistRetries:y,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=ur(),n.mediaSource=new(e$()).MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(n),n.handleSourceOpen_=n.handleSourceOpen_.bind(n),n.handleSourceEnded_=n.handleSourceEnded_.bind(n),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=eY(),n.hasPlayed_=!1,n.syncController_=new o1(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new o4,n.sourceUpdater_=new oY(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new o2,n.keyStatusMap_=new Map;var _={vhs:n.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:v,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:u,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:n.addMetadataToTextTrack.bind(n)};n.mainPlaylistLoader_="dash"===n.sourceType_?new sk(i,n.vhs_,eW(n.requestOptions_,{addMetadataToTextTrack:n.addMetadataToTextTrack.bind(n)})):new a0(i,n.vhs_,eW(n.requestOptions_,{addDateRangesToTextTrack:n.addDateRangesToTextTrack_.bind(n)})),n.setupMainPlaylistLoaderListeners_(),n.mainSegmentLoader_=new oD(eW(_,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new oD(eW(_,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new oQ(eW(_,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise(function(e,t){var n=function(){a.off("vttjserror",i),e()},i=function(){a.off("vttjsloaded",n),t()};a.one("vttjsloaded",n),a.one("vttjserror",i),a.addWebVttScript_()})}}
1),e),n.contentSteeringController_=new us(n.vhs_.xhr,function(){return n.mainSegmentLoader_.bandwidth}),n.setupSegmentLoaderListeners_(),n.bufferBasedABR&&(n.mainPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),uo.forEach(function(e){n[e+"_"]=uu.bind(n,e)}),n.logger_=ae("pc"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.mainPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.mainPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var b="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(b,function(){var e=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}return f._(t,e),l._(t,[{key:"mainAppendsToLoadedData_",value:function(){return this.mainAppendsToLoadedData__}},{key:"audioAppendsToLoadedData_",value:function(){return this.audioAppendsToLoadedData__}},{key:"appendsToLoadedData_",value:function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return -1===e||-1===t?-1:e+t}},{key:"timeToLoadedData_",value:function(){return this.timeToLoadedData__}},{key:"checkABR_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"abr",t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}},{key:"switchMedia_",value:function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e&&(e.id||e.uri);r&&r!==a&&(this.logger_("switch media ".concat(r," -> ").concat(a," from ").concat(t)),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-".concat(t)})),this.mainPlaylistLoader_.media(e,n)}},{key:"switchMediaForDASHContentSteering_",value:function(){var e=this;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){var n=e.mediaTypes_[t],i=n?n.activeGroup():null,r=e.contentSteeringController_.getPathway();if(i&&r){var a=(i.length?i[0].playlists:i.playlists).filter(function(e){return e.attributes.serviceLocation===r});a.length&&e.mediaTypes_[t].activePlaylistLoader.media(a[0])}})}},{key:"startABRTimer_",value:function(){var e=this;this.stopABRTimer_(),this.abrTimer_=e$().setInterval(function(){return e.checkABR_()},250)}},{key:"stopABRTimer_",value:function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(e$().clearInterval(this.abrTimer_),this.abrTimer_=null)}},{key:"getAudioTrackPlaylists_",value:function(){var e,t=this.main(),n=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return n;var i=t.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var s in a)if(a[s].default){e={label:s};break}}if(!e)return n;var o=[];for(var u in i)if(i[u][e.label]){var l=i[u][e.label];if(l.playlists&&l.playlists.length)o.push.apply(o,l.playlists);else if(l.uri)o.push(l);else if(t.playlists.length)for(var c=0;c<t.playlists.length;c++){var d=t.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===u&&o.push(d)}}return o.length?o:n}},{key:"setupMainPlaylistLoaderListeners_",value:function(){var e=this;this.mainPlaylistLoader_.on("loadedmetadata",function(){var t=e.mainPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;aI(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),ui({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,mainPlaylistLoader:e.mainPlaylistLoader_,vhs:e.vhs_,main:e.main(),mediaTypes:e.mediaTypes_,excludePlaylist:e.excludePlaylist.bind(e)}),e.triggerPresenceUsage_(e.main(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t,n=e.mainPlaylistLoader_.media();
1if(!n){if(e.attachContentSteeringListeners_(),e.initContentSteeringController_(),e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(t=e.selectInitialPlaylist()),t||(t=e.selectPlaylist()),!t||!e.shouldSwitchToMedia_(t)||(e.initialMedia_=t,e.switchMedia_(e.initialMedia_,"initial"),!("vhs-json"===e.sourceType_&&e.initialMedia_.segments)))return;n=e.initialMedia_}e.handleUpdatedMediaPlaylist(n)}),this.mainPlaylistLoader_.on("error",function(){var t=e.mainPlaylistLoader_.error;e.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",function(){var t=e.mainPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;aI(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,"dash"===e.sourceType_&&e.mainPlaylistLoader_.load(),e.mainSegmentLoader_.pause(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.waitingForFastQualityPlaylistReceived_?e.runFastQualitySwitch_():e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",function(){var t=e.mainPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&e.stuckAtPlaylistEnd_(t)&&(e.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),e.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}},{key:"handleUpdatedMediaPlaylist",value:function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),!this.tech_.paused()&&(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}},{key:"triggerPresenceUsage_",value:function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var s in n.AUDIO[a])n.AUDIO[a][s].uri||(i=!1);i&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),x.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}},{key:"shouldSwitchToMedia_",value:function(e){var t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return ul({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){e.bufferBasedABR&&e.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){var t=e.mainSegmentLoader_.error();e.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.bufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"fastQualityChange_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectPlaylist();e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}},{key:"runFastQualitySwitch_",value:function(){var e=this;this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(function(){e.tech_.setCurrentTime(e.tech_.currentTime())})}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}}},{key:"setupFirstPlay",value:function(){var e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){var t=this.seekable();if(!t.length)return!1;var n=t.end(0),i=n;
1if(e.start){var r=e.start.timeOffset;i=r<0?Math.max(n+r,t.start(0)):Math.min(n,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(i)}return this.hasPlayed_=!0,this.load(),!0}},{key:"handleSourceOpen_",value:function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")}},{key:"handleSourceEnded_",value:function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}}},{key:"handleDurationChange_",value:function(){this.tech_.trigger("durationchange")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}},{key:"stuckAtPlaylistEnd_",value:function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=x.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=an;var a=r.end(r.length-1);return a-i<=an&&n-a<=an}},{key:"excludePlaylist",value:function(e){var t,n=this,i=e.playlistToExclude,r=void 0===i?this.mainPlaylistLoader_.media():i,a=e.error,s=void 0===a?{}:a,o=e.playlistExclusionDuration;if(r=r||this.mainPlaylistLoader_.media(),o=o||s.playlistExclusionDuration||this.playlistExclusionDuration,!r){this.error=s,"open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}r.playlistErrors_++;var u=this.mainPlaylistLoader_.main.playlists,l=u.filter(ax),c=1===l.length&&l[0]===r;if(1===u.length&&o!==1/0)return rZ.log.warn("Problem encountered with playlist ".concat(r.id,". ")+"Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(c);if(c){if(this.main().contentSteering){var d=this.pathwayAttribute_(r),h=1e3*this.contentSteeringController_.steeringManifest.ttl;this.contentSteeringController_.excludePathway(d),this.excludeThenChangePathway_(),setTimeout(function(){n.contentSteeringController_.addAvailablePathway(d)},h);return}var f=!1;u.forEach(function(e){if(e!==r){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(f=!0,delete e.excludeUntil)}}),f&&(rZ.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}t=r.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*o,r.excludeUntil=t,s.reason&&(r.lastExcludeReason_=s.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});var p=this.selectPlaylist();if(!p){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}var m=s.internal?this.logger_:rZ.log.warn,g=s.message?" "+s.message:"";m("".concat(s.internal?"Internal problem":"Problem"," encountered with playlist ").concat(r.id,".")+"".concat(g," Switching to playlist ").concat(p.id,".")),p.attributes.AUDIO!==r.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),p.attributes.SUBTITLES!==r.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var v=p.targetDuration/2*1e3||5e3,y="number"==typeof p.lastRequest&&Date.now()-p.lastRequest<=v;return this.switchMedia_(p,"exclude",c||y)}},{key:"pauseLoading",value:function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}},{key:"delegateLoaders_",value:function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.mainPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=n["".concat(t,"SegmentLoader_")];r&&(e===t||"all"===e)&&i.push(r)}
1),i.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})}},{key:"setCurrentTime",value:function(e){var t=ar(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:void(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()):0}},{key:"duration",value:function(){if(!this.mainPlaylistLoader_)return 0;var e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:x.Playlist.duration(e):1/0:0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){if(!this.mainPlaylistLoader_)return;var e,t,n,i=this.mainPlaylistLoader_.media();if(!i)return;var r=this.syncController_.getExpiredTime(i,this.duration());if(null!==r){var a=this.mainPlaylistLoader_.main,s=x.Playlist.seekable(i,r,x.Playlist.liveEdgeDelay(a,i));0===s.length||(!this.mediaTypes_.AUDIO.activePlaylistLoader||(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null!==(r=this.syncController_.getExpiredTime(i,this.duration()))&&0!==(e=x.Playlist.seekable(i,r,x.Playlist.liveEdgeDelay(a,i))).length))&&(this.seekable_&&this.seekable_.length&&(t=this.seekable_.end(0),n=this.seekable_.start(0)),e?e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=eY([[e.start(0)>s.start(0)?e.start(0):s.start(0),e.end(0)<s.end(0)?e.end(0):s.end(0)]]):this.seekable_=s,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===t&&this.seekable_.start(0)===n||(this.logger_("seekable updated [".concat(au(this.seekable_),"]")),this.tech_.trigger("seekablechanged")))}}},{key:"updateDuration",value:function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1));return}var n=this.tech_.buffered(),i=x.Playlist.duration(this.mainPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;for(var i in n)n[i].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}},{key:"main",value:function(){return this.mainPlaylistLoader_.main}},{key:"media",value:function(){return this.mainPlaylistLoader_.media()||this.initialMedia_}},{key:"areMediaTypesKnown_",value:function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!!t&&!!n}},{key:"getCodecsOrExclude_",value:function(){var e,t=this,n={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},i=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();n.video=n.main;var r=s9(this.main(),i),a={},s=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(n.main.hasVideo&&(a.video=r.video||n.main.videoCodec||te.DEFAULT_VIDEO_CODEC),n.main.isMuxed&&(a.video+=",".concat(r.audio||n.main.audioCodec||te.DEFAULT_AUDIO_CODEC)),(n.main.hasAudio&&!n.main.isMuxed||n.audio.hasAudio||s)&&(a.audio=r.audio||n.main.audioCodec||n.audio.audioCodec||te.DEFAULT_AUDIO_CODEC,n.audio.isFmp4=n.main.hasAudio&&!n.main.isMuxed?n.main.isFmp4:n.audio.isFmp4),!a.audio&&!a.video)return void this.excludePlaylist({playlistToExclude:i,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});var o={};if(["video","audio"].forEach(function(t){var i,r;if(a.hasOwnProperty(t)&&(i=n[t].isFmp4,r=a[t],i?!(0,te.browserSupportsCodec)(r):!(0,te.muxerSupportsCodec)(r))){var s=n[t].isFmp4?"browser":"muxer";o[s]=o[s]||[],o[s].push(a[t]),"audio"===t&&(e=s)}}),s&&e&&i.attributes.AUDIO){var u=i.attributes.AUDIO;
1this.main().playlists.forEach(function(e){(e.attributes&&e.attributes.AUDIO)===u&&e!==i&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group ".concat(u," as ").concat(e,' does not support codec(s): "').concat(a.audio,'"'))}if(Object.keys(o).length){var l=Object.keys(o).reduce(function(e,t){return e&&(e+=", "),e+="".concat(t,' does not support codec(s): "').concat(o[t].join(","),'"')},"")+".";this.excludePlaylist({playlistToExclude:i,error:{internal:!0,message:l},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];if(["video","audio"].forEach(function(e){var n=((0,te.parseCodecs)(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,i=((0,te.parseCodecs)(a[e]||"")[0]||{}).type;n&&i&&n.toLowerCase()!==i.toLowerCase()&&c.push('"'.concat(t.sourceUpdater_.codecs[e],'" -> "').concat(a[e],'"'))}),c.length)return void this.excludePlaylist({playlistToExclude:i,error:{message:"Codec switching not supported: ".concat(c.join(", "),"."),internal:!0},playlistExclusionDuration:1/0})}return a}},{key:"tryToCreateSourceBuffers_",value:function(){if(!("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}}},{key:"excludeUnsupportedVariants_",value:function(){var e=this,t=this.main().playlists,n=[];Object.keys(t).forEach(function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=s9(e.main,r),s=[];!a.audio||(0,te.muxerSupportsCodec)(a.audio)||(0,te.browserSupportsCodec)(a.audio)||s.push("audio codec ".concat(a.audio)),!a.video||(0,te.muxerSupportsCodec)(a.video)||(0,te.browserSupportsCodec)(a.video)||s.push("video codec ".concat(a.video)),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec ".concat(a.text)),s.length&&(r.excludeUntil=1/0,e.logger_("excluding ".concat(r.id," for unsupported: ").concat(s.join(", "))))}})}},{key:"excludeIncompatibleVariants_",value:function(e){var t=this,n=[],i=this.main().playlists,r=s6((0,te.parseCodecs)(e)),a=s7(r),s=r.video&&(0,te.parseCodecs)(r.video)[0]||null,o=r.audio&&(0,te.parseCodecs)(r.audio)[0]||null;
1Object.keys(i).forEach(function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var u=[],l=s9(t.mainPlaylistLoader_.main,r),c=s7(l);if(l.audio||l.video){if(c!==a&&u.push('codec count "'.concat(c,'" !== "').concat(a,'"')),!t.sourceUpdater_.canChangeType()){var d=l.video&&(0,te.parseCodecs)(l.video)[0]||null,h=l.audio&&(0,te.parseCodecs)(l.audio)[0]||null;d&&s&&d.type.toLowerCase()!==s.type.toLowerCase()&&u.push('video codec "'.concat(d.type,'" !== "').concat(s.type,'"')),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&u.push('audio codec "'.concat(h.type,'" !== "').concat(o.type,'"'))}u.length&&(r.excludeUntil=1/0,t.logger_("excluding ".concat(r.id,": ").concat(u.join(" && "))))}}})}},{key:"updateAdCues_",value:function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),oZ(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=sS.GOAL_BUFFER_LENGTH,n=sS.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,sS.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=sS.BUFFER_LOW_WATER_LINE,n=sS.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,sS.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,sS.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.bufferBasedABR?r:i)}},{key:"bufferHighWaterLine",value:function(){return sS.BUFFER_HIGH_WATER_LINE}},{key:"addDateRangesToTextTrack_",value:function(e){og(this.inbandTextTracks_,"com.apple.streaming",this.tech_),om({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}},{key:"addMetadataToTextTrack",value:function(e,t,n){var i=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();og(this.inbandTextTracks_,e,this.tech_),oh({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:n})}},{key:"pathwayAttribute_",value:function(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}},{key:"initContentSteeringController_",value:function(){var e=this,t=this.main();if(t.contentSteering){var n=!0,i=!1,r=void 0;try{for(var a,s=t.playlists[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var o=a.value;this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(o))}}catch(e){i=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}if(this.contentSteeringController_.assignTagProperties(t.uri,t.contentSteering),this.contentSteeringController_.queryBeforeStart)return void this.contentSteeringController_.requestSteeringManifest(!0);this.tech_.one("canplay",function(){e.contentSteeringController_.requestSteeringManifest()})}}},{key:"resetContentSteeringController_",value:function(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}},{key:"attachContentSteeringListeners_",value:function(){var e=this;this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",function(){var t=e.main();(e.contentSteeringController_.didDASHTagChange(t.uri,t.contentSteering)||function(){var n=e.contentSteeringController_.getAvailablePathways(),i=[],r=!0,a=!1,s=void 0;try{for(var o,u=t.playlists[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var l=o.value.attributes.serviceLocation;if(l&&(i.push(l),!n.has(l)))return!0}}catch(e){a=!0,s=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw s}}return!i.length&&!!n.size}())&&e.resetContentSteeringController_()})}},{key:"excludeThenChangePathway_",value:function(){var e=this,t=this.contentSteeringController_.getPathway();if(t){this.handlePathwayClones_();var n=this.main().playlists,i=new Set,r=!1;Object.keys(n).forEach(function(a){var s=n[a],o=e.pathwayAttribute_(s),u=o&&t!==o;s.excludeUntil!==1/0||"content-steering"!==s.lastExcludeReason_||u||(delete s.excludeUntil,delete s.lastExcludeReason_,r=!0);var l=!s.excludeUntil&&s.excludeUntil!==1/0;!i.has(s.id)&&u&&l&&(i.add(s.id),s.excludeUntil=1/0,s.lastExcludeReason_="content-steering",e.logger_("excluding ".concat(s.id," for ").concat(s.lastExcludeReason_)))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(function(n){var i=e.mediaTypes_[n];if(i.activePlaylistLoader){var a=i.activePlaylistLoader.media_;a&&a.attributes.serviceLocation!==t&&(r=!0)}}),r&&this.changeSegmentPathway_()}}},{key:"handlePathwayClones_",value:function(){var e=this,t=this.main().playlists,n=this.contentSteeringController_.currentPathwayClones,i=this.contentSteeringController_.nextPathwayClones;if(n&&n.size||i&&i.size){var r=!0,a=!1,s=void 0;try{for(var o,u=n.entries()[Symbol.iterator]();!(r=(o=u.next()).done);r=!0){var l=y._(o.value,2),c=l[0],d=l[1];i.get(c)||(this.mainPlaylistLoader_.updateOrDeleteClone(d),this.contentSteeringController_.excludePathway(c))}}catch(e){a=!0,s=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw s}}var h=!0,f=!1,p=void 0;try{for(var m,g,v=i.entries()[Symbol.iterator]();!(h=(g=v.next()).done);h=!0)m=this,function(){var i=y._(g.value,2),r=i[0],a=i[1],s=n.get(r);s?m.equalPathwayClones_(s,a)||(m.mainPlaylistLoader_.updateOrDeleteClone(a,!0),m.contentSteeringController_.addAvailablePathway(r)):(t.filter(function(e){return e.attributes["PATHWAY-ID"]===a["BASE-ID"]}
1).forEach(function(t){e.mainPlaylistLoader_.addClonePathway(a,t)}),m.contentSteeringController_.addAvailablePathway(r))}()}catch(e){f=!0,p=e}finally{try{h||null==v.return||v.return()}finally{if(f)throw p}}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify(b._(i))))}}},{key:"equalPathwayClones_",value:function(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;var n=e["URI-REPLACEMENT"].PARAMS,i=t["URI-REPLACEMENT"].PARAMS;for(var r in n)if(n[r]!==i[r])return!1;for(var a in i)if(n[a]!==i[a])return!1;return!0}},{key:"changeSegmentPathway_",value:function(){var e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}},{key:"excludeNonUsablePlaylistsByKeyId_",value:function(){var e=this;if(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.main){var t=0,n="non-usable";this.mainPlaylistLoader_.main.playlists.forEac
1h(function(i){var r=e.mainPlaylistLoader_.getKeyIdSet(i);r&&r.size&&r.forEach(function(r){var a="usable",s=e.keyStatusMap_.has(r)&&e.keyStatusMap_.get(r)===a,o=i.lastExcludeReason_===n&&i.excludeUntil===1/0;s?s&&o&&(delete i.excludeUntil,delete i.lastExcludeReason_,e.logger_("enabling playlist ".concat(i.id," because key ID ").concat(r," is ").concat(a))):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==n&&(i.excludeUntil=1/0,i.lastExcludeReason_=n,e.logger_("excluding playlist ".concat(i.id," because the key ID ").concat(r," doesn't exist in the keyStatusMap or is not ").concat(a))),t++)})}),t>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(function(e){var t=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,i=e.excludeUntil===1/0&&e.lastExcludeReason_===n;t&&i&&(delete e.excludeUntil,rZ.log.warn("enabling non-HD playlist ".concat(e.id," because all playlists were excluded due to ").concat(n," key IDs")))})}}},{key:"addKeyStatus_",value:function(e,t){var n=("string"==typeof e?e:Array.from(new Uint8Array(e)).map(function(e){return e.toString(16).padStart(2,"0")}).join("")).slice(0,32).toLowerCase();this.logger_("KeyStatus '".concat(t,"' with key ID ").concat(n," added to the keyStatusMap")),this.keyStatusMap_.set(n,t)}},{key:"updatePlaylistByKeyStatus",value:function(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}},{key:"excludeNonUsableThenChangePlaylist_",value:function(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}]),t}(rZ.EventTarget),ud=function e(t,n,i){o._(this,e);var r,a,s=t.playlistController_,u=s.fastQualityChange_.bind(s);if(n.attributes){var l=n.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=s9(s.main(),n),this.playlist=n,this.id=i,this.enabled=(r=t.playlists,a=n.id,function(e){var t=r.main.playlists[a],n=aC(t),i=ax(t);return void 0===e?i:(e?delete t.disabled:t.disabled=!0,e===i||n||(u(),e?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),e)})},uh=function(e){e.representations=function(){var t=e.playlistController_.main(),n=aj(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(function(e){return!aC(e)}).map(function(t,n){return new ud(e,t,t.id)}):[]}},uf=["seeking","seeked","pause","playing","error"],up=function(){function e(t){var n=this;o._(this,e),this.playlistController_=t.playlistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ae("PlaybackWatcher"),this.logger_("initialize");var i=function(){return n.monitorCurrentTime_()},r=function(){return n.monitorCurrentTime_()},a=function(){return n.techWaiting_()},s=function(){return n.resetTimeUpdate_()},u=this.playlistController_,l=["main","subtitle","audio"],c={};l.forEach(function(e){c[e]={reset:function(){return n.resetSegmentDownloads_(e)},updateend:function(){return n.checkSegmentDownloads_(e)}},u["".concat(e,"SegmentLoader_")].on("appendsdone",c[e].updateend),u["".concat(e,"SegmentLoader_")].on("playlistupdate",c[e].reset),n.tech_.on(["seeked","seeking"],c[e].reset)});var d=function(e){["main","audio"].forEach(function(t){u["".concat(t,"SegmentLoader_")][e]("appended",n.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){n.fixesBadSeeks_()&&(n.consecutiveUpdates=0,n.lastRecordedTime=n.tech_.currentTime(),d("off"))},this.clearSeekingAppendCheck_=function(){return d("off")},this.watchForBadSeeking_=function(){n.clearSeekingAppendCheck_(),d("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",a),this.tech_.on(uf,s),this.tech_.on("canplay",r),this.tech_.one("play",i),this.dispose=function(){n.clearSeekingAppendCheck_(),n.logger_("dispose"),n.tech_.off("waiting",a),n.tech_.off(uf,s),n.tech_.off("canplay",r),n.te
1ch_.off("play",i),n.tech_.off("seeking",n.watchForBadSeeking_),n.tech_.off("seeked",n.clearSeekingAppendCheck_),l.forEach(function(e){u["".concat(e,"SegmentLoader_")].off("appendsdone",c[e].updateend),u["".concat(e,"SegmentLoader_")].off("playlistupdate",c[e].reset),n.tech_.off(["seeked","seeking"],c[e].reset)}),n.checkCurrentTimeTimeout_&&e$().clearTimeout(n.checkCurrentTimeTimeout_),n.resetTimeUpdate_()}}return l._(e,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&e$().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=e$().setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"resetSegmentDownloads_",value:function(e){var t=this.playlistController_["".concat(e,"SegmentLoader_")];this["".concat(e,"StalledDownloads_")]>0&&this.logger_("resetting possible stalled download count for ".concat(e," loader")),this["".concat(e,"StalledDownloads_")]=0,this["".concat(e,"Buffered_")]=t.buffered_()}},{key:"checkSegmentDownloads_",value:function(e){var t=this.playlistController_,n=t["".concat(e,"SegmentLoader_")],i=n.buffered_(),r=ad(this["".concat(e,"Buffered_")],i);(this["".concat(e,"Buffered_")]=i,r)?this.resetSegmentDownloads_(e):(this["".concat(e,"StalledDownloads_")]++,this.logger_("found #".concat(this["".concat(e,"StalledDownloads_")]," ").concat(e," appends that did not increase buffer (possible stalled download)"),{playlistId:n.playlist_&&n.playlist_.id,buffered:ac(i)}),this["".concat(e,"StalledDownloads_")]<10||(this.logger_("".concat(e," loader stalled download exclusion")),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-".concat(e,"-download-exclusion")}),"subtitle"!==e&&t.excludePlaylist({error:{message:"Excessive ".concat(e," segment downloading detected.")},playlistExclusionDuration:1/0})))}},{key:"checkCurrentTime_",value:function(){if(!(this.tech_.paused()||this.tech_.seeking())){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+an>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}}},{key:"resetTimeUpdate_",value:function(){this.consecutiveUpdates=0}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:an)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time ".concat(n," with ")+"seekable range ".concat(au(t),". Seeking to ")+"".concat(e,".")),this.tech_.setCurrentTime(e),!0;for(var r=this.playlistController_.sourceUpdater_,a=this.tech_.buffered(),s=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,u=this.media(),l=u.partTargetDuration?u.partTargetDuration:(u.targetDuration-at)*2,c=[s,o],d=0;d<c.length;d++)if(c[d]&&af(c[d],n)<l)return!1;var h=aa(a,n);return 0!==h.length&&(e=h.start(0)+an,this.logger_("Buffered region starts (".concat(h.start(0),") ")+" just beyond seek point (".concat(n,"). Seeking to ").concat(e,".")),this.tech_.setCurrentTime(e),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=ar(this.tech_.buffered(),e);if(t.length&&e+3<=t.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at ".concat(e," while inside a buffered region ")+"[".concat(t.start(0)," -> ").concat(t.end(0),"]. Attempting to resume ")+"playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time ".concat(t,". Seeking to ")+"live point (seekable end) ".concat(n)),this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}var i=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;var a=aa(r,t);return a.length>0&&(this.logger_("Stopped at ".concat(t," and seeking to ").concat(a.start(0))),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}},{key:"afterSeekableWindow_",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e.length)return!1;var r=e.end(e.length-1)+an,a=!n.endList,s="number"==typeof n.partTargetDuration;return a&&(s||i)&&(r=e.end(e.length-1)+3*n.targetDuration),t>r}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}},{key:"videoUnderflow_",value:function(e){var t,n=e.videoBuffered,i=e.audioBuffered,r=e.currentTime;if(n){if(n.length&&i.length){var a=ar(n,r-3),s=ar(n,r),o=ar(i,r);o.length&&!s.length&&a.length&&(t={start:a.end(0),end:o.end(0)})}else aa(n,r).length||(t=this.gapFromVideoUnderflow_(n,r));return!!t&&(this.logger_("Encountered a gap in video from ".concat(t.start," to ").concat(t.end,". ")+"Seeking to current time ".concat(r)),!0)}}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=aa(t,n);this.resetTimeUpdate_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+at),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var n=as(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null}}]),e}(),um={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},ug=function(e,t){var n=0,i=0,r=eW(um,t);e.ready(function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});var a=function(){i&&e.currentTime(i)},s=function(t){null!=t&&(i=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){return Date.now()-n<1e3*r.errorInterval?void e.trigger({type:"usage",name:"vhs-error-reload-canceled"}):r.getSource&&"function"==typeof r.getSource?(n=Date.now(),r.getSource.call(e,s)):void rZ.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function(){e.off("loadedmetadata",a),e.off("error",o),e.off("dispose",u)};e.on("error",o),e.on("dispose",u),e.reloadSourceOnError=function(t){u(),ug(e,t)}},uv="3.10.0",uy={PlaylistLoader:a0,Playlist:aO,utils:sr,STANDARD_PLAYLIST_SELECTOR:os,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.main.playlists.filter(aO.isEnabled);return oi(t,function(e,t){return or(e,t)}),t.filter(function(t){return!!s9(e.playlists.main,t).video})[0]||null},lastBandwidthSelector:os,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&e$().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),oa(this.playlists.main,t,parseInt(on(this.tech_.el(),"width"),10)*i,parseInt(on(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},comparePlaylistBandwidth:or,comparePlaylistResolution:function(e,t){var n,i;return(e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||e$().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),n===(i=i||e$().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH)?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:a3()};
1Object.keys(sS).forEach(function(e){Object.defineProperty(uy,e,{get:function(){return rZ.log.warn("using Vhs.".concat(e," is UNSAFE be sure you know what you are doing")),sS[e]},set:function(t){(rZ.log.warn("using Vhs.".concat(e," is UNSAFE be sure you know what you are doing")),"number"!=typeof t||t<0)?rZ.log.warn("value of Vhs.".concat(e," must be greater than or equal to 0")):sS[e]=t}})});var u_="videojs-vhs",ub=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},uT=function(e,t){t.representations().forEach(function(t){e.addQualityLevel(t)}),ub(e,t.playlists)};uy.canPlaySource=function(){return rZ.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};var uk=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=s6((0,te.parseCodecs)(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=(0,te.getMimeForCodec)(i.video),a=(0,te.getMimeForCodec)(i.audio),s={};for(var o in e)s[o]={},a&&(s[o].audioContentType=a),r&&(s[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(s[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(s[o].url=e[o]);return eW(e,s)},uS=function(e){var t,n,i=e.player,r=e.sourceKeySystems,a=e.audioMedia,s=e.mainPlaylists;if(!i.eme.initializeMediaKeys)return Promise.resolve();var o=(t=a?s.concat([a]):s,n=Object.keys(r),t.reduce(function(e,t){if(!t.contentProtection)return e;var i=n.reduce(function(e,n){var i=t.contentProtection[n];return i&&i.pssh&&(e[n]={pssh:i.pssh}),e},{});return Object.keys(i).length&&e.push(i),e},[])),u=[],l=[];return o.forEach(function(e){l.push(new Promise(function(e,t){i.tech_.one("keysessioncreated",e)})),u.push(new Promise(function(t,n){i.eme.initializeMediaKeys({keySystems:e},function(e){e?n(e):t()})}))}),Promise.race([Promise.all(u),Promise.race(l)])},uE=function(e){var t=e.player,n=uk(e.sourceKeySystems,e.media,e.audioMedia);return!!n&&(t.currentSource().keySystems=n,!n||!!t.eme||(rZ.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},uw=function(){if(!e$().localStorage)return null;var e=e$().localStorage.getItem(u_);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},uC=function(e){if(!e$().localStorage)return!1;var t=uw();t=t?eW(t,e):e;try{e$().localStorage.setItem(u_,JSON.stringify(t))}catch(e){return!1}return t},ux=function(e,t){e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},uA=function(e,t){e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},uI=function(e,t){e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},uP=function(e,t){e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};uy.supportsNativeHls=function(){if(!eJ()||!eJ().createElement)return!1;var e=eJ().createElement("video");return!!rZ.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),uy.supportsNativeDash=!!eJ()&&!!eJ().createElement&&!!rZ.getTech("Html5").isSupported()&&/maybe|probably/i.test(eJ().createElement("video").canPlayType("application/dash+xml")),uy.supportsTypeNatively=function(e){return"hls"===e?uy.supportsNativeHls:"dash"===e&&uy.supportsNativeDash},uy.isSupported=function(){return rZ.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},uy.xhr.onRequest=function(e){ux(uy.xhr,e)},uy.xhr.onResponse=function(e){uA(uy.xhr,e)},uy.xhr.offRequest=function(e){uI(uy.xhr,e)},uy.xhr.offResponse=function(e){uP(uy.xhr,e)};var uL=function(e){function t(e,n,i){if(o._(this,t),r=s._(this,t,[n,i.vhs]),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=ae("VhsHandler"),n.options_&&n.options_.playerId){var r;r.player_=rZ.getPlayer(n.options_.playerId)}if(r.tech_=n,r.source_=e,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");return r.on(eJ(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=eJ().fullscreenElement||eJ().webkitFullscreenElement||eJ().mozFullScreenElement||eJ().msFullscreenElement;t&&t.contains(r.tech_.el())?r.playlistController_.fastQualityChange_():r.playlistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}return f._(t,e),l._(t,[{key:"setOptions_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options_=eW(this.options_,t),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
1!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var n=uw();n&&n.bandwidth&&(this.options_.bandwidth=n.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),n&&n.throughput&&(this.options_.throughput=n.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=sS.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===sS.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setOptions_(e)}},{key:"src",value:function(e,t){var n,i=this;if(e){this.setOptions_(),this.options_.src=0===(n=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(n.substring(n.indexOf(",")+1)):n,this.options_.tech=this.tech_,this.options_.externVhs=uy,this.options_.sourceType=(0,tt.simpleTypeFromSourceType)(t),this.options_.seekTo=function(e){i.tech_.setCurrentTime(e)},this.playlistController_=new uc(this.options_);var r=eW({liveRangeSafeTimeDelta:an},this.options_,{seekable:function(){return i.seekable()},media:function(){return i.playlistController_.media()},playlistController:this.playlistController_});this.playbackWatcher_=new up(r),this.playlistController_.on("error",function(){var e=rZ.players[i.tech_.options_.playerId],t=i.playlistController_.error;(void 0===t?"undefined":T._(t))!=="object"||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var a=this.options_.bufferBasedABR?uy.movingAverageBandwidthSelector(.55):uy.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):a.bind(this),this.playlistController_.selectInitialPlaylist=uy.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.playlistController_.selectPlaylist},set:function(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.playlistController_.mainSegmentLoader_.bandwidth,t=e$().navigator.connection||e$().navigator.mozConnection||e$().navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){var n=1e3*t.downlink*1e3;e=n>=1e7&&e>=1e7?Math.max(e,n):n}return e},set:function(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){rZ.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.playlistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.playlistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.playlistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.playlistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.playlistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.playlistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.playlistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return i.playlistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return i.playlistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return i.playlistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return i.playlistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return i.playlistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return ac(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},main:{get:function(){return i.playlists.main},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return ac(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",function(){i.options_.useBandwidthFromLocalStorage&&u
1C({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})}),this.playlistController_.on("selectedinitialmedia",function(){uh(i)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",function(){i.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=e$().URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}}},{key:"createKeySessions_",value:function(){var e=this,t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),uS({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.main.playlists}).then(function(){e.logger_("created EME key session"),e.playlistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})})}},{key:"handleWaitingForKey_",value:function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}},{key:"setupEme_",value:function(){var e=this,t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=uE({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});(this.player_.tech_.on("keystatuschange",function(t){e.playlistController_.updatePlaylistByKeyStatus(t.keyId,t.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),n)?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}},{key:"setupQualityLevels_",value:function(){var e=this,t=rZ.players[this.tech_.options_.playerId];
1t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",function(){uT(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){ub(e.qualityLevels_,e.playlists)}))}},{key:"version",value:function(){return this.constructor.version()}},{key:"canChangeType",value:function(){return oY.canChangeType()}},{key:"play",value:function(){this.playlistController_.play()}},{key:"setCurrentTime",value:function(e){this.playlistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.playlistController_.duration()}},{key:"seekable",value:function(){return this.playlistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&e$().URL.revokeObjectURL&&(e$().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),d._(h._(t.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(e,t){return sc({playlist:this.playlistController_.media(),time:e,callback:t})}},{key:"seekToProgramTime",value:function(e,t){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return sd({programTime:e,playlist:this.playlistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}},{key:"setupXhrHooks_",value:function(){var e=this;this.xhr.onRequest=function(t){ux(e.xhr,t)},this.xhr.onResponse=function(t){uA(e.xhr,t)},this.xhr.offRequest=function(t){uI(e.xhr,t)},this.xhr.offResponse=function(t){uP(e.xhr,t)},this.player_.trigger("xhr-hooks-ready")}}],[{key:"version",value:function(){return{"@videojs/http-streaming":uv,"mux.js":"7.0.2","mpd-parser":"1.3.0","m3u8-parser":"7.1.0","aes-decrypter":"4.0.1"}}}]),t}(rZ.getComponent("Component")),uj={name:"videojs-http-streaming",VERSION:uv,canHandleSource:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=eW(rZ.options,t);return uj.canPlayType(e.type,n)},handleSource:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.vhs=new uL(e,t,eW(rZ.options,n)),t.vhs.xhr=a3(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){var n=(0,tt.simpleTypeFromSourceType)(e);if(!n)return"";var i=uj.getOverrideNative(t);return!uy.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vhs,n=!(rZ.browser.IS_ANY_SAFARI||rZ.browser.IS_IOS),i=(void 0===t?{}:t).overrideNative;return void 0===i?n:i}};(0,te.browserSupportsCodec)("avc1.4d400d,mp4a.40.2")&&rZ.getTech("Html5").registerSourceHandler(uj,0),rZ.VhsHandler=uL,rZ.VhsSourceHandler=uj,rZ.Vhs=uy,rZ.use||rZ.registerComponent("Vhs",uy),rZ.options.vhs=rZ.options.vhs||{},rZ.getPlugin&&rZ.getPlugin("reloadSourceOnError")||rZ.registerPlugin("reloadSourceOnError",function(e){ug(this,e)})}),c._(x,"../node_modules/videojs-per-source-behaviors/dist/videojs-per-source-behaviors.es.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var i=n("../node_modules/video.js/dist/video.es-exposed.js"),r=n.n(i),a="3.0.1",s=r().getTech("Html5"),o=r().registerPlugin||r().plugin,u=["abort","emptied","loadstart","play"],l=["abort","emptied"],c=["ad-playback","ads-ready?","postroll?","preroll?"],d=function(e,t){var n;return!!e.usingPlugin("ads")&&(e.usingPlugin("ads")&&"function"==typeof e.ads.inAdBreak?e.ads.isInAdMode()&&"loadstart"!==t.type:(n=e.ads.state,c.indexOf(n)>-1))},h=0,f=function(){var e,t,n=this,i=[],r=!1,o=!0,c=function(e){return function(t,n){var r=this;if(!this.perSourceBehaviors.disabled()){var a=2==arguments.length,s=this.currentSrc(),o=[t],u=arguments[arguments.length-1],l=u.bind(a?this:t),c=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=r.currentSrc()!==s;!r.perSourceBehaviors.disabled()&&((a||e)&&r.off.apply(r,b._(o)),a||l.apply(void 0,b._(n)))};return c.guid=l.guid=u.guid="psb-".concat(++h),a||o.push(n),o.push(c),i.push(o),this.on.apply(this,b._(o))}}};this.perSourceBehaviors={disable:(function(){return this.clearTimeout(t),t=null,r=!0}).bind(this),disabled:function(){return r},enable:function(){return r=!1},enabled:function(){return!r},isSrcStable:function(){return o},VERSION:a},this.onPerSrc=c(),this.onePerSrc=c(!0),this.on("dispose",function(){i.length=0}),this.on(u,function(r){if(!(n.perSourceBehaviors.disabled()||t||d(n,r))){o&&l.indexOf(r.type)>-1&&(o=!1,n.trigger("sourceunstable"));var a=[],u=function(e){return a.push({time:Date.now(),event:e})};u(r),n.on(s.Events,u),t=n.setTimeout(function(){var r=n.currentSrc();o=!0,t=null,n.off(s.Events,u),r&&r!==e&&(i.forEach(function(e){return n.off.apply(n,b._(e))}),i.length=0,n.trigger("sourcechanged",{interimEvents:a,from:e,to:r}),e=r)},1)}})};f.VERSION=a,o("perSourceBehaviors",f)}),c._(x,"../node_modules/videojs-vtt.js/lib/browser-index.js",function(e,t,n){var i=n("../node_modules/global/window.js"),r=e.exports={WebVTT:n("../node_modules/videojs-vtt.js/lib/vtt.js"),VTTCue:n("../node_modules/videojs-vtt.js/lib/vttcue.js"),VTTRegion:n("../node_modules/videojs-vtt.js/lib/vttregi
1on.js")};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=i.VTTCue,u=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=s},r.restore=function(){i.VTTCue=o,i.VTTRegion=u},i.VTTCue||r.shim()}),c._(x,"../node_modules/videojs-vtt.js/lib/vtt.js",function(e,t,n){var i=function(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message},r=function(e){function t(e,t,n,i){return(0|e)*3600+(0|t)*60+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null},a=function(){this.values=_(null)},s=function(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(n);2===s.length&&t(s[0].trim(),s[1].trim())}},o=function(e,t,n){var o=e;function u(){var t=r(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+o);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=u(),l(),"-->"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+o);e=e.substr(3),l(),t.endTime=u(),l();var c=e,d=new a;s(c,function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){d.set(e,n[i].region);break}break;case"vertical":d.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),a=r[0];d.integer(e,a),d.percent(e,a)&&d.set("snapToLines",!1),d.alt(e,a,["auto"]),2===r.length&&d.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),d.percent(e,r[0]),2===r.length&&d.alt("positionAlign",r[1],["start","center","end"]);break;case"size":d.percent(e,t);break;case"align":d.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=d.get("region",null),t.vertical=d.get("vertical","");try{t.line=d.get("line","auto")}catch(e){}t.lineAlign=d.get("lineAlign","start"),t.snapToLines=d.get("snapToLines",!0),t.size=d.get("size",100);try{t.align=d.get("align","center")}catch(e){t.align=d.get("align","middle")}try{t.position=d.get("position","auto")}catch(e){t.position=d.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=d.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)},u=function(e,t){for(var n,i=e.document.createElement("div"),a=i,s=[];null!==(n=function(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}());){if("<"===n[0]){if("/"===n[1]){s.length&&s[s.length-1]===n.substr(2).replace(">","")&&(s.pop(),a=a.parentNode);continue}var o,u,l,c,d=r(n.substr(1,n.length-2));if(d){c=e.document.createProcessingInstruction("timestamp",d),a.appendChild(c);continue}var h=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||!(c=function(t,n){var i=T[t];if(!i)return null;var r=e.document.createElement(i),a=S[t];return a&&n&&(r[a]=n.trim()),r}(h[1],h[3]))||(u=a,E[(l=c).localName]&&E[l.localName]!==u.localName))continue;if(h[2]){var f=h[2].split(".");f.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(k.hasOwnProperty(n)){var i=t?"background-color":"color",r=k[n];c.style[i]=r}}),c.className=f.join(" ")}s.push(h[1]),a.appendChild(c),a=c;continue}a.appendChild(e.document.createTextNode((b.innerHTML=o=n,o=b.textContent,b.textContent="",o)))}return i},l=function(e){for(var t=0;t<w.length;t++){var n=w[t];if(e>=n[0]&&e<=n[1])return!0}return!1},c=function(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}for(i(t,e);n=function e(t){if(!t||!t.length)return null;var n=t.pop(),r=n.textContent||n.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===n.tagName?e(t):n.childNodes?(i(t,n),e(t)):void 0}(t);)for(var r=0;r<n.length;r++)if(l(n.charCodeAt(r)))return"rtl";return"ltr"},d=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return -1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return -1*++i},h=function(){},f=function(e,t,n){h.call(this),this.cue=t,this.cueDiv=u(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"
1===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:c(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}},m=function(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight},g=function(e,t,n,i){var r=new m(t),a=t.cue,s=d(a),o=[];if(a.snapToLines){switch(a.vertical){case"":o=["+y","-y"],u="height";break;case"rl":o=["+x","-x"],u="width";break;case"lr":o=["-x","+x"],u="width"}var u,l=r.lineHeight,c=l*Math.round(s),h=n[u]+l,f=o[0];Math.abs(c)>h&&(c=Math.ceil(h/l)*l*(c<0?-1:1)),s<0&&(c+=""===a.vertical?n.height:n.width,o=o.reverse()),r.move(f,c)}else{var p=r.lineHeight/n.height*100;switch(a.lineAlign){case"center":s-=p/2;break;case"end":s-=p}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new m(t)}var g=function(e,t){for(var r,a=new m(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i);)e.move(t[o]);if(e.within(n))return e;var u=e.intersectPercentage(n);s>u&&(r=new m(e),s=u),e=new m(a)}return r||a}(r,o);t.move(g.toCSSCompatValues(n))},v=function(){},y=n("../node_modules/global/document.js"),_=Object.create||function(){function e(){}return function(t){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();i.prototype=_(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0)&&!!(t<=100)&&(this.set(e,t),!0)}};var b=y.createElement&&y.createElement("textarea"),T={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},k={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},S={v:"title",lang:"lang"},E={rt:"ruby"},w=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
1],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];h.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},h.prototype.formatStyle=function(e,t){return 0===e?0:e+t},f.prototype=_(h.prototype),f.prototype.constructor=f,m.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},m.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},m.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},m.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},m.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},m.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},m.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},m.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},v.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},v.convertCueToDOMTree=function(e,t){return e&&t?u(e,t):null},v.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i,r,a=e.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",n.appendChild(a),!function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){for(var s=0;s<t.length;s++)a.appendChild(t[s].displayState);return}for(var o=[],u=m.getSimpleBoxPosition(a),l={font:Math.round(.05*u.height*100)/100+"px sans-serif"},c=0;c<t.length;c++)i=new f(e,r=t[c],l),a.appendChild(i.div),g(e,i,u,o),r.displayState=i.div,o.push(m.getSimpleBoxPosition(i))},v.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},v.Parser.prototype={reportOrThrowError:function(e){if(p._(e,i))this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u,l=n(),c=l.match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer&&/\r\n|\n/.test(t.buffer);)switch(d?d=!1:l=n(),t.state){case"HEADER":/:/.test(l)?(u=l).match(/X-TIMESTAMP-MAP/)?s(u,function(e,n){if("X-TIMESTAMP-MAP"===e){var i;i=new a,s(n,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",r(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}},/=/):s(u,function(e,n){if("Region"===e){var i=new a;
1if(s(n,function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var r=new a;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(e+"X",r.get("x")),i.set(e+"Y",r.get("y"));break;case"scroll":i.alt(e,t,["up"])}},/=/,/\s/),i.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=i.get("width",100),r.lines=i.get("lines",3),r.regionAnchorX=i.get("regionanchorX",0),r.regionAnchorY=i.get("regionanchorY",100),r.viewportAnchorX=i.get("viewportanchorX",0),r.viewportAnchorY=i.get("viewportanchorY",100),r.scroll=i.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:i.get("id"),region:r})}}},/:/):l||(t.state="ID");continue;case"NOTE":l||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){t.state="NOTE";break}if(!l)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===l.indexOf("-->")){t.cue.id=l;continue}case"CUE":try{o(l,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==l.indexOf("-->");if(!l||h&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=l.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":l||(t.state="ID");continue}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new i(i.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=v}),c._(x,"../node_modules/videojs-vtt.js/lib/vttcue.js",function(e){var t=function(e){return"string"==typeof e&&!!a[e.toLowerCase()]&&e.toLowerCase()},n=function(e,n,a){this.hasBeenReset=!1;var s="",o=!1,u=e,l=n,c=a,d=null,h="",f=!0,p="auto",m="start",g="auto",v="auto",y=100,_="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");u=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t="string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase();if(!1===t)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return f},set:function(e){f=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&e!==i)throw SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var n=t(e);n?(m=n,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var n=t(e);n?(v=n,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(e){var n=t(e);
1if(!n)throw SyntaxError("align: an invalid or illegal alignment string was specified.");_=n,this.hasBeenReset=!0}}}),this.displayState=void 0},i="auto",r={"":1,lr:1,rl:1},a={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};n.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=n}),c._(x,"../node_modules/videojs-vtt.js/lib/vttregion.js",function(e){var t=function(e){return"number"==typeof e&&e>=0&&e<=100},n={"":!0,up:!0};e.exports=function(){var e=100,i=3,r=0,a=100,s=0,o=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(n){if(!t(n))throw Error("Width must be between 0 and 100.");e=n}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!t(e))throw Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!t(e))throw Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!t(e))throw Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return u},set:function(e){var t="string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase();!1===t?console.warn("Scroll: an invalid or illegal string was specified."):u=t}}})}}),c._(x,"../node_modules/webfontloader/webfontloader.js",function(e,t,n){var i;!function(){function r(e,t,n){return e.call.apply(e.bind,arguments)}function a(e,t,n){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function s(e,t,n){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:a).apply(null,arguments)}var o=Date.now||function(){return+new Date};function u(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var l=!!window.FontFace;function c(e,t,n,i){if(t=e.c.createElement(t),n)for(var r in n)n.hasOwnProperty(r)&&("style"==r?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i&&t.appendChild(e.c.createTextNode(i)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){t=t||[],n=n||[];for(var i=e.className.split(/\s+/),r=0;r<t.length;r+=1){for(var a=!1,s=0;s<i.length;s+=1)if(t[r]===i[s]){a=!0;break}a||i.push(t[r])}for(r=0,t=[];r<i.length;r+=1){for(s=0,a=!1;s<n.length;s+=1)if(i[r]===n[s]){a=!0;break}a||t.push(i[r])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(e,t){for(var n=e.className.split(/\s+/),i=0,r=n.length;i<r;i++)if(n[i]==t)return!0;return!1}function m(e,t,n){function i(){o&&r&&a&&(o(s),o=null)}t=c(e,"link",{rel:"stylesheet",href:t,media:"all"});var r=!1,a=!0,s=null,o=n||null;l?(t.onload=function(){r=!0,i()},t.onerror=function(){r=!0,s=Error("Stylesheet failed to load"),i()}):setTimeout(function(){r=!0,i()},0),d(e,"head",t)}function g(e,t,n,i){var r=e.c.getElementsByTagName("head")[0];if(r){var a=c(e,"script",{src:t}),s=!1;return a.onload=a.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&r.removeChild(a))},r.appendChild(a),setTimeout(function(){s||(s=!0,n&&n(Error("Script load timeout")))},i||5e3),a}return null}function v(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,_(e)}}function _(e){0==e.a&&e.c&&(e.c(),e.c=null)}function b(e){this.a=e||"-"}function T(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function k(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var i=e[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?t.push("'"+i+"'"):t.push(i)}return t.join(",")}function S(e){return e.a+e.f}function E(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function w(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new b("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function C(e){if(e.g){var t=p(e.f,e.a.c("wf","active")),n=[],i=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),f(e.f,n,i)}x(e,"inactive")}function x(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,S(n)):e.h[t]())}function A(){this.c={}}function I(e,t){this.c=e,this.f=t,this.a=c(this.c,"span",{"aria-hidden":"true"},this.f)}function P(e){d(e.c,"body",e.a)}function L(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+k(e.c)+";"+("font-style:"+E(e)+";font-weight:"+e.f)+"00;"}function j(e,t,n,i,r,a){this.g=e,this.j=t,this.a=i,this.c=n,this.f=r||3e3,this.h=a||void 0}function O(e,t,n,i,r,a,s){this.v=e,this.B=t,this.c=n,this.a=i,this.s=s||"BESbswy",this.f={},this.w=r||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new I(this.c,this.s),this.h=new I(this.c,this.s),this.j=new I(this.c,this.s),this.m=new I(this.c,this.s),e=L(e=new T(this.a.c+",serif",S(this.a))),this.g.a.style.cssText=e,e=L(e=new T(this.a.c+",sans-serif",S(this.a))),this.h.a.style.cssText=e,e=L(e=new T("serif",S(this.a))),this.j.a.style.cssText=e,e=L(e=new T("sans-serif",S(this.a))),this.m.a.style.cssText=e,P(this.g),P(this.h),P(this.j),P(this.m)}b.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},j.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),i=new Promise(function(i,r){!function a(){var s;o()-n>=t.f?r():e.fonts.load(E(s=t.a)+" "+s.f+"00 300px "+k(s.c),t.h).then(function(e){1<=e.length?
1i():setTimeout(a,25)},function(){r()})}()}),r=null;Promise.race([new Promise(function(e,n){r=setTimeout(n,t.f)}),i]).then(function(){r&&(clearTimeout(r),r=null),t.g(t.a)},function(){t.j(t.a)})};var D={D:"serif",C:"sans-serif"},R=null;function N(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function M(e,t,n){for(var i in D)if(D.hasOwnProperty(i)&&t===e.f[D[i]]&&n===e.f[D[i]])return!0;return!1}function U(e,t){setTimeout(s(function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)},e),0)}function B(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}O.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),function e(t){var n,i=t.g.a.offsetWidth,r=t.h.a.offsetWidth;(n=i===t.f.serif&&r===t.f["sans-serif"])||(n=N()&&M(t,i,r)),n?o()-t.A>=t.w?N()&&M(t,i,r)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?U(t,t.v):U(t,t.B):setTimeout(s(function(){e(this)},t),50):U(t,t.v)}(this)};var F=null;function q(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),x(e,"active")):C(e.a))}function V(e){this.j=e,this.a=new A,this.h=0,this.f=this.g=!0}function H(e,t){this.c=e,this.a=t}function z(e,t){this.c=e,this.a=t}function G(e,t){e?this.c=e:this.c=W,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,S(e).toString(),"active")],[t.a.c("wf",e.c,S(e).toString(),"loading"),t.a.c("wf",e.c,S(e).toString(),"inactive")]),x(t,"fontactive",e),this.m=!0,q(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var n=p(t.f,t.a.c("wf",e.c,S(e).toString(),"active")),i=[],r=[t.a.c("wf",e.c,S(e).toString(),"loading")];n||i.push(t.a.c("wf",e.c,S(e).toString(),"inactive")),f(t.f,i,r)}x(t,"fontinactive",e),q(this)},V.prototype.load=function(e){this.c=new u(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var i,r=[],a=n.timeout;(i=t).g&&f(i.f,[i.a.c("wf","loading")]),x(i,"loading");var r=function(e,t,n){var i,r=[];for(i in t)if(t.hasOwnProperty(i)){var a=e.c[i];a&&r.push(a(t[i],n))}return r}(e.a,n,e.c),o=new B(e.c,t,a);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,i){!function(e,t,n,i,r){var a=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=r||null,o=i||{};if(0===n.length&&a)C(t.a);else{t.f+=n.length,a&&(t.j=a);var u,l=[];for(u=0;u<n.length;u++){var c=n[u],d=o[c.c],h=t.a,p=c;if(h.g&&f(h.f,[h.a.c("wf",p.c,S(p).toString(),"loading")]),x(h,"fontloading",p),h=null,null===F)if(window.FontFace){var p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);F=p?42<parseInt(p[1],10):!m}else F=!1;h=F?new j(s(t.g,t),s(t.h,t),t.c,c,t.s,d):new O(s(t.g,t),s(t.h,t),t.c,c,t.s,e,d),l.push(h)}for(u=0;u<l.length;u++)l[u].start()}},0)}(e,o,t,n,i)})}(this,new w(this.c,e),e)},H.prototype.load=function(e){var t=this,n=t.a.projectId,i=t.a.version;if(n){var r=t.c.o;g(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),function(i){i?e([]):(r["__MonotypeConfiguration__"+n]=function(){return t.a},function t(){if(r["__mti_fntLst"+n]){var i,a=r["__mti_fntLst"+n](),s=[];if(a)for(var o=0;o<a.length;o++){var u=a[o].fontfamily;void 0!=a[o].fontStyle&&void 0!=a[o].fontWeight?(i=a[o].fontStyle+a[o].fontWeight,s.push(new T(u,i))):s.push(new T(u))}e(s)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+n}else e([])},z.prototype.load=function(e){var t,n,i=this.a.urls||[],r=this.a.families||[],a=this.a.testStrings||{},s=new v;for(t=0,n=i.length;t<n;t++)m(this.c,i[t],y(s));var o=[];for(t=0,n=r.length;t<n;t++)if((i=r[t].split(":"))[1])for(var u=i[1].split(","),l=0;l<u.length;l+=1)o.push(new T(i[0],u[l]));else o.push(new T(i[0]));s.c=function(){e(o,a)},_(s)};var W="https://fonts.googleapis.com/css";function Y(e){this.f=e,this.a=[],this.c={}}var X={latin:"BESbswy","latin-ext":"çöüÄÅ",cyrillic:"йÑÐ",greek:"αβΣ",khmer:"ááá",Hanuman:"ááá"},K={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},$={i:"i",italic:"i",n:"n",normal:"n"},Q=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Z={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function et(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){for(var t=new v,n=this.c,i=new G(this.a.api,this.a.text),r=this.a.families,a=r.length,s=0;s<a;s++){var o=r[s].split(":");3==o.length&&i.f.push(o.pop());var u="";2==o.length&&""!=o[1]&&(u=":"),i.a.push(o.join(u))}var l=new Y(r);!function(e){for(var t=e.f.length,n=0;n<t;n++){var i=e.f[n].split(":"),r=i[0].replace(/\+/g," "),a=["n4"];if(2<=i.length){var s,o,u=i[1];if(s=[],u)for(var u=u.split(","),l=u.length,c=0;c<l;c++){if((o=u[c]).match(/^[\w-]+$/)){var d=Q.exec(o.toLowerCase());if(null==d)o="";else{if(o=null==(o=d[2])||""==o?"n":$[o],null==(d=d[1])||""==d)d="4";else var h=K[d],d=h||(isNaN(d)?"4":d.substr(0,1));o=[o,d].join("")}}else o="";o&&s.push(o)}0<s.length&&(a=s),3==i.length&&(i=i[2],s=[],0<(i=i?i.split(","):s).length&&(i=X[i[0]])&&(e.c[r]=i))}for(e.c[r]||(i=X[r])&&(e.c[r]=i),i=0;i<a.length;i+=1)e.a.push(new T(r,a[i]))}}(l),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],i=0;i<t;i++)n.push(e.a[i].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(i),y(t)),t.c=function(){e(l.a,l.c,Z)},_(t)},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var i=[],r=0;r<t.length;r+=2)for(var a=t[r],s=t[r+1],o=0;o<s.length;o++)i.push(new T(a,s[o]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(i)}},2e3):e([])},et.prototype.load=function(e){var t,n=this.f.id,i=this.c.o,r=this;n?(i.__webfontfontdeckmodule__||(i.__webfontfontdeckmodule__={}),i.__webfontfontdeckmodule__[n]=function(t,n){for(var i=0,a=n.fonts.length;i<a;++i){var s=n.fonts[i];r.a.push(new T(s.name,function(e){var t=4,n="n",i=null;return e&&((i=e.match(/(normal|oblique|italic)/i))&&i[1]&&(n=i[1].substr(0,1).toLowerCase()),(i=e.match(/([1-9]00|normal|bold)/i))&&i[1]&&(/bold/i.test(i[1])?t=7:/[1-9]00/.test(i[1])&&(t=parseInt(i[1].substr(0,1),10)))),n+t}("font-weight:"+s.weight+";font-style:"+s.style)))}e(r.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+((t=this.c).o.location.hostname||t.a.location.hostname)+"/"+n+".js",function(t){t&&e([])})):e([])};var en=new V(window);en.a.c.custom=function(e,t){return new z(t,e)},en.a.c.fontdeck=function(e,t){return new et(t,e)},en.a.c.monotype=function(e,t){return new H(t,e)},en.a.c.typekit=function(e,t){return new ee(t,e)}
1,en.a.c.google=function(e,t){return new J(t,e)};var ei={load:s(en.load,en)};void 0===(i=(function(){return ei}).call(t,n,t,e))||(e.exports=i)}()}),c._(x,"?9835",function(){}),c._(x,"../node_modules/@babel/runtime/helpers/extends.js",function(e){function t(){return e.exports=t=Object.assign.bind(),e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}),c._(x,"../node_modules/@babel/runtime/helpers/esm/extends.js",function(e,t,n){"use strict";function i(){return(i=Object.assign.bind()).apply(this,arguments)}n.r(t),n.d(t,{default:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/condition.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i=function(e){function t(e){return o._(this,t),s._(this,t,[e])}return f._(t,e),l._(t,[{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"duration",value:function(e,t){return this.predicate("du",e,t)}},{key:"initialDuration",value:function(e,t){return this.predicate("idu",e,t)}}]),t}(n("../node_modules/@cloudinary/url-gen/backwards/expression.js").default)}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/configuration.js",function(e,t,n){"use strict";n.r(t),n.d(t,{CONFIG_PARAMS:function(){return d},default:function(){return h}});var i=n("../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.js"),a=n("../node_modules/@cloudinary/url-gen/backwards/utils/isObject.js"),s=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){var n,i;for(n in t)i=t[n],void 0===e[n]&&(e[n]=i);return e},e)},u=function(){function e(t){o._(this,e),this.configuration=null==t?{}:(0,i.cloneDeep)(t),s(this.configuration,c)}return l._(e,[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(e,t){return this.configuration[e]=t,this}},{key:"get",value:function(e){return this.configuration[e]}},{key:"merge",value:function(e){return Object.assign(this.configuration,(0,i.cloneDeep)(e)),this}},{key:"fromDocument",value:function(){var e,t,n,i;if(i="u">typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(t=0,n=i.length;t<n;t++)e=i[t],this.configuration[e.getAttribute("name").replace("cloudinary_","")]=e.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var e,t,n,i=this;return void 0!==r.default&&null!==r.default&&r.default.env&&r.default.env.CLOUDINARY_URL&&(e=r.default.env.CLOUDINARY_URL,(n=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(e))&&(null!=n[3]&&(this.configuration.cloud_name=n[3]),null!=n[1]&&(this.configuration.api_key=n[1]),null!=n[2]&&(this.configuration.api_secret=n[2]),null!=n[4]&&(this.configuration.private_cdn=null!=n[4]),null!=n[4]&&(this.configuration.secure_distribution=n[4]),null!=(t=n[5])&&t.split("&").forEach(function(e){var t=y._(e.split("="),2),n=t[0],r=t[1];null==r&&(r=!0),i.configuration[n]=r}))),this}},{key:"config",value:function(e,t){switch(!1){case void 0===t:return this.set(e,t),this.configuration;case"string"!=typeof e:return this.get(e);case!(0,a.isObject)(e):return this.merge(e),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return(0,i.cloneDeep)(this.configuration)}}]),e}(),c={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:("u">typeof window&&null!==window&&window.location?window.location.protocol:void 0)==="https:"},d=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"],h=u}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/consts.js",function(e,t,n){"use strict";n.r(t),n.d(t,{AKAMAI_SHARED_CDN:function(){return s},CF_SHARED_CDN:function(){return r},LAYER_KEYWORD_PARAMS:function(){return f},LEGACY_CONDITIONAL_OPERATORS:function(){return i},LEGACY_PREDEFINED_VARS:function(){return u},NUMBER_PATTERN:function(){return l},OFFSET_ANY_PATTERN:function(){return c},OFFSET_ANY_PATTERN_RE:function(){return h},OLD_AKAMAI_SHARED_CDN:function(){return a},RANGE_VALUE_RE:function(){return d},SHARED_CDN:function(){return o}});var i={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},r="d3jpl91pxevbkh.cloudfront.net",a="cloudinary-a.akamaihd.net",s="res.cloudinary.com",o=s,u={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialHeight:"ih",initialWidth:"iw",initial_duration:"idu",initialDuration:"idu",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},l="([0-9]*)\\.([0-9]+)|([0-9]+)",c="(".concat(l,")([%pP])?"),d=RegExp("^".concat(c,"$")),h=RegExp("(".concat(c,")\\.\\.(").concat(c,")")),f={font_weight:"normal",font_style:"normal",text_decoration:"none",text_align:"",stroke:"none"}}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/createCloudinaryLegacyURL.js",function(e,t,n){"use strict";var i=function(e,t){"fetch"===t.type&&null==t.fetch_format&&(t.fetch_format=t.format);var n,i,l,c=t.type,d=t.resource_type||"image",h=t.version,f="boolean"!=typeof t.force_version||t.force_version;t.long_url_signature;var p=t.format,m=t.cloud_name;if(!m)throw"cloud_name must be provided in the configuration";var g=t.private_cdn,v=t.secure_distribution,_=t.secure,b=t.cdn_subdomain,T=t.secure_cdn_subdomain,k=t.cname,S=t.shorten,E=t.sign_url;t.api_secret;var w=t.url_suffix,C=t.use_root_path,x=t.auth_token,A=/^(image|raw)\/([a-z0-9_]+)\/v(\d+)\/([^#]+)$/.exec(e);A&&(d=A[1],c=A[2],h=A[3],e=A[4]);var I=e;if(null==e||(e=e.toString(),null===c&&e.match(/^https?:\//i)))return I;d=(i=y._((0,a.finalize_resource_type)(d,c,w,C,S),2))[0],c=i[1],e=(l=y._((0,s.finalize_source)(e,p,w),2))[0],n=l[1],null==h&&f&&n.indexOf("/")>=0&&!n.match(/^v[0-9]+/)&&!n.match(/^https?:\//)&&(h=1),h=null!=h?"v".concat(h):null;var P=(0,r.generateTransformationString)((0,u.cloneDeep)(t)).replace(/([^:])\/\//g,"$1/");if(E&&!x){var L=[P,n].filter(function(e){return null!=e&&""!==e}).join("/");try{for(var j=0;L!==decodeURIComponent(L)&&j<10;j++)L=decodeURIComponent(L)}catch(e){}}return[(0,o.unsigned_url_prefix)(e,m,g,b,T,k,_,v),d,c,P,h,e].filter(function(e){return null!=e&&""!==e}).join("/").replace(" ","%20")};n.r(t),n.d(t,{createCloudinaryLegacyURL:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/generateTransformationString.js"),a=n("../node_modules/@cloudinary/url-gen/backwards/utils/finalizeResourceType.js"),s=n("../node_modules/@cloudinary/url-gen/backwards/utils/finalize_source.js"),o=n("../node_modules/@cloudinary/url-gen/backwards/utils/unsigned_url_prefix.js"),u=n("../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.js")}
1),c._(x,"../node_modules/@cloudinary/url-gen/backwards/expression.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var i=function(){function e(t){o._(this,e),this.expressions=[],null!=t&&this.expressions.push(e.normalize(t))}return l._(e,[{key:"serialize",value:function(){return e.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(e){return this.parent=e,this}},{key:"predicate",value:function(e,t,n){return null!=r[t]&&(t=r[t]),this.expressions.push("".concat(e,"_").concat(t,"_").concat(n)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(e,t){return this.predicate("h",e,t)}},{key:"width",value:function(e,t){return this.predicate("w",e,t)}},{key:"aspectRatio",value:function(e,t){return this.predicate("ar",e,t)}},{key:"pageCount",value:function(e,t){return this.predicate("pc",e,t)}},{key:"faceCount",value:function(e,t){return this.predicate("fc",e,t)}},{key:"value",value:function(e){return this.expressions.push(e),this}}],[{key:"new",value:function(e){return new this(e)}},{key:"normalize",value:function(e){var t,n;return null==e?e:(e=String(e),t=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g"),e=e.replace(t,function(e){return r[e]}),n=RegExp("("+Object.keys(a).join("|")+")","g"),(e=e.replace(n,function(t,n,i){return"$"===e[i-1]?t:a[t]})).replace(/[ _]+/g,"_"))}},{key:"variable",value:function(e,t){return new this(e).value(t)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}]),e}(),r={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},a={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp","preview:duration":"preview:duration",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},s=i}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/generateTransformationString.js",function(e,t,n){"use strict";n.r(t),n.d(t,{generateTransformationString:function(){return function e(t){if("string"==typeof t)return t;if(p._(t,m.default))return t.toString();if(Array.isArray(t))return t.map(function(t){return e(t)}).filter(function(e){return e}).join("/");var n,_,b=t.size,k=t.overlay||t.underlay,S=t.crop,E=(0,a.toArray)(t.angle).join("."),w=(t.background||"").replace(/^#/,"rgb:"),C=(t.color||"").replace(/^#/,"rgb:"),x=(0,a.toArray)(t.flags||[]).join("."),A=void 0===t.dpr?t.dpr:(0,g.processDpr)(t.dpr),I=(0,i.processLayer)(t.overlay),P=(0,s.processRadius)(t.radius),L=(0,i.processLayer)(t.underlay),j=(0,r.process_if)(t.if),O=(0,u.processCustomFunction)(t.custom_function),D=(0,l.processCustomPreFunction)(t.custom_pre_function),R=t.fps,N=[],M=(0,a.toArray)(t.transformation||[]),U=t.effect,B=k||E||"fit"===S||"limit"===S;if(b){var F=y._(b.split("x"),2),q=F[0],V=F[1];n=q,_=V}else n=t.width,_=t.height;n&&(0===n.toString().indexOf("auto")||B||1>parseFloat(n.toString()))&&delete t.width,_&&(B||1>parseFloat(_.toString()))&&delete t.height,M.some(function(e){return(void 0===e?"undefined":T._(e))==="object"})?M=M.map(function(t){return(0,o.isObject)(t)?e(t):e({transformation:t})}).filter(function(e){return e}):(N=M.join("."),M=[]),Array.isArray(U)?U=U.join(":"):(0,o.isObject)(U)&&(U=Object.entries(U).map(function(e){var t=y._(e,2),n=t[0],i=t[1];return"".concat(n,":").concat(i)}));var H=t.border;(0,o.isObject)(H)?H="".concat(null!=H.width?H.width:2,"px_solid_").concat((null!=H.color?H.color:"black").replace(/^#/,"rgb:")):/^\d+$/.exec(H)&&(t.border=H,H=void 0),Array.isArray(R)&&(R=R.join("-"));var z={a:(0,d.legacyNormalizeExpression)(E),ar:(0,d.legacyNormalizeExpression)(t.aspect_ratio),b:w,bo:H,c:S,co:C,dpr:(0,d.legacyNormalizeExpression)(A),e:(0,d.legacyNormalizeExpression)(U),fl:x,fn:O||D,fps:R,h:(0,d.legacyNormalizeExpression)(_),ki:(0,d.legacyNormalizeExpression)(t.keyframe_interval),l:I,o:(0,d.legacyNormalizeExpression)(t.opacity),q:(0,d.legacyNormalizeExpression)(t.quality),r:P,t:N,u:L,w:(0,d.legacyNormalizeExpression)(n),x:(0,d.legacyNormalizeExpression)(t.x),y:(0,d.legacyNormalizeExpression)(t.y),z:(0,d.legacyNormalizeExpression)(t.zoom),ac:t.audio_codec,af:t.audio_frequency,br:t.bit_rate,cs:t.color_space,d:t.default_image,dl:t.delay,dn:t.density,du:(0,h.normRangeValues)(t.duration),eo:(0,h.normRangeValues)(t.end_offset||(0,v.isNumberLike)(t.end_offset)?t.end_offset:(0,c.splitRange)(t.offset)[1]),f:t.fetch_format,g:t.gravity,pg:t.page,p:t.prefix,so:(0,h.normRangeValues)(t.start_offset||(0,v.isNumberLike)(t.start_offset)?t.start_offset:(0,c.splitRange)(t.offset)[0]),sp:t.streaming_profile,vc:(0,f.processVideoParams)(t.video_codec),vs:t.video_sampling},G=[j,Object.entries(t).filter(function(e){var t=y._(e,2),n=t[0];return t[1],n.startsWith("$")}).map(function(e){var t=y._(e,2),n=t[0],i=t[1];return"".concat(n,"_").concat((0,d.legacyNormalizeExpression)(i))}).sort().concat((t.variables||[]).map(function(e){var t=y._(e,2),n=t[0],i=t[1];return"".concat(n,"_").concat((0,d.legacyNormalizeExpression)(i))})).join(","),Object.entries(z).filter(function(e){var t=y._(e,2),n=(t[0],t[1]);return!(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)}).map(function(e){var t=y._(e,2),n=t[0],i=t[1];return"".concat(n,"_").concat(i)}).sort().join(","),t.raw_transformation].filter(function(e){return e}).join(",");return G&&M.push(G),M.join("/")}}});var i=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.js"),r=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processIf.js"),a=n("../node_modules/@cloudinary/url-gen/backwards/utils/toArray.js"),s=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processRadius.js"),o=n("../node_modules/@cloudinary/url-gen/backwards/utils/isObject.js"),u=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.js"),l=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomPreFunction.js"),c=n("../node_modules/@cloudinary/url-gen/backwards/utils/splitRange.js"),d=n("../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.js"),h=n("../node_modules/@cloudinary/url-gen/backwards/utils/norm_range_values.js"),f=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processVideoParams.js"),m=n("../node_modules/@cloudinary/url-gen/backwards/transformation.js"),g=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processDpr.js"),v=n("../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.js"),r=n("../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.js"),a=n("../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.js"),u=function(e){function t(e){var n;return o._(this,t),n=s._(this,t,[e]),(0,r.isString)(e)?n.options.url=e:(null!=e?e.url:void 0)&&(n.options.url=e.url),n}return f._(t,e),l._(t,[{key:"url",value:function(e){return this.options.url=e,this}},{key:"toString",value:function(){return"fetch:".concat((0,a.base64Encode)(this.options.url))}}]),t}(i.default)}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var i=n("../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.js"),r=function(){function e(t){var n=this;o._(this,e),this.options={},null!=t&&["resourceType","type","publicId","format"].forEach(function(e){var r;return n.options[e]=null!=(r=t[e])?r:t[(0,i.snakeCase)(e)]})}return l._(e,[{key:"resourceType",value:function(e){return this.options.resourceType=e,this}},{key:"type",value:function(e){return this.options.type=e,this}},{key:"publicId",value:function(e){return this.options.publicId=e,this}},{key:"getPublicId",value:function(){var e;return null!=(e=this.options.publicId)?e.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(e){return this.options.format=e,this}},{key:"toString",value:function(){var e=[];
1if(null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&e.push(this.options.resourceType),"upload"!==this.options.type&&e.push(this.options.type),e.push(this.getFullPublicId()),e.filter(function(e){return!!e}).join(":")}},{key:"clone",value:function(){return new e(this.options)}}]),e}()}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var i=function(e){function t(e){var n;return o._(this,t),(n=s._(this,t,[e])).options.resourceType="subtitles",n}return f._(t,e),t}(n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.js").default)}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.js",function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.js"),r=n("../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.js"),a=n("../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.js"),u=n("../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.js"),c=n("../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.js"),d=function(e){function t(e){var n;return o._(this,t),n=s._(this,t,[e]),null!=e&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text"].forEach(function(t){var i;return n.options[t]=null!=(i=e[t])?i:e[(0,r.snakeCase)(t)]}),n.options.resourceType="text",n}return f._(t,e),l._(t,[{key:"resourceType",value:function(e){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(e){throw"Cannot modify type for text layers"}},{key:"format",value:function(e){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(e){return this.options.fontFamily=e,this}},{key:"fontSize",value:function(e){return this.options.fontSize=e,this}},{key:"fontWeight",value:function(e){return this.options.fontWeight=e,this}},{key:"fontStyle",value:function(e){return this.options.fontStyle=e,this}},{key:"textDecoration",value:function(e){return this.options.textDecoration=e,this}},{key:"textAlign",value:function(e){return this.options.textAlign=e,this}},{key:"stroke",value:function(e){return this.options.stroke=e,this}},{key:"letterSpacing",value:function(e){return this.options.letterSpacing=e,this}},{key:"lineSpacing",value:function(e){return this.options.lineSpacing=e,this}},{key:"fontHinting",value:function(e){return this.options.fontHinting=e,this}},{key:"fontAntialiasing",value:function(e){return this.options.fontAntialiasing=e,this}},{key:"text",value:function(e){return this.options.text=e,this}},{key:"toString",value:function(){var e,t,n,i,r,s,o,l,c;if(o=this.textStyleIdentifier(),null!=this.options.publicId&&(n=this.getFullPublicId()),null!=this.options.text){if(e=!(0,a.isEmpty)(n),t=!(0,a.isEmpty)(o),e&&t||!e&&!t)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(i=/\$\([a-zA-Z]\w*\)/g,s=0,c=(0,u.smartEscape)(this.options.text,/[,\/]/g),l="";r=i.exec(c);)l+=(0,u.smartEscape)(c.slice(s,r.index)),l+=r[0],s=r.index+r[0].length;l+=(0,u.smartEscape)(c.slice(s))}return[this.options.resourceType,o,n,l].filter(function(e){return!!e}).join(":")}},{key:"textStyleIdentifier",value:function(){var e;if(e=[],"normal"!==this.options.fontWeight&&e.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&e.push(this.options.fontStyle),"none"!==this.options.textDecoration&&e.push(this.options.textDecoration),e.push(this.options.textAlign),"none"!==this.options.stroke&&e.push(this.options.stroke),(0,a.isEmpty)(this.options.letterSpacing)&&!(0,c.isNumberLike)(this.options.letterSpacing)||e.push("letter_spacing_"+this.options.letterSpacing),(0,a.isEmpty)(this.options.lineSpacing)&&!(0,c.isNumberLike)(this.options.lineSpacing)||e.push("line_spacing_"+this.options.lineSpacing),(0,a.isEmpty)(this.options.fontAntialiasing)||e.push("antialias_"+this.options.fontAntialiasing),(0,a.isEmpty)(this.options.fontHinting)||e.push("hinting_"+this.options.fontHinting),!(0,a.isEmpty)(e.filter(function(e){return!!e}))){if((0,a.isEmpty)(this.options.fontFamily))throw"Must supply fontFamily. ".concat(e);
1if((0,a.isEmpty)(this.options.fontSize)&&!(0,c.isNumberLike)(this.options.fontSize))throw"Must supply fontSize."}return e.unshift(this.options.fontFamily,this.options.fontSize),e=e.filter(function(e){return!!e}).join("_")}}]),t}(i.default)}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformation.js",function(e,t,n){"use strict";var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(t){Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}),e},r=function(e){var t;return(t=null!=e?e[e.length-1]:void 0,(0,A.isFunction)(t))?t:void 0},a=function(e){var t,n,i,r,a,s;if(!Array.isArray(e))return e;for(t=0,r=[],n=e.length;t<n;t++)i=(s=y._(e[t],2))[0],a=s[1],r.push("".concat(i,"_").concat(b.default.normalize(a)));return r},u=function(e){var t=e.function_type,n=e.source;return"remote"===t?[t,btoa(n)].join(":"):"wasm"===t?[t,n].join(":"):void 0};n.r(t),n.d(t,{URL_KEYS:function(){return I},default:function(){return H}});var c=n("../node_modules/@cloudinary/url-gen/backwards/condition.js"),m=n("../node_modules/@cloudinary/url-gen/backwards/configuration.js"),g=n("../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.js"),v=n("../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.js"),_=n("../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.js"),b=n("../node_modules/@cloudinary/url-gen/backwards/expression.js"),T=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.js"),k=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.js"),S=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/subtitleslayer.js"),E=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/fetchlayer.js"),w=n("../node_modules/@cloudinary/url-gen/backwards/utils/isObject.js"),C=n("../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.js"),x=n("../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.js"),A=n("../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.js"),I=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"],P=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.identity;o._(this,e),this.name=t,this.shortName=n,this.process=i}return l._(e,[{key:"set",value:function(e){return this.origValue=e,this}},{key:"serialize",value:function(){var e,t;return(t=Array.isArray(e=this.value())||(0,w.isObject)(e)||(0,C.isString)(e)?!(0,x.isEmpty)(e):null!=e,null!=this.shortName&&t)?"".concat(this.shortName,"_").concat(e):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(e){return null!=e?e.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(e){return null==e?[]:Array.isArray(e)?e:[e]}},{key:"process_video_params",value:function(e){var t;switch(e.constructor){case Object:return t="","codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level))),t;case String:return e;default:return null}}}]),e}(),L=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return o._(this,t),(i=s._(this,t,[e,n,a])).sep=r,i}return f._(t,e),l._(t,[{key:"serialize",value:function(){if(null==this.shortName)return"";var e=this.value();if((0,x.isEmpty)(e))return"";if((0,C.isString)(e))return"".concat(this.shortName,"_").concat(e);var t=e.map(function(e){return(0,A.isFunction)(e.serialize)?e.serialize():e}).join(this.sep);return"".concat(this.shortName,"_").concat(t)}},{key:"value",value:function(){var e=this;return Array.isArray(this.origValue)?this.origValue.map(function(t){return e.process(t)}):this.process(this.origValue)}},{key:"set",value:function(e){return null==e||Array.isArray(e)?d._(h._(t.prototype),"set",this).call(this,e):d._(h._(t.prototype),"set",this).call(this,[e])}}]),t}(P),j=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return o._(this,t),(n=s._(this,t,[e,i,a])).sep=r,n}return f._(t,e),l._(t,[{key:"serialize",value:function(){var e=this,t="",n=this.value();if((0,x.isEmpty)(n))return t;if(n.length&&n.every(C.isString)){var i=n.join(this.sep);(0,x.isEmpty)(i)||(t="".concat(this.shortName,"_").concat(i))}else t=n.map(function(t){return(0,C.isString)(t)&&!(0,x.isEmpty)(t)?"".concat(e.shortName,"_").concat(t):(0,A.isFunction)(t.serialize)?t.serialize():(0,w.isObject)(t)&&!(0,x.isEmpty)(t)?new F(t).serialize():void 0}).filter(function(e){return e});return t}},{key:"set",value:function(e){return(this.origValue=e,Array.isArray(this.origValue))?d._(h._(t.prototype),"set",this).call(this,this.origValue):d._(h._(t.prototype),"set",this).call(this,[this.origValue])}}]),t}(P),O=function(e){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.norm_range_value;return o._(this,t),s._(this,t,[e,n,i])}return f._(t,e),l._(t,null,[{key:"norm_range_value",value:function(e){var t=String(e).match(RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(t){var n=null!=t[5]?"p":"";e=(t[1]||t[4])+n}return e}}]),t}(P),D=function(e){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.identity;return o._(this,t),s._(this,t,[e,n,i])}return f._(t,e),l._(t,[{key:"serialize",value:function(){return this.value()}}]),t}(P),R=function(e){function t(){return o._(this,t),s._(this,t,arguments)}return f._(t,e),l._(t,[{key:"value",value:function(){if(null==this.origValue)return"";if(p._(this.origValue,T.default))e=this.origValue;else if((0,w.isObject)(this.origValue)){var e,t=(0,v.withCamelCaseKeys)(this.origValue);e="text"===t.resourceType||null!=t.text?new k.default(t):"subtitles"===t.resourceType?new S.default(t):"fetch"===t.resourceType||null!=t.url?new E.default(t):new T.default(t)}else e=(0,C.isString)(this.origValue)?/^fetch:.+/.test(this.origValue)?new E.default(this.origValue.substr(6)):this.origValue:"";return e.toString()}}],[{key:"textStyle",value:function(e){return new k.default(e).textStyleIdentifier()}}]),t}(P),N=function(){function e(t){var n,a,s=this;o._(this,e),n=void 0,a={},this.toOptions=function(e){var t={};
1if(null==e&&(e=!0),Object.keys(a).forEach(function(e){return t[e]=a[e].origValue}),i(t,s.otherOptions),e&&!(0,x.isEmpty)(s.chained)){var n=s.chained.map(function(e){return e.toOptions()});n.push(t),i(t={},s.otherOptions),t.transformation=n}return t},this.setParent=function(e){return n=e,null!=e&&s.fromOptions("function"==typeof e.toOptions?e.toOptions():void 0),s},this.getParent=function(){return n},this.param=function(e,t,n,i,r){return null==r&&(r=(0,A.isFunction)(i)?i:v.identity),a[t]=new P(t,n,r).set(e),s},this.rawParam=function(e,t,n,i,s){return s=r(arguments),a[t]=new D(t,n,s).set(e),this},this.rangeParam=function(e,t,n,i,s){return s=r(arguments),a[t]=new O(t,n,s).set(e),this},this.arrayParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":",s=(arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0);return s=r(arguments),a[t]=new L(t,n,i,s).set(e),this},this.transformationParam=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=(arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0);return s=r(arguments),a[t]=new j(t,n,i,s).set(e),this},this.layerParam=function(e,t,n){return a[t]=new R(t,n).set(e),this},this.getValue=function(e){var t=a[e]&&a[e].value();return null!=t?t:this.otherOptions[e]},this.get=function(e){return a[e]},this.remove=function(e){var t;switch(!1){case null==a[e]:return t=a[e],delete a[e],t.origValue;case null==this.otherOptions[e]:return t=this.otherOptions[e],delete this.otherOptions[e],t;default:return null}},this.keys=function(){var e;return(function(){var t;for(e in t=[],a)null!=e&&t.push(e.match(M)?e:(0,_.snakeCase)(e));return t})().sort()},this.toPlainObject=function(){var e,t,n;for(t in e={},a)e[t]=a[t].value(),(0,w.isObject)(e[t])&&(e[t]=(0,g.cloneDeep)(e[t]));return(0,x.isEmpty)(this.chained)||((n=this.chained.map(function(e){return e.toPlainObject()})).push(e),e={transformation:n}),e},this.chain=function(){var e;return 0!==Object.getOwnPropertyNames(a).length&&(e=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(e)),this},this.resetTransformations=function(){return a={},this},this.otherOptions={},this.chained=[],this.fromOptions(t)}return l._(e,[{key:"fromOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p._(t,e))this.fromTransformation(t);else for(var n in((0,C.isString)(t)||Array.isArray(t))&&(t={transformation:t}),(t=(0,g.cloneDeep)(t)).if&&(this.set("if",t.if),delete t.if),t){var i=t[n];null!=i&&(n.match(M)?"$attr"!==n&&this.set("variable",n,i):this.set(n,i))}return this}},{key:"fromTransformation",value:function(t){var n=this;return p._(t,e)&&t.keys().forEach(function(e){return n.set(e,t.get(e).origValue)}),this}},{key:"set",value:function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t=(0,v.camelCase)(e),(0,v.contains)(q,t)?this[t].apply(this,i):this.otherOptions[e]=i[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var e,t,n,i,r,s,o,u,l,c,d,h,f,p,m,g,y;for(c=this.chained.map(function(e){return e.serialize()}),i=this.keys(),p=null!=(r=this.get("transformation"))?r.serialize():void 0,e=null!=(s=this.get("if"))?s.serialize():void 0,g=a(null!=(o=this.get("variables"))?o.value():void 0),i=(0,v.difference)(i,["transformation","if","variables"]),y=[],h=[],t=0,n=i.length;t<n;t++)(d=i[t]).match(M)?y.push(d+"_"+b.default.normalize(null!=(u=this.get(d))?u.value():void 0)):h.push(null!=(l=this.get(d))?l.serialize():void 0);switch(!1){case!(0,C.isString)(p):h.push(p);break;case!Array.isArray(p):c=c.concat(p)}return h=function(){var e,t,n;for(e=0,n=[],t=h.length;e<t;e++)(Array.isArray(m=h[e])&&!(0,x.isEmpty)(m)||!Array.isArray(m)&&m)&&n.push(m);return n}(),h=y.sort().concat(g).concat(h.sort()),"if_end"===e?h.push(e):(0,x.isEmpty)(e)||h.unshift(e),f=h.filter(function(e){return!!e}).join(B),(0,x.isEmpty)(f)||c.push(f),c.filter(function(e){return!!e}).join(U)}},{key:"toHtmlAttributes",value:function(){var e,t,n,i,r,a,s,o=this;return t={}
1,Object.keys(this.otherOptions).forEach(function(e){r=o.otherOptions[e],s=(0,_.snakeCase)(e),(0,v.contains)(V,s)||(0,v.contains)(I,s)||(t[/^html_/.test(e)?e.slice(5):e]=r)}),this.keys().forEach(function(e){/^html_/.test(e)&&(t[(0,v.camelCase)(e.slice(5))]=o.getValue(e))}),!(this.hasLayer()||this.getValue("angle")||(0,v.contains)(["fit","limit","lfill"],this.getValue("crop")))&&(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(i=this.get("height"))?i.origValue:void 0,parseFloat(a)>=1&&null==t.width&&(t.width=a),parseFloat(e)>=1&&null==t.height&&(t.height=e)),t}},{key:"toHtml",value:function(){var e;return null!=(e=this.getParent())&&"function"==typeof e.toHtml?e.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new e(this.toOptions(!0))}}],[{key:"listNames",value:function(){return q}},{key:"isValidParamName",value:function(e){return q.indexOf((0,v.camelCase)(e))>=0}}]),e}(),M=/^\$[a-zA-Z0-9]+$/,U="/",B=",",F=function(e){function t(e){return o._(this,t),s._(this,t,[e])}return f._(t,e),l._(t,[{key:"angle",value:function(e){return this.arrayParam(e,"angle","a",".",b.default.normalize),this}},{key:"audioCodec",value:function(e){return this.param(e,"audio_codec","ac"),this}},{key:"audioFrequency",value:function(e){return this.param(e,"audio_frequency","af"),this}},{key:"aspectRatio",value:function(e){return this.param(e,"aspect_ratio","ar",b.default.normalize),this}},{key:"background",value:function(e){return this.param(e,"background","b",P.norm_color),this}},{key:"bitRate",value:function(e){return this.param(e,"bit_rate","br"),this}},{key:"border",value:function(e){return this.param(e,"border","bo",function(e){return(0,w.isObject)(e)?(e=Object.assign({},{color:"black",width:2},e),"".concat(e.width,"px_solid_").concat(P.norm_color(e.color))):e})}},{key:"color",value:function(e){return this.param(e,"color","co",P.norm_color),this}},{key:"colorSpace",value:function(e){return this.param(e,"color_space","cs"),this}},{key:"crop",value:function(e){return this.param(e,"crop","c"),this}},{key:"customFunction",value:function(e){return this.param(e,"custom_function","fn",function(){return u(e)})}},{key:"customPreFunction",value:function(e){if(!this.get("custom_function"))return this.rawParam(e,"custom_function","",function(){return(e=u(e))?"fn_pre:".concat(e):e})}},{key:"defaultImage",value:function(e){return this.param(e,"default_image","d"),this}},{key:"delay",value:function(e){return this.param(e,"delay","dl"),this}},{key:"density",value:function(e){return this.param(e,"density","dn"),this}},{key:"duration",value:function(e){return this.rangeParam(e,"duration","du"),this}},{key:"dpr",value:function(e){return this.param(e,"dpr","dpr",function(e){return(null!=(e=e.toString())?e.match(/^\d+$/):void 0)?e+".0":b.default.normalize(e)})}},{key:"effect",value:function(e){return this.arrayParam(e,"effect","e",":",b.default.normalize),this}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(e){return this.rangeParam(e,"end_offset","eo"),this}},{key:"fallbackContent",value:function(e){return this.param(e,"fallback_content"),this}},{key:"fetchFormat",value:function(e){return this.param(e,"fetch_format","f"),this}},{key:"format",value:function(e){return this.param(e,"format"),this}},{key:"flags",value:function(e){return this.arrayParam(e,"flags","fl","."),this}},{key:"gravity",value:function(e){return this.param(e,"gravity","g"),this}},{key:"fps",value:function(e){return this.param(e,"fps","fps",function(e){return(0,C.isString)(e)?e:Array.isArray(e)?e.join("-"):e})}},{key:"height",value:function(e){var t=this;return this.param(e,"height","h",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?b.default.normalize(e):null})}},{key:"htmlHeight",value:function(e){return this.param(e,"html_height"),this}},{key:"htmlWidth",value:function(e){return this.param(e,"html_width"),this}},{key:"if",value:function(){var e,n,i,r,a,s,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(o){case"else":return this.chain(),this.param(o,"if","if");case"end":for(this.chain(),e=i=r=this.chained.length-1;i>=0&&"end"!==(n=this.chained[e].getValue("if"))&&(null==n||(a=t.new().if(n),this.chained[e].remove("if"),s=this.chained[e],this.chained[e]=t.new().transformation([a,s]),"else"===n));e=i+=-1);return this.param(o,"if","if");case"":return c.default.new().setParent(this);default:return this.param(o,"if","if",function(e){return c.default.new(e).toString()})}}},{key:"keyframeInterval",value:function(e){return this.param(e,"keyframe_interval","ki"),this}},{key:"ocr",value:function(e){return this.param(e,"ocr","ocr"),this}},{key:"offset",value:function(e){var t,n,i;if(n=(i=y._((0,A.isFunction)(null!=e?e.split:void 0)?e.split(".."):Array.isArray(e)?e:[null,null],2))[0],t=i[1],null!=n&&this.startOffset(n),null!=t)return this.endOffset(t)}},{key:"opacity",value:function(e){return this.param(e,"opacity","o",b.default.normalize),this}},{key:"overlay",value:function(e){return this.layerParam(e,"overlay","l"),this}},{key:"page",value:function(e){return this.param(e,"page","pg"),this}},{key:"poster",value:function(e){return this.param(e,"poster"),this}},{key:"prefix",value:function(e){return this.param(e,"prefix","p"),this}},{key:"quality",value:function(e){return this.param(e,"quality","q",b.default.normalize),this}},{key:"radius",value:function(e){return this.arrayParam(e,"radius","r",":",b.default.normalize),this}},{key:"rawTransformation",value:function(e){return this.rawParam(e,"raw_transformation"),this}},{key:"size",value:function(e){var t,n,i;if((0,A.isFunction)(null!=e?e.split:void 0))return n=(i=y._(e.split("x"),2))[0],t=i[1],this.width(n),this.height(t)}},{key:"sourceTypes",value:function(e){return this.param(e,"source_types"),this}},{key:"sourceTransformation",value:function(e){return this.param(e,"source_transformation")}},{key:"startOffset",value:function(e){return this.rangeParam(e,"start_offset","so"),this}},{key:"streamingProfile",value:function(e){return this.param(e,"streaming_profile","sp"),this}},{key:"transformation",value:function(e){return this.transformationParam(e,"transformation","t"),this}},{key:"underlay",value:function(e){return this.layerParam(e,"underlay","u"),this}},{key:"variable",value:function(e,t){return this.param(t,e,e),this}},{key:"variables",value:function(e){return this.arrayParam(e,"variables"),this}},{key:"videoCodec",value:function(e){return this.param(e,"video_codec","vc",P.process_video_params),this}},{key:"videoSampling",value:function(e){return this.param(e,"video_sampling","vs"),this}},{key:"width",value:function(e){var t=this;return this.param(e,"width","w",function(){return t.getValue("crop")||t.getValue("overlay")||t.getValue("underlay")?b.default.normalize(e):null}),this}},{key:"x",value:function(e){return this.param(e,"x","x",b.default.normalize),this}},{key:"y",value:function(e){return this.param(e,"y","y",b.default.normalize),this}},{key:"zoom",value:function(e){return this.param(e,"zoom","z",b.default.normalize),this}}],[{key:"new",value:function(e){return new t(e)}}]),t}(N),q=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],V=q.map(_.snakeCase).concat(m.CONFIG_PARAMS),H=F}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.js",function(e,t,n){"use strict";var i=function(e){if(!(0,a.isObject)(e))return e;if("remote"===e.function_type){var t=(0,r.base64Encode)(e.source).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return[e.function_type,t].join(":")}return[e.function_type,e.source].join(":")};n.r(t),n.d(t,{processCustomFunction:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.js"),a=n("../node_modules/@cloudinary/url-gen/backwards/utils/isObject.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomPreFunction.js",function(e,t,n){"use strict";var i=function(e){var t=(0,r.processCustomFunction)(e);return"string"==typeof t?"pre:".concat(t):null};n.r(t),n.d(t,{processCustomPreFunction:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processCustomFunction.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processDpr.js",function(e,t,n){"use strict";var i=function(e){var t=e.toString();return(null!=t?t.match(/^\d+$/):void 0)?t+".0":r.default.normalize(t)};n.r(t),n.d(t,{processDpr:function(){return i}});
1var r=n("../node_modules/@cloudinary/url-gen/backwards/expression.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processIf.js",function(e,t,n){"use strict";var i=function(e){return e?"if_"+(0,r.legacyNormalizeExpression)(e):e};n.r(t),n.d(t,{process_if:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processLayer.js",function(e,t,n){"use strict";var i=function(e){var t=[],n="";if(Object.keys(o.LAYER_KEYWORD_PARAMS).forEach(function(n){var i=o.LAYER_KEYWORD_PARAMS[n],r=e[n]||i;r!==i&&t.push(r)}),Object.keys(e).forEach(function(n){("letter_spacing"===n||"line_spacing"===n)&&t.push("".concat(n,"_").concat(e[n])),"font_hinting"===n&&t.push("".concat(n.split("_").pop(),"_").concat(e[n])),"font_antialiasing"===n&&t.push("antialias_".concat(e[n]))}),e.hasOwnProperty("font_size")||!t||0===t.length){if(!e.font_size)throw"Must supply font_size for text in overlay/underlay";if(!e.font_family)throw"Must supply font_family for text in overlay/underlay";t.unshift(e.font_size),t.unshift(e.font_family),n=t.filter(function(e){return e}).join("_")}return n},r=function(e){if(p._(e,l.default)||p._(e,c.default))return e.toString();var t="";if((0,a.isObject)(e))if("fetch"===e.resource_type||null!=e.url)t="fetch:".concat((0,s.base64Encode)(e.url));else{var n=e.public_id,r=e.format,o=e.resource_type||"image",d=e.type||"upload",h=e.text,f=null,m=[],g=!n||0===n.length;if(g||(n=n.replace(RegExp("/","g"),":"),null!=r&&(n="".concat(n,".").concat(r))),h&&0!==h.length||"text"===o){if(o="text",d=null,f=i(e),h&&h.length>=0){var v=!f;if(!(g||v)||g&&v)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay";var y=/\$\([a-zA-Z]\w*\)/g,_=0,b=(0,u.smartEscape)(decodeURIComponent(h),/[,\/]/g);h="";for(var T=y.exec(b);T;T=y.exec(b))h+=(0,u.smartEscape)(b.slice(_,T.index)),h+=T[0],_=T.index+T[0].length;h+=encodeURIComponent(b.slice(_))}}else{if(g)throw"Must supply public_id for resource_type layer_parameter";"subtitles"===o&&(f=i(e))}"image"!==o&&m.push(o),"upload"!==d&&m.push(d),m.push(f),m.push(n),m.push(h),t=m.filter(function(e){return e}).join(":")}else t=/^fetch:.+/.test(e)?"fetch:".concat((0,s.base64Encode)(e.substr(6))):e;return t};n.r(t),n.d(t,{processLayer:function(){return r},textStyle:function(){return i}});var a=n("../node_modules/@cloudinary/url-gen/backwards/utils/isObject.js"),s=n("../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.js"),o=n("../node_modules/@cloudinary/url-gen/backwards/consts.js"),u=n("../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.js"),l=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/textlayer.js"),c=n("../node_modules/@cloudinary/url-gen/backwards/legacyLayer/layer.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processRadius.js",function(e,t,n){"use strict";var i=function(e){var t=e;if(!t)return t;if(Array.isArray(t)||(t=[t]),0===t.length||t.length>4)throw Error("Radius array should contain between 1 and 4 values");if(t.findIndex(function(e){return null===e})>=0)throw Error("Corner: Cannot be null");return t.map(r.legacyNormalizeExpression).join(":")};n.r(t),n.d(t,{processRadius:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/transformationProcessing/processVideoParams.js",function(e,t,n){"use strict";var i=function(e){switch(e&&e.constructor){case Object:var t="";return"codec"in e&&(t=e.codec,"profile"in e&&(t+=":"+e.profile,"level"in e&&(t+=":"+e.level))),t;case String:return e;default:return null}};n.r(t),n.d(t,{processVideoParams:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/finalizeResourceType.js",function(e,t,n){"use strict";var i=function(e,t,n,i,r){if(null==t&&(t="upload"),null!=n)if("image"===e&&"upload"===t)e="images",t=null;else if("image"===e&&"private"===t)e="private_images",t=null;else if("image"===e&&"authenticated"===t)e="authenticated_images",t=null;else if("raw"===e&&"upload"===t)e="files",t=null;else if("video"===e&&"upload"===t)e="videos",t=null;else throw Error("URL Suffix only supported for image/upload, image/private, image/authenticated, video/upload and raw/upload");if(i)if("image"===e&&"upload"===t||"images"===e&&null==t)e=null,t=null;else throw Error("Root path only supported for image/upload");return r&&"image"===e&&"upload"===t&&(e="iu",t=null),[e,t]};n.r(t),n.d(t,{finalize_resource_type:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/finalize_source.js",function(e,t,n){"use strict";var i=function(e,t,n){var i;if((e=e.replace(/([^:])\/\//g,"$1/")).match(/^https?:\//i))i=e=(0,r.smartEscape)(e);else{if(i=e=encodeURIComponent(decodeURIComponent(e)).replace(/%3A/g,":").replace(/%2F/g,"/"),n){if
1(n.match(/[\.\/]/))throw Error("url_suffix should not include . or /");e=e+"/"+n}null!=t&&(e=e+"."+t,i=i+"."+t)}return[e,i]};n.r(t),n.d(t,{finalize_source:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.js",function(e,t,n){"use strict";var i=function(e){return null==e||(void 0===e?"undefined":T._(e))==="object"&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length};n.r(t),n.d(t,{isEmpty:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/isFunction.js",function(e,t,n){"use strict";var i=function(e){return p._(e,Function)};n.r(t),n.d(t,{isFunction:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/isNumberLike.js",function(e,t,n){"use strict";n.r(t),n.d(t,{isNumberLike:function(){return i}});var i=function(e){return null!=e&&!isNaN(parseFloat(e))}}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/isObject.js",function(e,t,n){"use strict";var i=function(e){return(void 0===e?"undefined":T._(e))==="object"&&null!==e};n.r(t),n.d(t,{isObject:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/legacyBaseUtil.js",function(e,t,n){"use strict";var i,r=function(e){return e},a=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},s=function(e,t){return e.filter(function(e){return!t.includes(e)})};n.r(t),n.d(t,{camelCase:function(){return l},contains:function(){return a},convertKeys:function(){return c},difference:function(){return s},identity:function(){return r},reWords:function(){return d},withCamelCaseKeys:function(){return u}});var o=n("../node_modules/@cloudinary/url-gen/backwards/utils/isEmpty.js"),u=function(e){return c(e,l)},l=function(e){var t=e.match(d);return(t=t.map(function(e){return e.charAt(0).toLocaleUpperCase()+e.slice(1).toLocaleLowerCase()}))[0]=t[0].toLocaleLowerCase(),t.join("")},c=function(e,t){var n,i;for(var r in n={},e)i=e[r],t&&(r=t(r)),(0,o.isEmpty)(r)||(n[r]=i);return n},d=RegExp((i="[A-Z]")+"+(?="+i+"[a-z]+)|"+i+"?[a-z]+|"+i+"+|[0-9]+","g")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/legacyNormalizeExpression.js",function(e,t,n){"use strict";var i=function(e){if("string"!=typeof e||0===e.length||e.match(/^!.+!$/))if(e)return e.toString();else return e;e=String(e);var t=RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(t,function(e){return r.LEGACY_CONDITIONAL_OPERATORS[e]});var n="("+Object.keys(r.LEGACY_PREDEFINED_VARS).join("|")+")",i=RegExp("".concat("(\\$_*[^_ ]+)","|").concat(n),"g");return(e=e.replace(i,function(e){return r.LEGACY_PREDEFINED_VARS[e]||e})).replace(/[ _]+/g,"_")};n.r(t),n.d(t,{legacyNormalizeExpression:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/consts.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/norm_range_values.js",function(e,t,n){"use strict";var i=function(e){var t=String(e).match(r.RANGE_VALUE_RE);if(!t)return e;var n=t[5]?"p":"";return"".concat(t[1]||t[4]).concat(n)};n.r(t),n.d(t,{normRangeValues:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/consts.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/smartEscape.js",function(e,t,n){"use strict";var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return e.replace(t,function(e){return e.split("").map(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}).join("")})};n.r(t),n.d(t,{smartEscape:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/snakeCase.js",function(e,t,n){"use strict";n.r(t),n.d(t,{snakeCase:function(){return i}});var i=function(e){return e.replace(/[A-Z]/g,function(e){return"_".concat(e.toLowerCase())})}}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/splitRange.js",function(e,t,n){"use strict";var i=function(e){switch(e&&e.constructor){case String:if(!r.OFFSET_ANY_PATTERN_RE.test(e))return e;return e.split("..");case Array:return[[e],e[e.length-1]];
1default:return[null,null]}};n.r(t),n.d(t,{splitRange:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/consts.js")}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/toArray.js",function(e,t,n){"use strict";var i=function(e){switch(!0){case null==e:return[];case Array.isArray(e):return e;default:return[e]}};n.r(t),n.d(t,{toArray:function(){return i}})}),c._(x,"../node_modules/@cloudinary/url-gen/backwards/utils/unsigned_url_prefix.js",function(e,t,n){"use strict";var i=function(e,t,n,i,a,s,o,u){if(0===t.indexOf("/"))return"/res"+t;var l,c=!n;return o?((null==u||u===r.OLD_AKAMAI_SHARED_CDN)&&(u=n?t+"-res.cloudinary.com":r.SHARED_CDN),null==c&&(c=u===r.SHARED_CDN),l="https://"+u):l=s?"http://"+s:"http://"+(n?t+"-":"")+"res.cloudinary.com",c&&(l+="/"+t),l};n.r(t),n.d(t,{unsigned_url_prefix:function(){return i}});var r=n("../node_modules/@cloudinary/url-gen/backwards/consts.js")}),c._(x,"../node_modules/@cloudinary/url-gen/internal/utils/base64Encode.js",function(t,n,i){"use strict";var r=function(t){return("u">typeof window?btoa(encodeURI(decodeURI(t))):e.g.Buffer.from(t).toString("base64")).replace(/\+/g,"-").replace(/\//g,"_")};i.r(n),i.d(n,{base64Encode:function(){return r}})}),c._(x,"../node_modules/@cloudinary/url-gen/internal/utils/cloneDeep.js",function(i,r,a){"use strict";var s,o=function(e,t){return e.set(t[0],t[1]),e},u=function(e,t){return e.add(t),e},l=function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n,e););return e},c=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},d=function(e,t,n,i){var r=-1,a=e?e.length:0;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n},h=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},f=function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!"".concat(e)}catch(e){}return t},m=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n},g=function(e,t){return function(n){return e(t(n))}},v=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},y=function(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}},_=function(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}},b=function(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}},k=function(e){this.__data__=new _(e)},S=function(e,t){var n=tu(e)||Y(e)?h(e.length,String):[],i=n.length,r=!!i;for(var a in e)(t||ez.call(e,a))&&!(r&&("length"==a||F(a,i)))&&n.push(a);return n},E=function(e,t,n){var i=e[t];ez.call(e,t)&&W(i,n)&&(void 0!==n||t in e)||(e[t]=n)},w=function(e,t){for(var n=e.length;n--;)if(W(e[n][0],t))return n;return -1},C=function(e,t,n){var i=t(e);return tu(e)?i:c(i,n(e))},x=function(e){if(!H(e))return e2(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},A=function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n},I=function(e){var t=new e.constructor(e.byteLength);return new eK(t).set(new eK(e)),t},P=function(e,t){var n=t?I(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},L=function(e){var t=new e.constructor(e.source,eA.exec(e));return t.lastIndex=e.lastIndex,t},j=function(e,t){var n=t?I(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},O=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},D=function(e,t,n,i){n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r],o=i?i(n[s],e[s],s,n,e):void 0;E(n,s,void 0===o?e[s]:o)}return n},R=function(e,t){var n=e.__data__;return q(t)?n["string"==typeof t?"string":"hash"]:n.map},N=function(e,t){var n=null==e?void 0:e[t];return!(!J(n)||V(n))&&($(n)||f(n)?eW:eI).test(z(n))?n:void 0},M=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ez.call(e,"index")&&(n.index=e.index,n.input=e.input),n},U=function(e){var t;return"function"!=typeof e.constructor||H(e)?{}:J(t=e$(e))?eQ(t):{}},B=function(e,t,n,i){var r=e.constructor;switch(t){case ev:return I(e);case er:case ea:return new r(+e);case ey:return P(e,i);case e_:case eb:case eT:case ek:case eS:case eE:case ew:case eC:case ex:return j(e,i);case eu:return d(i?n(m(e),!0):m(e),o,new e.constructor);case el:case ep:return new r(e);case eh:return L(e);case ef:return d(i?n(v(e),!0):v(e),u,new e.constructor);case em:return ta?Object(ta.call(e)):{}}},F=function(e,t){return!!(t=null==t?en:t)&&("number"==typeof e||eP.test(e))&&e>-1&&e%1==0&&e<t},q=function(e){var t=void 0===e?"undefined":T._(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},V=function(e){return!!eV&&eV in e},H=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eF)},z=function(e){if(null!=e){try{return eH.call(e)}catch(e){}try{return"".concat(e)}catch(e){}}return""},G=function(e){return function e(t,n,i,r,a,s,o){if(r&&(u=s?r(t,a,s,o):r(t)),void 0!==u)return u;if(!J(t))return t;var u,c=tu(t);if(c){if(u=M(t),!n)return O(t,u)}else{var d,h,p=to(t),m=p==es||p==eo;if(tl(t))return A(t,n);if(p==ec||p==ei||m&&!s){if(f(t))return s?t:{};if(u=U(m?{}:t),!n)return h=(d=u)&&D(t,ee(t),d),D(t,ts(t),h)}else{if(!eL[p])return s?t:{};u=B(t,p,e,n)}}o||(o=new k);var g=o.get(t);if(g)return g;if(o.set(t,u),!c)var v=i?C(t,ee,ts):ee(t);return l(v||t,function(a,s){v&&(a=t[s=a]),E(u,s,e(a,n,i,r,s,t,o))}),u}(e,!0,!0)},W=function(e,t){return e===t||e!=e&&t!=t},Y=function(e){return K(e)&&ez.call(e,"callee")&&(!eJ.call(e,"callee")||eG.call(e)==ei)},X=function(e){return null!=e&&Q(e.length)&&!$(e)},K=function(e){return Z(e)&&X(e)},$=function(e){var t=J(e)?eG.call(e):"";return t==es||t==eo},Q=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=en},J=function(e){var t=void 0===e?"undefined":T._(e);return!!e&&("object"==t||"function"==t)},Z=function(e){return!!e&&(void 0===e?"undefined":T._(e))=="object"},ee=function(e){return X(e)?S(e):x(e)};a.r(r),a.d(r,{cloneDeep:function(){return G}});var et="__lodash_hash_undefined__",en=0x1fffffffffffff,ei="[object Arguments]",er="[object Boolean]",ea="[object Date]",es="[object Function]",eo="[object GeneratorFunction]",eu="[object Map]",el="[object Number]",ec="[object Object]",ed="[object Promise]",eh="[object RegExp]",ef="[object Set]",ep="[object String]",em="[object Symbol]",eg="[object WeakMap]",ev="[object ArrayBuffer]",ey="[object DataView]",e_="[object Float32Array]",eb="[object Float64Array
1]",eT="[object Int8Array]",ek="[object Int16Array]",eS="[object Int32Array]",eE="[object Uint8Array]",ew="[object Uint8ClampedArray]",eC="[object Uint16Array]",ex="[object Uint32Array]",eA=/\w*$/,eI=/^\[object .+?Constructor\]$/,eP=/^(?:0|[1-9]\d*)$/,eL={};eL[ei]=eL["[object Array]"]=eL[ev]=eL[ey]=eL[er]=eL[ea]=eL[e_]=eL[eb]=eL[eT]=eL[ek]=eL[eS]=eL[eu]=eL[el]=eL[ec]=eL[eh]=eL[ef]=eL[ep]=eL[em]=eL[eE]=eL[ew]=eL[eC]=eL[ex]=!0,eL["[object Error]"]=eL[es]=eL[eg]=!1;var ej="object"==T._(e.g)&&e.g&&e.g.Object===Object&&e.g,eO=("u"<typeof self?"undefined":T._(self))=="object"&&self&&self.Object===Object&&self,eD=ej||eO||Function("return this")(),eR="object"==T._(n)&&n&&!n.nodeType&&n,eN=eR&&"object"==T._(t)&&t&&!t.nodeType&&t,eM=eN&&eN.exports===eR,eU=Array.prototype,eB=Function.prototype,eF=Object.prototype,eq=eD["__core-js_shared__"],eV=(s=/[^.]+$/.exec(eq&&eq.keys&&eq.keys.IE_PROTO||""))?"Symbol(src)_1.".concat(s):"",eH=eB.toString,ez=eF.hasOwnProperty,eG=eF.toString,eW=RegExp("^".concat(eH.call(ez).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),"$")),eY=eM?eD.Buffer:void 0,eX=eD.Symbol,eK=eD.Uint8Array,e$=g(Object.getPrototypeOf,Object),eQ=Object.create,eJ=eF.propertyIsEnumerable,eZ=eU.splice,e0=Object.getOwnPropertySymbols,e1=eY?eY.isBuffer:void 0,e2=g(Object.keys,Object),e4=N(eD,"DataView"),e8=N(eD,"Map"),e3=N(eD,"Promise"),e5=N(eD,"Set"),e6=N(eD,"WeakMap"),e7=N(Object,"create"),e9=z(e4),te=z(e8),tt=z(e3),tn=z(e5),ti=z(e6),tr=eX?eX.prototype:void 0,ta=tr?tr.valueOf:void 0;y.prototype.clear=function(){this.__data__=e7?e7(null):{}},y.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(e7){var n=t[e];return n===et?void 0:n}return ez.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return e7?void 0!==t[e]:ez.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=e7&&void 0===t?et:t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=w(t,e);return!(n<0)&&(n==t.length-1?t.pop():eZ.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=w(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return w(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,i=w(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},b.prototype.clear=function(){this.__data__={hash:new y,map:new(e8||_),string:new y}},b.prototype.delete=function(e){return R(this,e).delete(e)},b.prototype.get=function(e){return R(this,e).get(e)},b.prototype.has=function(e){return R(this,e).has(e)},b.prototype.set=function(e,t){return R(this,e).set(e,t),this},k.prototype.clear=function(){this.__data__=new _},k.prototype.delete=function(e){return this.__data__.delete(e)},k.prototype.get=function(e){return this.__data__.get(e)},k.prototype.has=function(e){return this.__data__.has(e)},k.prototype.set=function(e,t){var n=this.__data__;if(p._(n,_)){var i=n.__data__;if(!e8||i.length<199)return i.push([e,t]),this;n=this.__data__=new b(i)}return n.set(e,t),this};var ts=e0?g(e0,Object):function(){return[]},to=function(e){return eG.call(e)};(e4&&to(new e4(new ArrayBuffer(1)))!=ey||e8&&to(new e8)!=eu||e3&&to(e3.resolve())!=ed||e5&&to(new e5)!=ef||e6&&to(new e6)!=eg)&&(to=function(e){var t=eG.call(e),n=t==ec?e.constructor:void 0,i=n?z(n):void 0;if(i)switch(i){case e9:return ey;case te:return eu;case tt:return ed;case tn:return ef;case ti:return eg}return t});var tu=Array.isArray,tl=e1||function(){return!1}}),c._(x,"../node_modules/@cloudinary/url-gen/internal/utils/dataStructureUtils.js",function(e,t,n){"use strict";var i=function(e,t){var n=Array.from(e.entries());return t.forEach(function(e){n.push(["fl",e])}),n.sort().map(function(e){return e[1]})},r=function(e){return"string"==typeof e||p._(e,String)};n.r(t),n.d(t,{isString:function(){return r},mapToSortedArray:function(){return i}})}),x),I={};function P(e){var t=I[e];if(void 0!==t)return t.exports;var n=I[e]={id:e,loaded:!1,exports:{}};
1return A[e].call(n.exports,n,n.exports,P),n.loaded=!0,n.exports}P.m=A,P.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return P.d(t,{a:t}),t},P.d=function(e,t){for(var n in t)P.o(t,n)&&!P.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},P.f={},P.e=function(e){return Promise.all(Object.keys(P.f).reduce(function(t,n){return P.f[n](e,t),t},[]))},P.u=function(e){return""+e+".js"},P.miniCssF=function(e){return""+e+".css"},P.g=function(){if(("u"<typeof globalThis?"undefined":T._(globalThis))==="object")return globalThis;try{return this||Function("return this")()}catch(e){if(("u"<typeof window?"undefined":T._(window))==="object")return window}}(),P.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},L={},P.l=function(e,t,n,i){if(L[e])return void L[e].push(t);if(void 0!==n)for(var r,a,s=document.getElementsByTagName("script"),o=0;o<s.length;o++){var u=s[o];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")=="cloudinary-video-player:"+n){r=u;break}}r||(a=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,P.nc&&r.setAttribute("nonce",P.nc),r.setAttribute("data-webpack","cloudinary-video-player:"+n),r.src=e),L[e]=[t];var l=function(t,n){r.onerror=r.onload=null,clearTimeout(c);var i=L[e];if(delete L[e],r.parentNode&&r.parentNode.removeChild(r),i&&i.forEach(function(e){return e(n)}),t)return t(n)},c=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),a&&document.head.appendChild(r)},P.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},P.g.importScripts&&(j=P.g.location+"");var L,j,O=P.g.document;if(!j&&O&&(O.currentScript&&(j=O.currentScript.src),!j)){var D=O.getElementsByTagName("script");if(D.length)for(var R=D.length-1;R>-1&&!j;)j=D[R--].src}if(!j)throw Error("Automatic publicPath is not supported in this browser");if(P.p=j.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),"u">typeof document){var N=function(e,t,n,i,r){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=function(n){if(a.onerror=a.onload=null,"load"===n.type)i();else{var s=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.href||t,u=Error("Loading CSS chunk "+e+" failed.\n("+o+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=s,u.request=o,a.parentNode&&a.parentNode.removeChild(a),r(u)}},a.href=t,n?n.parentNode.insertBefore(a,n.nextSibling):document.head.appendChild(a),a},M=function(e,t){for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var r=n[i],a=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(a===e||a===t))return r}for(var s=document.getElementsByTagName("style"),i=0;i<s.length;i++){var r=s[i],a=r.getAttribute("data-href");if(a===e||a===t)return r}},U={"cld-video-player":0};P.f.miniCss=function(e,t){if(U[e])t.push(U[e]);else 0!==U[e]&&({"recommendations-overlay":1,chapters:1,ima:1,playlist:1,shoppable:1,"interaction-areas":1})[e]&&t.push(U[e]=new Promise(function(t,n){var i=P.miniCssF(e),r=P.p+i;if(M(i,r))return t();N(e,r,null,t,n)}).then(function(){U[e]=0},function(t){throw delete U[e],t}))}}E={"cld-video-player":0},P.f.j=function(e,t){var n=P.o(E,e)?E[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,i){return n=E[e]=[t,i]});t.push(n[2]=i);var r=P.p+P.u(e),a=Error();P.l(r,function(t){if(P.o(E,e)&&(0!==(n=E[e])&&(E[e]=void 0),n)){var i=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",a.name="ChunkLoadError",a.type=i,a.request=r,n[1](a)}},"chunk-"+e,e)}},w=function(e,t){var n,i,r=y._(t,3),a=r[0],s=r[1],o=r[2],u=0;if(a.some(function(e){return 0!==E[e]})){for(n in s)P.o(s,n)&&(P.m[n]=s[n]);o&&o(P)}for(e&&e(t);u<a.length;u++)i=a[u],P.o(E,i)&&E[i]&&E[i][0](),E[i]=0},(C=self.webpackChunkcloudinary_video_player=self.webpackChunkcloudinary_video_player||[]).forEac
1h(w.bind(null,0)),C.push=w.bind(null,C.push.bind(C));var B={};return!function(){"use strict";P.r(B),P.d(B,{default:function(){return h},videoPlayer:function(){return u},videoPlayerWithProfile:function(){return c},videoPlayers:function(){return l}}),P("./assets/styles/main.scss");var e=P("./video-player.js"),t=P("./video-player-profile.js"),n=P("./utils/assign.js"),i=P("./utils/object.js"),r=P("./video-player.const.js");window.cloudinary&&window.cloudinary.Cloudinary&&console.warn("For version 1.9.0 and above, cloudinary-core is not needed for using the Cloudinary Video Player");var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=(0,i.pick)((0,i.convertKeysToSnakeCase)(e),r.CLOUDINARY_CONFIG_PARAM);return(0,n.assign)(e,{cloudinaryConfig:t||a})},s=function(t){return function(n,i,r){return new e.default(n,a(i,t),r)}},o=function(t){return function(n,i,r){return e.default.all(n,a(i,t),r)}},u=s(),l=o(),c=function(e,n,i){return(0,t.default)(e,a(n,void 0),i)},d=g._(m._({},window.cloudinary||{}),{videoPlayer:u,videoPlayers:l,videoPlayerWithProfile:c,Cloudinary:{new:function(e){return{videoPlayer:s(e),videoPlayers:o(e)}}}});window.cloudinary=d;var h=d}(),B}()};if("object"===T._(n)&&"object"===T._(t))t.exports=w();else if("function"==typeof define&&define.amd){let t;void 0!==(t=w())&&e.v(t)}else"object"===T._(n)?n["cloudinary-video-player"]=w():E["cloudinary-video-player"]=w()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.