newlove68.net
Open in
urlscan Pro
51.79.190.171
Public Scan
Submitted URL: http://newlove68.net/js/chunk-vendors.d311597a.js
Effective URL: https://newlove68.net/js/chunk-vendors.d311597a.js
Submission: On November 09 via api from US — Scanned from SG
Effective URL: https://newlove68.net/js/chunk-vendors.d311597a.js
Submission: On November 09 via api from US — Scanned from SG
Form analysis
0 forms found in the DOMText Content
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ce":function(e,t,n){"use strict";var i,r=SyntaxError,a=Function,s=TypeError,o=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(O){l=null}var u=function(){throw new s},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(t){return u}}}():u,d=n("5156")(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"===typeof Uint8Array?i:h(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?h((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?h((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):i,"%Symbol%":d?Symbol:i,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":s,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=o("async function () {}");else if("%GeneratorFunction%"===t)n=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=o("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&(n=h(r.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n("0f7c"),b=n("a0d3"),_=y.call(Function.call,Array.prototype.concat),T=y.call(Function.apply,Array.prototype.splice),S=y.call(Function.call,String.prototype.replace),w=y.call(Function.call,String.prototype.slice),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,E=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return S(e,k,(function(e,t,n,r){i[i.length]=n?S(r,C,"$1"):t||e})),i},x=function(e,t){var n,i=e;if(b(v,i)&&(n=v[i],i="%"+n[0]+"%"),b(m,i)){var a=m[i];if(a===p&&(a=g(i)),"undefined"===typeof a&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new s('"allowMissing" argument must be a boolean');var n=E(e),i=n.length>0?n[0]:"",a=x("%"+i+"%",t),o=a.name,u=a.value,c=!1,d=a.alias;d&&(i=d[0],T(n,_([0,1],d)));for(var h=1,p=!0;h<n.length;h+=1){var f=n[h],g=w(f,0,1),v=w(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==f&&p||(c=!0),i+="."+f,o="%"+i+"%",b(m,o))u=m[o];else if(null!=u){if(!(f in u)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=n.length){var y=l(u,f);p=!!y,u=p&&"get"in y&&!("originalValue"in y.get)?y.get:u[f]}else p=b(u,f),u=u[f];p&&!c&&(m[o]=u)}}return u}},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},"0129":function(e,t,n){"use strict";var i=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],n)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={}}}};i.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),e},i.prototype.push=function(e){this.trigger("data",e)},i.prototype.flush=function(e){this.trigger("done",e)},e.exports=i},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"0538":function(e,t,n){"use strict";var i=n("1c0b"),r=n("861d"),a=[].slice,s={},o=function(e,t,n){if(!(t in s)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";s[t]=Function("C,a","return new C("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),s=function(){var i=n.concat(a.call(arguments));return this instanceof s?o(t,i.length,i):t.apply(e,i)};return r(t.prototype)&&(s.prototype=t.prototype),s}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),a=n("5c6c"),s=n("fc6a"),o=n("a04b"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=s(e),t=o(t),u)try{return c(e,t)}catch(n){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},"092d":function(e,t,n){"use strict";function i(e){var t=e.parentNode;t&&t.removeChild(e)}n.d(t,"a",(function(){return i}))},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),a=n("f6b4"),s=n("5270"),o=n("4a7b"),l=n("848b"),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=o(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var c=[s,void 0];Array.prototype.unshift.apply(c,n),c=c.concat(a),r=Promise.resolve(e);while(c.length)r=r.then(c.shift(),c.shift());return r}var d=e;while(n.length){var h=n.shift(),p=n.shift();try{d=h(d)}catch(f){p(f);break}}try{r=s(d)}catch(f){return Promise.reject(f)}while(a.length)r=r.then(a.shift(),a.shift());return r},c.prototype.getUri=function(e){return e=o(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(o(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){return this.request(o(i||{},{method:e,url:t,data:n}))}})),e.exports=c},"0b42":function(e,t,n){var i=n("861d"),r=n("e8b5"),a=n("b622"),s=a("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)?i(t)&&(t=t[s],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},"0c1c":function(e,t,n){"use strict";e.exports=function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}},"0cb2":function(e,t,n){var i=n("7b0b"),r=Math.floor,a="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,u,c){var d=n+e.length,h=l.length,p=o;return void 0!==u&&(u=i(u),p=s),a.call(c,p,(function(i,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":s=u[a.slice(1,-1)];break;default:var o=+a;if(0===o)return i;if(o>h){var c=r(o/10);return 0===c?i:c<=h?void 0===l[c-1]?a.charAt(1):l[c-1]+a.charAt(1):i}s=l[o-1]}return void 0===s?"":s}))}},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),a=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0de0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return/mp4a\.\d+.\d+/i.test(e)},r=function(e){return/avc1\.[\da-f]+/i.test(e)},a=function(e){var t={type:"",parameters:{}},n=e.trim().split(";");return t.type=n.shift().trim(),n.forEach((function(e){var n=e.trim().split("=");if(n.length>1){var i=n[0].replace(/"/g,"").trim(),r=n[1].replace(/"/g,"").trim();t.parameters[i]=r}})),t},s=function(e){return e.map((function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){var i=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(n).toString(16)).slice(-2);return"avc1."+i+"00"+r}))}))};t["default"]={isAudioCodec:i,parseContentType:a,isVideoCodec:r,translateLegacyCodecs:s},e.exports=t["default"]},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f7c":function(e,t,n){"use strict";var i=n("688e");e.exports=Function.prototype.bind||i},"107c":function(e,t,n){var i=n("d039"),r=n("da84"),a=r.RegExp;e.exports=i((function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1283:function(e,t){var n={"":!0,up:!0};function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function a(){var e=100,t=3,n=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}e.exports=a},"12c6":function(e,t,n){ /** * @license * Video.js 6.13.0 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Version 2.0 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE> */ function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=i(n("ea7c")),a=i(n("4742")),s=i(n("1b8d")),o=i(n("8c10")),l=i(n("eec7")),u=i(n("bec7")),c="6.13.0",d=r.navigator&&r.navigator.userAgent||"",h=/AppleWebKit\/([\d.]+)/i.exec(d),p=h?parseFloat(h.pop()):null,f=/iPad/i.test(d),m=/iPhone/i.test(d)&&!f,g=/iPod/i.test(d),v=m||f||g,y=function(){var e=d.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),b=/Android/i.test(d),_=function(){var e=d.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}(),T=b&&/webkit/i.test(d)&&_<2.3,S=b&&_<5&&p<537,w=/Firefox/i.test(d),k=/Edge/i.test(d),C=!k&&(/Chrome/i.test(d)||/CriOS/i.test(d)),E=function(){var e=d.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),x=/MSIE\s8\.0/.test(d),O=function(){var e=/MSIE\s(\d+)\.\d/.exec(d),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(d)&&/rv:11.0/.test(d)&&(t=11),t}(),A=/Safari/i.test(d)&&!C&&!b&&!k,P=(A||v)&&!C,I=ne()&&("ontouchstart"in r||r.navigator.maxTouchPoints||r.DocumentTouch&&r.document instanceof r.DocumentTouch),L=ne()&&"backgroundSize"in r.document.createElement("video").style,D=(Object.freeze||Object)({IS_IPAD:f,IS_IPHONE:m,IS_IPOD:g,IS_IOS:v,IOS_VERSION:y,IS_ANDROID:b,ANDROID_VERSION:_,IS_OLD_ANDROID:T,IS_NATIVE_ANDROID:S,IS_FIREFOX:w,IS_EDGE:k,IS_CHROME:C,CHROME_VERSION:E,IS_IE8:x,IE_VERSION:O,IS_SAFARI:A,IS_ANY_SAFARI:P,TOUCH_ENABLED:I,BACKGROUND_SIZE_SUPPORTED:L}),M="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},B=function(e,t){return e.raw=t,e},U=Object.prototype.toString,F=function(e){return z(e)?Object.keys(e):[]};function $(e,t){F(e).forEach((function(n){return t(e[n],n)}))}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return F(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function V(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach((function(t){t&&$(t,(function(t,n){e[n]=t}))})),e)}function z(e){return!!e&&"object"===("undefined"===typeof e?"undefined":M(e))}function q(e){return z(e)&&"[object Object]"===U.call(e)&&e.constructor===Object}var W=[],G=function(e,t){return function(n,i,a,s){var o=t.levels[i],l=new RegExp("^("+o+")$");if("log"!==n&&a.unshift(n.toUpperCase()+":"),a.unshift(e+":"),W&&W.push([].concat(a)),r.console){var u=r.console[n];u||"debug"!==n||(u=r.console.info||r.console.log),u&&o&&l.test(n)&&(s&&(a=a.map((function(e){if(z(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)})).join(" ")),u.apply?u[Array.isArray(a)?"apply":"call"](r.console,a):u(a))}}};function X(e){var t="info",n=void 0,i=function e(){for(var i=e.stringify||O&&O<11,r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];n("log",t,a,i)};return n=G(e,i),i.createLogger=function(t){return X(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},i.level=function(e){if("string"===typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},i.history=function(){return W?[].concat(W):[]},i.history.filter=function(e){return(W||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){W&&(W.length=0)},i.history.disable=function(){null!==W&&(W.length=0,W=null)},i.history.enable=function(){null===W&&(W=[])},i.error=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("error",t,i)},i.warn=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("warn",t,i)},i.debug=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("debug",t,i)},i}var Y=X("VIDEOJS"),K=Y.createLogger;function Q(e,t){if(!e||!t)return"";if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}var J=B(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function Z(e){return"string"===typeof e&&/\S/.test(e)}function ee(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function te(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function ne(){return a===r.document&&"undefined"!==typeof a.createElement}function ie(e){return z(e)&&1===e.nodeType}function re(){try{return r.parent!==r.self}catch(e){return!0}}function ae(e){return function(t,n){if(!Z(t))return a[e](null);Z(n)&&(n=a.querySelector(n));var i=ie(n)?n:a;return i[e]&&i[e](t)}}function se(){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[3],r=a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn(s(J,e,n)),r.setAttribute(e,n)):"textContent"===e?oe(r,n):r[e]=n})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Ee(r,i),r}function oe(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ue(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ce(e,t){return e.classList?e.classList.add(t):ue(e,t)||(e.className=(e.className+" "+t).trim()),e}function de(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function he(e,t,n){var i=ue(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?ce(e,t):de(e,t),e}function pe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function fe(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;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function me(e,t){return e.getAttribute(t)}function ge(e,t,n){e.setAttribute(t,n)}function ve(e,t){e.removeAttribute(t)}function ye(){a.body.focus(),a.onselectstart=function(){return!1}}function be(){a.onselectstart=function(){return!0}}function _e(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(Q(e,"height"))),n.width||(n.width=parseFloat(Q(e,"width"))),n}}function Te(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=a.documentElement,i=a.body,s=n.clientLeft||i.clientLeft||0,o=r.pageXOffset||i.scrollLeft,l=t.left+o-s,u=n.clientTop||i.clientTop||0,c=r.pageYOffset||i.scrollTop,d=t.top+c-u;return{left:Math.round(l),top:Math.round(d)}}function Se(e,t){var n={},i=Te(e),r=e.offsetWidth,a=e.offsetHeight,s=i.top,o=i.left,l=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+a)/a)),n.x=Math.max(0,Math.min(1,(u-o)/r)),n}function we(e){return z(e)&&3===e.nodeType}function ke(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ce(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||we(e)?e:"string"===typeof e&&/\S/.test(e)?a.createTextNode(e):void 0})).filter((function(e){return e}))}function Ee(e,t){return Ce(t).forEach((function(t){return e.appendChild(t)})),e}function xe(e,t){return Ee(ke(e),t)}function Oe(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===O||0===e.button&&1===e.buttons))}var Ae=ae("querySelector"),Pe=ae("querySelectorAll"),Ie=(Object.freeze||Object)({isReal:ne,isEl:ie,isInFrame:re,createEl:se,textContent:oe,prependTo:le,hasClass:ue,addClass:ce,removeClass:de,toggleClass:he,setAttributes:pe,getAttributes:fe,getAttribute:me,setAttribute:ge,removeAttribute:ve,blockTextSelection:ye,unblockTextSelection:be,getBoundingClientRect:_e,findPosition:Te,getPointerPosition:Se,isTextNode:we,emptyEl:ke,normalizeContent:Ce,appendContent:Ee,insertContent:xe,isSingleLeftClick:Oe,$:Ae,$$:Pe}),Le=1;function De(){return Le++}var Me={},je="vdata"+(new Date).getTime();function Re(e){var t=e[je];return t||(t=e[je]=De()),Me[t]||(Me[t]={}),Me[t]}function Ne(e){var t=e[je];return!!t&&!!Object.getOwnPropertyNames(Me[t]).length}function Be(e){var t=e[je];if(t){delete Me[t];try{delete e[je]}catch(n){e.removeAttribute?e.removeAttribute(je):e[je]=null}}}function Ue(e,t){var n=Re(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&&Be(e)}function Fe(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function $e(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||r.event;for(var s in e={},i)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&i.preventDefault||(e[s]=i[s]));if(e.target||(e.target=e.srcElement||a),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 o=a.documentElement,l=a.body;e.pageX=e.clientX+(o&&o.scrollLeft||l&&l.scrollLeft||0)-(o&&o.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||l&&l.scrollTop||0)-(o&&o.clientTop||l&&l.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}var He=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){He=!0}});r.addEventListener("test",null,e),r.removeEventListener("test",null,e)}catch(t){}})();var Ve=["touchstart","touchmove"];function ze(e,t,n){if(Array.isArray(t))return Fe(ze,e,t,n);var i=Re(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=De()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=$e(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;try{a[s].call(e,t,n)}catch(l){Y.error(l)}}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;He&&Ve.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function qe(e,t,n){if(Ne(e)){var i=Re(e);if(i.handlers){if(Array.isArray(t))return Fe(qe,e,t,n);var r=function(e,t){i.handlers[t]=[],Ue(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);Ue(e,t)}else r(e,t)}else for(var o in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},o)&&r(e,o)}}}function We(e,t,n){var i=Ne(e)?Re(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=$e(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)We.call(null,r,t,n);else if(!r&&!t.defaultPrevented){var a=Re(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 Ge(e,t,n){if(Array.isArray(t))return Fe(Ge,e,t,n);var i=function i(){qe(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||De(),ze(e,t,i)}var Xe=(Object.freeze||Object)({fixEvent:$e,on:ze,off:qe,trigger:We,one:Ge}),Ye=!1,Ke=void 0,Qe=function(){if(ne()&&!1!==Ke.options.autoSetup){var e=a.getElementsByTagName("video"),t=a.getElementsByTagName("audio"),n=a.getElementsByTagName("video-js"),i=[];if(e&&e.length>0)for(var r=0,s=e.length;r<s;r++)i.push(e[r]);if(t&&t.length>0)for(var o=0,l=t.length;o<l;o++)i.push(t[o]);if(n&&n.length>0)for(var u=0,c=n.length;u<c;u++)i.push(n[u]);if(i&&i.length>0)for(var d=0,h=i.length;d<h;d++){var p=i[d];if(!p||!p.getAttribute){Je(1);break}if(void 0===p.player){var f=p.getAttribute("data-setup");null!==f&&Ke(p)}}else Ye||Je(1)}};function Je(e,t){t&&(Ke=t),r.setTimeout(Qe,e)}ne()&&"complete"===a.readyState?Ye=!0:Ge(r,"load",(function(){Ye=!0}));var Ze=function(e){var t=a.createElement("style");return t.className=e,t},et=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},tt=function(e,t,n){t.guid||(t.guid=De());var i=function(){return t.apply(e,arguments)};return i.guid=n?n+"_"+t.guid:t.guid,i},nt=function(e,t){var n=Date.now(),i=function(){var i=Date.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,a=void 0,s=function(){i.clearTimeout(a),a=null},o=function(){var r=this,s=arguments,o=function(){a=null,o=null,n||e.apply(r,s)};!a&&n&&e.apply(r,s),i.clearTimeout(a),a=i.setTimeout(o,t)};return o.cancel=s,o},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ze(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){qe(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=$e(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),We(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger;var at=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},st=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ot=function(e){if(!e.nodeName&&!at(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!st(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ut=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ct=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,a=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),ot(i),lt(r),ut(a),a=tt(e,a),{isTargetingSelf:n,target:i,type:r,listener:a}},dt=function(e,t,n,i){ot(e),e.nodeName?Xe[t](e,n,i):e[t](n,i)},ht={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ct(this,n),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(dt(s,"on",o,l),!a){var u=function(){return e.off(s,o,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,dt(this,"on","dispose",u),dt(s,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ct(this,n),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)dt(s,"one",o,l);else{var u=function t(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];e.off(s,o,t),l.apply(null,i)};u.guid=l.guid,dt(s,"one",o,u)}},off:function(e,t,n){if(!e||st(e))qe(this.eventBusEl_,e,t);else{var i=e,r=t;ot(i),lt(r),ut(n),n=tt(this,n),this.off("dispose",n),i.nodeName?(qe(i,r,n),qe(i,"dispose",n)):at(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){return We(this.eventBusEl_,e,t)}};function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=se("span",{className:"vjs-event-bus"});return V(e,ht),e.on("dispose",(function(){e.off(),r.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var ft={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var n=void 0;return $(e,(function(e,i){t.state[i]!==e&&(n=n||{},n[i]={from:t.state[i],to:e}),t.state[i]=e})),n&&at(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function mt(e,t){return V(e,ft),e.state=V({},e.state,t),"function"===typeof e.handleStateChanged&&at(e)&&e.on("statechanged",e.handleStateChanged),e}function gt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function vt(e,t){return gt(e)===gt(t)}function yt(){for(var e={},t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&$(t,(function(t,n){q(t)?(q(e[n])||(e[n]={}),e[n]=yt(e[n],t)):e[n]=t}))})),e}var bt=function(){function e(t,n,i){if(j(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=yt({},this.options_),n=this.options_=yt(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+De()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&pt(this,{eventBusKey:this.el_?"el_":null}),mt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Be(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return Y.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=yt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return se(e,t,n)},e.prototype.localize=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],l=n;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=gt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"===typeof t){a=gt(t);var s=n.componentClass||a;n.name=a;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!==typeof o)return null;r=new o(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"===typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&>(r.name()),a&&(this.childNameIndex_[a]=r),"function"===typeof r.el&&r.el()){var l=this.contentEl().children,u=l[i]||null;this.contentEl().insertBefore(r.el(),u)}return r},e.prototype.removeChild=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){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(n,r);a&&(t[n]=a)}},a=void 0,s=e.getComponent("Tech");a=Array.isArray(n)?n:Object.keys(n),a.concat(Object.keys(this.options_).filter((function(e){return!a.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,r=void 0;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||gt(t.name));return n&&!s.isTech(n)})).forEach(r)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=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)},e.prototype.$=function(e,t){return Ae(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Pe(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ue(this.el_,e)},e.prototype.addClass=function(e){ce(this.el_,e)},e.prototype.removeClass=function(e){de(this.el_,e)},e.prototype.toggleClass=function(e,t){he(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return me(this.el_,e)},e.prototype.setAttribute=function(e,t){ge(this.el_,e,t)},e.prototype.removeAttribute=function(e){ve(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));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"+gt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var i="offset"+gt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=10,i=200,r=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=(new Date).getTime(),r=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)r=!1;else if(t){var i=e.touches[0].pageX-t.pageX,a=e.touches[0].pageY-t.pageY,s=Math.sqrt(i*i+a*a);s>n&&(r=!1)}}));var a=function(){r=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",(function(n){if(t=null,!0===r){var a=(new Date).getTime()-e;a<i&&(n.preventDefault(),this.trigger("tap"))}}))},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=tt(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){var n,i,a=this;return e=tt(this,e),n=r.setTimeout((function(){a.off("dispose",i),e()}),t),i=function(){return a.clearTimeout(n)},i.guid="vjs-timeout-"+n,this.on("dispose",i),n},e.prototype.clearTimeout=function(e){r.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var n=this;e=tt(this,e);var i=r.setInterval(e,t),a=function(){return n.clearInterval(i)};return a.guid="vjs-interval-"+i,this.on("dispose",a),i},e.prototype.clearInterval=function(e){r.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,n,i=this;return this.supportsRaf_?(e=tt(this,e),t=r.requestAnimationFrame((function(){i.off("dispose",n),e()})),n=function(){return i.cancelAnimationFrame(t)},n.guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){r.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!a){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+s+".")}t=gt(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,u=Object.keys(l);if(l&&u.length>0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=gt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function _t(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function Tt(e,t,n,i){return _t(e,i,n.length-1),n[i][t]}function St(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Tt.bind(null,"start",0,e),end:Tt.bind(null,"end",1,e)}}function wt(e,t){return Array.isArray(e)?St(e):void 0===e||void 0===t?St():St([[e,t]])}function kt(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=wt(0,0));for(var a=0;a<e.length;a++)i=e.start(a),r=e.end(a),r>t&&(r=t),n+=r-i;return n/t}bt.prototype.supportsRaf_="function"===typeof r.requestAnimationFrame&&"function"===typeof r.cancelAnimationFrame,bt.registerComponent("Component",bt);for(var Ct={},Et=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],xt=Et[0],Ot=void 0,At=0;At<Et.length;At++)if(Et[At][1]in a){Ot=Et[At];break}if(Ot)for(var Pt=0;Pt<Ot.length;Pt++)Ct[xt[Pt]]=Ot[Pt];function It(e){if(e instanceof It)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:z(e)&&("number"===typeof e.code&&(this.code=e.code),V(this,e)),this.message||(this.message=It.defaultMessages[this.code]||"")}It.prototype.code=0,It.prototype.message="",It.prototype.status=null,It.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],It.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 Lt=0;Lt<It.errorTypes.length;Lt++)It[It.errorTypes[Lt]]=Lt,It.prototype[It.errorTypes[Lt]]=Lt;function Dt(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Mt(e){Dt(e)&&e.then(null,(function(e){}))}var jt=function(e){var t=["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}}))});return t},Rt=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=jt(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(jt))},Nt=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},Bt={textTracksToJson:Rt,jsonToTextTracks:Nt,trackToJson_:jt},Ut="vjs-modal-dialog",Ft=27,$t=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=se("div",{className:Ut+"-content"},{role:"document"}),r.descEl_=se("p",{className:Ut+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),oe(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Ut+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===Ft&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=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},t.prototype.open=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_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=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_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),xe(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),ke(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(a,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(a,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),n=this.el_.querySelector(":focus"),i=void 0,r=0;r<t.length;r++)if(n===t[r]){i=r;break}a.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof r.HTMLAnchorElement||e instanceof r.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof r.HTMLInputElement||e instanceof r.HTMLSelectElement||e instanceof r.HTMLTextAreaElement||e instanceof r.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof r.HTMLIFrameElement||e instanceof r.HTMLObjectElement||e instanceof r.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(bt);$t.prototype.options_={pauseOnOpen:!0,temporary:!0},bt.registerComponent("ModalDialog",$t);var Ht=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;j(this,t);var s=N(this,e.call(this));if(!r&&(r=s,x))for(var o in r=a.createElement("custom"),t.prototype)"constructor"!==o&&(r[o]=t.prototype[o]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<i.length;l++)r.addTrack(i[l]);return n=r,N(s,n)}return R(t,e),t.prototype.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var t=void 0,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=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}(rt);for(var Vt in Ht.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ht.prototype.allowedEvents_)Ht.prototype["on"+Vt]=null;var zt=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)},qt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,t);for(var s=void 0,o=r.length-1;o>=0;o--)if(r[o].enabled){zt(r,r[o]);break}if(x){for(var l in s=a.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return n=N(this,e.call(this,r,s)),s=n,s.changing_=!1,i=s,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&zt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,zt(n,t),n.changing_=!1,n.trigger("change"))}))},t}(Ht),Wt=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)},Gt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,t);for(var s=void 0,o=r.length-1;o>=0;o--)if(r[o].selected){Wt(r,r[o]);break}if(x){for(var l in s=a.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return n=N(this,e.call(this,r,s)),s=n,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),i=s,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){var n=this;t.selected&&Wt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",(function(){n.changing_||(n.changing_=!0,Wt(n,t),n.changing_=!1,n.trigger("change"))}))},t}(Ht),Xt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,t);var s=void 0;if(x){for(var o in s=a.createElement("custom"),Ht.prototype)"constructor"!==o&&(s[o]=Ht.prototype[o]);for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l])}return n=N(this,e.call(this,r,s)),s=n,i=s,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(Ht),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,e);var n=this;if(x)for(var i in n=a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,s=t.length;r<s;r++)n.addTrackElement_(t[r]);if(x)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),Kt=function(){function e(t){j(this,e);var n=this;if(x)for(var i in n=a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),x)return n}return e.prototype.setCues_=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)},e.prototype.getCueById=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}(),Qt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Jt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Zt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},en={disabled:"disabled",hidden:"hidden",showing:"showing"},tn=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var r=N(this,e.call(this)),s=r;if(x)for(var o in s=a.createElement("custom"),t.prototype)"constructor"!==o&&(s[o]=t.prototype[o]);var l={id:i.id||"vjs_track_"+De(),kind:i.kind||"",label:i.label||"",language:i.language||""},u=function(e){Object.defineProperty(s,e,{get:function(){return l[e]},set:function(){}})};for(var c in l)u(c);return n=s,N(r,n)}return R(t,e),t}(rt),nn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,s=void 0;i&&(s=a.createElement("div"),s.innerHTML='<a href="'+e+'"></a>',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),a.body.appendChild(s));for(var o={},l=0;l<t.length;l++)o[t[l]]=n[t[l]];return"http:"===o.protocol&&(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&&(o.host=o.host.replace(/:443$/,"")),o.protocol||(o.protocol=r.location.protocol),i&&a.body.removeChild(s),o},rn=function(e){if(!e.match(/^https?:\/\//)){var t=a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},an=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},sn=function(e){var t=r.location,n=nn(e),i=":"===n.protocol?t.protocol:n.protocol,a=i+n.host!==t.protocol+t.host;return a},on=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:an,isCrossOrigin:sn}),ln=function(e,t){var n=new r.WebVTT.Parser(r,r.vttjs,r.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&&(r.console&&r.console.groupCollapsed&&r.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Y.error(e)})),r.console&&r.console.groupEnd&&r.console.groupEnd()),n.flush()},un=function(e,t){var n={uri:e},i=sn(e);i&&(n.cors=i),l(n,tt(this,(function(e,n,i){if(e)return Y.error(e,n);if(t.loaded_=!0,"function"!==typeof r.WebVTT){if(t.tech_){var a=function(){return ln(i,t)};t.tech_.on("vttjsloaded",a),t.tech_.on("vttjserror",(function(){Y.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",a)}))}}else ln(i,t)})))},cn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(j(this,t),!r.tech)throw new Error("A tech was not provided.");var a=yt(r,{kind:Zt[r.kind]||"subtitles",language:r.language||r.srclang||""}),s=en[a.mode]||"disabled",o=a["default"];"metadata"!==a.kind&&"chapters"!==a.kind||(s="hidden");var l=(n=N(this,e.call(this,a)),n);if(l.tech_=a.tech,x)for(var u in t.prototype)"constructor"!==u&&(l[u]=t.prototype[u]);l.cues_=[],l.activeCues_=[];var c=new Kt(l.cues_),d=new Kt(l.activeCues_),h=!1,p=tt(l,(function(){this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",p)}),!0),Object.defineProperty(l,"default",{get:function(){return o},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(e){var t=this;en[e]&&(s=e,"disabled"!==s?this.tech_.ready((function(){t.tech_.on("timeupdate",p)}),!0):this.tech_.off("timeupdate",p),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?c:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return d;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||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(h=!0);return this.activeCues_=t,d.setCues_(this.activeCues_),d},set:function(){}}),a.src?(l.src=a.src,un(a.src,l)):l.loaded_=!0,i=l,N(n,i)}return R(t,e),t.prototype.addCue=function(e){var t=e;if(r.vttjs&&!(e instanceof r.vttjs.VTTCue)){for(var n in t=new r.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(),a=0;a<i.length;a++)i[a]!==this&&i[a].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){var t=this.cues_.length;while(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}(tn);cn.prototype.allowedEvents_={cuechange:"cuechange"};var dn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var a=yt(r,{kind:Jt[r.kind]||""}),s=(n=N(this,e.call(this,a)),n),o=!1;if(x)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return o},set:function(e){"boolean"===typeof e&&e!==o&&(o=e,this.trigger("enabledchange"))}}),a.enabled&&(s.enabled=a.enabled),s.loaded_=!0,i=s,N(n,i)}return R(t,e),t}(tn),hn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var a=yt(r,{kind:Qt[r.kind]||""}),s=(n=N(this,e.call(this,a)),n),o=!1;if(x)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return o},set:function(e){"boolean"===typeof e&&e!==o&&(o=e,this.trigger("selectedchange"))}}),a.selected&&(s.selected=a.selected),i=s,N(n,i)}return R(t,e),t}(tn),pn=0,fn=1,mn=2,gn=3,vn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var i=N(this,e.call(this)),r=void 0,s=i;if(x)for(var o in s=a.createElement("custom"),t.prototype)"constructor"!==o&&(s[o]=t.prototype[o]);var l,u=new cn(n);return s.kind=u.kind,s.src=u.src,s.srclang=u.language,s.label=u.label,s["default"]=u["default"],Object.defineProperty(s,"readyState",{get:function(){return r}}),Object.defineProperty(s,"track",{get:function(){return u}}),r=pn,u.addEventListener("loadeddata",(function(){r=mn,s.trigger({type:"load",target:s})})),x?(l=s,N(i,l)):i}return R(t,e),t}(rt);vn.prototype.allowedEvents_={load:"load"},vn.NONE=pn,vn.LOADING=fn,vn.LOADED=mn,vn.ERROR=gn;var yn={audio:{ListClass:qt,TrackClass:dn,capitalName:"Audio"},video:{ListClass:Gt,TrackClass:hn,capitalName:"Video"},text:{ListClass:Xt,TrackClass:cn,capitalName:"Text"}};Object.keys(yn).forEach((function(e){yn[e].getterName=e+"Tracks",yn[e].privateName=e+"Tracks_"}));var bn={remoteText:{ListClass:Xt,TrackClass:cn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:vn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},_n=yt(yn,bn);function Tn(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 _n.text.TrackClass(r);return a.addTrack(s),s}bn.names=Object.keys(bn),yn.names=Object.keys(yn),_n.names=[].concat(bn.names).concat(yn.names);var Sn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};j(this,t),n.reportTouchActivity=!1;var r=N(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),_n.names.forEach((function(e){var t=_n[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new _n.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return R(t,e),t.prototype.triggerSourceset=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"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return wt(0,0)},t.prototype.bufferedPercent=function(){return kt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(yn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new It(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?wt(0,0):wt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;yn.names.forEach((function(t){var n=yn[t],i=function(){e.trigger(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)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!r.WebVTT)if(a.body.contains(this.el())){if(!this.options_["vtt.js"]&&q(u)&&Object.keys(u).length>0)return void this.trigger("vttjsloaded");var t=a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/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})),r.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=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++){var o=t[e];o.removeEventListener("cuechange",a)}}))},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return Tn(this,e,t,n)},t.prototype.createRemoteTextTrack=function(e){var t=yt(e,{tech:this});return new bn.remoteTextEl.TrackClass(t)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=gt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=gt(e),t.techs_&&t.techs_[e]?t.techs_[e]:r&&r.videojs&&r.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.videojs[e]):void 0},t}(bt);_n.names.forEach((function(e){var t=_n[e];Sn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Sn.prototype.featuresVolumeControl=!0,Sn.prototype.featuresMuteControl=!0,Sn.prototype.featuresFullscreenResize=!1,Sn.prototype.featuresPlaybackRate=!1,Sn.prototype.featuresProgressEvents=!1,Sn.prototype.featuresSourceset=!1,Sn.prototype.featuresTimeupdateEvents=!1,Sn.prototype.featuresNativeTextTracks=!1,Sn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r<n.length;r++)if(i=n[r].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=void 0,a=0;a<i.length;a++)if(r=i[a].canHandleSource(t,n),r)return i[a];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.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:Y.error("No source hander 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.on("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)}},bt.registerComponent("Tech",Sn),Sn.registerTech("Tech",Sn),Sn.defaultTechOrder_=[];var wn={},kn={},Cn={};function En(e,t){wn[e]=wn[e]||[],wn[e].push(t)}function xn(e,t,n){e.setTimeout((function(){return Un(t,wn[t.type],n,e)}),1)}function On(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function An(e,t,n){return e.reduceRight(jn(n),t[n]())}function Pn(e,t,n,i){return t[n](e.reduce(jn(n),i))}function In(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+gt(n),a=e.reduce(jn(r),i),s=a===Cn,o=s?null:t[n](a);return Rn(e,n,o,s),o}var Ln={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},Dn={setCurrentTime:1},Mn={play:1,pause:1};function jn(e){return function(t,n){return t===Cn?Cn:n[e]?n[e](t):t}}function Rn(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}function Nn(e){kn[e.id()]=null}function Bn(e,t){var n=kn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),kn[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],s=a[0],o=a[1];s===t&&(i=o)}return null===i&&(i=t(e),n.push([t,i])),i}function Un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=t[0],o=t.slice(1);if("string"===typeof s)Un(e,wn[s],n,i,r,a);else if(s){var l=Bn(i,s);if(!l.setSource)return r.push(l),Un(e,o,n,i,r,a);l.setSource(V({},e),(function(t,s){if(t)return Un(e,o,n,i,r,a);r.push(l),Un(s,e.type===s.type?o:wn[s.type],n,i,r,a)}))}else o.length?Un(e,o,n,i,r,a):a?n(e,r):Un(e,wn["*"],n,i,r,!0)}var Fn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},$n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=an(e),n=Fn[t.toLowerCase()];return n||""},Hn=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 $n(t)},Vn=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):z(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[zn({src:t})]:z(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[zn(t)]:[];return t};function zn(e){var t=$n(e.src);return!e.type&&t&&(e.type=t),e}var qn=function(e){function t(n,i,r){j(this,t);var a=yt({createEl:!1},i),s=N(this,e.call(this,n,a,r));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)n.src(i.playerOptions.sources);else for(var o=0,l=i.playerOptions.techOrder;o<l.length;o++){var u=gt(l[o]),c=Sn.getTech(u);if(u||(c=bt.getComponent(u)),c&&c.isSupported()){n.loadTech_(u);break}}return s}return R(t,e),t}(bt);bt.registerComponent("MediaLoader",qn);var Wn=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.emitTapEvents(),r.enable(),r}return R(t,e),t.prototype.createEl=function(){var t=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]:{};n=V({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=V({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=se("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=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,oe(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){ze(a,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){qe(a,"keydown",tt(this,this.handleKeyPress))},t}(bt);bt.registerComponent("ClickableComponent",Wn);var Gn=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.update(),n.on("posterchange",tt(r,r.update)),r}return R(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=se("div",{className:"vjs-poster",tabIndex:-1});return L||(this.fallbackImg_=se("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Mt(this.player_.play()):this.player_.pause())},t}(Wn);bt.registerComponent("PosterImage",Gn);var Xn="#222",Yn="#ccc",Kn={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'};function Qn(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Jn(e,t,n){try{e.style[t]=n}catch(i){return}}var Zn=function(e){function t(n,i,a){j(this,t);var s=N(this,e.call(this,n,i,a)),o=tt(s,s.updateDisplay);return n.on("loadstart",tt(s,s.toggleDisplay)),n.on("texttrackchange",o),n.on("loadstart",tt(s,s.preselectTrack)),n.ready(tt(s,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",o),n.on("playerresize",o),r.addEventListener&&r.addEventListener("orientationchange",o),n.on("dispose",(function(){return r.removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}}))),s}return R(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,i=void 0,r=void 0,a=void 0,s=0;s<t.length;s++){var o=t[s];n&&n.enabled&&n.language===o.language?o.kind===n.kind?a=o:a||(a=o):n&&!n.enabled?(a=null,i=null,r=null):o["default"]&&("descriptions"!==o.kind||i?o.kind in e&&!r&&(r=o):i=o)}a?a.mode="showing":r?r.mode="showing":i&&(i.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"===typeof r.WebVTT&&r.WebVTT.processCues(r,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();var t=null,n=null,i=e.length;while(i--){var r=e[i];"showing"===r.mode&&("descriptions"===r.kind?t=r:n=r)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(e){if("function"===typeof r.WebVTT&&e.activeCues){for(var t=[],n=0;n<e.activeCues.length;n++)t.push(e.activeCues[n]);if(r.WebVTT.processCues(r,t,this.el_),this.player_.textTrackSettings){var i=this.player_.textTrackSettings.getValues(),a=t.length;while(a--){var s=t[a];if(s){var o=s.displayState;if(i.color&&(o.firstChild.style.color=i.color),i.textOpacity&&Jn(o.firstChild,"color",Qn(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(o.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Jn(o.firstChild,"backgroundColor",Qn(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Jn(o,"backgroundColor",Qn(i.windowColor,i.windowOpacity)):o.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px "+Xn+", 2px 2px 4px "+Xn+", 2px 2px 5px "+Xn:"raised"===i.edgeStyle?o.firstChild.style.textShadow="1px 1px "+Xn+", 2px 2px "+Xn+", 3px 3px "+Xn:"depressed"===i.edgeStyle?o.firstChild.style.textShadow="1px 1px "+Yn+", 0 1px "+Yn+", -1px -1px "+Xn+", 0 -1px "+Xn:"uniform"===i.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px "+Xn+", 0 0 4px "+Xn+", 0 0 4px "+Xn+", 0 0 4px "+Xn)),i.fontPercent&&1!==i.fontPercent){var l=r.parseFloat(o.style.fontSize);o.style.fontSize=l*i.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=Kn[i.fontFamily])}}}}},t}(bt);bt.registerComponent("TextTrackDisplay",Zn);var ei=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=se("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(bt);bt.registerComponent("LoadingSpinner",ei);var ti=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=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",t=V({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=V({type:"button"},n);var i=bt.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),bt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Wn);bt.registerComponent("Button",ti);var ni=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Mt(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};Dt(t)?t.then(r,(function(){})):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);ni.prototype.controlText_="Play Video",bt.registerComponent("BigPlayButton",ni);var ii=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);bt.registerComponent("CloseButton",ii);var ri=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ri.prototype.controlText_="Play",bt.registerComponent("PlayToggle",ri);var ai=function(e,t){e=e<0?0:e;var n=Math.floor(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="-"),r=r>0||s>0?r+":":"",i=((r||a>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},si=ai;function oi(e){si=e}function li(){si=ai}var ui=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return si(e,t)},ci=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.throttledUpdateContent=nt(tt(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return R(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=se("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ui(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(bt);ci.prototype.labelText_="Time",ci.prototype.controlText_="Time",bt.registerComponent("TimeDisplay",ci);var di=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ci);di.prototype.labelText_="Current Time",di.prototype.controlText_="Current Time",bt.registerComponent("CurrentTimeDisplay",di);var hi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ci);hi.prototype.labelText_="Duration",hi.prototype.controlText_="Duration",bt.registerComponent("DurationDisplay",hi);var pi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(bt);bt.registerComponent("TimeDivider",pi);var fi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ci);fi.prototype.labelText_="Remaining Time",fi.prototype.controlText_="Remaining Time",bt.registerComponent("RemainingTimeDisplay",fi);var mi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=se("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(bt);bt.registerComponent("LiveDisplay",mi);var gi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return R(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),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)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),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}},t.prototype.createEl=function(t){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=V({tabIndex:0},n),i=V({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||C||e.preventDefault(),ye(),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)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;be(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),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.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=Se(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=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}(bt);bt.registerComponent("Slider",gi);var vi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,a=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=a(i,n);for(var s=0;s<t.length;s++){var o=t.start(s),l=t.end(s),u=r[s];u||(u=this.el_.appendChild(se()),r[s]=u),u.style.left=a(o,i),u.style.width=a(l-o,i)}for(var c=r.length;c>t.length;c--)this.el_.removeChild(r[c-1]);r.length=t.length},t}(bt);bt.registerComponent("LoadProgressBar",vi);var yi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=_e(this.el_),r=_e(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),l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),this.el_.style.right="-"+l+"px",oe(this.el_,n)}},t}(bt);bt.registerComponent("TimeTooltip",yi);var bi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=ui(i,n.player_.duration()),a=n.getChild("timeTooltip");a&&a.update(e,t,r)}))},t}(bt);bi.prototype.options_={children:[]},O&&!(O>8)||v||b||bi.prototype.options_.children.push("timeTooltip"),bt.registerComponent("PlayProgressBar",bi);var _i=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.update=nt(tt(r,r.update),25),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.duration(),r=ui(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)}))},t}(bt);_i.prototype.options_={children:["timeTooltip"]},bt.registerComponent("MouseTimeDisplay",_i);var Ti=5,Si=30,wi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.setEventHandlers_(),r}return R(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=nt(tt(this,this.update),Si),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),Si)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ui(e,n),ui(n,n)],"{1} of {2}")),this.bar.update(_e(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Oe(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Oe(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Mt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+Ti)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-Ti)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(gi);wi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},O&&!(O>8)||v||b||wi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),wi.prototype.playerEvent="timeupdate",bt.registerComponent("SeekBar",wi);var ki=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.handleMouseMove=nt(tt(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=nt(tt(r,r.handleMouseSeek),25),r.enable(),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=_e(i),a=Se(i,e).x;a>1?a=1:a<0&&(a=0),n&&n.update(r,a)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=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.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(bt);ki.prototype.options_={children:["seekBar"]},bt.registerComponent("ProgressControl",ki);var Ci=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===a[Ct.fullscreenEnabled]&&r.disable(),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);Ci.prototype.controlText_="Fullscreen",bt.registerComponent("FullscreenToggle",Ci);var Ei=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")}))},xi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(bt);bt.registerComponent("VolumeLevel",xi);var Oi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready((function(){return r.updateARIAAttributes()})),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Oe(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Oe(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(gi);Oi.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Oi.prototype.playerEvent="volumechange",bt.registerComponent("VolumeBar",Oi);var Ai=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||q(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=N(this,e.call(this,n,i));return Ei(r,n),r.throttledHandleMouseMove=nt(tt(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}return R(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(bt);Ai.prototype.options_={children:["volumeBar"]},bt.registerComponent("VolumeControl",Ai);var Pi=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")}))},Ii=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return Pi(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;v&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)de(this.el_,"vjs-vol-"+n);ce(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Ii.prototype.controlText_="Mute",bt.registerComponent("MuteToggle",Ii);var Li=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||q(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=N(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return R(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=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")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(bt);Li.prototype.options_={children:["muteToggle","volumeControl"]},bt.registerComponent("VolumePanel",Li);var Di=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return R(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=se(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ze(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(bt);bt.registerComponent("Menu",Di);var Mi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t);var r=N(this,e.call(this,n,i));r.menuButton_=new ti(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var a=ti.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+a,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return R(t,e),t.prototype.update=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.show()},t.prototype.createMenu=function(){var e=new Di(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=se("li",{className:"vjs-menu-title",innerHTML:gt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=ti.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){ze(a,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){qe(a,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&&re())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(bt);bt.registerComponent("MenuButton",Mi);var ji=function(e){function t(n,i){j(this,t);var r=i.tracks,a=N(this,e.call(this,n,i));if(a.items.length<=1&&a.hide(),!r)return N(a);var s=tt(a,a.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),a.player_.on("ready",s),a.player_.on("dispose",(function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})),a}return R(t,e),t}(Mi);bt.registerComponent("TrackButton",ji);var Ri=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return R(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",V({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=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}(Wn);bt.registerComponent("MenuItem",Ri);var Ni=function(e){function t(n,i){j(this,t);var s=i.track,o=n.textTracks();i.label=s.label||s.language||"Unknown",i.selected="showing"===s.mode;var l=N(this,e.call(this,n,i));l.track=s;var u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleTracksChange.apply(l,t)},c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleSelectedLanguageChange.apply(l,t)};if(n.on(["loadstart","texttrackchange"],u),o.addEventListener("change",u),o.addEventListener("selectedlanguagechange",c),l.on("dispose",(function(){n.off(["loadstart","texttrackchange"],u),o.removeEventListener("change",u),o.removeEventListener("selectedlanguagechange",c)})),void 0===o.onchange){var d=void 0;l.on(["tap","click"],(function(){if("object"!==M(r.Event))try{d=new r.Event("change")}catch(e){}d||(d=a.createEvent("Event"),d.initEvent("change",!0,!0)),o.dispatchEvent(d)}))}return l.handleTracksChange(),l}return R(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,i=this.track.kinds,r=this.player_.textTracks();if(i||(i=[n]),e.prototype.handleClick.call(this,t),r)for(var a=0;a<r.length;a++){var s=r[a];s===this.track&&i.indexOf(s.kind)>-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Ri);bt.registerComponent("TextTrackMenuItem",Ni);var Bi=function(e){function t(n,i){return j(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,N(this,e.call(this,n,i))}return R(t,e),t.prototype.handleTracksChange=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)},t.prototype.handleSelectedLanguageChange=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})},t}(Ni);bt.registerComponent("OffTextTrackMenuItem",Bi);var Ui=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(this,t),i.tracks=n.textTracks(),N(this,e.call(this,n,i))}return R(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new Bi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),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 t(this.player_,{track:a,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(ji);bt.registerComponent("TextTrackButton",Ui);var Fi=function(e){function t(n,i){j(this,t);var r=i.track,a=i.cue,s=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=a.text,i.selected=a.startTime<=s&&s<a.endTime;var o=N(this,e.call(this,n,i));return o.track=r,o.cue=a,r.addEventListener("cuechange",tt(o,o.update)),o}return R(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Ri);bt.registerComponent("ChaptersTrackMenuItem",Fi);var $i=function(e){function t(n,i,r){return j(this,t),N(this,e.call(this,n,i,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=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_=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_)}}},t.prototype.findChaptersTrack=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}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(gt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=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 Fi(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(Ui);$i.prototype.kind_="chapters",$i.prototype.controlText_="Chapters",bt.registerComponent("ChaptersButton",$i);var Hi=function(e){function t(n,i,r){j(this,t);var a=N(this,e.call(this,n,i,r)),s=n.textTracks(),o=tt(a,a.handleTracksChange);return s.addEventListener("change",o),a.on("dispose",(function(){s.removeEventListener("change",o)})),a}return R(t,e),t.prototype.handleTracksChange=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()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ui);Hi.prototype.kind_="descriptions",Hi.prototype.controlText_="Descriptions",bt.registerComponent("DescriptionsButton",Hi);var Vi=function(e){function t(n,i,r){return j(this,t),N(this,e.call(this,n,i,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ui);Vi.prototype.kind_="subtitles",Vi.prototype.controlText_="Subtitles",bt.registerComponent("SubtitlesButton",Vi);var zi=function(e){function t(n,i){j(this,t),i.track={player:n,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var r=N(this,e.call(this,n,i));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return R(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Ni);bt.registerComponent("CaptionSettingsMenuItem",zi);var qi=function(e){function t(n,i,r){return j(this,t),N(this,e.call(this,n,i,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new zi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ui);qi.prototype.kind_="captions",qi.prototype.controlText_="Captions",bt.registerComponent("CaptionsButton",qi);var Wi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>";var a=e.prototype.createEl.call(this,t,V({innerHTML:r},n),i);return a},t}(Ni);bt.registerComponent("SubsCapsMenuItem",Wi);var Gi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t);var r=N(this,e.call(this,n,i));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(gt(r.label_)),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new zi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Wi),t},t}(Ui);Gi.prototype.kinds_=["captions","subtitles"],Gi.prototype.controlText_="Subtitles",bt.registerComponent("SubsCapsButton",Gi);var Xi=function(e){function t(n,i){j(this,t);var r=i.track,a=n.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled;var s=N(this,e.call(this,n,i));s.track=r,s.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];s.handleTracksChange.apply(s,t)};return a.addEventListener("change",o),s.on("dispose",(function(){a.removeEventListener("change",o)})),s}return R(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>";var a=e.prototype.createEl.call(this,t,V({innerHTML:r},n),i);return a},t.prototype.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var i=0;i<n.length;i++){var r=n[i];r.enabled=r===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Ri);bt.registerComponent("AudioTrackMenuItem",Xi);var Yi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(this,t),i.tracks=n.audioTracks(),N(this,e.call(this,n,i))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=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 Xi(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(ji);Yi.prototype.controlText_="Audio Track",bt.registerComponent("AudioTrackButton",Yi);var Ki=function(e){function t(n,i){j(this,t);var r=i.rate,a=parseFloat(r,10);i.label=r,i.selected=1===a,i.selectable=!0,i.multiSelectable=!1;var s=N(this,e.call(this,n,i));return s.label=r,s.rate=a,s.on(n,"ratechange",s.update),s}return R(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Ri);Ki.prototype.contentElType="button",bt.registerComponent("PlaybackRateMenuItem",Ki);var Qi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.updateVisibility(),r.updateLabel(),r.on(n,"loadstart",r.updateVisibility),r.on(n,"ratechange",r.updateLabel),r}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=se("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Di(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Ki(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>t){i=n[r];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Mi);Qi.prototype.controlText_="Playback Rate",bt.registerComponent("PlaybackRateMenuButton",Qi);var Ji=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(bt);bt.registerComponent("Spacer",Ji);var Zi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Ji);bt.registerComponent("CustomControlSpacer",Zi);var er=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(bt);er.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},bt.registerComponent("ControlBar",er);var tr=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"error",r.open),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}($t);tr.prototype.options_=yt($t.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),bt.registerComponent("ErrorDisplay",tr);var nr="vjs-text-track-settings",ir=["#000","Black"],rr=["#00F","Blue"],ar=["#0FF","Cyan"],sr=["#0F0","Green"],or=["#F0F","Magenta"],lr=["#F00","Red"],ur=["#FFF","White"],cr=["#FF0","Yellow"],dr=["1","Opaque"],hr=["0.5","Semi-Transparent"],pr=["0","Transparent"],fr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ir,ur,lr,sr,rr,cr,or,ar]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[dr,hr,pr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ur,ir,lr,sr,rr,cr,or,ar]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},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:"Transparency",options:[dr,hr]},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:"Transparency",options:[pr,hr,dr]}};function mr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function gr(e,t){var n=e.options[e.options.selectedIndex].value;return mr(n,t)}function vr(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(mr(e.options[i].value,n)===t){e.selectedIndex=i;break}}fr.windowColor.options=fr.backgroundColor.options;var yr=function(e){function t(n,i){j(this,t),i.temporary=!1;var r=N(this,e.call(this,n,i));return r.updateDisplay=tt(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=se("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===i.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),$(fr,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}return R(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=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=fr[e],a=r.id.replace("%s",this.id_),s=[n,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map((function(e){var n=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+n+'">',t.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return se("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return se("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("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return se("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return H(fr,(function(t,n,i){var r=gr(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},t.prototype.setValues=function(e){var t=this;$(fr,(function(n,i){vr(t.$(n.selector),e[i],n.parser)}))},t.prototype.setDefaults=function(){var e=this;$(fr,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(r.localStorage.getItem(nr))}catch(t){Y.warn(t)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?r.localStorage.setItem(nr,JSON.stringify(e)):r.localStorage.removeItem(nr)}catch(t){Y.warn(t)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(a,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}($t);bt.registerComponent("TextTrackSettings",yr);var br=function(e){function t(n,i){j(this,t);var a=i.ResizeObserver||r.ResizeObserver;null===i.ResizeObserver&&(a=!1);var s=yt({createEl:!a},i),o=N(this,e.call(this,n,s));return o.ResizeObserver=i.ResizeObserver||r.ResizeObserver,o.loadListener_=null,o.resizeObserver_=null,o.debouncedHandler_=it((function(){o.resizeHandler()}),100,!1,o),a?(o.resizeObserver_=new o.ResizeObserver(o.debouncedHandler_),o.resizeObserver_.observe(n.el())):(o.loadListener_=function(){o.el_&&o.el_.contentWindow&&ze(o.el_.contentWindow,"resize",o.debouncedHandler_)},o.one("load",o.loadListener_)),o}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&qe(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(bt);bt.registerComponent("ResizeManager",br);var _r=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)},Tr={};x||(Tr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=a.createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",r.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var Sr=function(e,t){for(var n={},i=0;i<e.length;i++)if(n=Object.getOwnPropertyDescriptor(e[i],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},wr=function(e){return Sr([e.el(),r.HTMLMediaElement.prototype,r.Element.prototype,Tr],"innerHTML")},kr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=wr(e),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 _r(e),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",yt(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_)}},Cr={};x||(Cr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?rn(r.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return r.Element.prototype.setAttribute.call(this,"src",e),e}}));var Er=function(e){return Sr([e.el(),r.HTMLMediaElement.prototype,Cr],"src")},xr=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=Er(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",yt(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 _r(e)||(e.triggerSourceset(""),kr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):_r(e)||kr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Or=B(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Ar=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i)),a=n.source,o=!1;if(a&&(r.el_.currentSrc!==a.src||n.tag&&3===n.tag.initNetworkState_)?r.setSource(a):r.handleLateInit_(r.el_),n.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){var l=r.el_.childNodes,u=l.length,c=[];while(u--){var d=l[u],h=d.nodeName.toLowerCase();"track"===h&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(d),r.remoteTextTracks().addTrack(d.track),r.textTracks().addTrack(d.track),o||r.el_.hasAttribute("crossorigin")||!sn(d.src)||(o=!0)):c.push(d))}for(var p=0;p<c.length;p++)r.el_.removeChild(c[p])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&Y.warn(s(Or)),r.restoreMetadataTracksInIOSNativePlayer_(),(I||m||S)&&!0===n.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return R(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){xr(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var n=0;n<e.length;n++){var i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(function(){return e.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)}))},t.prototype.proxyNativeTracks_=function(){var e=this;yn.names.forEach((function(t){var n=yn[t],i=e.el()[n.getterName],r=e[n.getterName]();if(e["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(e){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},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])}while(e.length)r.removeTrack(e.shift())};Object.keys(a).forEach((function(t){var n=a[t];i.addEventListener(t,n),e.on("dispose",(function(e){return i.removeEventListener(t,n)}))})),e.on("loadstart",s),e.on("dispose",(function(t){return e.off("loadstart",s)}))}}))},t.prototype.createEl=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=a.createElement("video");var i=this.options_.tag&&fe(this.options_.tag),r=yt({},i);I&&!0===this.options_.nativeControlsForTouch||delete r.controls,pe(e,V(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&ge(e,"preload",this.options_.preload);for(var s=["loop","muted","playsinline","autoplay"],o=0;o<s.length;o++){var l=s[o],u=this.options_[l];"undefined"!==typeof u&&(u?ge(e,l,l):ve(e,l),e[l]=u)}return e},t.prototype.handleLateInit_=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")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}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)}))}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){Y(t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&b&&C&&0===this.el_.currentTime){var t=function t(){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},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},t.prototype.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=r.navigator&&r.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout((function(){e.pause(),e.webkitEnterFullScreen()}),0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),i=n.length;while(i--)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])}},t.prototype.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r.performance&&"function"===typeof r.performance.now?e.creationTime=r.performance.now():r.performance&&r.performance.timing&&"number"===typeof r.performance.timing.navigationStart&&(e.creationTime=r.Date.now()-r.performance.timing.navigationStart),e},t}(Sn);if(ne()){Ar.TEST_VID=a.createElement("video");var Pr=a.createElement("track");Pr.kind="captions",Pr.srclang="en",Pr.label="English",Ar.TEST_VID.appendChild(Pr)}Ar.isSupported=function(){try{Ar.TEST_VID.volume=.5}catch(e){return!1}return!(!Ar.TEST_VID||!Ar.TEST_VID.canPlayType)},Ar.canPlayType=function(e){return Ar.TEST_VID.canPlayType(e)},Ar.canPlaySource=function(e,t){return Ar.canPlayType(e.type)},Ar.canControlVolume=function(){try{var e=Ar.TEST_VID.volume;return Ar.TEST_VID.volume=e/2+.1,e!==Ar.TEST_VID.volume}catch(t){return!1}},Ar.canMuteVolume=function(){try{var e=Ar.TEST_VID.muted;return Ar.TEST_VID.muted=!e,Ar.TEST_VID.muted?ge(Ar.TEST_VID,"muted","muted"):ve(Ar.TEST_VID,"muted","muted"),e!==Ar.TEST_VID.muted}catch(t){return!1}},Ar.canControlPlaybackRate=function(){if(b&&C&&E<58)return!1;try{var e=Ar.TEST_VID.playbackRate;return Ar.TEST_VID.playbackRate=e/2+.1,e!==Ar.TEST_VID.playbackRate}catch(t){return!1}},Ar.canOverrideAttributes=function(){if(x)return!1;try{var e=function(){};Object.defineProperty(a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Ar.supportsNativeTextTracks=function(){return P||v&&C},Ar.supportsNativeVideoTracks=function(){return!(!Ar.TEST_VID||!Ar.TEST_VID.videoTracks)},Ar.supportsNativeAudioTracks=function(){return!(!Ar.TEST_VID||!Ar.TEST_VID.audioTracks)},Ar.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Ar.prototype.featuresVolumeControl=Ar.canControlVolume(),Ar.prototype.featuresMuteControl=Ar.canMuteVolume(),Ar.prototype.featuresPlaybackRate=Ar.canControlPlaybackRate(),Ar.prototype.featuresSourceset=Ar.canOverrideAttributes(),Ar.prototype.movingMediaElementInDOM=!v,Ar.prototype.featuresFullscreenResize=!0,Ar.prototype.featuresProgressEvents=!0,Ar.prototype.featuresTimeupdateEvents=!0,Ar.prototype.featuresNativeTextTracks=Ar.supportsNativeTextTracks(),Ar.prototype.featuresNativeVideoTracks=Ar.supportsNativeVideoTracks(),Ar.prototype.featuresNativeAudioTracks=Ar.supportsNativeAudioTracks();var Ir=Ar.TEST_VID&&Ar.TEST_VID.constructor.prototype.canPlayType,Lr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Dr=/^video\/mp4/i;Ar.patchCanPlayType=function(){_>=4&&!w&&!C?Ar.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Lr.test(e)?"maybe":Ir.call(this,e)}:T&&(Ar.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Dr.test(e)?"maybe":Ir.call(this,e)})},Ar.unpatchCanPlayType=function(){var e=Ar.TEST_VID.constructor.prototype.canPlayType;return Ar.TEST_VID.constructor.prototype.canPlayType=Ir,e},Ar.patchCanPlayType(),Ar.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},Ar.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Ar.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Ar.prototype["set"+gt(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","played","networkState","readyState","videoWidth","videoHeight"].forEach((function(e){Ar.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach((function(e){Ar.prototype["set"+gt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Ar.prototype[e]=function(){return this.el_[e]()}})),Sn.withSourceHandlers(Ar),Ar.nativeSourceHandler={},Ar.nativeSourceHandler.canPlayType=function(e){try{return Ar.TEST_VID.canPlayType(e)}catch(t){return""}},Ar.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ar.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=an(e.src);return Ar.nativeSourceHandler.canPlayType("video/"+n)}return""},Ar.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Ar.nativeSourceHandler.dispose=function(){},Ar.registerSourceHandler(Ar.nativeSourceHandler),Sn.registerTech("Html5",Ar);var Mr=B(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),jr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Rr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Nr=["tiny","xsmall","small","medium","large","xlarge","huge"],Br={};Nr.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Br[e]="vjs-layout-"+t}));var Ur={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Fr=function(e){function t(n,i,r){if(j(this,t),n.id=n.id||i.id||"vjs_video_"+De(),i=V(t.getTagSettings(n),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(i.language=a.getAttribute("lang"))}else{var s=n;while(s&&1===s.nodeType){if(fe(s).hasOwnProperty("lang")){i.language=s.getAttribute("lang");break}s=s.parentNode}}var o=N(this,e.call(this,null,i,r));if(o.log=K(o.id_),o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&fe(n),o.language(o.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach((function(e){l[e.toLowerCase()]=i.languages[e]})),o.languages_=l}else o.languages_=t.prototype.options_.languages;o.cache_={},o.poster_=i.poster||"",o.controls_=!!i.controls,o.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?o.options_.autoplay=!0:o.autoplay(o.options_.autoplay),o.scrubbing_=!1,o.el_=o.createEl(),o.cache_.lastPlaybackRate=o.defaultPlaybackRate(),pt(o,{eventBusKey:"el_"});var u=yt(o.options_);if(i.plugins){var d=i.plugins;Object.keys(d).forEach((function(e){if("function"!==typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](d[e])}),o)}o.options_.playerOptions=u,o.middleware_=[],o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),v||o.addClass("vjs-workinghover"),t.players[o.id_]=o;var h=c.split(".")[0];return o.addClass("vjs-v"+h),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o.changingSrc_=!1,o.playWaitingForReady_=!1,o.playOnLoadstart_=null,o}return R(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),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),Nn(this),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),s="video-js"===this.tag.tagName.toLowerCase();i?n=this.el_=t.parentNode:s||(n=this.el_=e.prototype.createEl.call(this,"div"));var o=fe(t);if(s){n=this.el_=t,t=this.tag=a.createElement("video");while(n.children.length)t.appendChild(n.firstChild);ue(n,"video-js")||ce(n,"video-js"),n.appendChild(t),i=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach((function(e){"undefined"!==typeof n[e]&&(t[e]=n[e])}))}if(t.setAttribute("tabindex","-1"),o.tabindex="-1",O&&(t.setAttribute("role","application"),o.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach((function(e){"class"===e?(n.className+=" "+o[e],s&&(t.className+=" "+o[e])):(n.setAttribute(e,o[e]),s&&t.setAttribute(e,o[e]))})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==r.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ze("vjs-styles-dimensions");var l=Ae(".vjs-styles-defaults"),u=Ae("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.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);for(var c=t.getElementsByTagName("a"),d=0;d<c.length;d++){var h=c.item(d);ce(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(n,t),le(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?Y.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new 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_()},t.prototype.updateStyleEl_=function(){if(!0!==r.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,i=void 0;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var a=n.split(":"),s=a[1]/a[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/s:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*s,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),et(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*s+"%;\n }\n ")}else{var o="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(o>=0&&(u.width=o),l>=0&&(u.height=l))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=gt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Sn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a="string"!==typeof this.autoplay()&&this.autoplay(),s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,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};_n.names.forEach((function(e){var t=_n[e];s[t.getterName]=n[t.privateName]})),V(s,this.options_[i]),V(s,this.options_[r]),V(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=Sn.getTech(e);if(!o)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(tt(this,this.handleTechReady_),!0),Bt.jsonToTextTracks(this.textTracksJson_||[],this.tech_),jr.forEach((function(e){n.on(n.tech_,e,n["handleTech"+gt(e)+"_"])})),Object.keys(Rr).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Rr[e]+"_"].bind(n),event:t}):n["handleTech"+Rr[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||le(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;_n.names.forEach((function(t){var n=_n[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=Bt.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&Y.warn(s(Mr)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){Y("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n["catch"])return n["catch"]((function(n){t.muted(e)}))},i=void 0;if("any"===e?(i=this.play(),i&&i.then&&i["catch"]&&i["catch"]((function(){return n()}))):i="muted"===e?n():this.play(),i&&i.then&&i["catch"])return i.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(n){t.trigger({type:"autoplay-failure",autoplay:e})}))}},t.prototype.updateSourceCaches_=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=Hn(this,t)),this.cache_.source=yt({},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 l=fe(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;if(i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),!e.src){var a=function e(n){if("sourceset"!==n.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}t.tech_.off(["sourceset","loadstart"],e)};this.tech_.one(["sourceset","loadstart"],a)}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=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")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return e.removeClass("vjs-waiting")}))},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(Y.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){Oe(e)&&this.controls_&&(this.paused()?Mt(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready((function(){if(e in Dn)return Pn(this.middleware_,this.tech_,e,t);if(e in Mn)return In(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw Y(n),n}}),!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Ln)return An(this.middleware_,this.tech_,e);if(e in Mn)return In(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Y("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Y("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Y(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||r.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mt;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready((function(){e.playWaitingForReady_=!1,t(e.play())}))}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||wt(0,0)},t.prototype.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=wt(0,0)),e},t.prototype.bufferedPercent=function(){return kt(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=Ct;this.isFullscreen(!0),e.requestFullscreen?(ze(a,e.fullscreenchange,tt(this,(function t(n){this.isFullscreen(a[e.fullscreenElement]),!1===this.isFullscreen()&&qe(a,e.fullscreenchange,t),this.trigger("fullscreenchange")}))),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=Ct;this.isFullscreen(!1),e.requestFullscreen?a[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.documentElement.style.overflow,ze(a,"keydown",tt(this,this.fullWindowOnEscKey)),a.documentElement.style.overflow="hidden",ce(a.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,qe(a,"keydown",this.fullWindowOnEscKey),a.documentElement.style.overflow=this.docOrigOverflow,de(a.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Sn.getTech(r);if(a||(a=bt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else Y.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t=this,n=this.options_.techOrder.map((function(e){return[e,Sn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Y.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var i=void 0;return e.some((function(e){return t.some((function(t){if(i=n(e,t),i)return!0}))})),i},r=void 0,a=function(e){return function(t,n){return e(n,t)}},s=function(e,n){var i=e[0],r=e[1];if(r.canPlaySource(n,t.options_[i.toLowerCase()]))return{source:n,tech:i}};return r=this.options_.sourceOrder?i(e,n,a(s)):i(n,e,s),r||!1},t.prototype.src=function(e){var t=this;if("undefined"===typeof e)return this.cache_.src||"";var n=Vn(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),xn(this,n[0],(function(e,i){t.middleware_=i,t.cache_.sources=n,t.updateSourceCaches_(e);var r=t.src_(e);if(r)return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void t.triggerReady());On(i,t.tech_)}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},t.prototype.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(vt(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),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"===typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=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"))},t.prototype.handleTechPosterChange_=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"))}},t.prototype.controls=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.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=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")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new It(e),this.addClass("vjs-error"),Y.error("(CODE:"+this.error_.code+" "+It.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");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")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,i=tt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("keydown",i),this.on("keyup",i);var o=void 0;this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track,n=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(n)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return yt(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=yt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=yt(i),i.player=void 0,e.tracks[n]=i}return e},t.prototype.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var i=new $t(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Nr.length;n++){var i=Nr[n],r=this.breakpoints_[i];if(t<=r){if(e===i)return;e&&this.removeClass(Br[e]),this.addClass(Br[i]),this.breakpoint_=i;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=V({},Ur,e),this.updateCurrentBreakpoint_()),V(this.breakpoints_)},t.prototype.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return Br[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=fe(e),i=n["data-setup"];if(ue(e,"vjs-fill")&&(n.fill=!0),ue(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=o(i||"{}"),a=r[0],s=r[1];a&&Y.error(a),V(n,s)}if(V(t,n),e.hasChildNodes())for(var l=e.childNodes,u=0,c=l.length;u<c;u++){var d=l[u],h=d.nodeName.toLowerCase();"source"===h?t.sources.push(fe(d)):"track"===h&&t.tracks.push(fe(d))}return t},t.prototype.flexNotSupported_=function(){var e=a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(bt);_n.names.forEach((function(e){var t=_n[e];Fr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Fr.players={};var $r=r.navigator;Fr.prototype.options_={techOrder:Sn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:$r&&($r.languages&&$r.languages[0]||$r.userLanguage||$r.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},x||Fr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Fr.prototype[e]=function(){return this.techGet_(e)}})),jr.forEach((function(e){Fr.prototype["handleTech"+gt(e)+"_"]=function(){return this.trigger(e)}})),bt.registerComponent("Player",Fr);var Hr="plugin",Vr="activePlugins_",zr={},qr=function(e){return zr.hasOwnProperty(e)},Wr=function(e){return qr(e)?zr[e]:void 0},Gr=function(e,t){e[Vr]=e[Vr]||{},e[Vr][t]=!0},Xr=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Yr=function(e,t){var n=function(){Xr(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Gr(this,e),Xr(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},Kr=function(e,t){return t.prototype.name=e,function(){Xr(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(i))));return this[e]=function(){return a},Xr(this,a.getEventHash()),a}},Qr=function(){function e(t){if(j(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,pt(this),delete this.trigger,mt(this,this.constructor.defaultState),Gr(t,this.name),this.dispose=tt(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=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},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return We(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Vr][e]=!1,this.player=this.state=null,t[e]=Kr(e,zr[e])},e.isBasic=function(t){var n="string"===typeof t?Wr(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+("undefined"===typeof t?"undefined":M(t))+".");if(qr(t))Y.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Fr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+("undefined"===typeof n?"undefined":M(n))+".");return zr[t]=n,t!==Hr&&(e.isBasic(n)?Fr.prototype[t]=Yr(t,n):Fr.prototype[t]=Kr(t,n)),n},e.deregisterPlugin=function(e){if(e===Hr)throw new Error("Cannot de-register base plugin.");qr(e)&&(delete zr[e],delete Fr.prototype[e])},e.getPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(zr),t=void 0;return e.forEach((function(e){var n=Wr(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=Wr(e);return t&&t.VERSION||""},e}();Qr.getPlugin=Wr,Qr.BASE_PLUGIN_NAME=Hr,Qr.registerPlugin(Hr,Qr),Fr.prototype.usingPlugin=function(e){return!!this[Vr]&&!0===this[Vr][e]},Fr.prototype.hasPlugin=function(e){return!!qr(e)};var Jr=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":M(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},Zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},i={};for(var r in"object"===("undefined"===typeof t?"undefined":M(t))?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"===typeof t&&(n=t),Jr(n,e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n};"undefined"===typeof HTMLVideoElement&&ne()&&(a.createElement("video"),a.createElement("audio"),a.createElement("track"),a.createElement("video-js"));var ea=function(e){return 0===e.indexOf("#")?e.slice(1):e};function ta(e,t,n){var i=ta.getPlayer(e);if(i)return t&&Y.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?Ae("#"+ea(e)):e;if(!ie(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");a.body.contains(r)||Y.warn("The element supplied is not included in the DOM"),t=t||{},ta.hooks("beforesetup").forEach((function(e){var n=e(r,yt(t));z(n)&&!Array.isArray(n)?t=yt(t,n):Y.error("please return an object in beforesetup hooks")}));var s=bt.getComponent("Player");return i=new s(r,t,n),ta.hooks("setup").forEach((function(e){return e(i)})),i}if(ta.hooks_={},ta.hooks=function(e,t){return ta.hooks_[e]=ta.hooks_[e]||[],t&&(ta.hooks_[e]=ta.hooks_[e].concat(t)),ta.hooks_[e]},ta.hook=function(e,t){ta.hooks(e,t)},ta.hookOnce=function(e,t){ta.hooks(e,[].concat(t).map((function(t){var n=function n(){return ta.removeHook(e,n),t.apply(void 0,arguments)};return n})))},ta.removeHook=function(e,t){var n=ta.hooks(e).indexOf(t);return!(n<=-1)&&(ta.hooks_[e]=ta.hooks_[e].slice(),ta.hooks_[e].splice(n,1),!0)},!0!==r.VIDEOJS_NO_DYNAMIC_STYLE&&ne()){var na=Ae(".vjs-styles-defaults");if(!na){na=Ze("vjs-styles-defaults");var ia=Ae("head");ia&&ia.insertBefore(na,ia.firstChild),et(na,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Je(1,ta),ta.VERSION=c,ta.options=Fr.prototype.options_,ta.getPlayers=function(){return Fr.players},ta.getPlayer=function(e){var t=Fr.players,n=void 0;if("string"===typeof e){var i=ea(e),r=t[i];if(r)return r;n=Ae("#"+i)}else n=e;if(ie(n)){var a=n,s=a.player,o=a.playerId;if(s||t[o])return s||t[o]}},ta.getAllPlayers=function(){return Object.keys(Fr.players).map((function(e){return Fr.players[e]})).filter(Boolean)},ta.players=Fr.players,ta.getComponent=bt.getComponent,ta.registerComponent=function(e,t){Sn.isTech(t)&&Y.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),bt.registerComponent.call(bt,e,t)},ta.getTech=Sn.getTech,ta.registerTech=Sn.registerTech,ta.use=En,!x&&Object.defineProperty?(Object.defineProperty(ta,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(ta.middleware,"TERMINATOR",{value:Cn,writeable:!1,enumerable:!0})):ta.middleware={TERMINATOR:Cn},ta.browser=D,ta.TOUCH_ENABLED=I,ta.extend=Zr,ta.mergeOptions=yt,ta.bind=tt,ta.registerPlugin=Qr.registerPlugin,ta.deregisterPlugin=Qr.deregisterPlugin,ta.plugin=function(e,t){return Y.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Qr.registerPlugin(e,t)},ta.getPlugins=Qr.getPlugins,ta.getPlugin=Qr.getPlugin,ta.getPluginVersion=Qr.getPluginVersion,ta.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),ta.options.languages=yt(ta.options.languages,(n={},n[e]=t,n)),ta.options.languages[e]},ta.log=Y,ta.createLogger=K,ta.createTimeRange=ta.createTimeRanges=wt,ta.formatTime=ui,ta.setFormatTime=oi,ta.resetFormatTime=li,ta.parseUrl=nn,ta.isCrossOrigin=sn,ta.EventTarget=rt,ta.on=ze,ta.one=Ge,ta.off=qe,ta.trigger=We,ta.xhr=l,ta.TextTrack=cn,ta.AudioTrack=dn,ta.VideoTrack=hn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){ta[e]=function(){return Y.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ie[e].apply(null,arguments)}})),ta.computedStyle=Q,ta.dom=Ie,ta.url=on,e.exports=ta},1325:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var i=n("a142"),r=!1;if(!i["h"])try{var a={};Object.defineProperty(a,"passive",{get:function(){r=!0}}),window.addEventListener("test-passive",null,a)}catch(c){}function s(e,t,n,a){void 0===a&&(a=!1),i["h"]||e.addEventListener(t,n,!!r&&{capture:!1,passive:a})}function o(e,t,n){i["h"]||e.removeEventListener(t,n)}function l(e){e.stopPropagation()}function u(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&l(e)}},1376:function(e,t,n){e.exports={tag:n("d36f"),Transmuxer:n("bc1c"),getFlvHeader:n("c5323")}},"140c":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("e475"),a=i(r),s={errorInterval:30,getSource:function(e){var t=this.tech({IWillNotUseThisInPlugins:!0}),n=t.currentSource_;return e(n)}},o=function e(t,n){var i=0,r=0,o=a["default"].mergeOptions(s,n);t.ready((function(){t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var l=function(){r&&t.currentTime(r)},u=function(e){null!==e&&void 0!==e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",l),t.src(e),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},c=function(){if(Date.now()-i<1e3*o.errorInterval)t.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(o.getSource&&"function"===typeof o.getSource)return i=Date.now(),o.getSource.call(t,u);a["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},d=function e(){t.off("loadedmetadata",l),t.off("error",c),t.off("dispose",e)},h=function(n){d(),e(t,n)};t.on("error",c),t.on("dispose",d),t.reloadSourceOnError=h},l=function(e){o(this,e)};t["default"]=l,e.exports=t["default"]},1421:function(e,t,n){"use strict";function i(e){return"string"===typeof e?document.querySelector(e):e()}function r(e){var t=void 0===e?{}:e,n=t.ref,r=t.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var e,t=this.getContainer,a=n?this.$refs[n]:this.$el;t?e=i(t):this.$parent&&(e=this.$parent.$el),e&&e!==a.parentNode&&e.appendChild(a),r&&r.call(this)}}}}n.d(t,"a",(function(){return r}))},"14b8":function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{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}function a(){this.values=n(null)}function s(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);if(2===s.length){var o=s[0],l=s[1];t(o,l)}}}function o(e,t,n){var o=e;function l(){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 u(e,t){var i=new a;s(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","middle","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","middle","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","middle","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical",""),t.line=i.get("line","auto"),t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align","middle"),t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),c(),t.endTime=l(),c(),u(e,t)}i.prototype=n(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),t>=0&&t<=100))&&(this.set(e,t),!0)}};var l={"&":"&","<":"<",">":">","‎":"‎","‏":"â€"," ":" "},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},d={rt:"ruby"};function h(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return l[e]}function a(e){while(y=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))e=e.replace(y[0],i);return e}function s(e,t){return!d[t.localName]||d[t.localName]===e.localName}function o(t,n){var i=u[t];if(!i)return null;var r=e.document.createElement(i);r.localName=i;var a=c[t];return a&&n&&(r[a]=n.trim()),r}var h,p=e.document.createElement("div"),f=p,m=[];while(null!==(h=n()))if("<"!==h[0])f.appendChild(e.document.createTextNode(a(h)));else{if("/"===h[1]){m.length&&m[m.length-1]===h.substr(2).replace(">","")&&(m.pop(),f=f.parentNode);continue}var g,v=r(h.substr(1,h.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),f.appendChild(g);continue}var y=h.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(g=o(y[1],y[3]),!g)continue;if(!s(f,g))continue;y[2]&&(g.className=y[2].substr(1).replace("."," ")),m.push(y[1]),f.appendChild(g),f=g}return p}var p=[[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],[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]];function f(e){for(var t=0;t<p.length;t++){var n=p[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function m(e){var t,n=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function a(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}r(n,e);while(i=a(n))for(var s=0;s<i.length;s++)if(t=i.charCodeAt(s),f(t))return"rtl";return"ltr"}function g(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}function v(){}function y(e,t,n){var i=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";i&&(r="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),v.call(this),this.cue=t,this.cueDiv=h(e,t.text);var s={color:r,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},i||(s.direction=m(this.cueDiv),s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var o=0;switch(t.positionAlign){case"start":o=t.position;break;case"middle":o=t.position-t.size/2;break;case"end":o=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),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")})}}function b(e){var t,n,i,r,a=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.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,a&&!this.lineHeight&&(this.lineHeight=13)}function _(e,t,n,i){function r(e,t){for(var r,a=new b(e),s=1,o=0;o<t.length;o++){while(e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i))e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new b(e),s=l),e=new b(a)}return r||a}var a=new b(t),s=t.cue,o=g(s),l=[];if(s.snapToLines){var u;switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=a.lineHeight,d=c*Math.round(o),h=n[u]+c,p=l[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),o<0&&(d+=""===s.vertical?n.height:n.width,l=l.reverse()),a.move(p,d)}else{var f=a.lineHeight/n.height*100;switch(s.lineAlign){case"middle":o-=f/2;break;case"end":o-=f;break}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],a=new b(t)}var m=r(a,l);t.move(m.toCSSCompatValues(n))}function T(){}v.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},v.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=n(v.prototype),y.prototype.constructor=y,b.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;break}},b.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},b.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},b.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},b.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}},b.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*n;return i/(this.height*this.width)},b.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}},b.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;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n};return r},T.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},T.convertCueToDOMTree=function(e,t){return e&&t?h(e,t):null};var S=.05,w="sans-serif",k="1.5%";T.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=k,n.appendChild(i),r(t)){var a=[],s=b.getSimpleBoxPosition(i),o=Math.round(s.height*S*100)/100,l={font:o+"px "+w};(function(){for(var n,r,o=0;o<t.length;o++)r=t[o],n=new y(e,r,l),i.appendChild(n.div),_(e,n,s,a),r.displayState=n.div,a.push(b.getSimpleBoxPosition(n))})()}else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},T.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=[]},T.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(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}function l(e){var n=new a;if(s(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new a;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function u(e){var n=new a;s(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",r(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?s(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":u(t);break}}),/=/):s(e,(function(e,t){switch(e){case"Region":l(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;d=n();var h=d.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:d=n(),t.state){case"HEADER":/:/.test(d)?c(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===d.indexOf("--\x3e")){t.cue.id=d;continue}case"CUE":try{o(d,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==d.indexOf("--\x3e");if(!d||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d;continue;case"BADCUE":d||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"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(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new i(i.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=T},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"157a":function(e,t,n){},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var i=42;for(t in e[t]=i,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||!0!==a.enumerable)return!1}return!0}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19b3":function(e,t,n){"use strict";var i=n("769d"),r=u(i),a=n("faec"),s=u(a),o=n("f42a"),l=u(o);function u(e){return e&&e.__esModule?e:{default:e}}e.exports={LineStream:r["default"],ParseStream:s["default"],Parser:l["default"]}},"1b15":function(e,t,n){"use strict";var i,r,a,s;i=function(e,t){var n,a,s,o,l,u=[];if(!t.length)return null;for(n=0;n<e.byteLength;)a=e[n]<<24,a|=e[n+1]<<16,a|=e[n+2]<<8,a|=e[n+3],s=r(e.subarray(n+4,n+8)),o=a>1?n+a:e.byteLength,s===t[0]&&(1===t.length?u.push(e.subarray(n+8,o)):(l=i(e.subarray(n+8,o),t.slice(1)),l.length&&(u=u.concat(l)))),n=o;return u},r=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]),t},a=function(e){var t={},n=i(e,["moov","trak"]);return n.reduce((function(e,t){var n,r,a,s,o;return n=i(t,["tkhd"])[0],n?(r=n[0],a=0===r?12:20,s=n[a]<<24|n[a+1]<<16|n[a+2]<<8|n[a+3],o=i(t,["mdia","mdhd"])[0],o?(r=o[0],a=0===r?12:20,e[s]=o[a]<<24|o[a+1]<<16|o[a+2]<<8|o[a+3],e):null):null}),t)},s=function(e,t){var n,r,a;return n=i(t,["moof","traf"]),r=[].concat.apply([],n.map((function(t){return i(t,["tfhd"]).map((function(n){var r,a,s;return r=n[4]<<24|n[5]<<16|n[6]<<8|n[7],a=e[r]||9e4,s=i(t,["tfdt"]).map((function(e){var t,n;return t=e[0],n=e[4]<<24|e[5]<<16|e[6]<<8|e[7],1===t&&(n*=Math.pow(2,32),n+=e[8]<<24|e[9]<<16|e[10]<<8|e[11]),n}))[0],s=s||1/0,s/a}))}))),a=Math.min.apply(null,r),isFinite(a)?a:0},e.exports={parseType:r,timescale:a,startTime:s}},"1b5c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n("ed7b"),o=r(s),l=n("de2e"),u=r(l),c=n("50a6"),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,n){var i=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new o["default"](Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),s=new Int32Array(a.buffer),l=void 0,u=void 0,c=void 0,h=void 0,p=void 0,f=void 0,m=void 0,g=void 0,v=void 0;for(l=n[0],u=n[1],c=n[2],h=n[3],v=0;v<i.length;v+=4)p=d(i[v]),f=d(i[v+1]),m=d(i[v+2]),g=d(i[v+3]),r.decrypt(p,f,m,g,s,v),s[v]=d(s[v]^l),s[v+1]=d(s[v+1]^u),s[v+2]=d(s[v+2]^c),s[v+3]=d(s[v+3]^h),l=p,u=f,c=m,h=g;return a};t.decrypt=h;var p=function(){function e(t,n,i,r){a(this,e);var s=e.STEP,o=new Int32Array(t.buffer),l=new Uint8Array(t.byteLength),h=0;for(this.asyncStream_=new u["default"],this.asyncStream_.push(this.decryptChunk_(o.subarray(h,h+s),n,i,l)),h=s;h<o.length;h+=s)i=new Uint32Array([d(o[h-4]),d(o[h-3]),d(o[h-2]),d(o[h-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(h,h+s),n,i,l));this.asyncStream_.push((function(){r(null,(0,c.unpad)(l))}))}return i(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}();t.Decrypter=p,t["default"]={Decrypter:p,decrypt:h}},"1b8d":function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i<arguments.length;i++)t+=n(e[i])+(arguments[i+1]||"");return t}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("d3b7");function i(e,t,n,i,r,a,s){try{var o=e[a](s),l=o.value}catch(u){return void n(u)}o.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var s=e.apply(t,n);function o(e){i(s,r,a,o,l,"next",e)}function l(e){i(s,r,a,o,l,"throw",e)}o(void 0)}))}}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),a=n("2d00"),s=r("species");e.exports=function(e){return a>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o<l;++o)i[o]=s[o],r[s.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function c(e){var t=u(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,i=u(e),s=i[0],o=i[1],l=new a(d(e,s,o)),c=0,h=o>0?s-4:s;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===o&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===o&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function p(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function f(e,t,n){for(var i,r=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(p(i));return r.join("")}function m(e){for(var t,n=e.length,r=n%3,a=[],s=16383,o=0,l=n-r;o<l;o+=s)a.push(f(e,o,o+s>l?l:o+s));return 1===r?(t=e[n-1],a.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"210b":function(e,t,n){var i=n("e1c8");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("b074").DOMParser},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),a=n("50c4"),s=n("0366"),o=n("9a1f"),l=n("35a1"),u=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var d,h,p,f,m,g,v,y=n&&n.that,b=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),S=s(t,y,1+b+T),w=function(e){return d&&u(d,"normal",e),new c(!0,e)},k=function(e){return b?(i(e),T?S(e[0],e[1],w):S(e[0],e[1])):T?S(e,w):S(e)};if(_)d=e;else{if(h=l(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(r(h)){for(p=0,f=a(e.length);f>p;p++)if(m=k(e[p]),m&&m instanceof c)return m;return new c(!1)}d=o(e,h)}g=d.next;while(!(v=g.call(d)).done){try{m=k(v.value)}catch(C){u(d,"throw",C)}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)}},"230d":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("e475"),a=i(r),s=n("8c57"),o=i(s),l=function(){},u=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},c=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)};t.stopLoaders=c;var d=function(e,t){t.activePlaylistLoader=e,e.load()};t.startLoaders=d;var h=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.activeGroup(s),l=a.activePlaylistLoader;c(i,a),o&&(o.playlistLoader?(i.resyncLoader(),d(o.playlistLoader,a)):l&&r.resetEverything())}};t.onGroupChanged=h;var p=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.activeGroup(s),l=a.activePlaylistLoader;c(i,a),o&&(o.playlistLoader?l!==o.playlistLoader?(i.track&&i.track(s),i.resetEverything(),d(o.playlistLoader,a)):d(o.playlistLoader,a):r.resetEverything())}};t.onTrackChanged=p;var f={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;c(n,i);var s=i.activeTrack(),o=i.activeGroup(),l=(o.filter((function(e){return e["default"]}))[0]||o[0]).id,u=i.tracks[l];if(s!==u){for(var d in a["default"].log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[d].enabled=i.tracks[d]===u;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];a["default"].log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),c(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}};t.onError=f;var m={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",f[e](e,n))}},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",f[e](e,n))}};t.setupListeners=m;var g={AUDIO:function(e,t){var n=t.mode,i=t.hls,r=t.segmentLoaders[e],s=t.requestOptions,l=t.master.mediaGroups,c=t.mediaTypes[e],d=c.groups,h=c.tracks;for(var p in l[e]&&0!==Object.keys(l[e]).length&&"html5"===n||(l[e]={main:{default:{default:!0}}}),l[e])for(var g in d[p]||(d[p]=[]),l[e][p]){var v=l[e][p][g],y=void 0;if(y=v.resolvedUri?new o["default"](v.resolvedUri,i,s):null,v=a["default"].mergeOptions({id:g,playlistLoader:y},v),m[e](e,v.playlistLoader,t),d[p].push(v),"undefined"===typeof h[g]){var b=new a["default"].AudioTrack({id:g,kind:u(v),enabled:!1,language:v.language,default:v["default"],label:g});h[g]=b}}r.on("error",f[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.hls,r=t.segmentLoaders[e],s=t.requestOptions,l=t.master.mediaGroups,u=t.mediaTypes[e],c=u.groups,d=u.tracks;for(var h in l[e])for(var p in c[h]||(c[h]=[]),l[e][h])if(!l[e][h][p].forced){var g=l[e][h][p];if(g=a["default"].mergeOptions({id:p,playlistLoader:new o["default"](g.resolvedUri,i,s)},g),m[e](e,g.playlistLoader,t),c[h].push(g),"undefined"===typeof d[p]){var v=n.addRemoteTextTrack({id:p,kind:"subtitles",enabled:!1,language:g.language,label:p},!1).track;d[p]=v}}r.on("error",f[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],s=r.groups,o=r.tracks;for(var l in i[e])for(var u in s[l]||(s[l]=[]),i[e][l]){var c=i[e][l][u];if(c.instreamId.match(/CC\d/)&&(s[l].push(a["default"].mergeOptions({id:u},c)),"undefined"===typeof o[u])){var d=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",enabled:!1,language:c.language,label:u},!1).track;o[u]=d}}}};t.initialize=g;var v=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var s=null;return a.attributes[e]&&(s=r[a.attributes[e]]),s=s||r.main,"undefined"===typeof n?s:null===n?null:s.filter((function(e){return e.id===n.id}))[0]||null}};t.activeGroup=v;var y={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}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode)return n[i];return null}}};t.activeTrack=y;var b=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){g[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.hls;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=v(n,e),t[n].activeTrack=y[n](n,e),t[n].onGroupChanged=h(n,e),t[n].onTrackChanged=p(n,e)}));var a=t.AUDIO.activeGroup(),s=(a.filter((function(e){return e["default"]}))[0]||a[0]).id;t.AUDIO.tracks[s].enabled=!0,t.AUDIO.onTrackChanged(),n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanged()}))}));var o=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"hls-audio-change"})};for(var l in i.audioTracks().addEventListener("change",o),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",o),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[l])};t.setupMediaGroups=b;var _=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:l,activeTrack:l,onGroupChanged:l,onTrackChanged:l}})),e};t.createMediaTypes=_},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,a=n("9112"),s=n("6eeb"),o=n("ce4e"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,d,h,p,f,m=e.target,g=e.global,v=e.stat;if(c=g?i:v?i[m]||o(m,{}):(i[m]||{}).prototype,c)for(d in t){if(p=t[d],e.noTargetGet?(f=r(c,d),h=f&&f.value):h=c[d],n=u(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof p===typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&a(p,"sham",!0),s(c,d,p,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),a=n("387f"),s={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(o(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s){if("SyntaxError"===o.name)throw a(o,this,"E_JSON_PARSE");throw o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){c.headers[e]=i.merge(s)})),e.exports=c}).call(this,n("4362"))},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),a=n("b622"),s=n("83ab"),o=a("species");e.exports=function(e){var t=i(e),n=r.f;s&&t&&!t[o]&&n(t,o,{configurable:!0,get:function(){return this}})}},2638:function(e,t,n){"use strict";function i(){return i=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)}var r=["attrs","props","domProps"],a=["class","style","directives"],s=["on","nativeOn"],o=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==r.indexOf(n))e[n]=i({},e[n],t[n]);else if(-1!==a.indexOf(n)){var o=e[n]instanceof Array?e[n]:[e[n]],u=t[n]instanceof Array?t[n]:[t[n]];e[n]=o.concat(u)}else if(-1!==s.indexOf(n))for(var c in t[n])if(e[n][c]){var d=e[n][c]instanceof Array?e[n][c]:[e[n][c]],h=t[n][c]instanceof Array?t[n][c]:[t[n][c]];e[n][c]=d.concat(h)}else e[n][c]=t[n][c];else if("hook"==n)for(var p in t[n])e[n][p]=e[n][p]?l(e[n][p],t[n][p]):t[n][p];else e[n]=t[n];else e[n]=t[n];return e}),{})},l=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=o},"269f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("12c6"),u=a(l),c=n("9417"),d=a(c),h=n("4ea2"),p=a(h),f=n("ba2d"),m=n("78d8"),g=a(m),v=n("5c9d"),y=a(v),b=n("0de0"),_=function(){var e=void 0;try{e="5c9d"}catch(t){}return e},T=function(e,t){var n=e.addSourceBuffer(t),i=Object.create(null);i.updating=!1,i.realBuffer_=n;var r=function(e){"function"===typeof n[e]?i[e]=function(){return n[e].apply(n,arguments)}:"undefined"===typeof i[e]&&Object.defineProperty(i,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})};for(var a in n)r(a);return i},S=function(e,t,n){if(!t||!e.length)return[];var i=Math.ceil(9e4*(t.currentTime()-n+3)),r=void 0;for(r=0;r<e.length;r++)if(e[r].pts>i)break;return e.slice(r)};t.gopsSafeToAlignWith=S;var w=function(e,t,n){if(!t.length)return e;if(n)return t.slice();var i=t[0].pts,r=0;for(r;r<e.length;r++)if(e[r].pts>=i)break;return e.slice(0,r).concat(t)};t.updateGopBuffer=w;var k=function(e,t,n,i){var r=Math.ceil(9e4*(t-i)),a=Math.ceil(9e4*(n-i)),s=e.slice(),o=e.length;while(o--)if(e[o].pts<=a)break;if(-1===o)return s;var l=o+1;while(l--)if(e[l].pts<=r)break;return l=Math.max(l,0),s.splice(l,o-l+1),s};t.removeGopBuffer=k;var C=function(e){function t(e,n){var i=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,u["default"].EventTarget),this.timestampOffset_=0,this.pendingBuffers_=[],this.bufferUpdating_=!1,this.mediaSource_=e,this.codecs_=n,this.audioCodec_=null,this.videoCodec_=null,this.audioDisabled_=!1,this.appendAudioInitSegment_=!0,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=u["default"].browser.IE_VERSION>=11;var a={remux:!1,alignGopsAtEnd:this.safeAppend_};this.codecs_.forEach((function(e){(0,b.isAudioCodec)(e)?i.audioCodec_=e:(0,b.isVideoCodec)(e)&&(i.videoCodec_=e)})),this.transmuxer_=(0,g["default"])(y["default"],_()),this.transmuxer_.postMessage({action:"init",options:a}),this.transmuxer_.onmessage=function(e){return"data"===e.data.action?i.data_(e):"done"===e.data.action?i.done_(e):"gopInfo"===e.data.action?i.appendGopInfo_(e):void 0},Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(e){"number"===typeof e&&e>=0&&(this.timestampOffset_=e,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e}))}}),Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(e){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=e),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=e)}}),Object.defineProperty(this,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(this,"buffered",{get:function(){var e=null,t=null,n=0,i=[],r=[];if(!this.videoBuffer_&&!this.audioBuffer_)return u["default"].createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(!this.audioBuffer_)return this.videoBuffer_.buffered;if(this.audioDisabled_)return this.videoBuffer_.buffered;if(0===this.videoBuffer_.buffered.length&&0===this.audioBuffer_.buffered.length)return u["default"].createTimeRange();var a=this.videoBuffer_.buffered,s=this.audioBuffer_.buffered,o=a.length;while(o--)i.push({time:a.start(o),type:"start"}),i.push({time:a.end(o),type:"end"});o=s.length;while(o--)i.push({time:s.start(o),type:"start"}),i.push({time:s.end(o),type:"end"});for(i.sort((function(e,t){return e.time-t.time})),o=0;o<i.length;o++)"start"===i[o].type?(n++,2===n&&(e=i[o].time)):"end"===i[o].type&&(n--,1===n&&(t=i[o].time)),null!==e&&null!==t&&(r.push([e,t]),e=null,t=null);return u["default"].createTimeRanges(r)}})}return o(t,e),i(t,[{key:"data_",value:function(e){var t=e.data.segment;t.data=new Uint8Array(t.data,e.data.byteOffset,e.data.byteLength),t.initSegment=new Uint8Array(t.initSegment.data,t.initSegment.byteOffset,t.initSegment.byteLength),(0,d["default"])(this,this.mediaSource_,t),this.pendingBuffers_.push(t)}},{key:"done_",value:function(e){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"createRealSourceBuffers_",value:function(){var e=this,t=["audio","video"];t.forEach((function(n){if(e[n+"Codec_"]&&!e[n+"Buffer_"]){var i=null;if(e.mediaSource_[n+"Buffer_"])i=e.mediaSource_[n+"Buffer_"],i.updating=!1;else{var r=n+"Codec_",a=n+'/mp4;codecs="'+e[r]+'"';i=T(e.mediaSource_.nativeMediaSource_,a),e.mediaSource_[n+"Buffer_"]=i}e[n+"Buffer_"]=i,["update","updatestart","updateend"].forEach((function(r){i.addEventListener(r,(function(){if("audio"!==n||!e.audioDisabled_){"updateend"===r&&(e[n+"Buffer_"].updating=!1);var i=t.every((function(t){return!("audio"!==t||!e.audioDisabled_)||(n===t||!e[t+"Buffer_"]||!e[t+"Buffer_"].updating)}));return i?e.trigger(r):void 0}}))}))}}))}},{key:"appendBuffer",value:function(e){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var t=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:t.end(t.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:S(this.gopBuffer_,this.mediaSource_.player_,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength},[e.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(e){this.gopBuffer_=w(this.gopBuffer_,e.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(e,t){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(e,t),this.gopBuffer_=k(this.gopBuffer_,e,t,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(e,t)),(0,p["default"])(e,t,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)(0,p["default"])(e,t,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var e={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};e=this.pendingBuffers_.reduce((function(e,t){var n=t.type,i=t.data,r=t.initSegment;return e[n].segments.push(i),e[n].bytes+=i.byteLength,e[n].initSegment=r,t.captions&&(e.captions=e.captions.concat(t.captions)),t.info&&(e[n].info=t.info),t.metadata&&(e.metadata=e.metadata.concat(t.metadata)),e}),e),this.videoBuffer_||this.audioBuffer_||(0===e.video.bytes&&(this.videoCodec_=null),0===e.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),e.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:e.audio.info}),e.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:e.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(e.audio.segments.unshift(e.audio.initSegment),e.audio.bytes+=e.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var t=!1;this.videoBuffer_&&e.video.bytes?(e.video.segments.unshift(e.video.initSegment),e.video.bytes+=e.video.initSegment.byteLength,this.concatAndAppendSegments_(e.video,this.videoBuffer_),(0,f.addTextTrackData)(this,e.captions,e.metadata)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(t=!0),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(e.audio,this.audioBuffer_),this.pendingBuffers_.length=0,t&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(e,t){var n=0,i=void 0;if(e.bytes){i=new Uint8Array(e.bytes),e.segments.forEach((function(e){i.set(e,n),n+=e.byteLength}));try{t.updating=!0,t.appendBuffer(i)}catch(r){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:r.message,originalError:r})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),t}(u["default"].EventTarget);t["default"]=C},2714:function(e,t,n){var i="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=i&&r&&"function"===typeof r.get?r.get:null,s=i&&Map.prototype.forEach,o="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&l&&"function"===typeof l.get?l.get:null,c=o&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,f=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,_=String.prototype.match,T="function"===typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"===typeof Symbol&&"object"===typeof Symbol.iterator,C=Object.prototype.propertyIsEnumerable,E=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),x=n(4).custom,O=x&&U(x)?x:null,A="function"===typeof Symbol&&"undefined"!==typeof Symbol.toStringTag?Symbol.toStringTag:null;function P(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function I(e){return String(e).replace(/"/g,""")}function L(e){return"[object Array]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function D(e){return"[object Date]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function M(e){return"[object RegExp]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function j(e){return"[object Error]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function R(e){return"[object String]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function N(e){return"[object Number]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function B(e){return"[object Boolean]"===V(e)&&(!A||!("object"===typeof e&&A in e))}function U(e){if(k)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!w)return!1;try{return w.call(e),!0}catch(t){}return!1}function F(e){if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,i,r){var o=n||{};if(H(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(o,"maxStringLength")&&("number"===typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!H(o,"customInspect")||o.customInspect;if("boolean"!==typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return J(t,o);if("number"===typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"===typeof t)return String(t)+"n";var d="undefined"===typeof o.depth?5:o.depth;if("undefined"===typeof i&&(i=0),i>=d&&d>0&&"object"===typeof t)return L(t)?"[Array]":"[Object]";var h=re(o,i);if("undefined"===typeof r)r=[];else if(q(r,t)>=0)return"[Circular]";function p(t,n,a){if(n&&(r=r.slice(),r.push(n)),a){var s={depth:o.depth};return H(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(t,s,i+1,r)}return e(t,o,i+1,r)}if("function"===typeof t){var f=z(t),m=se(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(m.length>0?" { "+m.join(", ")+" }":"")}if(U(t)){var g=k?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(t);return"object"!==typeof t||k?g:ee(g)}if(Q(t)){for(var y="<"+String(t.nodeName).toLowerCase(),b=t.attributes||[],_=0;_<b.length;_++)y+=" "+b[_].name+"="+P(I(b[_].value),"double",o);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+String(t.nodeName).toLowerCase()+">",y}if(L(t)){if(0===t.length)return"[]";var S=se(t,p);return h&&!ie(S)?"["+ae(S,h)+"]":"[ "+S.join(", ")+" ]"}if(j(t)){var C=se(t,p);return 0===C.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.join(", ")+" }"}if("object"===typeof t&&l){if(O&&"function"===typeof t[O])return t[O]();if("symbol"!==l&&"function"===typeof t.inspect)return t.inspect()}if(W(t)){var x=[];return s.call(t,(function(e,n){x.push(p(n,t,!0)+" => "+p(e,t))})),ne("Map",a.call(t),x,h)}if(Y(t)){var $=[];return c.call(t,(function(e){$.push(p(e,t))})),ne("Set",u.call(t),$,h)}if(G(t))return te("WeakMap");if(K(t))return te("WeakSet");if(X(t))return te("WeakRef");if(N(t))return ee(p(Number(t)));if(F(t))return ee(p(T.call(t)));if(B(t))return ee(v.call(t));if(R(t))return ee(p(String(t)));if(!D(t)&&!M(t)){var Z=se(t,p),oe=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",ue=!oe&&A&&Object(t)===t&&A in t?V(t).slice(8,-1):le?"Object":"",ce=oe||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",de=ce+(ue||le?"["+[].concat(ue||[],le||[]).join(": ")+"] ":"");return 0===Z.length?de+"{}":h?de+"{"+ae(Z,h)+"}":de+"{ "+Z.join(", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return $.call(e,t)}function V(e){return y.call(e)}function z(e){if(e.name)return e.name;var t=_.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function W(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{u.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function G(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function X(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function Y(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function K(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function Q(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function J(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return J(e.slice(0,t.maxStringLength),t)+i}var r=e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Z);return P(r,"single",t)}function Z(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function ee(e){return"Object("+e+")"}function te(e){return e+" { ? }"}function ne(e,t,n,i){var r=i?ae(n,i):n.join(", ");return e+" ("+t+") {"+r+"}"}function ie(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}function re(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}function ae(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function se(e,t){var n=L(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=H(e,r)?t(e[r],e):""}var a,s="function"===typeof S?S(e):[];if(k){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||k&&a["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"===typeof S)for(var u=0;u<s.length;u++)C.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,a,s,o){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},"2a62":function(e,t,n){var i=n("825a");e.exports=function(e,t,n){var r,a;i(e);try{if(r=e["return"],void 0===r){if("throw"===t)throw n;return n}r=r.call(e)}catch(s){a=!0,r=s}if("throw"===t)throw n;if(a)throw r;return i(r),n}},"2b0e":function(e,t,n){"use strict";(function(e){ /*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function a(e){return!0===e}function s(e){return!1===e}function o(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function T(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var S=/-(\w)/g,w=T((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),k=T((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,E=T((function(e){return e.replace(C,"-$1").toLowerCase()}));function x(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function O(e,t){return e.bind(t)}var A=Function.prototype.bind?O:x;function P(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function I(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n<e.length;n++)e[n]&&I(t,e[n]);return t}function D(e,t,n){}var M=function(e,t,n){return!1},j=function(e){return e};function R(e,t){if(e===t)return!0;var n=l(e),i=l(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),a=Array.isArray(t);if(r&&a)return e.length===t.length&&e.every((function(e,n){return R(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||a)return!1;var s=Object.keys(e),o=Object.keys(t);return s.length===o.length&&s.every((function(n){return R(e[n],t[n])}))}catch(u){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(R(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var U="data-server-rendered",F=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:M,isReservedAttr:M,isUnknownElement:M,getTagNamespace:D,parsePlatformTagName:j,mustUseProp:M,async:!0,_lifecycleHooks:$},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function z(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var W=new RegExp("[^"+V.source+".$_\\d]");function G(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var X,Y="__proto__"in{},K="undefined"!==typeof window,Q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Q&&WXEnvironment.platform.toLowerCase(),Z=K&&window.navigator.userAgent.toLowerCase(),ee=Z&&/msie|trident/.test(Z),te=Z&&Z.indexOf("msie 9.0")>0,ne=Z&&Z.indexOf("edge/")>0,ie=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),re=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ae={}.watch,se=!1;if(K)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,oe)}catch(ws){}var le=function(){return void 0===X&&(X=!K&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),X},ue=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,he="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);de="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=D,fe=0,me=function(){this.id=fe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},me.target=null;var ge=[];function ve(e){ge.push(e),me.target=e}function ye(){ge.pop(),me.target=ge[ge.length-1]}var be=function(e,t,n,i,r,a,s,o){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(be.prototype,_e);var Te=function(e){void 0===e&&(e="");var t=new be;return t.text=e,t.isComment=!0,t};function Se(e){return new be(void 0,void 0,void 0,String(e))}function we(e){var t=new be(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ke=Array.prototype,Ce=Object.create(ke),Ee=["push","pop","shift","unshift","splice","sort","reverse"];Ee.forEach((function(e){var t=ke[e];q(Ce,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,a=t.apply(this,n),s=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),a}))}));var xe=Object.getOwnPropertyNames(Ce),Oe=!0;function Ae(e){Oe=e}var Pe=function(e){this.value=e,this.dep=new me,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(Y?Ie(e,Ce):Le(e,Ce,xe),this.observeArray(e)):this.walk(e)};function Ie(e,t){e.__proto__=t}function Le(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];q(e,a,t[a])}}function De(e,t){var n;if(l(e)&&!(e instanceof be))return _(e,"__ob__")&&e.__ob__ instanceof Pe?n=e.__ob__:Oe&&!le()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Pe(e)),t&&n&&n.vmCount++,n}function Me(e,t,n,i,r){var a=new me,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var o=s&&s.get,l=s&&s.set;o&&!l||2!==arguments.length||(n=e[t]);var u=!r&&De(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=o?o.call(e):n;return me.target&&(a.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ne(t))),t},set:function(t){var i=o?o.call(e):n;t===i||t!==t&&i!==i||o&&!l||(l?l.call(e,t):n=t,u=!r&&De(t),a.notify())}})}}function je(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(Me(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Re(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ne(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ne(t)}Pe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Me(e,t[n])},Pe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)De(e[t])};var Be=H.optionMergeStrategies;function Ue(e,t){if(!t)return e;for(var n,i,r,a=he?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)n=a[s],"__ob__"!==n&&(i=e[n],r=t[n],_(e,n)?i!==r&&c(i)&&c(r)&&Ue(i,r):je(e,n,r));return e}function Fe(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,r="function"===typeof e?e.call(n,n):e;return i?Ue(i,r):r}:t?e?function(){return Ue("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function $e(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?He(n):n}function He(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ve(e,t,n,i){var r=Object.create(e||null);return t?I(r,t):r}Be.data=function(e,t,n){return n?Fe(e,t,n):t&&"function"!==typeof t?e:Fe(e,t)},$.forEach((function(e){Be[e]=$e})),F.forEach((function(e){Be[e+"s"]=Ve})),Be.watch=function(e,t,n,i){if(e===ae&&(e=void 0),t===ae&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var a in I(r,e),t){var s=r[a],o=t[a];s&&!Array.isArray(s)&&(s=[s]),r[a]=s?s.concat(o):Array.isArray(o)?o:[o]}return r},Be.props=Be.methods=Be.inject=Be.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return I(r,e),t&&I(r,t),r},Be.provide=Fe;var ze=function(e,t){return void 0===t?e:t};function qe(e,t){var n=e.props;if(n){var i,r,a,s={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(a=w(r),s[a]={type:null})}else if(c(n))for(var o in n)r=n[o],a=w(o),s[a]=c(r)?r:{type:r};else 0;e.props=s}}function We(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(c(n))for(var a in n){var s=n[a];i[a]=c(s)?I({from:a},s):{from:s}}else 0}}function Ge(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}function Xe(e,t,n){if("function"===typeof t&&(t=t.options),qe(t,n),We(t,n),Ge(t),!t._base&&(t.extends&&(e=Xe(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Xe(e,t.mixins[i],n);var a,s={};for(a in e)o(a);for(a in t)_(e,a)||o(a);function o(i){var r=Be[i]||ze;s[i]=r(e[i],t[i],n,i)}return s}function Ye(e,t,n,i){if("string"===typeof n){var r=e[t];if(_(r,n))return r[n];var a=w(n);if(_(r,a))return r[a];var s=k(a);if(_(r,s))return r[s];var o=r[n]||r[a]||r[s];return o}}function Ke(e,t,n,i){var r=t[e],a=!_(n,e),s=n[e],o=tt(Boolean,r.type);if(o>-1)if(a&&!_(r,"default"))s=!1;else if(""===s||s===E(e)){var l=tt(String,r.type);(l<0||o<l)&&(s=!0)}if(void 0===s){s=Qe(i,r,e);var u=Oe;Ae(!0),De(s),Ae(u)}return s}function Qe(e,t,n){if(_(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof i&&"Function"!==Ze(t.type)?i.call(e):i}}var Je=/^\s*function (\w+)/;function Ze(e){var t=e&&e.toString().match(Je);return t?t[1]:""}function et(e,t){return Ze(e)===Ze(t)}function tt(e,t){if(!Array.isArray(t))return et(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(et(t[n],e))return n;return-1}function nt(e,t,n){ve();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{var s=!1===r[a].call(i,e,t,n);if(s)return}catch(ws){rt(ws,i,"errorCaptured hook")}}}rt(e,t,n)}finally{ye()}}function it(e,t,n,i,r){var a;try{a=n?e.apply(t,n):e.call(t),a&&!a._isVue&&p(a)&&!a._handled&&(a.catch((function(e){return nt(e,i,r+" (Promise/async)")})),a._handled=!0)}catch(ws){nt(ws,i,r)}return a}function rt(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(ws){ws!==e&&at(ws,null,"config.errorHandler")}at(e,t,n)}function at(e,t,n){if(!K&&!Q||"undefined"===typeof console)throw e;console.error(e)}var st,ot=!1,lt=[],ut=!1;function ct(){ut=!1;var e=lt.slice(0);lt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ce(Promise)){var dt=Promise.resolve();st=function(){dt.then(ct),ie&&setTimeout(D)},ot=!0}else if(ee||"undefined"===typeof MutationObserver||!ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())st="undefined"!==typeof setImmediate&&ce(setImmediate)?function(){setImmediate(ct)}:function(){setTimeout(ct,0)};else{var ht=1,pt=new MutationObserver(ct),ft=document.createTextNode(String(ht));pt.observe(ft,{characterData:!0}),st=function(){ht=(ht+1)%2,ft.data=String(ht)},ot=!0}function mt(e,t){var n;if(lt.push((function(){if(e)try{e.call(t)}catch(ws){nt(ws,t,"nextTick")}else n&&n(t)})),ut||(ut=!0,st()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var gt=new de;function vt(e){yt(e,gt),gt.clear()}function yt(e,t){var n,i,r=Array.isArray(e);if(!(!r&&!l(e)||Object.isFrozen(e)||e instanceof be)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(r){n=e.length;while(n--)yt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)yt(e[i[n]],t)}}}var bt=T((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function _t(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return it(i,null,arguments,t,"v-on handler");for(var r=i.slice(),a=0;a<r.length;a++)it(r[a],null,e,t,"v-on handler")}return n.fns=e,n}function Tt(e,t,n,r,s,o){var l,u,c,d;for(l in e)u=e[l],c=t[l],d=bt(l),i(u)||(i(c)?(i(u.fns)&&(u=e[l]=_t(u,o)),a(d.once)&&(u=e[l]=s(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==c&&(c.fns=u,e[l]=c));for(l in t)i(e[l])&&(d=bt(l),r(d.name,t[l],d.capture))}function St(e,t,n){var s;e instanceof be&&(e=e.data.hook||(e.data.hook={}));var o=e[t];function l(){n.apply(this,arguments),y(s.fns,l)}i(o)?s=_t([l]):r(o.fns)&&a(o.merged)?(s=o,s.fns.push(l)):s=_t([o,l]),s.merged=!0,e[t]=s}function wt(e,t,n){var a=t.options.props;if(!i(a)){var s={},o=e.attrs,l=e.props;if(r(o)||r(l))for(var u in a){var c=E(u);kt(s,l,u,c,!0)||kt(s,o,u,c,!1)}return s}}function kt(e,t,n,i,a){if(r(t)){if(_(t,n))return e[n]=t[n],a||delete t[n],!0;if(_(t,i))return e[n]=t[i],a||delete t[i],!0}return!1}function Ct(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Et(e){return o(e)?[Se(e)]:Array.isArray(e)?Ot(e):void 0}function xt(e){return r(e)&&r(e.text)&&s(e.isComment)}function Ot(e,t){var n,s,l,u,c=[];for(n=0;n<e.length;n++)s=e[n],i(s)||"boolean"===typeof s||(l=c.length-1,u=c[l],Array.isArray(s)?s.length>0&&(s=Ot(s,(t||"")+"_"+n),xt(s[0])&&xt(u)&&(c[l]=Se(u.text+s[0].text),s.shift()),c.push.apply(c,s)):o(s)?xt(u)?c[l]=Se(u.text+s):""!==s&&c.push(Se(s)):xt(s)&&xt(u)?c[l]=Se(u.text+s.text):(a(e._isVList)&&r(s.tag)&&i(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+n+"__"),c.push(s)));return c}function At(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Pt(e){var t=It(e.$options.inject,e);t&&(Ae(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Ae(!0))}function It(e,t){if(e){for(var n=Object.create(null),i=he?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){var s=e[a].from,o=t;while(o){if(o._provided&&_(o._provided,s)){n[a]=o._provided[s];break}o=o.$parent}if(!o)if("default"in e[a]){var l=e[a].default;n[a]="function"===typeof l?l.call(t):l}else 0}}return n}}function Lt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],s=a.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,a.context!==t&&a.fnContext!==t||!s||null==s.slot)(n.default||(n.default=[])).push(a);else{var o=s.slot,l=n[o]||(n[o]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var u in n)n[u].every(Dt)&&delete n[u];return n}function Dt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Mt(e){return e.isComment&&e.asyncFactory}function jt(e,t,i){var r,a=Object.keys(t).length>0,s=e?!!e.$stable:!a,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==n&&o===i.$key&&!a&&!i.$hasNormal)return i;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=Rt(t,l,e[l]))}else r={};for(var u in t)u in r||(r[u]=Nt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=r),q(r,"$stable",s),q(r,"$key",o),q(r,"$hasNormal",a),r}function Rt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Et(e);var t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Mt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Nt(e,t){return function(){return e[t]}}function Bt(e,t){var n,i,a,s,o;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,a=e.length;i<a;i++)n[i]=t(e[i],i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(l(e))if(he&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),c=u.next();while(!c.done)n.push(t(c.value,n.length)),c=u.next()}else for(s=Object.keys(e),n=new Array(s.length),i=0,a=s.length;i<a;i++)o=s[i],n[i]=t(e[o],o,i);return r(n)||(n=[]),n._isVList=!0,n}function Ut(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=I(I({},i),n)),r=a(n)||("function"===typeof t?t():t)):r=this.$slots[e]||("function"===typeof t?t():t);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},r):r}function Ft(e){return Ye(this.$options,"filters",e,!0)||j}function $t(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ht(e,t,n,i,r){var a=H.keyCodes[t]||n;return r&&i&&!H.keyCodes[t]?$t(r,i):a?$t(a,e):i?E(i)!==t:void 0===e}function Vt(e,t,n,i,r){if(n)if(l(n)){var a;Array.isArray(n)&&(n=L(n));var s=function(s){if("class"===s||"style"===s||v(s))a=e;else{var o=e.attrs&&e.attrs.type;a=i||H.mustUseProp(t,o,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=w(s),u=E(s);if(!(l in a)&&!(u in a)&&(a[s]=n[s],r)){var c=e.on||(e.on={});c["update:"+s]=function(e){n[s]=e}}};for(var o in n)s(o)}else;return e}function zt(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Wt(i,"__static__"+e,!1)),i}function qt(e,t,n){return Wt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Wt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&Gt(e[i],t+"_"+i,n);else Gt(e,t,n)}function Gt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Xt(e,t){if(t)if(c(t)){var n=e.on=e.on?I({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else;return e}function Yt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];Array.isArray(a)?Yt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function Kt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Qt(e,t){return"string"===typeof e?t+e:e}function Jt(e){e._o=qt,e._n=m,e._s=f,e._l=Bt,e._t=Ut,e._q=R,e._i=N,e._m=zt,e._f=Ft,e._k=Ht,e._b=Vt,e._v=Se,e._e=Te,e._u=Yt,e._g=Xt,e._d=Kt,e._p=Qt}function Zt(e,t,i,r,s){var o,l=this,u=s.options;_(r,"_uid")?(o=Object.create(r),o._original=r):(o=r,r=r._original);var c=a(u._compiled),d=!c;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=It(u.inject,r),this.slots=function(){return l.$slots||jt(e.scopedSlots,l.$slots=Lt(i,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return jt(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=jt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var a=pn(o,e,t,n,i,d);return a&&!Array.isArray(a)&&(a.fnScopeId=u._scopeId,a.fnContext=r),a}:this._c=function(e,t,n,i){return pn(o,e,t,n,i,d)}}function en(e,t,i,a,s){var o=e.options,l={},u=o.props;if(r(u))for(var c in u)l[c]=Ke(c,u,t||n);else r(i.attrs)&&nn(l,i.attrs),r(i.props)&&nn(l,i.props);var d=new Zt(i,l,s,a,e),h=o.render.call(null,d._c,d);if(h instanceof be)return tn(h,i,d.parent,o,d);if(Array.isArray(h)){for(var p=Et(h)||[],f=new Array(p.length),m=0;m<p.length;m++)f[m]=tn(p[m],i,d.parent,o,d);return f}}function tn(e,t,n,i,r){var a=we(e);return a.fnContext=n,a.fnOptions=i,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function nn(e,t){for(var n in t)e[w(n)]=t[n]}Jt(Zt.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{var i=e.componentInstance=on(e,In);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Rn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Zn(n):Bn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Un(t,!0):t.$destroy())}},an=Object.keys(rn);function sn(e,t,n,s,o){if(!i(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"===typeof e){var c;if(i(e.cid)&&(c=e,e=wn(c,u),void 0===e))return Sn(c,t,n,s,o);t=t||{},Si(e),r(t.model)&&cn(e.options,t);var d=wt(t,e,o);if(a(e.options.functional))return en(e,d,t,n,s);var h=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}ln(t);var f=e.options.name||o,m=new be("vue-component-"+e.cid+(f?"-"+f:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:h,tag:o,children:s},c);return m}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function ln(e){for(var t=e.hook||(e.hook={}),n=0;n<an.length;n++){var i=an[n],r=t[i],a=rn[i];r===a||r&&r._merged||(t[i]=r?un(a,r):a)}}function un(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),s=a[i],o=t.model.callback;r(s)?(Array.isArray(s)?-1===s.indexOf(o):s!==o)&&(a[i]=[o].concat(s)):a[i]=o}var dn=1,hn=2;function pn(e,t,n,i,r,s){return(Array.isArray(n)||o(n))&&(r=i,i=n,n=void 0),a(s)&&(r=hn),fn(e,t,n,i,r)}function fn(e,t,n,i,a){if(r(n)&&r(n.__ob__))return Te();if(r(n)&&r(n.is)&&(t=n.is),!t)return Te();var s,o,l;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),a===hn?i=Et(i):a===dn&&(i=Ct(i)),"string"===typeof t)?(o=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),s=H.isReservedTag(t)?new be(H.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(l=Ye(e.$options,"components",t))?new be(t,n,i,void 0,void 0,e):sn(l,n,e,i,t)):s=sn(t,n,e,i);return Array.isArray(s)?s:r(s)?(r(o)&&mn(s,o),r(n)&&gn(n),s):Te()}function mn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var s=0,o=e.children.length;s<o;s++){var l=e.children[s];r(l.tag)&&(i(l.ns)||a(n)&&"svg"!==l.tag)&&mn(l,t,n)}}function gn(e){l(e.style)&&vt(e.style),l(e.class)&&vt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=Lt(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return pn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return pn(e,t,n,i,r,!0)};var a=i&&i.data;Me(e,"$attrs",a&&a.attrs||n,null,!0),Me(e,"$listeners",t._parentListeners||n,null,!0)}var yn,bn=null;function _n(e){Jt(e.prototype),e.prototype.$nextTick=function(e){return mt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=jt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{bn=t,e=i.call(t._renderProxy,t.$createElement)}catch(ws){nt(ws,t,"render"),e=t._vnode}finally{bn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof be||(e=Te()),e.parent=r,e}}function Tn(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Sn(e,t,n,i,r){var a=Te();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}function wn(e,t){if(a(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=bn;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var s=e.owners=[n],o=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return y(s,n)}));var d=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},h=B((function(n){e.resolved=Tn(n,t),o?s.length=0:d(!0)})),f=B((function(t){r(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,f);return l(m)&&(p(m)?i(e.resolved)&&m.then(h,f):p(m.component)&&(m.component.then(h,f),r(m.error)&&(e.errorComp=Tn(m.error,t)),r(m.loading)&&(e.loadingComp=Tn(m.loading,t),0===m.delay?e.loading=!0:u=setTimeout((function(){u=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),r(m.timeout)&&(c=setTimeout((function(){c=null,i(e.resolved)&&f(null)}),m.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}function kn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||Mt(n)))return n}}function Cn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&An(e,t)}function En(e,t){yn.$on(e,t)}function xn(e,t){yn.$off(e,t)}function On(e,t){var n=yn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function An(e,t,n){yn=e,Tt(t,n||{},En,xn,On,e),yn=void 0}function Pn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,a=e.length;r<a;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var a,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var o=s.length;while(o--)if(a=s[o],a===t||a.fn===t){s.splice(o,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?P(n):n;for(var i=P(arguments,1),r='event handler for "'+e+'"',a=0,s=n.length;a<s;a++)it(n[a],t,i,t,r)}return t}}var In=null;function Ln(e){var t=In;return In=e,function(){In=t}}function Dn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Mn(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=Ln(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Fn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Fn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function jn(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=Te),Fn(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ii(e,i,D,{before:function(){e._isMounted&&!e._isDestroyed&&Fn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Fn(e,"mounted")),e}function Rn(e,t,i,r,a){var s=r.data.scopedSlots,o=e.$scopedSlots,l=!!(s&&!s.$stable||o!==n&&!o.$stable||s&&e.$scopedSlots.$key!==s.$key||!s&&e.$scopedSlots.$key),u=!!(a||e.$options._renderChildren||l);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=a,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Ae(!1);for(var c=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var p=d[h],f=e.$options.props;c[p]=Ke(p,f,t,e)}Ae(!0),e.$options.propsData=t}i=i||n;var m=e.$options._parentListeners;e.$options._parentListeners=i,An(e,i,m),u&&(e.$slots=Lt(a,r.context),e.$forceUpdate())}function Nn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Bn(e,t){if(t){if(e._directInactive=!1,Nn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Bn(e.$children[n]);Fn(e,"activated")}}function Un(e,t){if((!t||(e._directInactive=!0,!Nn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Un(e.$children[n]);Fn(e,"deactivated")}}function Fn(e,t){ve();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,a=n.length;r<a;r++)it(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),ye()}var $n=[],Hn=[],Vn={},zn=!1,qn=!1,Wn=0;function Gn(){Wn=$n.length=Hn.length=0,Vn={},zn=qn=!1}var Xn=0,Yn=Date.now;if(K&&!ee){var Kn=window.performance;Kn&&"function"===typeof Kn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Qn(){var e,t;for(Xn=Yn(),qn=!0,$n.sort((function(e,t){return e.id-t.id})),Wn=0;Wn<$n.length;Wn++)e=$n[Wn],e.before&&e.before(),t=e.id,Vn[t]=null,e.run();var n=Hn.slice(),i=$n.slice();Gn(),ei(n),Jn(i),ue&&H.devtools&&ue.emit("flush")}function Jn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Fn(i,"updated")}}function Zn(e){e._inactive=!1,Hn.push(e)}function ei(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Bn(e[t],!0)}function ti(e){var t=e.id;if(null==Vn[t]){if(Vn[t]=!0,qn){var n=$n.length-1;while(n>Wn&&$n[n].id>e.id)n--;$n.splice(n+1,0,e)}else $n.push(e);zn||(zn=!0,mt(Qn))}}var ni=0,ii=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ni,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};ii.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ws){if(!this.user)throw ws;nt(ws,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vt(e),ye(),this.cleanupDeps()}return e},ii.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ii.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ii.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},ii.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';it(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},ii.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ii.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ii.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ri={enumerable:!0,configurable:!0,get:D,set:D};function ai(e,t,n){ri.get=function(){return this[t][n]},ri.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ri)}function si(e){e._watchers=[];var t=e.$options;t.props&&oi(e,t.props),t.methods&&mi(e,t.methods),t.data?li(e):De(e._data={},!0),t.computed&&di(e,t.computed),t.watch&&t.watch!==ae&&gi(e,t.watch)}function oi(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],a=!e.$parent;a||Ae(!1);var s=function(a){r.push(a);var s=Ke(a,t,n,e);Me(i,a,s),a in e||ai(e,"_props",a)};for(var o in t)s(o);Ae(!0)}function li(e){var t=e.$options.data;t=e._data="function"===typeof t?ui(t,e):t||{},c(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var a=n[r];0,i&&_(i,a)||z(a)||ai(e,"_data",a)}De(t,!0)}function ui(e,t){ve();try{return e.call(t,t)}catch(ws){return nt(ws,t,"data()"),{}}finally{ye()}}var ci={lazy:!0};function di(e,t){var n=e._computedWatchers=Object.create(null),i=le();for(var r in t){var a=t[r],s="function"===typeof a?a:a.get;0,i||(n[r]=new ii(e,s||D,D,ci)),r in e||hi(e,r,a)}}function hi(e,t,n){var i=!le();"function"===typeof n?(ri.get=i?pi(t):fi(n),ri.set=D):(ri.get=n.get?i&&!1!==n.cache?pi(t):fi(n.get):D,ri.set=n.set||D),Object.defineProperty(e,t,ri)}function pi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function fi(e){return function(){return e.call(this,this)}}function mi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?D:A(t[n],e)}function gi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)vi(e,n,i[r]);else vi(e,n,i)}}function vi(e,t,n,i){return c(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function yi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Re,e.prototype.$watch=function(e,t,n){var i=this;if(c(t))return vi(i,e,t,n);n=n||{},n.user=!0;var r=new ii(i,e,t,n);if(n.immediate){var a='callback for immediate watcher "'+r.expression+'"';ve(),it(t,i,[r.value],i,a),ye()}return function(){r.teardown()}}}var bi=0;function _i(e){e.prototype._init=function(e){var t=this;t._uid=bi++,t._isVue=!0,e&&e._isComponent?Ti(t,e):t.$options=Xe(Si(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Dn(t),Cn(t),vn(t),Fn(t,"beforeCreate"),Pt(t),si(t),At(t),Fn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Ti(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Si(e){var t=e.options;if(e.super){var n=Si(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=wi(e);r&&I(e.extendOptions,r),t=e.options=Xe(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function wi(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function ki(e){this._init(e)}function Ci(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=P(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Ei(e){e.mixin=function(e){return this.options=Xe(this.options,e),this}}function xi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var a=e.name||n.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Xe(n.options,e),s["super"]=n,s.options.props&&Oi(s),s.options.computed&&Ai(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,F.forEach((function(e){s[e]=n[e]})),a&&(s.options.components[a]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=I({},s.options),r[i]=s,s}}function Oi(e){var t=e.options.props;for(var n in t)ai(e.prototype,"_props",n)}function Ai(e){var t=e.options.computed;for(var n in t)hi(e.prototype,n,t[n])}function Pi(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ii(e){return e&&(e.Ctor.options.name||e.tag)}function Li(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Di(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var s=n[a];if(s){var o=s.name;o&&!t(o)&&Mi(n,a,i,r)}}}function Mi(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,y(n,t)}_i(ki),yi(ki),Pn(ki),Mn(ki),_n(ki);var ji=[String,RegExp,Array],Ri={name:"keep-alive",abstract:!0,props:{include:ji,exclude:ji,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,i=e.vnodeToCache,r=e.keyToCache;if(i){var a=i.tag,s=i.componentInstance,o=i.componentOptions;t[r]={name:Ii(o),tag:a,componentInstance:s},n.push(r),this.max&&n.length>parseInt(this.max)&&Mi(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Mi(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Di(e,(function(e){return Li(t,e)}))})),this.$watch("exclude",(function(t){Di(e,(function(e){return!Li(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var i=Ii(n),r=this,a=r.include,s=r.exclude;if(a&&(!i||!Li(a,i))||s&&i&&Li(s,i))return t;var o=this,l=o.cache,u=o.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,y(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},Ni={KeepAlive:Ri};function Bi(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:pe,extend:I,mergeOptions:Xe,defineReactive:Me},e.set=je,e.delete=Re,e.nextTick=mt,e.observable=function(e){return De(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,Ni),Ci(e),Ei(e),xi(e),Pi(e)}Bi(ki),Object.defineProperty(ki.prototype,"$isServer",{get:le}),Object.defineProperty(ki.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ki,"FunctionalRenderContext",{value:Zt}),ki.version="2.6.14";var Ui=g("style,class"),Fi=g("input,textarea,option,select,progress"),$i=function(e,t,n){return"value"===n&&Fi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Hi=g("contenteditable,draggable,spellcheck"),Vi=g("events,caret,typing,plaintext-only"),zi=function(e,t){return Yi(t)||"false"===t?"false":"contenteditable"===e&&Vi(t)?t:"true"},qi=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Wi="http://www.w3.org/1999/xlink",Gi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Xi=function(e){return Gi(e)?e.slice(6,e.length):""},Yi=function(e){return null==e||!1===e};function Ki(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Qi(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Qi(t,n.data));return Ji(t.staticClass,t.class)}function Qi(e,t){return{staticClass:Zi(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Ji(e,t){return r(e)||r(t)?Zi(e,er(t)):""}function Zi(e,t){return e?t?e+" "+t:e:t||""}function er(e){return Array.isArray(e)?tr(e):l(e)?nr(e):"string"===typeof e?e:""}function tr(e){for(var t,n="",i=0,a=e.length;i<a;i++)r(t=er(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function nr(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ir={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},rr=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ar=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),sr=function(e){return rr(e)||ar(e)};function or(e){return ar(e)?"svg":"math"===e?"math":void 0}var lr=Object.create(null);function ur(e){if(!K)return!0;if(sr(e))return!1;if(e=e.toLowerCase(),null!=lr[e])return lr[e];var t=document.createElement(e);return e.indexOf("-")>-1?lr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:lr[e]=/HTMLUnknownElement/.test(t.toString())}var cr=g("text,number,password,search,email,tel,url");function dr(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function hr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function pr(e,t){return document.createElementNS(ir[e],t)}function fr(e){return document.createTextNode(e)}function mr(e){return document.createComment(e)}function gr(e,t,n){e.insertBefore(t,n)}function vr(e,t){e.removeChild(t)}function yr(e,t){e.appendChild(t)}function br(e){return e.parentNode}function _r(e){return e.nextSibling}function Tr(e){return e.tagName}function Sr(e,t){e.textContent=t}function wr(e,t){e.setAttribute(t,"")}var kr=Object.freeze({createElement:hr,createElementNS:pr,createTextNode:fr,createComment:mr,insertBefore:gr,removeChild:vr,appendChild:yr,parentNode:br,nextSibling:_r,tagName:Tr,setTextContent:Sr,setStyleScope:wr}),Cr={create:function(e,t){Er(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Er(e,!0),Er(t))},destroy:function(e){Er(e,!0)}};function Er(e,t){var n=e.data.ref;if(r(n)){var i=e.context,a=e.componentInstance||e.elm,s=i.$refs;t?Array.isArray(s[n])?y(s[n],a):s[n]===a&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(a)<0&&s[n].push(a):s[n]=[a]:s[n]=a}}var xr=new be("",{},[]),Or=["create","activate","update","remove","destroy"];function Ar(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Pr(e,t)||a(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Pr(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,a=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===a||cr(i)&&cr(a)}function Ir(e,t,n){var i,a,s={};for(i=t;i<=n;++i)a=e[i].key,r(a)&&(s[a]=i);return s}function Lr(e){var t,n,s={},l=e.modules,u=e.nodeOps;for(t=0;t<Or.length;++t)for(s[Or[t]]=[],n=0;n<l.length;++n)r(l[n][Or[t]])&&s[Or[t]].push(l[n][Or[t]]);function c(e){return new be(u.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function p(e,t,n,i,s,o,l){if(r(e.elm)&&r(o)&&(e=o[l]=we(e)),e.isRootInsert=!s,!f(e,t,n,i)){var c=e.data,d=e.children,h=e.tag;r(h)?(e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),S(e),b(e,d,t),r(c)&&T(e,t),y(n,e.elm,i)):a(e.isComment)?(e.elm=u.createComment(e.text),y(n,e.elm,i)):(e.elm=u.createTextNode(e.text),y(n,e.elm,i))}}function f(e,t,n,i){var s=e.data;if(r(s)){var o=r(e.componentInstance)&&s.keepAlive;if(r(s=s.hook)&&r(s=s.init)&&s(e,!1),r(e.componentInstance))return m(e,t),y(n,e.elm,i),a(o)&&v(e,t,n,i),!0}}function m(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(T(e,t),S(e)):(Er(e),t.push(e))}function v(e,t,n,i){var a,o=e;while(o.componentInstance)if(o=o.componentInstance._vnode,r(a=o.data)&&r(a=a.transition)){for(a=0;a<s.activate.length;++a)s.activate[a](xr,o);t.push(o);break}y(n,e.elm,i)}function y(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function b(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)p(t[i],n,e.elm,null,!0,t,i)}else o(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function _(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function T(e,n){for(var i=0;i<s.create.length;++i)s.create[i](xr,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(xr,e),r(t.insert)&&n.push(e))}function S(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}r(t=In)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function w(e,t,n,i,r,a){for(;i<=r;++i)p(n[i],a,e,t,!1,n,i)}function k(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function C(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(E(i),k(i)):h(i.elm))}}function E(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=d(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&E(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else h(e.elm)}function x(e,t,n,a,s){var o,l,c,d,h=0,f=0,m=t.length-1,g=t[0],v=t[m],y=n.length-1,b=n[0],_=n[y],T=!s;while(h<=m&&f<=y)i(g)?g=t[++h]:i(v)?v=t[--m]:Ar(g,b)?(A(g,b,a,n,f),g=t[++h],b=n[++f]):Ar(v,_)?(A(v,_,a,n,y),v=t[--m],_=n[--y]):Ar(g,_)?(A(g,_,a,n,y),T&&u.insertBefore(e,g.elm,u.nextSibling(v.elm)),g=t[++h],_=n[--y]):Ar(v,b)?(A(v,b,a,n,f),T&&u.insertBefore(e,v.elm,g.elm),v=t[--m],b=n[++f]):(i(o)&&(o=Ir(t,h,m)),l=r(b.key)?o[b.key]:O(b,t,h,m),i(l)?p(b,a,e,g.elm,!1,n,f):(c=t[l],Ar(c,b)?(A(c,b,a,n,f),t[l]=void 0,T&&u.insertBefore(e,c.elm,g.elm)):p(b,a,e,g.elm,!1,n,f)),b=n[++f]);h>m?(d=i(n[y+1])?null:n[y+1].elm,w(e,d,n,f,y,a)):f>y&&C(t,h,m)}function O(e,t,n,i){for(var a=n;a<i;a++){var s=t[a];if(r(s)&&Ar(e,s))return a}}function A(e,t,n,o,l,c){if(e!==t){r(t.elm)&&r(o)&&(t=o[l]=we(t));var d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?L(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,p=t.data;r(p)&&r(h=p.hook)&&r(h=h.prepatch)&&h(e,t);var f=e.children,m=t.children;if(r(p)&&_(t)){for(h=0;h<s.update.length;++h)s.update[h](e,t);r(h=p.hook)&&r(h=h.update)&&h(e,t)}i(t.text)?r(f)&&r(m)?f!==m&&x(d,f,m,n,c):r(m)?(r(e.text)&&u.setTextContent(d,""),w(d,null,m,0,m.length-1,n)):r(f)?C(f,0,f.length-1):r(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),r(p)&&r(h=p.hook)&&r(h=h.postpatch)&&h(e,t)}}}function P(e,t,n){if(a(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var I=g("attrs,class,staticClass,staticStyle,key");function L(e,t,n,i){var s,o=t.tag,l=t.data,u=t.children;if(i=i||l&&l.pre,t.elm=e,a(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(l)&&(r(s=l.hook)&&r(s=s.init)&&s(t,!0),r(s=t.componentInstance)))return m(t,n),!0;if(r(o)){if(r(u))if(e.hasChildNodes())if(r(s=l)&&r(s=s.domProps)&&r(s=s.innerHTML)){if(s!==e.innerHTML)return!1}else{for(var c=!0,d=e.firstChild,h=0;h<u.length;h++){if(!d||!L(d,u[h],n,i)){c=!1;break}d=d.nextSibling}if(!c||d)return!1}else b(t,u,n);if(r(l)){var p=!1;for(var f in l)if(!I(f)){p=!0,T(t,n);break}!p&&l["class"]&&vt(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(!i(t)){var l=!1,d=[];if(i(e))l=!0,p(t,d);else{var h=r(e.nodeType);if(!h&&Ar(e,t))A(e,t,d,null,null,o);else{if(h){if(1===e.nodeType&&e.hasAttribute(U)&&(e.removeAttribute(U),n=!0),a(n)&&L(e,t,d))return P(t,d,!0),e;e=c(e)}var f=e.elm,m=u.parentNode(f);if(p(t,d,f._leaveCb?null:m,u.nextSibling(f)),r(t.parent)){var g=t.parent,v=_(t);while(g){for(var y=0;y<s.destroy.length;++y)s.destroy[y](g);if(g.elm=t.elm,v){for(var b=0;b<s.create.length;++b)s.create[b](xr,g);var T=g.data.hook.insert;if(T.merged)for(var S=1;S<T.fns.length;S++)T.fns[S]()}else Er(g);g=g.parent}}r(m)?C([e],0,0):r(e.tag)&&k(e)}}return P(t,d,l),t.elm}r(e)&&k(e)}}var Dr={create:Mr,update:Mr,destroy:function(e){Mr(e,xr)}};function Mr(e,t){(e.data.directives||t.data.directives)&&jr(e,t)}function jr(e,t){var n,i,r,a=e===xr,s=t===xr,o=Nr(e.data.directives,e.context),l=Nr(t.data.directives,t.context),u=[],c=[];for(n in l)i=o[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Ur(r,"update",t,e),r.def&&r.def.componentUpdated&&c.push(r)):(Ur(r,"bind",t,e),r.def&&r.def.inserted&&u.push(r));if(u.length){var d=function(){for(var n=0;n<u.length;n++)Ur(u[n],"inserted",t,e)};a?St(t,"insert",d):d()}if(c.length&&St(t,"postpatch",(function(){for(var n=0;n<c.length;n++)Ur(c[n],"componentUpdated",t,e)})),!a)for(n in o)l[n]||Ur(o[n],"unbind",e,e,s)}var Rr=Object.create(null);function Nr(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=Rr),r[Br(i)]=i,i.def=Ye(t.$options,"directives",i.name,!0);return r}function Br(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ur(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(ws){nt(ws,n.context,"directive "+e.name+" "+t+" hook")}}var Fr=[Cr,Dr];function $r(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var a,s,o,l=t.elm,u=e.data.attrs||{},c=t.data.attrs||{};for(a in r(c.__ob__)&&(c=t.data.attrs=I({},c)),c)s=c[a],o=u[a],o!==s&&Hr(l,a,s,t.data.pre);for(a in(ee||ne)&&c.value!==u.value&&Hr(l,"value",c.value),u)i(c[a])&&(Gi(a)?l.removeAttributeNS(Wi,Xi(a)):Hi(a)||l.removeAttribute(a))}}function Hr(e,t,n,i){i||e.tagName.indexOf("-")>-1?Vr(e,t,n):qi(t)?Yi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Hi(t)?e.setAttribute(t,zi(t,n)):Gi(t)?Yi(n)?e.removeAttributeNS(Wi,Xi(t)):e.setAttributeNS(Wi,t,n):Vr(e,t,n)}function Vr(e,t,n){if(Yi(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var zr={create:$r,update:$r};function qr(e,t){var n=t.elm,a=t.data,s=e.data;if(!(i(a.staticClass)&&i(a.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var o=Ki(t),l=n._transitionClasses;r(l)&&(o=Zi(o,er(l))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Wr,Gr={create:qr,update:qr},Xr="__r",Yr="__c";function Kr(e){if(r(e[Xr])){var t=ee?"change":"input";e[t]=[].concat(e[Xr],e[t]||[]),delete e[Xr]}r(e[Yr])&&(e.change=[].concat(e[Yr],e.change||[]),delete e[Yr])}function Qr(e,t,n){var i=Wr;return function r(){var a=t.apply(null,arguments);null!==a&&ea(e,r,n,i)}}var Jr=ot&&!(re&&Number(re[1])<=53);function Zr(e,t,n,i){if(Jr){var r=Xn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Wr.addEventListener(e,t,se?{capture:n,passive:i}:n)}function ea(e,t,n,i){(i||Wr).removeEventListener(e,t._wrapper||t,n)}function ta(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Wr=t.elm,Kr(n),Tt(n,r,Zr,ea,Qr,t.context),Wr=void 0}}var na,ia={create:ta,update:ta};function ra(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,a,s=t.elm,o=e.data.domProps||{},l=t.data.domProps||{};for(n in r(l.__ob__)&&(l=t.data.domProps=I({},l)),o)n in l||(s[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===o[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=a;var u=i(a)?"":String(a);aa(s,u)&&(s.value=u)}else if("innerHTML"===n&&ar(s.tagName)&&i(s.innerHTML)){na=na||document.createElement("div"),na.innerHTML="<svg>"+a+"</svg>";var c=na.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(c.firstChild)s.appendChild(c.firstChild)}else if(a!==o[n])try{s[n]=a}catch(ws){}}}}function aa(e,t){return!e.composing&&("OPTION"===e.tagName||sa(e,t)||oa(e,t))}function sa(e,t){var n=!0;try{n=document.activeElement!==e}catch(ws){}return n&&e.value!==t}function oa(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return m(n)!==m(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var la={create:ra,update:ra},ua=T((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ca(e){var t=da(e.style);return e.staticStyle?I(e.staticStyle,t):t}function da(e){return Array.isArray(e)?L(e):"string"===typeof e?ua(e):e}function ha(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=ca(r.data))&&I(i,n)}(n=ca(e.data))&&I(i,n);var a=e;while(a=a.parent)a.data&&(n=ca(a.data))&&I(i,n);return i}var pa,fa=/^--/,ma=/\s*!important$/,ga=function(e,t,n){if(fa.test(t))e.style.setProperty(t,n);else if(ma.test(n))e.style.setProperty(E(t),n.replace(ma,""),"important");else{var i=ya(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[i]=n[r];else e.style[i]=n}},va=["Webkit","Moz","ms"],ya=T((function(e){if(pa=pa||document.createElement("div").style,e=w(e),"filter"!==e&&e in pa)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<va.length;n++){var i=va[n]+t;if(i in pa)return i}}));function ba(e,t){var n=t.data,a=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(a.staticStyle)&&i(a.style))){var s,o,l=t.elm,u=a.staticStyle,c=a.normalizedStyle||a.style||{},d=u||c,h=da(t.data.style)||{};t.data.normalizedStyle=r(h.__ob__)?I({},h):h;var p=ha(t,!0);for(o in d)i(p[o])&&ga(l,o,"");for(o in p)s=p[o],s!==d[o]&&ga(l,o,null==s?"":s)}}var _a={create:ba,update:ba},Ta=/\s+/;function Sa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ta).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function wa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ta).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ka(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&I(t,Ca(e.name||"v")),I(t,e),t}return"string"===typeof e?Ca(e):void 0}}var Ca=T((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Ea=K&&!te,xa="transition",Oa="animation",Aa="transition",Pa="transitionend",Ia="animation",La="animationend";Ea&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Aa="WebkitTransition",Pa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ia="WebkitAnimation",La="webkitAnimationEnd"));var Da=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ma(e){Da((function(){Da(e)}))}function ja(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Sa(e,t))}function Ra(e,t){e._transitionClasses&&y(e._transitionClasses,t),wa(e,t)}function Na(e,t,n){var i=Ua(e,t),r=i.type,a=i.timeout,s=i.propCount;if(!r)return n();var o=r===xa?Pa:La,l=0,u=function(){e.removeEventListener(o,c),n()},c=function(t){t.target===e&&++l>=s&&u()};setTimeout((function(){l<s&&u()}),a+1),e.addEventListener(o,c)}var Ba=/\b(transform|all)(,|$)/;function Ua(e,t){var n,i=window.getComputedStyle(e),r=(i[Aa+"Delay"]||"").split(", "),a=(i[Aa+"Duration"]||"").split(", "),s=Fa(r,a),o=(i[Ia+"Delay"]||"").split(", "),l=(i[Ia+"Duration"]||"").split(", "),u=Fa(o,l),c=0,d=0;t===xa?s>0&&(n=xa,c=s,d=a.length):t===Oa?u>0&&(n=Oa,c=u,d=l.length):(c=Math.max(s,u),n=c>0?s>u?xa:Oa:null,d=n?n===xa?a.length:l.length:0);var h=n===xa&&Ba.test(i[Aa+"Property"]);return{type:n,timeout:c,propCount:d,hasTransform:h}}function Fa(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return $a(t)+$a(e[n])})))}function $a(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ha(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=ka(e.data.transition);if(!i(a)&&!r(n._enterCb)&&1===n.nodeType){var s=a.css,o=a.type,u=a.enterClass,c=a.enterToClass,d=a.enterActiveClass,h=a.appearClass,p=a.appearToClass,f=a.appearActiveClass,g=a.beforeEnter,v=a.enter,y=a.afterEnter,b=a.enterCancelled,_=a.beforeAppear,T=a.appear,S=a.afterAppear,w=a.appearCancelled,k=a.duration,C=In,E=In.$vnode;while(E&&E.parent)C=E.context,E=E.parent;var x=!C._isMounted||!e.isRootInsert;if(!x||T||""===T){var O=x&&h?h:u,A=x&&f?f:d,P=x&&p?p:c,I=x&&_||g,L=x&&"function"===typeof T?T:v,D=x&&S||y,M=x&&w||b,j=m(l(k)?k.enter:k);0;var R=!1!==s&&!te,N=qa(L),U=n._enterCb=B((function(){R&&(Ra(n,P),Ra(n,A)),U.cancelled?(R&&Ra(n,O),M&&M(n)):D&&D(n),n._enterCb=null}));e.data.show||St(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),L&&L(n,U)})),I&&I(n),R&&(ja(n,O),ja(n,A),Ma((function(){Ra(n,O),U.cancelled||(ja(n,P),N||(za(j)?setTimeout(U,j):Na(n,o,U)))}))),e.data.show&&(t&&t(),L&&L(n,U)),R||N||U()}}}function Va(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=ka(e.data.transition);if(i(a)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var s=a.css,o=a.type,u=a.leaveClass,c=a.leaveToClass,d=a.leaveActiveClass,h=a.beforeLeave,p=a.leave,f=a.afterLeave,g=a.leaveCancelled,v=a.delayLeave,y=a.duration,b=!1!==s&&!te,_=qa(p),T=m(l(y)?y.leave:y);0;var S=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Ra(n,c),Ra(n,d)),S.cancelled?(b&&Ra(n,u),g&&g(n)):(t(),f&&f(n)),n._leaveCb=null}));v?v(w):w()}function w(){S.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&(ja(n,u),ja(n,d),Ma((function(){Ra(n,u),S.cancelled||(ja(n,c),_||(za(T)?setTimeout(S,T):Na(n,o,S)))}))),p&&p(n,S),b||_||S())}}function za(e){return"number"===typeof e&&!isNaN(e)}function qa(e){if(i(e))return!1;var t=e.fns;return r(t)?qa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Wa(e,t){!0!==t.data.show&&Ha(t)}var Ga=K?{create:Wa,activate:Wa,remove:function(e,t){!0!==e.data.show?Va(e,t):t()}}:{},Xa=[zr,Gr,ia,la,_a,Ga],Ya=Xa.concat(Fr),Ka=Lr({nodeOps:kr,modules:Ya});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&rs(e,"input")}));var Qa={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?St(n,"postpatch",(function(){Qa.componentUpdated(e,t,n)})):Ja(e,t,n.context),e._vOptions=[].map.call(e.options,ts)):("textarea"===n.tag||cr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ns),e.addEventListener("compositionend",is),e.addEventListener("change",is),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ja(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,ts);if(r.some((function(e,t){return!R(e,i[t])}))){var a=e.multiple?t.value.some((function(e){return es(e,r)})):t.value!==t.oldValue&&es(t.value,r);a&&rs(e,"change")}}}};function Ja(e,t,n){Za(e,t,n),(ee||ne)&&setTimeout((function(){Za(e,t,n)}),0)}function Za(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,s,o=0,l=e.options.length;o<l;o++)if(s=e.options[o],r)a=N(i,ts(s))>-1,s.selected!==a&&(s.selected=a);else if(R(ts(s),i))return void(e.selectedIndex!==o&&(e.selectedIndex=o));r||(e.selectedIndex=-1)}}function es(e,t){return t.every((function(t){return!R(t,e)}))}function ts(e){return"_value"in e?e._value:e.value}function ns(e){e.target.composing=!0}function is(e){e.target.composing&&(e.target.composing=!1,rs(e.target,"input"))}function rs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function as(e){return!e.componentInstance||e.data&&e.data.transition?e:as(e.componentInstance._vnode)}var ss={bind:function(e,t,n){var i=t.value;n=as(n);var r=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Ha(n,(function(){e.style.display=a}))):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=as(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,i?Ha(n,(function(){e.style.display=e.__vOriginalDisplay})):Va(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},os={model:Qa,show:ss},ls={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function us(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?us(kn(t.children)):e}function cs(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var a in r)t[w(a)]=r[a];return t}function ds(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function hs(e){while(e=e.parent)if(e.data.transition)return!0}function ps(e,t){return t.key===e.key&&t.tag===e.tag}var fs=function(e){return e.tag||Mt(e)},ms=function(e){return"show"===e.name},gs={name:"transition",props:ls,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(fs),n.length)){0;var i=this.mode;0;var r=n[0];if(hs(this.$vnode))return r;var a=us(r);if(!a)return r;if(this._leaving)return ds(e,r);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:o(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var l=(a.data||(a.data={})).transition=cs(this),u=this._vnode,c=us(u);if(a.data.directives&&a.data.directives.some(ms)&&(a.data.show=!0),c&&c.data&&!ps(a,c)&&!Mt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=I({},l);if("out-in"===i)return this._leaving=!0,St(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ds(e,r);if("in-out"===i){if(Mt(a))return u;var h,p=function(){h()};St(l,"afterEnter",p),St(l,"enterCancelled",p),St(d,"delayLeave",(function(e){h=e}))}}return r}}},vs=I({tag:String,moveClass:String},ls);delete vs.mode;var ys={props:vs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Ln(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],s=cs(this),o=0;o<r.length;o++){var l=r[o];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(i){for(var u=[],c=[],d=0;d<i.length;d++){var h=i[d];h.data.transition=s,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):c.push(h)}this.kept=e(t,null,u),this.removed=c}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(bs),e.forEach(_s),e.forEach(Ts),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;ja(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Pa,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Pa,e),n._moveCb=null,Ra(n,t))})}})))},methods:{hasMove:function(e,t){if(!Ea)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){wa(n,e)})),Sa(n,t),n.style.display="none",this.$el.appendChild(n);var i=Ua(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function bs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function _s(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ts(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)",a.transitionDuration="0s"}}var Ss={Transition:gs,TransitionGroup:ys};ki.config.mustUseProp=$i,ki.config.isReservedTag=sr,ki.config.isReservedAttr=Ui,ki.config.getTagNamespace=or,ki.config.isUnknownElement=ur,I(ki.options.directives,os),I(ki.options.components,Ss),ki.prototype.__patch__=K?Ka:D,ki.prototype.$mount=function(e,t){return e=e&&K?dr(e):void 0,jn(this,e,t)},K&&setTimeout((function(){H.devtools&&ue&&ue.emit("init",ki)}),0),t["a"]=ki}).call(this,n("c8ba"))},"2b8c":function(e,t,n){var i=n("be09"),r=e.exports={WebVTT:n("d02c"),VTTCue:n("b03c"),VTTRegion:n("f97d")};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=s},r.restore=function(){i.VTTCue=o,i.VTTRegion=l},i.VTTCue||r.shim()},"2c5a":function(e,t,n){"use strict";var i,r,a,s,o,l,u,c,d,h,p,f=n("0129"),m=n("a31d"),g=n("70fd"),v=n("a65d"),y=n("eaba").H264Stream,b=n("ae50"),_=n("3211"),T=n("7eb3"),S=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],w=["width","height","profileIdc","levelIdc","profileCompatibility"],k=9e4;o=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}},l=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},h=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},p=function(e){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],i+=n.data.byteLength;return i},r=function(e){var t=[],n=0,i=0,a=0,s=1/0;r.prototype.init.call(this),this.push=function(n){u(e,n),e&&S.forEach((function(t){e[t]=n[t]})),t.push(n)},this.setEarliestDts=function(t){i=t-e.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var i,r,a,s;0!==t.length?(i=this.trimAdtsFramesByEarliestDts_(t),e.baseMediaDecodeTime=d(e),this.prefixWithSilence_(e,i),e.samples=this.generateSampleTable_(i),a=m.mdat(this.concatenateFrameData_(i)),t=[],r=m.moof(n,[e]),s=new Uint8Array(r.byteLength+a.byteLength),n++,s.set(r),s.set(a,r.byteLength),c(e),this.trigger("data",{track:e,boxes:s}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.prefixWithSilence_=function(e,t){var n,i,r,o=0,l=0,u=0,c=0;if(t.length&&(n=T.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o=Math.ceil(k/(e.samplerate/1024)),a&&s&&(l=n-Math.max(a,s),u=Math.floor(l/o),c=u*o),!(u<1||c>k/2))){for(i=_[e.samplerate],i||(i=t[0].data),r=0;r<u;r++)t.splice(r,0,{data:i});e.baseMediaDecodeTime-=Math.floor(T.videoTsToAudioTs(c,e.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(t){return e.minSegmentDts>=i?t:(e.minSegmentDts=1/0,t.filter((function(t){return t.dts>=i&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)})))},this.generateSampleTable_=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},this.concatenateFrameData_=function(e){var t,n,i=0,r=new Uint8Array(p(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r}},r.prototype=new f,i=function(e,t){var n,r,a=0,s=[],l=[];t=t||{},i.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){u(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],w.forEach((function(t){e[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),s.push(t)},this.flush=function(){var n,i,r,o,h,p;while(s.length){if("access_unit_delimiter_rbsp"===s[0].nalUnitType)break;s.shift()}if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=this.groupNalsIntoFrames_(s),r=this.groupFramesIntoGops_(n),r[0][0].keyFrame||(i=this.getGopForFusion_(s[0],e),i?(r.unshift(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.pts=i.pts,r.dts=i.dts,r.duration+=i.duration):r=this.extendFirstKeyFrame_(r)),l.length){var f;if(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(r):this.alignGopsAtStart_(r),!f)return this.gopCache_.unshift({gop:r.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");c(e),r=f}u(e,r),e.samples=this.generateSampleTable_(r),h=m.mdat(this.concatenateNalData_(r)),e.baseMediaDecodeTime=d(e),this.trigger("processedGopsInfo",r.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),this.gopCache_.unshift({gop:r.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),o=m.moof(a,[e]),p=new Uint8Array(o.byteLength+h.byteLength),a++,p.set(o),p.set(h,o.byteLength),this.trigger("data",{track:e,boxes:p}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){c(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,s,o=45e3,l=1e4,u=1/0;for(s=0;s<this.gopCache_.length;s++)a=this.gopCache_[s],r=a.gop,e.pps&&h(e.pps[0],a.pps[0])&&e.sps&&h(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration,n>=-l&&n<=o&&(!i||u>n)&&(i=a,u=n)));return i?i.gop:null},this.extendFirstKeyFrame_=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},this.groupNalsIntoFrames_=function(e){var t,n,i=[],r=[];for(i.byteLength=0,t=0;t<e.length;t++)n=e[t],"access_unit_delimiter_rbsp"===n.nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.push(i)),i=[n],i.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.push(i),r},this.groupFramesIntoGops_=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],n.keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),i=[n],i.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},this.generateSampleTable_=function(e,t){var n,i,r,a,s,l=t||0,u=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)s=a[i],r=o(),r.dataOffset=l,r.compositionTimeOffset=s.pts-s.dts,r.duration=s.duration,r.size=4*s.length,r.size+=s.byteLength,s.keyFrame&&(r.flags.dependsOn=2),l+=r.size,u.push(r);return u},this.concatenateNalData_=function(e){var t,n,i,r,a,s,o=0,l=e.byteLength,u=e.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.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],h.setUint32(o,s.data.byteLength),o+=4,d.set(s.data,o),o+=s.data.byteLength;return d},this.alignGopsAtStart_=function(e){var t,n,i,r,a,s,o,u;a=e.byteLength,s=e.nalCount,o=e.duration,t=n=0;while(t<l.length&&n<e.length){if(i=l[t],r=e[n],i.pts===r.pts)break;r.pts>i.pts?t++:(n++,a-=r.byteLength,s-=r.nalCount,o-=r.duration)}return 0===n?e:n===e.length?null:(u=e.slice(n),u.byteLength=a,u.duration=o,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,s,o;t=l.length-1,n=e.length-1,a=null,s=!1;while(t>=0&&n>=0){if(i=l[t],r=e[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?t--:(t===l.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(o=s?n:a,0===o)return e;var u=e.slice(o),c=u.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 u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){l=e}},i.prototype=new f,u=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))},c=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},d=function(e){var t,n,i=e.minSegmentDts-e.timelineStartInfo.dts;return t=e.timelineStartInfo.baseMediaDecodeTime,t+=i,t=Math.max(0,t),"audio"===e.type&&(n=e.samplerate/k,t*=n,t=Math.floor(t)),t},s=function(e,t){this.numberOfTracks=0,this.metadataStream=t,"undefined"!==typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,s.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBoxes.push(e.boxes),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track),void("audio"===e.track.type&&(this.audioTrack=e.track)))}},s.prototype=new f,s.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;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,w.forEach((function(e){s.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,S.forEach((function(e){s.info[e]=this.audioTrack[e]}),this)),1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,i=m.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(i.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],t.startTime=t.startPts-o,t.startTime/=9e4,t.endTime=t.endPts-o,t.endTime/=9e4,s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)n=this.pendingMetadata[r],n.cueTime=n.pts-o,n.cueTime/=9e4,s.metadata.push(n);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),this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},a=function(e){var t,n,o=this,u=!0;a.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};this.transmuxPipeline_=t,t.type="aac",t.metadataStream=new g.MetadataStream,t.aacStream=new b,t.audioTimestampRolloverStream=new g.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new g.TimestampRolloverStream("timed-metadata"),t.adtsStream=new v,t.coalesceStream=new s(e,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",(function(e){t.aacStream.setTimestamp(e.timeStamp)})),t.aacStream.on("data",(function(e){"timed-metadata"!==e.type||t.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:o.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new r(n),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream))})),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var a={};this.transmuxPipeline_=a,a.type="ts",a.metadataStream=new g.MetadataStream,a.packetStream=new g.TransportPacketStream,a.parseStream=new g.TransportParseStream,a.elementaryStream=new g.ElementaryStream,a.videoTimestampRolloverStream=new g.TimestampRolloverStream("video"),a.audioTimestampRolloverStream=new g.TimestampRolloverStream("audio"),a.timedMetadataTimestampRolloverStream=new g.TimestampRolloverStream("timed-metadata"),a.adtsStream=new v,a.h264Stream=new y,a.captionStream=new g.CaptionStream,a.coalesceStream=new s(e,a.metadataStream),a.headOfPipeline=a.packetStream,a.packetStream.pipe(a.parseStream).pipe(a.elementaryStream),a.elementaryStream.pipe(a.videoTimestampRolloverStream).pipe(a.h264Stream),a.elementaryStream.pipe(a.audioTimestampRolloverStream).pipe(a.adtsStream),a.elementaryStream.pipe(a.timedMetadataTimestampRolloverStream).pipe(a.metadataStream).pipe(a.coalesceStream),a.h264Stream.pipe(a.captionStream).pipe(a.coalesceStream),a.elementaryStream.on("data",(function(s){var l;if("metadata"===s.type){l=s.tracks.length;while(l--)t||"video"!==s.tracks[l].type?n||"audio"!==s.tracks[l].type||(n=s.tracks[l],n.timelineStartInfo.baseMediaDecodeTime=o.baseMediaDecodeTime):(t=s.tracks[l],t.timelineStartInfo.baseMediaDecodeTime=o.baseMediaDecodeTime);t&&!a.videoSegmentStream&&(a.coalesceStream.numberOfTracks++,a.videoSegmentStream=new i(t,e),a.videoSegmentStream.on("timelineStartInfo",(function(e){n&&(n.timelineStartInfo=e,a.audioSegmentStream.setEarliestDts(e.dts))})),a.videoSegmentStream.on("processedGopsInfo",o.trigger.bind(o,"gopInfo")),a.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&a.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),a.h264Stream.pipe(a.videoSegmentStream).pipe(a.coalesceStream)),n&&!a.audioSegmentStream&&(a.coalesceStream.numberOfTracks++,a.audioSegmentStream=new r(n),a.adtsStream.pipe(a.audioSegmentStream).pipe(a.coalesceStream))}})),a.coalesceStream.on("data",this.trigger.bind(this,"data")),a.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var i=this.transmuxPipeline_;this.baseMediaDecodeTime=e,n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,c(n),n.timelineStartInfo.baseMediaDecodeTime=e,i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[],i.videoTimestampRolloverStream.discontinuity()),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,c(t),i.captionStream.reset(),t.timelineStartInfo.baseMediaDecodeTime=e),i.timedMetadataTimestampRolloverStream&&i.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(u){var t=l(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),u=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){u=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},a.prototype=new f,e.exports={Transmuxer:a,VideoSegmentStream:i,AudioSegmentStream:r,AUDIO_PROPERTIES:S,VIDEO_PROPERTIES:w}},"2cf4":function(e,t,n){var i,r,a,s,o=n("da84"),l=n("d039"),u=n("0366"),c=n("1be4"),d=n("cc12"),h=n("1cdc"),p=n("605d"),f=o.setImmediate,m=o.clearImmediate,g=o.process,v=o.MessageChannel,y=o.Dispatch,b=0,_={},T="onreadystatechange";try{i=o.location}catch(E){}var S=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){S(e)}},k=function(e){S(e.data)},C=function(e){o.postMessage(String(e),i.protocol+"//"+i.host)};f&&m||(f=function(e){var t=[],n=arguments.length,i=1;while(n>i)t.push(arguments[i++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},p?r=function(e){g.nextTick(w(e))}:y&&y.now?r=function(e){y.now(w(e))}:v&&!h?(a=new v,s=a.port2,a.port1.onmessage=k,r=u(s.postMessage,s,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&i&&"file:"!==i.protocol&&!l(C)?(r=C,o.addEventListener("message",k,!1)):r=T in d("script")?function(e){c.appendChild(d("script"))[T]=function(){c.removeChild(this),S(e)}}:function(e){setTimeout(w(e),0)}),e.exports={set:f,clear:m}},"2d00":function(e,t,n){var i,r,a=n("da84"),s=n("342f"),o=a.process,l=a.Deno,u=o&&o.versions||l&&l.version,c=u&&u.v8;c?(i=c.split("."),r=i[0]<4?1:i[0]+i[1]):s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,a){var s=new Error(e);return i(s,t,n,r,a)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=o(e[n],t)})),i}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var f=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}f.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},f.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},f.prototype.update=function(e){m([],this.root,e)},f.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new h(t,n);if(0===e.length)this.root=r;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],r)}t.modules&&l(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},f.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},f.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var v=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&I(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var r=this,s=this,o=s.dispatch,l=s.commit;this.dispatch=function(e,t){return o.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var u=this._modules.root.state;S(this,u,[],this._modules.root),T(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:g.config.devtools;c&&a(this)},y={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function _(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),T(e,n,t)}function T(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};l(r,(function(t,n){a[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:a}),g.config.silent=s,e.strict&&O(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),g.nextTick((function(){return i.$destroy()})))}function S(e,t,n,i,r){var a=!n.length,s=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!a&&!r){var o=A(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){g.set(o,l,i.state)}))}var u=i.context=w(e,s,n);i.forEachMutation((function(t,n){var i=s+n;C(e,i,t,u)})),i.forEachAction((function(t,n){var i=t.root?n:s+n,r=t.handler||t;E(e,i,r,u)})),i.forEachGetter((function(t,n){var i=s+n;x(e,i,t,u)})),i.forEachChild((function(i,a){S(e,t,n.concat(a),i,r)}))}function w(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var a=P(n,i,r),s=a.payload,o=a.options,l=a.type;return o&&o.root||(l=t+l),e.dispatch(l,s)},commit:i?e.commit:function(n,i,r){var a=P(n,i,r),s=a.payload,o=a.options,l=a.type;o&&o.root||(l=t+l),e.commit(l,s,o)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return A(e.state,n)}}}),r}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var a=r.slice(i);Object.defineProperty(n,a,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function C(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function E(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return c(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function x(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function O(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(e,t){return t.reduce((function(e,t){return e[t]}),e)}function P(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function I(e){g&&e===g||(g=e,n(g))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},v.prototype.commit=function(e,t,n){var i=this,r=P(e,t,n),a=r.type,s=r.payload,o=(r.options,{type:a,payload:s}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(o,i.state)})))},v.prototype.dispatch=function(e,t){var n=this,i=P(e,t),r=i.type,a=i.payload,s={type:r,payload:a},o=this._actions[r];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(u){0}var l=o.length>1?Promise.all(o.map((function(e){return e(a)}))):o[0](a);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(u){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),T(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=A(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),_(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),_(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,y);var L=U((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=F(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),D=U((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var a=F(this.$store,"mapMutations",e);if(!a)return;i=a.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),M=U((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||F(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),j=U((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var a=F(this.$store,"mapActions",e);if(!a)return;i=a.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),R=function(e){return{mapState:L.bind(null,e),mapGetters:M.bind(null,e),mapMutations:D.bind(null,e),mapActions:j.bind(null,e)}};function N(e){return B(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function B(e){return Array.isArray(e)||u(e)}function U(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function F(e,t,n){var i=e._modulesNamespaceMap[n];return i}function $(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=o(e.state);"undefined"!==typeof c&&(l&&e.subscribe((function(e,a){var s=o(a);if(n(e,d,s)){var l=z(),u=r(e),h="mutation "+e.type+l;H(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),V(c)}d=s})),u&&e.subscribeAction((function(e,n){if(a(e,n)){var i=z(),r=s(e),o="action "+e.type+i;H(c,o,t),c.log("%c action","color: #03A9F4; font-weight: bold",r),V(c)}})))}}function H(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function V(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function z(){var e=new Date;return" @ "+W(e.getHours(),2)+":"+W(e.getMinutes(),2)+":"+W(e.getSeconds(),2)+"."+W(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function W(e,t){return q("0",t-e.toString().length)+e}var G={Store:v,install:I,version:"3.6.2",mapState:L,mapMutations:D,mapGetters:M,mapActions:j,createNamespacedHelpers:R,createLogger:$};t["a"]=G}).call(this,n("c8ba"))},"2fdb":function(e,t){var n={"":!0,up:!0};function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function a(){var e=100,t=3,n=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}e.exports=a},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),a=s.join("&")}if(a){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},3211:function(e,t){var n=[33,16,5,32,164,27],i=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],r=function(e){var t=[];while(e--)t.push(0);return t},a=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})},s={96e3:[n,[227,64],r(154),[56]],88200:[n,[231],r(170),[56]],64e3:[n,[248,192],r(240),[56]],48e3:[n,[255,192],r(268),[55,148,128],r(54),[112]],44100:[n,[255,192],r(268),[55,163,128],r(84),[112]],32e3:[n,[255,192],r(268),[55,234],r(226),[112]],24e3:[n,[255,192],r(268),[55,255,128],r(268),[111,112],r(126),[224]],16e3:[n,[255,192],r(268),[55,255,128],r(268),[111,255],r(269),[223,108],r(195),[1,192]],12e3:[i,r(268),[3,127,248],r(268),[6,255,240],r(268),[13,255,224],r(268),[27,253,128],r(259),[56]],11025:[i,r(268),[3,127,248],r(268),[6,255,240],r(268),[13,255,224],r(268),[27,255,192],r(268),[55,175,128],r(108),[112]],8e3:[i,r(268),[3,121,16],r(47),[7]]};e.exports=a(s)},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),a=n("b622"),s=a("iterator");e.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||r[i(e)]}},3603:function(e,t,n){"use strict";var i=n("be09"),r=n("a559"),a=n("8362");c.httpHandler=n("8c00"); /** * @license * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/> * Copyright (c) 2014 David Björklund * Available under the MIT license * <https://github.com/kesla/parse-headers/blob/master/LICENCE> */ var s=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();"undefined"===typeof t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t};function o(e,t){for(var n=0;n<e.length;n++)t(e[n])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function u(e,t,n){var i=e;return a(t)?(n=t,"string"===typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function c(e,t,n){return t=u(e,t,n),d(t)}function d(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){4===p.readyState&&setTimeout(o,0)}function r(){var e=void 0;if(e=p.response?p.response:p.responseText||h(p),_)try{e=JSON.parse(e)}catch(t){}return e}function a(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,T)}function o(){if(!d){var t;clearTimeout(f),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=T,a=null;return 0!==t?(i={body:r(),statusCode:t,method:g,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(i.headers=s(p.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,i,i.body)}}var u,d,p=e.xhr||null;p||(p=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var f,m=p.url=e.uri||e.url,g=p.method=e.method||"GET",v=e.body||e.data,y=p.headers=e.headers||{},b=!!e.sync,_=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(_=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==g&&"HEAD"!==g&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),v=JSON.stringify(!0===e.json?v:e.json))),p.onreadystatechange=i,p.onload=o,p.onerror=a,p.onprogress=function(){},p.onabort=function(){d=!0},p.ontimeout=a,p.open(g,m,!b,e.username,e.password),b||(p.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}}),e.timeout)),p.setRequestHeader)for(u in y)y.hasOwnProperty(u)&&p.setRequestHeader(u,y[u]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(v||null),p}function h(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(n){}return null}function p(){}e.exports=c,e.exports.default=c,c.XMLHttpRequest=i.XMLHttpRequest||p,c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:i.XDomainRequest,o(["get","put","post","patch","head","delete"],(function(e){c["delete"===e?"del":e]=function(t,n,i){return n=u(t,n,i),n.method=e.toUpperCase(),d(n)}}))},"36c6":function(e,t){var n,i,r,a,s,o,l,u=9e4;n=function(e){return e*u},i=function(e,t){return e*t},r=function(e){return e/u},a=function(e,t){return e/t},s=function(e,t){return n(a(e,t))},o=function(e,t){return i(r(e),t)},l=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o,metadataTsToSeconds:l}},3727:function(e,t,n){"use strict";var i=n("3e7e"),r=8589934592,a=4294967296,s=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>a)e+=n*r;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e,this.push=function(e){e.type===this.type_&&(void 0===n&&(n=e.dts),e.dts=s(e.dts,n),e.pts=s(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.discontinuity=function(){n=void 0,t=void 0}};o.prototype=new i,e.exports={TimestampRolloverStream:o,handleRollover:s}},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),a=n("825a"),s=n("df75");e.exports=i?Object.defineProperties:function(e,t){a(e);var n,i=s(t),o=i.length,l=0;while(o>l)r.f(e,n=i[l++],t[n]);return e}},3875:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("1325"),r=10;function a(e,t){return e>t&&e>r?"horizontal":t>e&&t>r?"vertical":""}var s={data:function(){return{direction:""}},methods:{touchStart:function(e){this.resetTouchStatus(),this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},touchMove:function(e){var t=e.touches[0];this.deltaX=t.clientX<0?0:t.clientX-this.startX,this.deltaY=t.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||a(this.offsetX,this.offsetY)},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(e){var t=this.onTouchStart,n=this.onTouchMove,r=this.onTouchEnd;Object(i["b"])(e,"touchstart",t),Object(i["b"])(e,"touchmove",n),r&&(Object(i["b"])(e,"touchend",r),Object(i["b"])(e,"touchcancel",r))}}}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c69":function(e,t,n){"use strict";var i=n("2b0e"),r=n("a142"),a=Object.prototype.hasOwnProperty;function s(e,t,n){var i=t[n];Object(r["c"])(i)&&(a.call(e,n)&&Object(r["f"])(i)?e[n]=o(Object(e[n]),t[n]):e[n]=i)}function o(e,t){return Object.keys(t).forEach((function(n){s(e,t,n)})),e}var l={name:"姓å",tel:"电è¯",save:"ä¿å˜",confirm:"确认",cancel:"å–消",delete:"åˆ é™¤",complete:"完æˆ",loading:"åŠ è½½ä¸...",telEmpty:"请填写电è¯",nameEmpty:"请填写姓å",nameInvalid:"请输入æ£ç¡®çš„姓å",confirmDelete:"确定è¦åˆ 除å—",telInvalid:"请输入æ£ç¡®çš„手机å·",vanCalendar:{end:"结æŸ",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结æŸ",weekdays:["æ—¥","一","二","三","å››","五","å…"],monthTitle:function(e,t){return e+"å¹´"+t+"月"},rangePrompt:function(e){return"选择天数ä¸èƒ½è¶…过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"æ·»åŠ è”系人"},vanContactList:{addText:"新建è”系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉å³å¯åˆ·æ–°...",loosing:"释放å³å¯åˆ·æ–°..."},vanSubmitBar:{label:"åˆè®¡ï¼š"},vanCoupon:{unlimited:"æ— ä½¿ç”¨é—¨æ§›",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"å…ƒå¯ç”¨"}},vanCouponCell:{title:"ä¼˜æƒ åˆ¸",tips:"æš‚æ— å¯ç”¨",count:function(e){return e+"å¼ å¯ç”¨"}},vanCouponList:{empty:"æš‚æ— ä¼˜æƒ åˆ¸",exchange:"å…‘æ¢",close:"ä¸ä½¿ç”¨ä¼˜æƒ 券",enable:"å¯ç”¨",disabled:"ä¸å¯ç”¨",placeholder:"è¯·è¾“å…¥ä¼˜æƒ ç "},vanAddressEdit:{area:"地区",postal:"邮政编ç ",areaEmpty:"请选择地区",addressEmpty:"请填写详细地å€",postalEmpty:"邮政编ç æ ¼å¼ä¸æ£ç¡®",defaultAddress:"设为默认收货地å€",telPlaceholder:"收货人手机å·",namePlaceholder:"收货人姓å",areaPlaceholder:"é€‰æ‹©çœ / 市 / 区"},vanAddressEditDetail:{label:"详细地å€",placeholder:"è¡—é“门牌ã€æ¥¼å±‚房间å·ç‰ä¿¡æ¯"},vanAddressList:{add:"新增地å€"}},u=i["a"].prototype,c=i["a"].util.defineReactive;c(u,"$vantLang","zh-CN"),c(u,"$vantMessages",{"zh-CN":l});t["a"]={messages:function(){return u.$vantMessages[u.$vantLang]},use:function(e,t){var n;u.$vantLang=e,this.add((n={},n[e]=t,n))},add:function(e){void 0===e&&(e={}),o(u.$vantMessages,e)}}},"3c96":function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"3e7e":function(e,t,n){"use strict";var i=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],n)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={}}}};i.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),e},i.prototype.push=function(e){this.trigger("data",e)},i.prototype.flush=function(e){this.trigger("done",e)},e.exports=i},"3eb1":function(e,t,n){"use strict";var i=n("0f7c"),r=n("00ce"),a=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||i.call(s,a),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(h){u=null}e.exports=function(e){var t=o(i,s,arguments);if(l&&u){var n=l(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return o(i,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},"3f8c":function(e,t){e.exports={}},4127:function(e,t,n){"use strict";var i=n("5402"),r=n("d233"),a=n("b313"),s=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=a["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m=function e(t,n,a,s,o,u,d,h,m,g,v,y,b,_,T){var S=t;if(T.has(t))throw new RangeError("Cyclic object value");if("function"===typeof d?S=d(n,S):S instanceof Date?S=g(S):"comma"===a&&l(S)&&(S=r.maybeMap(S,(function(e){return e instanceof Date?g(e):e}))),null===S){if(s)return u&&!b?u(n,p.encoder,_,"key",v):n;S=""}if(f(S)||r.isBuffer(S)){if(u){var w=b?n:u(n,p.encoder,_,"key",v);return[y(w)+"="+y(u(S,p.encoder,_,"value",v))]}return[y(n)+"="+y(String(S))]}var k,C=[];if("undefined"===typeof S)return C;if("comma"===a&&l(S))k=[{value:S.length>0?S.join(",")||null:void 0}];else if(l(d))k=d;else{var E=Object.keys(S);k=h?E.sort(h):E}for(var x=0;x<k.length;++x){var O=k[x],A="object"===typeof O&&void 0!==O.value?O.value:S[O];if(!o||null!==A){var P=l(S)?"function"===typeof a?a(n,O):n:n+(m?"."+O:"["+O+"]");T.set(t,!0);var I=i();c(C,e(A,P,a,s,o,u,d,h,m,g,v,y,b,_,I))}}return C},g=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a["default"];if("undefined"!==typeof e.format){if(!s.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],r=p.filter;return("function"===typeof e.filter||l(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:r,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,r,a=e,s=g(t);"function"===typeof s.filter?(r=s.filter,a=r("",a)):l(s.filter)&&(r=s.filter,n=r);var u,d=[];if("object"!==typeof a||null===a)return"";u=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=o[u];n||(n=Object.keys(a)),s.sort&&n.sort(s.sort);for(var p=i(),f=0;f<n.length;++f){var v=n[f];s.skipNulls&&null===a[v]||c(d,m(a[v],v,h,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,p))}var y=d.join(s.delimiter),b=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},4328:function(e,t,n){"use strict";var i=n("4127"),r=n("9e6a"),a=n("b313");e.exports={formats:a,parse:r,stringify:i}},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),a="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),a=n("9bf2"),s=i("unscopables"),o=Array.prototype;void 0==o[s]&&a.f(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},4598:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n("a142"),r=Date.now();function a(e){var t=Date.now(),n=Math.max(0,16-(t-r)),i=setTimeout(e,n);return r=t+n,i}var s=i["h"]?e:window,o=s.requestAnimationFrame||a,l=s.cancelAnimationFrame||s.clearTimeout;function u(e){return o.call(s,e)}function c(e){u((function(){u(e)}))}function d(e){l.call(s,e)}}).call(this,n("c8ba"))},"467f":function(e,t,n){"use strict";var i=n("2d83");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46af":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("e475"),a=i(r),s=function(){var e=function e(t,n){t=(0,r.mergeOptions)({timeout:45e3},t);var i=e.beforeRequest||a["default"].Hls.xhr.beforeRequest;if(i&&"function"===typeof i){var s=i(t);s&&(t=s)}var o=(0,r.xhr)(t,(function(e,t){var i=o.response;!e&&i&&(o.responseTime=Date.now(),o.roundTripTime=o.responseTime-o.requestTime,o.bytesReceived=i.byteLength||i.length,o.bandwidth||(o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3))),e&&"ETIMEDOUT"===e.code&&(o.timedout=!0),e||o.aborted||200===t.statusCode||206===t.statusCode||0===t.statusCode||(e=new Error("XHR Failed with a response of: "+(o&&(i||o.responseText)))),n(e,o)})),l=o.abort;return o.abort=function(){return o.aborted=!0,l.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o};return e};t["default"]=s,e.exports=t["default"]},4742:function(e,t,n){(function(t){var i,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},a=n(3);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=i}).call(this,n("c8ba"))},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),a=n("b622"),s=a("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[s])?t:r(n)}},"485a":function(e,t,n){var i=n("861d");e.exports=function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},4930:function(e,t,n){var i=n("2d00"),r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"4a0c":function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","D:\\\\gai\\\\client-lovesexygirl"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/"],"_resolved":"https://registry.nlark.com/axios/download/axios-0.21.4.tgz?cache=0&sync_timestamp=1630942582656&other_urls=https%3A%2F%2Fregistry.nlark.com%2Faxios%2Fdownload%2Faxios-0.21.4.tgz","_spec":"0.21.4","_where":"D:\\\\gai\\\\client-lovesexygirl","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a4b":function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,n(t,i)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function u(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,(function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),i.forEach(a,u),i.forEach(s,(function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])})),i.forEach(o,(function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))}));var c=r.concat(a).concat(s).concat(o),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return i.forEach(d,u),n}},"4ae1":function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("1c0b"),s=n("825a"),o=n("861d"),l=n("7c73"),u=n("0538"),c=n("d039"),d=r("Reflect","construct"),h=c((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),p=!c((function(){d((function(){}))})),f=h||p;i({target:"Reflect",stat:!0,forced:f,sham:f},{construct:function(e,t){a(e),s(t);var n=arguments.length<3?e:a(arguments[2]);if(p&&!h)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(u.apply(e,i))}var r=n.prototype,c=l(o(r)?r:Object.prototype),f=Function.apply.call(e,c,t);return o(f)?f:c}})},"4d20":function(e,t,n){(function(t){var i,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},a=n(2);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=i}).call(this,n("c8ba"))},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),a=n("23cb"),s=function(e){return function(t,n,s){var o,l=i(t),u=r(l.length),c=a(s,u);if(e&&n!=n){while(u>c)if(o=l[c++],o!=o)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,a=n("1dde"),s=a("filter");i({target:"Array",proto:!0,forced:!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4e4e":function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{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}function a(){this.values=n(null)}function s(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);if(2===s.length){var o=s[0],l=s[1];t(o,l)}}}function o(e,t,n){var o=e;function l(){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 u(e,t){var i=new a;s(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","middle","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","middle","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","middle","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical",""),t.line=i.get("line","auto"),t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align","middle"),t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),c(),t.endTime=l(),c(),u(e,t)}i.prototype=n(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),t>=0&&t<=100))&&(this.set(e,t),!0)}};var l={"&":"&","<":"<",">":">","‎":"‎","‏":"â€"," ":" "},u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},d={rt:"ruby"};function h(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return l[e]}function a(e){while(y=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))e=e.replace(y[0],i);return e}function s(e,t){return!d[t.localName]||d[t.localName]===e.localName}function o(t,n){var i=u[t];if(!i)return null;var r=e.document.createElement(i);r.localName=i;var a=c[t];return a&&n&&(r[a]=n.trim()),r}var h,p=e.document.createElement("div"),f=p,m=[];while(null!==(h=n()))if("<"!==h[0])f.appendChild(e.document.createTextNode(a(h)));else{if("/"===h[1]){m.length&&m[m.length-1]===h.substr(2).replace(">","")&&(m.pop(),f=f.parentNode);continue}var g,v=r(h.substr(1,h.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),f.appendChild(g);continue}var y=h.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(g=o(y[1],y[3]),!g)continue;if(!s(f,g))continue;y[2]&&(g.className=y[2].substr(1).replace("."," ")),m.push(y[1]),f.appendChild(g),f=g}return p}var p=[[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],[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]];function f(e){for(var t=0;t<p.length;t++){var n=p[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function m(e){var t,n=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function a(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}r(n,e);while(i=a(n))for(var s=0;s<i.length;s++)if(t=i.charCodeAt(s),f(t))return"rtl";return"ltr"}function g(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}function v(){}function y(e,t,n){var i=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";i&&(r="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),v.call(this),this.cue=t,this.cueDiv=h(e,t.text);var s={color:r,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},i||(s.direction=m(this.cueDiv),s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var o=0;switch(t.positionAlign){case"start":o=t.position;break;case"middle":o=t.position-t.size/2;break;case"end":o=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(o,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(o,"%"),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")})}}function b(e){var t,n,i,r,a=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.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,a&&!this.lineHeight&&(this.lineHeight=13)}function _(e,t,n,i){function r(e,t){for(var r,a=new b(e),s=1,o=0;o<t.length;o++){while(e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i))e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new b(e),s=l),e=new b(a)}return r||a}var a=new b(t),s=t.cue,o=g(s),l=[];if(s.snapToLines){var u;switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=a.lineHeight,d=c*Math.round(o),h=n[u]+c,p=l[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),o<0&&(d+=""===s.vertical?n.height:n.width,l=l.reverse()),a.move(p,d)}else{var f=a.lineHeight/n.height*100;switch(s.lineAlign){case"middle":o-=f/2;break;case"end":o-=f;break}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],a=new b(t)}var m=r(a,l);t.move(m.toCSSCompatValues(n))}function T(){}v.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},v.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=n(v.prototype),y.prototype.constructor=y,b.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;break}},b.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},b.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},b.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},b.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}},b.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*n;return i/(this.height*this.width)},b.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}},b.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;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n};return r},T.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},T.convertCueToDOMTree=function(e,t){return e&&t?h(e,t):null};var S=.05,w="sans-serif",k="1.5%";T.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=k,n.appendChild(i),r(t)){var a=[],s=b.getSimpleBoxPosition(i),o=Math.round(s.height*S*100)/100,l={font:o+"px "+w};(function(){for(var n,r,o=0;o<t.length;o++)r=t[o],n=new y(e,r,l),i.appendChild(n.div),_(e,n,s,a),r.displayState=n.div,a.push(b.getSimpleBoxPosition(n))})()}else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},T.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=[]},T.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(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}function l(e){var n=new a;if(s(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new a;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function u(e){var n=new a;s(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",r(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?s(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":u(t);break}}),/=/):s(e,(function(e,t){switch(e){case"Region":l(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;d=n();var h=d.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:d=n(),t.state){case"HEADER":/:/.test(d)?c(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===d.indexOf("--\x3e")){t.cue.id=d;continue}case"CUE":try{o(d,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==d.indexOf("--\x3e");if(!d||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d;continue;case"BADCUE":d||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"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(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new i(i.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=T},"4ea2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){var i=void 0,r=void 0;if(n&&n.cues){i=n.cues.length;while(i--)r=n.cues[i],r.startTime<=t&&r.endTime>=e&&n.removeCue(r)}};t["default"]=i,e.exports=t["default"]},"50a6":function(e,t,n){"use strict";t.pad=n("6941"),t.unpad=n("0c1c")},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t,n){var i=n("7b0b"),r={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return r.call(i(e),t)}},5156:function(e,t,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,r=n("1696");e.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},5164:function(e,t,n){"use strict";var i=n("6516"),r=n("3727").handleRollover,a={};a.ts=n("ac62"),a.aac=n("d8c8");var s=9e4,o=188,l=71,u=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},c=function(e,t){var n,i,r=0,s=o;while(s<e.byteLength)if(e[r]!==l||e[s]!==l)r++,s++;else{switch(n=e.subarray(r,s),i=a.ts.parseType(n,t.pid),i){case"pat":t.pid||(t.pid=a.ts.parsePat(n));break;case"pmt":t.table||(t.table=a.ts.parsePmt(n));break;default:break}if(t.pid&&t.table)return;r+=o,s+=o}},d=function(e,t,n){var i,r,s,u,c,d=0,h=o,p=!1;while(h<e.byteLength)if(e[d]!==l||e[h]!==l)d++,h++;else{switch(i=e.subarray(d,h),r=a.ts.parseType(i,t.pid),r){case"pes":s=a.ts.parsePesType(i,t.table),u=a.ts.parsePayloadUnitStartIndicator(i),"audio"===s&&u&&(c=a.ts.parsePesTime(i),c&&(c.type="audio",n.audio.push(c),p=!0));break;default:break}if(p)break;d+=o,h+=o}h=e.byteLength,d=h-o,p=!1;while(d>=0)if(e[d]!==l||e[h]!==l)d--,h--;else{switch(i=e.subarray(d,h),r=a.ts.parseType(i,t.pid),r){case"pes":s=a.ts.parsePesType(i,t.table),u=a.ts.parsePayloadUnitStartIndicator(i),"audio"===s&&u&&(c=a.ts.parsePesTime(i),c&&(c.type="audio",n.audio.push(c),p=!0));break;default:break}if(p)break;d-=o,h-=o}},h=function(e,t,n){var i,r,s,u,c,d,h,p,f=0,m=o,g=!1,v={data:[],size:0};while(m<e.byteLength)if(e[f]!==l||e[m]!==l)f++,m++;else{switch(i=e.subarray(f,m),r=a.ts.parseType(i,t.pid),r){case"pes":if(s=a.ts.parsePesType(i,t.table),u=a.ts.parsePayloadUnitStartIndicator(i),"video"===s&&(u&&!g&&(c=a.ts.parsePesTime(i),c&&(c.type="video",n.video.push(c),g=!0)),!n.firstKeyFrame)){if(u&&0!==v.size){d=new Uint8Array(v.size),h=0;while(v.data.length)p=v.data.shift(),d.set(p,h),h+=p.byteLength;a.ts.videoPacketContainsKeyFrame(d)&&(n.firstKeyFrame=a.ts.parsePesTime(d),n.firstKeyFrame.type="video"),v.size=0}v.data.push(i),v.size+=i.byteLength}break;default:break}if(g&&n.firstKeyFrame)break;f+=o,m+=o}m=e.byteLength,f=m-o,g=!1;while(f>=0)if(e[f]!==l||e[m]!==l)f--,m--;else{switch(i=e.subarray(f,m),r=a.ts.parseType(i,t.pid),r){case"pes":s=a.ts.parsePesType(i,t.table),u=a.ts.parsePayloadUnitStartIndicator(i),"video"===s&&u&&(c=a.ts.parsePesTime(i),c&&(c.type="video",n.video.push(c),g=!0));break;default:break}if(g)break;f-=o,m-=o}},p=function(e,t){if(e.audio&&e.audio.length){var n=t;"undefined"===typeof n&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=r(e.dts,n),e.pts=r(e.pts,n),e.dtsTime=e.dts/s,e.ptsTime=e.pts/s}))}if(e.video&&e.video.length){var i=t;if("undefined"===typeof i&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=r(e.dts,i),e.pts=r(e.pts,i),e.dtsTime=e.dts/s,e.ptsTime=e.pts/s})),e.firstKeyFrame){var a=e.firstKeyFrame;a.dts=r(a.dts,i),a.pts=r(a.pts,i),a.dtsTime=a.dts/s,a.ptsTime=a.dts/s}}},f=function(e){var t,n=!1,i=0,r=null,o=null,l=0,u=0;while(e.length-u>=3){var c=a.aac.parseType(e,u);switch(c){case"timed-metadata":if(e.length-u<10){n=!0;break}if(l=a.aac.parseId3TagSize(e,u),l>e.length){n=!0;break}null===o&&(t=e.subarray(u,u+l),o=a.aac.parseAacTimestamp(t)),u+=l;break;case"audio":if(e.length-u<7){n=!0;break}if(l=a.aac.parseAdtsSize(e,u),l>e.length){n=!0;break}null===r&&(t=e.subarray(u,u+l),r=a.aac.parseSampleRate(t)),i++,u+=l;break;default:u++;break}if(n)return null}if(null===r||null===o)return null;var d=s/r,h={audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*i*d,pts:o+1024*i*d}]};return h},m=function(e){var t={pid:null,table:null},n={};for(var r in c(e,t),t.table)if(t.table.hasOwnProperty(r)){var a=t.table[r];switch(a){case i.H264_STREAM_TYPE:n.video=[],h(e,t,n),0===n.video.length&&delete n.video;break;case i.ADTS_STREAM_TYPE:n.audio=[],d(e,t,n),0===n.audio.length&&delete n.audio;break;default:break}}return n},g=function(e,t){var n,i=u(e);return n=i?f(e):m(e),n&&(n.audio||n.video)?(p(n,t),n):null};e.exports={inspect:g}},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),a=n("2e67"),s=n("2444");function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var i=n("d784"),r=n("d039"),a=n("825a"),s=n("a691"),o=n("50c4"),l=n("577e"),u=n("1d80"),c=n("8aa5"),d=n("0cb2"),h=n("14c3"),p=n("b622"),f=p("replace"),m=Math.max,g=Math.min,v=function(e){return void 0===e?e:String(e)},y=function(){return"$0"==="a".replace(/./,"$0")}(),b=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),_=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));i("replace",(function(e,t,n){var i=b?"$":"$0";return[function(e,n){var i=u(this),r=void 0==e?void 0:e[f];return void 0!==r?r.call(e,i,n):t.call(l(i),e,n)},function(e,r){var u=a(this),p=l(e);if("string"===typeof r&&-1===r.indexOf(i)&&-1===r.indexOf("$<")){var f=n(t,u,p,r);if(f.done)return f.value}var y="function"===typeof r;y||(r=l(r));var b=u.global;if(b){var _=u.unicode;u.lastIndex=0}var T=[];while(1){var S=h(u,p);if(null===S)break;if(T.push(S),!b)break;var w=l(S[0]);""===w&&(u.lastIndex=c(p,o(u.lastIndex),_))}for(var k="",C=0,E=0;E<T.length;E++){S=T[E];for(var x=l(S[0]),O=m(g(s(S.index),p.length),0),A=[],P=1;P<S.length;P++)A.push(v(S[P]));var I=S.groups;if(y){var L=[x].concat(A,O,p);void 0!==I&&L.push(I);var D=l(r.apply(void 0,L))}else D=d(x,p,O,A,I,r);O>=C&&(k+=p.slice(C,O)+D,C=O+x.length)}return k+p.slice(C)}]}),!_||!y||b)},"53a8":function(e,t){e.exports=i;var n=Object.prototype.hasOwnProperty;function i(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var r in i)n.call(i,r)&&(e[r]=i[r])}return e}},5402:function(e,t,n){"use strict";var i=n("00ce"),r=n("545e"),a=n("2714"),s=i("%TypeError%"),o=i("%WeakMap%",!0),l=i("%Map%",!0),u=r("WeakMap.prototype.get",!0),c=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),h=r("Map.prototype.get",!0),p=r("Map.prototype.set",!0),f=r("Map.prototype.has",!0),m=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var i=m(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new s("Side channel does not contain "+a(e))},get:function(i){if(o&&i&&("object"===typeof i||"function"===typeof i)){if(e)return u(e,i)}else if(l){if(t)return h(t,i)}else if(n)return g(n,i)},has:function(i){if(o&&i&&("object"===typeof i||"function"===typeof i)){if(e)return d(e,i)}else if(l){if(t)return f(t,i)}else if(n)return y(n,i);return!1},set:function(i,r){o&&i&&("object"===typeof i||"function"===typeof i)?(e||(e=new o),c(e,i,r)):l?(t||(t=new l),p(t,i,r)):(n||(n={key:{},next:null}),v(n,i,r))}};return i}},"543e":function(e,t,n){"use strict";var i=n("2638"),r=n.n(i),a=n("d282"),s=n("ea8e"),o=n("ba31"),l=Object(a["a"])("loading"),u=l[0],c=l[1];function d(e,t){if("spinner"===t.type){for(var n=[],i=0;i<12;i++)n.push(e("i"));return n}return e("svg",{class:c("circular"),attrs:{viewBox:"25 25 50 50"}},[e("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function h(e,t,n){if(n.default){var i,r={fontSize:Object(s["a"])(t.textSize),color:null!=(i=t.textColor)?i:t.color};return e("span",{class:c("text"),style:r},[n.default()])}}function p(e,t,n,i){var a=t.color,l=t.size,u=t.type,p={color:a};if(l){var f=Object(s["a"])(l);p.width=f,p.height=f}return e("div",r()([{class:c([u,{vertical:t.vertical}])},Object(o["b"])(i,!0)]),[e("span",{class:c("spinner",u),style:p},[d(e,t)]),h(e,t,n)])}p.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},t["a"]=u(p)},"545e":function(e,t,n){"use strict";var i=n("00ce"),r=n("3eb1"),a=r(i("String.prototype.indexOf"));e.exports=function(e,t){var n=i(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?r(n):n}},5496:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("f7fd"),u=a(l),c=n("e475"),d=a(c),h=n("be09"),p=a(h),f=n("4ea2"),m=a(f),g=n("f24e"),v=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),y=function(e){return String.fromCharCode.apply(null,e)},b=function(e){function t(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,n),this.mediaSource_=null,this.subtitlesTrack_=null}return o(t,e),i(t,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return d["default"].createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return d["default"].createTimeRanges([[t,n]])}},{key:"initSegment",value:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!e)return null;var n=(0,g.initSegmentId)(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=v.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(v,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}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"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(e,t){(0,m["default"])(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t),t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"skipEmptySegments_",value:function(e){while(e&&e.segment.empty)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var t=this.pendingSegment_,n=t.segment;if("function"!==typeof p["default"].WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var i=function(){var t=function(){e.handleSegment_()};return e.state="WAITING_ON_VTTJS",e.subtitlesTrack_.tech_.one("vttjsloaded",t),e.subtitlesTrack_.tech_.one("vttjserror",(function(){e.subtitlesTrack_.tech_.off("vttjsloaded",t),e.error({message:"Error loading vtt.js"}),e.state="READY",e.pause(),e.trigger("error")})),{v:void 0}}();if("object"===typeof i)return i.v}n.requested=!0;try{this.parseVTTCues_(t)}catch(r){return this.error({message:r.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(t,this.syncController_.timelines[t.timeline],this.playlist_),t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");t.byteLength=t.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,t.cues.length&&this.remove(t.cues[0].endTime,t.cues[t.cues.length-1].endTime),t.cues.forEach((function(t){e.subtitlesTrack_.addCue(t)})),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(e){var t=void 0,n=!1;"function"===typeof p["default"].TextDecoder?t=new p["default"].TextDecoder("utf8"):(t=p["default"].WebVTT.StringDecoder(),n=!0);var i=new p["default"].WebVTT.Parser(p["default"],p["default"].vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){return e.timestampmap=t},i.onparsingerror=function(e){d["default"].log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=y(r)),i.parse(r)}var a=e.bytes;n&&(a=y(a)),i.parse(a),i.flush()}},{key:"updateTimeMapping_",value:function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/9e4-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(s,o-i.duration)}}}else i.empty=!0}}]),t}(u["default"]);t["default"]=b,e.exports=t["default"]},"55b5":function(e,t,n){var i=n("4a4b");function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.2",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56c8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},e.exports=t["default"]},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),a=n("7418"),s=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=a.f;return n?t.concat(n(e)):t}},"577e":function(e,t,n){var i=n("d9b5");e.exports=function(e){if(i(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},"57db":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("56c8"),a=i(r),s=n("d61a"),o=i(s),l=n("6066"),u=function(e,t){var n=void 0;return e?(n=window.getComputedStyle(e),n?n[t]:""):""},c=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}))},d=function(e,t){var n=void 0,i=void 0;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||window.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||window.Number.MAX_VALUE,n-i};t.comparePlaylistBandwidth=d;var h=function(e,t){var n=void 0,i=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||window.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||window.Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i};t.comparePlaylistResolution=h;var p=function(e,t,n,i){var r=e.playlists.map((function(e){var t=void 0,n=void 0,i=void 0;return t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,i=e.attributes.BANDWIDTH,i=i||window.Number.MAX_VALUE,{bandwidth:i,width:t,height:n,playlist:e}}));c(r,(function(e,t){return e.bandwidth-t.bandwidth})),r=r.filter((function(e){return!o["default"].isIncompatible(e.playlist)}));var s=r.filter((function(e){return o["default"].isEnabled(e.playlist)}));s.length||(s=r.filter((function(e){return!o["default"].isDisabled(e.playlist)})));var l=s.filter((function(e){return e.bandwidth*a["default"].BANDWIDTH_VARIANCE<t})),u=l[l.length-1],d=l.filter((function(e){return e.bandwidth===u.bandwidth}))[0],h=l.filter((function(e){return e.width&&e.height}));c(h,(function(e,t){return e.width-t.width}));var p=h.filter((function(e){return e.width===n&&e.height===i}));u=p[p.length-1];var f=p.filter((function(e){return e.bandwidth===u.bandwidth}))[0],m=void 0,g=void 0,v=void 0;f||(m=h.filter((function(e){return e.width>n||e.height>i})),g=m.filter((function(e){return e.width===m[0].width&&e.height===m[0].height})),u=g[g.length-1],v=g.filter((function(e){return e.bandwidth===u.bandwidth}))[0]);var y=v||f||d||s[0]||r[0];return y?y.playlist:null};t.simpleSelector=p;var f=function(){return p(this.playlists.master,this.systemBandwidth,parseInt(u(this.tech_.el(),"width"),10),parseInt(u(this.tech_.el(),"height"),10))};t.lastBandwidthSelector=f;var m=function(e){var t=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){return t<0&&(t=this.systemBandwidth),t=e*this.systemBandwidth+(1-e)*t,p(this.playlists.master,t,parseInt(u(this.tech_.el(),"width"),10),parseInt(u(this.tech_.el(),"height"),10))}};t.movingAverageBandwidthSelector=m;var g=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,l=e.currentTimeline,u=e.syncController,h=t.playlists.filter((function(e){return!o["default"].isIncompatible(e)})),p=h.filter(o["default"].isEnabled);p.length||(p=h.filter((function(e){return!o["default"].isDisabled(e)})));var f=p.filter(o["default"].hasAttribute.bind(null,"BANDWIDTH")),m=f.map((function(e){var t=u.getSyncPoint(e,r,l,n),c=t?1:2,d=o["default"].estimateSegmentRequestTime(a,i,e),h=d*c-s;return{playlist:e,rebufferingImpact:h}})),g=m.filter((function(e){return e.rebufferingImpact<=0}));return c(g,(function(e,t){return d(t.playlist,e.playlist)})),g.length?g[0]:(c(m,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),m[0]||null)};t.minRebufferMaxBandwidthSelector=g;var v=function(){var e=this.playlists.master.playlists.filter(o["default"].isEnabled);c(e,(function(e,t){return d(e,t)}));var t=e.filter((function(e){return(0,l.parseCodecs)(e.attributes.CODECS).videoCodec}));return t[0]||null};t.lowestBitrateCompatibleVariantSelector=v},5899:function(e,t){e.exports="\t\n\v\f\r    â€â€‚         âŸã€€\u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r=n("577e"),a=n("5899"),s="["+a+"]",o=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(e){return function(t){var n=r(i(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(l,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5c9d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n("be09"),o=r(s),l=n("fef4"),u=r(l),c=function(e){e.on("data",(function(e){var t=e.initSegment;e.initSegment={data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength};var n=e.data;e.data=n.buffer,o["default"].postMessage({action:"data",segment:e,byteOffset:n.byteOffset,byteLength:n.byteLength},[e.data])})),e.captionStream&&e.captionStream.on("data",(function(e){o["default"].postMessage({action:"caption",data:e})})),e.on("done",(function(e){o["default"].postMessage({action:"done"})})),e.on("gopInfo",(function(e){o["default"].postMessage({action:"gopInfo",gopInfo:e})}))},d=function(){function e(t){a(this,e),this.options=t||{},this.init()}return i(e,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new u["default"].Transmuxer(this.options),c(this.transmuxer)}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*t))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*e.appendStart))}},{key:"flush",value:function(e){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}(),h=function(e){e.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new d(e.data.options):(this.messageHandlers||(this.messageHandlers=new d),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}};t["default"]=function(e){return new h(e)},e.exports=t["default"]},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5fbe":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("1325"),r=0;function a(e){var t="binded_"+r++;function n(){this[t]||(e.call(this,i["b"],!0),this[t]=!0)}function a(){this[t]&&(e.call(this,i["a"],!1),this[t]=!1)}return{mounted:n,activated:n,deactivated:a,beforeDestroy:a}}},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},6066:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t={codecCount:0},n=void 0;return t.codecCount=e.split(",").length,t.codecCount=t.codecCount||2,n=/(^|\s|,)+(avc1)([^ ,]*)/i.exec(e),n&&(t.videoCodec=n[2],t.videoObjectTypeIndicator=n[3]),t.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(e),t.audioProfile=t.audioProfile&&t.audioProfile[2],t};t.parseCodecs=i},6069:function(e,t){e.exports="object"==typeof window},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),a=n("df75"),s=n("7418"),o=n("d1e7"),l=n("7b0b"),u=n("44ad"),c=Object.assign,d=Object.defineProperty;e.exports=!c||r((function(){if(i&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||a(c({},t)).join("")!=r}))?function(e,t){var n=l(e),r=arguments.length,c=1,d=s.f,h=o.f;while(r>c){var p,f=u(arguments[c++]),m=d?a(f).concat(d(f)):a(f),g=m.length,v=0;while(g>v)p=m[v++],i&&!h.call(f,p)||(n[p]=f[p])}return n}:c},6373:function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},6444:function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")},i=function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e){if(!e)return{};for(var t={},r=n(e).split("\n"),a=0;a<r.length;a++){var s=r[a],o=s.indexOf(":"),l=n(s.slice(0,o)).toLowerCase(),u=n(s.slice(o+1));"undefined"===typeof t[l]?t[l]=u:i(t[l])?t[l].push(u):t[l]=[t[l],u]}return t}},6516:function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},6547:function(e,t,n){var i=n("a691"),r=n("577e"),a=n("1d80"),s=function(e){return function(t,n){var s,o,l=r(a(t)),u=i(n),c=l.length;return u<0||u>=c?e?"":void 0:(s=l.charCodeAt(u),s<55296||s>56319||u+1===c||(o=l.charCodeAt(u+1))<56320||o>57343?e?l.charAt(u):s:e?l.slice(u,u+2):o-56320+(s-55296<<10)+65536)}};e.exports={codeAt:s(!1),charAt:s(!0)}},"65f0":function(e,t,n){var i=n("0b42");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},6605:function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return T}));var i={zIndex:2e3,lockCount:0,stack:[],find:function(e){return this.stack.filter((function(t){return t.vm===e}))[0]},remove:function(e){var t=this.find(e);if(t){t.vm=null,t.overlay=null;var n=this.stack.indexOf(t);this.stack.splice(n,1)}}},r=n("c31d"),a=n("6e47"),s=n("ba31"),o=n("092d"),l={className:"",customStyle:{}};function u(e){return Object(s["c"])(a["a"],{on:{click:function(){e.$emit("click-overlay"),e.closeOnClickOverlay&&(e.onClickOverlay?e.onClickOverlay():e.close())}}})}function c(e){var t=i.find(e);if(t){var n=e.$el,a=t.config,s=t.overlay;n&&n.parentNode&&n.parentNode.insertBefore(s.$el,n),Object(r["a"])(s,l,a,{show:!0})}}function d(e,t){var n=i.find(e);if(n)n.config=t;else{var r=u(e);i.stack.push({vm:e,config:t,overlay:r})}c(e)}function h(e){var t=i.find(e);t&&(t.overlay.show=!1)}function p(e){var t=i.find(e);t&&(Object(o["a"])(t.overlay.$el),i.remove(e))}var f=n("1325"),m=n("a8c1"),g=n("3875"),v=n("1421"),y=n("5fbe"),b={mixins:[Object(y["a"])((function(e,t){this.handlePopstate(t&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(e){this.handlePopstate(e)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(e){if(!this.$isServer&&this.bindStatus!==e){this.bindStatus=e;var t=e?f["b"]:f["a"];t(window,"popstate",this.onPopstate)}}}},_={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function T(e){return void 0===e&&(e={}),{mixins:[g["a"],b,Object(v["a"])({afterPortal:function(){this.overlay&&c()}})],provide:function(){return{vanPopup:this}},props:_,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(t){var n=t?"open":"close";this.inited=this.inited||this.value,this[n](),e.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){p(this),this.opened&&this.removeLock(),this.getContainer&&Object(o["a"])(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(i.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(e){e()})))},addLock:function(){this.lockScroll&&(Object(f["b"])(document,"touchstart",this.touchStart),Object(f["b"])(document,"touchmove",this.onTouchMove),i.lockCount||document.body.classList.add("van-overflow-hidden"),i.lockCount++)},removeLock:function(){this.lockScroll&&i.lockCount&&(i.lockCount--,Object(f["a"])(document,"touchstart",this.touchStart),Object(f["a"])(document,"touchmove",this.onTouchMove),i.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(h(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(e){this.touchMove(e);var t=this.deltaY>0?"10":"01",n=Object(m["d"])(e.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,a=n.scrollTop,s="11";0===a?s=r>=i?"00":"01":a+r>=i&&(s="10"),"11"===s||"vertical"!==this.direction||parseInt(s,2)&parseInt(t,2)||Object(f["c"])(e,!0)},renderOverlay:function(){var e=this;!this.$isServer&&this.value&&this.$nextTick((function(){e.updateZIndex(e.overlay?1:0),e.overlay?d(e,{zIndex:i.zIndex++,duration:e.duration,className:e.overlayClass,customStyle:e.overlayStyle}):h(e)}))},updateZIndex:function(e){void 0===e&&(e=0),this.$el.style.zIndex=++i.zIndex+e},onReopen:function(e){this.onReopenCallback.push(e)}}}}},"672d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("be09"),u=a(l),c=n("12c6"),d=a(c),h=n("1376"),p=a(h),f=n("4ea2"),m=a(f),g=n("9417"),v=a(g),y=n("ba2d"),b=n("a64c"),_=a(b),T=n("78d8"),S=a(T),w=n("e206"),k=a(w),C=function(){var e=void 0;try{e="a64c"}catch(t){}return e},E=function(e){u["default"].setTimeout(e,k["default"].TIME_BETWEEN_CHUNKS)},x=function(){return Math.random().toString(36).slice(2,8)},O=function(e,t){("number"!==typeof t||t<0)&&(t=0);var n=Math.pow(10,t);return Math.round(e*n)/n},A=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);var i=void 0;this.chunkSize_=k["default"].BYTES_PER_CHUNK,this.buffer_=[],this.bufferSize_=0,this.basePtsOffset_=NaN,this.mediaSource_=e,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.updating=!1,this.timestampOffset_=0,i=u["default"].btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(p["default"].getFlvHeader())));var a=this.mediaSource_.player_.id().replace(/[^a-zA-Z0-9]/g,"_");this.flashEncodedHeaderName_="vjs_flashEncodedHeader_"+a+x(),this.flashEncodedDataName_="vjs_flashEncodedData_"+a+x(),u["default"][this.flashEncodedHeaderName_]=function(){return delete u["default"][n.flashEncodedHeaderName_],i},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedHeaderName_),this.transmuxer_=(0,S["default"])(_["default"],C()),this.transmuxer_.postMessage({action:"init",options:{}}),this.transmuxer_.onmessage=function(e){"data"===e.data.action&&n.receiveBuffer_(e.data.segment)},this.one("updateend",(function(){n.mediaSource_.tech_.trigger("loadedmetadata")})),Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(e){"number"===typeof e&&e>=0&&(this.timestampOffset_=e,this.mediaSource_.swfObj.vjs_discontinuity(),this.basePtsOffset_=NaN,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.transmuxer_.postMessage({action:"reset"}))}}),Object.defineProperty(this,"buffered",{get:function(){if(!this.mediaSource_||!this.mediaSource_.swfObj||!("vjs_getProperty"in this.mediaSource_.swfObj))return d["default"].createTimeRange();var e=this.mediaSource_.swfObj.vjs_getProperty("buffered");return e&&e.length&&(e[0][0]=O(e[0][0],3),e[0][1]=O(e[0][1],3)),d["default"].createTimeRanges(e)}}),this.mediaSource_.player_.on("seeked",(function(){if((0,m["default"])(0,1/0,n.metadataTrack_),n.inbandTextTracks_)for(var e in n.inbandTextTracks_)(0,m["default"])(0,1/0,n.inbandTextTracks_[e])}));var o=this.onHlsReset_.bind(this);this.mediaSource_.player_.tech_.on("hls-reset",o),this.mediaSource_.player_.tech_.hls.on("dispose",(function(){n.transmuxer_.terminate(),n.mediaSource_.player_.tech_.off("hls-reset",o)}))}return o(t,e),i(t,[{key:"appendBuffer",value:function(e){var t=void 0;if(this.updating)throw t=new Error("SourceBuffer.append() cannot be called while an update is in progress"),t.name="InvalidStateError",t.code=11,t;this.updating=!0,this.mediaSource_.readyState="open",this.trigger({type:"update"}),this.transmuxer_.postMessage({action:"push",data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength},[e.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"abort",value:function(){this.buffer_=[],this.bufferSize_=0,this.mediaSource_.swfObj.vjs_abort(),this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"remove",value:function(e,t){if((0,m["default"])(e,t,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)(0,m["default"])(e,t,this.inbandTextTracks_[n]);this.trigger({type:"update"}),this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function(e){var t=this;(0,v["default"])(this,this.mediaSource_,e),(0,y.addTextTrackData)(this,e.captions,e.metadata),E((function(){var n=t.convertTagsToData_(e);0===t.buffer_.length&&E(t.processBuffer_.bind(t)),n&&(t.buffer_.push(n),t.bufferSize_+=n.byteLength)}))}},{key:"processBuffer_",value:function(){var e=this,t=k["default"].BYTES_PER_CHUNK;if(this.buffer_.length){var n=this.buffer_[0].subarray(0,t);n.byteLength<t||this.buffer_[0].byteLength===t?this.buffer_.shift():this.buffer_[0]=this.buffer_[0].subarray(t),this.bufferSize_-=n.byteLength;for(var i=[],r=n.byteLength,a=0;a<r;a++)i.push(String.fromCharCode(n[a]));var s=u["default"].btoa(i.join(""));u["default"][this.flashEncodedDataName_]=function(){return E(e.processBuffer_.bind(e)),delete u["default"][e.flashEncodedDataName_],s},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedDataName_)}else!1!==this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"convertTagsToData_",value:function(e){var t=0,n=this.mediaSource_.tech_,i=0,r=void 0,a=e.tags.videoTags,s=e.tags.audioTags;if(isNaN(this.basePtsOffset_)&&(a.length||s.length)){var o=a[0]||{pts:1/0},l=s[0]||{pts:1/0};this.basePtsOffset_=Math.min(l.pts,o.pts)}n.seeking()&&(this.videoBufferEnd_=NaN,this.audioBufferEnd_=NaN),isNaN(this.videoBufferEnd_)?(n.buffered().length&&(i=n.buffered().end(0)-this.timestampOffset),n.seeking()&&(i=Math.max(i,n.currentTime()-this.timestampOffset)),i*=1e3,i+=this.basePtsOffset_):i=this.videoBufferEnd_+.1;var u=a.length;if(u&&a[u-1].pts>=i){while(--u){var c=a[u];if(!(c.pts>i)&&(c.keyFrame||c.metaDataTag))break}while(u){var d=a[u-1];if(!d.metaDataTag)break;u--}}var h=a.slice(u),p=void 0;p=isNaN(this.audioBufferEnd_)?i:this.audioBufferEnd_+.1,h.length&&(p=Math.min(p,h[0].pts)),u=0;while(u<s.length){if(s[u].pts>=p)break;u++}var f=s.slice(u);f.length&&(this.audioBufferEnd_=f[f.length-1].pts),h.length&&(this.videoBufferEnd_=h[h.length-1].pts);var m=this.getOrderedTags_(h,f);if(0!==m.length){if(m[0].pts<i&&n.seeking()){var g=1/30,v=n.currentTime(),y=(i-m[0].pts)/1e3,b=v-y;b<g&&(b=0);try{this.mediaSource_.swfObj.vjs_adjustCurrentTime(b)}catch(S){}}for(var _=0;_<m.length;_++)t+=m[_].bytes.byteLength;r=new Uint8Array(t);_=0;for(var T=0;_<m.length;_++)r.set(m[_].bytes,T),T+=m[_].bytes.byteLength;return r}}},{key:"getOrderedTags_",value:function(e,t){var n=void 0,i=[];while(e.length||t.length)n=e.length?t.length&&t[0].dts<e[0].dts?t.shift():e.shift():t.shift(),i.push(n);return i}},{key:"onHlsReset_",value:function(){this.transmuxer_.postMessage({action:"resetCaptions"})}}]),t}(d["default"].EventTarget);t["default"]=A,e.exports=t["default"]},"688e":function(e,t,n){"use strict";var i="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,a=Object.prototype.toString,s="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||a.call(t)!==s)throw new TypeError(i+t);for(var n,o=r.call(arguments,1),l=function(){if(this instanceof n){var i=t.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return t.apply(e,o.concat(r.call(arguments)))},u=Math.max(0,t.length-o.length),c=[],d=0;d<u;d++)c.push("$"+d);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),t.prototype){var h=function(){};h.prototype=t.prototype,n.prototype=new h,h.prototype=null}return n}},"68ed":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=/-(\w)/g;function r(e){return e.replace(i,(function(e,t){return t.toUpperCase()}))}function a(e,t){void 0===t&&(t=2);var n=e+"";while(n.length<t)n="0"+n;return n}},6941:function(e,t,n){"use strict";var i;e.exports=function(e){var t=i[e.byteLength%16||0],n=new Uint8Array(e.byteLength+t.length);return n.set(e),n.set(t,e.byteLength),n},i=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},"69f3":function(e,t,n){var i,r,a,s=n("7f9a"),o=n("da84"),l=n("861d"),u=n("9112"),c=n("5135"),d=n("c6cd"),h=n("f772"),p=n("d012"),f="Object already initialized",m=o.WeakMap,g=function(e){return a(e)?r(e):i(e,{})},v=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s||d.state){var y=d.state||(d.state=new m),b=y.get,_=y.has,T=y.set;i=function(e,t){if(_.call(y,e))throw new TypeError(f);return t.facade=e,T.call(y,e,t),t},r=function(e){return b.call(y,e)||{}},a=function(e){return _.call(y,e)}}else{var S=h("state");p[S]=!0,i=function(e,t){if(c(e,S))throw new TypeError(f);return t.facade=e,u(e,S,t),t},r=function(e){return c(e,S)?e[S]:{}},a=function(e){return c(e,S)}}e.exports={set:i,get:r,has:a,enforce:g,getterFor:v}},"6be2":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("d136"),a=i(r),s=n("be09"),o=i(s),l=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=a["default"].buildAbsoluteURL(o["default"].location.href,e)),a["default"].buildAbsoluteURL(e,t))};t["default"]=l,e.exports=t["default"]},"6d67":function(e,t){var n="auto",i={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function a(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function s(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function l(e,t,i){var r=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?r=document.createElement("custom"):u.enumerable=!0,r.hasBeenReset=!1;var c="",d=!1,h=e,p=t,f=i,m=null,g="",v=!0,y="auto",b="start",_=50,T="middle",S=50,w="middle";if(Object.defineProperty(r,"id",o({},u,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(r,"pauseOnExit",o({},u,{get:function(){return d},set:function(e){d=!!e}})),Object.defineProperty(r,"startTime",o({},u,{get:function(){return h},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",o({},u,{get:function(){return p},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",o({},u,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",o({},u,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",o({},u,{get:function(){return g},set:function(e){var t=a(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",o({},u,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",o({},u,{get:function(){return y},set:function(e){if("number"!==typeof e&&e!==n)throw new SyntaxError("An invalid number or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",o({},u,{get:function(){return b},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",o({},u,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",o({},u,{get:function(){return T},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",o({},u,{get:function(){return S},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");S=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",o({},u,{get:function(){return w},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),r.displayState=void 0,l)return r}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=l},"6e1b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n("e475"),o=r(s),l=function(){},u=function(){function e(t,n){var i=this;a(this,e);var r=function(){i.sourceBuffer_=t.addSourceBuffer(n),i.onUpdateendCallback_=function(){var e=i.pendingCallback_;i.pendingCallback_=null,e&&e(),i.runCallback_()},i.sourceBuffer_.addEventListener("updateend",i.onUpdateendCallback_),i.runCallback_()};this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=t,this.processedAppend_=!1,"closed"===t.readyState?t.addEventListener("sourceopen",r):r()}return i(e,[{key:"abort",value:function(e){var t=this;this.processedAppend_&&this.queueCallback_((function(){t.sourceBuffer_.abort()}),e)}},{key:"appendBuffer",value:function(e,t){var n=this;this.processedAppend_=!0,this.queueCallback_((function(){n.sourceBuffer_.appendBuffer(e)}),t)}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:o["default"].createTimeRanges()}},{key:"remove",value:function(e,t){var n=this;this.processedAppend_&&this.queueCallback_((function(){n.sourceBuffer_.remove(e,t)}),l)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function(e){var t=this;return"undefined"!==typeof e&&(this.queueCallback_((function(){t.sourceBuffer_.timestampOffset=e})),this.timestampOffset_=e),this.timestampOffset_}},{key:"queueCallback_",value:function(e,t){this.callbacks_.push([e.bind(this),t]),this.runCallback_()}},{key:"runCallback_",value:function(){var e=void 0;!this.updating()&&this.callbacks_.length&&(e=this.callbacks_.shift(),this.pendingCallback_=e[1],e[0]())}},{key:"dispose",value:function(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_&&"open"===this.mediaSource.readyState&&this.sourceBuffer_.abort()}}]),e}();t["default"]=u,e.exports=t["default"]},"6e47":function(e,t,n){"use strict";var i=n("2638"),r=n.n(i),a=n("c31d"),s=n("d282"),o=n("a142"),l=n("ba31"),u=n("1325"),c=Object(s["a"])("overlay"),d=c[0],h=c[1];function p(e){Object(u["c"])(e,!0)}function f(e,t,n,i){var s=Object(a["a"])({zIndex:t.zIndex},t.customStyle);return Object(o["c"])(t.duration)&&(s.animationDuration=t.duration+"s"),e("transition",{attrs:{name:"van-fade"}},[e("div",r()([{directives:[{name:"show",value:t.show}],style:s,class:[h(),t.className],on:{touchmove:t.lockScroll?p:o["i"]}},Object(l["b"])(i,!0)]),[null==n.default?void 0:n.default()])])}f.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}},t["a"]=d(f)},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),a=n("5135"),s=n("ce4e"),o=n("8925"),l=n("69f3"),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,o){var l,u=!!o&&!!o.unsafe,h=!!o&&!!o.enumerable,p=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||r(n,"name",t),l=c(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==i?(u?!p&&e[t]&&(h=!0):delete e[t],h?e[t]=n:r(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||o(this)}))},"6f2f":function(e,t,n){"use strict";var i=n("2638"),r=n.n(i),a=n("d282"),s=n("a142"),o=n("ba31"),l=Object(a["a"])("info"),u=l[0],c=l[1];function d(e,t,n,i){var a=t.dot,l=t.info,u=Object(s["c"])(l)&&""!==l;if(a||u)return e("div",r()([{class:c({dot:a})},Object(o["b"])(i,!0)]),[a?"":t.info])}d.props={dot:Boolean,info:[Number,String]},t["a"]=u(d)},"6f8f":function(e,t,n){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n("4ae1"),e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},7002:function(e,t,n){"use strict";var i=function(){var e=this;this.list=[],this.push=function(e){this.list.push({bytes:e.bytes,dts:e.dts,pts:e.pts,keyFrame:e.keyFrame,metaDataTag:e.metaDataTag})},Object.defineProperty(this,"length",{get:function(){return e.list.length}})};e.exports=i},"70fd":function(e,t,n){"use strict";var i,r,a,s=n("0129"),o=n("db3d"),l=n("6373"),u=n("96b7").TimestampRolloverStream,c=n("6373"),d=188,h=71;i=function(){var e=new Uint8Array(d),t=0;i.prototype.init.call(this),this.push=function(n){var i,r=0,a=d;t?(i=new Uint8Array(n.byteLength+t),i.set(e.subarray(0,t)),i.set(n,t),t=0):i=n;while(a<i.byteLength)i[r]!==h||i[a]!==h?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=d,a+=d);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===d&&e[0]===h&&(this.trigger("data",e),t=0),this.trigger("done")}},i.prototype=new s,r=function(){var e,t,n,i;r.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,a,s;if(1&e[5]){i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],r=3+n-4,a=(15&e[10])<<8|e[11],s=12+a;while(s<r){var o=e[s],u=(31&e[s+1])<<8|e[s+2];o===l.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=u:o===l.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=u:o===l.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][u]=o),s+=5+((15&e[s+3])<<8|e[s+4])}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){n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else 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=l.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=l.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},r.prototype=new s,r.STREAM_TYPES={h264:27,adts:15},a=function(){var e=this,t={data:[],size:0},n={data:[],size:0},i={data:[],size:0},r=function(e,t){var n;t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),n=e[7],192&n&&(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])},s=function(t,n,i){var a,s=new Uint8Array(t.size),o={type:n},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(o.trackId=t.data[0].pid,l=0;l<t.data.length;l++)a=t.data[l],s.set(a.data,u),u+=a.data.byteLength;r(s,o),c="video"===n||o.packetLength<=t.size,(i||c)&&(t.size=0,t.data.length=0),c&&e.trigger("data",o)}};a.prototype.init.call(this),this.push=function(r){({pat:function(){},pes:function(){var e,a;switch(r.streamType){case l.H264_STREAM_TYPE:case c.H264_STREAM_TYPE:e=t,a="video";break;case l.ADTS_STREAM_TYPE:e=n,a="audio";break;case l.METADATA_STREAM_TYPE:e=i,a="timed-metadata";break;default:return}r.payloadUnitStartIndicator&&s(e,a,!0),e.data.push(r),e.size+=r.data.byteLength},pmt:function(){var t={type:"metadata",tracks:[]},n=r.programMapTable;null!==n.video&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.video,codec:"avc",type:"video"}),null!==n.audio&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.audio,codec:"adts",type:"audio"}),e.trigger("data",t)}})[r.type]()},this.flush=function(){s(t,"video"),s(n,"audio"),s(i,"timed-metadata"),this.trigger("done")}},a.prototype=new s;var p={PAT_PID:0,MP2T_PACKET_LENGTH:d,TransportPacketStream:i,TransportParseStream:r,ElementaryStream:a,TimestampRolloverStream:u,CaptionStream:o.CaptionStream,Cea608Stream:o.Cea608Stream,MetadataStream:n("9d91")};for(var f in l)l.hasOwnProperty(f)&&(p[f]=l[f]);e.exports=p},"713c":function(e,t,n){"use strict";var i=n("0129"),r=function(e){this.numberOfTracks=0,this.metadataStream=e.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,this.processedTracks=0,r.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):("video"===e.track.type&&(this.videoTrack=e.track,this.videoTags=e.tags,this.pendingTracks++),void("audio"===e.track.type&&(this.audioTrack=e.track,this.audioTags=e.tags,this.pendingTracks++)))}};r.prototype=new i,r.prototype.flush=function(e){var t,n,i,r,a={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(0===this.pendingTracks&&(this.processedTracks++,this.processedTracks<this.numberOfTracks))return}if(this.processedTracks+=this.pendingTracks,this.pendingTracks=0,!(this.processedTracks<this.numberOfTracks)){for(this.videoTrack?r=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(r=this.audioTrack.timelineStartInfo.pts),a.tags.videoTags=this.videoTags,a.tags.audioTags=this.audioTags,i=0;i<this.pendingCaptions.length;i++)n=this.pendingCaptions[i],n.startTime=n.startPts-r,n.startTime/=9e4,n.endTime=n.endPts-r,n.endTime/=9e4,a.captionStreams[n.stream]=!0,a.captions.push(n);for(i=0;i<this.pendingMetadata.length;i++)t=this.pendingMetadata[i],t.cueTime=t.pts-r,t.cueTime/=9e4,a.metadata.push(t);a.metadata.dispatchType=this.metadataStream.dispatchType,this.videoTrack=null,this.audioTrack=null,this.videoTags=[],this.audioTags=[],this.pendingCaptions.length=0,this.pendingMetadata.length=0,this.pendingTracks=0,this.processedTracks=0,this.trigger("data",a),this.trigger("done")}},e.exports=r},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var a,s;return r&&"function"==typeof(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&r(e,s),e}},7212:function(e,t,n){!function(t,i){e.exports=i(n("7559"))}(0,(function(e){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(t,n){t.exports=e},function(e,t){e.exports=function(e,t,n,i,r,a){var s,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,o=e.default);var u,c="function"==typeof o?o.options:o;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,h=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),h(e,t)}):c.beforeCreate=h?[].concat(h,u):[u]}return{esModule:s,exports:o,options:c}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n.n(i),a=n(8),s=n(1),o=s(r.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=n.n(i),a=n(7),s=n(1),o=s(r.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.swiperSlide=t.swiper=t.Swiper=void 0;var r=n(0),a=i(r),s=n(2),o=i(s),l=n(3),u=i(l),c=window.Swiper||a.default,d=u.default,h=o.default,p=function(e,t){t&&(u.default.props.globalOptions.default=function(){return t}),e.component(u.default.name,u.default),e.component(o.default.name,o.default)},f={Swiper:c,swiper:d,swiperSlide:h,install:p};t.default=f,t.Swiper=c,t.swiper=d,t.swiperSlide=h,t.install=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"swiper-slide",data:function(){return{slideClass:"swiper-slide"}},ready:function(){this.update()},mounted:function(){this.update(),this.$parent&&this.$parent.options&&this.$parent.options.slideClass&&(this.slideClass=this.$parent.options.slideClass)},updated:function(){this.update()},attached:function(){this.update()},methods:{update:function(){this.$parent&&this.$parent.swiper&&this.$parent.update()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=window.Swiper||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},writable:!0,configurable:!0});var s=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"];t.default={name:"swiper",props:{options:{type:Object,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{swiper:null,classes:{wrapperClass:"swiper-wrapper"}}},ready:function(){this.swiper||this.mountInstance()},mounted:function(){if(!this.swiper){var e=!1;for(var t in this.classes)this.classes.hasOwnProperty(t)&&this.options[t]&&(e=!0,this.classes[t]=this.options[t]);e?this.$nextTick(this.mountInstance):this.mountInstance()}},activated:function(){this.update()},updated:function(){this.update()},beforeDestroy:function(){this.$nextTick((function(){this.swiper&&(this.swiper.destroy&&this.swiper.destroy(),delete this.swiper)}))},methods:{update:function(){this.swiper&&(this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update())},mountInstance:function(){var e=Object.assign({},this.globalOptions,this.options);this.swiper=new a(this.$el,e),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var e=this,t=this;s.forEach((function(n){e.swiper.on(n,(function(){t.$emit.apply(t,[n].concat(Array.prototype.slice.call(arguments))),t.$emit.apply(t,[n.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))}))}))}}}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"swiper-container"},[e._t("parallax-bg"),e._v(" "),n("div",{class:e.classes.wrapperClass},[e._t("default")],2),e._v(" "),e._t("pagination"),e._v(" "),e._t("button-prev"),e._v(" "),e._t("button-next"),e._v(" "),e._t("scrollbar")],2)},r=[],a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.slideClass},[e._t("default")],2)},r=[],a={render:i,staticRenderFns:r};t.a=a}])}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7559:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e="undefined"===typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"===typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(e){for(var t=this,n=0;n<e.length;n+=1)t[n]=e[n];return t.length=e.length,this};function i(i,r){var a=[],s=0;if(i&&!r&&i instanceof n)return i;if(i)if("string"===typeof i){var o,l,u=i.trim();if(u.indexOf("<")>=0&&u.indexOf(">")>=0){var c="div";for(0===u.indexOf("<li")&&(c="ul"),0===u.indexOf("<tr")&&(c="tbody"),0!==u.indexOf("<td")&&0!==u.indexOf("<th")||(c="tr"),0===u.indexOf("<tbody")&&(c="table"),0===u.indexOf("<option")&&(c="select"),l=e.createElement(c),l.innerHTML=u,s=0;s<l.childNodes.length;s+=1)a.push(l.childNodes[s])}else for(o=r||"#"!==i[0]||i.match(/[ .<>:~]/)?(r||e).querySelectorAll(i.trim()):[e.getElementById(i.trim().split("#")[1])],s=0;s<o.length;s+=1)o[s]&&a.push(o[s])}else if(i.nodeType||i===t||i===e)a.push(i);else if(i.length>0&&i[0].nodeType)for(s=0;s<i.length;s+=1)a.push(i[s]);return new n(a)}function r(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function a(e){if("undefined"===typeof e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)"undefined"!==typeof this[i]&&"undefined"!==typeof this[i].classList&&this[i].classList.add(t[n]);return this}function s(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)"undefined"!==typeof this[i]&&"undefined"!==typeof this[i].classList&&this[i].classList.remove(t[n]);return this}function o(e){return!!this[0]&&this[0].classList.contains(e)}function l(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)"undefined"!==typeof this[i]&&"undefined"!==typeof this[i].classList&&this[i].classList.toggle(t[n]);return this}function u(e,t){var n=arguments;if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===n.length)this[i].setAttribute(e,t);else for(var r in e)this[i][r]=e[r],this[i].setAttribute(r,e[r]);return this}function c(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function d(e,t){var n;if("undefined"!==typeof t){for(var i=0;i<this.length;i+=1)n=this[i],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0],n){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var r=n.getAttribute("data-"+e);return r||void 0}}function h(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function p(e){"string"!==typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function f(){var e,t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=t[0],a=t[1],s=t[2],o=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),i(t).is(a))s.apply(t,n);else for(var r=i(t).parents(),o=0;o<r.length;o+=1)i(r[o]).is(a)&&s.apply(r[o],n)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),s.apply(this,t)}"function"===typeof t[1]&&(e=t,r=e[0],s=e[1],o=e[2],a=void 0),o||(o=!1);for(var c,d=r.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(a)for(c=0;c<d.length;c+=1){var f=d[c];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:s,proxyListener:l}),p.addEventListener(f,l,o)}else for(c=0;c<d.length;c+=1){var m=d[c];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:s,proxyListener:u}),p.addEventListener(m,u,o)}}return this}function m(){var e,t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=t[0],r=t[1],a=t[2],s=t[3];"function"===typeof t[1]&&(e=t,i=e[0],a=e[1],s=e[2],r=void 0),s||(s=!1);for(var o=i.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],c=0;c<this.length;c+=1){var d=this[c],h=void 0;if(!r&&d.dom7Listeners?h=d.dom7Listeners[u]:r&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[u]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];a&&f.listener===a||a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(d.removeEventListener(u,f.proxyListener,s),h.splice(p,1)):a||(d.removeEventListener(u,f.proxyListener,s),h.splice(p,1))}}return this}function g(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];for(var r=n[0].split(" "),a=n[1],s=0;s<r.length;s+=1)for(var o=r[s],l=0;l<this.length;l+=1){var u=this[l],c=void 0;try{c=new t.CustomEvent(o,{detail:a,bubbles:!0,cancelable:!0})}catch(d){c=e.createEvent("Event"),c.initEvent(o,!0,!0),c.detail=a}u.dom7EventData=n.filter((function(e,t){return t>0})),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}return this}function v(e){var t,n=["webkitTransitionEnd","transitionend"],i=this;function r(a){if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)i.off(n[t],r)}if(e)for(t=0;t<n.length;t+=1)i.on(n[t],r);return this}function y(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function b(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function _(){if(this.length>0){var n=this[0],i=n.getBoundingClientRect(),r=e.body,a=n.clientTop||r.clientTop||0,s=n.clientLeft||r.clientLeft||0,o=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:i.top+o-a,left:i.left+l-s}}return null}function T(){return this[0]?t.getComputedStyle(this[0],null):{}}function S(e,n){var i;if(1===arguments.length){if("string"!==typeof e){for(i=0;i<this.length;i+=1)for(var r in e)this[i].style[r]=e[r];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=n;return this}return this}function w(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function k(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function C(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function E(r){var a,s,o=this[0];if(!o||"undefined"===typeof r)return!1;if("string"===typeof r){if(o.matches)return o.matches(r);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(r);if(o.msMatchesSelector)return o.msMatchesSelector(r);for(a=i(r),s=0;s<a.length;s+=1)if(a[s]===o)return!0;return!1}if(r===e)return o===e;if(r===t)return o===t;if(r.nodeType||r instanceof n){for(a=r.nodeType?[r]:r,s=0;s<a.length;s+=1)if(a[s]===o)return!0;return!1}return!1}function x(){var e,t=this[0];if(t){e=0;while(null!==(t=t.previousSibling))1===t.nodeType&&(e+=1);return e}}function O(e){if("undefined"===typeof e)return this;var t,i=this.length;return e>i-1?new n([]):e<0?(t=i+e,new n(t<0?[]:[this[t]])):new n([this[e]])}function A(){var t,i=[],r=arguments.length;while(r--)i[r]=arguments[r];for(var a=0;a<i.length;a+=1){t=i[a];for(var s=0;s<this.length;s+=1)if("string"===typeof t){var o=e.createElement("div");o.innerHTML=t;while(o.firstChild)this[s].appendChild(o.firstChild)}else if(t instanceof n)for(var l=0;l<t.length;l+=1)this[s].appendChild(t[l]);else this[s].appendChild(t)}return this}function P(t){var i,r;for(i=0;i<this.length;i+=1)if("string"===typeof t){var a=e.createElement("div");for(a.innerHTML=t,r=a.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(a.childNodes[r],this[i].childNodes[0])}else if(t instanceof n)for(r=0;r<t.length;r+=1)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this}function I(e){return this.length>0?e?this[0].nextElementSibling&&i(this[0].nextElementSibling).is(e)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])}function L(e){var t=[],r=this[0];if(!r)return new n([]);while(r.nextElementSibling){var a=r.nextElementSibling;e?i(a).is(e)&&t.push(a):t.push(a),r=a}return new n(t)}function D(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&i(t.previousElementSibling).is(e)?new n([t.previousElementSibling]):new n([]):t.previousElementSibling?new n([t.previousElementSibling]):new n([])}return new n([])}function M(e){var t=[],r=this[0];if(!r)return new n([]);while(r.previousElementSibling){var a=r.previousElementSibling;e?i(a).is(e)&&t.push(a):t.push(a),r=a}return new n(t)}function j(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?i(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return i(r(t))}function R(e){for(var t=[],n=0;n<this.length;n+=1){var a=this[n].parentNode;while(a)e?i(a).is(e)&&t.push(a):t.push(a),a=a.parentNode}return i(r(t))}function N(e){var t=this;return"undefined"===typeof e?new n([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function B(e){for(var t=[],i=0;i<this.length;i+=1)for(var r=this[i].querySelectorAll(e),a=0;a<r.length;a+=1)t.push(r[a]);return new n(t)}function U(e){for(var t=[],a=0;a<this.length;a+=1)for(var s=this[a].childNodes,o=0;o<s.length;o+=1)e?1===s[o].nodeType&&i(s[o]).is(e)&&t.push(s[o]):1===s[o].nodeType&&t.push(s[o]);return new n(r(t))}function F(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function $(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n,r,a=this;for(n=0;n<e.length;n+=1){var s=i(e[n]);for(r=0;r<s.length;r+=1)a[a.length]=s[r],a.length+=1}return a}i.fn=n.prototype,i.Class=n,i.Dom7=n;var H={addClass:a,removeClass:s,hasClass:o,toggleClass:l,attr:u,removeAttr:c,data:d,transform:h,transition:p,on:f,off:m,trigger:g,transitionEnd:v,outerWidth:y,outerHeight:b,offset:_,css:S,each:w,html:k,text:C,is:E,index:x,eq:O,append:A,prepend:P,next:I,nextAll:L,prev:D,prevAll:M,parent:j,parents:R,closest:N,find:B,children:U,remove:F,add:$,styles:T};Object.keys(H).forEach((function(e){i.fn[e]=i.fn[e]||H[e]}));var V={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,n){var i,r,a;void 0===n&&(n="x");var s=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),a=new t.WebKitCSSMatrix("none"===r?"":r)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=a.toString().split(",")),"x"===n&&(r=t.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(r=t.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0},parseUrlQuery:function(e){var n,i,r,a,s={},o=e||t.location.href;if("string"===typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",i=o.split("&").filter((function(e){return""!==e})),a=i.length,n=0;n<a;n+=1)r=i[n].replace(/#\S+/g,"").split("="),s[decodeURIComponent(r[0])]="undefined"===typeof r[1]?void 0:decodeURIComponent(r[1])||"";return s},isObject:function(e){return"object"===typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];for(var n=Object(e[0]),i=1;i<e.length;i+=1){var r=e[i];if(void 0!==r&&null!==r)for(var a=Object.keys(Object(r)),s=0,o=a.length;s<o;s+=1){var l=a[s],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(V.isObject(n[l])&&V.isObject(r[l])?V.extend(n[l],r[l]):!V.isObject(n[l])&&V.isObject(r[l])?(n[l]={},V.extend(n[l],r[l])):n[l]=r[l])}}return n}},z=function(){var n=e.createElement("div");return{touch:t.Modernizr&&!0===t.Modernizr.touch||function(){return!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}(),pointerEvents:!!(t.navigator.pointerEnabled||t.PointerEvent||"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:function(){var e=n.style;return"transition"in e||"webkitTransition"in e||"MozTransition"in e}(),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||function(){var e=n.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=n.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<t.length;i+=1)if(t[i]in e)return!0;return!1}(),observer:function(){return"MutationObserver"in t||"WebkitMutationObserver"in t}(),passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(i){}return e}(),gestures:function(){return"ongesturestart"in t}()}}(),q=function(){function e(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}(),W=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},G={components:{configurable:!0}};function X(){var e,t,n=this,i=n.$el;e="undefined"!==typeof n.params.width?n.params.width:i[0].clientWidth,t="undefined"!==typeof n.params.height?n.params.height:i[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),V.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function Y(){var e=this,n=e.params,i=e.$wrapperEl,r=e.size,a=e.rtlTranslate,s=e.wrongRTL,o=e.virtual&&n.virtual.enabled,l=o?e.virtual.slides.length:e.slides.length,u=i.children("."+e.params.slideClass),c=o?e.virtual.slides.length:u.length,d=[],h=[],p=[],f=n.slidesOffsetBefore;"function"===typeof f&&(f=n.slidesOffsetBefore.call(e));var m=n.slidesOffsetAfter;"function"===typeof m&&(m=n.slidesOffsetAfter.call(e));var g=e.snapGrid.length,v=e.snapGrid.length,y=n.spaceBetween,b=-f,_=0,T=0;if("undefined"!==typeof r){var S,w;"string"===typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*r),e.virtualSize=-y,a?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),n.slidesPerColumn>1&&(S=Math.floor(c/n.slidesPerColumn)===c/e.params.slidesPerColumn?c:Math.ceil(c/n.slidesPerColumn)*n.slidesPerColumn,"auto"!==n.slidesPerView&&"row"===n.slidesPerColumnFill&&(S=Math.max(S,n.slidesPerView*n.slidesPerColumn)));for(var k,C=n.slidesPerColumn,E=S/C,x=Math.floor(c/n.slidesPerColumn),O=0;O<c;O+=1){w=0;var A=u.eq(O);if(n.slidesPerColumn>1){var P=void 0,I=void 0,L=void 0;if("column"===n.slidesPerColumnFill||"row"===n.slidesPerColumnFill&&n.slidesPerGroup>1){if("column"===n.slidesPerColumnFill)I=Math.floor(O/C),L=O-I*C,(I>x||I===x&&L===C-1)&&(L+=1,L>=C&&(L=0,I+=1));else{var D=Math.floor(O/n.slidesPerGroup);L=Math.floor(O/n.slidesPerView)-D*n.slidesPerColumn,I=O-L*n.slidesPerView-D*n.slidesPerView}P=I+L*S/C,A.css({"-webkit-box-ordinal-group":P,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})}else L=Math.floor(O/E),I=O-L*E;A.css("margin-"+(e.isHorizontal()?"top":"left"),0!==L&&n.spaceBetween&&n.spaceBetween+"px").attr("data-swiper-column",I).attr("data-swiper-row",L)}if("none"!==A.css("display")){if("auto"===n.slidesPerView){var M=t.getComputedStyle(A[0],null),j=A[0].style.transform,R=A[0].style.webkitTransform;if(j&&(A[0].style.transform="none"),R&&(A[0].style.webkitTransform="none"),n.roundLengths)w=e.isHorizontal()?A.outerWidth(!0):A.outerHeight(!0);else if(e.isHorizontal()){var N=parseFloat(M.getPropertyValue("width")),B=parseFloat(M.getPropertyValue("padding-left")),U=parseFloat(M.getPropertyValue("padding-right")),F=parseFloat(M.getPropertyValue("margin-left")),$=parseFloat(M.getPropertyValue("margin-right")),H=M.getPropertyValue("box-sizing");w=H&&"border-box"===H&&!q.isIE?N+F+$:N+B+U+F+$}else{var W=parseFloat(M.getPropertyValue("height")),G=parseFloat(M.getPropertyValue("padding-top")),X=parseFloat(M.getPropertyValue("padding-bottom")),Y=parseFloat(M.getPropertyValue("margin-top")),K=parseFloat(M.getPropertyValue("margin-bottom")),Q=M.getPropertyValue("box-sizing");w=Q&&"border-box"===Q&&!q.isIE?W+Y+K:W+G+X+Y+K}j&&(A[0].style.transform=j),R&&(A[0].style.webkitTransform=R),n.roundLengths&&(w=Math.floor(w))}else w=(r-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),u[O]&&(e.isHorizontal()?u[O].style.width=w+"px":u[O].style.height=w+"px");u[O]&&(u[O].swiperSlideSize=w),p.push(w),n.centeredSlides?(b=b+w/2+_/2+y,0===_&&0!==O&&(b=b-r/2-y),0===O&&(b=b-r/2-y),Math.abs(b)<.001&&(b=0),n.roundLengths&&(b=Math.floor(b)),T%n.slidesPerGroup===0&&d.push(b),h.push(b)):(n.roundLengths&&(b=Math.floor(b)),T%n.slidesPerGroup===0&&d.push(b),h.push(b),b=b+w+y),e.virtualSize+=w+y,_=w,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+m,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&i.css({width:e.virtualSize+n.spaceBetween+"px"}),z.flexbox&&!n.setWrapperSize||(e.isHorizontal()?i.css({width:e.virtualSize+n.spaceBetween+"px"}):i.css({height:e.virtualSize+n.spaceBetween+"px"})),n.slidesPerColumn>1&&(e.virtualSize=(w+n.spaceBetween)*S,e.virtualSize=Math.ceil(e.virtualSize/n.slidesPerColumn)-n.spaceBetween,e.isHorizontal()?i.css({width:e.virtualSize+n.spaceBetween+"px"}):i.css({height:e.virtualSize+n.spaceBetween+"px"}),n.centeredSlides)){k=[];for(var J=0;J<d.length;J+=1){var Z=d[J];n.roundLengths&&(Z=Math.floor(Z)),d[J]<e.virtualSize+d[0]&&k.push(Z)}d=k}if(!n.centeredSlides){k=[];for(var ee=0;ee<d.length;ee+=1){var te=d[ee];n.roundLengths&&(te=Math.floor(te)),d[ee]<=e.virtualSize-r&&k.push(te)}d=k,Math.floor(e.virtualSize-r)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-r)}if(0===d.length&&(d=[0]),0!==n.spaceBetween&&(e.isHorizontal()?a?u.css({marginLeft:y+"px"}):u.css({marginRight:y+"px"}):u.css({marginBottom:y+"px"})),n.centerInsufficientSlides){var ne=0;if(p.forEach((function(e){ne+=e+(n.spaceBetween?n.spaceBetween:0)})),ne-=n.spaceBetween,ne<r){var ie=(r-ne)/2;d.forEach((function(e,t){d[t]=e-ie})),h.forEach((function(e,t){h[t]=e+ie}))}}V.extend(e,{slides:u,snapGrid:d,slidesGrid:h,slidesSizesGrid:p}),c!==l&&e.emit("slidesLengthChange"),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&e.emit("slidesGridLengthChange"),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesOffset()}}function K(e){var t,n=this,i=[],r=0;if("number"===typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var a=n.activeIndex+t;if(a>n.slides.length)break;i.push(n.slides.eq(a)[0])}else i.push(n.slides.eq(n.activeIndex)[0]);for(t=0;t<i.length;t+=1)if("undefined"!==typeof i[t]){var s=i[t].offsetHeight;r=s>r?s:r}r&&n.$wrapperEl.css("height",r+"px")}function Q(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop}function J(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,r=t.slides,a=t.rtlTranslate;if(0!==r.length){"undefined"===typeof r[0].swiperSlideOffset&&t.updateSlidesOffset();var s=-e;a&&(s=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var o=0;o<r.length;o+=1){var l=r[o],u=(s+(n.centeredSlides?t.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var c=-(s-l.swiperSlideOffset),d=c+t.slidesSizesGrid[o],h=c>=0&&c<t.size-1||d>1&&d<=t.size||c<=0&&d>=t.size;h&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}l.progress=a?-u:u}t.visibleSlides=i(t.visibleSlides)}}function Z(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,i=t.maxTranslate()-t.minTranslate(),r=t.progress,a=t.isBeginning,s=t.isEnd,o=a,l=s;0===i?(r=0,a=!0,s=!0):(r=(e-t.minTranslate())/i,a=r<=0,s=r>=1),V.extend(t,{progress:r,isBeginning:a,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),a&&!o&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(o&&!a||l&&!s)&&t.emit("fromEdge"),t.emit("progress",r)}function ee(){var e,t=this,n=t.slides,i=t.params,r=t.$wrapperEl,a=t.activeIndex,s=t.realIndex,o=t.virtual&&i.virtual.enabled;n.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),e=o?t.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+a+'"]'):n.eq(a),e.addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(i.slideDuplicateActiveClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(i.slideDuplicateActiveClass));var l=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=n.eq(0),l.addClass(i.slideNextClass));var u=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===u.length&&(u=n.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function te(e){var t,n=this,i=n.rtlTranslate?n.translate:-n.translate,r=n.slidesGrid,a=n.snapGrid,s=n.params,o=n.activeIndex,l=n.realIndex,u=n.snapIndex,c=e;if("undefined"===typeof c){for(var d=0;d<r.length;d+=1)"undefined"!==typeof r[d+1]?i>=r[d]&&i<r[d+1]-(r[d+1]-r[d])/2?c=d:i>=r[d]&&i<r[d+1]&&(c=d+1):i>=r[d]&&(c=d);s.normalizeSlideIndex&&(c<0||"undefined"===typeof c)&&(c=0)}if(t=a.indexOf(i)>=0?a.indexOf(i):Math.floor(c/s.slidesPerGroup),t>=a.length&&(t=a.length-1),c!==o){var h=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);V.extend(n,{snapIndex:t,realIndex:h,previousIndex:o,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==h&&n.emit("realIndexChange"),(n.initialized||n.runCallbacksOnInit)&&n.emit("slideChange")}else t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"))}function ne(e){var t=this,n=t.params,r=i(e.target).closest("."+n.slideClass)[0],a=!1;if(r)for(var s=0;s<t.slides.length;s+=1)t.slides[s]===r&&(a=!0);if(!r||!a)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(i(r).attr("data-swiper-slide-index"),10):t.clickedIndex=i(r).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}W.prototype.on=function(e,t,n){var i=this;if("function"!==typeof t)return i;var r=n?"unshift":"push";return e.split(" ").forEach((function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)})),i},W.prototype.once=function(e,t,n){var i=this;if("function"!==typeof t)return i;function r(){var n=[],a=arguments.length;while(a--)n[a]=arguments[a];t.apply(i,n),i.off(e,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=t,i.on(e,r,n)},W.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){"undefined"===typeof t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach((function(i,r){(i===t||i.f7proxy&&i.f7proxy===t)&&n.eventsListeners[e].splice(r,1)}))})),n):n},W.prototype.emit=function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n,i,r,a=this;if(!a.eventsListeners)return a;"string"===typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),r=a):(n=e[0].events,i=e[0].data,r=e[0].context||a);var s=Array.isArray(n)?n:n.split(" ");return s.forEach((function(e){if(a.eventsListeners&&a.eventsListeners[e]){var t=[];a.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(r,i)}))}})),a},W.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var i=t.modules[n];i.params&&V.extend(e,i.params)}))},W.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var i=t.modules[n],r=e[n]||{};i.instance&&Object.keys(i.instance).forEach((function(e){var n=i.instance[e];t[e]="function"===typeof n?n.bind(t):n})),i.on&&t.on&&Object.keys(i.on).forEach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(r)}))},G.components.set=function(e){var t=this;t.use&&t.use(e)},W.installModule=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this;i.prototype.modules||(i.prototype.modules={});var r=e.name||Object.keys(i.prototype.modules).length+"_"+V.now();return i.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach((function(t){i.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){i[t]=e.static[t]})),e.install&&e.install.apply(i,t),i},W.use=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this;return Array.isArray(e)?(e.forEach((function(e){return i.installModule(e)})),i):i.installModule.apply(i,[e].concat(t))},Object.defineProperties(W,G);var ie={updateSize:X,updateSlides:Y,updateAutoHeight:K,updateSlidesOffset:Q,updateSlidesProgress:J,updateProgress:Z,updateSlidesClasses:ee,updateActiveIndex:te,updateClickedSlide:ne};function re(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,n=t.params,i=t.rtlTranslate,r=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return i?-r:r;var s=V.getTranslate(a[0],e);return i&&(s=-s),s||0}function ae(e,t){var n,i=this,r=i.rtlTranslate,a=i.params,s=i.$wrapperEl,o=i.progress,l=0,u=0,c=0;i.isHorizontal()?l=r?-e:e:u=e,a.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),a.virtualTranslate||(z.transforms3d?s.transform("translate3d("+l+"px, "+u+"px, "+c+"px)"):s.transform("translate("+l+"px, "+u+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:u;var d=i.maxTranslate()-i.minTranslate();n=0===d?0:(e-i.minTranslate())/d,n!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function se(){return-this.snapGrid[0]}function oe(){return-this.snapGrid[this.snapGrid.length-1]}var le={getTranslate:re,setTranslate:ae,minTranslate:se,maxTranslate:oe};function ue(e,t){var n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function ce(e,t){void 0===e&&(e=!0);var n=this,i=n.activeIndex,r=n.params,a=n.previousIndex;r.autoHeight&&n.updateAutoHeight();var s=t;if(s||(s=i>a?"next":i<a?"prev":"reset"),n.emit("transitionStart"),e&&i!==a){if("reset"===s)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===s?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function de(e,t){void 0===e&&(e=!0);var n=this,i=n.activeIndex,r=n.previousIndex;n.animating=!1,n.setTransition(0);var a=t;if(a||(a=i>r?"next":i<r?"prev":"reset"),n.emit("transitionEnd"),e&&i!==r){if("reset"===a)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===a?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var he={setTransition:ue,transitionStart:ce,transitionEnd:de};function pe(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var r=this,a=e;a<0&&(a=0);var s=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,c=r.activeIndex,d=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var h=Math.floor(a/s.slidesPerGroup);h>=o.length&&(h=o.length-1),(c||s.initialSlide||0)===(u||0)&&n&&r.emit("beforeSlideChangeStart");var p,f=-o[h];if(r.updateProgress(f),s.normalizeSlideIndex)for(var m=0;m<l.length;m+=1)-Math.floor(100*f)>=Math.floor(100*l[m])&&(a=m);if(r.initialized&&a!==c){if(!r.allowSlideNext&&f<r.translate&&f<r.minTranslate())return!1;if(!r.allowSlidePrev&&f>r.translate&&f>r.maxTranslate()&&(c||0)!==a)return!1}return p=a>c?"next":a<c?"prev":"reset",d&&-f===r.translate||!d&&f===r.translate?(r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(f),"reset"!==p&&(r.transitionStart(n,p),r.transitionEnd(n,p)),!1):(0!==t&&z.transition?(r.setTransition(t),r.setTranslate(f),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,p),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,p))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(f),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,p),r.transitionEnd(n,p)),!0)}function fe(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var r=this,a=e;return r.params.loop&&(a+=r.loopedSlides),r.slideTo(a,t,n,i)}function me(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,r=i.params,a=i.animating;return r.loop?!a&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+r.slidesPerGroup,e,t,n)):i.slideTo(i.activeIndex+r.slidesPerGroup,e,t,n)}function ge(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,r=i.params,a=i.animating,s=i.snapGrid,o=i.slidesGrid,l=i.rtlTranslate;if(r.loop){if(a)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}var u=l?i.translate:-i.translate;function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=c(u),p=s.map((function(e){return c(e)})),f=(o.map((function(e){return c(e)})),s[p.indexOf(h)],s[p.indexOf(h)-1]);return"undefined"!==typeof f&&(d=o.indexOf(f),d<0&&(d=i.activeIndex-1)),i.slideTo(d,e,t,n)}function ve(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this;return i.slideTo(i.activeIndex,e,t,n)}function ye(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,r=i.activeIndex,a=Math.floor(r/i.params.slidesPerGroup);if(a<i.snapGrid.length-1){var s=i.rtlTranslate?i.translate:-i.translate,o=i.snapGrid[a],l=i.snapGrid[a+1];s-o>(l-o)/2&&(r=i.params.slidesPerGroup)}return i.slideTo(r,e,t,n)}function be(){var e,t=this,n=t.params,r=t.$wrapperEl,a="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,s=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(i(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?s<t.loopedSlides-a/2||s>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),V.nextTick((function(){t.slideTo(s)}))):t.slideTo(s):s>t.slides.length-a?(t.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),V.nextTick((function(){t.slideTo(s)}))):t.slideTo(s)}else t.slideTo(s)}var _e={slideTo:pe,slideToLoop:fe,slideNext:me,slidePrev:ge,slideReset:ve,slideToClosest:ye,slideToClickedSlide:be};function Te(){var t=this,n=t.params,r=t.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var a=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var s=n.slidesPerGroup-a.length%n.slidesPerGroup;if(s!==n.slidesPerGroup){for(var o=0;o<s;o+=1){var l=i(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(l)}a=r.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=a.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>a.length&&(t.loopedSlides=a.length);var u=[],c=[];a.each((function(e,n){var r=i(n);e<t.loopedSlides&&c.push(n),e<a.length&&e>=a.length-t.loopedSlides&&u.push(n),r.attr("data-swiper-slide-index",e)}));for(var d=0;d<c.length;d+=1)r.append(i(c[d].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var h=u.length-1;h>=0;h-=1)r.prepend(i(u[h].cloneNode(!0)).addClass(n.slideDuplicateClass))}function Se(){var e,t=this,n=t.params,i=t.activeIndex,r=t.slides,a=t.loopedSlides,s=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,u=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-l[i],d=c-t.getTranslate();if(i<a){e=r.length-3*a+i,e+=a;var h=t.slideTo(e,0,!1,!0);h&&0!==d&&t.setTranslate((u?-t.translate:t.translate)-d)}else if("auto"===n.slidesPerView&&i>=2*a||i>=r.length-a){e=-r.length+i+a,e+=a;var p=t.slideTo(e,0,!1,!0);p&&0!==d&&t.setTranslate((u?-t.translate:t.translate)-d)}t.allowSlidePrev=s,t.allowSlideNext=o}function we(){var e=this,t=e.$wrapperEl,n=e.params,i=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}var ke={loopCreate:Te,loopFix:Se,loopDestroy:we};function Ce(e){var t=this;if(!(z.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}}function Ee(){var e=this;z.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var xe={setGrabCursor:Ce,unsetGrabCursor:Ee};function Oe(e){var t=this,n=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),"object"===typeof e&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&n.append(e[r]);else n.append(e);i.loop&&t.loopCreate(),i.observer&&z.observer||t.update()}function Ae(e){var t=this,n=t.params,i=t.$wrapperEl,r=t.activeIndex;n.loop&&t.loopDestroy();var a=r+1;if("object"===typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&i.prepend(e[s]);a=r+e.length}else i.prepend(e);n.loop&&t.loopCreate(),n.observer&&z.observer||t.update(),t.slideTo(a,0,!1)}function Pe(e,t){var n=this,i=n.$wrapperEl,r=n.params,a=n.activeIndex,s=a;r.loop&&(s-=n.loopedSlides,n.loopDestroy(),n.slides=i.children("."+r.slideClass));var o=n.slides.length;if(e<=0)n.prependSlide(t);else if(e>=o)n.appendSlide(t);else{for(var l=s>e?s+1:s,u=[],c=o-1;c>=e;c-=1){var d=n.slides.eq(c);d.remove(),u.unshift(d)}if("object"===typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&i.append(t[h]);l=s>e?s+t.length:s}else i.append(t);for(var p=0;p<u.length;p+=1)i.append(u[p]);r.loop&&n.loopCreate(),r.observer&&z.observer||n.update(),r.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}}function Ie(e){var t=this,n=t.params,i=t.$wrapperEl,r=t.activeIndex,a=r;n.loop&&(a-=t.loopedSlides,t.loopDestroy(),t.slides=i.children("."+n.slideClass));var s,o=a;if("object"===typeof e&&"length"in e){for(var l=0;l<e.length;l+=1)s=e[l],t.slides[s]&&t.slides.eq(s).remove(),s<o&&(o-=1);o=Math.max(o,0)}else s=e,t.slides[s]&&t.slides.eq(s).remove(),s<o&&(o-=1),o=Math.max(o,0);n.loop&&t.loopCreate(),n.observer&&z.observer||t.update(),n.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function Le(){for(var e=this,t=[],n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var De={appendSlide:Oe,prependSlide:Ae,addSlide:Pe,removeSlide:Ie,removeAllSlides:Le},Me=function(){var n=t.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},r=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=n.match(/(Android);?[\s\/]+([\d.]+)?/),s=n.match(/(iPad).*OS\s([\d_]+)/),o=n.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(i.os="windows",i.osVersion=r[2],i.windows=!0),a&&!r&&(i.os="android",i.osVersion=a[2],i.android=!0,i.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(s||l||o)&&(i.os="ios",i.ios=!0),l&&!o&&(i.osVersion=l[2].replace(/_/g,"."),i.iphone=!0),s&&(i.osVersion=s[2].replace(/_/g,"."),i.ipad=!0),o&&(i.osVersion=o[3]?o[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&n.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(l||s||o)&&n.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var u=i.osVersion.split("."),c=e.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(o||l)&&(1*u[0]===7?1*u[1]>=1:1*u[0]>7)&&c&&c.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=t.devicePixelRatio||1,i}();function je(n){var r=this,a=r.touchEventsData,s=r.params,o=r.touches;if(!r.animating||!s.preventInteractionOnTransition){var l=n;if(l.originalEvent&&(l=l.originalEvent),a.isTouchEvent="touchstart"===l.type,(a.isTouchEvent||!("which"in l)||3!==l.which)&&!(!a.isTouchEvent&&"button"in l&&l.button>0)&&(!a.isTouched||!a.isMoved))if(s.noSwiping&&i(l.target).closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])r.allowClick=!0;else if(!s.swipeHandler||i(l).closest(s.swipeHandler)[0]){o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var u=o.currentX,c=o.currentY,d=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,h=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(!d||!(u<=h||u>=t.screen.width-h)){if(V.extend(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=u,o.startY=c,a.touchStartTime=V.now(),r.allowClick=!0,r.updateSize(),r.swipeDirection=void 0,s.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==l.type){var p=!0;i(l.target).is(a.formElements)&&(p=!1),e.activeElement&&i(e.activeElement).is(a.formElements)&&e.activeElement!==l.target&&e.activeElement.blur();var f=p&&r.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||f)&&l.preventDefault()}r.emit("touchStart",l)}}}}function Re(t){var n=this,r=n.touchEventsData,a=n.params,s=n.touches,o=n.rtlTranslate,l=t;if(l.originalEvent&&(l=l.originalEvent),r.isTouched){if(!r.isTouchEvent||"mousemove"!==l.type){var u="touchmove"===l.type?l.targetTouches[0].pageX:l.pageX,c="touchmove"===l.type?l.targetTouches[0].pageY:l.pageY;if(l.preventedByNestedSwiper)return s.startX=u,void(s.startY=c);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(V.extend(s,{startX:u,startY:c,currentX:u,currentY:c}),r.touchStartTime=V.now()));if(r.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(c<s.startY&&n.translate<=n.maxTranslate()||c>s.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<s.startX&&n.translate<=n.maxTranslate()||u>s.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&i(l.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){s.currentX=u,s.currentY=c;var d=s.currentX-s.startX,h=s.currentY-s.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(h,2))<n.params.threshold)){var p;if("undefined"===typeof r.isScrolling)n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:d*d+h*h>=25&&(p=180*Math.atan2(Math.abs(h),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?p>a.touchAngle:90-p>a.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",l),"undefined"===typeof r.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation(),r.isMoved||(a.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!a.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)),n.emit("sliderMove",l),r.isMoved=!0;var f=n.isHorizontal()?d:h;s.diff=f,f*=a.touchRatio,o&&(f=-f),n.swipeDirection=f>0?"prev":"next",r.currentTranslate=f+r.startTranslate;var m=!0,g=a.resistanceRatio;if(a.touchReleaseOnEdges&&(g=0),f>0&&r.currentTranslate>n.minTranslate()?(m=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+f,g))):f<0&&r.currentTranslate<n.maxTranslate()&&(m=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-f,g))),m&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),a.threshold>0){if(!(Math.abs(f)>a.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}a.followFinger&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&(0===r.velocities.length&&r.velocities.push({position:s[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:s[n.isHorizontal()?"currentX":"currentY"],time:V.now()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l)}function Ne(e){var t=this,n=t.touchEventsData,i=t.params,r=t.touches,a=t.rtlTranslate,s=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var c,d=V.now(),h=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),h<300&&d-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=V.nextTick((function(){t&&!t.destroyed&&t.emit("click",u)}),300)),h<300&&d-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",u))),n.lastClickTime=V.now(),V.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,c=i.followFinger?a?t.translate:-t.translate:-n.currentTranslate,i.freeMode){if(c<-t.minTranslate())return void t.slideTo(t.activeIndex);if(c>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),f=n.velocities.pop(),m=p.position-f.position,g=p.time-f.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(g>150||V.now()-p.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var v=1e3*i.freeModeMomentumRatio,y=t.velocity*v,b=t.translate+y;a&&(b=-b);var _,T,S=!1,w=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(b<t.maxTranslate())i.freeModeMomentumBounce?(b+t.maxTranslate()<-w&&(b=t.maxTranslate()-w),_=t.maxTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.maxTranslate(),i.loop&&i.centeredSlides&&(T=!0);else if(b>t.minTranslate())i.freeModeMomentumBounce?(b-t.minTranslate()>w&&(b=t.minTranslate()+w),_=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),i.loop&&i.centeredSlides&&(T=!0);else if(i.freeModeSticky){for(var k,C=0;C<l.length;C+=1)if(l[C]>-b){k=C;break}b=Math.abs(l[k]-b)<Math.abs(l[k-1]-b)||"next"===t.swipeDirection?l[k]:l[k-1],b=-b}if(T&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)v=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&S?(t.updateProgress(_),t.setTransition(v),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(_),s.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(b),t.setTransition(v),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();(!i.freeModeMomentum||h>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var E=0,x=t.slidesSizesGrid[0],O=0;O<o.length;O+=i.slidesPerGroup)"undefined"!==typeof o[O+i.slidesPerGroup]?c>=o[O]&&c<o[O+i.slidesPerGroup]&&(E=O,x=o[O+i.slidesPerGroup]-o[O]):c>=o[O]&&(E=O,x=o[o.length-1]-o[o.length-2]);var A=(c-o[E])/x;if(h>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(A>=i.longSwipesRatio?t.slideTo(E+i.slidesPerGroup):t.slideTo(E)),"prev"===t.swipeDirection&&(A>1-i.longSwipesRatio?t.slideTo(E+i.slidesPerGroup):t.slideTo(E))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(E+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(E)}}}function Be(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var i=e.allowSlideNext,r=e.allowSlidePrev,a=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function Ue(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Fe(){var t=this,n=t.params,i=t.touchEvents,r=t.el,a=t.wrapperEl;t.onTouchStart=je.bind(t),t.onTouchMove=Re.bind(t),t.onTouchEnd=Ne.bind(t),t.onClick=Ue.bind(t);var s="container"===n.touchEventsTarget?r:a,o=!!n.nested;if(z.touch||!z.pointerEvents&&!z.prefixedPointerEvents){if(z.touch){var l=!("touchstart"!==i.start||!z.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(i.start,t.onTouchStart,l),s.addEventListener(i.move,t.onTouchMove,z.passiveListener?{passive:!1,capture:o}:o),s.addEventListener(i.end,t.onTouchEnd,l)}(n.simulateTouch&&!Me.ios&&!Me.android||n.simulateTouch&&!z.touch&&Me.ios)&&(s.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,o),e.addEventListener("mouseup",t.onTouchEnd,!1))}else s.addEventListener(i.start,t.onTouchStart,!1),e.addEventListener(i.move,t.onTouchMove,o),e.addEventListener(i.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&s.addEventListener("click",t.onClick,!0),t.on(Me.ios||Me.android?"resize orientationchange observerUpdate":"resize observerUpdate",Be,!0)}function $e(){var t=this,n=t.params,i=t.touchEvents,r=t.el,a=t.wrapperEl,s="container"===n.touchEventsTarget?r:a,o=!!n.nested;if(z.touch||!z.pointerEvents&&!z.prefixedPointerEvents){if(z.touch){var l=!("onTouchStart"!==i.start||!z.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(i.start,t.onTouchStart,l),s.removeEventListener(i.move,t.onTouchMove,o),s.removeEventListener(i.end,t.onTouchEnd,l)}(n.simulateTouch&&!Me.ios&&!Me.android||n.simulateTouch&&!z.touch&&Me.ios)&&(s.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,o),e.removeEventListener("mouseup",t.onTouchEnd,!1))}else s.removeEventListener(i.start,t.onTouchStart,!1),e.removeEventListener(i.move,t.onTouchMove,o),e.removeEventListener(i.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&s.removeEventListener("click",t.onClick,!0),t.off(Me.ios||Me.android?"resize orientationchange observerUpdate":"resize observerUpdate",Be)}var He={attachEvents:Fe,detachEvents:$e};function Ve(){var e=this,t=e.activeIndex,n=e.initialized,i=e.loopedSlides;void 0===i&&(i=0);var r=e.params,a=r.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var s=e.getBreakpoint(a);if(s&&e.currentBreakpoint!==s){var o=s in a?a[s]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=o[e];"undefined"!==typeof t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var l=o||e.originalParams,u=l.direction&&l.direction!==r.direction,c=r.loop&&(l.slidesPerView!==r.slidesPerView||u);u&&n&&e.changeDirection(),V.extend(e.params,l),V.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,c&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}}}function ze(e){var n=this;if(e){var i=!1,r=[];Object.keys(e).forEach((function(e){r.push(e)})),r.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var a=0;a<r.length;a+=1){var s=r[a];n.params.breakpointsInverse?s<=t.innerWidth&&(i=s):s>=t.innerWidth&&!i&&(i=s)}return i||"max"}}var qe={setBreakpoint:Ve,getBreakpoint:ze};function We(){var e=this,t=e.classNames,n=e.params,i=e.rtl,r=e.$el,a=[];a.push("initialized"),a.push(n.direction),n.freeMode&&a.push("free-mode"),z.flexbox||a.push("no-flexbox"),n.autoHeight&&a.push("autoheight"),i&&a.push("rtl"),n.slidesPerColumn>1&&a.push("multirow"),Me.android&&a.push("android"),Me.ios&&a.push("ios"),(q.isIE||q.isEdge)&&(z.pointerEvents||z.prefixedPointerEvents)&&a.push("wp8-"+n.direction),a.forEach((function(e){t.push(n.containerModifierClass+e)})),r.addClass(t.join(" "))}function Ge(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" "))}var Xe={addClasses:We,removeClasses:Ge};function Ye(e,n,i,r,a,s){var o;function l(){s&&s()}e.complete&&a?l():n?(o=new t.Image,o.onload=l,o.onerror=l,r&&(o.sizes=r),i&&(o.srcset=i),n&&(o.src=n)):l()}function Ke(){var e=this;function t(){"undefined"!==typeof e&&null!==e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var i=e.imagesToLoad[n];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}var Qe={loadImage:Ye,preloadImages:Ke};function Je(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}var Ze={checkOverflow:Je},et={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},tt={update:ie,translate:le,transition:he,slide:_e,loop:ke,grabCursor:xe,manipulation:De,events:He,breakpoints:qe,checkOverflow:Ze,classes:Xe,images:Qe},nt={},it=function(e){function t(){var n,r,a,s=[],o=arguments.length;while(o--)s[o]=arguments[o];1===s.length&&s[0].constructor&&s[0].constructor===Object?a=s[0]:(n=s,r=n[0],a=n[1]),a||(a={}),a=V.extend({},a),r&&!a.el&&(a.el=r),e.call(this,a),Object.keys(tt).forEach((function(e){Object.keys(tt[e]).forEach((function(n){t.prototype[n]||(t.prototype[n]=tt[e][n])}))}));var l=this;"undefined"===typeof l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var n=Object.keys(t.params)[0],i=t.params[n];if("object"!==typeof i||null===i)return;if(!(n in a)||!("enabled"in i))return;!0===a[n]&&(a[n]={enabled:!0}),"object"!==typeof a[n]||"enabled"in a[n]||(a[n].enabled=!0),a[n]||(a[n]={enabled:!1})}}));var u=V.extend({},et);l.useModulesParams(u),l.params=V.extend({},u,nt,a),l.originalParams=V.extend({},l.params),l.passedParams=V.extend({},a),l.$=i;var c=i(l.params.el);if(r=c[0],r){if(c.length>1){var d=[];return c.each((function(e,n){var i=V.extend({},a,{el:n});d.push(new t(i))})),d}r.swiper=l,c.data("swiper",l);var h=c.children("."+l.params.wrapperClass);return V.extend(l,{$el:c,el:r,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:i(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===h.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return z.pointerEvents?t=["pointerdown","pointermove","pointerup"]:z.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:e[0],move:e[1],end:e[2]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},z.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:V.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,i=e.slidesGrid,r=e.size,a=e.activeIndex,s=1;if(t.centeredSlides){for(var o,l=n[a].swiperSlideSize,u=a+1;u<n.length;u+=1)n[u]&&!o&&(l+=n[u].swiperSlideSize,s+=1,l>r&&(o=!0));for(var c=a-1;c>=0;c-=1)n[c]&&!o&&(l+=n[c].swiperSlideSize,s+=1,l>r&&(o=!0))}else for(var d=a+1;d<n.length;d+=1)i[d]-i[a]<r&&(s+=1);return s},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t,n=e.snapGrid,i=e.params;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(t=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),t||r()),i.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+i+" wp8-"+i).addClass(""+n.params.containerModifierClass+e),(q.isIE||q.isEdge)&&(z.pointerEvents||z.prefixedPointerEvents)&&n.$el.addClass(n.params.containerModifierClass+"wp8-"+e),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,i=n.params,r=n.$el,a=n.$wrapperEl,s=n.slides;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),V.deleteProps(n)),n.destroyed=!0),null},t.extendDefaults=function(e){V.extend(nt,e)},n.extendedDefaults.get=function(){return nt},n.defaults.get=function(){return et},n.Class.get=function(){return e},n.$.get=function(){return i},Object.defineProperties(t,n),t}(W),rt={name:"device",proto:{device:Me},static:{device:Me}},at={name:"support",proto:{support:z},static:{support:z}},st={name:"browser",proto:{browser:q},static:{browser:q}},ot={name:"resize",create:function(){var e=this;V.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},lt={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,n){void 0===n&&(n={});var i=this,r=lt.func,a=new r((function(e){if(1!==e.length){var n=function(){i.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(n):t.setTimeout(n,0)}else i.emit("observerUpdate",e[0])}));a.observe(e,{attributes:"undefined"===typeof n.attributes||n.attributes,childList:"undefined"===typeof n.childList||n.childList,characterData:"undefined"===typeof n.characterData||n.characterData}),i.observer.observers.push(a)},init:function(){var e=this;if(z.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),n=0;n<t.length;n+=1)e.observer.attach(t[n]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach((function(e){e.disconnect()})),e.observer.observers=[]}},ut={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;V.extend(e,{observer:{init:lt.init.bind(e),attach:lt.attach.bind(e),destroy:lt.destroy.bind(e),observers:[]}})},on:{init:function(){var e=this;e.observer.init()},destroy:function(){var e=this;e.observer.destroy()}}},ct={update:function(e){var t=this,n=t.params,i=n.slidesPerView,r=n.slidesPerGroup,a=n.centeredSlides,s=t.params.virtual,o=s.addSlidesBefore,l=s.addSlidesAfter,u=t.virtual,c=u.from,d=u.to,h=u.slides,p=u.slidesGrid,f=u.renderSlide,m=u.offset;t.updateActiveIndex();var g,v,y,b=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(v=Math.floor(i/2)+r+o,y=Math.floor(i/2)+r+l):(v=i+(r-1)+o,y=r+l);var _=Math.max((b||0)-y,0),T=Math.min((b||0)+v,h.length-1),S=(t.slidesGrid[_]||0)-(t.slidesGrid[0]||0);function w(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(V.extend(t.virtual,{from:_,to:T,offset:S,slidesGrid:t.slidesGrid}),c===_&&d===T&&!e)return t.slidesGrid!==p&&S!==m&&t.slides.css(g,S+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:S,from:_,to:T,slides:function(){for(var e=[],t=_;t<=T;t+=1)e.push(h[t]);return e}()}),void w();var k=[],C=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var E=c;E<=d;E+=1)(E<_||E>T)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+E+'"]').remove();for(var x=0;x<h.length;x+=1)x>=_&&x<=T&&("undefined"===typeof d||e?C.push(x):(x>d&&C.push(x),x<c&&k.push(x)));C.forEach((function(e){t.$wrapperEl.append(f(h[e],e))})),k.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(h[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,S+"px"),w()},renderSlide:function(e,t){var n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[t])return n.virtual.cache[t];var a=r.renderSlide?i(r.renderSlide.call(n,e,t)):i('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),r.cache&&(n.virtual.cache[t]=a),a},appendSlide:function(e){var t=this;if("object"===typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,n=t.activeIndex,i=n+1,r=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);i=n+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var s=t.virtual.cache,o={};Object.keys(s).forEach((function(e){o[parseInt(e,10)+r]=s[e]})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(i,0)},removeSlide:function(e){var t=this;if("undefined"!==typeof e&&null!==e){var n=t.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},dt={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;V.extend(e,{virtual:{update:ct.update.bind(e),appendSlide:ct.appendSlide.bind(e),prependSlide:ct.prependSlide.bind(e),removeSlide:ct.removeSlide.bind(e),removeAllSlides:ct.removeAllSlides.bind(e),renderSlide:ct.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};V.extend(e.params,t),V.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},ht={handle:function(n){var i=this,r=i.rtlTranslate,a=n;a.originalEvent&&(a=a.originalEvent);var s=a.keyCode||a.charCode;if(!i.allowSlideNext&&(i.isHorizontal()&&39===s||i.isVertical()&&40===s||34===s))return!1;if(!i.allowSlidePrev&&(i.isHorizontal()&&37===s||i.isVertical()&&38===s||33===s))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)&&(!e.activeElement||!e.activeElement.nodeName||"input"!==e.activeElement.nodeName.toLowerCase()&&"textarea"!==e.activeElement.nodeName.toLowerCase())){if(i.params.keyboard.onlyInViewport&&(33===s||34===s||37===s||39===s||38===s||40===s)){var o=!1;if(i.$el.parents("."+i.params.slideClass).length>0&&0===i.$el.parents("."+i.params.slideActiveClass).length)return;var l=t.innerWidth,u=t.innerHeight,c=i.$el.offset();r&&(c.left-=i.$el[0].scrollLeft);for(var d=[[c.left,c.top],[c.left+i.width,c.top],[c.left,c.top+i.height],[c.left+i.width,c.top+i.height]],h=0;h<d.length;h+=1){var p=d[h];p[0]>=0&&p[0]<=l&&p[1]>=0&&p[1]<=u&&(o=!0)}if(!o)return}i.isHorizontal()?(33!==s&&34!==s&&37!==s&&39!==s||(a.preventDefault?a.preventDefault():a.returnValue=!1),(34!==s&&39!==s||r)&&(33!==s&&37!==s||!r)||i.slideNext(),(33!==s&&37!==s||r)&&(34!==s&&39!==s||!r)||i.slidePrev()):(33!==s&&34!==s&&38!==s&&40!==s||(a.preventDefault?a.preventDefault():a.returnValue=!1),34!==s&&40!==s||i.slideNext(),33!==s&&38!==s||i.slidePrev()),i.emit("keyPress",s)}},enable:function(){var t=this;t.keyboard.enabled||(i(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(i(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},pt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;V.extend(e,{keyboard:{enabled:!1,enable:ht.enable.bind(e),disable:ht.disable.bind(e),handle:ht.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function ft(){var t="onwheel",n=t in e;if(!n){var i=e.createElement("div");i.setAttribute(t,"return;"),n="function"===typeof i[t]}return!n&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(n=e.implementation.hasFeature("Events.wheel","3.0")),n}var mt={lastScrollTime:V.now(),event:function(){return t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":ft()?"wheel":"mousewheel"}(),normalize:function(e){var t=10,n=40,i=800,r=0,a=0,s=0,o=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(r=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(r=a,a=0),s=r*t,o=a*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||o)&&e.deltaMode&&(1===e.deltaMode?(s*=n,o*=n):(s*=i,o*=i)),s&&!r&&(r=s<1?-1:1),o&&!a&&(a=o<1?-1:1),{spinX:r,spinY:a,pixelX:s,pixelY:o}},handleMouseEnter:function(){var e=this;e.mouseEntered=!0},handleMouseLeave:function(){var e=this;e.mouseEntered=!1},handle:function(e){var n=e,i=this,r=i.params.mousewheel;if(!i.mouseEntered&&!r.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var a=0,s=i.rtlTranslate?-1:1,o=mt.normalize(n);if(r.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;a=o.pixelX*s}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;a=o.pixelY}else a=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*s:-o.pixelY;if(0===a)return!0;if(r.invert&&(a=-a),i.params.freeMode){i.params.loop&&i.loopFix();var l=i.getTranslate()+a*r.sensitivity,u=i.isBeginning,c=i.isEnd;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),i.setTransition(0),i.setTranslate(l),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!u&&i.isBeginning||!c&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=V.nextTick((function(){i.slideToClosest()}),300)),i.emit("scroll",n),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),l===i.minTranslate()||l===i.maxTranslate())return!0}else{if(V.now()-i.mousewheel.lastScrollTime>60)if(a<0)if(i.isEnd&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",n);else if(i.isBeginning&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",n);i.mousewheel.lastScrollTime=(new t.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){var e=this;if(!mt.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=i(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(mt.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!mt.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=i(e.params.mousewheel.eventsTarged)),t.off(mt.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},gt={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;V.extend(e,{mousewheel:{enabled:!1,enable:mt.enable.bind(e),disable:mt.disable.bind(e),handle:mt.handle.bind(e),handleMouseEnter:mt.handleMouseEnter.bind(e),handleMouseLeave:mt.handleMouseLeave.bind(e),lastScrollTime:V.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},vt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,i=n.$nextEl,r=n.$prevEl;r&&r.length>0&&(e.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=i(r.nextEl),n.params.uniqueNavElements&&"string"===typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=i(r.prevEl),n.params.uniqueNavElements&&"string"===typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),V.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,i=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click",e.navigation.onPrevClick),i.removeClass(e.params.navigation.disabledClass))}},yt={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;V.extend(e,{navigation:{init:vt.init.bind(e),update:vt.update.bind(e),destroy:vt.destroy.bind(e),onNextClick:vt.onNextClick.bind(e),onPrevClick:vt.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){var e=this;e.navigation.update()},fromEdge:function(){var e=this;e.navigation.update()},destroy:function(){var e=this;e.navigation.destroy()},click:function(e){var t,n=this,r=n.navigation,a=r.$nextEl,s=r.$prevEl;!n.params.navigation.hideOnClick||i(e.target).is(s)||i(e.target).is(a)||(a?t=a.hasClass(n.params.navigation.hiddenClass):s&&(t=s.hasClass(n.params.navigation.hiddenClass)),!0===t?n.emit("navigationShow",n):n.emit("navigationHide",n),a&&a.toggleClass(n.params.navigation.hiddenClass),s&&s.toggleClass(n.params.navigation.hiddenClass))}}},bt={update:function(){var e=this,t=e.rtl,n=e.params.pagination;if(n.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var r,a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el,o=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(r=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),r>a-1-2*e.loopedSlides&&(r-=a-2*e.loopedSlides),r>o-1&&(r-=o),r<0&&"bullets"!==e.params.paginationType&&(r=o+r)):r="undefined"!==typeof e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var l,u,c,d=e.pagination.bullets;if(n.dynamicBullets&&(e.pagination.bulletSize=d.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=r-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=r-e.pagination.dynamicBulletIndex,u=l+(Math.min(d.length,n.dynamicMainBullets)-1),c=(u+l)/2),d.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),s.length>1)d.each((function(e,t){var a=i(t),s=a.index();s===r&&a.addClass(n.bulletActiveClass),n.dynamicBullets&&(s>=l&&s<=u&&a.addClass(n.bulletActiveClass+"-main"),s===l&&a.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),s===u&&a.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else{var h=d.eq(r);if(h.addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=d.eq(l),f=d.eq(u),m=l;m<=u;m+=1)d.eq(m).addClass(n.bulletActiveClass+"-main");p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),f.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var g=Math.min(d.length,n.dynamicMainBullets+4),v=(e.pagination.bulletSize*g-e.pagination.bulletSize)/2-c*e.pagination.bulletSize,y=t?"right":"left";d.css(e.isHorizontal()?y:"top",v+"px")}}if("fraction"===n.type&&(s.find("."+n.currentClass).text(n.formatFractionCurrent(r+1)),s.find("."+n.totalClass).text(n.formatFractionTotal(o))),"progressbar"===n.type){var b;b=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var _=(r+1)/o,T=1,S=1;"horizontal"===b?T=_:S=_,s.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+S+")").transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(e,r+1,o)),e.emit("paginationRender",e,s[0])):e.emit("paginationUpdate",e,s[0]),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,r="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<a;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";i.html(r),e.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',i.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',i.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=i(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"===typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,(function(t){t.preventDefault();var n=i(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),V.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click","."+t.bulletClass)}}},_t={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;V.extend(e,{pagination:{init:bt.init.bind(e),render:bt.render.bind(e),update:bt.update.bind(e),destroy:bt.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||"undefined"===typeof e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){var e=this;e.pagination.destroy()},click:function(e){var t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!i(e.target).hasClass(t.params.pagination.bulletClass)){var n=t.pagination.$el.hasClass(t.params.pagination.hiddenClass);!0===n?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},Tt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,i=e.progress,r=t.dragSize,a=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,u=r,c=(a-r)*i;n?(c=-c,c>0?(u=r-c,c=0):-c+r>a&&(u=a+c)):c<0?(u=r+c,c=0):c+r>a&&(u=a-c),e.isHorizontal()?(z.transforms3d?s.transform("translate3d("+c+"px, 0, 0)"):s.transform("translateX("+c+"px)"),s[0].style.width=u+"px"):(z.transforms3d?s.transform("translate3d(0px, "+c+"px, 0)"):s.transform("translateY("+c+"px)"),s[0].style.height=u+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=t.$dragEl,i=t.$el;n[0].style.width="",n[0].style.height="";var r,a=e.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,s=e.size/e.virtualSize,o=s*(a/e.size);r="auto"===e.params.scrollbar.dragSize?a*s:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=r+"px":n[0].style.height=r+"px",i[0].style.display=s>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),V.extend(t,{trackSize:a,divider:s,moveDivider:o,dragSize:r}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){var t=this;return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,n=this,i=n.scrollbar,r=n.rtlTranslate,a=i.$el,s=i.dragSize,o=i.trackSize,l=i.dragStartPos;t=(i.getPointerPosition(e)-a.offset()[n.isHorizontal()?"left":"top"]-(null!==l?l:s/2))/(o-s),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var u=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*t;n.updateProgress(u),n.setTranslate(u),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,i=t.scrollbar,r=t.$wrapperEl,a=i.$el,s=i.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?i.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),i.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),n.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,i=t.$wrapperEl,r=n.$el,a=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),i.transition(0),r.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,i=t.scrollbar,r=i.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=V.nextTick((function(){r.css("opacity",0),r.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,i=t.touchEventsTouch,r=t.touchEventsDesktop,a=t.params,s=n.$el,o=s[0],l=!(!z.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},u=!(!z.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};z.touch?(o.addEventListener(i.start,t.scrollbar.onDragStart,l),o.addEventListener(i.move,t.scrollbar.onDragMove,l),o.addEventListener(i.end,t.scrollbar.onDragEnd,u)):(o.addEventListener(r.start,t.scrollbar.onDragStart,l),e.addEventListener(r.move,t.scrollbar.onDragMove,l),e.addEventListener(r.end,t.scrollbar.onDragEnd,u))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,i=t.touchEventsTouch,r=t.touchEventsDesktop,a=t.params,s=n.$el,o=s[0],l=!(!z.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},u=!(!z.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};z.touch?(o.removeEventListener(i.start,t.scrollbar.onDragStart,l),o.removeEventListener(i.move,t.scrollbar.onDragMove,l),o.removeEventListener(i.end,t.scrollbar.onDragEnd,u)):(o.removeEventListener(r.start,t.scrollbar.onDragStart,l),e.removeEventListener(r.move,t.scrollbar.onDragMove,l),e.removeEventListener(r.end,t.scrollbar.onDragEnd,u))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.$el,r=e.params.scrollbar,a=i(r.el);e.params.uniqueNavElements&&"string"===typeof r.el&&a.length>1&&1===n.find(r.el).length&&(a=n.find(r.el));var s=a.find("."+e.params.scrollbar.dragClass);0===s.length&&(s=i('<div class="'+e.params.scrollbar.dragClass+'"></div>'),a.append(s)),V.extend(t,{$el:a,el:a[0],$dragEl:s,dragEl:s[0]}),r.draggable&&t.enableDraggable()}},destroy:function(){var e=this;e.scrollbar.disableDraggable()}},St={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;V.extend(e,{scrollbar:{init:Tt.init.bind(e),destroy:Tt.destroy.bind(e),updateSize:Tt.updateSize.bind(e),setTranslate:Tt.setTranslate.bind(e),setTransition:Tt.setTransition.bind(e),enableDraggable:Tt.enableDraggable.bind(e),disableDraggable:Tt.disableDraggable.bind(e),setDragPosition:Tt.setDragPosition.bind(e),getPointerPosition:Tt.getPointerPosition.bind(e),onDragStart:Tt.onDragStart.bind(e),onDragMove:Tt.onDragMove.bind(e),onDragEnd:Tt.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){var e=this;e.scrollbar.updateSize()},resize:function(){var e=this;e.scrollbar.updateSize()},observerUpdate:function(){var e=this;e.scrollbar.updateSize()},setTranslate:function(){var e=this;e.scrollbar.setTranslate()},setTransition:function(e){var t=this;t.scrollbar.setTransition(e)},destroy:function(){var e=this;e.scrollbar.destroy()}}},wt={setTransform:function(e,t){var n=this,r=n.rtl,a=i(e),s=r?-1:1,o=a.attr("data-swiper-parallax")||"0",l=a.attr("data-swiper-parallax-x"),u=a.attr("data-swiper-parallax-y"),c=a.attr("data-swiper-parallax-scale"),d=a.attr("data-swiper-parallax-opacity");if(l||u?(l=l||"0",u=u||"0"):n.isHorizontal()?(l=o,u="0"):(u=o,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*t*s+"%":l*t*s+"px",u=u.indexOf("%")>=0?parseInt(u,10)*t+"%":u*t+"px","undefined"!==typeof d&&null!==d){var h=d-(d-1)*(1-Math.abs(t));a[0].style.opacity=h}if("undefined"===typeof c||null===c)a.transform("translate3d("+l+", "+u+", 0px)");else{var p=c-(c-1)*(1-Math.abs(t));a.transform("translate3d("+l+", "+u+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,r=e.progress,a=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,r)})),n.each((function(t,n){var s=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(s+=Math.ceil(t/2)-r*(a.length-1)),s=Math.min(Math.max(s,-1),1),i(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){e.parallax.setTransform(n,s)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);var t=this,n=t.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,n){var r=i(n),a=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),r.transition(a)}))}},kt={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;V.extend(e,{parallax:{setTransform:wt.setTransform.bind(e),setTranslate:wt.setTranslate.bind(e),setTransition:wt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}},Ct={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY,a=Math.sqrt(Math.pow(i-t,2)+Math.pow(r-n,2));return a},onGestureStart:function(e){var t=this,n=t.params.zoom,r=t.zoom,a=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!z.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;r.fakeGestureTouched=!0,a.scaleStart=Ct.getDistanceBetweenTouches(e)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=i(e.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=t.slides.eq(t.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+n.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),t.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this,n=t.params.zoom,i=t.zoom,r=i.gesture;if(!z.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,r.scaleMove=Ct.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(z.gestures?i.scale=e.scale*i.currentScale:i.scale=r.scaleMove/r.scaleStart*i.currentScale,i.scale>r.maxRatio&&(i.scale=r.maxRatio-1+Math.pow(i.scale-r.maxRatio+1,.5)),i.scale<n.minRatio&&(i.scale=n.minRatio+1-Math.pow(n.minRatio-i.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this,n=t.params.zoom,i=t.zoom,r=i.gesture;if(!z.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Me.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,r.maxRatio),n.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,n=t.zoom,i=n.gesture,r=n.image;i.$imageEl&&0!==i.$imageEl.length&&(r.isTouched||(Me.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,i=n.gesture,r=n.image,a=n.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(t.allowClick=!1,r.isTouched&&i.$slideEl)){r.isMoved||(r.width=i.$imageEl[0].offsetWidth,r.height=i.$imageEl[0].offsetHeight,r.startX=V.getTranslate(i.$imageWrapEl[0],"x")||0,r.startY=V.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*n.scale,o=r.height*n.scale;if(!(s<i.slideWidth&&o<i.slideHeight)){if(r.minX=Math.min(i.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(i.slideHeight/2-o/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=r.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=r.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(r.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(r.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(r.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(r.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=r.touchesCurrent.x,a.prevPositionY=r.touchesCurrent.y,a.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,n=t.gesture,i=t.image,r=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,s=300,o=r.x*a,l=i.currentX+o,u=r.y*s,c=i.currentY+u;0!==r.x&&(a=Math.abs((l-i.currentX)/r.x)),0!==r.y&&(s=Math.abs((c-i.currentY)/r.y));var d=Math.max(a,s);i.currentX=l,i.currentY=c;var h=i.width*t.scale,p=i.height*t.scale;i.minX=Math.min(n.slideWidth/2-h/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-p/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),n.$imageWrapEl.transition(d).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(e){var t=this,n=t.zoom;n.scale&&1!==n.scale?n.out():n.in(e)},in:function(e){var t,n,r,a,s,o,l,u,c,d,h,p,f,m,g,v,y,b,_=this,T=_.zoom,S=_.params.zoom,w=T.gesture,k=T.image;(w.$slideEl||(w.$slideEl=_.clickedSlide?i(_.clickedSlide):_.slides.eq(_.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas"),w.$imageWrapEl=w.$imageEl.parent("."+S.containerClass)),w.$imageEl&&0!==w.$imageEl.length)&&(w.$slideEl.addClass(""+S.zoomedSlideClass),"undefined"===typeof k.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=k.touchesStart.x,n=k.touchesStart.y),T.scale=w.$imageWrapEl.attr("data-swiper-zoom")||S.maxRatio,T.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||S.maxRatio,e?(y=w.$slideEl[0].offsetWidth,b=w.$slideEl[0].offsetHeight,r=w.$slideEl.offset().left,a=w.$slideEl.offset().top,s=r+y/2-t,o=a+b/2-n,c=w.$imageEl[0].offsetWidth,d=w.$imageEl[0].offsetHeight,h=c*T.scale,p=d*T.scale,f=Math.min(y/2-h/2,0),m=Math.min(b/2-p/2,0),g=-f,v=-m,l=s*T.scale,u=o*T.scale,l<f&&(l=f),l>g&&(l=g),u<m&&(u=m),u>v&&(u=v)):(l=0,u=0),w.$imageWrapEl.transition(300).transform("translate3d("+l+"px, "+u+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+T.scale+")"))},out:function(){var e=this,t=e.zoom,n=e.params.zoom,r=t.gesture;r.$slideEl||(r.$slideEl=e.clickedSlide?i(e.clickedSlide):e.slides.eq(e.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(t.scale=1,t.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(""+n.zoomedSlideClass),r.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!z.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};z.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var n=!("touchstart"!==e.touchEvents.start||!z.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};z.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Et={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=Ct[n].bind(e)})),V.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,i,r)}n=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){var e=this;e.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},xt={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.lazy;if("undefined"!==typeof e&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled,s=a?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),o=s.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!s.hasClass(r.elementClass)||s.hasClass(r.loadedClass)||s.hasClass(r.loadingClass)||(o=o.add(s[0])),0!==o.length&&o.each((function(e,a){var o=i(a);o.addClass(r.loadingClass);var l=o.attr("data-background"),u=o.attr("data-src"),c=o.attr("data-srcset"),d=o.attr("data-sizes");n.loadImage(o[0],u||l,c,d,!1,(function(){if("undefined"!==typeof n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),d&&(o.attr("sizes",d),o.removeAttr("data-sizes")),u&&(o.attr("src",u),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),s.find("."+r.preloaderClass).remove(),n.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(i.index(),!1)}else{var a=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(a.index(),!1)}}n.emit("lazyImageReady",s[0],o[0])}})),n.emit("lazyImageLoad",s[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides,a=e.activeIndex,s=e.virtual&&n.virtual.enabled,o=n.lazy,l=n.slidesPerView;function u(e){if(s){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(r[e])return!0;return!1}function c(e){return s?i(e).attr("data-swiper-slide-index"):i(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each((function(t,n){var r=s?i(n).attr("data-swiper-slide-index"):i(n).index();e.lazy.loadInSlide(r)}));else if(l>1)for(var d=a;d<a+l;d+=1)u(d)&&e.lazy.loadInSlide(d);else e.lazy.loadInSlide(a);if(o.loadPrevNext)if(l>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var h=o.loadPrevNextAmount,p=l,f=Math.min(a+p+Math.max(h,p),r.length),m=Math.max(a-Math.max(p,h),0),g=a+l;g<f;g+=1)u(g)&&e.lazy.loadInSlide(g);for(var v=m;v<a;v+=1)u(v)&&e.lazy.loadInSlide(v)}else{var y=t.children("."+n.slideNextClass);y.length>0&&e.lazy.loadInSlide(c(y));var b=t.children("."+n.slidePrevClass);b.length>0&&e.lazy.loadInSlide(c(b))}}},Ot={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;V.extend(e,{lazy:{initialImageLoaded:!1,load:xt.load.bind(e),loadInSlide:xt.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},At={LinearSpline:function(e,t){var n,i,r=function(){var e,t,n;return function(i,r){t=-1,e=i.length;while(e-t>1)n=e+t>>1,i[n]<=r?t=n:e=n;return e}}();return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=r(this.x,e),n=i-1,(e-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new At.LinearSpline(t.slidesGrid,e.slidesGrid):new At.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,i,r=this,a=r.controller.control;function s(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),i=-r.controller.spline.interpolate(-t)),i&&"container"!==r.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),i=(t-r.minTranslate())*n+e.minTranslate()),r.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var o=0;o<a.length;o+=1)a[o]!==t&&a[o]instanceof it&&s(a[o]);else a instanceof it&&t!==a&&s(a)},setTransition:function(e,t){var n,i=this,r=i.controller.control;function a(t){t.setTransition(e,i),0!==e&&(t.transitionStart(),t.params.autoHeight&&V.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){r&&(t.params.loop&&"slide"===i.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(r))for(n=0;n<r.length;n+=1)r[n]!==t&&r[n]instanceof it&&a(r[n]);else r instanceof it&&t!==r&&a(r)}},Pt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;V.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:At.getInterpolateFunction.bind(e),setTranslate:At.setTranslate.bind(e),setTransition:At.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition:function(e,t){var n=this;n.controller.control&&n.controller.setTransition(e,t)}}},It={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,n=t.params.a11y;if(13===e.keyCode){var r=i(e.target);t.navigation&&t.navigation.$nextEl&&r.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&r.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&r.is("."+t.params.pagination.bulletClass)&&r[0].click()}},notify:function(e){var t=this,n=t.a11y.liveRegion;0!==n.length&&(n.html(""),n.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(e.isBeginning?e.a11y.disableEl(i):e.a11y.enableEl(i)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,r){var a=i(r);e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.paginationBulletMessage.replace(/{{index}}/,a.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,n,i=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,i.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(e=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(t=n.navigation.$prevEl),e&&e.off("keydown",n.a11y.onEnterKey),t&&t.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},Lt={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;V.extend(e,{a11y:{liveRegion:i('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(It).forEach((function(t){e.a11y[t]=It[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},Dt={init:function(){var e=this;if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var n=e.history;n.initialized=!0,n.paths=Dt.getPathValues(),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||t.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Dt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),n=e.length,i=e[n-2],r=e[n-1];return{key:i,value:r}},setHistory:function(e,n){var i=this;if(i.history.initialized&&i.params.history.enabled){var r=i.slides.eq(n),a=Dt.slugify(r.attr("data-history"));t.location.pathname.includes(e)||(a=e+"/"+a);var s=t.history.state;s&&s.value===a||(i.params.history.replaceState?t.history.replaceState({value:a},null,a):t.history.pushState({value:a},null,a))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var i=this;if(t)for(var r=0,a=i.slides.length;r<a;r+=1){var s=i.slides.eq(r),o=Dt.slugify(s.attr("data-history"));if(o===t&&!s.hasClass(i.params.slideDuplicateClass)){var l=s.index();i.slideTo(l,e,n)}}else i.slideTo(0,e,n)}},Mt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;V.extend(e,{history:{init:Dt.init.bind(e),setHistory:Dt.setHistory.bind(e),setHistoryPopState:Dt.setHistoryPopState.bind(e),scrollToSlide:Dt.scrollToSlide.bind(e),destroy:Dt.destroy.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},jt={onHashCange:function(){var t=this,n=e.location.hash.replace("#",""),i=t.slides.eq(t.activeIndex).attr("data-hash");if(n!==i){var r=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+n+'"]').index();if("undefined"===typeof r)return;t.slideTo(r)}},setHash:function(){var n=this;if(n.hashNavigation.initialized&&n.params.hashNavigation.enabled)if(n.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||!1);else{var i=n.slides.eq(n.activeIndex),r=i.attr("data-hash")||i.attr("data-history");e.location.hash=r||""}},init:function(){var n=this;if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){n.hashNavigation.initialized=!0;var r=e.location.hash.replace("#","");if(r)for(var a=0,s=0,o=n.slides.length;s<o;s+=1){var l=n.slides.eq(s),u=l.attr("data-hash")||l.attr("data-history");if(u===r&&!l.hasClass(n.params.slideDuplicateClass)){var c=l.index();n.slideTo(c,a,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&i(t).on("hashchange",n.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&i(t).off("hashchange",e.hashNavigation.onHashCange)}},Rt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;V.extend(e,{hashNavigation:{initialized:!1,init:jt.init.bind(e),destroy:jt.destroy.bind(e),setHash:jt.setHash.bind(e),onHashCange:jt.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},Nt={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=V.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),n)},start:function(){var e=this;return"undefined"===typeof e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&("undefined"!==typeof e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Bt={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;V.extend(e,{autoplay:{running:!1,paused:!1,run:Nt.run.bind(e),start:Nt.start.bind(e),stop:Nt.stop.bind(e),pause:Nt.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart:function(e,t){var n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},Ut={setTranslate:function(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1){var i=e.slides.eq(n),r=i[0].swiperSlideOffset,a=-r;e.params.virtualTranslate||(a-=e.translate);var s=0;e.isHorizontal()||(s=a,a=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+a+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,i=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;n.transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},Ft={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;V.extend(e,{fadeEffect:{setTranslate:Ut.setTranslate.bind(e),setTransition:Ut.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},$t={setTranslate:function(){var e,t=this,n=t.$el,r=t.$wrapperEl,a=t.slides,s=t.width,o=t.height,l=t.rtlTranslate,u=t.size,c=t.params.cubeEffect,d=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled,p=0;c.shadow&&(d?(e=r.find(".swiper-cube-shadow"),0===e.length&&(e=i('<div class="swiper-cube-shadow"></div>'),r.append(e)),e.css({height:s+"px"})):(e=n.find(".swiper-cube-shadow"),0===e.length&&(e=i('<div class="swiper-cube-shadow"></div>'),n.append(e))));for(var f=0;f<a.length;f+=1){var m=a.eq(f),g=f;h&&(g=parseInt(m.attr("data-swiper-slide-index"),10));var v=90*g,y=Math.floor(v/360);l&&(v=-v,y=Math.floor(-v/360));var b=Math.max(Math.min(m[0].progress,1),-1),_=0,T=0,S=0;g%4===0?(_=4*-y*u,S=0):(g-1)%4===0?(_=0,S=4*-y*u):(g-2)%4===0?(_=u+4*y*u,S=u):(g-3)%4===0&&(_=-u,S=3*u+4*u*y),l&&(_=-_),d||(T=_,_=0);var w="rotateX("+(d?0:-v)+"deg) rotateY("+(d?v:0)+"deg) translate3d("+_+"px, "+T+"px, "+S+"px)";if(b<=1&&b>-1&&(p=90*g+90*b,l&&(p=90*-g-90*b)),m.transform(w),c.slideShadows){var k=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),C=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===k.length&&(k=i('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),m.append(k)),0===C.length&&(C=i('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),m.append(C)),k.length&&(k[0].style.opacity=Math.max(-b,0)),C.length&&(C[0].style.opacity=Math.max(b,0))}}if(r.css({"-webkit-transform-origin":"50% 50% -"+u/2+"px","-moz-transform-origin":"50% 50% -"+u/2+"px","-ms-transform-origin":"50% 50% -"+u/2+"px","transform-origin":"50% 50% -"+u/2+"px"}),c.shadow)if(d)e.transform("translate3d(0px, "+(s/2+c.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var E=Math.abs(p)-90*Math.floor(Math.abs(p)/90),x=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),O=c.shadowScale,A=c.shadowScale/x,P=c.shadowOffset;e.transform("scale3d("+O+", 1, "+A+") translate3d(0px, "+(o/2+P)+"px, "+-o/2/A+"px) rotateX(-90deg)")}var I=q.isSafari||q.isUiWebView?-u/2:0;r.transform("translate3d(0px,0,"+I+"px) rotateX("+(t.isHorizontal()?0:p)+"deg) rotateY("+(t.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this,n=t.$el,i=t.slides;i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)}},Ht={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;V.extend(e,{cubeEffect:{setTranslate:$t.setTranslate.bind(e),setTransition:$t.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},Vt={setTranslate:function(){for(var e=this,t=e.slides,n=e.rtlTranslate,r=0;r<t.length;r+=1){var a=t.eq(r),s=a[0].progress;e.params.flipEffect.limitRotation&&(s=Math.max(Math.min(a[0].progress,1),-1));var o=a[0].swiperSlideOffset,l=-180*s,u=l,c=0,d=-o,h=0;if(e.isHorizontal()?n&&(u=-u):(h=d,d=0,c=-u,u=0),a[0].style.zIndex=-Math.abs(Math.round(s))+t.length,e.params.flipEffect.slideShadows){var p=e.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=e.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===p.length&&(p=i('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),a.append(p)),0===f.length&&(f=i('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),p.length&&(p[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}a.transform("translate3d("+d+"px, "+h+"px, 0px) rotateX("+c+"deg) rotateY("+u+"deg)")}},setTransition:function(e){var t=this,n=t.slides,i=t.activeIndex,r=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.eq(i).transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}}))}}},zt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;V.extend(e,{flipEffect:{setTranslate:Vt.setTranslate.bind(e),setTransition:Vt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},qt={setTranslate:function(){for(var e=this,t=e.width,n=e.height,r=e.slides,a=e.$wrapperEl,s=e.slidesSizesGrid,o=e.params.coverflowEffect,l=e.isHorizontal(),u=e.translate,c=l?t/2-u:n/2-u,d=l?o.rotate:-o.rotate,h=o.depth,p=0,f=r.length;p<f;p+=1){var m=r.eq(p),g=s[p],v=m[0].swiperSlideOffset,y=(c-v-g/2)/g*o.modifier,b=l?d*y:0,_=l?0:d*y,T=-h*Math.abs(y),S=l?0:o.stretch*y,w=l?o.stretch*y:0;Math.abs(w)<.001&&(w=0),Math.abs(S)<.001&&(S=0),Math.abs(T)<.001&&(T=0),Math.abs(b)<.001&&(b=0),Math.abs(_)<.001&&(_=0);var k="translate3d("+w+"px,"+S+"px,"+T+"px) rotateX("+_+"deg) rotateY("+b+"deg)";if(m.transform(k),m[0].style.zIndex=1-Math.abs(Math.round(y)),o.slideShadows){var C=l?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),E=l?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===C.length&&(C=i('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),m.append(C)),0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),m.append(E)),C.length&&(C[0].style.opacity=y>0?y:0),E.length&&(E[0].style.opacity=-y>0?-y:0)}}if(z.pointerEvents||z.prefixedPointerEvents){var x=a[0].style;x.perspectiveOrigin=c+"px 50%"}},setTransition:function(e){var t=this;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Wt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;V.extend(e,{coverflowEffect:{setTranslate:qt.setTranslate.bind(e),setTransition:qt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},Gt={init:function(){var e=this,t=e.params,n=t.thumbs,i=e.constructor;n.swiper instanceof i?(e.thumbs.swiper=n.swiper,V.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),V.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):V.isObject(n.swiper)&&(e.thumbs.swiper=new i(V.extend({},n.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var n=t.clickedIndex,r=t.clickedSlide;if((!r||!i(r).hasClass(e.params.thumbs.slideThumbActiveClass))&&"undefined"!==typeof n&&null!==n){var a;if(a=t.params.loop?parseInt(i(t.clickedSlide).attr("data-swiper-slide-index"),10):n,e.params.loop){var s=e.activeIndex;e.slides.eq(s).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,s=e.activeIndex);var o=e.slides.eq(s).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),l=e.slides.eq(s).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a="undefined"===typeof o?l:"undefined"===typeof l?o:l-s<s-o?l:o}e.slideTo(a)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var r,a=n.activeIndex;if(n.params.loop){n.slides.eq(a).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,a=n.activeIndex);var s=n.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=n.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();r="undefined"===typeof s?o:"undefined"===typeof o?s:o-a===a-s?a:o-a<a-s?o:s}else r=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(r)<0&&(n.params.centeredSlides?r=r>a?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>a&&(r=r-i+1),n.slideTo(r,e?0:void 0))}var l=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),n.slides.removeClass(u),n.params.loop||n.params.virtual)for(var c=0;c<l;c+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+c)+'"]').addClass(u);else for(var d=0;d<l;d+=1)n.slides.eq(t.realIndex+d).addClass(u)}}},Xt={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;V.extend(e,{thumbs:{swiper:null,init:Gt.init.bind(e),update:Gt.update.bind(e),onThumbClick:Gt.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params,n=t.thumbs;n&&n.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},update:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},resize:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e){var t=this,n=t.thumbs.swiper;n&&n.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}},Yt=[rt,at,st,ot,ut,dt,pt,gt,yt,_t,St,kt,Et,Ot,Pt,Lt,Mt,Rt,Bt,Ft,Ht,zt,Wt,Xt];return"undefined"===typeof it.use&&(it.use=it.Class.use,it.installModule=it.Class.installModule),it.use(Yt),it}))},"769d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n("9fd3"),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){o(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.buffer="",e}return u(t,e),i(t,[{key:"push",value:function(e){var t=void 0;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}(a["default"]);t["default"]=c},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"78d8":function(e,t,n){var i=arguments[3],r=arguments[4],a=arguments[5],s=JSON.stringify,o=!1,l=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=entryModule)};"undefined"===typeof i&&(o=!0,i=l,r=n.m);var u=function(e){for(var t,n=Object.keys(a),o=0;o<n.length;o++){var l=n[o],u=a[l].exports;if(u===e||u&&u.default===e){t=l;break}}if(!t){t=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(o=0;o<n.length;o++){l=n[o];c[l]=l}r[t]=["function(require,module,exports){"+e+"(self); }",c]}var d=Math.floor(Math.pow(16,8)*Math.random()).toString(16),h={};return h[t]=t,r[d]=["function(require,module,exports){var f = require("+s(t)+");(f.default ? f.default : f)(self);}",h],"("+i+")({"+Object.keys(r).map((function(e){return s(e)+":["+r[e][0]+","+s(r[e][1])+"]"})).join(",")+"},{},["+s(d)+"])"},c=function(e,t){var a,o="string"===typeof t;a=o?{}:[],Object.keys(r).forEach((function(e){r[e]&&(a[e]=r[e].toString())}));var l,u=n(t);if(!u||u!==e&&u.default!==e){var c=a[t];a[t]=c.substring(0,c.length-1)+"\n"+e.name+"();\n}"}if(o){t=s(t);var d=Object.keys(a).map((function(e){return s(e)+":"+a[e]}));l="{"+d.join(",")+"}"}else l="["+a.join(",")+"]";return"var fn = ("+i.toString().replace("entryModule",t)+")("+l+');\n(typeof fn === "function") && fn(self);'};e.exports=function(e,t){var n;n=o?c(e,t):u(e);var i=new Blob([n],{type:"text/javascript"}),r=window.URL||window.webkitURL||window.mozURL||window.msURL,a=r.createObjectURL(i),s=new Worker(a);return s.objectURL=a,s}},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),i.isString(r)&&o.push("path="+r),i.isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,r=n("825a"),a=n("37e8"),s=n("7839"),o=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),d=">",h="<",p="prototype",f="script",m=c("IE_PROTO"),g=function(){},v=function(e){return h+f+d+e+h+"/"+f+d},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?y(i):b():y(i);var e=s.length;while(e--)delete _[p][s[e]];return _()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=r(e),n=new g,g[p]=null,n[m]=e):n=_(),void 0===t?n:a(n,t)}},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),a=n("e163"),s=n("d2bb"),o=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),d=n("c430"),h=n("3f8c"),p=n("ae93"),f=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,c,p,T,S){r(n,t,c);var w,k,C,E=function(e){if(e===p&&I)return I;if(!m&&e in A)return A[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",O=!1,A=e.prototype,P=A[g]||A["@@iterator"]||p&&A[p],I=!m&&P||E(p),L="Array"==t&&A.entries||P;if(L&&(w=a(L.call(new e)),f!==Object.prototype&&w.next&&(d||a(w)===f||(s?s(w,f):"function"!=typeof w[g]&&l(w,g,_)),o(w,x,!0,!0),d&&(h[x]=_))),p==y&&P&&P.name!==y&&(O=!0,I=function(){return P.call(this)}),d&&!S||A[g]===I||l(A,g,I),h[t]=I,p)if(k={values:E(y),keys:T?I:E(v),entries:E(b)},S)for(C in k)(m||O||!(C in A))&&u(A,C,k[C]);else i({target:t,proto:!0,forced:m||O},k);return k}},"7eb3":function(e,t){var n,i,r,a,s,o,l=9e4;n=function(e){return e*l},i=function(e,t){return e*t},r=function(e){return e/l},a=function(e,t){return e/t},s=function(e,t){return n(a(e,t))},o=function(e,t){return i(r(e),t)},e.exports={secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o}},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),a=i.WeakMap;e.exports="function"===typeof a&&/native code/.test(r(a))},"80eb":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("be09"),a=i(r),s=n("92b0"),o=i(s),l=n("9f7a"),u=i(l),c=n("12c6"),d=i(c),h=0,p={mode:"auto"};d["default"].mediaSources={};var f=function(e,t){var n=d["default"].mediaSources[e];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:t})},m=function(){return!!a["default"].MediaSource&&!!a["default"].MediaSource.isTypeSupported&&a["default"].MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},g=function(e){var t=d["default"].mergeOptions(p,e);if(this.MediaSource={open:f,supportsNativeMediaSources:m},"html5"===t.mode||"auto"===t.mode&&m())return new u["default"];if(d["default"].getTech("Flash"))return new o["default"];throw new Error("Cannot use Flash or Html5 to create a MediaSource for this video")};t.MediaSource=g,g.open=f,g.supportsNativeMediaSources=m;var v={createObjectURL:function(e){var t="blob:vjs-media-source/",n=void 0;return e instanceof u["default"]?(n=a["default"].URL.createObjectURL(e.nativeMediaSource_),e.url_=n,n):e instanceof o["default"]?(n=t+h,h++,d["default"].mediaSources[n]=e,n):(n=a["default"].URL.createObjectURL(e),e.url_=n,n)}};t.URL=v,d["default"].MediaSource=g,d["default"].URL=v},"81bc":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("e475"),a=i(r),s=n("f24e"),o={FAILURE:2,TIMEOUT:-101,ABORTED:-102};t.REQUEST_ERRORS=o;var l=function(e){var t=void 0,n=void 0;return n=e.offset+e.length-1,t=e.offset,"bytes="+t+"-"+n},u=function(e){var t={};return e.byterange&&(t.Range=l(e.byterange)),t},c=function(e){e.forEach((function(e){e.abort()}))},d=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},h=function(e){var t=e.target,n=Date.now()-t.requestTime,i={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},p=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:o.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:o.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:o.FAILURE,xhr:t}:null},f=function(e,t){return function(n,i){var r=i.response,a=p(n,i);if(a)return t(a,e);if(16!==r.byteLength)return t({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:o.FAILURE,xhr:i},e);var s=new DataView(r);return e.key.bytes=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),t(null,e)}},m=function(e,t){return function(n,i){var r=i.response,a=p(n,i);return a?t(a,e):0===r.byteLength?t({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:o.FAILURE,xhr:i},e):(e.map.bytes=new Uint8Array(i.response),t(null,e))}},g=function(e,t){return function(n,i){var r=i.response,a=p(n,i);return a?t(a,e):0===r.byteLength?t({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:o.FAILURE,xhr:i},e):(e.stats=d(i),e.key?e.encryptedBytes=new Uint8Array(i.response):e.bytes=new Uint8Array(i.response),t(null,e))}},v=function(e,t,n){var i=function i(r){if(r.data.source===t.requestId){e.removeEventListener("message",i);var a=r.data.decrypted;return t.bytes=new Uint8Array(a.bytes,a.byteOffset,a.byteLength),n(null,t)}};e.addEventListener("message",i),e.postMessage((0,s.createTransferableMessage)({source:t.requestId,encrypted:t.encryptedBytes,key:t.key.bytes,iv:t.key.iv}),[t.encryptedBytes.buffer,t.key.bytes.buffer])},y=function(e){return e.reduce((function(e,t){return t.code>e.code?t:e}))},b=function(e,t,n){var i=[],r=0;return function(a,s){if(a&&(c(e),i.push(a)),r+=1,r===e.length){if(s.endOfAllRequests=Date.now(),i.length>0){var o=y(i);return n(o,s)}return s.encryptedBytes?v(t,s,n):n(null,s)}}},_=function(e,t){return function(n){return e.stats=a["default"].mergeOptions(e.stats,h(n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)}},T=function(e,t,n,i,r,s){var o=[],l=b(o,n,s);if(i.key){var d=a["default"].mergeOptions(t,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),h=f(i,l),p=e(d,h);o.push(p)}if(i.map&&!i.map.bytes){var v=a["default"].mergeOptions(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:u(i.map)}),y=m(i,l),T=e(v,y);o.push(T)}var S=a["default"].mergeOptions(t,{uri:i.resolvedUri,responseType:"arraybuffer",headers:u(i)}),w=g(i,l),k=e(S,w);return k.addEventListener("progress",_(i,r)),o.push(k),function(){return c(o)}};t.mediaSegmentRequest=T},"81c0":function(e,t){var n=Math.pow(2,32),i=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=t.getUint32(r),i.firstOffset=t.getUint32(r+4),r+=8):(i.earliestPresentationTime=t.getUint32(r)*n+t.getUint32(r+4),i.firstOffset=t.getUint32(r+8)*n+t.getUint32(r+12),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)i.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return i};e.exports=i},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},8352:function(e,t,n){var i=n("be09"),r=e.exports={WebVTT:n("14b8"),VTTCue:n("6d67"),VTTRegion:n("1283")};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=s},r.restore=function(){i.VTTCue=o,i.VTTRegion=l},i.VTTCue||r.shim()},8362:function(e,t){e.exports=i;var n=Object.prototype.toString;function i(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),r=n("e683");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},8418:function(e,t,n){"use strict";var i=n("a04b"),r=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var s=i(t);s in e?r.f(e,s,a(0,n)):e[s]=n}},"848b":function(e,t,n){"use strict";var i=n("4a0c"),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},s=i.version.split(".");function o(e,t){for(var n=t?t.split("."):s,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),r=i.length;while(r-- >0){var a=i[r],s=t[a];if(s){var o=e[a],l=void 0===o||s(o,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}}r.transitional=function(e,t,n){var r=t&&o(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Error(s(i," has been removed in "+t));return r&&!a[i]&&(a[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},e.exports={isOlderVersion:o,assertOptions:l,validators:r}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8925:function(e,t,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},"89a7":function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.freeze=i,t.MIME_TYPE=r,t.NAMESPACE=a},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8c00":function(e,t,n){"use strict";var i=n("be09"),r=function(e,t){return void 0===t&&(t=!1),function(n,r,s){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var o=s;if(t)if(i.TextDecoder){var l=a(r.headers&&r.headers["content-type"]);try{o=new TextDecoder(l).decode(s)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));e({cause:o})}else e(null,s)}};function a(e){return void 0===e&&(e=""),e.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")}e.exports=r},"8c10":function(e,t){function n(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(r){i=r}return[i,n]}e.exports=n},"8c4f":function(e,t,n){"use strict"; /*! * vue-router v3.5.2 * (c) 2021 Evan You * @license MIT */function i(e,t){0}function r(e,t){for(var n in t)e[n]=t[n];return e}var a=/[!'()*]/g,s=function(e){return"%"+e.charCodeAt(0).toString(16)},o=/%2C/g,l=function(e){return encodeURIComponent(e).replace(a,s).replace(o,",")};function u(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var i,r=n||h;try{i=r(e||"")}catch(o){i={}}for(var a in t){var s=t[a];i[a]=Array.isArray(s)?s.map(d):d(s)}return i}var d=function(e){return null==e||"object"===typeof e?e:String(e)};function h(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=u(n.shift()),r=n.length>0?u(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function p(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(l(t)):i.push(l(t)+"="+l(e)))})),i.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function m(e,t,n,i){var r=i&&i.options.stringifyQuery,a=t.query||{};try{a=g(a)}catch(o){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:b(t,r),matched:e?y(e):[]};return n&&(s.redirectedFrom=b(n,r)),Object.freeze(s)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=g(e[n]);return t}return e}var v=m(null,{path:"/"});function y(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var a=t||p;return(n||"/")+a(i)+r}function _(e,t,n){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&T(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&T(e.query,t.query)&&T(e.params,t.params))))}function T(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every((function(n,r){var a=e[n],s=i[r];if(s!==n)return!1;var o=t[n];return null==a||null==o?a===o:"object"===typeof a&&"object"===typeof o?T(a,o):String(a)===String(o)}))}function S(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&w(e.query,t.query)}function w(e,t){for(var n in t)if(!(n in e))return!1;return!0}function k(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var i in n.instances){var r=n.instances[i],a=n.enteredCbs[i];if(r&&a){delete n.enteredCbs[i];for(var s=0;s<a.length;s++)r._isBeingDestroyed||a[s](r)}}}}var C={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,a=t.parent,s=t.data;s.routerView=!0;var o=a.$createElement,l=n.name,u=a.$route,c=a._routerViewCache||(a._routerViewCache={}),d=0,h=!1;while(a&&a._routerRoot!==a){var p=a.$vnode?a.$vnode.data:{};p.routerView&&d++,p.keepAlive&&a._directInactive&&a._inactive&&(h=!0),a=a.$parent}if(s.routerViewDepth=d,h){var f=c[l],m=f&&f.component;return m?(f.configProps&&E(m,s,f.route,f.configProps),o(m,s,i)):o()}var g=u.matched[d],v=g&&g.components[l];if(!g||!v)return c[l]=null,o();c[l]={component:v},s.registerRouteInstance=function(e,t){var n=g.instances[l];(t&&n!==e||!t&&n===e)&&(g.instances[l]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){g.instances[l]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[l]&&(g.instances[l]=e.componentInstance),k(u)};var y=g.props&&g.props[l];return y&&(r(c[l],{route:u,configProps:y}),E(v,s,u,y)),o(v,s,i)}};function E(e,t,n,i){var a=t.props=x(n,i);if(a){a=t.props=r({},a);var s=t.attrs=t.attrs||{};for(var o in a)e.props&&o in e.props||(s[o]=a[o],delete a[o])}}function x(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function O(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var a=e.replace(/^\//,"").split("/"),s=0;s<a.length;s++){var o=a[s];".."===o?r.pop():"."!==o&&r.push(o)}return""!==r[0]&&r.unshift(""),r.join("/")}function A(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}function P(e){return e.replace(/\/\//g,"/")}var I=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},L=Q,D=B,M=U,j=H,R=K,N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(e,t){var n,i=[],r=0,a=0,s="",o=t&&t.delimiter||"/";while(null!=(n=N.exec(e))){var l=n[0],u=n[1],c=n.index;if(s+=e.slice(a,c),a=c+l.length,u)s+=u[1];else{var d=e[a],h=n[2],p=n[3],f=n[4],m=n[5],g=n[6],v=n[7];s&&(i.push(s),s="");var y=null!=h&&null!=d&&d!==h,b="+"===g||"*"===g,_="?"===g||"*"===g,T=n[2]||o,S=f||m;i.push({name:p||r++,prefix:h||"",delimiter:T,optional:_,repeat:b,partial:y,asterisk:!!v,pattern:S?z(S):v?".*":"[^"+V(T)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&i.push(s),i}function U(e,t){return H(B(e,t),t)}function F(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function $(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function H(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",W(t)));return function(t,i){for(var r="",a=t||{},s=i||{},o=s.pretty?F:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!==typeof u){var c,d=a[u.name];if(null==d){if(u.optional){u.partial&&(r+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(I(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(c=o(d[h]),!n[l].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");r+=(0===h?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?$(d):o(d),!n[l].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');r+=u.prefix+c}}else r+=u}return r}}function V(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function z(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function q(e,t){return e.keys=t,e}function W(e){return e&&e.sensitive?"":"i"}function G(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(e,t)}function X(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(Q(e[r],t,n).source);var a=new RegExp("(?:"+i.join("|")+")",W(n));return q(a,t)}function Y(e,t,n){return K(B(e,n),t,n)}function K(e,t,n){I(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,a="",s=0;s<e.length;s++){var o=e[s];if("string"===typeof o)a+=V(o);else{var l=V(o.prefix),u="(?:"+o.pattern+")";t.push(o),o.repeat&&(u+="(?:"+l+u+")*"),u=o.optional?o.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")",a+=u}}var c=V(n.delimiter||"/"),d=a.slice(-c.length)===c;return i||(a=(d?a.slice(0,-c.length):a)+"(?:"+c+"(?=$))?"),a+=r?"$":i&&d?"":"(?="+c+"|$)",q(new RegExp("^"+a,W(n)),t)}function Q(e,t,n){return I(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?G(e,t):I(e)?X(e,t,n):Y(e,t,n)}L.parse=D,L.compile=M,L.tokensToFunction=j,L.tokensToRegExp=R;var J=Object.create(null);function Z(e,t,n){t=t||{};try{var i=J[e]||(J[e]=L.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),i(t,{pretty:!0})}catch(r){return""}finally{delete t[0]}}function ee(e,t,n,i){var a="string"===typeof e?{path:e}:e;if(a._normalized)return a;if(a.name){a=r({},e);var s=a.params;return s&&"object"===typeof s&&(a.params=r({},s)),a}if(!a.path&&a.params&&t){a=r({},a),a._normalized=!0;var o=r(r({},t.params),a.params);if(t.name)a.name=t.name,a.params=o;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;a.path=Z(l,o,"path "+t.path)}else 0;return a}var u=A(a.path||""),d=t&&t.path||"/",h=u.path?O(u.path,d,n||a.append):d,p=c(u.query,a.query,i&&i.options.parseQuery),f=a.hash||u.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:h,query:p,hash:f}}var te,ne=[String,Object],ie=[String,Array],re=function(){},ae={name:"RouterLink",props:{to:{type:ne,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ie,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,a=n.resolve(this.to,i,this.append),s=a.location,o=a.route,l=a.href,u={},c=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==c?"router-link-active":c,p=null==d?"router-link-exact-active":d,f=null==this.activeClass?h:this.activeClass,g=null==this.exactActiveClass?p:this.exactActiveClass,v=o.redirectedFrom?m(null,ee(o.redirectedFrom),null,n):o;u[g]=_(i,v,this.exactPath),u[f]=this.exact||this.exactPath?u[g]:S(i,v);var y=u[g]?this.ariaCurrentValue:null,b=function(e){se(e)&&(t.replace?n.replace(s,re):n.push(s,re))},T={click:se};Array.isArray(this.event)?this.event.forEach((function(e){T[e]=b})):T[this.event]=b;var w={class:u},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:o,navigate:b,isActive:u[f],isExactActive:u[g]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)w.on=T,w.attrs={href:l,"aria-current":y};else{var C=oe(this.$slots.default);if(C){C.isStatic=!1;var E=C.data=r({},C.data);for(var x in E.on=E.on||{},E.on){var O=E.on[x];x in T&&(E.on[x]=Array.isArray(O)?O:[O])}for(var A in T)A in E.on?E.on[A].push(T[A]):E.on[A]=b;var P=C.data.attrs=r({},C.data.attrs);P.href=l,P["aria-current"]=y}else w.on=T}return e(this.tag,w,this.$slots.default)}};function se(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oe(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=oe(t.children)))return t}}function le(e){if(!le.installed||te!==e){le.installed=!0,te=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",C),e.component("RouterLink",ae);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var ue="undefined"!==typeof window;function ce(e,t,n,i,r){var a=t||[],s=n||Object.create(null),o=i||Object.create(null);e.forEach((function(e){de(a,s,o,e,r)}));for(var l=0,u=a.length;l<u;l++)"*"===a[l]&&(a.push(a.splice(l,1)[0]),u--,l--);return{pathList:a,pathMap:s,nameMap:o}}function de(e,t,n,i,r,a){var s=i.path,o=i.name;var l=i.pathToRegexpOptions||{},u=pe(s,r,l.strict);"boolean"===typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var c={path:u,regex:he(u,l),components:i.components||{default:i.component},alias:i.alias?"string"===typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:o,parent:r,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=a?P(a+"/"+i.path):void 0;de(e,t,n,i,c,r)})),t[c.path]||(e.push(c.path),t[c.path]=c),void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],h=0;h<d.length;++h){var p=d[h];0;var f={path:p,children:i.children};de(e,t,n,f,r,c.path||"/")}o&&(n[o]||(n[o]=c))}function he(e,t){var n=L(e,[],t);return n}function pe(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:P(t.path+"/"+e)}function fe(e,t){var n=ce(e),i=n.pathList,r=n.pathMap,a=n.nameMap;function s(e){ce(e,i,r,a)}function o(e,t){var n="object"!==typeof e?a[e]:void 0;ce([t||e],i,r,a,n),n&&n.alias.length&&ce(n.alias.map((function(e){return{path:e,children:[t]}})),i,r,a,n)}function l(){return i.map((function(e){return r[e]}))}function u(e,n,s){var o=ee(e,n,!1,t),l=o.name;if(l){var u=a[l];if(!u)return h(null,o);var c=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof o.params&&(o.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in o.params)&&c.indexOf(d)>-1&&(o.params[d]=n.params[d]);return o.path=Z(u.path,o.params,'named route "'+l+'"'),h(u,o,s)}if(o.path){o.params={};for(var p=0;p<i.length;p++){var f=i[p],m=r[f];if(me(m.regex,o.path,o.params))return h(m,o,s)}}return h(null,o)}function c(e,n){var i=e.redirect,r="function"===typeof i?i(m(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return h(null,n);var s=r,o=s.name,l=s.path,c=n.query,d=n.hash,p=n.params;if(c=s.hasOwnProperty("query")?s.query:c,d=s.hasOwnProperty("hash")?s.hash:d,p=s.hasOwnProperty("params")?s.params:p,o){a[o];return u({_normalized:!0,name:o,query:c,hash:d,params:p},void 0,n)}if(l){var f=ge(l,e),g=Z(f,p,'redirect route with path "'+f+'"');return u({_normalized:!0,path:g,query:c,hash:d},void 0,n)}return h(null,n)}function d(e,t,n){var i=Z(n,t.params,'aliased route with path "'+n+'"'),r=u({_normalized:!0,path:i});if(r){var a=r.matched,s=a[a.length-1];return t.params=r.params,h(s,t)}return h(null,t)}function h(e,n,i){return e&&e.redirect?c(e,i||n):e&&e.matchAs?d(e,n,e.matchAs):m(e,n,i,t)}return{match:u,addRoute:o,getRoutes:l,addRoutes:s}}function me(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,a=i.length;r<a;++r){var s=e.keys[r-1];s&&(n[s.name||"pathMatch"]="string"===typeof i[r]?u(i[r]):i[r])}return!0}function ge(e,t){return O(e,t.parent?t.parent.path:"/",!0)}var ve=ue&&window.performance&&window.performance.now?window.performance:Date;function ye(){return ve.now().toFixed(3)}var be=ye();function _e(){return be}function Te(e){return be=e}var Se=Object.create(null);function we(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=_e(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Ee),function(){window.removeEventListener("popstate",Ee)}}function ke(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var a=xe(),s=r.call(e,t,n,i?a:null);s&&("function"===typeof s.then?s.then((function(e){Me(e,a)})).catch((function(e){0})):Me(s,a))}))}}function Ce(){var e=_e();e&&(Se[e]={x:window.pageXOffset,y:window.pageYOffset})}function Ee(e){Ce(),e.state&&e.state.key&&Te(e.state.key)}function xe(){var e=_e();if(e)return Se[e]}function Oe(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}function Ae(e){return Le(e.x)||Le(e.y)}function Pe(e){return{x:Le(e.x)?e.x:window.pageXOffset,y:Le(e.y)?e.y:window.pageYOffset}}function Ie(e){return{x:Le(e.x)?e.x:0,y:Le(e.y)?e.y:0}}function Le(e){return"number"===typeof e}var De=/^#\d/;function Me(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=De.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=Ie(r),t=Oe(i,r)}else Ae(e)&&(t=Pe(e))}else n&&Ae(e)&&(t=Pe(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var je=ue&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Re(e,t){Ce();var n=window.history;try{if(t){var i=r({},n.state);i.key=_e(),n.replaceState(i,"",e)}else n.pushState({key:Te(ye())},"",e)}catch(a){window.location[t?"replace":"assign"](e)}}function Ne(e){Re(e,!0)}function Be(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}var Ue={redirected:2,aborted:4,cancelled:8,duplicated:16};function Fe(e,t){return ze(e,t,Ue.redirected,'Redirected when going from "'+e.fullPath+'" to "'+We(t)+'" via a navigation guard.')}function $e(e,t){var n=ze(e,t,Ue.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function He(e,t){return ze(e,t,Ue.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ve(e,t){return ze(e,t,Ue.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function ze(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var qe=["params","query","hash"];function We(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return qe.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Ge(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Xe(e,t){return Ge(e)&&e._isRouter&&(null==t||e.type===t)}function Ye(e){return function(t,n,i){var r=!1,a=0,s=null;Ke(e,(function(e,t,n,o){if("function"===typeof e&&void 0===e.cid){r=!0,a++;var l,u=et((function(t){Ze(t)&&(t=t.default),e.resolved="function"===typeof t?t:te.extend(t),n.components[o]=t,a--,a<=0&&i()})),c=et((function(e){var t="Failed to resolve async component "+o+": "+e;s||(s=Ge(e)?e:new Error(t),i(s))}));try{l=e(u,c)}catch(h){c(h)}if(l)if("function"===typeof l.then)l.then(u,c);else{var d=l.component;d&&"function"===typeof d.then&&d.then(u,c)}}})),r||i()}}function Ke(e,t){return Qe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Qe(e){return Array.prototype.concat.apply([],e)}var Je="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ze(e){return e.__esModule||Je&&"Module"===e[Symbol.toStringTag]}function et(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var tt=function(e,t){this.router=e,this.base=nt(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function nt(e){if(!e)if(ue){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function it(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function rt(e,t,n,i){var r=Ke(e,(function(e,i,r,a){var s=at(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,i,r,a)})):n(s,i,r,a)}));return Qe(i?r.reverse():r)}function at(e,t){return"function"!==typeof e&&(e=te.extend(e)),e.options[t]}function st(e){return rt(e,"beforeRouteLeave",lt,!0)}function ot(e){return rt(e,"beforeRouteUpdate",lt)}function lt(e,t){if(t)return function(){return e.apply(t,arguments)}}function ut(e){return rt(e,"beforeRouteEnter",(function(e,t,n,i){return ct(e,n,i)}))}function ct(e,t,n){return function(i,r,a){return e(i,r,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),a(e)}))}}tt.prototype.listen=function(e){this.cb=e},tt.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},tt.prototype.onError=function(e){this.errorCbs.push(e)},tt.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(s){throw this.errorCbs.forEach((function(e){e(s)})),s}var a=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,a)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(Xe(e,Ue.redirected)&&a===v||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},tt.prototype.confirmTransition=function(e,t,n){var r=this,a=this.current;this.pending=e;var s=function(e){!Xe(e)&&Ge(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):(i(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},o=e.matched.length-1,l=a.matched.length-1;if(_(e,a)&&o===l&&e.matched[o]===a.matched[l])return this.ensureURL(),s($e(a,e));var u=it(this.current.matched,e.matched),c=u.updated,d=u.deactivated,h=u.activated,p=[].concat(st(d),this.router.beforeHooks,ot(c),h.map((function(e){return e.beforeEnter})),Ye(h)),f=function(t,n){if(r.pending!==e)return s(He(a,e));try{t(e,a,(function(t){!1===t?(r.ensureURL(!0),s(Ve(a,e))):Ge(t)?(r.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s(Fe(a,e)),"object"===typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(i){s(i)}};Be(p,f,(function(){var n=ut(h),i=n.concat(r.router.resolveHooks);Be(i,f,(function(){if(r.pending!==e)return s(He(a,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){k(e)}))}))}))},tt.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},tt.prototype.setupListeners=function(){},tt.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var dt=function(e){function t(t,n){e.call(this,t,n),this._startLocation=ht(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=je&&n;i&&this.listeners.push(we());var r=function(){var n=e.current,r=ht(e.base);e.current===v&&r===e._startLocation||e.transitionTo(r,(function(e){i&&ke(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){Re(P(i.base+e.fullPath)),ke(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){Ne(P(i.base+e.fullPath)),ke(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ht(this.base)!==this.current.fullPath){var t=P(this.base+this.current.fullPath);e?Re(t):Ne(t)}},t.prototype.getCurrentLocation=function(){return ht(this.base)},t}(tt);function ht(e){var t=window.location.pathname,n=t.toLowerCase(),i=e.toLowerCase();return!e||n!==i&&0!==n.indexOf(P(i+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var pt=function(e){function t(t,n,i){e.call(this,t,n),i&&ft(this.base)||mt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=je&&n;i&&this.listeners.push(we());var r=function(){var t=e.current;mt()&&e.transitionTo(gt(),(function(n){i&&ke(e.router,n,t,!0),je||bt(n.fullPath)}))},a=je?"popstate":"hashchange";window.addEventListener(a,r),this.listeners.push((function(){window.removeEventListener(a,r)}))}},t.prototype.push=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){yt(e.fullPath),ke(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){bt(e.fullPath),ke(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;gt()!==t&&(e?yt(t):bt(t))},t.prototype.getCurrentLocation=function(){return gt()},t}(tt);function ft(e){var t=ht(e);if(!/^\/#/.test(t))return window.location.replace(P(e+"/#"+t)),!0}function mt(){var e=gt();return"/"===e.charAt(0)||(bt("/"+e),!1)}function gt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function vt(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function yt(e){je?Re(vt(e)):window.location.hash=e}function bt(e){je?Ne(vt(e)):window.location.replace(vt(e))}var _t=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){Xe(e,Ue.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(tt),Tt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!je&&!1!==e.fallback,this.fallback&&(t="hash"),ue||(t="abstract"),this.mode=t,t){case"history":this.history=new dt(this,e.base);break;case"hash":this.history=new pt(this,e.base,this.fallback);break;case"abstract":this.history=new _t(this,e.base);break;default:0}},St={currentRoute:{configurable:!0}};function wt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function kt(e,t,n){var i="hash"===n?"#"+t:t;return e?P(e+"/"+i):i}Tt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},St.currentRoute.get=function(){return this.history&&this.history.current},Tt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof dt||n instanceof pt){var i=function(e){var i=n.current,r=t.options.scrollBehavior,a=je&&r;a&&"fullPath"in e&&ke(t,e,i,!1)},r=function(e){n.setupListeners(),i(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Tt.prototype.beforeEach=function(e){return wt(this.beforeHooks,e)},Tt.prototype.beforeResolve=function(e){return wt(this.resolveHooks,e)},Tt.prototype.afterEach=function(e){return wt(this.afterHooks,e)},Tt.prototype.onReady=function(e,t){this.history.onReady(e,t)},Tt.prototype.onError=function(e){this.history.onError(e)},Tt.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},Tt.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},Tt.prototype.go=function(e){this.history.go(e)},Tt.prototype.back=function(){this.go(-1)},Tt.prototype.forward=function(){this.go(1)},Tt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Tt.prototype.resolve=function(e,t,n){t=t||this.history.current;var i=ee(e,t,n,this),r=this.match(i,t),a=r.redirectedFrom||r.fullPath,s=this.history.base,o=kt(s,a,this.mode);return{location:i,route:r,href:o,normalizedTo:i,resolved:r}},Tt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Tt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Tt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Tt.prototype,St),Tt.install=le,Tt.version="3.5.2",Tt.isNavigationFailure=Xe,Tt.NavigationFailureType=Ue,Tt.START_LOCATION=v,ue&&window.Vue&&window.Vue.use(Tt),t["a"]=Tt},"8c57":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("6be2"),u=a(l),c=n("e475"),d=n("19b3"),h=a(d),p=n("be09"),f=a(p),m=function(e,t,n){var i=t.slice();n=n||0;for(var r=Math.min(e.length,t.length+n),a=n;a<r;a++)i[a-n]=(0,c.mergeOptions)(e[a],i[a-n]);return i};t.updateSegments=m;var g=function(e,t){e.resolvedUri||(e.resolvedUri=(0,u["default"])(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=(0,u["default"])(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=(0,u["default"])(t,e.map.uri))};t.resolveSegmentUris=g;var v=function(e,t){var n=(0,c.mergeOptions)(e,{}),i=n.playlists.filter((function(e){return e.uri===t.uri}))[0];if(!i)return null;if(i.segments&&t.segments&&i.segments.length===t.segments.length&&i.mediaSequence===t.mediaSequence)return null;var r=(0,c.mergeOptions)(i,t);i.segments&&(r.segments=m(i.segments,t.segments,t.mediaSequence-i.mediaSequence)),r.segments.forEach((function(e){g(e,r.resolvedUri)}));for(var a=0;a<n.playlists.length;a++)n.playlists[a].uri===t.uri&&(n.playlists[a]=r);return n.playlists[t.uri]=r,n};t.updateMaster=v;var y=function(e){var t=e.playlists.length;while(t--){var n=e.playlists[t];e.playlists[n.uri]=n,n.resolvedUri=(0,u["default"])(e.uri,n.uri),n.attributes||(n.attributes={},c.log.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}};t.setupMediaPlaylists=y;var b=function(e){["AUDIO","SUBTITLES"].forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var r=e.mediaGroups[t][n][i];r.uri&&(r.resolvedUri=(0,u["default"])(e.uri,r.uri))}}))};t.resolveMediaGroupUris=b;var _=function(e,t){var n=e.segments[e.segments.length-1],i=void 0;return i=t&&n&&n.duration?1e3*n.duration:500*(e.targetDuration||10),i};t.refreshDelay=_;var T=function(e){function t(e,n,i){var a=this;if(s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),i=i||{},this.srcUrl=e,this.hls_=n,this.withCredentials=!!i.withCredentials,this.handleManifestRedirects=!!i.handleManifestRedirects,!this.srcUrl)throw new Error("A non-empty playlist URL is required");this.state="HAVE_NOTHING",this.on("mediaupdatetimeout",(function(){"HAVE_METADATA"===a.state&&(a.state="HAVE_CURRENT_METADATA",a.request=a.hls_.xhr({uri:(0,u["default"])(a.master.uri,a.media().uri),withCredentials:a.withCredentials},(function(e,t){if(a.request)return e?a.playlistRequestError(a.request,a.media().uri,"HAVE_METADATA"):void a.haveMetadata(a.request,a.media().uri)})))}))}return o(t,e),i(t,[{key:"playlistRequestError",value:function(e,t,n){this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+t,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(e,t){var n=this;this.request=null,this.state="HAVE_METADATA";var i=new h["default"].Parser;i.push(e.responseText),i.end(),i.manifest.uri=t,i.manifest.attributes=i.manifest.attributes||{};var r=v(this.master,i.manifest);this.targetDuration=i.manifest.targetDuration,r?(this.master=r,this.media_=this.master.playlists[i.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(f["default"].clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=f["default"].setTimeout((function(){n.trigger("mediaupdatetimeout")}),_(this.media(),!!r))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),f["default"].clearTimeout(this.mediaUpdateTimeout)}},{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 new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}var i=!this.media_||e.uri!==this.media_.uri;if(this.master.playlists[e.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(i){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.request=this.hls_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(e.resolvedUri=t.resolveManifestRedirect(e.resolvedUri,r),i)return t.playlistRequestError(t.request,e.uri,n);t.haveMetadata(r,e.uri),"HAVE_MASTER"===n?t.trigger("loadedmetadata"):t.trigger("mediachange")}}))}}},{key:"resolveManifestRedirect",value:function(e,t){return this.handleManifestRedirects&&t.responseURL&&e!==t.responseURL?t.responseURL:e}},{key:"pause",value:function(){this.stopRequest(),f["default"].clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;f["default"].clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=f["default"].setTimeout((function(){return t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var e=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,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: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");var i=new h["default"].Parser;return i.push(n.responseText),i.end(),e.state="HAVE_MASTER",e.srcUrl=e.resolveManifestRedirect(e.srcUrl,n),i.manifest.uri=e.srcUrl,i.manifest.playlists?(e.master=i.manifest,y(e.master),b(e.master),e.trigger("loadedplaylist"),void(e.request||e.media(i.manifest.playlists[0]))):(e.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:f["default"].location.href,playlists:[{uri:e.srcUrl,resolvedUri:e.srcUrl,attributes:{}}]},e.master.playlists[e.srcUrl]=e.master.playlists[0],e.haveMetadata(n,e.srcUrl),e.trigger("loadedmetadata"))}}))}}]),t}(c.EventTarget);t["default"]=T},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"90c6":function(e,t,n){"use strict";function i(e){return/^\d+(\.\d+)?$/.test(e)}function r(e){return Number.isNaN?Number.isNaN(e):e!==e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.read=function(e,t,n,i,r){var a,s,o=8*r-i-1,l=(1<<o)-1,u=l>>1,c=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-c)-1,p>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=h,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=i;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),a-=u}return(p?-1:1)*s*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var s,o,l,u=8*a-r-1,c=(1<<u)-1,d=c>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*l-1)*Math.pow(2,r),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+p]=255&o,p+=f,o/=256,r-=8);for(s=s<<r|o,u+=r;u>0;e[n+p]=255&s,p+=f,s/=256,u-=8);e[n+p-f]|=128*m}},"91c5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("8c57"),u=a(l),c=n("d61a"),d=n("f7fd"),h=a(d),p=n("5496"),f=a(p),m=n("d3ae"),g=a(m),v=n("e475"),y=a(v),b=n("ed4d"),_=a(b),T=n("c7ca"),S=a(T),w=n("0de0"),k=n("78d8"),C=a(k),E=n("a254"),x=a(E),O=n("56c8"),A=a(O),P=n("6066"),I=n("230d"),L=120,D=void 0,M={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},j=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],R=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},N=function(){var e=void 0;try{e="a254"}catch(t){}return e},B=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return(0,w.translateLegacyCodecs)([e])[0]}))};t.mapLegacyAvcCodecs_=B;var U=function(e,t,n){return e+"/"+t+'; codecs="'+n.filter((function(e){return!!e})).join(", ")+'"'},F=function(e){return e.segments&&e.segments.length&&e.segments[0].map?"mp4":"mp2t"},$=function(e){var t=e.attributes||{};return t.CODECS?(0,P.parseCodecs)(t.CODECS):M},H=function(e,t){var n=F(t),i=$(t),r=t.attributes||{},a=!0,s=!1;if(!t)return[];if(e.mediaGroups.AUDIO&&r.AUDIO){var o=e.mediaGroups.AUDIO[r.AUDIO];if(o)for(var l in s=!0,a=!1,o)if(!o[l].uri){a=!0;break}}s&&!i.audioProfile&&(y["default"].log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),i.audioProfile=M.audioProfile);var u={};i.videoCodec&&(u.video=""+i.videoCodec+i.videoObjectTypeIndicator),i.audioProfile&&(u.audio="mp4a.40."+i.audioProfile);var c=U("audio",n,[u.audio]),d=U("video",n,[u.video]),h=U("video",n,[u.video,u.audio]);return s?!a&&u.video?[d,c]:[h,c]:u.video?[h]:[c]};t.mimeTypesForPlaylist_=H;var V=function(e){function t(e){var n=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);var i=e.url,a=e.handleManifestRedirects,o=e.withCredentials,l=e.mode,c=e.tech,d=e.bandwidth,p=e.externHls,m=e.useCueTags,g=e.blacklistDuration,v=e.enableLowInitialPlaylist;if(!i)throw new Error("A non-empty playlist URL is required");D=p,this.tech_=c,this.hls_=c.hls,this.mode_=l,this.useCueTags_=m,this.blacklistDuration=g,this.enableLowInitialPlaylist=v,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:o,handleManifestRedirects:a,timeout:null},this.mediaTypes_=(0,I.createMediaTypes)(),this.mediaSource=new y["default"].MediaSource({mode:l}),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_.bind(this)),this.seekable_=y["default"].createTimeRanges(),this.hasPlayed_=function(){return!1},this.syncController_=new S["default"](e),this.segmentMetadataTrack_=c.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=(0,C["default"])(x["default"],N());var b={hls:this.hls_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_()},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:d,syncController:this.syncController_,decrypter:this.decrypter_};this.masterPlaylistLoader_=new u["default"](i,this.hls_,this.requestOptions_),this.setupMasterPlaylistLoaderListeners_(),this.mainSegmentLoader_=new h["default"](y["default"].mergeOptions(b,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new h["default"](y["default"].mergeOptions(b,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new f["default"](y["default"].mergeOptions(b,{loaderType:"vtt"}),e),this.setupSegmentLoaderListeners_(),j.forEach((function(e){n[e+"_"]=R.bind(n,e)})),this.masterPlaylistLoader_.load()}return o(t,e),i(t,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*e.masterPlaylistLoader_.targetDuration*1e3;(0,c.isLowestEnabledRendition)(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),(0,I.setupMediaGroups)({segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,mode:e.mode_,hls:e.hls_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t);try{e.setupSourceBuffers_()}catch(i){return y["default"].log.warn("Failed to create SourceBuffers",i),e.mediaSource.endOfStream("decode")}e.setupFirstPlay(),e.trigger("selectedinitialmedia")})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){var t=e.masterPlaylistLoader_.media();if(!t){var n=void 0;return e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),e.initialMedia_=n,void e.masterPlaylistLoader_.media(e.initialMedia_)}e.useCueTags_&&e.updateAdCues_(t),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.updateDuration(),e.tech_.paused()||e.mainSegmentLoader_.load(),t.endList||function(){var t=function(){var t=e.seekable();0!==t.length&&e.mediaSource.addSeekableRange_(t.start(0),t.end(0))};e.duration()!==1/0?function(){var n=function n(){e.duration()===1/0?t():e.tech_.one("durationchange",n)};e.tech_.one("durationchange",n)}():t()}()})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*e.masterPlaylistLoader_.targetDuration*1e3;(0,c.isLowestEnabledRendition)(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media(),n=e.stuckAtPlaylistEnd_(t);n&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),e.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))}},{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]){var o=n.AUDIO[a][s];o.uri||(i=!1)}i&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),D.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),D.Playlist.isFmp4(t)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist(),n=e.masterPlaylistLoader_.media(),i=e.tech_.buffered(),r=i.length?i.end(i.length-1)-e.tech_.currentTime():0,a=e.bufferLowWaterLine();(!n.endList||e.duration()<A["default"].MAX_BUFFER_LOW_WATER_LINE||t.attributes.BANDWIDTH<n.attributes.BANDWIDTH||r>=a)&&e.masterPlaylistLoader_.media(t),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("ended",(function(){e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(){e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},L)})),this.mainSegmentLoader_.on("reseteverything",(function(){e.tech_.trigger("hls-reset")})),this.mainSegmentLoader_.on("segmenttimemapping",(function(t){e.tech_.trigger({type:"hls-segment-time-mapping",mapping:t.mapping})})),this.audioSegmentLoader_.on("ended",(function(){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=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetLoader())}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_()&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_())return!1;if(!t.endList){var n=function(){var t=e.seekable();return t.length?y["default"].browser.IE_VERSION&&"html5"===e.mode_&&0===e.tech_.readyState()?(e.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(t.end(0)),e.hasPlayed_=function(){return!0}})),{v:!1}):(e.trigger("firstplay"),void e.tech_.setCurrentTime(t.end(0))):{v:!1}}();if("object"===typeof n)return n.v}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(t){return y["default"].log.warn("Failed to create Source Buffers",t),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&&(e=e&&this.audioSegmentLoader_.ended_),e&&this.mediaSource.endOfStream()}},{key:"stuckAtPlaylistEnd_",value:function(e){var t=this.seekable();if(!t.length)return!1;var n=this.syncController_.getExpiredTime(e,this.mediaSource.duration);if(null===n)return!1;var i=D.Playlist.playlistEnd(e,n),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return i-r<=g["default"].SAFE_TIME_DELTA;var s=a.end(a.length-1);return s-r<=g["default"].SAFE_TIME_DELTA&&i-s<=g["default"].SAFE_TIME_DELTA}},{key:"blacklistCurrentPlaylist",value:function(e,t){void 0===e&&(e={});var n=void 0,i=void 0;if(n=e.playlist||this.masterPlaylistLoader_.media(),t=t||e.blacklistDuration||this.blacklistDuration,!n){this.error=e;try{return this.mediaSource.endOfStream("network")}catch(a){return this.trigger("error")}}var r=1===this.masterPlaylistLoader_.master.playlists.filter(c.isEnabled).length;return r?(y["default"].log.warn("Problem encountered with the current HLS playlist. Trying again since it is the final playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(r)):(n.excludeUntil=Date.now()+1e3*t,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),i=this.selectPlaylist(),y["default"].log.warn("Problem encountered with the current HLS playlist."+(e.message?" "+e.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(i))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(e){var t=g["default"].findRange(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length&&"flash"!==this.mode_?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:D.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var e=void 0,t=void 0;if(this.masterPlaylistLoader_){var n=this.masterPlaylistLoader_.media();if(n){var i=this.syncController_.getExpiredTime(n,this.mediaSource.duration);if(null!==i&&(e=D.Playlist.seekable(n,i),0!==e.length)){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(n,this.mediaSource.duration),null===i)return;if(t=D.Playlist.seekable(n,i),0===t.length)return}t?t.start(0)>e.end(0)||e.start(0)>t.end(0)?this.seekable_=e:this.seekable_=y["default"].createTimeRanges([[t.start(0)>e.start(0)?t.start(0):e.start(0),t.end(0)<e.end(0)?t.end(0):e.end(0)]]):this.seekable_=e,this.tech_.trigger("seekablechanged")}}}}},{key:"updateDuration",value:function(){var e=this,t=this.mediaSource.duration,n=D.Playlist.duration(this.masterPlaylistLoader_.media()),i=this.tech_.buffered(),r=function t(){e.mediaSource.duration=n,e.tech_.trigger("durationchange"),e.mediaSource.removeEventListener("sourceopen",t)};i.length>0&&(n=Math.max(n,i.end(i.length-1))),t!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",r):r())}},{key:"dispose",value:function(){var e=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["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()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var e=this.masterPlaylistLoader_.media(),t=void 0;if(e&&"open"===this.mediaSource.readyState){if(t=H(this.masterPlaylistLoader_.master,e),t.length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+e.resolvedUri,this.mediaSource.endOfStream("decode");this.mainSegmentLoader_.mimeType(t[0]),t[1]&&this.audioSegmentLoader_.mimeType(t[1]),this.excludeIncompatibleVariants_(e)}}},{key:"excludeIncompatibleVariants_",value:function(e){var t=this.masterPlaylistLoader_.master,n=2,i=null,r=void 0;e.attributes.CODECS&&(r=(0,P.parseCodecs)(e.attributes.CODECS),i=r.videoCodec,n=r.codecCount),t.playlists.forEach((function(e){var t={codecCount:2,videoCodec:null};if(e.attributes.CODECS){var r=e.attributes.CODECS;t=(0,P.parseCodecs)(r),window.MediaSource&&window.MediaSource.isTypeSupported&&!window.MediaSource.isTypeSupported('video/mp4; codecs="'+B(r)+'"')&&(e.excludeUntil=1/0)}t.codecCount!==n&&(e.excludeUntil=1/0),t.videoCodec!==i&&(e.excludeUntil=1/0)}))}},{key:"updateAdCues_",value:function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),_["default"].updateAdCues(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=A["default"].GOAL_BUFFER_LENGTH,n=A["default"].GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,A["default"].MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=A["default"].BUFFER_LOW_WATER_LINE,n=A["default"].BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,A["default"].MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,i)}}]),t}(y["default"].EventTarget);t.MasterPlaylistController=V},9263:function(e,t,n){"use strict";var i=n("577e"),r=n("ad6d"),a=n("9f7f"),s=n("5692"),o=n("7c73"),l=n("69f3").get,u=n("fce3"),c=n("107c"),d=RegExp.prototype.exec,h=s("native-string-replace",String.prototype.replace),p=d,f=function(){var e=/a/,t=/b*/g;return d.call(e,"a"),d.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),m=a.UNSUPPORTED_Y||a.BROKEN_CARET,g=void 0!==/()??/.exec("")[1],v=f||g||m||u||c;v&&(p=function(e){var t,n,a,s,u,c,v,y=this,b=l(y),_=i(e),T=b.raw;if(T)return T.lastIndex=y.lastIndex,t=p.call(T,_),y.lastIndex=T.lastIndex,t;var S=b.groups,w=m&&y.sticky,k=r.call(y),C=y.source,E=0,x=_;if(w&&(k=k.replace("y",""),-1===k.indexOf("g")&&(k+="g"),x=_.slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&"\n"!==_.charAt(y.lastIndex-1))&&(C="(?: "+C+")",x=" "+x,E++),n=new RegExp("^(?:"+C+")",k)),g&&(n=new RegExp("^"+C+"$(?!\\s)",k)),f&&(a=y.lastIndex),s=d.call(w?n:y,x),w?s?(s.input=s.input.slice(E),s[0]=s[0].slice(E),s.index=y.lastIndex,y.lastIndex+=s[0].length):y.lastIndex=0:f&&s&&(y.lastIndex=y.global?s.index+s[0].length:a),g&&s&&s.length>1&&h.call(s[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s&&S)for(s.groups=c=o(null),u=0;u<S.length;u++)v=S[u],c[v[0]]=s[v[1]];return s}),e.exports=p},"92b0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("ef34"),u=a(l),c=n("12c6"),d=a(c),h=n("672d"),p=a(h),f=n("e206"),m=a(f),g=n("0de0"),v=function(e){function t(){var e=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.sourceBuffers=[],this.readyState="closed",this.on(["sourceopen","webkitsourceopen"],(function(t){e.swfObj=u["default"].getElementById(t.swfId),e.player_=(0,d["default"])(e.swfObj.parentNode),e.tech_=e.swfObj.tech,e.readyState="open",e.tech_.on("seeking",(function(){var t=e.sourceBuffers.length;while(t--)e.sourceBuffers[t].abort()})),e.swfObj&&e.swfObj.vjs_load()}))}return o(t,e),i(t,[{key:"addSeekableRange_",value:function(){}},{key:"addSourceBuffer",value:function(e){var t=(0,g.parseContentType)(e),n=void 0;if("video/mp2t"!==t.type&&"audio/mp2t"!==t.type)throw new Error("NotSupportedError (Video.js)");return n=new p["default"](this),this.sourceBuffers.push(n),n}},{key:"endOfStream",value:function(e){"network"===e?this.tech_.error(2):"decode"===e&&this.tech_.error(3),"ended"!==this.readyState&&(this.readyState="ended",this.swfObj.vjs_endOfStream())}}]),t}(d["default"].EventTarget);t["default"]=v;try{Object.defineProperty(v.prototype,"duration",{get:function(){return this.swfObj?this.swfObj.vjs_getProperty("duration"):NaN},set:function(e){var t=void 0,n=this.swfObj.vjs_getProperty("duration");if(this.swfObj.vjs_setProperty("duration",e),e<n)for(t=0;t<this.sourceBuffers.length;t++)this.sourceBuffers[t].remove(e,n);return e}})}catch(b){v.prototype.duration=NaN}for(var y in m["default"])v[y]=m["default"][y];e.exports=t["default"]},9417:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){var i=t.player_;if(n.captions&&n.captions.length)for(var r in e.inbandTextTracks_||(e.inbandTextTracks_={}),n.captionStreams)if(!e.inbandTextTracks_[r]){i.tech_.trigger({type:"usage",name:"hls-608"});var a=i.textTracks().getTrackById(r);e.inbandTextTracks_[r]=a||i.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}n.metadata&&n.metadata.length&&!e.metadataTrack_&&(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)};t["default"]=i,e.exports=t["default"]},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,a=function(e,t){var n=o[s(e)];return n==u||n!=l&&("function"==typeof t?i(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"96b7":function(e,t,n){"use strict";var i=n("0129"),r=8589934592,a=4294967296,s=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>a)e+=n*r;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e,this.push=function(e){e.type===this.type_&&(void 0===n&&(n=e.dts),e.dts=s(e.dts,n),e.pts=s(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.discontinuity=function(){n=void 0,t=void 0}};o.prototype=new i,e.exports={TimestampRolloverStream:o,handleRollover:s}},"96cf":function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var r=t&&t.prototype instanceof g?t:g,a=Object.create(r.prototype),s=new A(i||[]);return a._invoke=C(e,n,s),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",m={};function g(){}function v(){}function y(){}var b={};l(b,a,(function(){return this}));var _=Object.getPrototypeOf,T=_&&_(_(P([])));T&&T!==n&&i.call(T,a)&&(b=T);var S=y.prototype=g.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,a,s,o){var l=c(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===typeof d&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,o)}),(function(e){n("throw",e,s,o)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,o)}))}o(l.arg)}var r;function a(e,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}this._invoke=a}function C(e,t,n){var i=d;return function(r,a){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw a;return I()}n.method=r,n.arg=a;while(1){var s=n.delegate;if(s){var o=E(s,n);if(o){if(o===m)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=c(e,t,n);if("normal"===l.type){if(i=n.done?f:h,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}function E(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=c(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function n(){while(++r<e.length)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:I}}function I(){return{value:t,done:!0}}return v.prototype=y,l(S,"constructor",y),l(y,"constructor",v),v.displayName=l(y,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,o,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},w(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var s=new k(u(t,n,i,r),a);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},w(S),l(S,o,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=P,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return o.type="throw",o.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),u=i.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:P(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),s=n("861d"),o=n("7b0b"),l=n("50c4"),u=n("8418"),c=n("65f0"),d=n("1dde"),h=n("b622"),p=n("2d00"),f=h("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=p>=51||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!s(e))return!1;var t=e[f];return void 0!==t?!!t:a(e)},_=!v||!y;i({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,i,r,a,s=o(this),d=c(s,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(a=-1===t?s:arguments[t],b(a)){if(r=l(a.length),h+r>m)throw TypeError(g);for(n=0;n<r;n++,h++)n in a&&u(d,h,a[n])}else{if(h>=m)throw TypeError(g);u(d,h++,a)}return d.length=h,d}})},"9a1f":function(e,t,n){var i=n("825a"),r=n("35a1");e.exports=function(e,t){var n=arguments.length<2?r(e):t;if("function"!=typeof n)throw TypeError(String(e)+" is not iterable");return i(n.call(e))}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),a=n("825a"),s=n("a04b"),o=Object.defineProperty;t.f=i?o:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return o(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9d91":function(e,t,n){"use strict";var i,r=n("0129"),a=n("6373"),s=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},o=function(e,t,n){return decodeURIComponent(s(e,t,n))},l=function(e,t,n){return unescape(s(e,t,n))},u=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},c={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=o(e.data,1,t),e.value=o(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=o(e.data,1,t),e.url=o(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=l(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};i=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},r=0,s=[],o=0;if(i.prototype.init.call(this),this.dispatchType=a.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,i,a,l,d,h;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(o=0,s.length=0),0===s.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(s.push(e),o+=e.data.byteLength,1===s.length&&(r=u(e.data.subarray(6,10)),r+=10),!(o<r)){for(t={data:new Uint8Array(r),frames:[],pts:s[0].pts,dts:s[0].dts},d=0;d<r;)t.data.set(s[0].data.subarray(0,r-d),d),d+=s[0].data.byteLength,o-=s[0].data.byteLength,s.shift();i=10,64&t.data[5]&&(i+=4,i+=u(t.data.subarray(10,14)),r-=u(t.data.subarray(16,20)));do{if(a=u(t.data.subarray(i+4,i+8)),a<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if(h=String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),l={id:h,data:t.data.subarray(i+10,i+a+10)},l.key=l.id,c[l.id]&&(c[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var p=l.data,f=(1&p[3])<<30|p[4]<<22|p[5]<<14|p[6]<<6|p[7]>>>2;f*=4,f+=3&p[7],l.timeStamp=f,void 0===t.pts&&void 0===t.dts&&(t.pts=l.timeStamp,t.dts=l.timeStamp),this.trigger("timestamp",l)}t.frames.push(l),i+=10,i+=a}while(i<r);this.trigger("data",t)}}},i.prototype=new r,e.exports=i},"9e6a":function(e,t,n){"use strict";var i=n("d233"),r=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(e,t){var n,d={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=h.split(t.delimiter,p),m=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&(f[n]===c?g="utf-8":f[n]===u&&(g="iso-8859-1"),m=n,n=f.length);for(n=0;n<f.length;++n)if(n!==m){var v,y,b=f[n],_=b.indexOf("]="),T=-1===_?b.indexOf("="):_+1;-1===T?(v=t.decoder(b,s.decoder,g,"key"),y=t.strictNullHandling?null:""):(v=t.decoder(b.slice(0,T),s.decoder,g,"key"),y=i.maybeMap(l(b.slice(T+1),t),(function(e){return t.decoder(e,s.decoder,g,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===g&&(y=o(y)),b.indexOf("[]=")>-1&&(y=a(y)?[y]:y),r.call(d,v)?d[v]=i.combine(d[v],y):d[v]=y}return d},h=function(e,t,n,i){for(var r=i?t:l(t,n),a=e.length-1;a>=0;--a){var s,o=e[a];if("[]"===o&&n.parseArrays)s=[].concat(r);else{s=n.plainObjects?Object.create(null):{};var u="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&o!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=r):s[u]=r:s={0:r}}r=s}return r},p=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(a),u=l?a.slice(0,l.index):a,c=[];if(u){if(!n.plainObjects&&r.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}var d=0;while(n.depth>0&&null!==(l=o.exec(a))&&d<n.depth){if(d+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+a.slice(l.index)+"]"),h(c,t,n,i)}},f=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?s.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:s.comma,decoder:"function"===typeof e.decoder?e.decoder:s.decoder,delimiter:"string"===typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,t){var n=f(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var r="string"===typeof e?d(e,n):e,a=n.plainObjects?Object.create(null):{},s=Object.keys(r),o=0;o<s.length;++o){var l=s[o],u=p(l,r[l],n,"string"===typeof e);a=i.merge(a,u,n)}return!0===n.allowSparse?a:i.compact(a)}},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),a=n("5c6c"),s=n("d44e"),o=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=r(i,{next:a(1,n)}),s(e,u,!1,!0),o[u]=l,e}},"9f7a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("be09"),u=a(l),c=n("ef34"),d=a(c),h=n("12c6"),p=a(h),f=n("269f"),m=a(f),g=n("ba2d"),v=n("0de0"),y=function(e){function t(){var e=this;s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this);var n=void 0;for(n in this.nativeMediaSource_=new u["default"].MediaSource,this.nativeMediaSource_)n in t.prototype||"function"!==typeof this.nativeMediaSource_[n]||(this[n]=this.nativeMediaSource_[n].bind(this.nativeMediaSource_));this.duration_=NaN,Object.defineProperty(this,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(e){this.duration_=e,e===1/0||(this.nativeMediaSource_.duration=e)}}),Object.defineProperty(this,"seekable",{get:function(){return this.duration_===1/0?p["default"].createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(this,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(this,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),this.sourceBuffers=[],this.activeSourceBuffers_=[],this.updateActiveSourceBuffers_=function(){if(e.activeSourceBuffers_.length=0,1===e.sourceBuffers.length){var t=e.sourceBuffers[0];return t.appendAudioInitSegment_=!0,t.audioDisabled_=!t.audioCodec_,void e.activeSourceBuffers_.push(t)}for(var n=!1,i=!0,r=0;r<e.player_.audioTracks().length;r++){var a=e.player_.audioTracks()[r];if(a.enabled&&"main"!==a.kind){n=!0,i=!1;break}}e.sourceBuffers.forEach((function(t){if(t.appendAudioInitSegment_=!0,t.videoCodec_&&t.audioCodec_)t.audioDisabled_=n;else if(t.videoCodec_&&!t.audioCodec_)t.audioDisabled_=!0,i=!1;else if(!t.videoCodec_&&t.audioCodec_&&(t.audioDisabled_=i,i))return;e.activeSourceBuffers_.push(t)}))},this.onPlayerMediachange_=function(){e.sourceBuffers.forEach((function(e){e.appendAudioInitSegment_=!0}))},this.onHlsReset_=function(){e.sourceBuffers.forEach((function(e){e.transmuxer_&&e.transmuxer_.postMessage({action:"resetCaptions"})}))},this.onHlsSegmentTimeMapping_=function(t){e.sourceBuffers.forEach((function(e){return e.timeMapping_=t.mapping}))},["sourceopen","sourceclose","sourceended"].forEach((function(e){this.nativeMediaSource_.addEventListener(e,this.trigger.bind(this))}),this),this.on("sourceopen",(function(t){var n=d["default"].querySelector('[src="'+e.url_+'"]');n&&(e.player_=(0,p["default"])(n.parentNode),e.player_.tech_.on("hls-reset",e.onHlsReset_),e.player_.tech_.on("hls-segment-time-mapping",e.onHlsSegmentTimeMapping_),e.player_.audioTracks&&e.player_.audioTracks()&&(e.player_.audioTracks().on("change",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("addtrack",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("removetrack",e.updateActiveSourceBuffers_)),e.player_.on("mediachange",e.onPlayerMediachange_))})),this.on("sourceended",(function(t){for(var n=(0,g.durationOfVideo)(e.duration),i=0;i<e.sourceBuffers.length;i++){var r=e.sourceBuffers[i],a=r.metadataTrack_&&r.metadataTrack_.cues;a&&a.length&&(a[a.length-1].endTime=n)}})),this.on("sourceclose",(function(e){this.sourceBuffers.forEach((function(e){e.transmuxer_&&e.transmuxer_.terminate()})),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&(this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}))}return o(t,e),i(t,[{key:"addSeekableRange_",value:function(e,t){var n=void 0;if(this.duration!==1/0)throw n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),n.name="InvalidStateError",n.code=11,n;(t>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(e){var t=void 0,n=(0,v.parseContentType)(e);if(/^(video|audio)\/mp2t$/i.test(n.type)){var i=[];n.parameters&&n.parameters.codecs&&(i=n.parameters.codecs.split(","),i=(0,v.translateLegacyCodecs)(i),i=i.filter((function(e){return(0,v.isAudioCodec)(e)||(0,v.isVideoCodec)(e)}))),0===i.length&&(i=["avc1.4d400d","mp4a.40.2"]),t=new m["default"](this,i),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),t.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else t=this.nativeMediaSource_.addSourceBuffer(e);return this.sourceBuffers.push(t),t}}]),t}(p["default"].EventTarget);t["default"]=y,e.exports=t["default"]},"9f7f":function(e,t,n){var i=n("d039"),r=n("da84"),a=r.RegExp;t.UNSUPPORTED_Y=i((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9fd3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){r(this,e),this.listeners={}}return i(e,[{key:"on",value:function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"off",value:function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1}},{key:"trigger",value:function(e){var t=this.listeners[e],n=void 0,i=void 0,r=void 0;if(t)if(2===arguments.length)for(i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),i=t.length,n=0;n<i;++n)t[n].apply(this,r)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(e){this.on("data",(function(t){e.push(t)}))}}]),e}();t["default"]=a},a04b:function(e,t,n){var i=n("c04e"),r=n("d9b5");e.exports=function(e){var t=i(e,"string");return r(t)?t:String(t)}},a0d3:function(e,t,n){"use strict";var i=n("0f7c");e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},a142:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"h",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return h}));var i=n("2b0e"),r="undefined"!==typeof window,a=i["a"].prototype.$isServer;function s(){}function o(e){return void 0!==e&&null!==e}function l(e){return"function"===typeof e}function u(e){return null!==e&&"object"===typeof e}function c(e){return u(e)&&l(e.then)&&l(e.catch)}function d(e,t){var n=t.split("."),i=e;return n.forEach((function(e){var t;i=null!=(t=i[e])?t:""})),i}function h(e){return null==e||("object"!==typeof e||0===Object.keys(e).length)}},a151:function(e,t,n){"use strict";var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("ef34"),u=a(l),c=n("8c57"),d=a(c),h=n("d61a"),p=a(h),f=n("46af"),m=a(f),g=n("b658"),v=n("f24e"),y=a(v),b=n("80eb"),_=n("19b3"),T=a(_),S=n("e475"),w=a(S),k=n("91c5"),C=n("56c8"),E=a(C),x=n("e044"),O=a(x),A=n("be09"),P=a(A),I=n("f631"),L=a(I),D=n("140c"),M=a(D),j=n("57db"),R={PlaylistLoader:d["default"],Playlist:p["default"],Decrypter:g.Decrypter,AsyncStream:g.AsyncStream,decrypt:g.decrypt,utils:y["default"],STANDARD_PLAYLIST_SELECTOR:j.lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:j.lowestBitrateCompatibleVariantSelector,comparePlaylistBandwidth:j.comparePlaylistBandwidth,comparePlaylistResolution:j.comparePlaylistResolution,xhr:(0,m["default"])()},N=4194304;["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach((function(e){Object.defineProperty(R,e,{get:function(){return w["default"].log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),E["default"][e]},set:function(t){w["default"].log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?w["default"].log.warn("value of Hls."+e+" must be greater than or equal to 0"):E["default"][e]=t}})}));var B=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.uri){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},U=function(e,t){t.representations().forEach((function(t){e.addQualityLevel(t)})),B(e,t.playlists)};R.canPlaySource=function(){return w["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")},R.supportsNativeHls=function(){var e=u["default"].createElement("video");if(!w["default"].getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),R.isSupported=function(){return w["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var F=w["default"].getComponent("Component"),$=function(e){function t(e,n,i){var a=this;if(s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,n,i.hls),n.options_&&n.options_.playerId){var o=(0,w["default"])(n.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return w["default"].log.warn("player.hls is deprecated. Use player.tech_.hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),a}})}if(this.tech_=n,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");this.on(u["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=u["default"].fullscreenElement||u["default"].webkitFullscreenElement||u["default"].mozFullScreenElement||u["default"].msFullscreenElement;t&&t.contains(a.tech_.el())&&a.masterPlaylistController_.fastQualityChange_()})),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}return o(t,e),i(t,[{key:"setOptions_",value:function(){var e=this;this.options_.withCredentials=this.options_.withCredentials||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=N),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===N,["withCredentials","bandwidth","handleManifestRedirects"].forEach((function(t){"undefined"!==typeof e.source_[t]&&(e.options_[t]=e.source_[t])})),this.bandwidth=this.options_.bandwidth}},{key:"src",value:function(e){var t=this;e&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=R,this.masterPlaylistController_=new k.MasterPlaylistController(this.options_),this.playbackWatcher_=new L["default"](w["default"].mergeOptions(this.options_,{seekable:function(){return t.seekable()}})),this.masterPlaylistController_.on("error",(function(){var e=w["default"].players[t.tech_.options_.playerId];e.error(t.masterPlaylistController_.error)})),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):R.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=R.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;t=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(e+t));return n},set:function(){w["default"].log.error('The "systemBandwidth" property is read-only')}}}),Object.defineProperties(this.stats,{bandwidth:{get:function(){return t.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return t.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return t.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return t.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return t.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return t.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return t.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return t.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.masterPlaylistController_.on("selectedinitialmedia",(function(){(0,O["default"])(t)})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.tech_.ready((function(){return t.setupQualityLevels_()})),this.tech_.el()&&this.tech_.src(w["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var e=this,t=w["default"].players[this.tech_.options_.playerId];t&&t.qualityLevels&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){U(e.qualityLevels_,e)})),this.playlists.on("mediachange",(function(){B(e.qualityLevels_,e.playlists)})))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(e){this.masterPlaylistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),r(Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(F),H=function e(t){return{canHandleSource:function(n){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=w["default"].mergeOptions(w["default"].options,i);return(!r.hls||!r.hls.mode||r.hls.mode===t)&&e.canPlayType(n.type,r)},handleSource:function(e,n){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=w["default"].mergeOptions(w["default"].options,i,{hls:{mode:t}});return"flash"===t&&n.setTimeout((function(){n.trigger("loadstart")}),1),n.hls=new $(e,n,r),n.hls.xhr=(0,m["default"])(),n.hls.src(e.src),n.hls},canPlayType:function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=w["default"].mergeOptions(w["default"].options,n);return e.canPlayType(t,i)?"maybe":""}}};H.canPlayType=function(e,t){if(w["default"].browser.IE_VERSION&&w["default"].browser.IE_VERSION<=10)return!1;var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;return!(!t.hls.overrideNative&&R.supportsNativeHls)&&n.test(e)},"undefined"!==typeof w["default"].MediaSource&&"undefined"!==typeof w["default"].URL||(w["default"].MediaSource=b.MediaSource,w["default"].URL=b.URL);var V=w["default"].getTech("Flash");b.MediaSource.supportsNativeMediaSources()&&w["default"].getTech("Html5").registerSourceHandler(H("html5"),0),P["default"].Uint8Array&&V&&V.registerSourceHandler(H("flash")),w["default"].HlsHandler=$,w["default"].HlsSourceHandler=H,w["default"].Hls=R,w["default"].use||w["default"].registerComponent("Hls",R),w["default"].m3u8=T["default"],w["default"].options.hls=w["default"].options.hls||{},w["default"].registerPlugin?w["default"].registerPlugin("reloadSourceOnError",M["default"]):w["default"].plugin("reloadSourceOnError",M["default"]),e.exports={Hls:R,HlsHandler:$,HlsSourceHandler:H}},a254:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("be09"),a=i(r),s=n("b658"),o=n("f24e"),l=function(e){e.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new s.Decrypter(n,i,r,(function(e,n){a["default"].postMessage((0,o.createTransferableMessage)({source:t.source,decrypted:n}),[n.buffer])}))}};t["default"]=function(e){return new l(e)},e.exports=t["default"]},a31d:function(e,t,n){"use strict";var i,r,a,s,o,l,u,c,d,h,p,f,m,g,v,y,b,_,T,S,w,k,C,E,x,O,A,P,I,L,D,M,j,R,N,B,U=Math.pow(2,32)-1;(function(){var e;if(C={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(e in C)C.hasOwnProperty(e)&&(C[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),O=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),x=new Uint8Array([0,0,0,1]),A=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]),P=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]),I={video:A,audio:P},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),j=new Uint8Array([0,0,0,0,0,0,0,0]),R=j,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),B=j,L=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),i=function(e){var t,n,i,r=[],a=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);t=r.length;while(t--)a+=r[t].byteLength;for(n=new Uint8Array(a+8),i=new DataView(n.buffer,n.byteOffset,n.byteLength),i.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<r.length;t++)n.set(r[t],a),a+=r[t].byteLength;return n},r=function(){return i(C.dinf,i(C.dref,M))},a=function(e){return i(C.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]))},s=function(){return i(C.ftyp,E,x,E,O)},y=function(e){return i(C.hdlr,I[e])},o=function(e){return i(C.mdat,e)},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),i(C.mdhd,t)},g=function(e){return i(C.mdia,v(e),y(e.type),u(e))},l=function(e){return i(C.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},u=function(e){return i(C.minf,"video"===e.type?i(C.vmhd,L):i(C.smhd,D),r(),_(e))},c=function(e,t){var n=[],r=t.length;while(r--)n[r]=S(t[r]);return i.apply(null,[C.moof,l(e)].concat(n))},d=function(e){var t=e.length,n=[];while(t--)n[t]=f(e[t]);return i.apply(null,[C.moov,p(4294967295)].concat(n).concat(h(e)))},h=function(e){var t=e.length,n=[];while(t--)n[t]=w(e[t]);return i.apply(null,[C.mvex].concat(n))},p=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&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 i(C.mvhd,t)},b=function(e){var t,n,r=e.samples||[],a=new Uint8Array(4+r.length);for(n=0;n<r.length;n++)t=r[n].flags,a[n+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return i(C.sdtp,a)},_=function(e){return i(C.stbl,T(e),i(C.stts,B),i(C.stsc,R),i(C.stsz,N),i(C.stco,j))},function(){var e,t;T=function(n){return i(C.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===n.type?e(n):t(n))},e=function(e){var t,n=e.sps||[],r=e.pps||[],a=[],s=[];for(t=0;t<n.length;t++)a.push((65280&n[t].byteLength)>>>8),a.push(255&n[t].byteLength),a=a.concat(Array.prototype.slice.call(n[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]));return i(C.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]),i(C.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length]).concat(a).concat([r.length]).concat(s))),i(C.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},t=function(e){return i(C.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]),a(e))}}(),m=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&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 i(C.tkhd,t)},S=function(e){var t,n,r,a,s,o,l;return t=i(C.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&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])),o=Math.floor(e.baseMediaDecodeTime/(U+1)),l=Math.floor(e.baseMediaDecodeTime%(U+1)),n=i(C.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),s=92,"audio"===e.type?(r=k(e,s),i(C.traf,t,n,r)):(a=b(e),r=k(e,a.length+s),i(C.traf,t,n,r,a))},f=function(e){return e.duration=e.duration||4294967295,i(C.trak,m(e),g(e))},w=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&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),i(C.trex,t)},function(){var e,t,n;n=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,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var r,a,s,o;for(a=e.samples||[],t+=20+16*a.length,r=n(a,t),o=0;o<a.length;o++)s=a[o],r=r.concat([(4278190080&s.duration)>>>24,(16711680&s.duration)>>>16,(65280&s.duration)>>>8,255&s.duration,(4278190080&s.size)>>>24,(16711680&s.size)>>>16,(65280&s.size)>>>8,255&s.size,s.flags.isLeading<<2|s.flags.dependsOn,s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,61440&s.flags.degradationPriority,15&s.flags.degradationPriority,(4278190080&s.compositionTimeOffset)>>>24,(16711680&s.compositionTimeOffset)>>>16,(65280&s.compositionTimeOffset)>>>8,255&s.compositionTimeOffset]);return i(C.trun,new Uint8Array(r))},e=function(e,t){var r,a,s,o;for(a=e.samples||[],t+=20+8*a.length,r=n(a,t),o=0;o<a.length;o++)s=a[o],r=r.concat([(4278190080&s.duration)>>>24,(16711680&s.duration)>>>16,(65280&s.duration)>>>8,255&s.duration,(4278190080&s.size)>>>24,(16711680&s.size)>>>16,(65280&s.size)>>>8,255&s.size]);return i(C.trun,new Uint8Array(r))},k=function(n,i){return"audio"===n.type?e(n,i):t(n,i)}}(),e.exports={ftyp:s,mdat:o,moof:c,moov:d,initSegment:function(e){var t,n=s(),i=d(e);return t=new Uint8Array(n.byteLength+i.byteLength),t.set(n),t.set(i,n.byteLength),t}}},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("23cb"),a=n("a691"),s=n("50c4"),o=n("7b0b"),l=n("65f0"),u=n("8418"),c=n("1dde"),d=c("splice"),h=Math.max,p=Math.min,f=9007199254740991,m="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,i,c,d,g,v,y=o(this),b=s(y.length),_=r(e,b),T=arguments.length;if(0===T?n=i=0:1===T?(n=0,i=b-_):(n=T-2,i=p(h(a(t),0),b-_)),b+n-i>f)throw TypeError(m);for(c=l(y,i),d=0;d<i;d++)g=_+d,g in y&&u(c,d,y[g]);if(c.length=i,n<i){for(d=_;d<b-i;d++)g=d+i,v=d+n,g in y?y[v]=y[g]:delete y[v];for(d=b;d>b-i+n;d--)delete y[d-1]}else if(n>i)for(d=b-i;d>_;d--)g=d+i-1,v=d+n-1,g in y?y[v]=y[g]:delete y[v];for(d=0;d<n;d++)y[d+_]=arguments[d+2];return y.length=b-i+n,c}})},a4b4:function(e,t,n){var i=n("342f");e.exports=/web0s(?!.*chrome)/i.test(i)},a559:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports["default"]=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},a59e:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},a64c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n("be09"),o=r(s),l=n("1376"),u=r(l),c=function(e){e.on("data",(function(e){o["default"].postMessage({action:"data",segment:e})})),e.on("done",(function(e){o["default"].postMessage({action:"done"})}))},d=function(){function e(t){a(this,e),this.options=t||{},this.init()}return i(e,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new u["default"].Transmuxer(this.options),c(this.transmuxer)}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"flush",value:function(){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}}]),e}(),h=function(e){e.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new d(e.data.options):(this.messageHandlers||(this.messageHandlers=new d),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}};t["default"]=function(e){return new h(e)},e.exports=t["default"]},a65d:function(e,t,n){"use strict";var i,r=n("0129"),a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=function(){var e;i.prototype.init.call(this),this.push=function(t){var n,i,r,s,o,l,u=0,c=0;if("audio"===t.type){e?(s=e,e=new Uint8Array(s.byteLength+t.data.byteLength),e.set(s),e.set(t.data,s.byteLength)):e=t.data;while(u+5<e.length)if(255===e[u]&&240===(246&e[u+1])){if(i=2*(1&~e[u+1]),n=(3&e[u+3])<<11|e[u+4]<<3|(224&e[u+5])>>5,o=1024*(1+(3&e[u+6])),l=9e4*o/a[(60&e[u+2])>>>2],r=u+n,e.byteLength<r)return;if(this.trigger("data",{pts:t.pts+c*l,dts:t.dts+c*l,sampleCount:o,audioobjecttype:1+(e[u+2]>>>6&3),channelcount:(1&e[u+2])<<2|(192&e[u+3])>>>6,samplerate:a[(60&e[u+2])>>>2],samplingfrequencyindex:(60&e[u+2])>>>2,samplesize:16,data:e.subarray(u+7+i,r)}),e.byteLength===r)return void(e=void 0);c++,e=e.subarray(r)}else u++}},this.flush=function(){this.trigger("done")}},i.prototype=new r,e.exports=i},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("fea9"),s=n("d039"),o=n("d066"),l=n("4840"),u=n("cdf9"),c=n("6eeb"),d=!!a&&s((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));if(i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=l(this,o("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&"function"==typeof a){var h=o("Promise").prototype["finally"];a.prototype["finally"]!==h&&c(a.prototype,"finally",h,{unsafe:!0})}},a8c1:function(e,t,n){"use strict";function i(e){return e===window}n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"h",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h}));var r=/scroll|auto/i;function a(e,t){void 0===t&&(t=window);var n=e;while(n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==t){var i=window.getComputedStyle(n),a=i.overflowY;if(r.test(a))return n;n=n.parentNode}return t}function s(e){var t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function o(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function l(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function u(e){o(window,e),o(document.body,e)}function c(e,t){if(i(e))return 0;var n=t?s(t):l();return e.getBoundingClientRect().top+n}function d(e){return i(e)?e.innerHeight:e.getBoundingClientRect().height}function h(e){return i(e)?0:e.getBoundingClientRect().top}},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),a=n("94ca"),s=n("6eeb"),o=n("5135"),l=n("c6b6"),u=n("7156"),c=n("d9b5"),d=n("c04e"),h=n("d039"),p=n("7c73"),f=n("241c").f,m=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,y="Number",b=r[y],_=b.prototype,T=l(p(_))==y,S=function(e){if(c(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,i,r,a,s,o,l,u=d(e,"number");if("string"==typeof u&&u.length>2)if(u=v(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+u}for(a=u.slice(2),s=a.length,o=0;o<s;o++)if(l=a.charCodeAt(o),l<48||l>r)return NaN;return parseInt(a,i)}return+u};if(a(y,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var w,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(T?h((function(){_.valueOf.call(n)})):l(n)!=y)?u(new b(S(t)),n,k):S(t)},C=i?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;C.length>E;E++)o(b,w=C[E])&&!o(k,w)&&g(k,w,m(b,w));k.prototype=_,_.constructor=k,s(r,y,k)}},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ac62:function(e,t,n){"use strict";var i=n("6516"),r=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},a=function(e){return!!(64&e[1])},s=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},o=function(e,t){var n=r(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},l=function(e){var t=a(e),n=4+s(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},u=function(e){var t={},n=a(e),i=4+s(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r,o,l;r=(15&e[i+1])<<8|e[i+2],o=3+r-4,l=(15&e[i+10])<<8|e[i+11];var u=12+l;while(u<o){var c=i+u;t[(31&e[c+1])<<8|e[c+2]]=e[c],u+=5+((15&e[c+3])<<8|e[c+4])}return t}},c=function(e,t){var n=r(e),a=t[n];switch(a){case i.H264_STREAM_TYPE:return"video";case i.ADTS_STREAM_TYPE:return"audio";case i.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},d=function(e){var t=a(e);if(!t)return null;var n=4+s(e);if(n>=e.byteLength)return null;var i,r=null;return i=e[n+7],192&i&&(r={},r.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,r.pts*=4,r.pts+=(6&e[n+13])>>>1,r.dts=r.pts,64&i&&(r.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,r.dts*=4,r.dts+=(6&e[n+18])>>>1)),r},h=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}},p=function(e){for(var t,n=4+s(e),i=e.subarray(n),r=0,a=0,o=!1;a<i.byteLength-3;a++)if(1===i[a+2]){r=a+5;break}while(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&&(t=h(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!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}t=h(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0),a=r-2,r+=3;break;default:r+=3;break}return i=i.subarray(a),r-=a,a=0,i&&i.byteLength>3&&(t=h(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0)),o};e.exports={parseType:o,parsePat:l,parsePmt:u,parsePayloadUnitStartIndicator:a,parsePesType:c,parsePesTime:d,videoPacketContainsKeyFrame:p}},ad06:function(e,t,n){"use strict";var i=n("2638"),r=n.n(i),a=n("d282"),s=n("ea8e"),o=n("ba31"),l=n("6f2f"),u=Object(a["a"])("icon"),c=u[0],d=u[1];function h(e){return!!e&&-1!==e.indexOf("/")}var p={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function f(e){return e&&p[e]||e}function m(e,t,n,i){var a,u=f(t.name),c=h(u);return e(t.tag,r()([{class:[t.classPrefix,c?"":t.classPrefix+"-"+u],style:{color:t.color,fontSize:Object(s["a"])(t.size)}},Object(o["b"])(i,!0)]),[n.default&&n.default(),c&&e("img",{class:d("image"),attrs:{src:u}}),e(l["a"],{attrs:{dot:t.dot,info:null!=(a=t.badge)?a:t.info}})])}m.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:d()}},t["a"]=c(m)},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae50:function(e,t,n){"use strict";var i,r=n("0129");i=function(){var e=new Uint8Array,t=0;i.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.parseId3TagSize=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],i=e[t+5],r=(16&i)>>4;return r?n+20:n+10},this.parseAdtsSize=function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3,r=6144&e[t+3];return r|i|n},this.push=function(n){var i,r,a,s,o=0,l=0;e.length?(s=e.length,e=new Uint8Array(n.byteLength+s),e.set(e.subarray(0,s)),e.set(n,s)):e=n;while(e.length-l>=3)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(!0&e[l]&&240===(240&e[l+1])){if(e.length-l<7)break;if(o=this.parseAdtsSize(e,l),o>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else l++;else{if(e.length-l<10)break;if(o=this.parseId3TagSize(e,l),o>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array}},i.prototype=new r,e.exports=i},ae93:function(e,t,n){"use strict";var i,r,a,s=n("d039"),o=n("e163"),l=n("9112"),u=n("5135"),c=n("b622"),d=n("c430"),h=c("iterator"),p=!1,f=function(){return this};[].keys&&(a=[].keys(),"next"in a?(r=o(o(a)),r!==Object.prototype&&(i=r)):p=!0);var m=void 0==i||s((function(){var e={};return i[h].call(e)!==e}));m&&(i={}),d&&!m||u(i,h)||l(i,h,f),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},b03c:function(e,t){var n="auto",i={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function a(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function s(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e,t,i){this.hasBeenReset=!1;var r="",o=!1,l=e,u=t,c=i,d=null,h="",p=!0,f="auto",m="start",g="auto",v="auto",y=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");u=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=a(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!==typeof e&&e!==n)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=s(e);t?(m=t,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 new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=s(e);t?(v=t,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 new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=s(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b074:function(e,t,n){var i=n("89a7"),r=n("e1c8"),a=n("b30f"),s=n("e003"),o=r.DOMImplementation,l=i.NAMESPACE,u=s.ParseError,c=s.XMLReader;function d(e){this.options=e||{locator:{}}}function h(e,t,n){if(!e){if(t instanceof p)return t;e=t}var i={},r=e instanceof 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+"]\t"+e+m(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}function p(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,i=new c,r=n.domBuilder||new p,s=n.errorHandler,o=n.locator,u=n.xmlns||{},d=/\/x?html?$/.test(t),f=d?a.HTML_ENTITIES:a.XML_ENTITIES;return o&&r.setDocumentLocator(o),i.errorHandler=h(s,r,o),i.domBuilder=n.domBuilder||r,d&&(u[""]=l.HTML),u.xml=u.xml||l.XML,e&&"string"===typeof e?i.parse(e,u,f):i.errorHandler.error("invalid doc source"),r.doc},p.prototype={startDocument:function(){this.doc=(new o).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;v(this,a),this.currentElement=a,this.locator&&f(this.locator,a);for(var o=0;o<s;o++){e=i.getURI(o);var l=i.getValue(o),u=(n=i.getQName(o),r.createAttributeNS(e,n));this.locator&&f(i.getLocator(o),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}},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&&f(this.locator,n),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.apply(this,arguments),e){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&f(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=g.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i),v(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&&f(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){p.prototype[e]=function(){return null}})),t.__DOMHandler=p,t.DOMParser=d,t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer},b0c0:function(e,t,n){var i=n("83ab"),r=n("9bf2").f,a=Function.prototype,s=a.toString,o=/^\s*function ([^ (]*)/,l="name";i&&!(l in a)&&r(a,l,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(e){return""}}})},b17c:function(e,t,n){n("4ae1");var i=n("4a4b"),r=n("6f8f");function a(t,n,s){return r()?(e.exports=a=Reflect.construct,e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e,t,n){var r=[null];r.push.apply(r,t);var a=Function.bind.apply(e,r),s=new a;return n&&i(s,n.prototype),s},e.exports["default"]=e.exports,e.exports.__esModule=!0),a.apply(null,arguments)}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},b30f:function(e,t,n){var i=n("89a7").freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Ã",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Ã…",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"ÃŒ",Iacute:"Ã",Icirc:"ÃŽ",Iuml:"Ã",ETH:"Ã",Ntilde:"Ñ",Ograve:"Ã’",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ãœ",Yacute:"Ã",THORN:"Þ",szlig:"ß",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"ÂÂ",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"âˆ",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"âˆ",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"â‹…",Alpha:"Α",Beta:"Î’",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Îœ",Nu:"Î",Xi:"Ξ",Omicron:"Ο",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï€",rho:"Ï",sigmaf:"Ï‚",sigma:"σ",tau:"Ï„",upsilon:"Ï…",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"Ï‘",upsih:"Ï’",piv:"Ï–",OElig:"Å’",oelig:"Å“",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",fnof:"Æ’",circ:"ˆ",tilde:"Ëœ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"â€",lrm:"‎",rlm:"â€",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"â€",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"â„¢",larr:"â†",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"â—Š",spades:"â™ ",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},b313:function(e,t,n){"use strict";var i=String.prototype.replace,r=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:a.RFC3986,formatters:{RFC1738:function(e){return i.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986}},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),a=n("7aac"),s=n("30b5"),o=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,n){var d=e.data,h=e.headers,p=e.responseType;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var v=o(e.baseURL,e.url);function y(){if(f){var i="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,a=p&&"text"!==p&&"json"!==p?f.response:f.responseText,s={data:a,status:f.status,statusText:f.statusText,headers:i,config:e,request:f};r(t,n,s),f=null}}if(f.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&i.forEach(h,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},b52b:function(e,t,n){"use strict";var i;i=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 new 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?(n<<=e,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,i>0?n<<=r:t>0&&this.loadWord(),r=e-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(0!==(n&2147483648>>>e))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()},e.exports=i},b575:function(e,t,n){var i,r,a,s,o,l,u,c,d=n("da84"),h=n("06cf").f,p=n("2cf4").set,f=n("1cdc"),m=n("d4c3"),g=n("a4b4"),v=n("605d"),y=d.MutationObserver||d.WebKitMutationObserver,b=d.document,_=d.process,T=d.Promise,S=h(d,"queueMicrotask"),w=S&&S.value;w||(i=function(){var e,t;v&&(e=_.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?s():a=void 0,n}}a=void 0,e&&e.enter()},f||v||g||!y||!b?!m&&T&&T.resolve?(u=T.resolve(void 0),u.constructor=T,c=u.then,s=function(){c.call(u,i)}):s=v?function(){_.nextTick(i)}:function(){p.call(d,i)}:(o=!0,l=b.createTextNode(""),new y(i).observe(l,{characterData:!0}),s=function(){l.data=o=!o})),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),r||(r=t,s()),a=t}},b622:function(e,t,n){var i=n("da84"),r=n("5692"),a=n("5135"),s=n("90e3"),o=n("4930"),l=n("fdbf"),u=r("wks"),c=i.Symbol,d=l?c:c&&c.withoutSetter||s;e.exports=function(e){return a(u,e)&&(o||"string"==typeof u[e])||(o&&a(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},b639:function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var i=n("1fb5"),r=n("9152"),a=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,i):"string"===typeof t?f(e,t,n):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function p(e,t){if(d(t),e=l(e,t<0?0:0|y(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|_(t,n);e=l(e,i);var r=e.write(t,n);return r!==i&&(e=e.slice(0,r)),e}function m(e,t){var n=t.length<0?0:0|y(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function g(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=m(e,t),e}function v(e,t){if(u.isBuffer(t)){var n=0|y(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&a(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(i)return K(e).length;t=(""+t).toLowerCase(),i=!0}}function T(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function S(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function w(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:k(e,t,n,i,r);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,i,r){var a,s=1,o=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var c=-1;for(a=n;a<o;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else-1!==c&&(a-=a-c),c=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return-1}function C(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var s=0;s<i;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[n+s]=o}return s}function E(e,t,n,i){return ee(K(t,e.length-n),e,n,i)}function x(e,t,n,i){return ee(Q(t),e,n,i)}function O(e,t,n,i){return x(e,t,n,i)}function A(e,t,n,i){return ee(Z(t),e,n,i)}function P(e,t,n,i){return ee(J(t,e.length-n),e,n,i)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);var i=[],r=t;while(r<n){var a,s,o,l,u=e[r],c=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:a=e[r+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=e[r+1],s=e[r+2],128===(192&a)&&128===(192&s)&&(l=(15&u)<<12|(63&a)<<6|63&s,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=e[r+1],s=e[r+2],o=e[r+3],128===(192&a)&&128===(192&s)&&128===(192&o)&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=d}return M(i)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=u.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):T.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,i,r){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,s=n-t,o=Math.min(a,s),l=this.slice(i,r),c=e.slice(t,n),d=0;d<o;++d)if(l[d]!==c[d]){a=l[d],s=c[d];break}return a<s?-1:s<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},u.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function M(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=D));return n}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function R(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function N(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=Y(e[a]);return r}function B(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,i,r,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function $(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r<a;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r<a;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function V(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,i,a){return a||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function q(e,t,n,i,a){return a||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}u.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var r=t-e;n=new u(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=this[e],r=1,a=0;while(++a<t&&(r*=256))i+=this[e+a]*r;return i},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=this[e+--t],r=1;while(t>0&&(r*=256))i+=this[e+--t]*r;return i},u.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=this[e],r=1,a=0;while(++a<t&&(r*=256))i+=this[e+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=t,r=1,a=this[e+--i];while(i>0&&(r*=256))a+=this[e+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),r.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),r.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),r.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),r.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;F(this,e,t,n,r,0)}var a=1,s=0;this[t]=255&e;while(++s<n&&(a*=256))this[t+s]=e/a&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;F(this,e,t,n,r,0)}var a=n-1,s=1;this[t+a]=255&e;while(--a>=0&&(s*=256))this[t+a]=e/s&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);F(this,e,t,n,r-1,-r)}var a=0,s=1,o=0;this[t]=255&e;while(++a<n&&(s*=256))e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);F(this,e,t,n,r-1,-r)}var a=n-1,s=1,o=0;this[t+a]=255&e;while(--a>=0&&(s*=256))e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,a=i-n;if(this===e&&n<t&&t<i)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},u.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=u.isBuffer(e)?e:K(new u(e,i).toString()),o=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%o]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=X(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var i=e.length,r=null,a=[],s=0;s<i;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Q(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,i,r,a=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function Z(e){return i.toByteArray(G(e))}function ee(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,n("c8ba"))},b658:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("1b5c"),a=n("de2e"),s=i(a);t["default"]={decrypt:r.decrypt,Decrypter:r.Decrypter,AsyncStream:s["default"]},e.exports=t["default"]},b727:function(e,t,n){var i=n("0366"),r=n("44ad"),a=n("7b0b"),s=n("50c4"),o=n("65f0"),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,d=6==e,h=7==e,p=5==e||d;return function(f,m,g,v){for(var y,b,_=a(f),T=r(_),S=i(m,g,3),w=s(T.length),k=0,C=v||o,E=t?C(f,w):n||h?C(f,0):void 0;w>k;k++)if((p||k in T)&&(y=T[k],b=S(y,k,_),e))if(t)E[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:l.call(E,y)}else switch(e){case 4:return!1;case 7:l.call(E,y)}return d?-1:u||c?c:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b970:function(e,t,n){"use strict";var i=n("c31d"),r=n("2638"),a=n.n(r),s=n("2b0e"),o=n("d282"),l=n("ba31"),u=n("6605"),c=n("ad06"),d=n("a142"),h=Object(o["a"])("popup"),p=h[0],f=h[1],m=p({mixins:[Object(u["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var e=this,t=function(t){return function(n){return e.$emit(t,n)}};this.onClick=t("click"),this.onOpened=t("opened"),this.onClosed=t("closed")},methods:{onClickCloseIcon:function(e){this.$emit("click-close-icon",e),this.close()}},render:function(){var e,t=arguments[0];if(this.shouldRender){var n=this.round,i=this.position,r=this.duration,a="center"===i,s=this.transition||(a?"van-fade":"van-popup-slide-"+i),o={};if(Object(d["c"])(r)){var l=a?"animationDuration":"transitionDuration";o[l]=r+"s"}return t("transition",{attrs:{appear:this.transitionAppear,name:s},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],style:o,class:f((e={round:n},e[i]=i,e["safe-area-inset-bottom"]=this.safeAreaInsetBottom,e)),on:{click:this.onClick}},[this.slots(),this.closeable&&t(c["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:f("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),g=n("543e"),v=Object(o["a"])("action-sheet"),y=v[0],b=v[1];function _(e,t,n,i){var r=t.title,o=t.cancelText,u=t.closeable;function d(){Object(l["a"])(i,"input",!1),Object(l["a"])(i,"cancel")}function h(){if(r)return e("div",{class:b("header")},[r,u&&e(c["a"],{attrs:{name:t.closeIcon},class:b("close"),on:{click:d}})])}function p(n,r){var a=n.disabled,o=n.loading,u=n.callback;function c(e){e.stopPropagation(),a||o||(u&&u(n),t.closeOnClickAction&&Object(l["a"])(i,"input",!1),s["a"].nextTick((function(){Object(l["a"])(i,"select",n,r)})))}function d(){return o?e(g["a"],{class:b("loading-icon")}):[e("span",{class:b("name")},[n.name]),n.subname&&e("div",{class:b("subname")},[n.subname])]}return e("button",{attrs:{type:"button"},class:[b("item",{disabled:a,loading:o}),n.className],style:{color:n.color},on:{click:c}},[d()])}function f(){if(o)return[e("div",{class:b("gap")}),e("button",{attrs:{type:"button"},class:b("cancel"),on:{click:d}},[o])]}function v(){var i=(null==n.description?void 0:n.description())||t.description;if(i)return e("div",{class:b("description")},[i])}return e(m,a()([{class:b(),attrs:{position:"bottom",round:t.round,value:t.value,overlay:t.overlay,duration:t.duration,lazyRender:t.lazyRender,lockScroll:t.lockScroll,getContainer:t.getContainer,closeOnPopstate:t.closeOnPopstate,closeOnClickOverlay:t.closeOnClickOverlay,safeAreaInsetBottom:t.safeAreaInsetBottom}},Object(l["b"])(i,!0)]),[h(),v(),e("div",{class:b("content")},[t.actions&&t.actions.map(p),null==n.default?void 0:n.default()]),f()])}_.props=Object(i["a"])({},u["b"],{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var T=y(_);function S(e){return e=e.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(e)||/^0[0-9-]{10,13}$/.test(e)}var w=44,k={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},C=n("1325"),E="#ee0a24",x="van-hairline",O=x+"--top",A=x+"--left",P=x+"--bottom",I=x+"--surround",L=x+"--top-bottom",D=x+"-unset--top-bottom",M=n("ea8e");function j(e){if(!Object(d["c"])(e))return e;if(Array.isArray(e))return e.map((function(e){return j(e)}));if("object"===typeof e){var t={};return Object.keys(e).forEach((function(n){t[n]=j(e[n])})),t}return e}function R(e,t,n){return Math.min(Math.max(e,t),n)}function N(e,t,n){var i=e.indexOf(t),r="";return-1===i?e:"-"===t&&0!==i?e.slice(0,i):("."===t&&e.match(/^(\.|-\.)/)&&(r=i?"-0":"0"),r+e.slice(0,i+1)+e.slice(i).replace(n,""))}function B(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!0),e=t?N(e,".",/\./g):e.split(".")[0],e=n?N(e,"-",/-/g):e.replace(/-/,"");var i=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function U(e,t){var n=Math.pow(10,10);return Math.round((e+t)*n)/n}var F=n("3875"),$=200,H=300,V=15,z=Object(o["a"])("picker-column"),q=z[0],W=z[1];function G(e){var t=window.getComputedStyle(e),n=t.transform||t.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}function X(e){return Object(d["f"])(e)&&e.disabled}var Y=q({mixins:[F["a"]],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:j(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var e=this.$parent.children;e&&e.splice(e.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(e){this.setIndex(e)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(e){JSON.stringify(e)!==JSON.stringify(this.options)&&(this.options=j(e),this.setIndex(this.defaultIndex))},onTouchStart:function(e){if(!this.readonly){if(this.touchStart(e),this.moving){var t=G(this.$refs.wrapper);this.offset=Math.min(0,t-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(e){if(!this.readonly){this.touchMove(e),"vertical"===this.direction&&(this.moving=!0,Object(C["c"])(e,!0)),this.offset=R(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var t=Date.now();t-this.touchStartTime>H&&(this.touchStartTime=t,this.momentumOffset=this.offset)}},onTouchEnd:function(){var e=this;if(!this.readonly){var t=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime,i=n<H&&Math.abs(t)>V;if(i)this.momentum(t,n);else{var r=this.getIndexByOffset(this.offset);this.duration=$,this.setIndex(r,!0),setTimeout((function(){e.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(e){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=$,this.setIndex(e,!0))},adjustIndex:function(e){e=R(e,0,this.count);for(var t=e;t<this.count;t++)if(!X(this.options[t]))return t;for(var n=e-1;n>=0;n--)if(!X(this.options[n]))return n},getOptionText:function(e){return Object(d["f"])(e)&&this.valueKey in e?e[this.valueKey]:e},setIndex:function(e,t){var n=this;e=this.adjustIndex(e)||0;var i=-e*this.itemHeight,r=function(){e!==n.currentIndex&&(n.currentIndex=e,t&&n.$emit("change",e))};this.moving&&i!==this.offset?this.transitionEndTrigger=r:r(),this.offset=i},setValue:function(e){for(var t=this.options,n=0;n<t.length;n++)if(this.getOptionText(t[n])===e)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(e){return R(Math.round(-e/this.itemHeight),0,this.count-1)},momentum:function(e,t){var n=Math.abs(e/t);e=this.offset+n/.003*(e<0?-1:1);var i=this.getIndexByOffset(e);this.duration=+this.swipeDuration,this.setIndex(i,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var e=this,t=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map((function(i,r){var s,o=e.getOptionText(i),l=X(i),u={style:n,attrs:{role:"button",tabindex:l?-1:0},class:[W("item",{disabled:l,selected:r===e.currentIndex})],on:{click:function(){e.onClickItem(r)}}},c={class:"van-ellipsis",domProps:(s={},s[e.allowHtml?"innerHTML":"textContent"]=o,s)};return t("li",a()([{},u]),[e.slots("option",i)||t("div",a()([{},c]))])}))}},render:function(){var e=arguments[0],t={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return e("div",{class:[W(),this.className]},[e("ul",{ref:"wrapper",style:t,class:W("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),K=Object(o["a"])("picker"),Q=K[0],J=K[1],Z=K[2],ee=Q({props:Object(i["a"])({},k,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(M["b"])(this.itemHeight):w},dataType:function(){var e=this.columns,t=e[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var e=this.columns,t=this.dataType;"text"===t?this.formattedColumns=[{values:e}]:"cascade"===t?this.formatCascade():this.formattedColumns=e},formatCascade:function(){var e=[],t={children:this.columns};while(t&&t.children){var n,i=t,r=i.children,a=null!=(n=t.defaultIndex)?n:+this.defaultIndex;while(r[a]&&r[a].disabled){if(!(a<r.length-1)){a=0;break}a++}e.push({values:t.children,className:t.className,defaultIndex:a}),t=r[a]}this.formattedColumns=e},emit:function(e){var t=this;if("text"===this.dataType)this.$emit(e,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(e){return e[t.valueKey]}))),this.$emit(e,n,this.getIndexes())}},onCascadeChange:function(e){for(var t={children:this.columns},n=this.getIndexes(),i=0;i<=e;i++)t=t.children[n[i]];while(t&&t.children)e++,this.setColumnValues(e,t.children),t=t.children[t.defaultIndex||0]},onChange:function(e){var t=this;if("cascade"===this.dataType&&this.onCascadeChange(e),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(e){return e[t.valueKey]}))),this.$emit("change",this,n,e)}},getColumn:function(e){return this.children[e]},getColumnValue:function(e){var t=this.getColumn(e);return t&&t.getValue()},setColumnValue:function(e,t){var n=this.getColumn(e);n&&(n.setValue(t),"cascade"===this.dataType&&this.onCascadeChange(e))},getColumnIndex:function(e){return(this.getColumn(e)||{}).currentIndex},setColumnIndex:function(e,t){var n=this.getColumn(e);n&&(n.setIndex(t),"cascade"===this.dataType&&this.onCascadeChange(e))},getColumnValues:function(e){return(this.children[e]||{}).options},setColumnValues:function(e,t){var n=this.children[e];n&&n.setOptions(t)},getValues:function(){return this.children.map((function(e){return e.getValue()}))},setValues:function(e){var t=this;e.forEach((function(e,n){t.setColumnValue(n,e)}))},getIndexes:function(){return this.children.map((function(e){return e.currentIndex}))},setIndexes:function(e){var t=this;e.forEach((function(e,n){t.setColumnIndex(n,e)}))},confirm:function(){this.children.forEach((function(e){return e.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var e=this.$createElement,t=this.slots("title");return t||(this.title?e("div",{class:["van-ellipsis",J("title")]},[this.title]):void 0)},genCancel:function(){var e=this.$createElement;return e("button",{attrs:{type:"button"},class:J("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||Z("cancel")])},genConfirm:function(){var e=this.$createElement;return e("button",{attrs:{type:"button"},class:J("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||Z("confirm")])},genToolbar:function(){var e=this.$createElement;if(this.showToolbar)return e("div",{class:J("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var e=this.$createElement,t=this.itemPxHeight,n=t*this.visibleItemCount,i={height:t+"px"},r={height:n+"px"},a={backgroundSize:"100% "+(n-t)/2+"px"};return e("div",{class:J("columns"),style:r,on:{touchmove:C["c"]}},[this.genColumnItems(),e("div",{class:J("mask"),style:a}),e("div",{class:[D,J("frame")],style:i})])},genColumnItems:function(){var e=this,t=this.$createElement;return this.formattedColumns.map((function(n,i){var r;return t(Y,{attrs:{readonly:e.readonly,valueKey:e.valueKey,allowHtml:e.allowHtml,className:n.className,itemHeight:e.itemPxHeight,defaultIndex:null!=(r=n.defaultIndex)?r:+e.defaultIndex,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,initialOptions:n.values},scopedSlots:{option:e.$scopedSlots.option},on:{change:function(){e.onChange(i)}}})}))}},render:function(e){return e("div",{class:J()},["top"===this.toolbarPosition?this.genToolbar():e(),this.loading?e(g["a"],{class:J("loading")}):e(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():e()])}}),te=Object(o["a"])("area"),ne=te[0],ie=te[1],re="000000";function ae(e){return"9"===e[0]}function se(e,t){var n=e.$slots,i=e.$scopedSlots,r={};return t.forEach((function(e){i[e]?r[e]=i[e]:n[e]&&(r[e]=function(){return n[e]})})),r}var oe=ne({props:Object(i["a"])({},k,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:ae},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(e){this.code=e,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var e=this;this.$nextTick((function(){e.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(e,t){var n=[];if("province"!==e&&!t)return n;var i=this[e];if(n=Object.keys(i).map((function(e){return{code:e,name:i[e]}})),t&&(this.isOverseaCode(t)&&"city"===e&&(t="9"),n=n.filter((function(e){return 0===e.code.indexOf(t)}))),this.placeholderMap[e]&&n.length){var r="";"city"===e?r=re.slice(2,4):"county"===e&&(r=re.slice(4,6)),n.unshift({code:""+t+r,name:this.placeholderMap[e]})}return n},getIndex:function(e,t){var n="province"===e?2:"city"===e?4:6,i=this.getList(e,t.slice(0,n-2));this.isOverseaCode(t)&&"province"===e&&(n=1),t=t.slice(0,n);for(var r=0;r<i.length;r++)if(i[r].code.slice(0,n)===t)return r;return 0},parseOutputValues:function(e){var t=this;return e.map((function(e,n){return e?(e=JSON.parse(JSON.stringify(e)),e.code&&e.name!==t.columnsPlaceholder[n]||(e.code="",e.name=""),e):e}))},onChange:function(e,t,n){this.code=t[n].code,this.setValues();var i=this.parseOutputValues(e.getValues());this.$emit("change",e,i,n)},onConfirm:function(e,t){e=this.parseOutputValues(e),this.setValues(),this.$emit("confirm",e,t)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return re;var e=Object.keys(this.county);if(e[0])return e[0];var t=Object.keys(this.city);return t[0]?t[0]:""},setValues:function(){var e=this.code;e||(e=this.getDefaultCode());var t=this.$refs.picker,n=this.getList("province"),i=this.getList("city",e.slice(0,2));t&&(t.setColumnValues(0,n),t.setColumnValues(1,i),i.length&&"00"===e.slice(2,4)&&!this.isOverseaCode(e)&&(e=i[0].code),t.setColumnValues(2,this.getList("county",e.slice(0,4))),t.setIndexes([this.getIndex("province",e),this.getIndex("city",e),this.getIndex("county",e)]))},getValues:function(){var e=this.$refs.picker,t=e?e.getValues().filter((function(e){return!!e})):[];return t=this.parseOutputValues(t),t},getArea:function(){var e=this.getValues(),t={code:"",country:"",province:"",city:"",county:""};if(!e.length)return t;var n=e.map((function(e){return e.name})),i=e.filter((function(e){return!!e.code}));return t.code=i.length?i[i.length-1].code:"",this.isOverseaCode(t.code)?(t.country=n[1]||"",t.province=n[2]||""):(t.province=n[0]||"",t.city=n[1]||"",t.county=n[2]||""),t},reset:function(e){this.code=e||"",this.setValues()}},render:function(){var e=arguments[0],t=Object(i["a"])({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return e(ee,{ref:"picker",class:ie(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:se(this,["title","columns-top","columns-bottom"]),on:Object(i["a"])({},t)})}});function le(e){return"NavigationDuplicated"===e.name||e.message&&-1!==e.message.indexOf("redundant navigation")}function ue(e,t){var n=t.to,i=t.url,r=t.replace;if(n&&e){var a=e[r?"replace":"push"](n);a&&a.catch&&a.catch((function(e){if(e&&!le(e))throw e}))}else i&&(r?location.replace(i):location.href=i)}function ce(e){ue(e.parent&&e.parent.$router,e.props)}var de={url:String,replace:Boolean,to:[String,Object]},he={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},pe=Object(o["a"])("cell"),fe=pe[0],me=pe[1];function ge(e,t,n,i){var r,s=t.icon,o=t.size,u=t.title,h=t.label,p=t.value,f=t.isLink,m=n.title||Object(d["c"])(u);function g(){var i=n.label||Object(d["c"])(h);if(i)return e("div",{class:[me("label"),t.labelClass]},[n.label?n.label():h])}function v(){if(m)return e("div",{class:[me("title"),t.titleClass],style:t.titleStyle},[n.title?n.title():e("span",[u]),g()])}function y(){var i=n.default||Object(d["c"])(p);if(i)return e("div",{class:[me("value",{alone:!m}),t.valueClass]},[n.default?n.default():e("span",[p])])}function b(){return n.icon?n.icon():s?e(c["a"],{class:me("left-icon"),attrs:{name:s,classPrefix:t.iconPrefix}}):void 0}function _(){var i=n["right-icon"];if(i)return i();if(f){var r=t.arrowDirection;return e(c["a"],{class:me("right-icon"),attrs:{name:r?"arrow-"+r:"arrow"}})}}function T(e){Object(l["a"])(i,"click",e),ce(i)}var S=null!=(r=t.clickable)?r:f,w={clickable:S,center:t.center,required:t.required,borderless:!t.border};return o&&(w[o]=o),e("div",a()([{class:me(w),attrs:{role:S?"button":null,tabindex:S?0:null},on:{click:T}},Object(l["b"])(i)]),[b(),v(),y(),_(),null==n.extra?void 0:n.extra()])}ge.props=Object(i["a"])({},he,de);var ve=fe(ge);function ye(){return!d["h"]&&/android/.test(navigator.userAgent.toLowerCase())}function be(){return!d["h"]&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}var _e=n("a8c1"),Te=be();function Se(){Te&&Object(_e["g"])(Object(_e["b"])())}var we=Object(o["a"])("field"),ke=we[0],Ce=we[1],Ee=ke({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:Object(i["a"])({},he,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var e=this.getProp("readonly");if(this.clearable&&!e){var t=Object(d["c"])(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return t&&n}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return Object(i["a"])({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var e=this.getProp("labelWidth");if(e)return{width:Object(M["a"])(e)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(e,t){return new Promise((function(n){var i=t.validator(e,t);if(Object(d["g"])(i))return i.then(n);n(i)}))},isEmptyValue:function(e){return Array.isArray(e)?!e.length:0!==e&&!e},runSyncRule:function(e,t){return(!t.required||!this.isEmptyValue(e))&&!(t.pattern&&!t.pattern.test(e))},getRuleMessage:function(e,t){var n=t.message;return Object(d["e"])(n)?n(e,t):n},runRules:function(e){var t=this;return e.reduce((function(e,n){return e.then((function(){if(!t.validateFailed){var e=t.formValue;return n.formatter&&(e=n.formatter(e,n)),t.runSyncRule(e,n)?n.validator?t.runValidator(e,n).then((function(i){!1===i&&(t.validateFailed=!0,t.validateMessage=t.getRuleMessage(e,n))})):void 0:(t.validateFailed=!0,void(t.validateMessage=t.getRuleMessage(e,n)))}}))}),Promise.resolve())},validate:function(e){var t=this;return void 0===e&&(e=this.rules),new Promise((function(n){e||n(),t.resetValidation(),t.runRules(e).then((function(){t.validateFailed?n({name:t.name,message:t.validateMessage}):n()}))}))},validateWithTrigger:function(e){if(this.vanForm&&this.rules){var t=this.vanForm.validateTrigger===e,n=this.rules.filter((function(n){return n.trigger?n.trigger===e:t}));n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(e,t){void 0===t&&(t="onChange"),e=Object(d["c"])(e)?String(e):"";var n=this.maxlength;if(Object(d["c"])(n)&&e.length>n&&(e=this.value&&this.value.length===+n?this.value:e.slice(0,n)),"number"===this.type||"digit"===this.type){var i="number"===this.type;e=B(e,i,i)}this.formatter&&t===this.formatTrigger&&(e=this.formatter(e));var r=this.$refs.input;r&&e!==r.value&&(r.value=e),e!==this.value&&this.$emit("input",e)},onInput:function(e){e.target.composing||this.updateValue(e.target.value)},onFocus:function(e){this.focused=!0,this.$emit("focus",e);var t=this.getProp("readonly");t&&this.blur()},onBlur:function(e){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",e),this.validateWithTrigger("onBlur"),Se()},onClick:function(e){this.$emit("click",e)},onClickInput:function(e){this.$emit("click-input",e)},onClickLeftIcon:function(e){this.$emit("click-left-icon",e)},onClickRightIcon:function(e){this.$emit("click-right-icon",e)},onClear:function(e){Object(C["c"])(e),this.$emit("input",""),this.$emit("clear",e)},onKeypress:function(e){var t=13;if(e.keyCode===t){var n=this.getProp("submitOnEnter");n||"textarea"===this.type||Object(C["c"])(e),"search"===this.type&&this.blur()}this.$emit("keypress",e)},adjustSize:function(){var e=this.$refs.input;if("textarea"===this.type&&this.autosize&&e){var t=Object(_e["b"])();e.style.height="auto";var n=e.scrollHeight;if(Object(d["f"])(this.autosize)){var i=this.autosize,r=i.maxHeight,a=i.minHeight;r&&(n=Math.min(n,r)),a&&(n=Math.max(n,a))}n&&(e.style.height=n+"px",Object(_e["g"])(t))}},genInput:function(){var e=this.$createElement,t=this.type,n=this.getProp("disabled"),r=this.getProp("readonly"),s=this.slots("input"),o=this.getProp("inputAlign");if(s)return e("div",{class:Ce("control",[o,"custom"]),on:{click:this.onClickInput}},[s]);var l={ref:"input",class:Ce("control",o),domProps:{value:this.value},attrs:Object(i["a"])({},this.$attrs,{name:this.name,disabled:n,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===t)return e("textarea",a()([{},l]));var u,c=t;return"number"===t&&(c="text",u="decimal"),"digit"===t&&(c="tel",u="numeric"),e("input",a()([{attrs:{type:c,inputmode:u}},l]))},genLeftIcon:function(){var e=this.$createElement,t=this.slots("left-icon")||this.leftIcon;if(t)return e("div",{class:Ce("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||e(c["a"],{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var e=this.$createElement,t=this.slots,n=t("right-icon")||this.rightIcon;if(n)return e("div",{class:Ce("right-icon"),on:{click:this.onClickRightIcon}},[t("right-icon")||e(c["a"],{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var e=this.$createElement;if(this.showWordLimit&&this.maxlength){var t=(this.value||"").length;return e("div",{class:Ce("word-limit")},[e("span",{class:Ce("word-num")},[t]),"/",this.maxlength])}},genMessage:function(){var e=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var t=this.errorMessage||this.validateMessage;if(t){var n=this.getProp("errorMessageAlign");return e("div",{class:Ce("error-message",n)},[t])}}},getProp:function(e){return Object(d["c"])(this[e])?this[e]:this.vanForm&&Object(d["c"])(this.vanForm[e])?this.vanForm[e]:void 0},genLabel:function(){var e=this.$createElement,t=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),t]:this.label?e("span",[this.label+t]):void 0}},render:function(){var e,t=arguments[0],n=this.slots,i=this.getProp("disabled"),r=this.getProp("labelAlign"),a={icon:this.genLeftIcon},s=this.genLabel();s&&(a.title=function(){return s});var o=this.slots("extra");return o&&(a.extra=function(){return o}),t(ve,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:Ce("value"),titleClass:[Ce("label",r),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:a,class:Ce((e={error:this.showError,disabled:i},e["label-"+r]=r,e["min-height"]="textarea"===this.type&&!this.autosize,e)),on:{click:this.onClick}},[t("div",{class:Ce("body")},[this.genInput(),this.showClear&&t(c["a"],{attrs:{name:"clear"},class:Ce("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&t("div",{class:Ce("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}}),xe=n("d399"),Oe=Object(o["a"])("button"),Ae=Oe[0],Pe=Oe[1];function Ie(e,t,n,i){var r,s=t.tag,o=t.icon,u=t.type,d=t.color,h=t.plain,p=t.disabled,f=t.loading,m=t.hairline,v=t.loadingText,y=t.iconPosition,b={};function _(e){t.loading&&e.preventDefault(),f||p||(Object(l["a"])(i,"click",e),ce(i))}function T(e){Object(l["a"])(i,"touchstart",e)}d&&(b.color=h?d:"white",h||(b.background=d),-1!==d.indexOf("gradient")?b.border=0:b.borderColor=d);var S=[Pe([u,t.size,{plain:h,loading:f,disabled:p,hairline:m,block:t.block,round:t.round,square:t.square}]),(r={},r[I]=m,r)];function w(){return f?n.loading?n.loading():e(g["a"],{class:Pe("loading"),attrs:{size:t.loadingSize,type:t.loadingType,color:"currentColor"}}):n.icon?e("div",{class:Pe("icon")},[n.icon()]):o?e(c["a"],{attrs:{name:o,classPrefix:t.iconPrefix},class:Pe("icon")}):void 0}function k(){var i,r=[];return"left"===y&&r.push(w()),i=f?v:n.default?n.default():t.text,i&&r.push(e("span",{class:Pe("text")},[i])),"right"===y&&r.push(w()),r}return e(s,a()([{style:b,class:S,attrs:{type:t.nativeType,disabled:p},on:{click:_,touchstart:T}},Object(l["b"])(i)]),[e("div",{class:Pe("content")},[k()])])}Ie.props=Object(i["a"])({},de,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Le=Ae(Ie);function De(e){var t=[];function n(e){e.forEach((function(e){t.push(e),e.componentInstance&&n(e.componentInstance.$children.map((function(e){return e.$vnode}))),e.children&&n(e.children)}))}return n(e),t}function Me(e,t){var n=t.$vnode.componentOptions;if(n&&n.children){var i=De(n.children);e.sort((function(e,t){return i.indexOf(e.$vnode)-i.indexOf(t.$vnode)}))}}function je(e,t){var n,i;void 0===t&&(t={});var r=t.indexKey||"index";return{inject:(n={},n[e]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[e]}},i[r]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(e){e||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var e=this;this.parent&&(this.parent.children=this.parent.children.filter((function(t){return t!==e})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var e=[].concat(this.parent.children,[this]);Me(e,this.parent),this.parent.children=e}}}}}function Re(e){return{provide:function(){var t;return t={},t[e]=this,t},data:function(){return{children:[]}}}}var Ne,Be=Object(o["a"])("goods-action"),Ue=Be[0],Fe=Be[1],$e=Ue({mixins:[Re("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var e=arguments[0];return e("div",{class:Fe({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),He=Object(o["a"])("goods-action-button"),Ve=He[0],ze=He[1],qe=Ve({mixins:[je("vanGoodsAction")],props:Object(i["a"])({},de,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var e=this.parent&&this.parent.children[this.index-1];return!e||e.$options.name!==this.$options.name},isLast:function(){var e=this.parent&&this.parent.children[this.index+1];return!e||e.$options.name!==this.$options.name}},methods:{onClick:function(e){this.$emit("click",e),ue(this.$router,this)}},render:function(){var e=arguments[0];return e(Le,{class:ze([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),We=Object(o["a"])("dialog"),Ge=We[0],Xe=We[1],Ye=We[2],Ke=Ge({mixins:[Object(u["a"])()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(e){var t=this;this.$emit(e),this.value&&(this.beforeClose?(this.loading[e]=!0,this.beforeClose(e,(function(n){!1!==n&&t.loading[e]&&t.onClose(e),t.loading.confirm=!1,t.loading.cancel=!1}))):this.onClose(e))},onClose:function(e){this.close(),this.callback&&this.callback(e)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var e=this,t=this.$createElement;return t($e,{class:Xe("footer")},[this.showCancelButton&&t(qe,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Ye("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Xe("cancel"),on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&t(qe,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Ye("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Xe("confirm"),on:{click:function(){e.handleAction("confirm")}}})])},genButtons:function(){var e,t=this,n=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[O,Xe("footer")]},[this.showCancelButton&&n(Le,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Ye("cancel")},class:Xe("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&n(Le,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Ye("confirm")},class:[Xe("confirm"),(e={},e[A]=i,e)],style:{color:this.confirmButtonColor},on:{click:function(){t.handleAction("confirm")}}})])},genContent:function(e,t){var n=this.$createElement;if(t)return n("div",{class:Xe("content")},[t]);var i=this.message,r=this.messageAlign;if(i){var s,o,l={class:Xe("message",(s={"has-title":e},s[r]=r,s)),domProps:(o={},o[this.allowHtml?"innerHTML":"textContent"]=i,o)};return n("div",{class:Xe("content",{isolated:!e})},[n("div",a()([{},l]))])}}},render:function(){var e=arguments[0];if(this.shouldRender){var t=this.message,n=this.slots(),i=this.slots("title")||this.title,r=i&&e("div",{class:Xe("header",{isolated:!t&&!n})},[i]);return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||t},class:[Xe([this.theme]),this.className],style:{width:Object(M["a"])(this.width)}},[r,this.genContent(i,n),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function Qe(e){return document.body.contains(e)}function Je(){Ne&&Ne.$destroy(),Ne=new(s["a"].extend(Ke))({el:document.createElement("div"),propsData:{lazyRender:!1}}),Ne.$on("input",(function(e){Ne.value=e}))}function Ze(e){return d["h"]?Promise.resolve():new Promise((function(t,n){Ne&&Qe(Ne.$el)||Je(),Object(i["a"])(Ne,Ze.currentOptions,e,{resolve:t,reject:n})}))}Ze.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(e){Ne["confirm"===e?"resolve":"reject"](e)}},Ze.alert=Ze,Ze.confirm=function(e){return Ze(Object(i["a"])({showCancelButton:!0},e))},Ze.close=function(){Ne&&(Ne.value=!1)},Ze.setDefaultOptions=function(e){Object(i["a"])(Ze.currentOptions,e)},Ze.resetDefaultOptions=function(){Ze.currentOptions=Object(i["a"])({},Ze.defaultOptions)},Ze.resetDefaultOptions(),Ze.install=function(){s["a"].use(Ke)},Ze.Component=Ke,s["a"].prototype.$dialog=Ze;var et=Ze,tt=Object(o["a"])("address-edit-detail"),nt=tt[0],it=tt[1],rt=tt[2],at=ye(),st=nt({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(e){this.$emit("select-search",e),this.$emit("input",((e.address||"")+" "+(e.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var e=this.$createElement,t=this.value&&this.focused&&at;if(t)return e("div",{class:it("finish"),on:{click:this.onFinish}},[rt("complete")])},genSearchResult:function(){var e=this,t=this.$createElement,n=this.value,i=this.shouldShowSearchResult,r=this.searchResult;if(i)return r.map((function(i){return t(ve,{key:i.name+i.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:i.address},class:it("search-item"),on:{click:function(){e.onSelect(i)}},scopedSlots:{title:function(){if(i.name){var e=i.name.replace(n,"<span class="+it("keyword")+">"+n+"</span>");return t("div",{domProps:{innerHTML:e}})}}}})}))}},render:function(){var e=arguments[0];return e(ve,{class:it()},[e(Ee,{attrs:{autosize:!0,rows:this.detailRows,clearable:!at,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:rt("label"),maxlength:this.detailMaxlength,placeholder:rt("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:Object(i["a"])({},this.$listeners)}),this.genSearchResult()])}}),ot={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},lt={inject:{vanField:{default:null}},watch:{value:function(){var e=this.vanField;e&&(e.resetValidation(),e.validateWithTrigger("onChange"))}},created:function(){var e=this.vanField;e&&!e.children&&(e.children=this)}},ut=Object(o["a"])("switch"),ct=ut[0],dt=ut[1],ht=ct({mixins:[lt],props:ot,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(M["a"])(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(e){if(this.$emit("click",e),!this.disabled&&!this.loading){var t=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",t),this.$emit("change",t)}},genLoading:function(){var e=this.$createElement;if(this.loading){var t=this.checked?this.activeColor:this.inactiveColor;return e(g["a"],{class:dt("loading"),attrs:{color:t}})}}},render:function(){var e=arguments[0],t=this.checked,n=this.loading,i=this.disabled;return e("div",{class:dt({on:t,loading:n,disabled:i}),attrs:{role:"switch","aria-checked":String(t)},style:this.style,on:{click:this.onClick}},[e("div",{class:dt("node")},[this.genLoading()])])}}),pt=Object(o["a"])("address-edit"),ft=pt[0],mt=pt[1],gt=pt[2],vt={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};function yt(e){return/^\d{6}$/.test(e)}var bt=ft({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return Object(i["a"])({},vt)}},telValidator:{type:Function,default:S},postalValidator:{type:Function,default:yt},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return Object(d["f"])(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var e=this.data,t=e.country,n=e.province,i=e.city,r=e.county,a=e.areaCode;if(a){var s=[t,n,i,r];return n&&n===i&&s.splice(1,1),s.filter((function(e){return e})).join("/")}return""},hideBottomFields:function(){var e=this.searchResult;return e&&e.length&&this.detailFocused}},watch:{addressInfo:{handler:function(e){this.data=Object(i["a"])({},vt,e),this.setAreaCode(e.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(e){this.errorInfo[e]="",this.detailFocused="addressDetail"===e,this.$emit("focus",e)},onChangeDetail:function(e){this.data.addressDetail=e,this.$emit("change-detail",e)},onAreaConfirm:function(e){e=e.filter((function(e){return!!e})),e.some((function(e){return!e.code}))?Object(xe["a"])(gt("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",e))},assignAreaValues:function(){var e=this.$refs.area;if(e){var t=e.getArea();t.areaCode=t.code,delete t.code,Object(i["a"])(this.data,t)}},onSave:function(){var e=this,t=["name","tel"];this.showArea&&t.push("areaCode"),this.showDetail&&t.push("addressDetail"),this.showPostal&&t.push("postalCode");var n=t.every((function(t){var n=e.getErrorMessage(t);return n&&(e.errorInfo[t]=n),!n}));n&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(e){var t=String(this.data[e]||"").trim();if(this.validator){var n=this.validator(e,t);if(n)return n}switch(e){case"name":return t?"":gt("nameEmpty");case"tel":return this.telValidator(t)?"":gt("telInvalid");case"areaCode":return t?"":gt("areaEmpty");case"addressDetail":return t?"":gt("addressEmpty");case"postalCode":return t&&!this.postalValidator(t)?gt("postalEmpty"):""}},onDelete:function(){var e=this;et.confirm({title:gt("confirmDelete")}).then((function(){e.$emit("delete",e.data)})).catch((function(){e.$emit("cancel-delete",e.data)}))},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(e){this.data.areaCode=e||"",e&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(e){this.data.addressDetail=e},onDetailBlur:function(){var e=this;setTimeout((function(){e.detailFocused=!1}))},genSetDefaultCell:function(e){var t=this;if(this.showSetDefault){var n={"right-icon":function(){return e(ht,{attrs:{size:"24"},on:{change:function(e){t.$emit("change-default",e)}},model:{value:t.data.isDefault,callback:function(e){t.$set(t.data,"isDefault",e)}}})}};return e(ve,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:gt("defaultAddress")},class:mt("default"),scopedSlots:n})}return e()}},render:function(e){var t=this,n=this.data,i=this.errorInfo,r=this.disableArea,a=this.hideBottomFields,s=function(e){return function(){return t.onFocus(e)}};return e("div",{class:mt()},[e("div",{class:mt("fields")},[e(Ee,{attrs:{clearable:!0,label:gt("name"),placeholder:gt("namePlaceholder"),errorMessage:i.name},on:{focus:s("name")},model:{value:n.name,callback:function(e){t.$set(n,"name",e)}}}),e(Ee,{attrs:{clearable:!0,type:"tel",label:gt("tel"),maxlength:this.telMaxlength,placeholder:gt("telPlaceholder"),errorMessage:i.tel},on:{focus:s("tel")},model:{value:n.tel,callback:function(e){t.$set(n,"tel",e)}}}),e(Ee,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!r,label:gt("area"),placeholder:this.areaPlaceholder||gt("areaPlaceholder"),errorMessage:i.areaCode,rightIcon:r?null:"arrow",value:this.areaText},on:{focus:s("areaCode"),click:function(){t.$emit("click-area"),t.showAreaPopup=!r}}}),e(st,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:n.addressDetail,errorMessage:i.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:s("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(e){t.$emit("select-search",e)}}}),this.showPostal&&e(Ee,{directives:[{name:"show",value:!a}],attrs:{type:"tel",maxlength:"6",label:gt("postal"),placeholder:gt("postal"),errorMessage:i.postalCode},on:{focus:s("postalCode")},model:{value:n.postalCode,callback:function(e){t.$set(n,"postalCode",e)}}}),this.slots()]),this.genSetDefaultCell(e),e("div",{directives:[{name:"show",value:!a}],class:mt("buttons")},[e(Le,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||gt("save")},on:{click:this.onSave}}),this.showDelete&&e(Le,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||gt("delete")},on:{click:this.onDelete}})]),e(m,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:t.showAreaPopup,callback:function(e){t.showAreaPopup=e}}},[e(oe,{ref:"area",attrs:{value:n.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){t.showAreaPopup=!1}}})])])}}),_t=Object(o["a"])("radio-group"),Tt=_t[0],St=_t[1],wt=Tt({mixins:[Re("vanRadio"),lt],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(e){this.$emit("change",e)}},render:function(){var e=arguments[0];return e("div",{class:St([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),kt=Object(o["a"])("tag"),Ct=kt[0],Et=kt[1];function xt(e,t,n,i){var r,s=t.type,o=t.mark,u=t.plain,d=t.color,h=t.round,p=t.size,f=t.textColor,m=u?"color":"backgroundColor",g=(r={},r[m]=d,r);u?(g.color=f||d,g.borderColor=d):(g.color=f,g.background=d);var v={mark:o,plain:u,round:h};p&&(v[p]=p);var y=t.closeable&&e(c["a"],{attrs:{name:"cross"},class:Et("close"),on:{click:function(e){e.stopPropagation(),Object(l["a"])(i,"close")}}});return e("transition",{attrs:{name:t.closeable?"van-fade":null}},[e("span",a()([{key:"content",style:g,class:Et([v,s])},Object(l["b"])(i,!0)]),[null==n.default?void 0:n.default(),y])])}xt.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var Ot=Ct(xt),At=function(e){var t=e.parent,n=e.bem,i=e.role;return{mixins:[je(t),lt],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var e=this.checkedColor||this.parent&&this.parent.checkedColor;if(e&&this.checked&&!this.isDisabled)return{borderColor:e,backgroundColor:e}},tabindex:function(){return this.isDisabled||"radio"===i&&!this.checked?-1:0}},methods:{onClick:function(e){var t=this,n=e.target,i=this.$refs.icon,r=i===n||i.contains(n);this.isDisabled||!r&&this.labelDisabled?this.$emit("click",e):(this.toggle(),setTimeout((function(){t.$emit("click",e)})))},genIcon:function(){var e=this.$createElement,t=this.checked,i=this.iconSize||this.parent&&this.parent.iconSize;return e("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:t}]),style:{fontSize:Object(M["a"])(i)}},[this.slots("icon",{checked:t})||e(c["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var e=this.$createElement,t=this.slots();if(t)return e("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[t])}},render:function(){var e=arguments[0],t=[this.genIcon()];return"left"===this.labelPosition?t.unshift(this.genLabel()):t.push(this.genLabel()),e("div",{attrs:{role:i,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[t])}}},Pt=Object(o["a"])("radio"),It=Pt[0],Lt=Pt[1],Dt=It({mixins:[At({bem:Lt,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(e){(this.parent||this).$emit("input",e)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),Mt=Object(o["a"])("address-item"),jt=Mt[0],Rt=Mt[1];function Nt(e,t,n,r){var s=t.disabled,o=t.switchable;function u(){o&&Object(l["a"])(r,"select"),Object(l["a"])(r,"click")}var d=function(){return e(c["a"],{attrs:{name:"edit"},class:Rt("edit"),on:{click:function(e){e.stopPropagation(),Object(l["a"])(r,"edit"),Object(l["a"])(r,"click")}}})};function h(){return n.tag?n.tag(Object(i["a"])({},t.data)):t.data.isDefault&&t.defaultTagText?e(Ot,{attrs:{type:"danger",round:!0},class:Rt("tag")},[t.defaultTagText]):void 0}function p(){var n=t.data,i=[e("div",{class:Rt("name")},[n.name+" "+n.tel,h()]),e("div",{class:Rt("address")},[n.address])];return o&&!s?e(Dt,{attrs:{name:n.id,iconSize:18}},[i]):i}return e("div",{class:Rt({disabled:s}),on:{click:u}},[e(ve,a()([{attrs:{border:!1,valueClass:Rt("value")},scopedSlots:{default:p,"right-icon":d}},Object(l["b"])(r)])),null==n.bottom?void 0:n.bottom(Object(i["a"])({},t.data,{disabled:s}))])}Nt.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};var Bt=jt(Nt),Ut=Object(o["a"])("address-list"),Ft=Ut[0],$t=Ut[1],Ht=Ut[2];function Vt(e,t,n,i){function r(r,a){if(r)return r.map((function(r,s){return e(Bt,{attrs:{data:r,disabled:a,switchable:t.switchable,defaultTagText:t.defaultTagText},key:r.id,scopedSlots:{bottom:n["item-bottom"],tag:n.tag},on:{select:function(){Object(l["a"])(i,a?"select-disabled":"select",r,s),a||Object(l["a"])(i,"input",r.id)},edit:function(){Object(l["a"])(i,a?"edit-disabled":"edit",r,s)},click:function(){Object(l["a"])(i,"click-item",r,s)}}})}))}var s=r(t.list),o=r(t.disabledList,!0);return e("div",a()([{class:$t()},Object(l["b"])(i)]),[null==n.top?void 0:n.top(),e(wt,{attrs:{value:t.value}},[s]),t.disabledText&&e("div",{class:$t("disabled-text")},[t.disabledText]),o,null==n.default?void 0:n.default(),e("div",{class:$t("bottom")},[e(Le,{attrs:{round:!0,block:!0,type:"danger",text:t.addButtonText||Ht("add")},class:$t("add"),on:{click:function(){Object(l["a"])(i,"add")}}})])])}Vt.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};var zt=Ft(Vt),qt=n("90c6"),Wt=Object(o["a"])("badge"),Gt=Wt[0],Xt=Wt[1],Yt=Gt({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Object(d["c"])(this.content)&&""!==this.content)},renderContent:function(){var e=this.dot,t=this.max,n=this.content;if(!e&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Object(d["c"])(t)&&Object(qt["b"])(n)&&+n>t?t+"+":n},renderBadge:function(){var e=this.$createElement;if(this.hasContent()||this.dot)return e("div",{class:Xt({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var e=arguments[0];if(this.$scopedSlots.default){var t=this.tag;return e(t,{class:Xt("wrapper")},[this.$scopedSlots.default(),this.renderBadge()])}return this.renderBadge()}}),Kt=n("4598");function Qt(e){return"[object Date]"===Object.prototype.toString.call(e)&&!Object(qt["a"])(e.getTime())}var Jt=Object(o["a"])("calendar"),Zt=Jt[0],en=Jt[1],tn=Jt[2];function nn(e){return tn("monthTitle",e.getFullYear(),e.getMonth()+1)}function rn(e,t){var n=e.getFullYear(),i=t.getFullYear(),r=e.getMonth(),a=t.getMonth();return n===i?r===a?0:r>a?1:-1:n>i?1:-1}function an(e,t){var n=rn(e,t);if(0===n){var i=e.getDate(),r=t.getDate();return i===r?0:i>r?1:-1}return n}function sn(e,t){return e=new Date(e),e.setDate(e.getDate()+t),e}function on(e){return sn(e,-1)}function ln(e){return sn(e,1)}function un(e){var t=e[0].getTime(),n=e[1].getTime();return(n-t)/864e5+1}function cn(e){return new Date(e)}function dn(e){return Array.isArray(e)?e.map((function(e){return null===e?e:cn(e)})):cn(e)}function hn(e,t){var n=-1,i=Array(e);while(++n<e)i[n]=t(n);return i}function pn(e){if(!e)return 0;while(Object(qt["a"])(parseInt(e,10))){if(!(e.length>1))return 0;e=e.slice(1)}return parseInt(e,10)}function fn(e,t){return 32-new Date(e,t-1,32).getDate()}var mn=Object(o["a"])("calendar-month"),gn=mn[0],vn=gn({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return nn(this.date)},rowHeightWithUnit:function(){return Object(M["a"])(this.rowHeight)},offset:function(){var e=this.firstDayOfWeek,t=this.date.getDay();return e?(t+7-this.firstDayOfWeek)%7:t},totalDay:function(){return fn(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var e=[],t=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=t;n++)e.push({type:"placeholder"});return e},days:function(){for(var e=[],t=this.date.getFullYear(),n=this.date.getMonth(),i=1;i<=this.totalDay;i++){var r=new Date(t,n,i),a=this.getDayType(r),s={date:r,type:a,text:i,bottomInfo:this.getBottomInfo(a)};this.formatter&&(s=this.formatter(s)),e.push(s)}return e}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(e){var t=this.$refs,n=t.days,i=t.month,r=this.showSubtitle?n:i,a=r.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;Object(_e["h"])(e,a)},getMultipleDayType:function(e){var t=this,n=function(e){return t.currentDate.some((function(t){return 0===an(t,e)}))};if(n(e)){var i=on(e),r=ln(e),a=n(i),s=n(r);return a&&s?"multiple-middle":a?"end":s?"start":"multiple-selected"}return""},getRangeDayType:function(e){var t=this.currentDate,n=t[0],i=t[1];if(!n)return"";var r=an(e,n);if(!i)return 0===r?"start":"";var a=an(e,i);return 0===r&&0===a&&this.allowSameDay?"start-end":0===r?"start":0===a?"end":r>0&&a<0?"middle":void 0},getDayType:function(e){var t=this.type,n=this.minDate,i=this.maxDate,r=this.currentDate;return an(e,n)<0||an(e,i)>0?"disabled":null!==r?"single"===t?0===an(e,r)?"selected":"":"multiple"===t?this.getMultipleDayType(e):"range"===t?this.getRangeDayType(e):void 0:void 0},getBottomInfo:function(e){if("range"===this.type){if("start"===e||"end"===e)return tn(e);if("start-end"===e)return tn("startEnd")}},getDayStyle:function(e,t){var n={height:this.rowHeightWithUnit};return"placeholder"===e?(n.width="100%",n):(0===t&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===e||"end"===e||"start-end"===e||"multiple-selected"===e||"multiple-middle"===e?n.background=this.color:"middle"===e&&(n.color=this.color)),n)},genTitle:function(){var e=this.$createElement;if(this.showMonthTitle)return e("div",{class:en("month-title")},[this.title])},genMark:function(){var e=this.$createElement;if(this.showMark&&this.shouldRender)return e("div",{class:en("month-mark")},[this.date.getMonth()+1])},genDays:function(){var e=this.$createElement,t=this.shouldRender?this.days:this.placeholders;return e("div",{ref:"days",attrs:{role:"grid"},class:en("days")},[this.genMark(),t.map(this.genDay)])},genTopInfo:function(e){var t=this.$createElement,n=this.$scopedSlots["top-info"];if(e.topInfo||n)return t("div",{class:en("top-info")},[n?n(e):e.topInfo])},genBottomInfo:function(e){var t=this.$createElement,n=this.$scopedSlots["bottom-info"];if(e.bottomInfo||n)return t("div",{class:en("bottom-info")},[n?n(e):e.bottomInfo])},genDay:function(e,t){var n=this,i=this.$createElement,r=e.type,a=this.getDayStyle(r,t),s="disabled"===r,o=function(){s||n.$emit("click",e)};return"selected"===r?i("div",{attrs:{role:"gridcell",tabindex:-1},style:a,class:[en("day"),e.className],on:{click:o}},[i("div",{class:en("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(e),e.text,this.genBottomInfo(e)])]):i("div",{attrs:{role:"gridcell",tabindex:s?null:-1},style:a,class:[en("day",r),e.className],on:{click:o}},[this.genTopInfo(e),e.text,this.genBottomInfo(e)])}},render:function(){var e=arguments[0];return e("div",{class:en("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),yn=Object(o["a"])("calendar-header"),bn=yn[0],_n=bn({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var e=this.$createElement;if(this.showTitle){var t=this.slots("title")||this.title||tn("title");return e("div",{class:en("header-title")},[t])}},genSubtitle:function(){var e=this.$createElement;if(this.showSubtitle)return e("div",{class:en("header-subtitle")},[this.subtitle])},genWeekDays:function(){var e=this.$createElement,t=tn("weekdays"),n=this.firstDayOfWeek,i=[].concat(t.slice(n,7),t.slice(0,n));return e("div",{class:en("weekdays")},[i.map((function(t){return e("span",{class:en("weekday")},[t])}))])}},render:function(){var e=arguments[0];return e("div",{class:en("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),Tn=Zt({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Qt,default:function(){return new Date}},maxDate:{type:Date,validator:Qt,default:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(e){return e>=0&&e<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var e=[],t=new Date(this.minDate);t.setDate(1);do{e.push(new Date(t)),t.setMonth(t.getMonth()+1)}while(1!==rn(t,this.maxDate));return e},buttonDisabled:function(){var e=this.type,t=this.currentDate;if(t){if("range"===e)return!t[0]||!t[1];if("multiple"===e)return!t.length}return!t},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(e){this.currentDate=e,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(e){void 0===e&&(e=this.getInitialDate()),this.currentDate=e,this.scrollIntoView()},init:function(){var e=this;this.poppable&&!this.value||this.$nextTick((function(){e.bodyHeight=Math.floor(e.$refs.body.getBoundingClientRect().height),e.onScroll(),e.scrollIntoView()}))},scrollToDate:function(e){var t=this;Object(Kt["c"])((function(){var n=t.value||!t.poppable;e&&n&&(t.months.some((function(n,i){if(0===rn(n,e)){var r=t.$refs,a=r.body,s=r.months;return s[i].scrollIntoView(a),!0}return!1})),t.onScroll())}))},scrollIntoView:function(){var e=this.currentDate;if(e){var t="single"===this.type?e:e[0];this.scrollToDate(t)}},getInitialDate:function(){var e=this.type,t=this.minDate,n=this.maxDate,i=this.defaultDate;if(null===i)return i;var r=new Date;if(-1===an(r,t)?r=t:1===an(r,n)&&(r=n),"range"===e){var a=i||[],s=a[0],o=a[1];return[s||r,o||ln(r)]}return"multiple"===e?i||[r]:i||r},onScroll:function(){var e=this.$refs,t=e.body,n=e.months,i=Object(_e["c"])(t),r=i+this.bodyHeight,a=n.map((function(e){return e.getHeight()})),s=a.reduce((function(e,t){return e+t}),0);if(!(r>s&&i>0)){for(var o,l=0,u=[-1,-1],c=0;c<n.length;c++){var d=l<=r&&l+a[c]>=i;d&&(u[1]=c,o||(o=n[c],u[0]=c),n[c].showed||(n[c].showed=!0,this.$emit("month-show",{date:n[c].date,title:n[c].title}))),l+=a[c]}n.forEach((function(e,t){e.visible=t>=u[0]-1&&t<=u[1]+1})),o&&(this.subtitle=o.title)}},onClickDay:function(e){if(!this.readonly){var t=e.date,n=this.type,i=this.currentDate;if("range"===n){if(!i)return void this.select([t,null]);var r=i[0],a=i[1];if(r&&!a){var s=an(t,r);1===s?this.select([r,t],!0):-1===s?this.select([t,null]):this.allowSameDay&&this.select([t,t],!0)}else this.select([t,null])}else if("multiple"===n){if(!i)return void this.select([t]);var o,l=this.currentDate.some((function(e,n){var i=0===an(e,t);return i&&(o=n),i}));if(l){var u=i.splice(o,1),c=u[0];this.$emit("unselect",cn(c))}else this.maxRange&&i.length>=this.maxRange?Object(xe["a"])(this.rangePrompt||tn("rangePrompt",this.maxRange)):this.select([].concat(i,[t]))}else this.select(t,!0)}},togglePopup:function(e){this.$emit("input",e)},select:function(e,t){var n=this,i=function(e){n.currentDate=e,n.$emit("select",dn(n.currentDate))};if(t&&"range"===this.type){var r=this.checkRange(e);if(!r)return void(this.showConfirm?i([e[0],sn(e[0],this.maxRange-1)]):i(e))}i(e),t&&!this.showConfirm&&this.onConfirm()},checkRange:function(e){var t=this.maxRange,n=this.rangePrompt;return!(t&&un(e)>t)||(Object(xe["a"])(n||tn("rangePrompt",t)),!1)},onConfirm:function(){this.$emit("confirm",dn(this.currentDate))},genMonth:function(e,t){var n=this.$createElement,i=0!==t||!this.showSubtitle;return n(vn,{ref:"months",refInFor:!0,attrs:{date:e,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:i,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var e=this.$createElement,t=this.slots("footer");if(t)return t;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return e(Le,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:en("confirm"),on:{click:this.onConfirm}},[n||tn("confirm")])}},genFooter:function(){var e=this.$createElement;return e("div",{class:en("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var e=this,t=this.$createElement;return t("div",{class:en()},[t(_n,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return e.slots("title")}}}),t("div",{ref:"body",class:en("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var e=this,t=arguments[0];if(this.poppable){var n,i=function(t){return function(){return e.$emit(t)}};return t(m,{attrs:(n={round:!0,value:this.value},n["round"]=this.round,n["position"]=this.position,n["closeable"]=this.showTitle||this.showSubtitle,n["getContainer"]=this.getContainer,n["closeOnPopstate"]=this.closeOnPopstate,n["closeOnClickOverlay"]=this.closeOnClickOverlay,n),class:en("popup"),on:{input:this.togglePopup,open:i("open"),opened:i("opened"),close:i("close"),closed:i("closed")}},[this.genCalendar()])}return this.genCalendar()}}),Sn=Object(o["a"])("image"),wn=Sn[0],kn=Sn[1],Cn=wn({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var e={};return Object(d["c"])(this.width)&&(e.width=Object(M["a"])(this.width)),Object(d["c"])(this.height)&&(e.height=Object(M["a"])(this.height)),Object(d["c"])(this.radius)&&(e.overflow="hidden",e.borderRadius=Object(M["a"])(this.radius)),e}},created:function(){var e=this.$Lazyload;e&&d["b"]&&(e.$on("loaded",this.onLazyLoaded),e.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var e=this.$Lazyload;e&&(e.$off("loaded",this.onLazyLoaded),e.$off("error",this.onLazyLoadError))},methods:{onLoad:function(e){this.loading=!1,this.$emit("load",e)},onLazyLoaded:function(e){var t=e.el;t===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(e){var t=e.el;t!==this.$refs.image||this.error||this.onError()},onError:function(e){this.error=!0,this.loading=!1,this.$emit("error",e)},onClick:function(e){this.$emit("click",e)},genPlaceholder:function(){var e=this.$createElement;return this.loading&&this.showLoading?e("div",{class:kn("loading")},[this.slots("loading")||e(c["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:kn("loading-icon")})]):this.error&&this.showError?e("div",{class:kn("error")},[this.slots("error")||e(c["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:kn("error-icon")})]):void 0},genImage:function(){var e=this.$createElement,t={class:kn("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?e("img",a()([{ref:"image",directives:[{name:"lazy",value:this.src}]},t])):e("img",a()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},t]))}},render:function(){var e=arguments[0];return e("div",{class:kn({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),En=Object(o["a"])("card"),xn=En[0],On=En[1];function An(e,t,n,i){var r,s=t.thumb,o=n.num||Object(d["c"])(t.num),u=n.price||Object(d["c"])(t.price),c=n["origin-price"]||Object(d["c"])(t.originPrice),h=o||u||c||n.bottom;function p(e){Object(l["a"])(i,"click-thumb",e)}function f(){if(n.tag||t.tag)return e("div",{class:On("tag")},[n.tag?n.tag():e(Ot,{attrs:{mark:!0,type:"danger"}},[t.tag])])}function m(){if(n.thumb||s)return e("a",{attrs:{href:t.thumbLink},class:On("thumb"),on:{click:p}},[n.thumb?n.thumb():e(Cn,{attrs:{src:s,width:"100%",height:"100%",fit:"cover","lazy-load":t.lazyLoad}}),f()])}function g(){return n.title?n.title():t.title?e("div",{class:[On("title"),"van-multi-ellipsis--l2"]},[t.title]):void 0}function v(){return n.desc?n.desc():t.desc?e("div",{class:[On("desc"),"van-ellipsis"]},[t.desc]):void 0}function y(){var n=t.price.toString().split(".");return e("div",[e("span",{class:On("price-currency")},[t.currency]),e("span",{class:On("price-integer")},[n[0]]),".",e("span",{class:On("price-decimal")},[n[1]])])}function b(){if(u)return e("div",{class:On("price")},[n.price?n.price():y()])}function _(){if(c){var i=n["origin-price"];return e("div",{class:On("origin-price")},[i?i():t.currency+" "+t.originPrice])}}function T(){if(o)return e("div",{class:On("num")},[n.num?n.num():"x"+t.num])}function S(){if(n.footer)return e("div",{class:On("footer")},[n.footer()])}return e("div",a()([{class:On()},Object(l["b"])(i,!0)]),[e("div",{class:On("header")},[m(),e("div",{class:On("content",{centered:t.centered})},[e("div",[g(),v(),null==n.tags?void 0:n.tags()]),h&&e("div",{class:"van-card__bottom"},[null==(r=n["price-top"])?void 0:r.call(n),b(),_(),T(),null==n.bottom?void 0:n.bottom()])])]),S()])}An.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"Â¥"}};var Pn,In=xn(An),Ln=Object(o["a"])("tab"),Dn=Ln[0],Mn=Ln[1],jn=Dn({mixins:[je("vanTabs")],props:Object(i["a"])({},de,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var e;return null!=(e=this.name)?e:this.index},isActive:function(){var e=this.computedName===this.parent.currentName;return e&&(this.inited=!0),e}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(e){var t=this;this.parent.lazyRender&&e&&this.$nextTick((function(){t.parent.$emit("rendered",t.computedName,t.title)}))}},render:function(e){var t=this.slots,n=this.parent,i=this.isActive,r=t();if(r||n.animated){var a=n.scrollspy||i,s=this.inited||n.scrollspy||!n.lazyRender,o=s?r:e();return n.animated?e("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:Mn("pane-wrapper",{inactive:!i})},[e("div",{class:Mn("pane")},[o])]):e("div",{directives:[{name:"show",value:a}],attrs:{role:"tabpanel"},class:Mn("pane")},[o])}}});function Rn(e,t,n){Object(Kt["a"])(Pn);var i=0,r=e.scrollLeft,a=0===n?1:Math.round(1e3*n/16);function s(){e.scrollLeft+=(t-r)/a,++i<a&&(Pn=Object(Kt["c"])(s))}s()}function Nn(e,t,n,i){var r=Object(_e["c"])(e),a=r<t,s=0===n?1:Math.round(1e3*n/16),o=(t-r)/s;function l(){r+=o,(a&&r>t||!a&&r<t)&&(r=t),Object(_e["h"])(e,r),a&&r<t||!a&&r>t?Object(Kt["c"])(l):i&&Object(Kt["c"])(i)}l()}function Bn(e){var t=window.getComputedStyle(e),n="none"===t.display,i=null===e.offsetParent&&"fixed"!==t.position;return n||i}function Un(e){var t=e.interceptor,n=e.args,i=e.done;if(t){var r=t.apply(void 0,n);Object(d["g"])(r)?r.then((function(e){e&&i()})).catch(d["i"]):r&&i()}else i()}var Fn=n("5fbe"),$n=n("6f2f"),Hn=Object(o["a"])("tab"),Vn=Hn[0],zn=Hn[1],qn=Vn({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var e={},t=this.color,n=this.isActive,i="card"===this.type;t&&i&&(e.borderColor=t,this.disabled||(n?e.backgroundColor=t:e.color=t));var r=n?this.activeColor:this.inactiveColor;return r&&(e.color=r),e}},methods:{onClick:function(){this.$emit("click")},genText:function(){var e=this.$createElement,t=e("span",{class:zn("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(d["c"])(this.info)&&""!==this.info?e("span",{class:zn("text-wrapper")},[t,e($n["a"],{attrs:{dot:this.dot,info:this.info}})]):t}},render:function(){var e=arguments[0];return e("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[zn({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),Wn=Object(o["a"])("sticky"),Gn=Wn[0],Xn=Wn[1],Yn=Gn({mixins:[Object(Fn["a"])((function(e,t){if(this.scroller||(this.scroller=Object(_e["d"])(this.$el)),this.observer){var n=t?"observe":"unobserve";this.observer[n](this.$el)}e(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(M["b"])(this.offsetTop)},style:function(){if(this.fixed){var e={};return Object(d["c"])(this.zIndex)&&(e.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(e.top=this.offsetTopPx+"px"),this.transform&&(e.transform="translate3d(0, "+this.transform+"px, 0)"),e}}},watch:{fixed:function(e){this.$emit("change",e)}},created:function(){var e=this;!d["h"]&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(t){t[0].intersectionRatio>0&&e.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var e=this;if(!Bn(this.$el)){this.height=this.$el.offsetHeight;var t=this.container,n=this.offsetTopPx,i=Object(_e["c"])(window),r=Object(_e["a"])(this.$el),a=function(){e.$emit("scroll",{scrollTop:i,isFixed:e.fixed})};if(t){var s=r+t.offsetHeight;if(i+n+this.height>s){var o=this.height+i-s;return o<this.height?(this.fixed=!0,this.transform=-(o+n)):this.fixed=!1,void a()}}i+n>r?(this.fixed=!0,this.transform=0):this.fixed=!1,a()}}},render:function(){var e=arguments[0],t=this.fixed,n={height:t?this.height+"px":null};return e("div",{style:n},[e("div",{class:Xn({fixed:t}),style:this.style},[this.slots()])])}}),Kn=Object(o["a"])("tabs"),Qn=Kn[0],Jn=Kn[1],Zn=50,ei=Qn({mixins:[F["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var e=this.direction,t=this.deltaX,n=this.currentIndex;"horizontal"===e&&this.offsetX>=Zn&&(t>0&&0!==n?this.$emit("change",n-1):t<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var e=this.$createElement;return this.animated?e("div",{class:Jn("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var e=arguments[0];return e("div",{class:Jn("content",{animated:this.animated}),on:Object(i["a"])({},this.listeners)},[this.genChildren()])}}),ti=Object(o["a"])("tabs"),ni=ti[0],ii=ti[1],ri=ni({mixins:[Re("vanTabs"),Object(Fn["a"])((function(e){this.scroller||(this.scroller=Object(_e["d"])(this.$el)),e(window,"resize",this.resize,!0),this.scrollspy&&e(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var e=this.children[this.currentIndex];if(e)return e.computedName},offsetTopPx:function(){return Object(M["b"])(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(e){e!==this.currentName&&this.setCurrentIndexByName(e)},children:function(){var e=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){e.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(_e["g"])(Math.ceil(Object(_e["a"])(this.$el)-this.offsetTopPx))},scrollspy:function(e){e?Object(C["b"])(this.scroller,"scroll",this.onScroll,!0):Object(C["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){var e=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){e.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var e=this;this.$nextTick((function(){e.inited=!0,e.tabHeight=Object(_e["e"])(e.$refs.wrap),e.scrollIntoView(!0)}))},setLine:function(){var e=this,t=this.inited;this.$nextTick((function(){var n=e.$refs.titles;if(n&&n[e.currentIndex]&&"line"===e.type&&!Bn(e.$el)){var i=n[e.currentIndex].$el,r=e.lineWidth,a=e.lineHeight,s=i.offsetLeft+i.offsetWidth/2,o={width:Object(M["a"])(r),backgroundColor:e.color,transform:"translateX("+s+"px) translateX(-50%)"};if(t&&(o.transitionDuration=e.duration+"s"),Object(d["c"])(a)){var l=Object(M["a"])(a);o.height=l,o.borderRadius=l}e.lineStyle=o}}))},setCurrentIndexByName:function(e){var t=this.children.filter((function(t){return t.computedName===e})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(t.length?t[0].index:n)},setCurrentIndex:function(e){var t=this.findAvailableTab(e);if(Object(d["c"])(t)){var n=this.children[t],i=n.computedName,r=null!==this.currentIndex;this.currentIndex=t,i!==this.active&&(this.$emit("input",i),r&&this.$emit("change",i,n.title))}},findAvailableTab:function(e){var t=e<this.currentIndex?-1:1;while(e>=0&&e<this.children.length){if(!this.children[e].disabled)return e;e+=t}},onClick:function(e,t){var n=this,i=this.children[t],r=i.title,a=i.disabled,s=i.computedName;a?this.$emit("disabled",s,r):(Un({interceptor:this.beforeChange,args:[s],done:function(){n.setCurrentIndex(t),n.scrollToCurrentContent()}}),this.$emit("click",s,r),ue(e.$router,e))},scrollIntoView:function(e){var t=this.$refs.titles;if(this.scrollable&&t&&t[this.currentIndex]){var n=this.$refs.nav,i=t[this.currentIndex].$el,r=i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2;Rn(n,r,e?0:+this.duration)}},onSticktScroll:function(e){this.stickyFixed=e.isFixed,this.$emit("scroll",e)},scrollTo:function(e){var t=this;this.$nextTick((function(){t.setCurrentIndexByName(e),t.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(e){var t=this;if(void 0===e&&(e=!1),this.scrollspy){var n=this.children[this.currentIndex],i=null==n?void 0:n.$el;if(i){var r=Object(_e["a"])(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,Nn(this.scroller,r,e?0:+this.duration,(function(){t.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var e=this.getCurrentIndexOnScroll();this.setCurrentIndex(e)}},getCurrentIndexOnScroll:function(){for(var e=this.children,t=0;t<e.length;t++){var n=Object(_e["f"])(e[t].$el);if(n>this.scrollOffset)return 0===t?0:t-1}return e.length-1}},render:function(){var e,t=this,n=arguments[0],i=this.type,r=this.animated,a=this.scrollable,s=this.children.map((function(e,r){var s;return n(qn,{ref:"titles",refInFor:!0,attrs:{type:i,dot:e.dot,info:null!=(s=e.badge)?s:e.info,title:e.title,color:t.color,isActive:r===t.currentIndex,disabled:e.disabled,scrollable:a,activeColor:t.titleActiveColor,inactiveColor:t.titleInactiveColor},style:e.titleStyle,class:e.titleClass,scopedSlots:{default:function(){return e.slots("title")}},on:{click:function(){t.onClick(e,r)}}})})),o=n("div",{ref:"wrap",class:[ii("wrap",{scrollable:a}),(e={},e[L]="line"===i&&this.border,e)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:ii("nav",[i,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),s,"line"===i&&n("div",{class:ii("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:ii([i])},[this.sticky?n(Yn,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[o]):o,n(ei,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),ai=Object(o["a"])("cascader"),si=ai[0],oi=ai[1],li=ai[2],ui=si({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var e;return(null==(e=this.fieldNames)?void 0:e.text)||"text"},valueKey:function(){var e;return(null==(e=this.fieldNames)?void 0:e.value)||"value"},childrenKey:function(){var e;return(null==(e=this.fieldNames)?void 0:e.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(e){var t=this;if(e||0===e){var n=this.tabs.map((function(e){var n;return null==(n=e.selectedOption)?void 0:n[t.valueKey]}));if(-1!==n.indexOf(e))return}this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i[this.valueKey]===t)return[i];if(i[this.childrenKey]){var r=this.getSelectedOptionsByValue(i[this.childrenKey],t);if(r)return[i].concat(r)}}},updateTabs:function(){var e=this;if(this.value||0===this.value){var t=this.getSelectedOptionsByValue(this.options,this.value);if(t){var n=this.options;return this.tabs=t.map((function(t){var i={options:n,selectedOption:t},r=n.filter((function(n){return n[e.valueKey]===t[e.valueKey]}));return r.length&&(n=r[0][e.childrenKey]),i})),n&&this.tabs.push({options:n,selectedOption:null}),void this.$nextTick((function(){e.activeTab=e.tabs.length-1}))}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(e,t){var n=this;if(this.tabs[t].selectedOption=e,this.tabs.length>t+1&&(this.tabs=this.tabs.slice(0,t+1)),e[this.childrenKey]){var i={options:e[this.childrenKey],selectedOption:null};this.tabs[t+1]?this.$set(this.tabs,t+1,i):this.tabs.push(i),this.$nextTick((function(){n.activeTab++}))}var r=this.tabs.map((function(e){return e.selectedOption})).filter((function(e){return!!e})),a={value:e[this.valueKey],tabIndex:t,selectedOptions:r};this.$emit("input",e[this.valueKey]),this.$emit("change",a),e[this.childrenKey]||this.$emit("finish",a)},onClose:function(){this.$emit("close")},renderHeader:function(){var e=this.$createElement;return e("div",{class:oi("header")},[e("h2",{class:oi("title")},[this.slots("title")||this.title]),this.closeable?e(c["a"],{attrs:{name:"cross"},class:oi("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(e,t,n){var i=this,r=this.$createElement,a=function(e){var a=t&&e[i.valueKey]===t[i.valueKey],s=i.slots("option",{option:e,selected:a})||r("span",[e[i.textKey]]);return r("li",{class:oi("option",{selected:a}),style:{color:a?i.activeColor:null},on:{click:function(){i.onSelect(e,n)}}},[s,a?r(c["a"],{attrs:{name:"success"},class:oi("selected-icon")}):null])};return r("ul",{class:oi("options")},[e.map(a)])},renderTab:function(e,t){var n=this.$createElement,i=e.options,r=e.selectedOption,a=r?r[this.textKey]:this.placeholder||li("select");return n(jn,{attrs:{title:a,titleClass:oi("tab",{unselected:!r})}},[this.renderOptions(i,r,t)])},renderTabs:function(){var e=this,t=this.$createElement;return t(ri,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:oi("tabs"),model:{value:e.activeTab,callback:function(t){e.activeTab=t}}},[this.tabs.map(this.renderTab)])}},render:function(){var e=arguments[0];return e("div",{class:oi()},[this.renderHeader(),this.renderTabs()])}}),ci=Object(o["a"])("cell-group"),di=ci[0],hi=ci[1];function pi(e,t,n,i){var r,s=e("div",a()([{class:[hi({inset:t.inset}),(r={},r[L]=t.border,r)]},Object(l["b"])(i,!0)]),[null==n.default?void 0:n.default()]);return t.title||n.title?e("div",{key:i.data.key},[e("div",{class:hi("title",{inset:t.inset})},[n.title?n.title():t.title]),s]):s}pi.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}};var fi=di(pi),mi=Object(o["a"])("checkbox"),gi=mi[0],vi=mi[1],yi=gi({mixins:[At({bem:vi,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(e){this.parent?this.setParentValue(e):this.$emit("input",e)}}},watch:{value:function(e){this.$emit("change",e)}},methods:{toggle:function(e){var t=this;void 0===e&&(e=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){t.checked=e}))},setParentValue:function(e){var t=this.parent,n=t.value.slice();if(e){if(t.max&&n.length>=t.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),t.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),t.$emit("input",n))}}}}),bi=Object(o["a"])("checkbox-group"),_i=bi[0],Ti=bi[1],Si=_i({mixins:[Re("vanCheckbox"),lt],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(e){this.$emit("change",e)}},methods:{toggleAll:function(e){void 0===e&&(e={}),"boolean"===typeof e&&(e={checked:e});var t=e,n=t.checked,i=t.skipDisabled,r=this.children.filter((function(e){return e.disabled&&i?e.checked:null!=n?n:!e.checked})),a=r.map((function(e){return e.name}));this.$emit("input",a)}},render:function(){var e=arguments[0];return e("div",{class:Ti([this.direction])},[this.slots()])}}),wi=Object(o["a"])("circle"),ki=wi[0],Ci=wi[1],Ei=3140,xi=0;function Oi(e){return Math.min(Math.max(e,0),100)}function Ai(e,t){var n=e?1:0;return"M "+t/2+" "+t/2+" m 0, -500 a 500, 500 0 1, "+n+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000"}var Pi=ki({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+xi++},computed:{style:function(){var e=Object(M["a"])(this.size);return{width:e,height:e}},path:function(){return Ai(this.clockwise,this.viewBoxSize)},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var e=Ei*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:e+"px "+Ei+"px"}},gradient:function(){return Object(d["f"])(this.color)},LinearGradient:function(){var e=this,t=this.$createElement;if(this.gradient){var n=Object.keys(this.color).sort((function(e,t){return parseFloat(e)-parseFloat(t)})).map((function(n,i){return t("stop",{key:i,attrs:{offset:n,"stop-color":e.color[n]}})}));return t("defs",[t("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[n])])}}},watch:{rate:{handler:function(e){this.startTime=Date.now(),this.startRate=this.value,this.endRate=Oi(e),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Kt["a"])(this.rafId),this.rafId=Object(Kt["c"])(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var e=Date.now(),t=Math.min((e-this.startTime)/this.duration,1),n=t*(this.endRate-this.startRate)+this.startRate;this.$emit("input",Oi(parseFloat(n.toFixed(1)))),(this.increase?n<this.endRate:n>this.endRate)&&(this.rafId=Object(Kt["c"])(this.animate))}},render:function(){var e=arguments[0];return e("div",{class:Ci(),style:this.style},[e("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,e("path",{class:Ci("layer"),style:this.layerStyle,attrs:{d:this.path}}),e("path",{attrs:{d:this.path},class:Ci("hover"),style:this.hoverStyle})]),this.slots()||this.text&&e("div",{class:Ci("text")},[this.text])])}}),Ii=Object(o["a"])("col"),Li=Ii[0],Di=Ii[1],Mi=Li({mixins:[je("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var e=this.index,t=this.parent||{},n=t.spaces;if(n&&n[e]){var i=n[e],r=i.left,a=i.right;return{paddingLeft:r?r+"px":null,paddingRight:a?a+"px":null}}}},methods:{onClick:function(e){this.$emit("click",e)}},render:function(){var e,t=arguments[0],n=this.span,i=this.offset;return t(this.tag,{style:this.style,class:Di((e={},e[n]=n,e["offset-"+i]=i,e)),on:{click:this.onClick}},[this.slots()])}}),ji=Object(o["a"])("collapse"),Ri=ji[0],Ni=ji[1],Bi=Ri({mixins:[Re("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(e,t){this.accordion||(e=t?this.value.concat(e):this.value.filter((function(t){return t!==e}))),this.$emit("change",e),this.$emit("input",e)}},render:function(){var e,t=arguments[0];return t("div",{class:[Ni(),(e={},e[L]=this.border,e)]},[this.slots()])}}),Ui=Object(o["a"])("collapse-item"),Fi=Ui[0],$i=Ui[1],Hi=["title","icon","right-icon"],Vi=Fi({mixins:[je("vanCollapse")],props:Object(i["a"])({},he,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var e;return null!=(e=this.name)?e:this.index},expanded:function(){var e=this;if(!this.parent)return null;var t=this.parent,n=t.value,i=t.accordion;return i?n===this.currentName:n.some((function(t){return t===e.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(e,t){var n=this;if(null!==t){e&&(this.show=!0,this.inited=!0);var i=e?this.$nextTick:Kt["c"];i((function(){var t=n.$refs,i=t.content,r=t.wrapper;if(i&&r){var a=i.offsetHeight;if(a){var s=a+"px";r.style.height=e?0:s,Object(Kt["b"])((function(){r.style.height=e?s:0}))}else n.onTransitionEnd()}}))}}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(e){void 0===e&&(e=!this.expanded);var t=this.parent,n=this.currentName,i=t.accordion&&n===t.value,r=i?"":n;this.parent.switch(r,e)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var e=this,t=this.$createElement,n=this.border,r=this.disabled,a=this.expanded,s=Hi.reduce((function(t,n){return e.slots(n)&&(t[n]=function(){return e.slots(n)}),t}),{});return this.slots("value")&&(s.default=function(){return e.slots("value")}),t(ve,{attrs:{role:"button",tabindex:r?-1:0,"aria-expanded":String(a)},class:$i("title",{disabled:r,expanded:a,borderless:!n}),on:{click:this.onClick},scopedSlots:s,props:Object(i["a"])({},this.$props)})},genContent:function(){var e=this.$createElement;if(this.inited)return e("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:$i("wrapper"),on:{transitionend:this.onTransitionEnd}},[e("div",{ref:"content",class:$i("content")},[this.slots()])])}},render:function(){var e=arguments[0];return e("div",{class:[$i({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),zi=Object(o["a"])("contact-card"),qi=zi[0],Wi=zi[1],Gi=zi[2];function Xi(e,t,n,i){var r=t.type,s=t.editable;function o(e){s&&Object(l["a"])(i,"click",e)}function u(){return"add"===r?t.addText||Gi("addText"):[e("div",[Gi("name")+":"+t.name]),e("div",[Gi("tel")+":"+t.tel])]}return e(ve,a()([{attrs:{center:!0,border:!1,isLink:s,valueClass:Wi("value"),icon:"edit"===r?"contact":"add-square"},class:Wi([r]),on:{click:o}},Object(l["b"])(i)]),[u()])}Xi.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var Yi=qi(Xi),Ki=Object(o["a"])("contact-edit"),Qi=Ki[0],Ji=Ki[1],Zi=Ki[2],er={tel:"",name:""},tr=Qi({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return Object(i["a"])({},er)}},telValidator:{type:Function,default:S}},data:function(){return{data:Object(i["a"])({},er,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(e){this.data=Object(i["a"])({},er,e)}},methods:{onFocus:function(e){this.errorInfo[e]=""},getErrorMessageByKey:function(e){var t=this.data[e].trim();switch(e){case"name":return t?"":Zi("nameInvalid");case"tel":return this.telValidator(t)?"":Zi("telInvalid")}},onSave:function(){var e=this,t=["name","tel"].every((function(t){var n=e.getErrorMessageByKey(t);return n&&(e.errorInfo[t]=n),!n}));t&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var e=this;et.confirm({title:Zi("confirmDelete")}).then((function(){e.$emit("delete",e.data)}))}},render:function(){var e=this,t=arguments[0],n=this.data,i=this.errorInfo,r=function(t){return function(){return e.onFocus(t)}};return t("div",{class:Ji()},[t("div",{class:Ji("fields")},[t(Ee,{attrs:{clearable:!0,maxlength:"30",label:Zi("name"),placeholder:Zi("nameEmpty"),errorMessage:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(t){e.$set(n,"name",t)}}}),t(Ee,{attrs:{clearable:!0,type:"tel",label:Zi("tel"),placeholder:Zi("telEmpty"),errorMessage:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(t){e.$set(n,"tel",t)}}})]),this.showSetDefault&&t(ve,{attrs:{title:this.setDefaultLabel,border:!1},class:Ji("switch-cell")},[t(ht,{attrs:{size:24},slot:"right-icon",on:{change:function(t){e.$emit("change-default",t)}},model:{value:n.isDefault,callback:function(t){e.$set(n,"isDefault",t)}}})]),t("div",{class:Ji("buttons")},[t(Le,{attrs:{block:!0,round:!0,type:"danger",text:Zi("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&t(Le,{attrs:{block:!0,round:!0,text:Zi("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),nr=Object(o["a"])("contact-list"),ir=nr[0],rr=nr[1],ar=nr[2];function sr(e,t,n,i){var r=t.list&&t.list.map((function(n,r){function a(){Object(l["a"])(i,"input",n.id),Object(l["a"])(i,"select",n,r)}function s(){return e(Dt,{attrs:{name:n.id,iconSize:16,checkedColor:E},on:{click:a}})}function o(){return e(c["a"],{attrs:{name:"edit"},class:rr("edit"),on:{click:function(e){e.stopPropagation(),Object(l["a"])(i,"edit",n,r)}}})}function u(){var i=[n.name+","+n.tel];return n.isDefault&&t.defaultTagText&&i.push(e(Ot,{attrs:{type:"danger",round:!0},class:rr("item-tag")},[t.defaultTagText])),i}return e(ve,{key:n.id,attrs:{isLink:!0,center:!0,valueClass:rr("item-value")},class:rr("item"),scopedSlots:{icon:o,default:u,"right-icon":s},on:{click:a}})}));return e("div",a()([{class:rr()},Object(l["b"])(i)]),[e(wt,{attrs:{value:t.value},class:rr("group")},[r]),e("div",{class:rr("bottom")},[e(Le,{attrs:{round:!0,block:!0,type:"danger",text:t.addText||ar("addText")},class:rr("add"),on:{click:function(){Object(l["a"])(i,"add")}}})])])}sr.props={value:null,list:Array,addText:String,defaultTagText:String};var or=ir(sr),lr=n("68ed"),ur=1e3,cr=60*ur,dr=60*cr,hr=24*dr;function pr(e){var t=Math.floor(e/hr),n=Math.floor(e%hr/dr),i=Math.floor(e%dr/cr),r=Math.floor(e%cr/ur),a=Math.floor(e%ur);return{days:t,hours:n,minutes:i,seconds:r,milliseconds:a}}function fr(e,t){var n=t.days,i=t.hours,r=t.minutes,a=t.seconds,s=t.milliseconds;if(-1===e.indexOf("DD")?i+=24*n:e=e.replace("DD",Object(lr["b"])(n)),-1===e.indexOf("HH")?r+=60*i:e=e.replace("HH",Object(lr["b"])(i)),-1===e.indexOf("mm")?a+=60*r:e=e.replace("mm",Object(lr["b"])(r)),-1===e.indexOf("ss")?s+=1e3*a:e=e.replace("ss",Object(lr["b"])(a)),-1!==e.indexOf("S")){var o=Object(lr["b"])(s,3);e=-1!==e.indexOf("SSS")?e.replace("SSS",o):-1!==e.indexOf("SS")?e.replace("SS",o.slice(0,2)):e.replace("S",o.charAt(0))}return e}function mr(e,t){return Math.floor(e/1e3)===Math.floor(t/1e3)}var gr=Object(o["a"])("count-down"),vr=gr[0],yr=gr[1],br=vr({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return pr(this.remain)},formattedTime:function(){return fr(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(Kt["a"])(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){d["b"]&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var e=this;this.rafId=Object(Kt["c"])((function(){e.counting&&(e.setRemain(e.getRemain()),e.remain>0&&e.microTick())}))},macroTick:function(){var e=this;this.rafId=Object(Kt["c"])((function(){if(e.counting){var t=e.getRemain();mr(t,e.remain)&&0!==t||e.setRemain(t),e.remain>0&&e.macroTick()}}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(e){this.remain=e,this.$emit("change",this.timeData),0===e&&(this.pause(),this.$emit("finish"))}},render:function(){var e=arguments[0];return e("div",{class:yr()},[this.slots("default",this.timeData)||this.formattedTime])}}),_r=Object(o["a"])("coupon"),Tr=_r[0],Sr=_r[1],wr=_r[2];function kr(e){return e<Math.pow(10,12)?1e3*e:+e}function Cr(e){var t=new Date(kr(e));return t.getFullYear()+"."+Object(lr["b"])(t.getMonth()+1)+"."+Object(lr["b"])(t.getDate())}function Er(e){return(e/10).toFixed(e%10===0?0:1)}function xr(e){return(e/100).toFixed(e%100===0?0:e%10===0?1:2)}var Or=Tr({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"Â¥"}},computed:{validPeriod:function(){var e=this.coupon,t=e.startAt,n=e.endAt,i=e.customValidPeriod;return i||Cr(t)+" - "+Cr(n)},faceAmount:function(){var e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var t=xr(e.denominations);return"<span>"+this.currency+"</span> "+t}return e.discount?wr("discount",Er(e.discount)):""},conditionMessage:function(){var e=xr(this.coupon.originCondition);return"0"===e?wr("unlimited"):wr("condition",e)}},render:function(){var e=arguments[0],t=this.coupon,n=this.disabled,i=n&&t.reason||t.description;return e("div",{class:Sr({disabled:n})},[e("div",{class:Sr("content")},[e("div",{class:Sr("head")},[e("h2",{class:Sr("amount"),domProps:{innerHTML:this.faceAmount}}),e("p",{class:Sr("condition")},[this.coupon.condition||this.conditionMessage])]),e("div",{class:Sr("body")},[e("p",{class:Sr("name")},[t.name]),e("p",{class:Sr("valid")},[this.validPeriod]),!this.disabled&&e(yi,{attrs:{size:18,value:this.chosen,checkedColor:E},class:Sr("corner")})])]),i&&e("p",{class:Sr("description")},[i])])}}),Ar=Object(o["a"])("coupon-cell"),Pr=Ar[0],Ir=Ar[1],Lr=Ar[2];function Dr(e){var t=e.coupons,n=e.chosenCoupon,i=e.currency,r=t[+n];if(r){var a=0;return Object(d["c"])(r.value)?a=r.value:Object(d["c"])(r.denominations)&&(a=r.denominations),"-"+i+" "+(a/100).toFixed(2)}return 0===t.length?Lr("tips"):Lr("count",t.length)}function Mr(e,t,n,i){var r=t.coupons[+t.chosenCoupon],s=Dr(t);return e(ve,a()([{class:Ir(),attrs:{value:s,title:t.title||Lr("title"),border:t.border,isLink:t.editable,valueClass:Ir("value",{selected:r})}},Object(l["b"])(i,!0)]))}Mr.model={prop:"chosenCoupon"},Mr.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"Â¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};var jr=Pr(Mr),Rr=Object(o["a"])("coupon-list"),Nr=Rr[0],Br=Rr[1],Ur=Rr[2],Fr="https://img01.yzcdn.cn/vant/coupon-empty.png",$r=Nr({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"Â¥"},emptyImage:{type:String,default:Fr}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(e){this.currentCode=e},currentCode:function(e){this.$emit("input",e)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(e){var t=this;-1!==e&&this.$nextTick((function(){var n=t.$refs,i=n.card,r=n.list;r&&i&&i[e]&&(r.scrollTop=i[e].$el.offsetTop-100)}))},genEmpty:function(){var e=this.$createElement;return e("div",{class:Br("empty")},[e("img",{attrs:{src:this.emptyImage}}),e("p",[Ur("empty")])])},genExchangeButton:function(){var e=this.$createElement;return e(Le,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||Ur("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:Br("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var e=this,t=arguments[0],n=this.coupons,i=this.disabledCoupons,r=this.showCount?" ("+n.length+")":"",a=(this.enabledTitle||Ur("enable"))+r,s=this.showCount?" ("+i.length+")":"",o=(this.disabledTitle||Ur("disabled"))+s,l=this.showExchangeBar&&t("div",{class:Br("exchange-bar")},[t(Ee,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||Ur("placeholder"),maxlength:"20"},class:Br("field"),model:{value:e.currentCode,callback:function(t){e.currentCode=t}}}),this.genExchangeButton()]),u=function(t){return function(){return e.$emit("change",t)}},c=t(jn,{attrs:{title:a}},[t("div",{class:Br("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[n.map((function(n,i){return t(Or,{ref:"card",key:n.id,attrs:{coupon:n,currency:e.currency,chosen:i===e.chosenCoupon},nativeOn:{click:u(i)}})})),!n.length&&this.genEmpty(),this.slots("list-footer")])]),d=t(jn,{attrs:{title:o}},[t("div",{class:Br("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map((function(n){return t(Or,{attrs:{disabled:!0,coupon:n,currency:e.currency},key:n.id})})),!i.length&&this.genEmpty(),this.slots("disabled-list-footer")])]);return t("div",{class:Br()},[l,t(ri,{class:Br("tab"),attrs:{border:!1},model:{value:e.tab,callback:function(t){e.tab=t}}},[c,d]),t("div",{class:Br("bottom")},[t(Le,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||Ur("close")},class:Br("close"),on:{click:u(-1)}})])])}}),Hr=Object(i["a"])({},k,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(e,t){return t}}}),Vr={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var e=this;return this.ranges.map((function(t){var n=t.type,i=t.range,r=hn(i[1]-i[0]+1,(function(e){var t=Object(lr["b"])(i[0]+e);return t}));return e.filter&&(r=e.filter(n,r)),{type:n,values:r}}))},columns:function(){var e=this;return this.originColumns.map((function(t){return{values:t.values.map((function(n){return e.formatter(t.type,n)}))}}))}},watch:{columns:"updateColumnValue",innerValue:function(e,t){t?this.$emit("input",e):this.$emit("input",null)}},mounted:function(){var e=this;this.updateColumnValue(),this.$nextTick((function(){e.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var e=this,t=arguments[0],n={};return Object.keys(k).forEach((function(t){n[t]=e[t]})),t(ee,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:Object(i["a"])({},n)})}},zr=Object(o["a"])("time-picker"),qr=zr[0],Wr=qr({mixins:[Vr],props:Object(i["a"])({},Hr,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var e=this;this.$nextTick((function(){e.updateInnerValue()}))},maxHour:function(e){var t=this.innerValue.split(":"),n=t[0],i=t[1];n>=e?(this.innerValue=this.formatValue(e+":"+i),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(e){var t=this.innerValue.split(":"),n=t[0],i=t[1];i>=e?(this.innerValue=this.formatValue(n+":"+e),this.updateColumnValue()):this.updateInnerValue()},value:function(e){e=this.formatValue(e),e!==this.innerValue&&(this.innerValue=e,this.updateColumnValue())}},methods:{formatValue:function(e){e||(e=Object(lr["b"])(this.minHour)+":"+Object(lr["b"])(this.minMinute));var t=e.split(":"),n=t[0],i=t[1];return n=Object(lr["b"])(R(n,this.minHour,this.maxHour)),i=Object(lr["b"])(R(i,this.minMinute,this.maxMinute)),n+":"+i},updateInnerValue:function(){var e=this.getPicker().getIndexes(),t=e[0],n=e[1],i=this.originColumns,r=i[0],a=i[1],s=r.values[t]||r.values[0],o=a.values[n]||a.values[0];this.innerValue=this.formatValue(s+":"+o),this.updateColumnValue()},onChange:function(e){var t=this;this.updateInnerValue(),this.$nextTick((function(){t.$nextTick((function(){t.$emit("change",e)}))}))},updateColumnValue:function(){var e=this,t=this.formatter,n=this.innerValue.split(":"),i=[t("hour",n[0]),t("minute",n[1])];this.$nextTick((function(){e.getPicker().setValues(i)}))}}});n("4ae1");function Gr(e,t){return Gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gr(e,t)}function Xr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Yr(e,t,n){return Yr=Xr()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=Function.bind.apply(e,i),a=new r;return n&&Gr(a,n.prototype),a},Yr.apply(null,arguments)}var Kr=(new Date).getFullYear(),Qr=Object(o["a"])("date-picker"),Jr=Qr[0],Zr=Jr({mixins:[Vr],props:Object(i["a"])({},Hr,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(Kr-10,0,1)},validator:Qt},maxDate:{type:Date,default:function(){return new Date(Kr+10,11,31)},validator:Qt}}),watch:{filter:"updateInnerValue",minDate:function(){var e=this;this.$nextTick((function(){e.updateInnerValue()}))},maxDate:function(e){this.innerValue.valueOf()>=e.valueOf()?this.innerValue=e:this.updateInnerValue()},value:function(e){e=this.formatValue(e),e&&e.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=e)}},computed:{ranges:function(){var e=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),t=e.maxYear,n=e.maxDate,i=e.maxMonth,r=e.maxHour,a=e.maxMinute,s=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),o=s.minYear,l=s.minDate,u=s.minMonth,c=s.minHour,d=s.minMinute,h=[{type:"year",range:[o,t]},{type:"month",range:[u,i]},{type:"day",range:[l,n]},{type:"hour",range:[c,r]},{type:"minute",range:[d,a]}];switch(this.type){case"date":h=h.slice(0,3);break;case"year-month":h=h.slice(0,2);break;case"month-day":h=h.slice(1,3);break;case"datehour":h=h.slice(0,4);break}if(this.columnsOrder){var p=this.columnsOrder.concat(h.map((function(e){return e.type})));h.sort((function(e,t){return p.indexOf(e.type)-p.indexOf(t.type)}))}return h}},methods:{formatValue:function(e){var t=this;if(!Qt(e))return null;var n=new Date(this.minDate),i=new Date(this.maxDate),r={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var a=this.originColumns.map((function(e,a){var s=e.type,o=e.values,l=t.ranges[a].range,u=n[r[s]](),c=i[r[s]](),d="month"===s?+o[0]-1:+o[0],h="month"===s?+o[o.length-1]-1:+o[o.length-1];return{type:s,values:[u<l[0]?Math.max(u,d):d||u,c>l[1]?Math.min(c,h):h||c]}}));if("month-day"===this.type){var s=(this.innerValue||this.minDate).getFullYear();a.unshift({type:"year",values:[s,s]})}var o=Object.keys(r).map((function(e){var t;return null==(t=a.filter((function(t){return t.type===e}))[0])?void 0:t.values})).filter((function(e){return e}));n=Yr(Date,o.map((function(e){return pn(e[0])}))),i=Yr(Date,o.map((function(e){return pn(e[1])})))}return e=Math.max(e,n.getTime()),e=Math.min(e,i.getTime()),new Date(e)},getBoundary:function(e,t){var n,i=this[e+"Date"],r=i.getFullYear(),a=1,s=1,o=0,l=0;return"max"===e&&(a=12,s=fn(t.getFullYear(),t.getMonth()+1),o=23,l=59),t.getFullYear()===r&&(a=i.getMonth()+1,t.getMonth()+1===a&&(s=i.getDate(),t.getDate()===s&&(o=i.getHours(),t.getHours()===o&&(l=i.getMinutes())))),n={},n[e+"Year"]=r,n[e+"Month"]=a,n[e+"Date"]=s,n[e+"Hour"]=o,n[e+"Minute"]=l,n},updateInnerValue:function(){var e,t,n,i=this,r=this.type,a=this.getPicker().getIndexes(),s=function(e){var t=0;i.originColumns.forEach((function(n,i){e===n.type&&(t=i)}));var n=i.originColumns[t].values;return pn(n[a[t]])};"month-day"===r?(e=(this.innerValue||this.minDate).getFullYear(),t=s("month"),n=s("day")):(e=s("year"),t=s("month"),n="year-month"===r?1:s("day"));var o=fn(e,t);n=n>o?o:n;var l=0,u=0;"datehour"===r&&(l=s("hour")),"datetime"===r&&(l=s("hour"),u=s("minute"));var c=new Date(e,t-1,n,l,u);this.innerValue=this.formatValue(c)},onChange:function(e){var t=this;this.updateInnerValue(),this.$nextTick((function(){t.$nextTick((function(){t.$emit("change",e)}))}))},updateColumnValue:function(){var e=this,t=this.innerValue?this.innerValue:this.minDate,n=this.formatter,i=this.originColumns.map((function(e){switch(e.type){case"year":return n("year",""+t.getFullYear());case"month":return n("month",Object(lr["b"])(t.getMonth()+1));case"day":return n("day",Object(lr["b"])(t.getDate()));case"hour":return n("hour",Object(lr["b"])(t.getHours()));case"minute":return n("minute",Object(lr["b"])(t.getMinutes()));default:return null}}));this.$nextTick((function(){e.getPicker().setValues(i)}))}}}),ea=Object(o["a"])("datetime-picker"),ta=ea[0],na=ea[1],ia=ta({props:Object(i["a"])({},Wr.props,Zr.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){var e=arguments[0],t="time"===this.type?Wr:Zr;return e(t,{ref:"root",class:na(),scopedSlots:this.$scopedSlots,props:Object(i["a"])({},this.$props),on:Object(i["a"])({},this.$listeners)})}}),ra=Object(o["a"])("divider"),aa=ra[0],sa=ra[1];function oa(e,t,n,i){var r;return e("div",a()([{attrs:{role:"separator"},style:{borderColor:t.borderColor},class:sa((r={dashed:t.dashed,hairline:t.hairline},r["content-"+t.contentPosition]=n.default,r))},Object(l["b"])(i,!0)]),[n.default&&n.default()])}oa.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};var la=aa(oa),ua=n("1421"),ca=Object(o["a"])("dropdown-item"),da=ca[0],ha=ca[1],pa=da({mixins:[Object(ua["a"])({ref:"wrapper"}),je("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var e=this;if(this.title)return this.title;var t=this.options.filter((function(t){return t.value===e.value}));return t.length?t[0].text:""}},watch:{showPopup:function(e){this.bindScroll(e)}},beforeCreate:function(){var e=this,t=function(t){return function(){return e.$emit(t)}};this.onOpen=t("open"),this.onClose=t("close"),this.onOpened=t("opened")},methods:{toggle:function(e,t){void 0===e&&(e=!this.showPopup),void 0===t&&(t={}),e!==this.showPopup&&(this.transition=!t.immediate,this.showPopup=e,e&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(e){var t=this.parent.scroller,n=e?C["b"]:C["a"];n(t,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(e){this.getContainer&&e.stopPropagation()}},render:function(){var e=this,t=arguments[0],n=this.parent,i=n.zIndex,r=n.offset,a=n.overlay,s=n.duration,o=n.direction,l=n.activeColor,u=n.closeOnClickOverlay,d=this.options.map((function(n){var i=n.value===e.value;return t(ve,{attrs:{clickable:!0,icon:n.icon,title:n.text},key:n.value,class:ha("option",{active:i}),style:{color:i?l:""},on:{click:function(){e.showPopup=!1,n.value!==e.value&&(e.$emit("input",n.value),e.$emit("change",n.value))}}},[i&&t(c["a"],{class:ha("icon"),attrs:{color:l,name:"success"}})])})),h={zIndex:i};return"down"===o?h.top=r+"px":h.bottom=r+"px",t("div",[t("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:h,class:ha([o]),on:{click:this.onClickWrapper}},[t(m,{attrs:{overlay:a,position:"down"===o?"top":"bottom",duration:this.transition?s:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:u},class:ha("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){e.showWrapper=!1,e.$emit("closed")}},model:{value:e.showPopup,callback:function(t){e.showPopup=t}}},[d,this.slots("default")])])])}}),fa=function(e){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var t=this,n=function(n){t.closeOnClickOutside&&!t.$el.contains(n.target)&&t[e.method]()};return{clickOutsideHandler:n}},mounted:function(){Object(C["b"])(document,e.event,this.clickOutsideHandler)},beforeDestroy:function(){Object(C["a"])(document,e.event,this.clickOutsideHandler)}}},ma=Object(o["a"])("dropdown-menu"),ga=ma[0],va=ma[1],ya=ga({mixins:[Re("vanDropdownMenu"),fa({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return Object(_e["d"])(this.$el)},opened:function(){return this.children.some((function(e){return e.showWrapper}))},barStyle:function(){if(this.opened&&Object(d["c"])(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var e=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=e.bottom:this.offset=window.innerHeight-e.top}},toggleItem:function(e){this.children.forEach((function(t,n){n===e?t.toggle():t.showPopup&&t.toggle(!1,{immediate:!0})}))},onClickOutside:function(){this.children.forEach((function(e){e.toggle(!1)}))}},render:function(){var e=this,t=arguments[0],n=this.children.map((function(n,i){return t("div",{attrs:{role:"button",tabindex:n.disabled?-1:0},class:va("item",{disabled:n.disabled}),on:{click:function(){n.disabled||e.toggleItem(i)}}},[t("span",{class:[va("title",{active:n.showPopup,down:n.showPopup===("down"===e.direction)}),n.titleClass],style:{color:n.showPopup?e.activeColor:""}},[t("div",{class:"van-ellipsis"},[n.slots("title")||n.displayTitle])])])}));return t("div",{class:va()},[t("div",{ref:"bar",style:this.barStyle,class:va("bar",{opened:this.opened})},[n]),this.slots("default")])}}),ba="van-empty-network-",_a={render:function(){var e=arguments[0],t=function(t,n,i){return e("stop",{attrs:{"stop-color":t,offset:n+"%","stop-opacity":i}})};return e("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[e("defs",[e("linearGradient",{attrs:{id:ba+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[t("#FFF",0,.5),t("#F2F3F5",100)]),e("linearGradient",{attrs:{id:ba+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[t("#EBEDF0",0),t("#DCDEE0",100,0)]),e("linearGradient",{attrs:{id:ba+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[t("#EAEDF0",0),t("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ba+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[t("#EAEDF0",0),t("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ba+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[t("#EAEDF0",0),t("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ba+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[t("#EAEDF0",0),t("#DCDEE0",100)]),e("radialGradient",{attrs:{id:ba+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[t("#EBEDF0",0),t("#FFF",100,0)])]),e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{opacity:".8"}},[e("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+ba+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),e("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+ba+"1)",transform:"translate(2 7)"}})]),e("path",{attrs:{fill:"url(#"+ba+"7)",d:"M0 139h160v21H0z"}}),e("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+ba+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),e("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[e("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+ba+"3)",transform:"translate(43 36)"}}),e("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+ba+"3)",transform:"translate(43 36)"}}),e("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+ba+"4)",transform:"rotate(-180 76.483 42.257)"}}),e("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+ba+"4)",transform:"rotate(-180 89.791 42.146)"}})]),e("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[e("rect",{attrs:{fill:"url(#"+ba+"5)",width:"98",height:"34",rx:"2"}}),e("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),e("rect",{attrs:{fill:"url(#"+ba+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},Ta=Object(o["a"])("empty"),Sa=Ta[0],wa=Ta[1],ka=["error","search","default"],Ca=Sa({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var e=this.$createElement,t=this.slots("image");if(t)return t;if("network"===this.image)return e(_a);var n=this.image;return-1!==ka.indexOf(n)&&(n="https://img01.yzcdn.cn/vant/empty-image-"+n+".png"),e("img",{attrs:{src:n}})},genImage:function(){var e=this.$createElement,t={width:Object(M["a"])(this.imageSize),height:Object(M["a"])(this.imageSize)};return e("div",{class:wa("image"),style:t},[this.genImageContent()])},genDescription:function(){var e=this.$createElement,t=this.slots("description")||this.description;if(t)return e("p",{class:wa("description")},[t])},genBottom:function(){var e=this.$createElement,t=this.slots();if(t)return e("div",{class:wa("bottom")},[t])}},render:function(){var e=arguments[0];return e("div",{class:wa()},[this.genImage(),this.genDescription(),this.genBottom()])}}),Ea=Object(o["a"])("form"),xa=Ea[0],Oa=Ea[1],Aa=xa({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(e){return e?this.fields.filter((function(t){return-1!==e.indexOf(t.name)})):this.fields},validateSeq:function(e){var t=this;return new Promise((function(n,i){var r=[],a=t.getFieldsByNames(e);a.reduce((function(e,t){return e.then((function(){if(!r.length)return t.validate().then((function(e){e&&r.push(e)}))}))}),Promise.resolve()).then((function(){r.length?i(r):n()}))}))},validateFields:function(e){var t=this;return new Promise((function(n,i){var r=t.getFieldsByNames(e);Promise.all(r.map((function(e){return e.validate()}))).then((function(e){e=e.filter((function(e){return e})),e.length?i(e):n()}))}))},validate:function(e){return e&&!Array.isArray(e)?this.validateField(e):this.validateFirst?this.validateSeq(e):this.validateFields(e)},validateField:function(e){var t=this.fields.filter((function(t){return t.name===e}));return t.length?new Promise((function(e,n){t[0].validate().then((function(t){t?n(t):e()}))})):Promise.reject()},resetValidation:function(e){e&&!Array.isArray(e)&&(e=[e]);var t=this.getFieldsByNames(e);t.forEach((function(e){e.resetValidation()}))},scrollToField:function(e,t){this.fields.some((function(n){return n.name===e&&(n.$el.scrollIntoView(t),!0)}))},addField:function(e){this.fields.push(e),Me(this.fields,this)},removeField:function(e){this.fields=this.fields.filter((function(t){return t!==e}))},getValues:function(){return this.fields.reduce((function(e,t){return e[t.name]=t.formValue,e}),{})},onSubmit:function(e){e.preventDefault(),this.submit()},submit:function(){var e=this,t=this.getValues();this.validate().then((function(){e.$emit("submit",t)})).catch((function(n){e.$emit("failed",{values:t,errors:n}),e.scrollToError&&e.scrollToField(n[0].name)}))}},render:function(){var e=arguments[0];return e("form",{class:Oa(),on:{submit:this.onSubmit}},[this.slots()])}}),Pa=Object(o["a"])("goods-action-icon"),Ia=Pa[0],La=Pa[1],Da=Ia({mixins:[je("vanGoodsAction")],props:Object(i["a"])({},de,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(e){this.$emit("click",e),ue(this.$router,this)},genIcon:function(){var e,t=this.$createElement,n=this.slots("icon"),i=null!=(e=this.badge)?e:this.info;return n?t("div",{class:La("icon")},[n,t($n["a"],{attrs:{dot:this.dot,info:i}})]):t(c["a"],{class:[La("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:i,color:this.color}})}},render:function(){var e=arguments[0];return e("div",{attrs:{role:"button",tabindex:"0"},class:La(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}}),Ma=Object(o["a"])("grid"),ja=Ma[0],Ra=Ma[1],Na=ja({mixins:[Re("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var e=this.gutter;if(e)return{paddingLeft:Object(M["a"])(e)}}},render:function(){var e,t=arguments[0];return t("div",{style:this.style,class:[Ra(),(e={},e[O]=this.border&&!this.gutter,e)]},[this.slots()])}}),Ba=Object(o["a"])("grid-item"),Ua=Ba[0],Fa=Ba[1],$a=Ua({mixins:[je("vanGrid")],props:Object(i["a"])({},de,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var e=this.parent,t=e.square,n=e.gutter,i=e.columnNum,r=100/i+"%",a={flexBasis:r};if(t)a.paddingTop=r;else if(n){var s=Object(M["a"])(n);a.paddingRight=s,this.index>=i&&(a.marginTop=s)}return a},contentStyle:function(){var e=this.parent,t=e.square,n=e.gutter;if(t&&n){var i=Object(M["a"])(n);return{right:i,bottom:i,height:"auto"}}}},methods:{onClick:function(e){this.$emit("click",e),ue(this.$router,this)},genIcon:function(){var e,t=this.$createElement,n=this.slots("icon"),i=null!=(e=this.badge)?e:this.info;return n?t("div",{class:Fa("icon-wrapper")},[n,t($n["a"],{attrs:{dot:this.dot,info:i}})]):this.icon?t(c["a"],{attrs:{name:this.icon,dot:this.dot,badge:i,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:Fa("icon")}):void 0},getText:function(){var e=this.$createElement,t=this.slots("text");return t||(this.text?e("span",{class:Fa("text")},[this.text]):void 0)},genContent:function(){var e=this.slots();return e||[this.genIcon(),this.getText()]}},render:function(){var e,t=arguments[0],n=this.parent,i=n.center,r=n.border,a=n.square,s=n.gutter,o=n.direction,l=n.clickable;return t("div",{class:[Fa({square:a})],style:this.style},[t("div",{style:this.contentStyle,attrs:{role:l?"button":null,tabindex:l?0:null},class:[Fa("content",[o,{center:i,square:a,clickable:l,surround:r&&s}]),(e={},e[x]=r,e)],on:{click:this.onClick}},[this.genContent()])])}}),Ha=Object(o["a"])("image-preview"),Va=Ha[0],za=Ha[1],qa=Object(o["a"])("swipe"),Wa=qa[0],Ga=qa[1],Xa=Wa({mixins:[F["a"],Re("vanSwipe"),Object(Fn["a"])((function(e,t){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0),e(window,"visibilitychange",this.onVisibilityChange),t?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(e){e>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var e=this.vertical?"vertical":"horizontal";return this.direction===e},trackStyle:function(){var e={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var t=this.vertical?"height":"width",n=this.vertical?"width":"height";e[t]=this.trackSize+"px",e[n]=this[n]?this[n]+"px":""}return e},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(e){if(void 0===e&&(e=+this.initialSwipe),this.$el&&!Bn(this.$el)){clearTimeout(this.timer);var t={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=t,this.swiping=!0,this.active=e,this.computedWidth=+this.width||t.width,this.computedHeight=+this.height||t.height,this.offset=this.getTargetOffset(e),this.children.forEach((function(e){e.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(e){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(e),this.correctPosition())},onTouchMove:function(e){this.touchable&&this.swiping&&(this.touchMove(e),this.isCorrectDirection&&(Object(C["c"])(e,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var e=this.size,t=this.delta,n=Date.now()-this.touchStartTime,i=t/n,r=Math.abs(i)>.25||Math.abs(t)>e/2;if(r&&this.isCorrectDirection){var a=this.vertical?this.offsetY:this.offsetX,s=0;s=this.loop?a>0?t>0?-1:1:0:-Math[t>0?"ceil":"floor"](t/e),this.move({pace:s,emitChange:!0})}else t&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(e){var t=this.active,n=this.count,i=this.maxCount;return e?this.loop?R(t+e,-1,n):R(t+e,0,i):t},getTargetOffset:function(e,t){void 0===t&&(t=0);var n=e*this.size;this.loop||(n=Math.min(n,-this.minOffset));var i=t-n;return this.loop||(i=R(i,this.minOffset,0)),i},move:function(e){var t=e.pace,n=void 0===t?0:t,i=e.offset,r=void 0===i?0:i,a=e.emitChange,s=this.loop,o=this.count,l=this.active,u=this.children,c=this.trackSize,d=this.minOffset;if(!(o<=1)){var h=this.getTargetActive(n),p=this.getTargetOffset(h,r);if(s){if(u[0]&&p!==d){var f=p<d;u[0].offset=f?c:0}if(u[o-1]&&0!==p){var m=p>0;u[o-1].offset=m?-c:0}}this.active=h,this.offset=p,a&&h!==l&&this.$emit("change",this.activeIndicator)}},prev:function(){var e=this;this.correctPosition(),this.resetTouchStatus(),Object(Kt["b"])((function(){e.swiping=!1,e.move({pace:-1,emitChange:!0})}))},next:function(){var e=this;this.correctPosition(),this.resetTouchStatus(),Object(Kt["b"])((function(){e.swiping=!1,e.move({pace:1,emitChange:!0})}))},swipeTo:function(e,t){var n=this;void 0===t&&(t={}),this.correctPosition(),this.resetTouchStatus(),Object(Kt["b"])((function(){var i;i=n.loop&&e===n.count?0===n.active?0:e:e%n.count,t.immediate?Object(Kt["b"])((function(){n.swiping=!1})):n.swiping=!1,n.move({pace:i-n.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var e=this,t=this.autoplay;t>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){e.next(),e.autoPlay()}),t))},genIndicator:function(){var e=this,t=this.$createElement,n=this.count,i=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&n>1?t("div",{class:Ga("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map((function(n,r){return t("i",{class:Ga("indicator",{active:r===i}),style:r===i?e.indicatorStyle:null})}))]):void 0)}},render:function(){var e=arguments[0];return e("div",{class:Ga()},[e("div",{ref:"track",style:this.trackStyle,class:Ga("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),Ya=Object(o["a"])("swipe-item"),Ka=Ya[0],Qa=Ya[1],Ja=Ka({mixins:[je("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var e=this;this.$nextTick((function(){e.mounted=!0}))},computed:{style:function(){var e={},t=this.parent,n=t.size,i=t.vertical;return n&&(e[i?"height":"width"]=n+"px"),this.offset&&(e.transform="translate"+(i?"Y":"X")+"("+this.offset+"px)"),e},shouldRender:function(){var e=this.index,t=this.inited,n=this.parent,i=this.mounted;if(!n.lazyRender||t)return!0;if(!i)return!1;var r=n.activeIndicator,a=n.count-1,s=0===r&&n.loop?a:r-1,o=r===a&&n.loop?0:r+1,l=e===r||e===s||e===o;return l&&(this.inited=!0),l}},render:function(){var e=arguments[0];return e("div",{class:Qa(),style:this.style,on:Object(i["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}});function Za(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}var es,ts={mixins:[F["a"]],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var e=this.rootWidth,t=this.rootHeight,n=t/e;return this.imageRatio>n},imageStyle:function(){var e=this.scale,t={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==e){var n=this.moveX/e,i=this.moveY/e;t.transform="scale("+e+", "+e+") translate("+n+"px, "+i+"px)"}return t},maxMoveX:function(){if(this.imageRatio){var e=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*e-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var e=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*e-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(e){e||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(e){e=R(e,+this.minZoom,+this.maxZoom),e!==this.scale&&(this.scale=e,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var e=this.scale>1?1:2;this.setScale(e),this.moveX=0,this.moveY=0},onTouchStart:function(e){var t=e.touches,n=this.offsetX,i=void 0===n?0:n;this.touchStart(e),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===t.length&&1!==this.scale,this.zooming=2===t.length&&!i,this.zooming&&(this.startScale=this.scale,this.startDistance=Za(e.touches))},onTouchMove:function(e){var t=e.touches;if(this.touchMove(e),(this.moving||this.zooming)&&Object(C["c"])(e,!0),this.moving){var n=this.deltaX+this.startMoveX,i=this.deltaY+this.startMoveY;this.moveX=R(n,-this.maxMoveX,this.maxMoveX),this.moveY=R(i,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===t.length){var r=Za(t),a=this.startScale*r/this.startDistance;this.setScale(a)}},onTouchEnd:function(e){var t=!1;(this.moving||this.zooming)&&(t=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(t=!1),e.touches.length||(this.zooming&&(this.moveX=R(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=R(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),Object(C["c"])(e,t),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var e=this,t=this.offsetX,n=void 0===t?0:t,i=this.offsetY,r=void 0===i?0:i,a=new Date-this.touchStartTime,s=250,o=10;n<o&&r<o&&a<s&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){e.$emit("close"),e.doubleTapTimer=null}),s))},onLoad:function(e){var t=e.target,n=t.naturalWidth,i=t.naturalHeight;this.imageRatio=i/n}},render:function(){var e=arguments[0],t={loading:function(){return e(g["a"],{attrs:{type:"spinner"}})}};return e(Ja,{class:za("swipe-item")},[e(Cn,{attrs:{src:this.src,fit:"contain"},class:za("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:t,on:{load:this.onLoad}})])}},ns=Va({mixins:[F["a"],Object(u["a"])({skipToggleEvent:!0}),Object(Fn["a"])((function(e){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:za("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(e){var t=this;e?(this.setActive(+this.startPosition),this.$nextTick((function(){t.resize(),t.$refs.swipe.swipeTo(+t.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var e=this.$el.getBoundingClientRect();this.rootWidth=e.width,this.rootHeight=e.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(e){this.$emit("scale",e)},setActive:function(e){e!==this.active&&(this.active=e,this.$emit("change",e))},genIndex:function(){var e=this.$createElement;if(this.showIndex)return e("div",{class:za("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var e=this.$createElement,t=this.slots("cover");if(t)return e("div",{class:za("cover")},[t])},genImages:function(){var e=this,t=this.$createElement;return t(Xa,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:za("swipe"),on:{change:this.setActive}},[this.images.map((function(n){return t(ts,{attrs:{src:n,show:e.value,active:e.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:e.rootWidth,rootHeight:e.rootHeight},on:{scale:e.emitScale,close:e.emitClose}})}))])},genClose:function(){var e=this.$createElement;if(this.closeable)return e(c["a"],{attrs:{role:"button",name:this.closeIcon},class:za("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(e,t){this.$refs.swipe&&this.$refs.swipe.swipeTo(e,t)}},render:function(){var e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?e("div",{directives:[{name:"show",value:this.value}],class:[za(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),is={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},rs=function(){es=new(s["a"].extend(ns))({el:document.createElement("div")}),document.body.appendChild(es.$el),es.$on("change",(function(e){es.onChange&&es.onChange(e)})),es.$on("scale",(function(e){es.onScale&&es.onScale(e)}))},as=function(e,t){if(void 0===t&&(t=0),!d["h"]){es||rs();var n=Array.isArray(e)?{images:e,startPosition:t}:e;return Object(i["a"])(es,is,n),es.$once("input",(function(e){es.value=e})),es.$once("closed",(function(){es.images=[]})),n.onClose&&(es.$off("close"),es.$once("close",n.onClose)),es}};as.Component=ns,as.install=function(){s["a"].use(ns)};var ss=as,os=Object(o["a"])("index-anchor"),ls=os[0],us=os[1],cs=ls({mixins:[je("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var e=this.$el.getBoundingClientRect();this.rect.height=e.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(e,t){var n=this.$el,i=n.getBoundingClientRect();return this.rect.height=i.height,e===window||e===document.body?this.rect.top=i.top+Object(_e["b"])():this.rect.top=i.top+Object(_e["c"])(e)-t.top,this.rect}},render:function(){var e,t=arguments[0],n=this.sticky;return t("div",{style:{height:n?this.rect.height+"px":null}},[t("div",{style:this.anchorStyle,class:[us({sticky:n}),(e={},e[P]=n,e)]},[this.slots("default")||this.index])])}});function ds(){for(var e=[],t="A".charCodeAt(0),n=0;n<26;n++)e.push(String.fromCharCode(t+n));return e}var hs=Object(o["a"])("index-bar"),ps=hs[0],fs=hs[1],ms=ps({mixins:[F["a"],Re("vanIndexBar"),Object(Fn["a"])((function(e){this.scroller||(this.scroller=Object(_e["d"])(this.$el)),e(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:ds}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(d["c"])(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var e=this.highlightColor;if(e)return{color:e}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(e){e&&this.$emit("change",e)}},methods:{onScroll:function(){var e=this;if(!Bn(this.$el)){var t=Object(_e["c"])(this.scroller),n=this.getScrollerRect(),i=this.children.map((function(t){return t.getRect(e.scroller,n)})),r=this.getActiveAnchorIndex(t,i);this.activeAnchorIndex=this.indexList[r],this.sticky&&this.children.forEach((function(a,s){if(s===r||s===r-1){var o=a.$el.getBoundingClientRect();a.left=o.left,a.width=o.width}else a.left=null,a.width=null;if(s===r)a.active=!0,a.top=Math.max(e.stickyOffsetTop,i[s].top-t)+n.top;else if(s===r-1){var l=i[r].top-t;a.active=l>0,a.top=l+n.top-i[s].height}else a.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(e,t){for(var n=this.children.length-1;n>=0;n--){var i=n>0?t[n-1].height:0,r=this.sticky?i+this.stickyOffsetTop:0;if(e+r>=t[n].top)return n}return-1},onClick:function(e){this.scrollToElement(e.target)},onTouchMove:function(e){if(this.touchMove(e),"vertical"===this.direction){Object(C["c"])(e);var t=e.touches[0],n=t.clientX,i=t.clientY,r=document.elementFromPoint(n,i);if(r){var a=r.dataset.index;this.touchActiveIndex!==a&&(this.touchActiveIndex=a,this.scrollToElement(r))}}},scrollTo:function(e){var t=this.children.filter((function(t){return String(t.index)===e}));t[0]&&(t[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&Object(_e["g"])(Object(_e["b"])()-this.stickyOffsetTop),this.$emit("select",t[0].index))},scrollToElement:function(e){var t=e.dataset.index;this.scrollTo(t)},onTouchEnd:function(){this.active=null}},render:function(){var e=this,t=arguments[0],n=this.indexList.map((function(n){var i=n===e.activeAnchorIndex;return t("span",{class:fs("index",{active:i}),style:i?e.highlightStyle:null,attrs:{"data-index":n}},[n])}));return t("div",{class:fs()},[t("div",{class:fs("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[n]),this.slots("default")])}}),gs=Object(o["a"])("list"),vs=gs[0],ys=gs[1],bs=gs[2],_s=vs({mixins:[Object(Fn["a"])((function(e){this.scroller||(this.scroller=Object(_e["d"])(this.$el)),e(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var e=this;this.$nextTick((function(){if(!(e.innerLoading||e.finished||e.error)){var t,n=e.$el,i=e.scroller,r=e.offset,a=e.direction;t=i.getBoundingClientRect?i.getBoundingClientRect():{top:0,bottom:i.innerHeight};var s=t.bottom-t.top;if(!s||Bn(n))return!1;var o=!1,l=e.$refs.placeholder.getBoundingClientRect();o="up"===a?t.top-l.top<=r:l.bottom-t.bottom<=r,o&&(e.innerLoading=!0,e.$emit("input",!0),e.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var e=this.$createElement;if(this.innerLoading&&!this.finished)return e("div",{key:"loading",class:ys("loading")},[this.slots("loading")||e(g["a"],{attrs:{size:"16"}},[this.loadingText||bs("loading")])])},genFinishedText:function(){var e=this.$createElement;if(this.finished){var t=this.slots("finished")||this.finishedText;if(t)return e("div",{class:ys("finished-text")},[t])}},genErrorText:function(){var e=this.$createElement;if(this.error){var t=this.slots("error")||this.errorText;if(t)return e("div",{on:{click:this.clickErrorText},class:ys("error-text")},[t])}}},render:function(){var e=arguments[0],t=e("div",{ref:"placeholder",key:"placeholder",class:ys("placeholder")});return e("div",{class:ys(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():t,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():t])}}),Ts=n("3c69"),Ss=Object(o["a"])("nav-bar"),ws=Ss[0],ks=Ss[1],Cs=ws({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var e=this.$createElement,t=this.slots("left");return t||[this.leftArrow&&e(c["a"],{class:ks("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&e("span",{class:ks("text")},[this.leftText])]},genRight:function(){var e=this.$createElement,t=this.slots("right");return t||(this.rightText?e("span",{class:ks("text")},[this.rightText]):void 0)},genNavBar:function(){var e,t=this.$createElement;return t("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[ks({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(e={},e[P]=this.border,e)]},[t("div",{class:ks("content")},[this.hasLeft()&&t("div",{class:ks("left"),on:{click:this.onClickLeft}},[this.genLeft()]),t("div",{class:[ks("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&t("div",{class:ks("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(e){this.$emit("click-left",e)},onClickRight:function(e){this.$emit("click-right",e)}},render:function(){var e=arguments[0];return this.placeholder&&this.fixed?e("div",{class:ks("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),Es=Object(o["a"])("notice-bar"),xs=Es[0],Os=Es[1],As=xs({mixins:[Object(Fn["a"])((function(e){e(window,"pageshow",this.start)}))],inject:{vanPopup:{default:null}},props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},created:function(){var e=this;this.vanPopup&&this.vanPopup.onReopen((function(){e.start()}))},activated:function(){this.start()},methods:{onClickIcon:function(e){"closeable"===this.mode&&(this.show=!1,this.$emit("close",e))},onTransitionEnd:function(){var e=this;this.offset=this.wrapWidth,this.duration=0,Object(Kt["c"])((function(){Object(Kt["b"])((function(){e.offset=-e.contentWidth,e.duration=(e.contentWidth+e.wrapWidth)/e.speed,e.$emit("replay")}))}))},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var e=this,t=Object(d["c"])(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout((function(){var t=e.$refs,n=t.wrap,i=t.content;if(n&&i&&!1!==e.scrollable){var r=n.getBoundingClientRect().width,a=i.getBoundingClientRect().width;(e.scrollable||a>r)&&Object(Kt["b"])((function(){e.offset=-a,e.duration=a/e.speed,e.wrapWidth=r,e.contentWidth=a}))}}),t)}},render:function(){var e=this,t=arguments[0],n=this.slots,i=this.mode,r=this.leftIcon,a=this.onClickIcon,s={color:this.color,background:this.background},o={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};function l(){var e=n("left-icon");return e||(r?t(c["a"],{class:Os("left-icon"),attrs:{name:r}}):void 0)}function u(){var e,r=n("right-icon");return r||("closeable"===i?e="cross":"link"===i&&(e="arrow"),e?t(c["a"],{class:Os("right-icon"),attrs:{name:e},on:{click:a}}):void 0)}return t("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:Os({wrapable:this.wrapable}),style:s,on:{click:function(t){e.$emit("click",t)}}},[l(),t("div",{ref:"wrap",class:Os("wrap"),attrs:{role:"marquee"}},[t("div",{ref:"content",class:[Os("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:o,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),u()])}}),Ps=Object(o["a"])("notify"),Is=Ps[0],Ls=Ps[1];function Ds(e,t,n,i){var r={color:t.color,background:t.background};return e(m,a()([{attrs:{value:t.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:r,class:[Ls([t.type]),t.className]},Object(l["b"])(i,!0)]),[(null==n.default?void 0:n.default())||t.message])}Ds.props=Object(i["a"])({},u["b"],{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var Ms,js,Rs=Is(Ds);function Ns(e){return Object(d["f"])(e)?e:{message:e}}function Bs(e){if(!d["h"])return js||(js=Object(l["c"])(Rs,{on:{click:function(e){js.onClick&&js.onClick(e)},close:function(){js.onClose&&js.onClose()},opened:function(){js.onOpened&&js.onOpened()}}})),e=Object(i["a"])({},Bs.currentOptions,Ns(e)),Object(i["a"])(js,e),clearTimeout(Ms),e.duration&&e.duration>0&&(Ms=setTimeout(Bs.clear,e.duration)),js}function Us(){return{type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}}Bs.clear=function(){js&&(js.value=!1)},Bs.currentOptions=Us(),Bs.setDefaultOptions=function(e){Object(i["a"])(Bs.currentOptions,e)},Bs.resetDefaultOptions=function(){Bs.currentOptions=Us()},Bs.install=function(){s["a"].use(Rs)},Bs.Component=Rs,s["a"].prototype.$notify=Bs;var Fs=Bs,$s={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},Hs={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Vs=Object(o["a"])("key"),zs=Vs[0],qs=Vs[1],Ws=zs({mixins:[F["a"]],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(e){e.stopPropagation(),this.touchStart(e),this.active=!0},onTouchMove:function(e){this.touchMove(e),this.direction&&(this.active=!1)},onTouchEnd:function(e){this.active&&(this.slots("default")||e.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var e=this.$createElement,t="extra"===this.type,n="delete"===this.type,i=this.slots("default")||this.text;return this.loading?e(g["a"],{class:qs("loading-icon")}):n?i||e($s,{class:qs("delete-icon")}):t?i||e(Hs,{class:qs("collapse-icon")}):i}},render:function(){var e=arguments[0];return e("div",{class:qs("wrapper",{wider:this.wider})},[e("div",{attrs:{role:"button",tabindex:"0"},class:qs([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),Gs=Object(o["a"])("number-keyboard"),Xs=Gs[0],Ys=Gs[1],Ks=Xs({mixins:[Object(ua["a"])(),Object(Fn["a"])((function(e){this.hideOnClickOutside&&e(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(e){this.transition||this.$emit(e?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var e=[],t=1;t<=9;t++)e.push({text:t});return this.randomKeyOrder&&e.sort((function(){return Math.random()>.5?1:-1})),e},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var e=this.genBasicKeys(),t=this.extraKey,n=Array.isArray(t)?t:[t];return 1===n.length?e.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&e.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),e},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(e,t){if(""!==e){var n=this.value;"delete"===t?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===t?this.onClose():n.length<this.maxlength&&(this.$emit("input",e),this.$emit("update:value",n+e))}else"extra"===t&&this.onBlur()},genTitle:function(){var e=this.$createElement,t=this.title,n=this.theme,i=this.closeButtonText,r=this.slots("title-left"),a=i&&"default"===n,s=t||a||r;if(s)return e("div",{class:Ys("header")},[r&&e("span",{class:Ys("title-left")},[r]),t&&e("h2",{class:Ys("title")},[t]),a&&e("button",{attrs:{type:"button"},class:Ys("close"),on:{click:this.onClose}},[i])])},genKeys:function(){var e=this,t=this.$createElement;return this.keys.map((function(n){return t(Ws,{key:n.text,attrs:{text:n.text,type:n.type,wider:n.wider,color:n.color},on:{press:e.onPress}},["delete"===n.type&&e.slots("delete"),"extra"===n.type&&e.slots("extra-key")])}))},genSidebar:function(){var e=this.$createElement;if("custom"===this.theme)return e("div",{class:Ys("sidebar")},[this.showDeleteKey&&e(Ws,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),e(Ws,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var e=arguments[0],t=this.genTitle();return e("transition",{attrs:{name:this.transition?"van-slide-up":""}},[e("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Ys({unfit:!this.safeAreaInsetBottom,"with-title":t}),on:{touchstart:C["d"],animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[t,e("div",{class:Ys("body")},[e("div",{class:Ys("keys")},[this.genKeys()]),this.genSidebar()])])])}}),Qs=n("6e47"),Js=Object(o["a"])("pagination"),Zs=Js[0],eo=Js[1],to=Js[2];function no(e,t,n){return{number:e,text:t,active:n}}var io=Zs({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var e=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,e)},pages:function(){var e=[],t=this.count,n=+this.showPageSize;if("multi"!==this.mode)return e;var i=1,r=t,a=n<t;a&&(i=Math.max(this.value-Math.floor(n/2),1),r=i+n-1,r>t&&(r=t,i=r-n+1));for(var s=i;s<=r;s++){var o=no(s,s,s===this.value);e.push(o)}if(a&&n>0&&this.forceEllipses){if(i>1){var l=no(i-1,"...",!1);e.unshift(l)}if(r<t){var u=no(r+1,"...",!1);e.push(u)}}return e}},watch:{value:{handler:function(e){this.select(e||this.value)},immediate:!0}},methods:{select:function(e,t){e=Math.min(this.count,Math.max(1,e)),this.value!==e&&(this.$emit("input",e),t&&this.$emit("change",e))}},render:function(){var e,t,n=this,i=arguments[0],r=this.value,a="multi"!==this.mode,s=function(e){return function(){n.select(e,!0)}};return i("ul",{class:eo({simple:a})},[i("li",{class:[eo("item",{disabled:1===r}),eo("prev"),x],on:{click:s(r-1)}},[(null!=(e=this.slots("prev-text"))?e:this.prevText)||to("prev")]),this.pages.map((function(e){var t;return i("li",{class:[eo("item",{active:e.active}),eo("page"),x],on:{click:s(e.number)}},[null!=(t=n.slots("page",e))?t:e.text])})),a&&i("li",{class:eo("page-desc")},[this.slots("pageDesc")||r+"/"+this.count]),i("li",{class:[eo("item",{disabled:r===this.count}),eo("next"),x],on:{click:s(r+1)}},[(null!=(t=this.slots("next-text"))?t:this.nextText)||to("next")])])}}),ro=Object(o["a"])("panel"),ao=ro[0],so=ro[1];function oo(e,t,n,i){var r=function(){return[n.header?n.header():e(ve,{attrs:{icon:t.icon,label:t.desc,title:t.title,value:t.status,valueClass:so("header-value")},class:so("header")}),e("div",{class:so("content")},[n.default&&n.default()]),n.footer&&e("div",{class:[so("footer"),O]},[n.footer()])]};return e(fi,a()([{class:so(),scopedSlots:{default:r}},Object(l["b"])(i,!0)]))}oo.props={icon:String,desc:String,title:String,status:String};var lo=ao(oo),uo=Object(o["a"])("password-input"),co=uo[0],ho=uo[1];function po(e,t,n,i){for(var r,s=t.mask,o=t.value,u=t.length,c=t.gutter,d=t.focused,h=t.errorInfo,p=h||t.info,f=[],m=0;m<u;m++){var g,v=o[m],y=0!==m&&!c,b=d&&m===o.length,_=void 0;0!==m&&c&&(_={marginLeft:Object(M["a"])(c)}),f.push(e("li",{class:[(g={},g[A]=y,g),ho("item",{focus:b})],style:_},[s?e("i",{style:{visibility:v?"visible":"hidden"}}):v,b&&e("div",{class:ho("cursor")})]))}return e("div",{class:ho()},[e("ul",a()([{class:[ho("security"),(r={},r[I]=!c,r)],on:{touchstart:function(e){e.stopPropagation(),Object(l["a"])(i,"focus",e)}}},Object(l["b"])(i,!0)]),[f]),p&&e("div",{class:ho(h?"error-info":"info")},[p])])}po.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var fo=co(po);function mo(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function go(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vo(e){var t=go(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function yo(e){var t=go(e).Element;return e instanceof t||e instanceof Element}function bo(e){var t=go(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _o(e){if("undefined"===typeof ShadowRoot)return!1;var t=go(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function To(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function So(e){return e!==go(e)&&bo(e)?To(e):vo(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function ko(e){return((yo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Co(e){return mo(ko(e)).left+vo(e).scrollLeft}function Eo(e){return go(e).getComputedStyle(e)}function xo(e){var t=Eo(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Oo(e,t,n){void 0===n&&(n=!1);var i=ko(t),r=mo(e),a=bo(t),s={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(a||!a&&!n)&&(("body"!==wo(t)||xo(i))&&(s=So(t)),bo(t)?(o=mo(t),o.x+=t.clientLeft,o.y+=t.clientTop):i&&(o.x=Co(i))),{x:r.left+s.scrollLeft-o.x,y:r.top+s.scrollTop-o.y,width:r.width,height:r.height}}function Ao(e){var t=mo(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Po(e){return"html"===wo(e)?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||ko(e)}function Io(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:bo(e)&&xo(e)?e:Io(Po(e))}function Lo(e,t){var n;void 0===t&&(t=[]);var i=Io(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),a=go(i),s=r?[a].concat(a.visualViewport||[],xo(i)?i:[]):i,o=t.concat(s);return r?o:o.concat(Lo(Po(s)))}function Do(e){return["table","td","th"].indexOf(wo(e))>=0}function Mo(e){return bo(e)&&"fixed"!==Eo(e).position?e.offsetParent:null}function jo(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&bo(e)){var i=Eo(e);if("fixed"===i.position)return null}var r=Po(e);while(bo(r)&&["html","body"].indexOf(wo(r))<0){var a=Eo(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}function Ro(e){var t=go(e),n=Mo(e);while(n&&Do(n)&&"static"===Eo(n).position)n=Mo(n);return n&&("html"===wo(n)||"body"===wo(n)&&"static"===Eo(n).position)?t:n||jo(e)||t}var No="top",Bo="bottom",Uo="right",Fo="left",$o="auto",Ho=[No,Bo,Uo,Fo],Vo="start",zo="end",qo=[].concat(Ho,[$o]).reduce((function(e,t){return e.concat([t,t+"-"+Vo,t+"-"+zo])}),[]),Wo="beforeRead",Go="read",Xo="afterRead",Yo="beforeMain",Ko="main",Qo="afterMain",Jo="beforeWrite",Zo="write",el="afterWrite",tl=[Wo,Go,Xo,Yo,Ko,Qo,Jo,Zo,el];function nl(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function il(e){var t=nl(e);return tl.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function rl(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function al(e){return e.split("-")[0]}function sl(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var ol=Math.round;function ll(e){return e.split("-")[1]}function ul(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cl(e){var t,n=e.reference,i=e.element,r=e.placement,a=r?al(r):null,s=r?ll(r):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(a){case No:t={x:o,y:n.y-i.height};break;case Bo:t={x:o,y:n.y+n.height};break;case Uo:t={x:n.x+n.width,y:l};break;case Fo:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?ul(a):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case Vo:t[u]=t[u]-(n[c]/2-i[c]/2);break;case zo:t[u]=t[u]+(n[c]/2-i[c]/2);break}}return t}var dl={placement:"bottom",modifiers:[],strategy:"absolute"};function hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function pl(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?dl:r;return function(e,t,n){void 0===n&&(n=a);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},dl,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],o=!1,l={state:r,setOptions:function(n){c(),r.options=Object.assign({},a,r.options,n),r.scrollParents={reference:yo(e)?Lo(e):e.contextElement?Lo(e.contextElement):[],popper:Lo(t)};var s=il(sl([].concat(i,r.options.modifiers)));return r.orderedModifiers=s.filter((function(e){return e.enabled})),u(),l.update()},forceUpdate:function(){if(!o){var e=r.elements,t=e.reference,n=e.popper;if(hl(t,n)){r.rects={reference:Oo(t,Ro(n),"fixed"===r.options.strategy),popper:Ao(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var a=r.orderedModifiers[i],s=a.fn,u=a.options,c=void 0===u?{}:u,d=a.name;"function"===typeof s&&(r=s({state:r,options:c,name:d,instance:l})||r)}else r.reset=!1,i=-1}}},update:rl((function(){return new Promise((function(e){l.forceUpdate(),e(r)}))})),destroy:function(){c(),o=!0}};if(!hl(e,t))return l;function u(){r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var o=a({state:r,name:t,instance:l,options:i}),u=function(){};s.push(o||u)}}))}function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!o&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var fl={passive:!0};function ml(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,s=i.resize,o=void 0===s||s,l=go(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,fl)})),o&&l.addEventListener("resize",n.update,fl),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,fl)})),o&&l.removeEventListener("resize",n.update,fl)}}var gl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ml,data:{}};function vl(e){var t=e.state,n=e.name;t.modifiersData[n]=cl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var yl={name:"popperOffsets",enabled:!0,phase:"read",fn:vl,data:{}},bl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _l(e){var t=e.x,n=e.y,i=window,r=i.devicePixelRatio||1;return{x:ol(ol(t*r)/r)||0,y:ol(ol(n*r)/r)||0}}function Tl(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.offsets,s=e.position,o=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,c=!0===u?_l(a):"function"===typeof u?u(a):a,d=c.x,h=void 0===d?0:d,p=c.y,f=void 0===p?0:p,m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),v=Fo,y=No,b=window;if(l){var _=Ro(n),T="clientHeight",S="clientWidth";_===go(n)&&(_=ko(n),"static"!==Eo(_).position&&(T="scrollHeight",S="scrollWidth")),_=_,r===No&&(y=Bo,f-=_[T]-i.height,f*=o?1:-1),r===Fo&&(v=Uo,h-=_[S]-i.width,h*=o?1:-1)}var w,k=Object.assign({position:s},l&&bl);return o?Object.assign({},k,(w={},w[y]=g?"0":"",w[v]=m?"0":"",w.transform=(b.devicePixelRatio||1)<2?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",w)):Object.assign({},k,(t={},t[y]=g?f+"px":"",t[v]=m?h+"px":"",t.transform="",t))}function Sl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,a=n.adaptive,s=void 0===a||a,o=n.roundOffsets,l=void 0===o||o,u={placement:al(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Tl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var wl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sl,data:{}};function kl(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];bo(r)&&wo(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))}function Cl(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),s=a.reduce((function(e,t){return e[t]="",e}),{});bo(i)&&wo(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}}var El={name:"applyStyles",enabled:!0,phase:"write",fn:kl,effect:Cl,requires:["computeStyles"]},xl=[gl,yl,wl,El],Ol=pl({defaultModifiers:xl});function Al(e,t,n){var i=al(e),r=[Fo,No].indexOf(i)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[Fo,Uo].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}function Pl(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,s=qo.reduce((function(e,n){return e[n]=Al(n,t.rects,a),e}),{}),o=s[t.placement],l=o.x,u=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}var Il={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pl},Ll=Object(o["a"])("popover"),Dl=Ll[0],Ml=Ll[1],jl=Dl({mixins:[fa({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){return Ol(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Object(i["a"])({},Il,{options:{offset:this.offset}})]})},updateLocation:function(){var e=this;this.$nextTick((function(){e.value&&(e.popper?e.popper.setOptions({placement:e.placement}):e.popper=e.createPopper())}))},renderAction:function(e,t){var n=this,i=this.$createElement,r=e.icon,a=e.text,s=e.disabled,o=e.className;return i("div",{attrs:{role:"menuitem"},class:[Ml("action",{disabled:s,"with-icon":r}),o],on:{click:function(){return n.onClickAction(e,t)}}},[r&&i(c["a"],{attrs:{name:r},class:Ml("action-icon")}),i("div",{class:[Ml("action-text"),P]},[a])])},onToggle:function(e){this.$emit("input",e)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(e){e.stopPropagation(),this.$emit("touchstart",e)},onClickAction:function(e,t){e.disabled||(this.$emit("select",e,t),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var e=arguments[0];return e("span",{ref:"wrapper",class:Ml("wrapper"),on:{click:this.onClickWrapper}},[e(m,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:Ml([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[e("div",{class:Ml("arrow")}),e("div",{class:Ml("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),Rl=Object(o["a"])("progress"),Nl=Rl[0],Bl=Rl[1],Ul=Nl({props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(e){return e>=0&&e<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var e=this;this.$nextTick((function(){e.progressWidth=e.$el.offsetWidth,e.pivotWidth=e.$refs.pivot?e.$refs.pivot.offsetWidth:0}))}},render:function(){var e=arguments[0],t=this.pivotText,n=this.percentage,i=null!=t?t:n+"%",r=this.showPivot&&i,a=this.inactive?"#cacaca":this.color,s={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||a},o={background:a,width:this.progressWidth*n/100+"px"},l={background:this.trackColor,height:Object(M["a"])(this.strokeWidth)};return e("div",{class:Bl(),style:l},[e("span",{class:Bl("portion"),style:o},[r&&e("span",{ref:"pivot",style:s,class:Bl("pivot")},[i])])])}}),Fl=Object(o["a"])("pull-refresh"),$l=Fl[0],Hl=Fl[1],Vl=Fl[2],zl=50,ql=["pulling","loosing","success"],Wl=$l({mixins:[F["a"]],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:zl}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(this.headHeight!==zl)return{height:this.headHeight+"px"}}},watch:{value:function(e){this.duration=this.animationDuration,e?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=Object(_e["d"])(this.$el)},methods:{checkPullStart:function(e){this.ceiling=0===Object(_e["c"])(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(e))},onTouchStart:function(e){this.touchable&&this.checkPullStart(e)},onTouchMove:function(e){this.touchable&&(this.ceiling||this.checkPullStart(e),this.touchMove(e),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(Object(C["c"])(e),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var e=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){e.$emit("refresh")}))):this.setStatus(0))},ease:function(e){var t=+(this.pullDistance||this.headHeight);return e>t&&(e=e<2*t?t+(e-t)/2:1.5*t+(e-2*t)/4),Math.round(e)},setStatus:function(e,t){var n;n=t?"loading":0===e?"normal":e<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=e,n!==this.status&&(this.status=n)},genStatus:function(){var e=this.$createElement,t=this.status,n=this.distance,i=this.slots(t,{distance:n});if(i)return i;var r=[],a=this[t+"Text"]||Vl(t);return-1!==ql.indexOf(t)&&r.push(e("div",{class:Hl("text")},[a])),"loading"===t&&r.push(e(g["a"],{attrs:{size:"16"}},[a])),r},showSuccessTip:function(){var e=this;this.status="success",setTimeout((function(){e.setStatus(0)}),this.successDuration)}},render:function(){var e=arguments[0],t={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return e("div",{class:Hl()},[e("div",{ref:"track",class:Hl("track"),style:t},[e("div",{class:Hl("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Gl=Object(o["a"])("rate"),Xl=Gl[0],Yl=Gl[1];function Kl(e,t,n){return e>=t?"full":e+.5>=t&&n?"half":"void"}var Ql=Xl({mixins:[F["a"],lt],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var e=[],t=1;t<=this.count;t++)e.push(Kl(this.value,t,this.allowHalf));return e},sizeWithUnit:function(){return Object(M["a"])(this.size)},gutterWithUnit:function(){return Object(M["a"])(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(e){this.disabled||this.readonly||e===this.value||(this.$emit("input",e),this.$emit("change",e))},onTouchStart:function(e){var t=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(e);var n=this.$refs.items.map((function(e){return e.getBoundingClientRect()})),i=[];n.forEach((function(e,n){t.allowHalf?i.push({score:n+.5,left:e.left},{score:n+1,left:e.left+e.width/2}):i.push({score:n+1,left:e.left})})),this.ranges=i}},onTouchMove:function(e){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(e),"horizontal"===this.direction)){Object(C["c"])(e);var t=e.touches[0].clientX;this.select(this.getScoreByPosition(t))}},getScoreByPosition:function(e){for(var t=this.ranges.length-1;t>0;t--)if(e>this.ranges[t].left)return this.ranges[t].score;return this.allowHalf?.5:1},genStar:function(e,t){var n,i=this,r=this.$createElement,a=this.icon,s=this.color,o=this.count,l=this.voidIcon,u=this.disabled,d=this.voidColor,h=this.disabledColor,p=t+1,f="full"===e,m="void"===e;return this.gutterWithUnit&&p!==+o&&(n={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:t,attrs:{role:"radio",tabindex:"0","aria-setsize":o,"aria-posinset":p,"aria-checked":String(!m)},style:n,class:Yl("item")},[r(c["a"],{attrs:{size:this.sizeWithUnit,name:f?a:l,color:u?h:f?s:d,classPrefix:this.iconPrefix,"data-score":p},class:Yl("icon",{disabled:u,full:f}),on:{click:function(){i.select(p)}}}),this.allowHalf&&r(c["a"],{attrs:{size:this.sizeWithUnit,name:m?l:a,color:u?h:m?d:s,classPrefix:this.iconPrefix,"data-score":p-.5},class:Yl("icon",["half",{disabled:u,full:!m}]),on:{click:function(){i.select(p-.5)}}})])}},render:function(){var e=this,t=arguments[0];return t("div",{class:Yl({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(t,n){return e.genStar(t,n)}))])}}),Jl=Object(o["a"])("row"),Zl=Jl[0],eu=Jl[1],tu=Zl({mixins:[Re("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var e=Number(this.gutter);if(e){var t=[],n=[[]],i=0;return this.children.forEach((function(e,t){i+=Number(e.span),i>24?(n.push([t]),i-=24):n[n.length-1].push(t)})),n.forEach((function(n){var i=e*(n.length-1)/n.length;n.forEach((function(n,r){if(0===r)t.push({right:i});else{var a=e-t[n-1].right,s=i-a;t.push({left:a,right:s})}}))})),t}}},methods:{onClick:function(e){this.$emit("click",e)}},render:function(){var e,t=arguments[0],n=this.align,i=this.justify,r="flex"===this.type;return t(this.tag,{class:eu((e={flex:r},e["align-"+n]=r&&n,e["justify-"+i]=r&&i,e)),on:{click:this.onClick}},[this.slots()])}}),nu=Object(o["a"])("search"),iu=nu[0],ru=nu[1],au=nu[2];function su(e,t,n,r){function s(){if(n.label||t.label)return e("div",{class:ru("label")},[n.label?n.label():t.label])}function o(){if(t.showAction)return e("div",{class:ru("action"),attrs:{role:"button",tabindex:"0"},on:{click:i}},[n.action?n.action():t.actionText||au("cancel")]);function i(){n.action||(Object(l["a"])(r,"input",""),Object(l["a"])(r,"cancel"))}}var u={attrs:r.data.attrs,on:Object(i["a"])({},r.listeners,{keypress:function(e){13===e.keyCode&&(Object(C["c"])(e),Object(l["a"])(r,"search",t.value)),Object(l["a"])(r,"keypress",e)}})},c=Object(l["b"])(r);return c.attrs=void 0,e("div",a()([{class:ru({"show-action":t.showAction}),style:{background:t.background}},c]),[null==n.left?void 0:n.left(),e("div",{class:ru("content",t.shape)},[s(),e(Ee,a()([{attrs:{type:"search",border:!1,value:t.value,leftIcon:t.leftIcon,rightIcon:t.rightIcon,clearable:t.clearable,clearTrigger:t.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},u]))]),o()])}su.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var ou=iu(su),lu=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],uu=Object(o["a"])("share-sheet"),cu=uu[0],du=uu[1],hu=uu[2],pu=cu({props:Object(i["a"])({},u["b"],{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(e,t){this.$emit("select",e,t)},toggle:function(e){this.$emit("input",e)},getIconURL:function(e){return-1!==lu.indexOf(e)?"https://img01.yzcdn.cn/vant/share-sheet-"+e+".png":e},genHeader:function(){var e=this.$createElement,t=this.slots("title")||this.title,n=this.slots("description")||this.description;if(t||n)return e("div",{class:du("header")},[t&&e("h2",{class:du("title")},[t]),n&&e("span",{class:du("description")},[n])])},genOptions:function(e,t){var n=this,i=this.$createElement;return i("div",{class:du("options",{border:t})},[e.map((function(e,t){return i("div",{attrs:{role:"button",tabindex:"0"},class:[du("option"),e.className],on:{click:function(){n.onSelect(e,t)}}},[i("img",{attrs:{src:n.getIconURL(e.icon)},class:du("icon")}),e.name&&i("span",{class:du("name")},[e.name]),e.description&&i("span",{class:du("option-description")},[e.description])])}))])},genRows:function(){var e=this,t=this.options;return Array.isArray(t[0])?t.map((function(t,n){return e.genOptions(t,0!==n)})):this.genOptions(t)},genCancelText:function(){var e,t=this.$createElement,n=null!=(e=this.cancelText)?e:hu("cancel");if(n)return t("button",{attrs:{type:"button"},class:du("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var e=arguments[0];return e(m,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:du(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),fu=Object(o["a"])("sidebar"),mu=fu[0],gu=fu[1],vu=mu({mixins:[Re("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(e){e!==this.index&&(this.index=e,this.$emit("change",e))}},render:function(){var e=arguments[0];return e("div",{class:gu()},[this.slots()])}}),yu=Object(o["a"])("sidebar-item"),bu=yu[0],_u=yu[1],Tu=bu({mixins:[je("vanSidebar")],props:Object(i["a"])({},de,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),ue(this.$router,this))}},render:function(){var e,t,n=arguments[0];return n("a",{class:_u({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:_u("text")},[null!=(e=this.slots("title"))?e:this.title,n($n["a"],{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info},class:_u("info")})])])}}),Su=Object(o["a"])("skeleton"),wu=Su[0],ku=Su[1],Cu="100%",Eu="60%";function xu(e,t,n,i){if(!t.loading)return n.default&&n.default();function r(){if(t.title)return e("h3",{class:ku("title"),style:{width:Object(M["a"])(t.titleWidth)}})}function s(){var n=[],i=t.rowWidth;function r(e){return i===Cu&&e===+t.row-1?Eu:Array.isArray(i)?i[e]:i}for(var a=0;a<t.row;a++)n.push(e("div",{class:ku("row"),style:{width:Object(M["a"])(r(a))}}));return n}function o(){if(t.avatar){var n=Object(M["a"])(t.avatarSize);return e("div",{class:ku("avatar",t.avatarShape),style:{width:n,height:n}})}}return e("div",a()([{class:ku({animate:t.animate,round:t.round})},Object(l["b"])(i)]),[o(),e("div",{class:ku("content")},[r(),s()])])}xu.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:Cu}};var Ou=wu(xu),Au={"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商å“è§„æ ¼",soldout:"库å˜ä¸è¶³",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(e){return e+"件起售"},unavailable:"商å“å·²ç»æ— 法è´ä¹°å•¦",stock:"剩余",stockUnit:"件",quotaTip:function(e){return"æ¯äººé™è´"+e+"件"},quotaUsedTip:function(e,t){return"æ¯äººé™è´"+e+"ä»¶ï¼Œä½ å·²è´ä¹°"+t+"件"}},vanSkuActions:{buy:"ç«‹å³è´ä¹°",addCart:"åŠ å…¥è´ç‰©è½¦"},vanSkuImgUploader:{oversize:function(e){return"最大å¯ä¸Šä¼ 图片为"+e+"MB,请å°è¯•åŽ‹ç¼©å›¾ç‰‡å°ºå¯¸"},fail:"ä¸Šä¼ å¤±è´¥",uploading:"ä¸Šä¼ ä¸..."},vanSkuStepper:{quotaLimit:function(e){return"é™è´"+e+"件"},quotaStart:function(e){return e+"件起售"},comma:",",num:"è´ä¹°æ•°é‡"},vanSkuMessages:{fill:"请填写",upload:"è¯·ä¸Šä¼ ",imageLabel:"ä»…é™ä¸€å¼ ",invalid:{tel:"请填写æ£ç¡®çš„æ•°å—æ ¼å¼ç•™è¨€",mobile:"手机å·é•¿åº¦ä¸º6-20ä½æ•°å—",email:"请填写æ£ç¡®çš„邮箱",id_no:"请填写æ£ç¡®çš„身份è¯å·ç "},placeholder:{id_no:"请填写身份è¯å·",text:"请填写留言",tel:"请填写数å—",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机å·"}},vanSkuRow:{multiple:"å¯å¤šé€‰"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"å¹´",month:"月",day:"æ—¥",hour:"æ—¶",minute:"分"}}}},Pu={QUOTA_LIMIT:0,STOCK_LIMIT:1},Iu="",Lu={LIMIT_TYPE:Pu,UNSELECTED_SKU_VALUE_ID:Iu},Du=function(e){var t={};return e.forEach((function(e){t[e.k_s]=e.v})),t},Mu=function(e){var t={};return e.forEach((function(e){var n={};e.v.forEach((function(e){n[e.id]=e})),t[e.k_id]=n})),t},ju=function(e,t){var n=Object.keys(t).filter((function(e){return t[e]!==Iu}));return e.length===n.length},Ru=function(e,t){var n=e.filter((function(e){return Object.keys(t).every((function(n){return String(e[n])===String(t[n])}))}));return n[0]},Nu=function(e,t){var n=Du(e);return Object.keys(t).reduce((function(e,i){var r=n[i],a=t[i];if(a!==Iu){var s=r.filter((function(e){return e.id===a}))[0];s&&e.push(s)}return e}),[])},Bu=function(e,t,n){var r,a=n.key,s=n.valueId,o=Object(i["a"])({},t,(r={},r[a]=s,r)),l=Object.keys(o).filter((function(e){return o[e]!==Iu})),u=e.filter((function(e){return l.every((function(t){return String(o[t])===String(e[t])}))})),c=u.reduce((function(e,t){return e+=t.stock_num,e}),0);return c>0},Uu=function(e,t){var n=Mu(e);return Object.keys(t).reduce((function(e,r){return t[r].forEach((function(t){e.push(Object(i["a"])({},n[r][t]))})),e}),[])},Fu=function(e,t){var n=[];return(e||[]).forEach((function(e){if(t[e.k_id]&&t[e.k_id].length>0){var r=[];e.v.forEach((function(n){t[e.k_id].indexOf(n.id)>-1&&r.push(Object(i["a"])({},n))})),n.push(Object(i["a"])({},e,{v:r}))}})),n},$u={normalizeSkuTree:Du,getSkuComb:Ru,getSelectedSkuValues:Nu,isAllSelected:ju,isSkuChoosable:Bu,getSelectedPropValues:Uu,getSelectedProperties:Fu},Hu=Object(o["a"])("sku-header"),Vu=Hu[0],zu=Hu[1];function qu(e,t){var n;return e.tree.some((function(e){var r=t[e.k_s];if(r&&e.v){var a=e.v.filter((function(e){return e.id===r}))[0]||{},s=a.previewImgUrl||a.imgUrl||a.img_url;if(s)return n=Object(i["a"])({},a,{ks:e.k_s,imgUrl:s}),!0}return!1})),n}function Wu(e,t,n,i){var r,s=t.sku,o=t.goods,u=t.skuEventBus,c=t.selectedSku,d=t.showHeaderImage,h=void 0===d||d,p=qu(s,c),f=p?p.imgUrl:o.picture,m=function(){u.$emit("sku:previewImage",p)};return e("div",a()([{class:[zu(),P]},Object(l["b"])(i)]),[h&&e(Cn,{attrs:{fit:"cover",src:f},class:zu("img-wrap"),on:{click:m}},[null==(r=n["sku-header-image-extra"])?void 0:r.call(n)]),e("div",{class:zu("goods-info")},[null==n.default?void 0:n.default()])])}Wu.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Gu=Vu(Wu),Xu=Object(o["a"])("sku-header-item"),Yu=Xu[0],Ku=Xu[1];function Qu(e,t,n,i){return e("div",a()([{class:Ku()},Object(l["b"])(i)]),[n.default&&n.default()])}var Ju=Yu(Qu),Zu=Object(o["a"])("sku-row"),ec=Zu[0],tc=Zu[1],nc=Zu[2],ic=ec({mixins:[Re("vanSkuRows"),Object(Fn["a"])((function(e){this.scrollable&&this.$refs.scroller&&e(this.$refs.scroller,"scroll",this.onScroll)}))],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var e=this.$refs,t=e.scroller,n=e.row,i=n.offsetWidth-t.offsetWidth;this.progress=t.scrollLeft/i},genTitle:function(){var e=this.$createElement;return e("div",{class:tc("title")},[this.skuRow.k,this.skuRow.is_multiple&&e("span",{class:tc("title-multiple")},["(",nc("multiple"),")"])])},genIndicator:function(){var e=this.$createElement;if(this.scrollable){var t={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return e("div",{class:tc("indicator-wrapper")},[e("div",{class:tc("indicator")},[e("div",{class:tc("indicator-slider"),style:t})])])}},genContent:function(){var e=this.$createElement,t=this.slots();if(this.skuRow.largeImageMode){var n=[],i=[];return t.forEach((function(e,t){var r=Math.floor(t/3)%2===0?n:i;r.push(e)})),e("div",{class:tc("scroller"),ref:"scroller"},[e("div",{class:tc("row"),ref:"row"},[n]),i.length?e("div",{class:tc("row")},[i]):null])}return t},centerItem:function(e){if(this.skuRow.largeImageMode&&e){var t=this.children,n=void 0===t?[]:t,i=this.$refs,r=i.scroller,a=i.row,s=n.find((function(t){return+t.skuValue.id===+e}));if(r&&a&&s&&s.$el){var o=s.$el,l=o.offsetLeft-(r.offsetWidth-o.offsetWidth)/2;r.scrollLeft=l}}}},render:function(){var e=arguments[0];return e("div",{class:[tc(),P]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),rc=Object(o["a"])("sku-row-item"),ac=rc[0],sc=ac({mixins:[je("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var e=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?e||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":e},choosable:function(){return!this.disableSoldoutSku||Bu(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",Object(i["a"])({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(e){e.stopPropagation();var t=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",Object(i["a"])({},t,{ks:n,imgUrl:t.imgUrl||t.img_url}))},genImage:function(e){var t=this.$createElement;if(this.imgUrl)return t(Cn,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:e+"-img"})}},render:function(){var e=arguments[0],t=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?tc("image-item"):tc("item");return e("span",{class:[n,t?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),e("div",{class:n+"-name"},[this.largeImageMode?e("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&e(c["a"],{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),oc=Object(o["a"])("sku-row-prop-item"),lc=oc[0],uc=lc({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean},computed:{choosed:function(){var e=this.selectedProp,t=this.skuKeyStr,n=this.skuValue;return!(!e||!e[t])&&e[t].indexOf(n.id)>-1}},methods:{onSelect:function(){this.skuEventBus.$emit("sku:propSelect",Object(i["a"])({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var e=arguments[0];return e("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed}],on:{click:this.onSelect}},[e("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),cc=Object(o["a"])("stepper"),dc=cc[0],hc=cc[1],pc=600,fc=200;function mc(e,t){return String(e)===String(t)}var gc=dc({mixins:[lt],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var e,t=null!=(e=this.value)?e:this.defaultValue,n=this.format(t);return mc(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var e={};return this.inputWidth&&(e.width=Object(M["a"])(this.inputWidth)),this.buttonSize&&(e.height=Object(M["a"])(this.buttonSize)),e},buttonStyle:function(){if(this.buttonSize){var e=Object(M["a"])(this.buttonSize);return{width:e,height:e}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(e){mc(e,this.currentValue)||(this.currentValue=this.format(e))},currentValue:function(e){this.$emit("input",e),this.$emit("change",e,{name:this.name})}},methods:{check:function(){var e=this.format(this.currentValue);mc(e,this.currentValue)||(this.currentValue=e)},formatNumber:function(e){return B(String(e),!this.integer)},format:function(e){return this.allowEmpty&&""===e||(e=this.formatNumber(e),e=""===e?0:+e,e=Object(qt["a"])(e)?this.min:e,e=Math.max(Math.min(this.max,e),this.min),Object(d["c"])(this.decimalLength)&&(e=e.toFixed(this.decimalLength))),e},onInput:function(e){var t=e.target.value,n=this.formatNumber(t);if(Object(d["c"])(this.decimalLength)&&-1!==n.indexOf(".")){var i=n.split(".");n=i[0]+"."+i[1].slice(0,this.decimalLength)}mc(t,n)||(e.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(e){this.asyncChange?(this.$emit("input",e),this.$emit("change",e,{name:this.name})):this.currentValue=e},onChange:function(){var e=this.type;if(this[e+"Disabled"])this.$emit("overlimit",e);else{var t="minus"===e?-this.step:+this.step,n=this.format(U(+this.currentValue,t));this.emitChange(n),this.$emit(e)}},onFocus:function(e){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",e)},onBlur:function(e){var t=this.format(e.target.value);e.target.value=t,this.emitChange(t),this.$emit("blur",e),Se()},longPressStep:function(){var e=this;this.longPressTimer=setTimeout((function(){e.onChange(),e.longPressStep(e.type)}),fc)},onTouchStart:function(){var e=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){e.isLongPress=!0,e.onChange(),e.longPressStep()}),pc))},onTouchEnd:function(e){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&Object(C["c"])(e))},onMousedown:function(e){this.disableInput&&e.preventDefault()}},render:function(){var e=this,t=arguments[0],n=function(t){return{on:{click:function(n){n.preventDefault(),e.type=t,e.onChange()},touchstart:function(){e.type=t,e.onTouchStart()},touchend:e.onTouchEnd,touchcancel:e.onTouchEnd}}};return t("div",{class:hc([this.theme])},[t("button",a()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:hc("minus",{disabled:this.minusDisabled})},n("minus")])),t("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:hc("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),t("button",a()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:hc("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),vc=Object(o["a"])("sku-stepper"),yc=vc[0],bc=vc[2],_c=Pu.QUOTA_LIMIT,Tc=Pu.STOCK_LIMIT,Sc=yc({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Tc}},watch:{currentNum:function(e){var t=parseInt(e,10);t>=this.stepperMinLimit&&t<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",t)},stepperLimit:function(e){e<this.currentNum&&this.stepperMinLimit<=e&&(this.currentNum=e),this.checkState(this.stepperMinLimit,e)},stepperMinLimit:function(e){(e>this.currentNum||e>this.stepperLimit)&&(this.currentNum=e),this.checkState(e,this.stepperLimit)}},computed:{stepperLimit:function(){var e,t=this.quota-this.quotaUsed;return this.quota>0&&t<=this.stock?(e=t<0?0:t,this.limitType=_c):(e=this.stock,this.limitType=Tc),e},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var e=this.customStepperConfig,t=e.quotaText,n=e.hideQuotaText;if(n)return"";var i="";if(t)i=t;else{var r=[];this.startSaleNum>1&&r.push(bc("quotaStart",this.startSaleNum)),this.quota>0&&r.push(bc("quotaLimit",this.quota)),i=r.join(bc("comma"))}return i}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(e){this.currentNum=e,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(e){this.skuEventBus.$emit("sku:overLimit",{action:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(e){var t=parseInt(e,10),n=this.customStepperConfig.handleStepperChange;n&&n(t),this.$emit("change",t)},checkState:function(e,t){this.currentNum<e||e>t?this.currentNum=e:this.currentNum>t&&(this.currentNum=t),this.skuEventBus.$emit("sku:stepperState",{valid:e<=t,min:e,max:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var e=this,t=arguments[0];return t("div",{class:"van-sku-stepper-stock"},[t("div",{class:"van-sku__stepper-title"},[this.stepperTitle||bc("num")]),t(gc,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:e.currentNum,callback:function(t){e.currentNum=t}}}),!this.hideQuotaText&&this.quotaText&&t("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function wc(e){var t=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;return t.test(e)}function kc(e){return Array.isArray(e)?e:[e]}function Cc(e,t){return new Promise((function(n){if("file"!==t){var i=new FileReader;i.onload=function(e){n(e.target.result)},"dataUrl"===t?i.readAsDataURL(e):"text"===t&&i.readAsText(e)}else n(null)}))}function Ec(e,t){return kc(e).some((function(e){return!!e&&(Object(d["e"])(t)?t(e):e.size>t)}))}var xc=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Oc(e){return xc.test(e)}function Ac(e){return!!e.isImage||(e.file&&e.file.type?0===e.file.type.indexOf("image"):e.url?Oc(e.url):!!e.content&&0===e.content.indexOf("data:image"))}var Pc=Object(o["a"])("uploader"),Ic=Pc[0],Lc=Pc[1],Dc=Ic({inheritAttrs:!1,mixins:[lt],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(M["a"])(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(e){return void 0===e&&(e=this.fileList.length),{name:this.name,index:e}},onChange:function(e){var t=this,n=e.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var i=this.beforeRead(n,this.getDetail());if(!i)return void this.resetInput();if(Object(d["g"])(i))return void i.then((function(e){e?t.readFile(e):t.readFile(n)})).catch(this.resetInput)}this.readFile(n)}},readFile:function(e){var t=this,n=Ec(e,this.maxSize);if(Array.isArray(e)){var i=this.maxCount-this.fileList.length;e.length>i&&(e=e.slice(0,i)),Promise.all(e.map((function(e){return Cc(e,t.resultType)}))).then((function(i){var r=e.map((function(e,t){var n={file:e,status:"",message:""};return i[t]&&(n.content=i[t]),n}));t.onAfterRead(r,n)}))}else Cc(e,this.resultType).then((function(i){var r={file:e,status:"",message:""};i&&(r.content=i),t.onAfterRead(r,n)}))},onAfterRead:function(e,t){var n=this;this.resetInput();var i=e;if(t){var r=e;Array.isArray(e)?(r=[],i=[],e.forEach((function(e){e.file&&(Ec(e.file,n.maxSize)?r.push(e):i.push(e))}))):i=null,this.$emit("oversize",r,this.getDetail())}var a=Array.isArray(i)?Boolean(i.length):Boolean(i);a&&(this.$emit("input",[].concat(this.fileList,kc(i))),this.afterRead&&this.afterRead(i,this.getDetail()))},onDelete:function(e,t){var n,i=this,r=null!=(n=e.beforeDelete)?n:this.beforeDelete;if(r){var a=r(e,this.getDetail(t));if(!a)return;if(Object(d["g"])(a))return void a.then((function(){i.deleteFile(e,t)})).catch(d["i"])}this.deleteFile(e,t)},deleteFile:function(e,t){var n=this.fileList.slice(0);n.splice(t,1),this.$emit("input",n),this.$emit("delete",e,this.getDetail(t))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(e){this.$emit("click-upload",e)},onPreviewImage:function(e){var t=this;if(this.previewFullImage){var n=this.fileList.filter((function(e){return Ac(e)})),r=n.map((function(e){return e.content||e.url}));this.imagePreview=ss(Object(i["a"])({images:r,startPosition:n.indexOf(e),onClose:function(){t.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(e){var t=this.$createElement,n=e.status,i=e.message;if("uploading"===n||"failed"===n){var r="failed"===n?t(c["a"],{attrs:{name:"close"},class:Lc("mask-icon")}):t(g["a"],{class:Lc("loading")}),a=Object(d["c"])(i)&&""!==i;return t("div",{class:Lc("mask")},[r,a&&t("div",{class:Lc("mask-message")},[i])])}},genPreviewItem:function(e,t){var n,r,a,s=this,o=this.$createElement,l=null!=(n=e.deletable)?n:this.deletable,u="uploading"!==e.status&&l,d=u&&o("div",{class:Lc("preview-delete"),on:{click:function(n){n.stopPropagation(),s.onDelete(e,t)}}},[o(c["a"],{attrs:{name:"cross"},class:Lc("preview-delete-icon")})]),h=this.slots("preview-cover",Object(i["a"])({index:t},e)),p=h&&o("div",{class:Lc("preview-cover")},[h]),f=null!=(r=e.previewSize)?r:this.previewSize,m=null!=(a=e.imageFit)?a:this.imageFit,g=Ac(e)?o(Cn,{attrs:{fit:m,src:e.content||e.url,width:f,height:f,lazyLoad:this.lazyLoad},class:Lc("preview-image"),on:{click:function(){s.onPreviewImage(e)}}},[p]):o("div",{class:Lc("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(c["a"],{class:Lc("file-icon"),attrs:{name:"description"}}),o("div",{class:[Lc("file-name"),"van-ellipsis"]},[e.file?e.file.name:e.url]),p]);return o("div",{class:Lc("preview"),on:{click:function(){s.$emit("click-preview",e,s.getDetail(t))}}},[g,this.genPreviewMask(e),d])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var e=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var t,n=this.slots(),r=this.readonly?null:e("input",{attrs:Object(i["a"])({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:Lc("input"),on:{change:this.onChange}});if(n)return e("div",{class:Lc("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[n,r]);if(this.previewSize){var a=this.previewSizeWithUnit;t={width:a,height:a}}return e("div",{class:Lc("upload",{readonly:this.readonly}),style:t,on:{click:this.onClickUpload}},[e(c["a"],{attrs:{name:this.uploadIcon},class:Lc("upload-icon")}),this.uploadText&&e("span",{class:Lc("upload-text")},[this.uploadText]),r])}}},render:function(){var e=arguments[0];return e("div",{class:Lc()},[e("div",{class:Lc("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Mc=Object(o["a"])("sku-img-uploader"),jc=Mc[0],Rc=Mc[2],Nc=jc({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(e){this.fileList=e?[{url:e,isImage:!0}]:[]}},methods:{afterReadFile:function(e){var t=this;e.status="uploading",e.message=Rc("uploading"),this.uploadImg(e.file,e.content).then((function(n){e.status="done",t.$emit("input",n)})).catch((function(){e.status="failed",e.message=Rc("fail")}))},onOversize:function(){this.$toast(Rc("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var e=this;this.customUpload&&this.customUpload().then((function(t){e.fileList.push({url:t}),e.$emit("input",t)}))}},render:function(){var e=this,t=arguments[0];return t(Dc,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:1024*this.maxSize*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:e.fileList,callback:function(t){e.fileList=t}}})}});function Bc(e){return e?new Date(e.replace(/-/g,"/")):null}function Uc(e,t){if(void 0===t&&(t="date"),!e)return"";var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate(),a=n+"-"+Object(lr["b"])(i)+"-"+Object(lr["b"])(r);if("datetime"===t){var s=e.getHours(),o=e.getMinutes();a+=" "+Object(lr["b"])(s)+":"+Object(lr["b"])(o)}return a}var Fc=Object(o["a"])("sku-datetime-field"),$c=Fc[0],Hc=Fc[2],Vc=$c({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(e){switch(this.type){case"time":this.currentDate=e;break;case"date":case"datetime":this.currentDate=Bc(e)||new Date;break}}},computed:{title:function(){return Hc("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(e){var t=e;"time"!==this.type&&(t=Uc(e,this.type)),this.$emit("input",t),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(e,t){var n=Hc("format."+e);return""+t+n}},render:function(){var e=this,t=arguments[0];return t(Ee,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[t(m,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:e.showDatePicker,callback:function(t){e.showDatePicker=t}}},[t(ia,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),zc=Object(o["a"])("sku-messages"),qc=zc[0],Wc=zc[1],Gc=zc[2],Xc=qc({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(e){this.messageValues=this.resetMessageValues(e)}},methods:{resetMessageValues:function(e){var t=this.messageConfig,n=t.initialMessages,i=void 0===n?{}:n;return(e||[]).map((function(e){return{value:i[e.name]||""}}))},getType:function(e){return 1===+e.multiple?"textarea":"id_no"===e.type?"text":e.datetime>0?"datetime":e.type},getMessages:function(){var e={};return this.messageValues.forEach((function(t,n){e["message_"+n]=t.value})),e},getCartMessages:function(){var e=this,t={};return this.messageValues.forEach((function(n,i){var r=e.messages[i];t[r.name]=n.value})),t},getPlaceholder:function(e){var t=1===+e.multiple?"textarea":e.type,n=this.messageConfig.placeholderMap||{};return e.placeholder||n[t]||Gc("placeholder."+t)},validateMessages:function(){for(var e=this.messageValues,t=0;t<e.length;t++){var n=e[t].value,i=this.messages[t];if(""===n){if("1"===String(i.required)){var r=Gc("image"===i.type?"upload":"fill");return r+i.name}}else{if("tel"===i.type&&!Object(qt["b"])(n))return Gc("invalid.tel");if("mobile"===i.type&&!/^\d{6,20}$/.test(n))return Gc("invalid.mobile");if("email"===i.type&&!wc(n))return Gc("invalid.email");if("id_no"===i.type&&(n.length<15||n.length>18))return Gc("invalid.id_no")}}},getFormatter:function(e){return function(t){return"mobile"===e.type||"tel"===e.type?t.replace(/[^\d.]/g,""):t}},genMessage:function(e,t){var n=this,i=this.$createElement;if("image"===e.type)return i(ve,{key:this.goodsId+"-"+t,attrs:{title:e.name,required:"1"===String(e.required),valueClass:Wc("image-cell-value")},class:Wc("image-cell")},[i(Nc,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:n.messageValues[t].value,callback:function(e){n.$set(n.messageValues[t],"value",e)}}}),i("div",{class:Wc("image-cell-label")},[Gc("imageLabel")])]);var r=["date","time"].indexOf(e.type)>-1;return r?i(Vc,{attrs:{label:e.name,required:"1"===String(e.required),placeholder:this.getPlaceholder(e),type:this.getType(e)},key:this.goodsId+"-"+t,model:{value:n.messageValues[t].value,callback:function(e){n.$set(n.messageValues[t],"value",e)}}}):i(Ee,{attrs:{maxlength:"200",center:!e.multiple,label:e.name,required:"1"===String(e.required),placeholder:this.getPlaceholder(e),type:this.getType(e),formatter:this.getFormatter(e)},key:this.goodsId+"-"+t,model:{value:n.messageValues[t].value,callback:function(e){n.$set(n.messageValues[t],"value",e)}}})}},render:function(){var e=arguments[0];return e("div",{class:Wc()},[this.messages.map(this.genMessage)])}}),Yc=Object(o["a"])("sku-actions"),Kc=Yc[0],Qc=Yc[1],Jc=Yc[2];function Zc(e,t,n,i){var r=function(e){return function(){t.skuEventBus.$emit(e)}};return e("div",a()([{class:Qc()},Object(l["b"])(i)]),[t.showAddCartBtn&&e(Le,{attrs:{size:"large",type:"warning",text:t.addCartText||Jc("addCart")},on:{click:r("sku:addCart")}}),e(Le,{attrs:{size:"large",type:"danger",text:t.buyText||Jc("buy")},on:{click:r("sku:buy")}})])}Zc.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var ed=Kc(Zc),td=Object(o["a"])("sku"),nd=td[0],id=td[1],rd=td[2],ad=Pu.QUOTA_LIMIT,sd=nd({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(e){this.$emit("input",e),e||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(e){this.show=e},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var e=window.innerHeight-this.bodyOffsetTop;return{maxHeight:e+"px"}}},isSkuCombSelected:function(){var e=this;return!(this.hasSku&&!ju(this.skuTree,this.selectedSku))&&!this.propList.filter((function(e){return!1!==e.is_necessary})).some((function(t){return 0===(e.selectedProp[t.k_id]||[]).length}))},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var e=null;return this.isSkuCombSelected&&(e=this.hasSku?Ru(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num},e&&(e.properties=Fu(this.propList,this.selectedProp),e.property_price=this.selectedPropValues.reduce((function(e,t){return e+(t.price||0)}),0))),e},selectedSkuValues:function(){return Nu(this.skuTree,this.selectedSku)},selectedPropValues:function(){return Uu(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var e=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach((function(t){t.v&&t.v.forEach((function(t){var n=t.previewImgUrl||t.imgUrl||t.img_url;n&&-1===e.indexOf(n)&&e.push(n)}))})),e},stock:function(){var e=this.customStepperConfig.stockNum;return void 0!==e?e:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var e=this.$createElement,t=this.customStepperConfig.stockFormatter;return t?t(this.stock):[rd("stock")+" ",e("span",{class:id("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+rd("stockUnit")]},selectedText:function(){var e=this;if(this.selectedSkuComb){var t=this.selectedSkuValues.concat(this.selectedPropValues);return rd("selected")+" "+t.map((function(e){return e.name})).join(" ")}var n=this.skuTree.filter((function(t){return e.selectedSku[t.k_s]===Iu})).map((function(e){return e.k})),i=this.propList.filter((function(t){return(e.selectedProp[t.k_id]||[]).length<1})).map((function(e){return e.k}));return rd("select")+" "+n.concat(i).join(" ")}},created:function(){var e=new s["a"];this.skuEventBus=e,e.$on("sku:select",this.onSelect),e.$on("sku:propSelect",this.onPropSelect),e.$on("sku:numChange",this.onNumChange),e.$on("sku:previewImage",this.onPreviewImage),e.$on("sku:overLimit",this.onOverLimit),e.$on("sku:stepperState",this.onStepperState),e.$on("sku:addCart",this.onAddCart),e.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",e)},methods:{resetStepper:function(){var e=this.$refs.skuStepper,t=this.initialSku.selectedNum,n=null!=t?t:this.startSaleNum;this.stepperError=null,e?e.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var e=this;this.selectedSku={},this.skuTree.forEach((function(t){e.selectedSku[t.k_s]=Iu})),this.skuTree.forEach((function(t){var n=t.k_s,i=1===t.v.length?t.v[0].id:e.initialSku[n];i&&Bu(e.skuList,e.selectedSku,{key:n,valueId:i})&&(e.selectedSku[n]=i)}));var t=this.selectedSkuValues;t.length>0&&this.$nextTick((function(){e.$emit("sku-selected",{skuValue:t[t.length-1],selectedSku:e.selectedSku,selectedSkuComb:e.selectedSkuComb})})),this.selectedProp={};var n=this.initialSku.selectedProp,i=void 0===n?{}:n;this.propList.forEach((function(t){i[t.k_id]&&(e.selectedProp[t.k_id]=i[t.k_id])})),Object(d["d"])(this.selectedProp)&&this.propList.forEach((function(t){var n;if((null==t||null==(n=t.v)?void 0:n.length)>0){var i=t.v,r=t.k_id,a=i.some((function(e){return 0!==+e.price}));a||(e.selectedProp[r]=[i[0].id])}}));var r=this.selectedPropValues;r.length>0&&this.$emit("sku-prop-selected",{propValue:r[r.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return rd("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var e=this.customSkuValidator(this);if(e)return e}return rd("selectSku")},onSelect:function(e){var t,n;this.selectedSku=this.selectedSku[e.skuKeyStr]===e.id?Object(i["a"])({},this.selectedSku,(t={},t[e.skuKeyStr]=Iu,t)):Object(i["a"])({},this.selectedSku,(n={},n[e.skuKeyStr]=e.id,n)),this.$emit("sku-selected",{skuValue:e,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(e){var t,n=this.selectedProp[e.skuKeyStr]||[],r=n.indexOf(e.id);r>-1?n.splice(r,1):e.multiple?n.push(e.id):n.splice(0,1,e.id),this.selectedProp=Object(i["a"])({},this.selectedProp,(t={},t[e.skuKeyStr]=n,t)),this.$emit("sku-prop-selected",{propValue:e,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(e){this.selectedNum=e},onPreviewImage:function(e){var t=this,n=this.imageList,r=0,a=n[0];e&&e.imgUrl&&(this.imageList.some((function(t,n){return t===e.imgUrl&&(r=n,!0)})),a=e.imgUrl);var s=Object(i["a"])({},e,{index:r,imageList:this.imageList,indexImage:a});this.$emit("open-preview",s),this.previewOnClickImage&&ss({images:this.imageList,startPosition:r,onClose:function(){t.$emit("close-preview",s)}})},onOverLimit:function(e){var t=e.action,n=e.limitType,i=e.quota,r=e.quotaUsed,a=this.customStepperConfig.handleOverLimit;a?a(e):"minus"===t?this.startSaleNum>1?Object(xe["a"])(rd("minusStartTip",this.startSaleNum)):Object(xe["a"])(rd("minusTip")):"plus"===t&&(n===ad?r>0?Object(xe["a"])(rd("quotaUsedTip",i,r)):Object(xe["a"])(rd("quotaTip",i)):Object(xe["a"])(rd("soldout")))},onStepperState:function(e){this.stepperError=e.valid?null:Object(i["a"])({},e,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(e){if(this.stepperError)return this.onOverLimit(this.stepperError);var t=this.validateSku();t?Object(xe["a"])(t):this.$emit(e,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var e=this;(this.$refs.skuRows||[]).forEach((function(t){var n=t.skuRow||{},i=n.k_s;t.centerItem(e.initialSku[i])}))}},render:function(){var e=this,t=arguments[0];if(!this.isSkuEmpty){var n=this.sku,i=this.skuList,r=this.goods,a=this.price,s=this.lazyLoad,o=this.originPrice,l=this.skuEventBus,u=this.selectedSku,c=this.selectedProp,d=this.selectedNum,h=this.stepperTitle,p=this.selectedSkuComb,f=this.showHeaderImage,g=this.disableSoldoutSku,v={price:a,originPrice:o,selectedNum:d,skuEventBus:l,selectedSku:u,selectedSkuComb:p},y=function(t){return e.slots(t,v)},b=y("sku-header")||t(Gu,{attrs:{sku:n,goods:r,skuEventBus:l,selectedSku:u,showHeaderImage:f}},[t("template",{slot:"sku-header-image-extra"},[y("sku-header-image-extra")]),y("sku-header-price")||t("div",{class:"van-sku__goods-price"},[t("span",{class:"van-sku__price-symbol"},["ï¿¥"]),t("span",{class:"van-sku__price-num"},[a]),this.priceTag&&t("span",{class:"van-sku__price-tag"},[this.priceTag])]),y("sku-header-origin-price")||o&&t(Ju,[rd("originPrice")," ï¿¥",o]),!this.hideStock&&t(Ju,[t("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&t(Ju,[this.selectedText]),y("sku-header-extra")]),_=y("sku-group")||this.hasSkuOrAttr&&t("div",{class:this.skuGroupClass},[this.skuTree.map((function(e){return t(ic,{attrs:{skuRow:e},ref:"skuRows",refInFor:!0},[e.v.map((function(n){return t(sc,{attrs:{skuList:i,lazyLoad:s,skuValue:n,skuKeyStr:e.k_s,selectedSku:u,skuEventBus:l,disableSoldoutSku:g,largeImageMode:e.largeImageMode}})}))])})),this.propList.map((function(e){return t(ic,{attrs:{skuRow:e}},[e.v.map((function(n){return t(uc,{attrs:{skuValue:n,skuKeyStr:e.k_id+"",selectedProp:c,skuEventBus:l,multiple:e.is_multiple}})}))])}))]),T=y("sku-stepper")||t(Sc,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:l,selectedNum:d,stepperTitle:h,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(t){e.$emit("stepper-change",t)}}}),S=y("sku-messages")||t(Xc,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),w=y("sku-actions")||t(ed,{attrs:{buyText:this.buyText,skuEventBus:l,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return t(m,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:e.show,callback:function(t){e.show=t}}},[b,t("div",{class:"van-sku-body",style:this.bodyStyle},[y("sku-body-top"),_,y("extra-sku-group"),T,S]),y("sku-actions-top"),w])}}});Ts["a"].add(Au),sd.SkuActions=ed,sd.SkuHeader=Gu,sd.SkuHeaderItem=Ju,sd.SkuMessages=Xc,sd.SkuStepper=Sc,sd.SkuRow=ic,sd.SkuRowItem=sc,sd.SkuRowPropItem=uc,sd.skuHelper=$u,sd.skuConstants=Lu;var od=sd,ld=Object(o["a"])("slider"),ud=ld[0],cd=ld[1],dd=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},hd=ud({mixins:[F["a"],lt],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var e=Object(M["a"])(this.buttonSize);return{width:e,height:e}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(e){this.disabled||(this.touchStart(e),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(e){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),Object(C["c"])(e,!0),this.touchMove(e),this.dragStatus="draging";var t=this.$el.getBoundingClientRect(),n=this.vertical?this.deltaY:this.deltaX,i=this.vertical?t.height:t.width,r=n/i*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+r:this.currentValue=this.startValue+r,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(e){if(e.stopPropagation(),!this.disabled){var t=this.$el.getBoundingClientRect(),n=this.vertical?e.clientY-t.top:e.clientX-t.left,i=this.vertical?t.height:t.width,r=+this.min+n/i*this.scope;if(this.range){var a=this.value,s=a[0],o=a[1],l=(s+o)/2;r<=l?s=r:o=r,r=[s,o]}this.startValue=this.value,this.updateValue(r,!0)}},handleOverlap:function(e){return e[0]>e[1]?(e=j(e),e.reverse()):e},updateValue:function(e,t){e=this.range?this.handleOverlap(e).map(this.format):this.format(e),dd(e,this.value)||this.$emit("input",e),t&&!dd(e,this.startValue)&&this.$emit("change",e)},format:function(e){var t=+this.min,n=+this.max,i=+this.step;e=R(e,t,n);var r=Math.round((e-t)/i)*i;return U(t,r)}},render:function(){var e,t,n=this,i=arguments[0],r=this.vertical,a=r?"height":"width",s=r?"width":"height",o=(e={background:this.inactiveColor},e[s]=Object(M["a"])(this.barHeight),e),l=function(){var e=n.value,t=n.min,i=n.range,r=n.scope;return i?100*(e[1]-e[0])/r+"%":100*(e-t)/r+"%"},u=function(){var e=n.value,t=n.min,i=n.range,r=n.scope;return i?100*(e[0]-t)/r+"%":null},c=(t={},t[a]=l(),t.left=this.vertical?null:u(),t.top=this.vertical?u():null,t.background=this.activeColor,t);this.dragStatus&&(c.transition="none");var d=function(e){var t=["left","right"],r="number"===typeof e,a=function(){return r?"button-wrapper-"+t[e]:"button-wrapper"},s=function(){return r?"wrapper"+e:"wrapper"};return i("div",{ref:s(),attrs:{role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuenow":n.value,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal"},class:cd(a()),on:{touchstart:function(){r&&(n.index=e)},click:function(e){return e.stopPropagation()}}},[n.slots("button")||i("div",{class:cd("button"),style:n.buttonStyle})])};return i("div",{style:o,class:cd({disabled:this.disabled,vertical:r}),on:{click:this.onClick}},[i("div",{class:cd("bar"),style:c},[this.range?[d(0),d(1)]:d()])])}}),pd=Object(o["a"])("step"),fd=pd[0],md=pd[1],gd=fd({mixins:[je("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var e=this.$createElement,t=this.parent,n=t.activeIcon,i=t.iconPrefix,r=t.activeColor,a=t.finishIcon,s=t.inactiveIcon;if(this.active)return this.slots("active-icon")||e(c["a"],{class:md("icon","active"),attrs:{name:n,color:r,classPrefix:i}});var o=this.slots("finish-icon");if("finish"===this.status&&(a||o))return o||e(c["a"],{class:md("icon","finish"),attrs:{name:a,color:r,classPrefix:i}});var l=this.slots("inactive-icon");return s||l?l||e(c["a"],{class:md("icon"),attrs:{name:s,classPrefix:i}}):e("i",{class:md("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var e,t=arguments[0],n=this.status,i=this.active,r=this.parent.direction;return t("div",{class:[x,md([r,(e={},e[n]=n,e)])]},[t("div",{class:md("title",{active:i}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),t("div",{class:md("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),t("div",{class:md("line"),style:this.lineStyle})])}}),vd=Object(o["a"])("steps"),yd=vd[0],bd=vd[1],_d=yd({mixins:[Re("vanSteps")],props:{iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var e=arguments[0];return e("div",{class:bd([this.direction])},[e("div",{class:bd("items")},[this.slots()])])}}),Td=Object(o["a"])("submit-bar"),Sd=Td[0],wd=Td[1],kd=Td[2];function Cd(e,t,n,i){var r=t.tip,s=t.price,o=t.tipIcon;function u(){if("number"===typeof s){var n=(s/100).toFixed(t.decimalLength).split("."),i=t.decimalLength?"."+n[1]:"";return e("div",{style:{textAlign:t.textAlign?t.textAlign:""},class:wd("text")},[e("span",[t.label||kd("label")]),e("span",{class:wd("price")},[t.currency,e("span",{class:wd("price","integer")},[n[0]]),i]),t.suffixLabel&&e("span",{class:wd("suffix-label")},[t.suffixLabel])])}}function d(){if(n.tip||r)return e("div",{class:wd("tip")},[o&&e(c["a"],{class:wd("tip-icon"),attrs:{name:o}}),r&&e("span",{class:wd("tip-text")},[r]),n.tip&&n.tip()])}return e("div",a()([{class:wd({unfit:!t.safeAreaInsetBottom})},Object(l["b"])(i)]),[n.top&&n.top(),d(),e("div",{class:wd("bar")},[n.default&&n.default(),u(),n.button?n.button():e(Le,{attrs:{round:!0,type:t.buttonType,text:t.loading?"":t.buttonText,color:t.buttonColor,loading:t.loading,disabled:t.disabled},class:wd("button",t.buttonType),on:{click:function(){Object(l["a"])(i,"submit")}}})])])}Cd.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"Â¥"},buttonType:{type:String,default:"danger"}};var Ed=Sd(Cd),xd=Object(o["a"])("swipe-cell"),Od=xd[0],Ad=xd[1],Pd=.15,Id=Od({mixins:[F["a"],fa({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(e){if(this.$refs[e]){var t=this.$refs[e].getBoundingClientRect();return t.width}return 0},open:function(e){var t="left"===e?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=t,this.$emit("open",{position:e,name:this.name,detail:this.name})},close:function(e){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:e,name:this.name}))},onTouchStart:function(e){this.disabled||(this.startOffset=this.offset,this.touchStart(e))},onTouchMove:function(e){if(!this.disabled&&(this.touchMove(e),"horizontal"===this.direction)){this.dragging=!0,this.lockClick=!0;var t=!this.opened||this.deltaX*this.startOffset<0;t&&Object(C["c"])(e,this.stopPropagation),this.offset=R(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var e=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout((function(){e.lockClick=!1}),0))},toggle:function(e){var t=Math.abs(this.offset),n=this.opened?1-Pd:Pd,i=this.computedLeftWidth,r=this.computedRightWidth;r&&"right"===e&&t>r*n?this.open("right"):i&&"left"===e&&t>i*n?this.open("left"):this.close()},onClick:function(e){void 0===e&&(e="outside"),this.$emit("click",e),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:e,name:this.name,instance:this}):this.onClose?this.onClose(e,this,{name:this.name}):this.close(e))},getClickHandler:function(e,t){var n=this;return function(i){t&&i.stopPropagation(),n.onClick(e)}},genLeftPart:function(){var e=this.$createElement,t=this.slots("left");if(t)return e("div",{ref:"left",class:Ad("left"),on:{click:this.getClickHandler("left",!0)}},[t])},genRightPart:function(){var e=this.$createElement,t=this.slots("right");if(t)return e("div",{ref:"right",class:Ad("right"),on:{click:this.getClickHandler("right",!0)}},[t])}},render:function(){var e=arguments[0],t={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return e("div",{class:Ad(),on:{click:this.getClickHandler("cell")}},[e("div",{class:Ad("wrapper"),style:t},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Ld=Object(o["a"])("switch-cell"),Dd=Ld[0],Md=Ld[1];function jd(e,t,n,r){return e(ve,a()([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:Md([t.cellSize])},Object(l["b"])(r)]),[e(ht,{props:Object(i["a"])({},t),on:Object(i["a"])({},r.listeners)})])}jd.props=Object(i["a"])({},ot,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var Rd=Dd(jd),Nd=Object(o["a"])("tabbar"),Bd=Nd[0],Ud=Nd[1],Fd=Bd({mixins:[Re("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.tabbar.getBoundingClientRect().height)},methods:{setActiveItem:function(){var e=this;this.children.forEach((function(t,n){t.active=(t.name||n)===e.value}))},onChange:function(e){var t=this;e!==this.value&&Un({interceptor:this.beforeChange,args:[e],done:function(){t.$emit("input",e),t.$emit("change",e)}})},genTabbar:function(){var e,t=this.$createElement;return t("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(e={},e[L]=this.border,e),Ud({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var e=arguments[0];return this.placeholder&&this.fixed?e("div",{class:Ud("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),$d=Object(o["a"])("tabbar-item"),Hd=$d[0],Vd=$d[1],zd=Hd({mixins:[je("vanTabbar")],props:Object(i["a"])({},de,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var e=this.to,t=this.$route;if(e&&t){var n=Object(d["f"])(e)?e:{path:e},i=n.path===t.path,r=Object(d["c"])(n.name)&&n.name===t.name;return i||r}}},methods:{onClick:function(e){this.parent.onChange(this.name||this.index),this.$emit("click",e),ue(this.$router,this)},genIcon:function(e){var t=this.$createElement,n=this.slots("icon",{active:e});return n||(this.icon?t(c["a"],{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var e,t=arguments[0],n=this.parent.route?this.routeActive:this.active,i=this.parent[n?"activeColor":"inactiveColor"];return t("div",{class:Vd({active:n}),style:{color:i},on:{click:this.onClick}},[t("div",{class:Vd("icon")},[this.genIcon(n),t($n["a"],{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info}})]),t("div",{class:Vd("text")},[this.slots("default",{active:n})])])}}),qd=Object(o["a"])("tree-select"),Wd=qd[0],Gd=qd[1];function Xd(e,t,n,i){var r=t.items,s=t.height,o=t.activeId,u=t.selectedIcon,d=t.mainActiveIndex;var h=r[+d]||{},p=h.children||[],f=Array.isArray(o);function m(e){return f?-1!==o.indexOf(e):o===e}var g=r.map((function(t){var n;return e(Tu,{attrs:{dot:t.dot,info:null!=(n=t.badge)?n:t.info,title:t.text,disabled:t.disabled},class:[Gd("nav-item"),t.className]})}));function v(){return n.content?n.content():p.map((function(n){return e("div",{key:n.id,class:["van-ellipsis",Gd("item",{active:m(n.id),disabled:n.disabled})],on:{click:function(){if(!n.disabled){var e=n.id;if(f){e=o.slice();var r=e.indexOf(n.id);-1!==r?e.splice(r,1):e.length<t.max&&e.push(n.id)}Object(l["a"])(i,"update:active-id",e),Object(l["a"])(i,"click-item",n),Object(l["a"])(i,"itemclick",n)}}}},[n.text,m(n.id)&&e(c["a"],{attrs:{name:u},class:Gd("selected")})])}))}return e("div",a()([{class:Gd(),style:{height:Object(M["a"])(s)}},Object(l["b"])(i)]),[e(vu,{class:Gd("nav"),attrs:{activeKey:d},on:{change:function(e){Object(l["a"])(i,"update:main-active-index",e),Object(l["a"])(i,"click-nav",e),Object(l["a"])(i,"navclick",e)}}},[g]),e("div",{class:Gd("content")},[v()])])}Xd.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var Yd=Wd(Xd),Kd="2.12.27";function Qd(e){var t=[T,bt,zt,oe,Yt,Le,Tn,In,ui,ve,fi,yi,Si,Pi,Mi,Bi,Vi,Yi,tr,or,br,Or,jr,$r,ia,et,la,pa,ya,Ca,Ee,Aa,$e,qe,Da,Na,$a,c["a"],Cn,ss,cs,ms,$n["a"],_s,g["a"],Ts["a"],Cs,As,Fs,Ks,Qs["a"],io,lo,fo,ee,jl,m,Ul,Wl,Dt,wt,Ql,tu,ou,pu,vu,Tu,Ou,od,hd,gd,gc,_d,Yn,Ed,Xa,Id,Ja,ht,Rd,jn,Fd,zd,ri,Ot,xe["a"],Yd,Dc];t.forEach((function(t){t.install?e.use(t):t.name&&e.component(t.name,t)}))}"undefined"!==typeof window&&window.Vue&&Qd(window.Vue);t["a"]={install:Qd,version:Kd}},ba2d:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("be09"),a=i(r),s=n("12c6"),o=i(s),l=function(e){Object.defineProperties(e.frame,{id:{get:function(){return o["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return o["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return o["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},u=function(e){var t=void 0;return t=isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e,t},c=function(e,t,n){var i=a["default"].WebKitDataCue||a["default"].VTTCue;t&&t.forEach((function(e){var t=e.stream;this.inbandTextTracks_[t].addCue(new i(e.startTime+this.timestampOffset,e.endTime+this.timestampOffset,e.text))}),e),n&&function(){var t=u(e.mediaSource_.duration);n.forEach((function(e){var t=e.cueTime+this.timestampOffset;e.frames.forEach((function(e){var n=new i(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,l(n),this.metadataTrack_.addCue(n)}),this)}),e),e.metadataTrack_&&e.metadataTrack_.cues&&e.metadataTrack_.cues.length&&function(){for(var n=e.metadataTrack_.cues,i=[],r=0;r<n.length;r++)n[r]&&i.push(n[r]);var a=i.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),s=Object.keys(a).sort((function(e,t){return Number(e)-Number(t)}));s.forEach((function(e,n){var i=a[e],r=Number(s[n+1])||t;i.forEach((function(e){e.endTime=r}))}))}()}()};t["default"]={addTextTrackData:c,durationOfVideo:u},e.exports=t["default"]},ba31:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u}));var i=n("c31d"),r=n("2b0e"),a=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],s={nativeOn:"on"};function o(e,t){var n=a.reduce((function(t,n){return e.data[n]&&(t[s[n]||n]=e.data[n]),t}),{});return t&&(n.on=n.on||{},Object(i["a"])(n.on,e.data.on)),n}function l(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var a=e.listeners[t];a&&(Array.isArray(a)?a.forEach((function(e){e.apply(void 0,i)})):a.apply(void 0,i))}function u(e,t){var n=new r["a"]({el:document.createElement("div"),props:e.props,render:function(n){return n(e,Object(i["a"])({props:this.$props},t))}});return document.body.appendChild(n.$el),n}},bbe3:function(e,t,n){},bc1c:function(e,t,n){"use strict";var i,r,a,s,o,l,u=n("0129"),c=n("d36f"),d=n("70fd"),h=n("a65d"),p=n("eaba").H264Stream,f=n("713c"),m=n("7002");s=function(e,t){"number"===typeof t.pts&&(void 0===e.timelineStartInfo.pts?e.timelineStartInfo.pts=t.pts:e.timelineStartInfo.pts=Math.min(e.timelineStartInfo.pts,t.pts)),"number"===typeof t.dts&&(void 0===e.timelineStartInfo.dts?e.timelineStartInfo.dts=t.dts:e.timelineStartInfo.dts=Math.min(e.timelineStartInfo.dts,t.dts))},o=function(e,t){var n=new c(c.METADATA_TAG);return n.dts=t,n.pts=t,n.writeMetaDataDouble("videocodecid",7),n.writeMetaDataDouble("width",e.width),n.writeMetaDataDouble("height",e.height),n},l=function(e,t){var n,i=new c(c.VIDEO_TAG,!0);for(i.dts=t,i.pts=t,i.writeByte(1),i.writeByte(e.profileIdc),i.writeByte(e.profileCompatibility),i.writeByte(e.levelIdc),i.writeByte(255),i.writeByte(225),i.writeShort(e.sps[0].length),i.writeBytes(e.sps[0]),i.writeByte(e.pps.length),n=0;n<e.pps.length;++n)i.writeShort(e.pps[n].length),i.writeBytes(e.pps[n]);return i},a=function(e){var t,n=[],i=[];a.prototype.init.call(this),this.push=function(t){s(e,t),e&&(e.audioobjecttype=t.audioobjecttype,e.channelcount=t.channelcount,e.samplerate=t.samplerate,e.samplingfrequencyindex=t.samplingfrequencyindex,e.samplesize=t.samplesize,e.extraData=e.audioobjecttype<<11|e.samplingfrequencyindex<<7|e.channelcount<<3),t.pts=Math.round(t.pts/90),t.dts=Math.round(t.dts/90),n.push(t)},this.flush=function(){var r,a,s,o=new m;if(0!==n.length){s=-1/0;while(n.length)r=n.shift(),i.length&&r.pts>=i[0]&&(s=i.shift(),this.writeMetaDataTags(o,s)),(e.extraData!==t||r.pts-s>=1e3)&&(this.writeMetaDataTags(o,r.pts),t=e.extraData,s=r.pts),a=new c(c.AUDIO_TAG),a.pts=r.pts,a.dts=r.dts,a.writeBytes(r.data),o.push(a.finalize());i.length=0,t=null,this.trigger("data",{track:e,tags:o.list}),this.trigger("done","AudioSegmentStream")}else this.trigger("done","AudioSegmentStream")},this.writeMetaDataTags=function(t,n){var i;i=new c(c.METADATA_TAG),i.pts=n,i.dts=n,i.writeMetaDataDouble("audiocodecid",10),i.writeMetaDataBoolean("stereo",2===e.channelcount),i.writeMetaDataDouble("audiosamplerate",e.samplerate),i.writeMetaDataDouble("audiosamplesize",16),t.push(i.finalize()),i=new c(c.AUDIO_TAG,!0),i.pts=n,i.dts=n,i.view.setUint16(i.position,e.extraData),i.position+=2,i.length=Math.max(i.length,i.position),t.push(i.finalize())},this.onVideoKeyFrame=function(e){i.push(e)}},a.prototype=new u,r=function(e){var t,n,i=[];r.prototype.init.call(this),this.finishFrame=function(i,r){if(r){if(t&&e&&e.newMetadata&&(r.keyFrame||0===i.length)){var a=o(t,r.dts).finalize(),s=l(e,r.dts).finalize();a.metaDataTag=s.metaDataTag=!0,i.push(a),i.push(s),e.newMetadata=!1,this.trigger("keyframe",r.dts)}r.endNalUnit(),i.push(r.finalize()),n=null}},this.push=function(t){s(e,t),t.pts=Math.round(t.pts/90),t.dts=Math.round(t.dts/90),i.push(t)},this.flush=function(){var r,a=new m;while(i.length){if("access_unit_delimiter_rbsp"===i[0].nalUnitType)break;i.shift()}if(0!==i.length){while(i.length)r=i.shift(),"seq_parameter_set_rbsp"===r.nalUnitType?(e.newMetadata=!0,t=r.config,e.width=t.width,e.height=t.height,e.sps=[r.data],e.profileIdc=t.profileIdc,e.levelIdc=t.levelIdc,e.profileCompatibility=t.profileCompatibility,n.endNalUnit()):"pic_parameter_set_rbsp"===r.nalUnitType?(e.newMetadata=!0,e.pps=[r.data],n.endNalUnit()):"access_unit_delimiter_rbsp"===r.nalUnitType?(n&&this.finishFrame(a,n),n=new c(c.VIDEO_TAG),n.pts=r.pts,n.dts=r.dts):("slice_layer_without_partitioning_rbsp_idr"===r.nalUnitType&&(n.keyFrame=!0),n.endNalUnit()),n.startNalUnit(),n.writeBytes(r.data);n&&this.finishFrame(a,n),this.trigger("data",{track:e,tags:a.list}),this.trigger("done","VideoSegmentStream")}else this.trigger("done","VideoSegmentStream")}},r.prototype=new u,i=function(e){var t,n,s,o,l,u,c,m,g,v,y,b,_=this;i.prototype.init.call(this),e=e||{},this.metadataStream=new d.MetadataStream,e.metadataStream=this.metadataStream,t=new d.TransportPacketStream,n=new d.TransportParseStream,s=new d.ElementaryStream,o=new d.TimestampRolloverStream("video"),l=new d.TimestampRolloverStream("audio"),u=new d.TimestampRolloverStream("timed-metadata"),c=new h,m=new p,b=new f(e),t.pipe(n).pipe(s),s.pipe(o).pipe(m),s.pipe(l).pipe(c),s.pipe(u).pipe(this.metadataStream).pipe(b),y=new d.CaptionStream,m.pipe(y).pipe(b),s.on("data",(function(e){var t,n,i;if("metadata"===e.type){t=e.tracks.length;while(t--)"video"===e.tracks[t].type?n=e.tracks[t]:"audio"===e.tracks[t].type&&(i=e.tracks[t]);n&&!g&&(b.numberOfTracks++,g=new r(n),m.pipe(g).pipe(b)),i&&!v&&(b.numberOfTracks++,v=new a(i),c.pipe(v).pipe(b),g&&g.on("keyframe",v.onVideoKeyFrame))}})),this.push=function(e){t.push(e)},this.flush=function(){t.flush()},this.resetCaptions=function(){y.reset()},b.on("data",(function(e){_.trigger("data",e)})),b.on("done",(function(){_.trigger("done")}))},i.prototype=new u,e.exports=i},bc3a:function(e,t,n){e.exports=n("cee4")},be09:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},bec7:function(e,t,n){var i=n("be09"),r=e.exports={WebVTT:n("4e4e"),VTTCue:n("ea3c"),VTTRegion:n("2fdb")};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=s},r.restore=function(){i.VTTCue=o,i.VTTRegion=l},i.VTTCue||r.shim()},c04e:function(e,t,n){var i=n("861d"),r=n("d9b5"),a=n("485a"),s=n("b622"),o=s("toPrimitive");e.exports=function(e,t){if(!i(e)||r(e))return e;var n,s=e[o];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!i(n)||r(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c31d:function(e,t,n){"use strict";function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i.apply(this,arguments)}n.d(t,"a",(function(){return i}))},c345:function(e,t,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,s={};return e?(i.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c401:function(e,t,n){"use strict";var i=n("c532"),r=n("2444");e.exports=function(e,t,n){var a=this||r;return i.forEach(n,(function(n){e=n.call(a,e,t)})),e}},c430:function(e,t){e.exports=!1},c532:function(e,t,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function s(e){return"undefined"===typeof e}function o(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===r.call(e)}function g(e){return"[object File]"===r.call(e)}function v(e){return"[object Blob]"===r.call(e)}function y(e){return"[object Function]"===r.call(e)}function b(e){return p(e)&&y(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function T(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function k(){var e={};function t(t,n){f(e[n])&&f(t)?e[n]=k(e[n],t):f(t)?e[n]=k({},t):a(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)w(arguments[n],t);return e}function C(e,t,n){return w(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function E(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:a,isArrayBuffer:l,isBuffer:o,isFormData:u,isArrayBufferView:c,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:s,isDate:m,isFile:g,isBlob:v,isFunction:y,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:S,forEach:w,merge:k,extend:C,trim:T,stripBOM:E}},c5323:function(e,t,n){"use strict";var i=n("d36f"),r=function(e,t,n){var r,a,s,o=new Uint8Array(9),l=new DataView(o.buffer);return e=e||0,t=void 0===t||t,n=void 0===n||n,l.setUint8(0,70),l.setUint8(1,76),l.setUint8(2,86),l.setUint8(3,1),l.setUint8(4,(t?4:0)|(n?1:0)),l.setUint32(5,o.byteLength),e<=0?(a=new Uint8Array(o.byteLength+4),a.set(o),a.set([0,0,0,0],o.byteLength),a):(r=new i(i.METADATA_TAG),r.pts=r.dts=0,r.writeMetaDataDouble("duration",e),s=r.finalize().length,a=new Uint8Array(o.byteLength+s),a.set(o),a.set(l.byteLength,s),a)};e.exports=r},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),a="__core-js_shared__",s=i[a]||r(a,{});e.exports=s},c7ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("1b15"),u=a(l),c=n("5164"),d=n("d61a"),h=n("e475"),p=a(h),f=[{name:"VOD",run:function(e,t,n,i,r){if(n!==1/0){var a={time:0,segmentIndex:0};return a}return null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(e.datetimeToDisplayTime&&t.dateTimeObject){var a=t.dateTimeObject.getTime()/1e3,s=a+e.datetimeToDisplayTime,o={time:s,segmentIndex:0};return o}return null}},{name:"Segment",run:function(e,t,n,i,r){var a=t.segments||[],s=null,o=null;r=r||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.timeline===i&&"undefined"!==typeof u.start){var c=Math.abs(r-u.start);if(null!==o&&o<c)break;(!s||null===o||o>=c)&&(o=c,s={time:u.start,segmentIndex:l})}}return s}},{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 l=t.discontinuityStarts[o],u=t.discontinuitySequence+o+1,c=e.discontinuities[u];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:l})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){if(t.syncInfo){var a={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence};return a}return null}}];t.syncPointStrategies=f;var m=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.inspectCache_=void 0,this.timelines=[],this.discontinuities=[],this.datetimeToDisplayTime=null,e.debug&&(this.logger_=p["default"].log.bind(p["default"],"sync-controller ->"))}return o(t,e),i(t,[{key:"getSyncPoint",value:function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);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+(0,d.sumDurations)(e,i.segmentIndex,0))}},{key:"runStrategies_",value:function(e,t,n,i){for(var r=[],a=0;a<f.length;a++){var s=f[a],o=s.run(this,e,t,n,i);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}),this.logger_("syncPoint found via <"+s.name+">:",o))}return r}},{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 with strategy <"+r+"> chosen: ",n),n}},{key:"saveExpiredSegmentInfo",value:function(e,t){for(var n=t.mediaSequence-e.mediaSequence,i=n-1;i>=0;i--){var r=e.segments[i];if(r&&"undefined"!==typeof r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist sync:",t.syncInfo),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(e){if(!this.datetimeToDisplayTime&&e.dateTimeObject){var t=e.dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(e){var t=e.segment,n=e.playlist,i=void 0;return i=t.map?this.probeMp4Segment_(e):this.probeTsSegment_(e),i&&this.calculateSegmentTimeMapping_(e,i)&&(this.saveDiscontinuitySyncInfo_(e),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:t.start})),i}},{key:"probeMp4Segment_",value:function(e){var t=e.segment,n=u["default"].timescale(t.map.bytes),i=u["default"].startTime(n,e.bytes);return null!==e.timestampOffset&&(e.timestampOffset-=i),{start:i,end:i+t.duration}}},{key:"probeTsSegment_",value:function(e){var t=(0,c.inspect)(e.bytes,this.inspectCache_),n=void 0,i=void 0;return t?(t.video&&2===t.video.length?(this.inspectCache_=t.video[1].dts,n=t.video[0].dtsTime,i=t.video[1].dtsTime):t.audio&&2===t.audio.length&&(this.inspectCache_=t.audio[1].dts,n=t.audio[0].dtsTime,i=t.audio[1].dtsTime),{start:n,end:i,containsVideo:t.video&&2===t.video.length,containsAudio:t.audio&&2===t.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t){var n=e.segment,i=this.timelines[e.timeline];if(null!==e.timestampOffset)this.logger_("tsO:",e.timestampOffset),i={time:e.startOfSegment,mapping:e.startOfSegment-t.start},this.timelines[e.timeline]=i,this.trigger("timestampoffset"),n.start=e.startOfSegment,n.end=t.end+i.mapping;else{if(!i)return!1;n.start=t.start+i.mapping,n.end=t.end+i.mapping}return!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.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 l=void 0;l=s<0?n.start-(0,d.sumDurations)(t,e.mediaIndex,r):n.end+(0,d.sumDurations)(t,e.mediaIndex+1,r),this.discontinuities[a]={time:l,accuracy:o}}}}},{key:"logger_",value:function(){}}]),t}(p["default"].EventTarget);t["default"]=m},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var i=n("5135"),r=n("fc6a"),a=n("4d64").indexOf,s=n("d012");e.exports=function(e,t){var n,o=r(e),l=0,u=[];for(n in o)!i(s,n)&&i(o,n)&&u.push(n);while(t.length>l)i(o,n=t[l++])&&(~a(u,n)||u.push(n));return u}},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),a=i.document,s=r(a)&&r(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),a=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e),s=n.resolve;return s(t),n.promise}},ce4e:function(e,t,n){var i=n("da84");e.exports=function(e,t){try{Object.defineProperty(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},cee4:function(e,t,n){"use strict";var i=n("c532"),r=n("1d2b"),a=n("0a06"),s=n("4a7b"),o=n("2444");function l(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var u=l(o);u.Axios=a,u.create=function(e){return l(s(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),u.isAxiosError=n("5f02"),e.exports=u,e.exports.default=u},d012:function(e,t){e.exports={}},d02c:function(e,t,n){var i=n("ef34"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(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}function o(){this.values=r(null)}function l(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);if(2===s.length){var o=s[0],l=s[1];t(o,l)}}}function u(e,t,n){var i=e;function r(){var t=s(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(e,t){var i=new o;l(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(r){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(r){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(r){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=r(),c(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),c(),t.endTime=r(),c(),u(e,t)}a.prototype=r(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.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),t>=0&&t<=100))&&(this.set(e,t),!0)}};var c=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={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)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return c.innerHTML=e,e=c.textContent,c.textContent="",e}function r(e,t){return!f[t.localName]||f[t.localName]===e.localName}function a(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),a=p[t];return a&&n&&(r[a]=n.trim()),r}var o,l=e.document.createElement("div"),u=l,m=[];while(null!==(o=n()))if("<"!==o[0])u.appendChild(e.document.createTextNode(i(o)));else{if("/"===o[1]){m.length&&m[m.length-1]===o.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var g,v=s(o.substr(1,o.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),u.appendChild(g);continue}var y=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(g=a(y[1],y[3]),!g)continue;if(!r(u,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var i=t?"background-color":"color",r=h[n];g.style[i]=r}})),g.className=b.join(" ")}m.push(y[1]),u.appendChild(g),u=g}return l}var g=[[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],[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]];function v(e){for(var t=0;t<g.length;t++){var n=g[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t,n=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function a(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}r(n,e);while(i=a(n))for(var s=0;s<i.length;s++)if(t=i.charCodeAt(s),v(t))return"rtl";return"ltr"}function b(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}function _(){}function T(e,t,n){_.call(this),this.cue=t,this.cueDiv=m(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"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:y(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":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size;break}""===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")})}}function S(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}function w(e,t,n,i){function r(e,t){for(var r,a=new S(e),s=1,o=0;o<t.length;o++){while(e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i))e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new S(e),s=l),e=new S(a)}return r||a}var a=new S(t),s=t.cue,o=b(s),l=[];if(s.snapToLines){var u;switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=a.lineHeight,d=c*Math.round(o),h=n[u]+c,p=l[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),o<0&&(d+=""===s.vertical?n.height:n.width,l=l.reverse()),a.move(p,d)}else{var f=a.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=f/2;break;case"end":o-=f;break}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],a=new S(t)}var m=r(a,l);t.move(m.toCSSCompatValues(n))}function k(){}_.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},T.prototype=r(_.prototype),T.prototype.constructor=T,S.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;break}},S.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},S.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},S.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},S.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}},S.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*n;return i/(this.height*this.width)},S.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}},S.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;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n};return r},k.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},k.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};var C=.05,E="sans-serif",x="1.5%";k.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=x,n.appendChild(i),r(t)){var a=[],s=S.getSimpleBoxPosition(i),o=Math.round(s.height*C*100)/100,l={font:o+"px "+E};(function(){for(var n,r,o=0;o<t.length;o++)r=t[o],n=new T(e,r,l),i.appendChild(n.div),w(e,n,s,a),r.displayState=n.div,a.push(S.getSimpleBoxPosition(n))})()}else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},k.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=[]},k.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(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}function i(e){var n=new o;if(l(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function r(e){var n=new o;l(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",s(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":r(t);break}}),/=/):l(e,(function(e,t){switch(e){case"Region":i(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;d=n();var h=d.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:d=n(),t.state){case"HEADER":/:/.test(d)?c(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(m){t.cue.align="middle"}if(t.state="CUE",-1===d.indexOf("--\x3e")){t.cue.id=d;continue}case"CUE":try{u(d,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==d.indexOf("--\x3e");if(!d||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"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(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new a(a.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=k},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},d136:function(e,t,n){(function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,i=/^([^\/?#]*)([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var c=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(d)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(r,"");while(e.length!==(e=e.replace(a,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=s})()},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d233:function(e,t,n){"use strict";var i=n("b313"),r=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var i=[],r=0;r<n.length;++r)"undefined"!==typeof n[r]&&i.push(n[r]);t.obj[t.prop]=i}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)"undefined"!==typeof e[i]&&(n[i]=e[i]);return n},u=function e(t,n,i){if(!n)return t;if("object"!==typeof n){if(a(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var s=t;return a(t)&&!a(n)&&(s=l(t,i)),a(t)&&a(n)?(n.forEach((function(n,a){if(r.call(t,a)){var s=t[a];s&&"object"===typeof s&&n&&"object"===typeof n?t[a]=e(s,n,i):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var s=n[a];return r.call(t,a)?t[a]=e(t[a],s,i):t[a]=s,t}),s)},c=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(r){return i}},h=function(e,t,n,r,a){if(0===e.length)return e;var o=e;if("symbol"===typeof e?o=Symbol.prototype.toString.call(e):"string"!==typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<o.length;++u){var c=o.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===i.RFC1738&&(40===c||41===c)?l+=o.charAt(u):c<128?l+=s[c]:c<2048?l+=s[192|c>>6]+s[128|63&c]:c<55296||c>=57344?l+=s[224|c>>12]+s[128|c>>6&63]+s[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(u)),l+=s[240|c>>18]+s[128|c>>12&63]+s[128|c>>6&63]+s[128|63&c])}return l},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return o(t),e},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(a(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)};e.exports={arrayToObject:l,assign:c,combine:g,compact:p,decode:d,encode:h,isBuffer:m,isRegExp:f,maybeMap:v,merge:u}},d282:function(e,t,n){"use strict";function i(e,t){return t?"string"===typeof t?" "+e+"--"+t:Array.isArray(t)?t.reduce((function(t,n){return t+i(e,n)}),""):Object.keys(t).reduce((function(n,r){return n+(t[r]?i(e,r):"")}),""):""}function r(e){return function(t,n){return t&&"string"!==typeof t&&(n=t,t=""),t=t?e+"__"+t:e,""+t+i(t,n)}}n.d(t,"a",(function(){return f}));var a=n("a142"),s=n("68ed"),o={methods:{slots:function(e,t){void 0===e&&(e="default");var n=this.$slots,i=this.$scopedSlots,r=i[e];return r?r(t):n[e]}}};function l(e){var t=this.name;e.component(t,this),e.component(Object(s["a"])("-"+t),this)}function u(e){var t=e.scopedSlots||e.data.scopedSlots||{},n=e.slots();return Object.keys(n).forEach((function(e){t[e]||(t[e]=function(){return n[e]})})),t}function c(e){return{functional:!0,props:e.props,model:e.model,render:function(t,n){return e(t,n.props,u(n),n)}}}function d(e){return function(t){return Object(a["e"])(t)&&(t=c(t)),t.functional||(t.mixins=t.mixins||[],t.mixins.push(o)),t.name=e,t.install=l,t}}var h=n("3c69");function p(e){var t=Object(s["a"])(e)+".";return function(e){for(var n=h["a"].messages(),i=Object(a["a"])(n,t+e)||Object(a["a"])(n,e),r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return Object(a["e"])(i)?i.apply(void 0,s):i}}function f(e){return e="van-"+e,[d(e),r(e),p(e)]}},d2bb:function(e,t,n){var i=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return i(n),r(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},d36f:function(e,t,n){"use strict";var i;i=function(e,t){var n,r=0,a=16384,s=function(e,t){var n,i=e.position+t;i<e.bytes.byteLength||(n=new Uint8Array(2*i),n.set(e.bytes.subarray(0,e.position),0),e.bytes=n,e.view=new DataView(e.bytes.buffer))},o=i.widthBytes||new Uint8Array("width".length),l=i.heightBytes||new Uint8Array("height".length),u=i.videocodecidBytes||new Uint8Array("videocodecid".length);if(!i.widthBytes){for(n=0;n<"width".length;n++)o[n]="width".charCodeAt(n);for(n=0;n<"height".length;n++)l[n]="height".charCodeAt(n);for(n=0;n<"videocodecid".length;n++)u[n]="videocodecid".charCodeAt(n);i.widthBytes=o,i.heightBytes=l,i.videocodecidBytes=u}switch(this.keyFrame=!1,e){case i.VIDEO_TAG:this.length=16,a*=6;break;case i.AUDIO_TAG:this.length=13,this.keyFrame=!0;break;case i.METADATA_TAG:this.length=29,this.keyFrame=!0;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(a),this.view=new DataView(this.bytes.buffer),this.bytes[0]=e,this.position=this.length,this.keyFrame=t,this.pts=0,this.dts=0,this.writeBytes=function(e,t,n){var i,r=t||0;n=n||e.byteLength,i=r+n,s(this,n),this.bytes.set(e.subarray(r,i),this.position),this.position+=n,this.length=Math.max(this.length,this.position)},this.writeByte=function(e){s(this,1),this.bytes[this.position]=e,this.position++,this.length=Math.max(this.length,this.position)},this.writeShort=function(e){s(this,2),this.view.setUint16(this.position,e),this.position+=2,this.length=Math.max(this.length,this.position)},this.negIndex=function(e){return this.bytes[this.length-e]},this.nalUnitSize=function(){return 0===r?0:this.length-(r+4)},this.startNalUnit=function(){if(r>0)throw new Error("Attempted to create new NAL wihout closing the old one");r=this.length,this.length+=4,this.position=this.length},this.endNalUnit=function(e){var t,n;this.length===r+4?this.length-=4:r>0&&(t=r+4,n=this.length-t,this.position=r,this.view.setUint32(this.position,n),this.position=this.length,e&&e.push(this.bytes.subarray(t,t+n))),r=0},this.writeMetaDataDouble=function(e,t){var n;if(s(this,2+e.length+9),this.view.setUint16(this.position,e.length),this.position+=2,"width"===e)this.bytes.set(o,this.position),this.position+=5;else if("height"===e)this.bytes.set(l,this.position),this.position+=6;else if("videocodecid"===e)this.bytes.set(u,this.position),this.position+=12;else for(n=0;n<e.length;n++)this.bytes[this.position]=e.charCodeAt(n),this.position++;this.position++,this.view.setFloat64(this.position,t),this.position+=8,this.length=Math.max(this.length,this.position),++r},this.writeMetaDataBoolean=function(e,t){var n;for(s(this,2),this.view.setUint16(this.position,e.length),this.position+=2,n=0;n<e.length;n++)s(this,1),this.bytes[this.position]=e.charCodeAt(n),this.position++;s(this,2),this.view.setUint8(this.position,1),this.position++,this.view.setUint8(this.position,t?1:0),this.position++,this.length=Math.max(this.length,this.position),++r},this.finalize=function(){var e,n;switch(this.bytes[0]){case i.VIDEO_TAG:this.bytes[11]=7|(this.keyFrame||t?16:32),this.bytes[12]=t?0:1,e=this.pts-this.dts,this.bytes[13]=(16711680&e)>>>16,this.bytes[14]=(65280&e)>>>8,this.bytes[15]=(255&e)>>>0;break;case i.AUDIO_TAG:this.bytes[11]=175,this.bytes[12]=t?0:1;break;case i.METADATA_TAG:this.position=11,this.view.setUint8(this.position,2),this.position++,this.view.setUint16(this.position,10),this.position+=2,this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position),this.position+=10,this.bytes[this.position]=8,this.position++,this.view.setUint32(this.position,r),this.position=this.length,this.bytes.set([0,0,9],this.position),this.position+=3,this.length=this.position;break}return n=this.length-11,this.bytes[1]=(16711680&n)>>>16,this.bytes[2]=(65280&n)>>>8,this.bytes[3]=(255&n)>>>0,this.bytes[4]=(16711680&this.dts)>>>16,this.bytes[5]=(65280&this.dts)>>>8,this.bytes[6]=(255&this.dts)>>>0,this.bytes[7]=(4278190080&this.dts)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,s(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=i.frameTime(this.bytes),this}},i.AUDIO_TAG=8,i.VIDEO_TAG=9,i.METADATA_TAG=18,i.isAudioFrame=function(e){return i.AUDIO_TAG===e[0]},i.isVideoFrame=function(e){return i.VIDEO_TAG===e[0]},i.isMetaData=function(e){return i.METADATA_TAG===e[0]},i.isKeyFrame=function(e){return i.isVideoFrame(e)?23===e[11]:!!i.isAudioFrame(e)||!!i.isMetaData(e)},i.frameTime=function(e){var t=e[4]<<16;return t|=e[5]<<8,t|=e[6]<<0,t|=e[7]<<24,t},e.exports=i},d399:function(e,t,n){"use strict";var i=n("c31d"),r=n("2b0e"),a=n("d282"),s=n("a142"),o=0;function l(e){e?(o||document.body.classList.add("van-toast--unclickable"),o++):(o--,o||document.body.classList.remove("van-toast--unclickable"))}var u=n("6605"),c=n("ad06"),d=n("543e"),h=Object(a["a"])("toast"),p=h[0],f=h[1],m=p({mixins:[Object(u["a"])()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var e=this.value&&this.forbidClick;this.clickable!==e&&(this.clickable=e,l(e))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var e=this.$createElement,t=this.icon,n=this.type,i=this.iconPrefix,r=this.loadingType,a=t||"success"===n||"fail"===n;return a?e(c["a"],{class:f("icon"),attrs:{classPrefix:i,name:t||n}}):"loading"===n?e(d["a"],{class:f("loading"),attrs:{type:r}}):void 0},genMessage:function(){var e=this.$createElement,t=this.type,n=this.message;if(Object(s["c"])(n)&&""!==n)return"html"===t?e("div",{class:f("text"),domProps:{innerHTML:n}}):e("div",{class:f("text")},[n])}},render:function(){var e,t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[t("div",{directives:[{name:"show",value:this.value}],class:[f([this.position,(e={},e[this.type]=!this.icon,e)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),g=n("092d"),v={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},y={},b=[],_=!1,T=Object(i["a"])({},v);function S(e){return Object(s["f"])(e)?e:{message:e}}function w(e){return document.body.contains(e)}function k(){if(s["h"])return{};if(b=b.filter((function(e){return!e.$el.parentNode||w(e.$el)})),!b.length||_){var e=new(r["a"].extend(m))({el:document.createElement("div")});e.$on("input",(function(t){e.value=t})),b.push(e)}return b[b.length-1]}function C(e){return Object(i["a"])({},e,{overlay:e.mask||e.overlay,mask:void 0,duration:void 0})}function E(e){void 0===e&&(e={});var t=k();return t.value&&t.updateZIndex(),e=S(e),e=Object(i["a"])({},T,y[e.type||T.type],e),e.clear=function(){t.value=!1,e.onClose&&(e.onClose(),e.onClose=null),_&&!s["h"]&&t.$on("closed",(function(){clearTimeout(t.timer),b=b.filter((function(e){return e!==t})),Object(g["a"])(t.$el),t.$destroy()}))},Object(i["a"])(t,C(e)),clearTimeout(t.timer),e.duration>0&&(t.timer=setTimeout((function(){t.clear()}),e.duration)),t}var x=function(e){return function(t){return E(Object(i["a"])({type:e},S(t)))}};["loading","success","fail"].forEach((function(e){E[e]=x(e)})),E.clear=function(e){b.length&&(e?(b.forEach((function(e){e.clear()})),b=[]):_?b.shift().clear():b[0].clear())},E.setDefaultOptions=function(e,t){"string"===typeof e?y[e]=t:Object(i["a"])(T,e)},E.resetDefaultOptions=function(e){"string"===typeof e?y[e]=null:(T=Object(i["a"])({},v),y={})},E.allowMultiple=function(e){void 0===e&&(e=!0),_=e},E.install=function(){r["a"].use(m)},r["a"].prototype.$toast=E;t["a"]=E},d3ae:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&o["return"]&&o["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function r(e){return e&&e.__esModule?e:{default:e}}var a=n("e475"),s=r(a),o=1/30,l=3*o,u=function(e,t){var n=i(t,2),r=n[0],a=n[1];return Math.min(Math.max(r,e),a)},c=function(e,t){var n=[],i=void 0;if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return s["default"].createTimeRanges(n)},d=function(e,t){return c(e,(function(e,n){return e-o<=t&&n+o>=t}))},h=function(e,t){return c(e,(function(e){return e-o>=t}))},p=function(e){if(e.length<2)return s["default"].createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return s["default"].createTimeRanges(t)},f=function(e,t){var n=void 0,i=void 0,r=void 0,a=[],s=[],o=function(e){return e[0]<=r&&e[1]>=r};if(e)for(n=0;n<e.length;n++)i=e.start(n),r=e.end(n),s.push([i,r]);if(t)for(n=0;n<t.length;n++)i=t.start(n),r=t.end(n),s.some(o)||a.push(r);return 1!==a.length?null:a[0]},m=function(e,t){var n=null,i=null,r=0,a=[],o=[];if(!e||!e.length||!t||!t.length)return s["default"].createTimeRange();var l=e.length;while(l--)a.push({time:e.start(l),type:"start"}),a.push({time:e.end(l),type:"end"});l=t.length;while(l--)a.push({time:t.start(l),type:"start"}),a.push({time:t.end(l),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),l=0;l<a.length;l++)"start"===a[l].type?(r++,2===r&&(n=a[l].time)):"end"===a[l].type&&(r--,1===r&&(i=a[l].time)),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return s["default"].createTimeRanges(o)},g=function(e,t,n,i){var r=t.end(0)-t.start(0),a=e.end(0)-e.start(0),s=r-a,o=m(e,i),l=m(t,i),u=0,c=0,d=o.length;while(d--)u+=o.end(d)-o.start(d),o.start(d)===n&&(u+=s);d=l.length;while(d--)c+=l.end(d)-l.start(d);return Math.max(u,c)/r*100},v=function(e,t,n,i){var r=e+t,a=s["default"].createTimeRanges([[e,r]]),o=s["default"].createTimeRanges([[u(e,[n,r]),r]]);if(o.start(0)===o.end(0))return 0;var l=g(o,a,n,i);return isNaN(l)||l===1/0||l===-1/0?0:l},y=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(", ")},b=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2],i=e.length?e.end(e.length-1):0;return(i-t)/n};t["default"]={findRange:d,findNextRange:h,findGaps:p,findSoleUncommonTimeRangesEnd:f,getSegmentBufferedPercent:v,TIME_FUDGE_FACTOR:o,SAFE_TIME_DELTA:l,printableRange:y,timeUntilRebuffer:b},e.exports=t["default"]},d3b7:function(e,t,n){var i=n("00ee"),r=n("6eeb"),a=n("b041");i||r(Object.prototype,"toString",a,{unsafe:!0})},d44e:function(e,t,n){var i=n("9bf2").f,r=n("5135"),a=n("b622"),s=a("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},d4c3:function(e,t,n){var i=n("342f"),r=n("da84");e.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},d61a:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n("e475"),a=n("be09"),s=i(a),o=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(i--){if(r=e.segments[i],"undefined"!==typeof r.end)return{result:n+r.end,precise:!0};if(n+=r.duration,"undefined"!==typeof r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},l=function(e,t){for(var n=0,i=void 0,r=t-e.mediaSequence;r<e.segments.length;r++){if(i=e.segments[r],"undefined"!==typeof i.start)return{result:i.start-n,precise:!0};if(n+=i.duration,"undefined"!==typeof i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}},u=function(e,t,n){var i=void 0,r=void 0;return"undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence?0:(i=o(e,t),i.precise?i.result:(r=l(e,t),r.precise?r.result:i.result+n))},c=function(e,t,n){if(!e)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return s["default"].Infinity}return u(e,t,n)};t.duration=c;var d=function(e,t,n){var i=0;if(t>n){var r=[n,t];t=r[0],n=r[1]}if(t<0){for(var a=t;a<Math.min(0,n);a++)i+=e.targetDuration;t=0}for(a=t;a<n;a++)i+=e.segments[a].duration;return i};t.sumDurations=d;var h=function(e){if(!e.segments.length)return 0;var t=e.segments.length-1,n=e.segments[t].duration||e.targetDuration,i=n+2*e.targetDuration;while(t--)if(n+=e.segments[t].duration,n>=i)break;return Math.max(0,t)};t.safeLiveIndex=h;var p=function(e,t,n){if(!e||!e.segments)return null;if(e.endList)return c(e);if(null===t)return null;t=t||0;var i=n?h(e):e.segments.length;return u(e,e.mediaSequence+i,t)};t.playlistEnd=p;var f=function(e,t){var n=!0,i=t||0,a=p(e,t,n);return null===a?(0,r.createTimeRange)():(0,r.createTimeRange)(i,a)};t.seekable=f;var m=function(e){return e-Math.floor(e)===0},g=function(e,t){if(m(t))return t+.1*e;for(var n=t.toString().split(".")[1].length,i=1;i<=n;i++){var r=Math.pow(10,i),a=t*r;if(m(a)||i===n)return(a+e)/r}},v=g.bind(null,1),y=g.bind(null,-1),b=function(e,t,n,i){var r=void 0,a=void 0,s=e.segments.length,o=t-i;if(o<0){if(n>0)for(r=n-1;r>=0;r--)if(a=e.segments[r],o+=y(a.duration),o>0)return{mediaIndex:r,startTime:i-d(e,n,r)};return{mediaIndex:0,startTime:t}}if(n<0){for(r=n;r<0;r++)if(o-=e.targetDuration,o<0)return{mediaIndex:0,startTime:t};n=0}for(r=n;r<s;r++)if(a=e.segments[r],o-=v(a.duration),o<0)return{mediaIndex:r,startTime:i+d(e,n,r)};return{mediaIndex:s-1,startTime:t}};t.getMediaInfoForTime=b;var _=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()};t.isBlacklisted=_;var T=function(e){return e.excludeUntil&&e.excludeUntil===1/0};t.isIncompatible=T;var S=function(e){var t=_(e);return!e.disabled&&!t};t.isEnabled=S;var w=function(e){return e.disabled};t.isDisabled=w;var k=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1};t.isAes=k;var C=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].map)return!0;return!1};t.isFmp4=C;var E=function(e,t){return t.attributes&&t.attributes[e]};t.hasAttribute=E;var x=function(e,t,n){var i=arguments.length<=3||void 0===arguments[3]?0:arguments[3];if(!E("BANDWIDTH",n))return NaN;var r=e*n.attributes.BANDWIDTH;return(r-8*i)/t};t.estimateSegmentRequestTime=x;var O=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!!S(e)&&(e.attributes.BANDWIDTH||0)<n})).length};t.isLowestEnabledRendition=O,t["default"]={duration:c,seekable:f,safeLiveIndex:h,getMediaInfoForTime:b,isEnabled:S,isDisabled:w,isBlacklisted:_,isIncompatible:T,playlistEnd:p,isAes:k,isFmp4:C,hasAttribute:E,estimateSegmentRequestTime:x,isLowestEnabledRendition:O}},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),r=n("9263"),a=n("d039"),s=n("b622"),o=n("9112"),l=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,c){var d=s(e),h=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var f=/./[d],m=t(d,""[e],(function(e,t,n,i,a){var s=t.exec;return s===r||s===u.exec?h&&!a?{done:!0,value:f.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(u,d,m[1])}c&&o(u[d],"sham",!0)}},d8c8:function(e,t,n){"use strict";var i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},a=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},s=function(e,t,n){return unescape(a(e,t,n))},o=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],i=e[t+5],r=(16&i)>>4;return r?n+20:n+10},l=function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3,r=6144&e[t+3];return r|i|n},u=function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},c=function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return i[(60&e[t+2])>>>2];t++}return null},d=function(e){var t,n,i,a;t=10,64&e[5]&&(t+=4,t+=r(e.subarray(10,14)));do{if(n=r(e.subarray(t+4,t+8)),n<1)return null;if(a=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===a){i=e.subarray(t+10,t+n+10);for(var o=0;o<i.byteLength;o++)if(0===i[o]){var l=s(i,0,o);if("com.apple.streaming.transportStreamTimestamp"===l){var u=i.subarray(o+1),c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;return c*=4,c+=3&u[7],c}break}}t+=10,t+=n}while(t<e.byteLength);return null};e.exports={parseId3TagSize:o,parseAdtsSize:l,parseType:u,parseSampleRate:c,parseAacTimestamp:d}},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9b5:function(e,t,n){var i=n("d066"),r=n("fdbf");e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return"function"==typeof t&&Object(e)instanceof t}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db3d:function(e,t,n){"use strict";var i=4,r=128,a=n("0129"),s=function(e){var t=0,n={payloadType:-1,payloadSize:0},a=0,s=0;while(t<e.byteLength){if(e[t]===r)break;while(255===e[t])a+=255,t++;a+=e[t++];while(255===e[t])s+=255,t++;if(s+=e[t++],!n.payload&&a===i){n.payloadType=a,n.payloadSize=s,n.payload=e.subarray(t,t+s);break}t+=s,a=0,s=0}return n},o=function(e){return 181!==e.payload[0]||49!==(e.payload[1]<<8|e.payload[2])||"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)},l=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++)r=3*n,a={type:3&t[r+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s},u=function(){u.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new m(0,0),new m(0,1),new m(1,0),new m(1,1)],this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("done",this.trigger.bind(this,"done"))}),this)};u.prototype=new a,u.prototype.push=function(e){var t,n;"sei_rbsp"===e.nalUnitType&&(t=s(e.escapedRBSP),t.payloadType===i&&(n=o(t),n&&(e.dts<this.latestDts_?this.ignoreNextEqualDts_=!0:e.dts===this.latestDts_&&this.ignoreNextEqualDts_?this.ignoreNextEqualDts_=!1:(this.captionPackets_=this.captionPackets_.concat(l(e.pts,n)),this.latestDts_=e.dts))))},u.prototype.flush=function(){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),this.captionPackets_.length=0,this.ccStreams_.forEach((function(e){e.flush()}),this)):this.ccStreams_.forEach((function(e){e.flush()}),this)},u.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},u.prototype.dispatchCea608Packet=function(e){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)},u.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},u.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)};var c={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},d=function(e){return null===e?"":(e=c[e]||e,String.fromCharCode(e))},h=14,p=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],f=function(){var e=[],t=h+1;while(t--)e.push("");return e},m=function(e,t){m.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if(t=32639&e.ccData,t!==this.lastControlCode_){if(4096===(61440&t)?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.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.topRow_=h-1,this.mode_="rollUp";else if(t===this.ROLL_UP_3_ROWS_)this.topRow_=h-2,this.mode_="rollUp";else if(t===this.ROLL_UP_4_ROWS_)this.topRow_=h-3,this.mode_="rollUp";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_[h]=this.nonDisplayed_[h].slice(0,-1):this.displayed_[h]=this.displayed_[h].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=f();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=f();else if(t===this.RESUME_DIRECT_CAPTIONING_)this.mode_="paintOn";else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=d(i|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[h]=this.displayed_[h].slice(0,-1),i=(3&i)<<8,a=d(i|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===(14&r)&&this.addFormatting(e.pts,["i"]),1===(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var s=p.indexOf(7968&t);s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=d(i),a+=d(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};m.prototype=new a,m.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e){return e.trim()})).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},m.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=f(),this.nonDisplayed_=f(),this.lastControlCode_=null,this.column_=0,this.row_=h,this.formatting_=[]},m.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_},m.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},m.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},m.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},m.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},m.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},m.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},m.prototype.isNormalChar=function(e){return e>=32&&e<=127},m.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)},m.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)}},m.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},m.prototype.rollUp=function(e,t){var n=this.displayed_[h];n+=t,this.displayed_[h]=n},m.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.topRow_;e<h;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[h]=""},m.prototype.paintOn=function(){},e.exports={CaptionStream:u,Cea608Stream:m}},de2e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("e9b0"),u=a(l),c=function(e){function t(){s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,u["default"]),this.jobs=[],this.delay=1,this.timeout_=null}return o(t,e),i(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}(u["default"]);t["default"]=c,e.exports=t["default"]},df33:function(e,t){function n(e){if(e&&"object"===typeof 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;a=r[n.toLowerCase()];return a||(1===n.length?n.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"===typeof e){var n=e.which||e.keyCode||e.charCode;if(null===n||void 0===n)return!1;if("string"===typeof t){var a=i[t.toLowerCase()];if(a)return a===n;a=r[t.toLowerCase()];if(a)return a===n}else if("number"===typeof t)return t===n;return!1}},t=e.exports=n;var i=t.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}; /*! * Programatically add the following */ 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]},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s=a>=0?arguments[a]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===a(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),a=i(n.split("/")),s=Math.min(r.length,a.length),o=s,l=0;l<s;l++)if(r[l]!==a[l]){o=l;break}var u=[];for(l=o;l<r.length;l++)u.push("..");return u=u.concat(a.slice(o)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!r){i=a;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,a=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===i&&(r=!1,i=s+1),46===o?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===n+1?"":e.slice(t,i)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e003:function(e,t,n){var i=n("89a7").NAMESPACE,r=/[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]/,a=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+r.source+a.source+"*(?::"+r.source+a.source+"*)?$"),o=0,l=1,u=2,c=3,d=4,h=5,p=6,f=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function v(e,t,n,r,a){function s(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?s(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function l(t){if(t>v){var n=e.substring(v,t).replace(/&#?\w+;/g,o);p&&u(v),r.characters(n,0,t-v),v=t}}function u(t,n){while(t>=d&&(n=h.exec(e)))c=n.index,d=c+n[0].length,p.lineNumber++;p.columnNumber=t-c+1}var c=0,d=0,h=/.*(?:\r\n?|\n)|.*$/g,p=r.locator,f=[{currentNSMap:t}],g={},v=0;while(1){try{var w=e.indexOf("<",v);if(w<0){if(!e.substr(v).match(/^\s*$/)){var x=r.doc,O=x.createTextNode(e.substr(v));x.appendChild(O),r.currentElement=O}return}switch(w>v&&l(w),e.charAt(w+1)){case"/":var A=e.indexOf(">",w+3),P=e.substring(w+2,A).replace(/[ \t\n\r]+$/g,""),I=f.pop();A<0?(P=e.substring(w+2).replace(/[\s<].*/,""),a.error("end tag name: "+P+" is not complete:"+I.tagName),A=w+1+P.length):P.match(/\s</)&&(P=P.replace(/[\s<].*/,""),a.error("end tag name: "+P+" maybe not complete"),A=w+1+P.length);var L=I.localNSMap,D=I.tagName==P,M=D||I.tagName&&I.tagName.toLowerCase()==P.toLowerCase();if(M){if(r.endElement(I.uri,I.localName,P),L)for(var j in L)r.endPrefixMapping(j);D||a.fatalError("end tag name: "+P+" is not match the current start tagName:"+I.tagName)}else f.push(I);A++;break;case"?":p&&u(w),A=C(e,w,r);break;case"!":p&&u(w),A=k(e,w,r,a);break;default:p&&u(w);var R=new E,N=f[f.length-1].currentNSMap,B=(A=b(e,w,R,N,o,a),R.length);if(!R.closed&&S(e,A,R.tagName,g)&&(R.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),p&&B){for(var U=y(p,{}),F=0;F<B;F++){var $=R[F];u($.offset),$.locator=y(p,{})}r.locator=U,_(R,r,N)&&f.push(R),r.locator=p}else _(R,r,N)&&f.push(R);i.isHTML(R.uri)&&!R.closed?A=T(e,A,R.tagName,o,r):A++}}catch(H){if(H instanceof m)throw H;a.error("element parse error: "+H),A=-1}A>v?v=A:l(Math.max(w,v)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,n,r,a,s){function m(e,t,i){n.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}var g,v=++t,y=o;while(1){var b=e.charAt(v);switch(b){case"=":if(y===l)g=e.slice(t,v),y=c;else{if(y!==u)throw new Error("attribute equal must after attrName");y=c}break;case"'":case'"':if(y===c||y===l){if(y===l&&(s.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,v=e.indexOf(b,t),!(v>0))throw new Error("attribute value no end '"+b+"' match");_=e.slice(t,v).replace(/&#?\w+;/g,a),m(g,_,t-1),y=h}else{if(y!=d)throw new Error('attribute value must after "="');_=e.slice(t,v).replace(/&#?\w+;/g,a),m(g,_,t),s.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=v+1,y=h}break;case"/":switch(y){case o:n.setTagName(e.slice(t,v));case h:case p:case f:y=f,n.closed=!0;case d:case l:case u:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),y==o&&n.setTagName(e.slice(t,v)),v;case">":switch(y){case o:n.setTagName(e.slice(t,v));case h:case p:case f:break;case d:case l:_=e.slice(t,v),"/"===_.slice(-1)&&(n.closed=!0,_=_.slice(0,-1));case u:y===u&&(_=g),y==d?(s.warning('attribute "'+_+'" missed quot(")!'),m(g,_.replace(/&#?\w+;/g,a),t)):(i.isHTML(r[""])&&_.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,t));break;case c:throw new Error("attribute value missed!!")}return v;case"€":b=" ";default:if(b<=" ")switch(y){case o:n.setTagName(e.slice(t,v)),y=p;break;case l:g=e.slice(t,v),y=u;break;case d:var _=e.slice(t,v).replace(/&#?\w+;/g,a);s.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,t);case h:y=p;break}else switch(y){case u:n.tagName;i.isHTML(r[""])&&g.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=l;break;case h:s.warning('attribute space is required"'+g+'"!!');case p:y=l,t=v;break;case c:y=d,t=v;break;case f:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function _(e,t,n){var r=e.tagName,a=null,s=e.length;while(s--){var o=e[s],l=o.qName,u=o.value,c=l.indexOf(":");if(c>0)var d=o.prefix=l.slice(0,c),h=l.slice(c+1),p="xmlns"===d&&h;else h=l,d=null,p="xmlns"===l&&"";o.localName=h,!1!==p&&(null==a&&(a={},w(n,n={})),n[p]=a[p]=u,o.uri=i.XMLNS,t.startPrefixMapping(p,u))}s=e.length;while(s--){o=e[s];d=o.prefix;d&&("xml"===d&&(o.uri=i.XML),"xmlns"!==d&&(o.uri=n[d||""]))}c=r.indexOf(":");c>0?(d=e.prefix=r.slice(0,c),h=e.localName=r.slice(c+1)):(d=null,h=e.localName=r);var f=e.uri=n[d||""];if(t.startElement(f,h,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(f,h,r),a)for(d in a)t.endPrefixMapping(d)}function T(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)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,i),r.characters(s,0,s.length),a)}return t+1}function S(e,t,n,i){var r=i[n];return null==r&&(r=e.lastIndexOf("</"+n+">"),r<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function w(e,t){for(var n in e)t[n]=e[n]}function k(e,t,n,i){var r=e.charAt(t+2);switch(r){case"-":if("-"===e.charAt(t+3)){var a=e.indexOf("--\x3e",t+4);return a>t?(n.comment(e,t+4,a-t-4),a+3):(i.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){a=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3}var s=x(e,t),o=s.length;if(o>1&&/!doctype/i.test(s[0][0])){var l=s[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(s[2][0])?(u=s[3][0],c=o>4&&s[4][0]):/^system$/i.test(s[2][0])&&(c=s[3][0]));var d=s[o-1];return n.startDTD(l,u,c),n.endDTD(),d.index+d[0].length}}return-1}function C(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function E(){this.attributeNames={}}function x(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);while(n=r.exec(e))if(i.push(n),n[1])return i}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),w(t,t={}),v(e,t,n,i,this.errorHandler),i.endDocument()}},E.prototype={setTagName:function(e){if(!s.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!s.test(e))throw new 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=g,t.ParseError=m},e044:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=n("d61a"),a=function(e,t,n){return function(i){var a=e.master.playlists[t],s=(0,r.isIncompatible)(a),o=(0,r.isEnabled)(a);return"undefined"===typeof i?o:(i?delete a.disabled:a.disabled=!0,i===o||s||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}},s=function e(t,n,r){i(this,e);var s=t.masterPlaylistController_.fastQualityChange_.bind(t.masterPlaylistController_);if(n.attributes.RESOLUTION){var o=n.attributes.RESOLUTION;this.width=o.width,this.height=o.height}this.bandwidth=n.attributes.BANDWIDTH,this.id=r,this.enabled=a(t.playlists,n.uri,s)},o=function(e){var t=e.playlists;e.representations=function(){return t.master.playlists.filter((function(e){return!(0,r.isIncompatible)(e)})).map((function(t,n){return new s(e,t,t.uri)}))}};t["default"]=o,e.exports=t["default"]},e163:function(e,t,n){var i=n("5135"),r=n("7b0b"),a=n("f772"),s=n("e177"),o=a("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1c8:function(e,t,n){var i=n("89a7"),r=i.NAMESPACE;function a(e){return""!==e}function s(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function o(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=s(e);return Object.keys(t.reduce(o,{}))}function u(e){return function(t){return e&&-1!==e.indexOf(t)}}function c(e,t){for(var n in e)t[n]=e[n]}function d(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,i=new i,c(n,i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var h={},p=h.ELEMENT_NODE=1,f=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,g=h.CDATA_SECTION_NODE=4,v=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,b=h.PROCESSING_INSTRUCTION_NODE=7,_=h.COMMENT_NODE=8,T=h.DOCUMENT_NODE=9,S=h.DOCUMENT_TYPE_NODE=10,w=h.DOCUMENT_FRAGMENT_NODE=11,k=h.NOTATION_NODE=12,C={},E={},x=(C.INDEX_SIZE_ERR=(E[1]="Index size error",1),C.DOMSTRING_SIZE_ERR=(E[2]="DOMString size error",2),C.HIERARCHY_REQUEST_ERR=(E[3]="Hierarchy request error",3)),O=(C.WRONG_DOCUMENT_ERR=(E[4]="Wrong document",4),C.INVALID_CHARACTER_ERR=(E[5]="Invalid character",5),C.NO_DATA_ALLOWED_ERR=(E[6]="No data allowed",6),C.NO_MODIFICATION_ALLOWED_ERR=(E[7]="No modification allowed",7),C.NOT_FOUND_ERR=(E[8]="Not found",8)),A=(C.NOT_SUPPORTED_ERR=(E[9]="Not supported",9),C.INUSE_ATTRIBUTE_ERR=(E[10]="Attribute in use",10));C.INVALID_STATE_ERR=(E[11]="Invalid state",11),C.SYNTAX_ERR=(E[12]="Syntax error",12),C.INVALID_MODIFICATION_ERR=(E[13]="Invalid modification",13),C.NAMESPACE_ERR=(E[14]="Invalid namespace",14),C.INVALID_ACCESS_ERR=(E[15]="Invalid access",15);function P(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,E[e]),this.message=E[e],Error.captureStackTrace&&Error.captureStackTrace(this,P);return n.code=e,t&&(this.message=this.message+": "+t),n}function I(){}function L(e,t){this._node=e,this._refresh=t,D(this)}function D(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);fe(e,"length",n.length),c(n,e),e._inc=t}}function M(){}function j(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function R(e,t,n,i){if(i?t[j(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&z(r,e,i),V(r,e,n))}}function N(e,t,n){var i=j(t,n);if(!(i>=0))throw P(O,new Error(e.tagName+"@"+n));var r=t.length-1;while(i<r)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(z(a,e,n),n.ownerElement=null)}}function B(){}function U(){}function F(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function $(e,t){if(t(e))return!0;if(e=e.firstChild)do{if($(e,t))return!0}while(e=e.nextSibling)}function H(){}function V(e,t,n){e&&e._inc++;var i=n.namespaceURI;i===r.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function z(e,t,n,i){e&&e._inc++;var a=n.namespaceURI;a===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function q(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{var r=t.firstChild,a=0;while(r)i[a++]=r,r=r.nextSibling;i.length=a}}}function W(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,q(e.ownerDocument,e),t}function G(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===w){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var s=n?n.previousSibling:e.lastChild;r.previousSibling=s,a.nextSibling=n,s?s.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return q(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t}function X(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);i=e.lastChild}i=e.lastChild;return t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,q(e.ownerDocument,e,t),t}function Y(){this._nsMap={}}function K(){}function Q(){}function J(){}function Z(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function ae(){}function se(){}function oe(){}function le(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r){r=i.lookupPrefix(a);if(null==r)var s=[{namespace:a,prefix:null}]}return de(this,n,e,t,s),n.join("")}function ue(e,t,n){var i=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===i&&a===r.XML||a===r.XMLNS)return!1;var s=n.length;while(s--){var o=n[s];if(o.prefix===i)return o.namespace!==a}return!0}function ce(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,F),'"')}function de(e,t,n,i,a){if(a||(a=[]),i){if(e=i(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var s=e.attributes,o=s.length,l=e.firstChild,u=e.tagName;n=r.isHTML(e.namespaceURI)||n;var c=u;if(!n&&!e.prefix&&e.namespaceURI){for(var d,h=0;h<s.length;h++)if("xmlns"===s.item(h).name){d=s.item(h).value;break}if(!d)for(var y=a.length-1;y>=0;y--){var k=a[y];if(""===k.prefix&&k.namespace===e.namespaceURI){d=k.namespace;break}}if(d!==e.namespaceURI)for(y=a.length-1;y>=0;y--){k=a[y];if(k.namespace===e.namespaceURI){k.prefix&&(c=k.prefix+":"+u);break}}}t.push("<",c);for(var C=0;C<o;C++){var E=s.item(C);"xmlns"==E.prefix?a.push({prefix:E.localName,namespace:E.value}):"xmlns"==E.nodeName&&a.push({prefix:"",namespace:E.value})}for(C=0;C<o;C++){E=s.item(C);if(ue(E,n,a)){var x=E.prefix||"",O=E.namespaceURI;ce(t,x?"xmlns:"+x:"xmlns",O),a.push({prefix:x,namespace:O})}de(E,t,n,i,a)}if(u===c&&ue(e,n,a)){x=e.prefix||"",O=e.namespaceURI;ce(t,x?"xmlns:"+x:"xmlns",O),a.push({prefix:x,namespace:O})}if(l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),n&&/^script$/i.test(u))while(l)l.data?t.push(l.data):de(l,t,n,i,a.slice()),l=l.nextSibling;else while(l)de(l,t,n,i,a.slice()),l=l.nextSibling;t.push("</",c,">")}else t.push("/>");return;case T:case w:l=e.firstChild;while(l)de(l,t,n,i,a.slice()),l=l.nextSibling;return;case f:return ce(t,e.name,e.value);case m:return t.push(e.data.replace(/[<&]/g,F).replace(/]]>/g,"]]>"));case g:return t.push("<![CDATA[",e.data,"]]>");case _:return t.push("\x3c!--",e.data,"--\x3e");case S:var A=e.publicId,P=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),P&&"."!=P&&t.push(" ",P),t.push(">");else if(P&&"."!=P)t.push(" SYSTEM ",P,">");else{var I=e.internalSubset;I&&t.push(" [",I,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function he(e,t,n){var i;switch(t.nodeType){case p:i=t.cloneNode(!1),i.ownerDocument=e;case w:break;case f:n=!0;break}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n){var r=t.firstChild;while(r)i.appendChild(he(e,r,n)),r=r.nextSibling}return i}function pe(e,t,n){var i=new t.constructor;for(var r in t){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new I),i.ownerDocument=e,i.nodeType){case p:var s=t.attributes,o=i.attributes=new M,l=s.length;o._ownerElement=i;for(var u=0;u<l;u++)i.setAttributeNode(pe(e,s.item(u),!0));break;case f:n=!0}if(n){var c=t.firstChild;while(c)i.appendChild(pe(e,c,n)),c=c.nextSibling}return i}function fe(e,t,n){e[t]=n}P.prototype=Error.prototype,c(C,P),I.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)de(this[i],n,e,t);return n.join("")}},L.prototype.item=function(e){return D(this),this[e]},d(L,I),M.prototype={length:0,item:I.prototype.item,getNamedItem:function(e){var t=this.length;while(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 P(A);var n=this.getNamedItem(e.nodeName);return R(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new P(A);return t=this.getNamedItemNS(e.namespaceURI,e.localName),R(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return N(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return N(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},B.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new H;if(i.implementation=this,i.childNodes=new I,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 te;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},U.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 G(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return W(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return pe(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==m&&e.nodeType==m?(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){var t=this;while(t){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},c(h,U),c(h,U.prototype),H.prototype={nodeName:"#document",nodeType:T,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==w){var n=e.firstChild;while(n){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==p&&(this.documentElement=e),G(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),W(this,e)},importNode:function(e,t){return he(this,e,t)},getElementById:function(e){var t=null;return $(this.documentElement,(function(n){if(n.nodeType==p&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=l(e);return new L(this,(function(n){var i=[];return t.length>0&&$(n.documentElement,(function(r){if(r!==n&&r.nodeType===p){var a=r.getAttribute("class");if(a){var s=e===a;if(!s){var o=l(a);s=t.every(u(o))}s&&i.push(r)}}})),i}))},createElement:function(e){var t=new Y;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new I;var n=t.attributes=new M;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ae;return e.ownerDocument=this,e.childNodes=new I,e},createTextNode:function(e){var t=new J;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ee;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new se;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new K;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new re;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Y,i=t.split(":"),r=n.attributes=new M;return n.childNodes=new I,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 K,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}},d(H,U),Y.prototype={nodeType:p,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===w?this.insertBefore(e,null):X(this,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 $(t,(function(i){i===t||i.nodeType!=p||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new L(this,(function(n){var i=[];return $(n,(function(r){r===n||r.nodeType!==p||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},H.prototype.getElementsByTagName=Y.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=Y.prototype.getElementsByTagNameNS,d(Y,U),K.prototype.nodeType=f,d(K,U),Q.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 new Error(E[x])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var i=this.data.substring(0,e),r=this.data.substring(e+t);n=i+n+r,this.nodeValue=this.data=n,this.length=n.length}},d(Q,U),J.prototype={nodeName:"#text",nodeType:m,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}},d(J,Q),Z.prototype={nodeName:"#comment",nodeType:_},d(Z,Q),ee.prototype={nodeName:"#cdata-section",nodeType:g},d(ee,Q),te.prototype.nodeType=S,d(te,U),ne.prototype.nodeType=k,d(ne,U),ie.prototype.nodeType=y,d(ie,U),re.prototype.nodeType=v,d(re,U),ae.prototype.nodeName="#document-fragment",ae.prototype.nodeType=w,d(ae,U),se.prototype.nodeType=b,d(se,U),oe.prototype.serializeToString=function(e,t,n){return le.call(e,t,n)},U.prototype.toString=le;try{if(Object.defineProperty){function me(e){switch(e.nodeType){case p:case w:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(me(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(L.prototype,"length",{get:function(){return D(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return me(this)},set:function(e){switch(this.nodeType){case p:case w:while(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}}}),fe=function(e,t,n){e["$$"+t]=n}}}catch(ge){}t.DocumentType=te,t.DOMException=P,t.DOMImplementation=B,t.Element=Y,t.Node=U,t.NodeList=I,t.XMLSerializer=oe},e206:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:32768};t["default"]=i,e.exports=t["default"]},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),a=n("3f8c"),s=n("69f3"),o=n("7dd0"),l="Array Iterator",u=s.set,c=s.getterFor(l);e.exports=o(Array,"Array",(function(e,t){u(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e475:function(e,t,n){ /** * @license * Video.js 6.13.0 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Version 2.0 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE> */ function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=i(n("a59e")),a=i(n("4d20")),s=i(n("1b8d")),o=i(n("8c10")),l=i(n("eec7")),u=i(n("8352")),c="6.13.0",d=r.navigator&&r.navigator.userAgent||"",h=/AppleWebKit\/([\d.]+)/i.exec(d),p=h?parseFloat(h.pop()):null,f=/iPad/i.test(d),m=/iPhone/i.test(d)&&!f,g=/iPod/i.test(d),v=m||f||g,y=function(){var e=d.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),b=/Android/i.test(d),_=function(){var e=d.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}(),T=b&&/webkit/i.test(d)&&_<2.3,S=b&&_<5&&p<537,w=/Firefox/i.test(d),k=/Edge/i.test(d),C=!k&&(/Chrome/i.test(d)||/CriOS/i.test(d)),E=function(){var e=d.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),x=/MSIE\s8\.0/.test(d),O=function(){var e=/MSIE\s(\d+)\.\d/.exec(d),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(d)&&/rv:11.0/.test(d)&&(t=11),t}(),A=/Safari/i.test(d)&&!C&&!b&&!k,P=(A||v)&&!C,I=ne()&&("ontouchstart"in r||r.navigator.maxTouchPoints||r.DocumentTouch&&r.document instanceof r.DocumentTouch),L=ne()&&"backgroundSize"in r.document.createElement("video").style,D=(Object.freeze||Object)({IS_IPAD:f,IS_IPHONE:m,IS_IPOD:g,IS_IOS:v,IOS_VERSION:y,IS_ANDROID:b,ANDROID_VERSION:_,IS_OLD_ANDROID:T,IS_NATIVE_ANDROID:S,IS_FIREFOX:w,IS_EDGE:k,IS_CHROME:C,CHROME_VERSION:E,IS_IE8:x,IE_VERSION:O,IS_SAFARI:A,IS_ANY_SAFARI:P,TOUCH_ENABLED:I,BACKGROUND_SIZE_SUPPORTED:L}),M="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},B=function(e,t){return e.raw=t,e},U=Object.prototype.toString,F=function(e){return z(e)?Object.keys(e):[]};function $(e,t){F(e).forEach((function(n){return t(e[n],n)}))}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return F(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function V(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach((function(t){t&&$(t,(function(t,n){e[n]=t}))})),e)}function z(e){return!!e&&"object"===("undefined"===typeof e?"undefined":M(e))}function q(e){return z(e)&&"[object Object]"===U.call(e)&&e.constructor===Object}var W=[],G=function(e,t){return function(n,i,a,s){var o=t.levels[i],l=new RegExp("^("+o+")$");if("log"!==n&&a.unshift(n.toUpperCase()+":"),a.unshift(e+":"),W&&W.push([].concat(a)),r.console){var u=r.console[n];u||"debug"!==n||(u=r.console.info||r.console.log),u&&o&&l.test(n)&&(s&&(a=a.map((function(e){if(z(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)})).join(" ")),u.apply?u[Array.isArray(a)?"apply":"call"](r.console,a):u(a))}}};function X(e){var t="info",n=void 0,i=function e(){for(var i=e.stringify||O&&O<11,r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];n("log",t,a,i)};return n=G(e,i),i.createLogger=function(t){return X(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},i.level=function(e){if("string"===typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},i.history=function(){return W?[].concat(W):[]},i.history.filter=function(e){return(W||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){W&&(W.length=0)},i.history.disable=function(){null!==W&&(W.length=0,W=null)},i.history.enable=function(){null===W&&(W=[])},i.error=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("error",t,i)},i.warn=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("warn",t,i)},i.debug=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("debug",t,i)},i}var Y=X("VIDEOJS"),K=Y.createLogger;function Q(e,t){if(!e||!t)return"";if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}var J=B(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function Z(e){return"string"===typeof e&&/\S/.test(e)}function ee(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function te(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function ne(){return a===r.document&&"undefined"!==typeof a.createElement}function ie(e){return z(e)&&1===e.nodeType}function re(){try{return r.parent!==r.self}catch(e){return!0}}function ae(e){return function(t,n){if(!Z(t))return a[e](null);Z(n)&&(n=a.querySelector(n));var i=ie(n)?n:a;return i[e]&&i[e](t)}}function se(){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[3],r=a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn(s(J,e,n)),r.setAttribute(e,n)):"textContent"===e?oe(r,n):r[e]=n})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Ee(r,i),r}function oe(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ue(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ce(e,t){return e.classList?e.classList.add(t):ue(e,t)||(e.className=(e.className+" "+t).trim()),e}function de(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function he(e,t,n){var i=ue(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?ce(e,t):de(e,t),e}function pe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function fe(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;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function me(e,t){return e.getAttribute(t)}function ge(e,t,n){e.setAttribute(t,n)}function ve(e,t){e.removeAttribute(t)}function ye(){a.body.focus(),a.onselectstart=function(){return!1}}function be(){a.onselectstart=function(){return!0}}function _e(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(Q(e,"height"))),n.width||(n.width=parseFloat(Q(e,"width"))),n}}function Te(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=a.documentElement,i=a.body,s=n.clientLeft||i.clientLeft||0,o=r.pageXOffset||i.scrollLeft,l=t.left+o-s,u=n.clientTop||i.clientTop||0,c=r.pageYOffset||i.scrollTop,d=t.top+c-u;return{left:Math.round(l),top:Math.round(d)}}function Se(e,t){var n={},i=Te(e),r=e.offsetWidth,a=e.offsetHeight,s=i.top,o=i.left,l=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+a)/a)),n.x=Math.max(0,Math.min(1,(u-o)/r)),n}function we(e){return z(e)&&3===e.nodeType}function ke(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ce(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||we(e)?e:"string"===typeof e&&/\S/.test(e)?a.createTextNode(e):void 0})).filter((function(e){return e}))}function Ee(e,t){return Ce(t).forEach((function(t){return e.appendChild(t)})),e}function xe(e,t){return Ee(ke(e),t)}function Oe(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===O||0===e.button&&1===e.buttons))}var Ae=ae("querySelector"),Pe=ae("querySelectorAll"),Ie=(Object.freeze||Object)({isReal:ne,isEl:ie,isInFrame:re,createEl:se,textContent:oe,prependTo:le,hasClass:ue,addClass:ce,removeClass:de,toggleClass:he,setAttributes:pe,getAttributes:fe,getAttribute:me,setAttribute:ge,removeAttribute:ve,blockTextSelection:ye,unblockTextSelection:be,getBoundingClientRect:_e,findPosition:Te,getPointerPosition:Se,isTextNode:we,emptyEl:ke,normalizeContent:Ce,appendContent:Ee,insertContent:xe,isSingleLeftClick:Oe,$:Ae,$$:Pe}),Le=1;function De(){return Le++}var Me={},je="vdata"+(new Date).getTime();function Re(e){var t=e[je];return t||(t=e[je]=De()),Me[t]||(Me[t]={}),Me[t]}function Ne(e){var t=e[je];return!!t&&!!Object.getOwnPropertyNames(Me[t]).length}function Be(e){var t=e[je];if(t){delete Me[t];try{delete e[je]}catch(n){e.removeAttribute?e.removeAttribute(je):e[je]=null}}}function Ue(e,t){var n=Re(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&&Be(e)}function Fe(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function $e(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||r.event;for(var s in e={},i)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&i.preventDefault||(e[s]=i[s]));if(e.target||(e.target=e.srcElement||a),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 o=a.documentElement,l=a.body;e.pageX=e.clientX+(o&&o.scrollLeft||l&&l.scrollLeft||0)-(o&&o.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||l&&l.scrollTop||0)-(o&&o.clientTop||l&&l.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}var He=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){He=!0}});r.addEventListener("test",null,e),r.removeEventListener("test",null,e)}catch(t){}})();var Ve=["touchstart","touchmove"];function ze(e,t,n){if(Array.isArray(t))return Fe(ze,e,t,n);var i=Re(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=De()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=$e(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;try{a[s].call(e,t,n)}catch(l){Y.error(l)}}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;He&&Ve.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function qe(e,t,n){if(Ne(e)){var i=Re(e);if(i.handlers){if(Array.isArray(t))return Fe(qe,e,t,n);var r=function(e,t){i.handlers[t]=[],Ue(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);Ue(e,t)}else r(e,t)}else for(var o in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},o)&&r(e,o)}}}function We(e,t,n){var i=Ne(e)?Re(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=$e(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)We.call(null,r,t,n);else if(!r&&!t.defaultPrevented){var a=Re(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 Ge(e,t,n){if(Array.isArray(t))return Fe(Ge,e,t,n);var i=function i(){qe(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||De(),ze(e,t,i)}var Xe=(Object.freeze||Object)({fixEvent:$e,on:ze,off:qe,trigger:We,one:Ge}),Ye=!1,Ke=void 0,Qe=function(){if(ne()&&!1!==Ke.options.autoSetup){var e=a.getElementsByTagName("video"),t=a.getElementsByTagName("audio"),n=a.getElementsByTagName("video-js"),i=[];if(e&&e.length>0)for(var r=0,s=e.length;r<s;r++)i.push(e[r]);if(t&&t.length>0)for(var o=0,l=t.length;o<l;o++)i.push(t[o]);if(n&&n.length>0)for(var u=0,c=n.length;u<c;u++)i.push(n[u]);if(i&&i.length>0)for(var d=0,h=i.length;d<h;d++){var p=i[d];if(!p||!p.getAttribute){Je(1);break}if(void 0===p.player){var f=p.getAttribute("data-setup");null!==f&&Ke(p)}}else Ye||Je(1)}};function Je(e,t){t&&(Ke=t),r.setTimeout(Qe,e)}ne()&&"complete"===a.readyState?Ye=!0:Ge(r,"load",(function(){Ye=!0}));var Ze=function(e){var t=a.createElement("style");return t.className=e,t},et=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},tt=function(e,t,n){t.guid||(t.guid=De());var i=function(){return t.apply(e,arguments)};return i.guid=n?n+"_"+t.guid:t.guid,i},nt=function(e,t){var n=Date.now(),i=function(){var i=Date.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,a=void 0,s=function(){i.clearTimeout(a),a=null},o=function(){var r=this,s=arguments,o=function(){a=null,o=null,n||e.apply(r,s)};!a&&n&&e.apply(r,s),i.clearTimeout(a),a=i.setTimeout(o,t)};return o.cancel=s,o},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ze(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){qe(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=$e(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),We(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger;var at=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},st=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ot=function(e){if(!e.nodeName&&!at(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!st(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ut=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ct=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,a=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),ot(i),lt(r),ut(a),a=tt(e,a),{isTargetingSelf:n,target:i,type:r,listener:a}},dt=function(e,t,n,i){ot(e),e.nodeName?Xe[t](e,n,i):e[t](n,i)},ht={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ct(this,n),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(dt(s,"on",o,l),!a){var u=function(){return e.off(s,o,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,dt(this,"on","dispose",u),dt(s,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ct(this,n),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)dt(s,"one",o,l);else{var u=function t(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];e.off(s,o,t),l.apply(null,i)};u.guid=l.guid,dt(s,"one",o,u)}},off:function(e,t,n){if(!e||st(e))qe(this.eventBusEl_,e,t);else{var i=e,r=t;ot(i),lt(r),ut(n),n=tt(this,n),this.off("dispose",n),i.nodeName?(qe(i,r,n),qe(i,"dispose",n)):at(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){return We(this.eventBusEl_,e,t)}};function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=se("span",{className:"vjs-event-bus"});return V(e,ht),e.on("dispose",(function(){e.off(),r.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var ft={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var n=void 0;return $(e,(function(e,i){t.state[i]!==e&&(n=n||{},n[i]={from:t.state[i],to:e}),t.state[i]=e})),n&&at(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function mt(e,t){return V(e,ft),e.state=V({},e.state,t),"function"===typeof e.handleStateChanged&&at(e)&&e.on("statechanged",e.handleStateChanged),e}function gt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function vt(e,t){return gt(e)===gt(t)}function yt(){for(var e={},t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&$(t,(function(t,n){q(t)?(q(e[n])||(e[n]={}),e[n]=yt(e[n],t)):e[n]=t}))})),e}var bt=function(){function e(t,n,i){if(j(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=yt({},this.options_),n=this.options_=yt(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+De()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&pt(this,{eventBusKey:this.el_?"el_":null}),mt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Be(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return Y.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=yt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return se(e,t,n)},e.prototype.localize=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],l=n;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=gt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"===typeof t){a=gt(t);var s=n.componentClass||a;n.name=a;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!==typeof o)return null;r=new o(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"===typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&>(r.name()),a&&(this.childNameIndex_[a]=r),"function"===typeof r.el&&r.el()){var l=this.contentEl().children,u=l[i]||null;this.contentEl().insertBefore(r.el(),u)}return r},e.prototype.removeChild=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){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(n,r);a&&(t[n]=a)}},a=void 0,s=e.getComponent("Tech");a=Array.isArray(n)?n:Object.keys(n),a.concat(Object.keys(this.options_).filter((function(e){return!a.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,r=void 0;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||gt(t.name));return n&&!s.isTech(n)})).forEach(r)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=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)},e.prototype.$=function(e,t){return Ae(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Pe(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ue(this.el_,e)},e.prototype.addClass=function(e){ce(this.el_,e)},e.prototype.removeClass=function(e){de(this.el_,e)},e.prototype.toggleClass=function(e,t){he(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return me(this.el_,e)},e.prototype.setAttribute=function(e,t){ge(this.el_,e,t)},e.prototype.removeAttribute=function(e){ve(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));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"+gt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var i="offset"+gt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=10,i=200,r=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=(new Date).getTime(),r=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)r=!1;else if(t){var i=e.touches[0].pageX-t.pageX,a=e.touches[0].pageY-t.pageY,s=Math.sqrt(i*i+a*a);s>n&&(r=!1)}}));var a=function(){r=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",(function(n){if(t=null,!0===r){var a=(new Date).getTime()-e;a<i&&(n.preventDefault(),this.trigger("tap"))}}))},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=tt(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){var n,i,a=this;return e=tt(this,e),n=r.setTimeout((function(){a.off("dispose",i),e()}),t),i=function(){return a.clearTimeout(n)},i.guid="vjs-timeout-"+n,this.on("dispose",i),n},e.prototype.clearTimeout=function(e){r.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var n=this;e=tt(this,e);var i=r.setInterval(e,t),a=function(){return n.clearInterval(i)};return a.guid="vjs-interval-"+i,this.on("dispose",a),i},e.prototype.clearInterval=function(e){r.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,n,i=this;return this.supportsRaf_?(e=tt(this,e),t=r.requestAnimationFrame((function(){i.off("dispose",n),e()})),n=function(){return i.cancelAnimationFrame(t)},n.guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){r.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!a){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+s+".")}t=gt(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,u=Object.keys(l);if(l&&u.length>0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=gt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function _t(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function Tt(e,t,n,i){return _t(e,i,n.length-1),n[i][t]}function St(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Tt.bind(null,"start",0,e),end:Tt.bind(null,"end",1,e)}}function wt(e,t){return Array.isArray(e)?St(e):void 0===e||void 0===t?St():St([[e,t]])}function kt(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=wt(0,0));for(var a=0;a<e.length;a++)i=e.start(a),r=e.end(a),r>t&&(r=t),n+=r-i;return n/t}bt.prototype.supportsRaf_="function"===typeof r.requestAnimationFrame&&"function"===typeof r.cancelAnimationFrame,bt.registerComponent("Component",bt);for(var Ct={},Et=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],xt=Et[0],Ot=void 0,At=0;At<Et.length;At++)if(Et[At][1]in a){Ot=Et[At];break}if(Ot)for(var Pt=0;Pt<Ot.length;Pt++)Ct[xt[Pt]]=Ot[Pt];function It(e){if(e instanceof It)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:z(e)&&("number"===typeof e.code&&(this.code=e.code),V(this,e)),this.message||(this.message=It.defaultMessages[this.code]||"")}It.prototype.code=0,It.prototype.message="",It.prototype.status=null,It.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],It.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 Lt=0;Lt<It.errorTypes.length;Lt++)It[It.errorTypes[Lt]]=Lt,It.prototype[It.errorTypes[Lt]]=Lt;function Dt(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Mt(e){Dt(e)&&e.then(null,(function(e){}))}var jt=function(e){var t=["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}}))});return t},Rt=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=jt(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(jt))},Nt=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},Bt={textTracksToJson:Rt,jsonToTextTracks:Nt,trackToJson_:jt},Ut="vjs-modal-dialog",Ft=27,$t=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=se("div",{className:Ut+"-content"},{role:"document"}),r.descEl_=se("p",{className:Ut+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),oe(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Ut+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===Ft&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=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},t.prototype.open=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_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=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_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),xe(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),ke(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(a,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(a,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),n=this.el_.querySelector(":focus"),i=void 0,r=0;r<t.length;r++)if(n===t[r]){i=r;break}a.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof r.HTMLAnchorElement||e instanceof r.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof r.HTMLInputElement||e instanceof r.HTMLSelectElement||e instanceof r.HTMLTextAreaElement||e instanceof r.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof r.HTMLIFrameElement||e instanceof r.HTMLObjectElement||e instanceof r.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(bt);$t.prototype.options_={pauseOnOpen:!0,temporary:!0},bt.registerComponent("ModalDialog",$t);var Ht=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;j(this,t);var s=N(this,e.call(this));if(!r&&(r=s,x))for(var o in r=a.createElement("custom"),t.prototype)"constructor"!==o&&(r[o]=t.prototype[o]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<i.length;l++)r.addTrack(i[l]);return n=r,N(s,n)}return R(t,e),t.prototype.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var t=void 0,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=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}(rt);for(var Vt in Ht.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ht.prototype.allowedEvents_)Ht.prototype["on"+Vt]=null;var zt=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)},qt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,t);for(var s=void 0,o=r.length-1;o>=0;o--)if(r[o].enabled){zt(r,r[o]);break}if(x){for(var l in s=a.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return n=N(this,e.call(this,r,s)),s=n,s.changing_=!1,i=s,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&zt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,zt(n,t),n.changing_=!1,n.trigger("change"))}))},t}(Ht),Wt=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)},Gt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,t);for(var s=void 0,o=r.length-1;o>=0;o--)if(r[o].selected){Wt(r,r[o]);break}if(x){for(var l in s=a.createElement("custom"),Ht.prototype)"constructor"!==l&&(s[l]=Ht.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(s[u]=t.prototype[u])}return n=N(this,e.call(this,r,s)),s=n,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),i=s,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){var n=this;t.selected&&Wt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",(function(){n.changing_||(n.changing_=!0,Wt(n,t),n.changing_=!1,n.trigger("change"))}))},t}(Ht),Xt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,t);var s=void 0;if(x){for(var o in s=a.createElement("custom"),Ht.prototype)"constructor"!==o&&(s[o]=Ht.prototype[o]);for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l])}return n=N(this,e.call(this,r,s)),s=n,i=s,N(n,i)}return R(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(Ht),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,e);var n=this;if(x)for(var i in n=a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,s=t.length;r<s;r++)n.addTrackElement_(t[r]);if(x)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),Kt=function(){function e(t){j(this,e);var n=this;if(x)for(var i in n=a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),x)return n}return e.prototype.setCues_=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)},e.prototype.getCueById=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}(),Qt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Jt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Zt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},en={disabled:"disabled",hidden:"hidden",showing:"showing"},tn=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var r=N(this,e.call(this)),s=r;if(x)for(var o in s=a.createElement("custom"),t.prototype)"constructor"!==o&&(s[o]=t.prototype[o]);var l={id:i.id||"vjs_track_"+De(),kind:i.kind||"",label:i.label||"",language:i.language||""},u=function(e){Object.defineProperty(s,e,{get:function(){return l[e]},set:function(){}})};for(var c in l)u(c);return n=s,N(r,n)}return R(t,e),t}(rt),nn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,s=void 0;i&&(s=a.createElement("div"),s.innerHTML='<a href="'+e+'"></a>',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),a.body.appendChild(s));for(var o={},l=0;l<t.length;l++)o[t[l]]=n[t[l]];return"http:"===o.protocol&&(o.host=o.host.replace(/:80$/,"")),"https:"===o.protocol&&(o.host=o.host.replace(/:443$/,"")),o.protocol||(o.protocol=r.location.protocol),i&&a.body.removeChild(s),o},rn=function(e){if(!e.match(/^https?:\/\//)){var t=a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},an=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},sn=function(e){var t=r.location,n=nn(e),i=":"===n.protocol?t.protocol:n.protocol,a=i+n.host!==t.protocol+t.host;return a},on=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:an,isCrossOrigin:sn}),ln=function(e,t){var n=new r.WebVTT.Parser(r,r.vttjs,r.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&&(r.console&&r.console.groupCollapsed&&r.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Y.error(e)})),r.console&&r.console.groupEnd&&r.console.groupEnd()),n.flush()},un=function(e,t){var n={uri:e},i=sn(e);i&&(n.cors=i),l(n,tt(this,(function(e,n,i){if(e)return Y.error(e,n);if(t.loaded_=!0,"function"!==typeof r.WebVTT){if(t.tech_){var a=function(){return ln(i,t)};t.tech_.on("vttjsloaded",a),t.tech_.on("vttjserror",(function(){Y.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",a)}))}}else ln(i,t)})))},cn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(j(this,t),!r.tech)throw new Error("A tech was not provided.");var a=yt(r,{kind:Zt[r.kind]||"subtitles",language:r.language||r.srclang||""}),s=en[a.mode]||"disabled",o=a["default"];"metadata"!==a.kind&&"chapters"!==a.kind||(s="hidden");var l=(n=N(this,e.call(this,a)),n);if(l.tech_=a.tech,x)for(var u in t.prototype)"constructor"!==u&&(l[u]=t.prototype[u]);l.cues_=[],l.activeCues_=[];var c=new Kt(l.cues_),d=new Kt(l.activeCues_),h=!1,p=tt(l,(function(){this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",p)}),!0),Object.defineProperty(l,"default",{get:function(){return o},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(e){var t=this;en[e]&&(s=e,"disabled"!==s?this.tech_.ready((function(){t.tech_.on("timeupdate",p)}),!0):this.tech_.off("timeupdate",p),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?c:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return d;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||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(h=!0);return this.activeCues_=t,d.setCues_(this.activeCues_),d},set:function(){}}),a.src?(l.src=a.src,un(a.src,l)):l.loaded_=!0,i=l,N(n,i)}return R(t,e),t.prototype.addCue=function(e){var t=e;if(r.vttjs&&!(e instanceof r.vttjs.VTTCue)){for(var n in t=new r.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(),a=0;a<i.length;a++)i[a]!==this&&i[a].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){var t=this.cues_.length;while(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}(tn);cn.prototype.allowedEvents_={cuechange:"cuechange"};var dn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var a=yt(r,{kind:Jt[r.kind]||""}),s=(n=N(this,e.call(this,a)),n),o=!1;if(x)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return o},set:function(e){"boolean"===typeof e&&e!==o&&(o=e,this.trigger("enabledchange"))}}),a.enabled&&(s.enabled=a.enabled),s.loaded_=!0,i=s,N(n,i)}return R(t,e),t}(tn),hn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var a=yt(r,{kind:Qt[r.kind]||""}),s=(n=N(this,e.call(this,a)),n),o=!1;if(x)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return o},set:function(e){"boolean"===typeof e&&e!==o&&(o=e,this.trigger("selectedchange"))}}),a.selected&&(s.selected=a.selected),i=s,N(n,i)}return R(t,e),t}(tn),pn=0,fn=1,mn=2,gn=3,vn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(this,t);var i=N(this,e.call(this)),r=void 0,s=i;if(x)for(var o in s=a.createElement("custom"),t.prototype)"constructor"!==o&&(s[o]=t.prototype[o]);var l,u=new cn(n);return s.kind=u.kind,s.src=u.src,s.srclang=u.language,s.label=u.label,s["default"]=u["default"],Object.defineProperty(s,"readyState",{get:function(){return r}}),Object.defineProperty(s,"track",{get:function(){return u}}),r=pn,u.addEventListener("loadeddata",(function(){r=mn,s.trigger({type:"load",target:s})})),x?(l=s,N(i,l)):i}return R(t,e),t}(rt);vn.prototype.allowedEvents_={load:"load"},vn.NONE=pn,vn.LOADING=fn,vn.LOADED=mn,vn.ERROR=gn;var yn={audio:{ListClass:qt,TrackClass:dn,capitalName:"Audio"},video:{ListClass:Gt,TrackClass:hn,capitalName:"Video"},text:{ListClass:Xt,TrackClass:cn,capitalName:"Text"}};Object.keys(yn).forEach((function(e){yn[e].getterName=e+"Tracks",yn[e].privateName=e+"Tracks_"}));var bn={remoteText:{ListClass:Xt,TrackClass:cn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:vn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},_n=yt(yn,bn);function Tn(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 _n.text.TrackClass(r);return a.addTrack(s),s}bn.names=Object.keys(bn),yn.names=Object.keys(yn),_n.names=[].concat(bn.names).concat(yn.names);var Sn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};j(this,t),n.reportTouchActivity=!1;var r=N(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),_n.names.forEach((function(e){var t=_n[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new _n.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return R(t,e),t.prototype.triggerSourceset=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"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return wt(0,0)},t.prototype.bufferedPercent=function(){return kt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(yn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new It(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?wt(0,0):wt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;yn.names.forEach((function(t){var n=yn[t],i=function(){e.trigger(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)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!r.WebVTT)if(a.body.contains(this.el())){if(!this.options_["vtt.js"]&&q(u)&&Object.keys(u).length>0)return void this.trigger("vttjsloaded");var t=a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/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})),r.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=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++){var o=t[e];o.removeEventListener("cuechange",a)}}))},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return Tn(this,e,t,n)},t.prototype.createRemoteTextTrack=function(e){var t=yt(e,{tech:this});return new bn.remoteTextEl.TrackClass(t)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=gt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=gt(e),t.techs_&&t.techs_[e]?t.techs_[e]:r&&r.videojs&&r.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.videojs[e]):void 0},t}(bt);_n.names.forEach((function(e){var t=_n[e];Sn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Sn.prototype.featuresVolumeControl=!0,Sn.prototype.featuresMuteControl=!0,Sn.prototype.featuresFullscreenResize=!1,Sn.prototype.featuresPlaybackRate=!1,Sn.prototype.featuresProgressEvents=!1,Sn.prototype.featuresSourceset=!1,Sn.prototype.featuresTimeupdateEvents=!1,Sn.prototype.featuresNativeTextTracks=!1,Sn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r<n.length;r++)if(i=n[r].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=void 0,a=0;a<i.length;a++)if(r=i[a].canHandleSource(t,n),r)return i[a];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.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:Y.error("No source hander 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.on("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)}},bt.registerComponent("Tech",Sn),Sn.registerTech("Tech",Sn),Sn.defaultTechOrder_=[];var wn={},kn={},Cn={};function En(e,t){wn[e]=wn[e]||[],wn[e].push(t)}function xn(e,t,n){e.setTimeout((function(){return Un(t,wn[t.type],n,e)}),1)}function On(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function An(e,t,n){return e.reduceRight(jn(n),t[n]())}function Pn(e,t,n,i){return t[n](e.reduce(jn(n),i))}function In(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+gt(n),a=e.reduce(jn(r),i),s=a===Cn,o=s?null:t[n](a);return Rn(e,n,o,s),o}var Ln={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},Dn={setCurrentTime:1},Mn={play:1,pause:1};function jn(e){return function(t,n){return t===Cn?Cn:n[e]?n[e](t):t}}function Rn(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}function Nn(e){kn[e.id()]=null}function Bn(e,t){var n=kn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),kn[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],s=a[0],o=a[1];s===t&&(i=o)}return null===i&&(i=t(e),n.push([t,i])),i}function Un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=t[0],o=t.slice(1);if("string"===typeof s)Un(e,wn[s],n,i,r,a);else if(s){var l=Bn(i,s);if(!l.setSource)return r.push(l),Un(e,o,n,i,r,a);l.setSource(V({},e),(function(t,s){if(t)return Un(e,o,n,i,r,a);r.push(l),Un(s,e.type===s.type?o:wn[s.type],n,i,r,a)}))}else o.length?Un(e,o,n,i,r,a):a?n(e,r):Un(e,wn["*"],n,i,r,!0)}var Fn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},$n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=an(e),n=Fn[t.toLowerCase()];return n||""},Hn=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 $n(t)},Vn=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):z(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[zn({src:t})]:z(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[zn(t)]:[];return t};function zn(e){var t=$n(e.src);return!e.type&&t&&(e.type=t),e}var qn=function(e){function t(n,i,r){j(this,t);var a=yt({createEl:!1},i),s=N(this,e.call(this,n,a,r));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)n.src(i.playerOptions.sources);else for(var o=0,l=i.playerOptions.techOrder;o<l.length;o++){var u=gt(l[o]),c=Sn.getTech(u);if(u||(c=bt.getComponent(u)),c&&c.isSupported()){n.loadTech_(u);break}}return s}return R(t,e),t}(bt);bt.registerComponent("MediaLoader",qn);var Wn=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.emitTapEvents(),r.enable(),r}return R(t,e),t.prototype.createEl=function(){var t=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]:{};n=V({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=V({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=se("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=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,oe(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){ze(a,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){qe(a,"keydown",tt(this,this.handleKeyPress))},t}(bt);bt.registerComponent("ClickableComponent",Wn);var Gn=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.update(),n.on("posterchange",tt(r,r.update)),r}return R(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=se("div",{className:"vjs-poster",tabIndex:-1});return L||(this.fallbackImg_=se("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Mt(this.player_.play()):this.player_.pause())},t}(Wn);bt.registerComponent("PosterImage",Gn);var Xn="#222",Yn="#ccc",Kn={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'};function Qn(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Jn(e,t,n){try{e.style[t]=n}catch(i){return}}var Zn=function(e){function t(n,i,a){j(this,t);var s=N(this,e.call(this,n,i,a)),o=tt(s,s.updateDisplay);return n.on("loadstart",tt(s,s.toggleDisplay)),n.on("texttrackchange",o),n.on("loadstart",tt(s,s.preselectTrack)),n.ready(tt(s,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",o),n.on("playerresize",o),r.addEventListener&&r.addEventListener("orientationchange",o),n.on("dispose",(function(){return r.removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}}))),s}return R(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,i=void 0,r=void 0,a=void 0,s=0;s<t.length;s++){var o=t[s];n&&n.enabled&&n.language===o.language?o.kind===n.kind?a=o:a||(a=o):n&&!n.enabled?(a=null,i=null,r=null):o["default"]&&("descriptions"!==o.kind||i?o.kind in e&&!r&&(r=o):i=o)}a?a.mode="showing":r?r.mode="showing":i&&(i.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"===typeof r.WebVTT&&r.WebVTT.processCues(r,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();var t=null,n=null,i=e.length;while(i--){var r=e[i];"showing"===r.mode&&("descriptions"===r.kind?t=r:n=r)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(e){if("function"===typeof r.WebVTT&&e.activeCues){for(var t=[],n=0;n<e.activeCues.length;n++)t.push(e.activeCues[n]);if(r.WebVTT.processCues(r,t,this.el_),this.player_.textTrackSettings){var i=this.player_.textTrackSettings.getValues(),a=t.length;while(a--){var s=t[a];if(s){var o=s.displayState;if(i.color&&(o.firstChild.style.color=i.color),i.textOpacity&&Jn(o.firstChild,"color",Qn(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(o.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Jn(o.firstChild,"backgroundColor",Qn(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Jn(o,"backgroundColor",Qn(i.windowColor,i.windowOpacity)):o.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px "+Xn+", 2px 2px 4px "+Xn+", 2px 2px 5px "+Xn:"raised"===i.edgeStyle?o.firstChild.style.textShadow="1px 1px "+Xn+", 2px 2px "+Xn+", 3px 3px "+Xn:"depressed"===i.edgeStyle?o.firstChild.style.textShadow="1px 1px "+Yn+", 0 1px "+Yn+", -1px -1px "+Xn+", 0 -1px "+Xn:"uniform"===i.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px "+Xn+", 0 0 4px "+Xn+", 0 0 4px "+Xn+", 0 0 4px "+Xn)),i.fontPercent&&1!==i.fontPercent){var l=r.parseFloat(o.style.fontSize);o.style.fontSize=l*i.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=Kn[i.fontFamily])}}}}},t}(bt);bt.registerComponent("TextTrackDisplay",Zn);var ei=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=se("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(bt);bt.registerComponent("LoadingSpinner",ei);var ti=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=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",t=V({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=V({type:"button"},n);var i=bt.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),bt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Wn);bt.registerComponent("Button",ti);var ni=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Mt(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};Dt(t)?t.then(r,(function(){})):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);ni.prototype.controlText_="Play Video",bt.registerComponent("BigPlayButton",ni);var ii=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);bt.registerComponent("CloseButton",ii);var ri=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ri.prototype.controlText_="Play",bt.registerComponent("PlayToggle",ri);var ai=function(e,t){e=e<0?0:e;var n=Math.floor(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="-"),r=r>0||s>0?r+":":"",i=((r||a>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},si=ai;function oi(e){si=e}function li(){si=ai}var ui=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return si(e,t)},ci=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.throttledUpdateContent=nt(tt(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return R(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=se("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ui(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(bt);ci.prototype.labelText_="Time",ci.prototype.controlText_="Time",bt.registerComponent("TimeDisplay",ci);var di=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ci);di.prototype.labelText_="Current Time",di.prototype.controlText_="Current Time",bt.registerComponent("CurrentTimeDisplay",di);var hi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ci);hi.prototype.labelText_="Duration",hi.prototype.controlText_="Duration",bt.registerComponent("DurationDisplay",hi);var pi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(bt);bt.registerComponent("TimeDivider",pi);var fi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ci);fi.prototype.labelText_="Remaining Time",fi.prototype.controlText_="Remaining Time",bt.registerComponent("RemainingTimeDisplay",fi);var mi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=se("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(bt);bt.registerComponent("LiveDisplay",mi);var gi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return R(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),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)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),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}},t.prototype.createEl=function(t){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=V({tabIndex:0},n),i=V({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||C||e.preventDefault(),ye(),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)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;be(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),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.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=Se(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=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}(bt);bt.registerComponent("Slider",gi);var vi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,a=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=a(i,n);for(var s=0;s<t.length;s++){var o=t.start(s),l=t.end(s),u=r[s];u||(u=this.el_.appendChild(se()),r[s]=u),u.style.left=a(o,i),u.style.width=a(l-o,i)}for(var c=r.length;c>t.length;c--)this.el_.removeChild(r[c-1]);r.length=t.length},t}(bt);bt.registerComponent("LoadProgressBar",vi);var yi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=_e(this.el_),r=_e(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),l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),this.el_.style.right="-"+l+"px",oe(this.el_,n)}},t}(bt);bt.registerComponent("TimeTooltip",yi);var bi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=ui(i,n.player_.duration()),a=n.getChild("timeTooltip");a&&a.update(e,t,r)}))},t}(bt);bi.prototype.options_={children:[]},O&&!(O>8)||v||b||bi.prototype.options_.children.push("timeTooltip"),bt.registerComponent("PlayProgressBar",bi);var _i=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.update=nt(tt(r,r.update),25),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.duration(),r=ui(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)}))},t}(bt);_i.prototype.options_={children:["timeTooltip"]},bt.registerComponent("MouseTimeDisplay",_i);var Ti=5,Si=30,wi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.setEventHandlers_(),r}return R(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=nt(tt(this,this.update),Si),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),Si)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ui(e,n),ui(n,n)],"{1} of {2}")),this.bar.update(_e(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Oe(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Oe(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Mt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+Ti)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-Ti)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(gi);wi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},O&&!(O>8)||v||b||wi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),wi.prototype.playerEvent="timeupdate",bt.registerComponent("SeekBar",wi);var ki=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.handleMouseMove=nt(tt(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=nt(tt(r,r.handleMouseSeek),25),r.enable(),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=_e(i),a=Se(i,e).x;a>1?a=1:a<0&&(a=0),n&&n.update(r,a)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=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.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(bt);ki.prototype.options_={children:["seekBar"]},bt.registerComponent("ProgressControl",ki);var Ci=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===a[Ct.fullscreenEnabled]&&r.disable(),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);Ci.prototype.controlText_="Fullscreen",bt.registerComponent("FullscreenToggle",Ci);var Ei=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")}))},xi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(bt);bt.registerComponent("VolumeLevel",xi);var Oi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready((function(){return r.updateARIAAttributes()})),r}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Oe(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Oe(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(gi);Oi.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Oi.prototype.playerEvent="volumechange",bt.registerComponent("VolumeBar",Oi);var Ai=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||q(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=N(this,e.call(this,n,i));return Ei(r,n),r.throttledHandleMouseMove=nt(tt(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}return R(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(bt);Ai.prototype.options_={children:["volumeBar"]},bt.registerComponent("VolumeControl",Ai);var Pi=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")}))},Ii=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return Pi(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;v&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)de(this.el_,"vjs-vol-"+n);ce(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Ii.prototype.controlText_="Mute",bt.registerComponent("MuteToggle",Ii);var Li=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||q(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=N(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return R(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=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")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(bt);Li.prototype.options_={children:["muteToggle","volumeControl"]},bt.registerComponent("VolumePanel",Li);var Di=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return R(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=se(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ze(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(bt);bt.registerComponent("Menu",Di);var Mi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t);var r=N(this,e.call(this,n,i));r.menuButton_=new ti(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var a=ti.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+a,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return R(t,e),t.prototype.update=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.show()},t.prototype.createMenu=function(){var e=new Di(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=se("li",{className:"vjs-menu-title",innerHTML:gt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=ti.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){ze(a,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){qe(a,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&&re())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(bt);bt.registerComponent("MenuButton",Mi);var ji=function(e){function t(n,i){j(this,t);var r=i.tracks,a=N(this,e.call(this,n,i));if(a.items.length<=1&&a.hide(),!r)return N(a);var s=tt(a,a.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),a.player_.on("ready",s),a.player_.on("dispose",(function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})),a}return R(t,e),t}(Mi);bt.registerComponent("TrackButton",ji);var Ri=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return R(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",V({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=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}(Wn);bt.registerComponent("MenuItem",Ri);var Ni=function(e){function t(n,i){j(this,t);var s=i.track,o=n.textTracks();i.label=s.label||s.language||"Unknown",i.selected="showing"===s.mode;var l=N(this,e.call(this,n,i));l.track=s;var u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleTracksChange.apply(l,t)},c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleSelectedLanguageChange.apply(l,t)};if(n.on(["loadstart","texttrackchange"],u),o.addEventListener("change",u),o.addEventListener("selectedlanguagechange",c),l.on("dispose",(function(){n.off(["loadstart","texttrackchange"],u),o.removeEventListener("change",u),o.removeEventListener("selectedlanguagechange",c)})),void 0===o.onchange){var d=void 0;l.on(["tap","click"],(function(){if("object"!==M(r.Event))try{d=new r.Event("change")}catch(e){}d||(d=a.createEvent("Event"),d.initEvent("change",!0,!0)),o.dispatchEvent(d)}))}return l.handleTracksChange(),l}return R(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,i=this.track.kinds,r=this.player_.textTracks();if(i||(i=[n]),e.prototype.handleClick.call(this,t),r)for(var a=0;a<r.length;a++){var s=r[a];s===this.track&&i.indexOf(s.kind)>-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Ri);bt.registerComponent("TextTrackMenuItem",Ni);var Bi=function(e){function t(n,i){return j(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,N(this,e.call(this,n,i))}return R(t,e),t.prototype.handleTracksChange=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)},t.prototype.handleSelectedLanguageChange=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})},t}(Ni);bt.registerComponent("OffTextTrackMenuItem",Bi);var Ui=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(this,t),i.tracks=n.textTracks(),N(this,e.call(this,n,i))}return R(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new Bi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),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 t(this.player_,{track:a,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(ji);bt.registerComponent("TextTrackButton",Ui);var Fi=function(e){function t(n,i){j(this,t);var r=i.track,a=i.cue,s=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=a.text,i.selected=a.startTime<=s&&s<a.endTime;var o=N(this,e.call(this,n,i));return o.track=r,o.cue=a,r.addEventListener("cuechange",tt(o,o.update)),o}return R(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Ri);bt.registerComponent("ChaptersTrackMenuItem",Fi);var $i=function(e){function t(n,i,r){return j(this,t),N(this,e.call(this,n,i,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=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_=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_)}}},t.prototype.findChaptersTrack=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}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(gt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=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 Fi(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(Ui);$i.prototype.kind_="chapters",$i.prototype.controlText_="Chapters",bt.registerComponent("ChaptersButton",$i);var Hi=function(e){function t(n,i,r){j(this,t);var a=N(this,e.call(this,n,i,r)),s=n.textTracks(),o=tt(a,a.handleTracksChange);return s.addEventListener("change",o),a.on("dispose",(function(){s.removeEventListener("change",o)})),a}return R(t,e),t.prototype.handleTracksChange=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()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ui);Hi.prototype.kind_="descriptions",Hi.prototype.controlText_="Descriptions",bt.registerComponent("DescriptionsButton",Hi);var Vi=function(e){function t(n,i,r){return j(this,t),N(this,e.call(this,n,i,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ui);Vi.prototype.kind_="subtitles",Vi.prototype.controlText_="Subtitles",bt.registerComponent("SubtitlesButton",Vi);var zi=function(e){function t(n,i){j(this,t),i.track={player:n,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var r=N(this,e.call(this,n,i));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return R(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Ni);bt.registerComponent("CaptionSettingsMenuItem",zi);var qi=function(e){function t(n,i,r){return j(this,t),N(this,e.call(this,n,i,r))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new zi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ui);qi.prototype.kind_="captions",qi.prototype.controlText_="Captions",bt.registerComponent("CaptionsButton",qi);var Wi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>";var a=e.prototype.createEl.call(this,t,V({innerHTML:r},n),i);return a},t}(Ni);bt.registerComponent("SubsCapsMenuItem",Wi);var Gi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};j(this,t);var r=N(this,e.call(this,n,i));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(gt(r.label_)),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new zi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Wi),t},t}(Ui);Gi.prototype.kinds_=["captions","subtitles"],Gi.prototype.controlText_="Subtitles",bt.registerComponent("SubsCapsButton",Gi);var Xi=function(e){function t(n,i){j(this,t);var r=i.track,a=n.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled;var s=N(this,e.call(this,n,i));s.track=r,s.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];s.handleTracksChange.apply(s,t)};return a.addEventListener("change",o),s.on("dispose",(function(){a.removeEventListener("change",o)})),s}return R(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>";var a=e.prototype.createEl.call(this,t,V({innerHTML:r},n),i);return a},t.prototype.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var i=0;i<n.length;i++){var r=n[i];r.enabled=r===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Ri);bt.registerComponent("AudioTrackMenuItem",Xi);var Yi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j(this,t),i.tracks=n.audioTracks(),N(this,e.call(this,n,i))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=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 Xi(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(ji);Yi.prototype.controlText_="Audio Track",bt.registerComponent("AudioTrackButton",Yi);var Ki=function(e){function t(n,i){j(this,t);var r=i.rate,a=parseFloat(r,10);i.label=r,i.selected=1===a,i.selectable=!0,i.multiSelectable=!1;var s=N(this,e.call(this,n,i));return s.label=r,s.rate=a,s.on(n,"ratechange",s.update),s}return R(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Ri);Ki.prototype.contentElType="button",bt.registerComponent("PlaybackRateMenuItem",Ki);var Qi=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.updateVisibility(),r.updateLabel(),r.on(n,"loadstart",r.updateVisibility),r.on(n,"ratechange",r.updateLabel),r}return R(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=se("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Di(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Ki(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>t){i=n[r];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Mi);Qi.prototype.controlText_="Playback Rate",bt.registerComponent("PlaybackRateMenuButton",Qi);var Ji=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(bt);bt.registerComponent("Spacer",Ji);var Zi=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Ji);bt.registerComponent("CustomControlSpacer",Zi);var er=function(e){function t(){return j(this,t),N(this,e.apply(this,arguments))}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(bt);er.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},bt.registerComponent("ControlBar",er);var tr=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"error",r.open),r}return R(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}($t);tr.prototype.options_=yt($t.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),bt.registerComponent("ErrorDisplay",tr);var nr="vjs-text-track-settings",ir=["#000","Black"],rr=["#00F","Blue"],ar=["#0FF","Cyan"],sr=["#0F0","Green"],or=["#F0F","Magenta"],lr=["#F00","Red"],ur=["#FFF","White"],cr=["#FF0","Yellow"],dr=["1","Opaque"],hr=["0.5","Semi-Transparent"],pr=["0","Transparent"],fr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ir,ur,lr,sr,rr,cr,or,ar]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[dr,hr,pr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ur,ir,lr,sr,rr,cr,or,ar]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},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:"Transparency",options:[dr,hr]},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:"Transparency",options:[pr,hr,dr]}};function mr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function gr(e,t){var n=e.options[e.options.selectedIndex].value;return mr(n,t)}function vr(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(mr(e.options[i].value,n)===t){e.selectedIndex=i;break}}fr.windowColor.options=fr.backgroundColor.options;var yr=function(e){function t(n,i){j(this,t),i.temporary=!1;var r=N(this,e.call(this,n,i));return r.updateDisplay=tt(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=se("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===i.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),$(fr,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}return R(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=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=fr[e],a=r.id.replace("%s",this.id_),s=[n,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map((function(e){var n=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+n+'">',t.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return se("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return se("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("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return se("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return H(fr,(function(t,n,i){var r=gr(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},t.prototype.setValues=function(e){var t=this;$(fr,(function(n,i){vr(t.$(n.selector),e[i],n.parser)}))},t.prototype.setDefaults=function(){var e=this;$(fr,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(r.localStorage.getItem(nr))}catch(t){Y.warn(t)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?r.localStorage.setItem(nr,JSON.stringify(e)):r.localStorage.removeItem(nr)}catch(t){Y.warn(t)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(a,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}($t);bt.registerComponent("TextTrackSettings",yr);var br=function(e){function t(n,i){j(this,t);var a=i.ResizeObserver||r.ResizeObserver;null===i.ResizeObserver&&(a=!1);var s=yt({createEl:!a},i),o=N(this,e.call(this,n,s));return o.ResizeObserver=i.ResizeObserver||r.ResizeObserver,o.loadListener_=null,o.resizeObserver_=null,o.debouncedHandler_=it((function(){o.resizeHandler()}),100,!1,o),a?(o.resizeObserver_=new o.ResizeObserver(o.debouncedHandler_),o.resizeObserver_.observe(n.el())):(o.loadListener_=function(){o.el_&&o.el_.contentWindow&&ze(o.el_.contentWindow,"resize",o.debouncedHandler_)},o.one("load",o.loadListener_)),o}return R(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&qe(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(bt);bt.registerComponent("ResizeManager",br);var _r=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)},Tr={};x||(Tr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=a.createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",r.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var Sr=function(e,t){for(var n={},i=0;i<e.length;i++)if(n=Object.getOwnPropertyDescriptor(e[i],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},wr=function(e){return Sr([e.el(),r.HTMLMediaElement.prototype,r.Element.prototype,Tr],"innerHTML")},kr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=wr(e),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 _r(e),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",yt(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_)}},Cr={};x||(Cr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?rn(r.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return r.Element.prototype.setAttribute.call(this,"src",e),e}}));var Er=function(e){return Sr([e.el(),r.HTMLMediaElement.prototype,Cr],"src")},xr=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=Er(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",yt(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 _r(e)||(e.triggerSourceset(""),kr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):_r(e)||kr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Or=B(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Ar=function(e){function t(n,i){j(this,t);var r=N(this,e.call(this,n,i)),a=n.source,o=!1;if(a&&(r.el_.currentSrc!==a.src||n.tag&&3===n.tag.initNetworkState_)?r.setSource(a):r.handleLateInit_(r.el_),n.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){var l=r.el_.childNodes,u=l.length,c=[];while(u--){var d=l[u],h=d.nodeName.toLowerCase();"track"===h&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(d),r.remoteTextTracks().addTrack(d.track),r.textTracks().addTrack(d.track),o||r.el_.hasAttribute("crossorigin")||!sn(d.src)||(o=!0)):c.push(d))}for(var p=0;p<c.length;p++)r.el_.removeChild(c[p])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&Y.warn(s(Or)),r.restoreMetadataTracksInIOSNativePlayer_(),(I||m||S)&&!0===n.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return R(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){xr(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var n=0;n<e.length;n++){var i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(function(){return e.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)}))},t.prototype.proxyNativeTracks_=function(){var e=this;yn.names.forEach((function(t){var n=yn[t],i=e.el()[n.getterName],r=e[n.getterName]();if(e["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(e){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},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])}while(e.length)r.removeTrack(e.shift())};Object.keys(a).forEach((function(t){var n=a[t];i.addEventListener(t,n),e.on("dispose",(function(e){return i.removeEventListener(t,n)}))})),e.on("loadstart",s),e.on("dispose",(function(t){return e.off("loadstart",s)}))}}))},t.prototype.createEl=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=a.createElement("video");var i=this.options_.tag&&fe(this.options_.tag),r=yt({},i);I&&!0===this.options_.nativeControlsForTouch||delete r.controls,pe(e,V(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&ge(e,"preload",this.options_.preload);for(var s=["loop","muted","playsinline","autoplay"],o=0;o<s.length;o++){var l=s[o],u=this.options_[l];"undefined"!==typeof u&&(u?ge(e,l,l):ve(e,l),e[l]=u)}return e},t.prototype.handleLateInit_=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")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}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)}))}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){Y(t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&b&&C&&0===this.el_.currentTime){var t=function t(){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},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},t.prototype.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=r.navigator&&r.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout((function(){e.pause(),e.webkitEnterFullScreen()}),0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),i=n.length;while(i--)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])}},t.prototype.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r.performance&&"function"===typeof r.performance.now?e.creationTime=r.performance.now():r.performance&&r.performance.timing&&"number"===typeof r.performance.timing.navigationStart&&(e.creationTime=r.Date.now()-r.performance.timing.navigationStart),e},t}(Sn);if(ne()){Ar.TEST_VID=a.createElement("video");var Pr=a.createElement("track");Pr.kind="captions",Pr.srclang="en",Pr.label="English",Ar.TEST_VID.appendChild(Pr)}Ar.isSupported=function(){try{Ar.TEST_VID.volume=.5}catch(e){return!1}return!(!Ar.TEST_VID||!Ar.TEST_VID.canPlayType)},Ar.canPlayType=function(e){return Ar.TEST_VID.canPlayType(e)},Ar.canPlaySource=function(e,t){return Ar.canPlayType(e.type)},Ar.canControlVolume=function(){try{var e=Ar.TEST_VID.volume;return Ar.TEST_VID.volume=e/2+.1,e!==Ar.TEST_VID.volume}catch(t){return!1}},Ar.canMuteVolume=function(){try{var e=Ar.TEST_VID.muted;return Ar.TEST_VID.muted=!e,Ar.TEST_VID.muted?ge(Ar.TEST_VID,"muted","muted"):ve(Ar.TEST_VID,"muted","muted"),e!==Ar.TEST_VID.muted}catch(t){return!1}},Ar.canControlPlaybackRate=function(){if(b&&C&&E<58)return!1;try{var e=Ar.TEST_VID.playbackRate;return Ar.TEST_VID.playbackRate=e/2+.1,e!==Ar.TEST_VID.playbackRate}catch(t){return!1}},Ar.canOverrideAttributes=function(){if(x)return!1;try{var e=function(){};Object.defineProperty(a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Ar.supportsNativeTextTracks=function(){return P||v&&C},Ar.supportsNativeVideoTracks=function(){return!(!Ar.TEST_VID||!Ar.TEST_VID.videoTracks)},Ar.supportsNativeAudioTracks=function(){return!(!Ar.TEST_VID||!Ar.TEST_VID.audioTracks)},Ar.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Ar.prototype.featuresVolumeControl=Ar.canControlVolume(),Ar.prototype.featuresMuteControl=Ar.canMuteVolume(),Ar.prototype.featuresPlaybackRate=Ar.canControlPlaybackRate(),Ar.prototype.featuresSourceset=Ar.canOverrideAttributes(),Ar.prototype.movingMediaElementInDOM=!v,Ar.prototype.featuresFullscreenResize=!0,Ar.prototype.featuresProgressEvents=!0,Ar.prototype.featuresTimeupdateEvents=!0,Ar.prototype.featuresNativeTextTracks=Ar.supportsNativeTextTracks(),Ar.prototype.featuresNativeVideoTracks=Ar.supportsNativeVideoTracks(),Ar.prototype.featuresNativeAudioTracks=Ar.supportsNativeAudioTracks();var Ir=Ar.TEST_VID&&Ar.TEST_VID.constructor.prototype.canPlayType,Lr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Dr=/^video\/mp4/i;Ar.patchCanPlayType=function(){_>=4&&!w&&!C?Ar.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Lr.test(e)?"maybe":Ir.call(this,e)}:T&&(Ar.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Dr.test(e)?"maybe":Ir.call(this,e)})},Ar.unpatchCanPlayType=function(){var e=Ar.TEST_VID.constructor.prototype.canPlayType;return Ar.TEST_VID.constructor.prototype.canPlayType=Ir,e},Ar.patchCanPlayType(),Ar.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},Ar.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Ar.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Ar.prototype["set"+gt(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","played","networkState","readyState","videoWidth","videoHeight"].forEach((function(e){Ar.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach((function(e){Ar.prototype["set"+gt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Ar.prototype[e]=function(){return this.el_[e]()}})),Sn.withSourceHandlers(Ar),Ar.nativeSourceHandler={},Ar.nativeSourceHandler.canPlayType=function(e){try{return Ar.TEST_VID.canPlayType(e)}catch(t){return""}},Ar.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ar.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=an(e.src);return Ar.nativeSourceHandler.canPlayType("video/"+n)}return""},Ar.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Ar.nativeSourceHandler.dispose=function(){},Ar.registerSourceHandler(Ar.nativeSourceHandler),Sn.registerTech("Html5",Ar);var Mr=B(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),jr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Rr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Nr=["tiny","xsmall","small","medium","large","xlarge","huge"],Br={};Nr.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Br[e]="vjs-layout-"+t}));var Ur={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Fr=function(e){function t(n,i,r){if(j(this,t),n.id=n.id||i.id||"vjs_video_"+De(),i=V(t.getTagSettings(n),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(i.language=a.getAttribute("lang"))}else{var s=n;while(s&&1===s.nodeType){if(fe(s).hasOwnProperty("lang")){i.language=s.getAttribute("lang");break}s=s.parentNode}}var o=N(this,e.call(this,null,i,r));if(o.log=K(o.id_),o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&fe(n),o.language(o.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach((function(e){l[e.toLowerCase()]=i.languages[e]})),o.languages_=l}else o.languages_=t.prototype.options_.languages;o.cache_={},o.poster_=i.poster||"",o.controls_=!!i.controls,o.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?o.options_.autoplay=!0:o.autoplay(o.options_.autoplay),o.scrubbing_=!1,o.el_=o.createEl(),o.cache_.lastPlaybackRate=o.defaultPlaybackRate(),pt(o,{eventBusKey:"el_"});var u=yt(o.options_);if(i.plugins){var d=i.plugins;Object.keys(d).forEach((function(e){if("function"!==typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](d[e])}),o)}o.options_.playerOptions=u,o.middleware_=[],o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),v||o.addClass("vjs-workinghover"),t.players[o.id_]=o;var h=c.split(".")[0];return o.addClass("vjs-v"+h),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("fullscreenchange",o.handleFullscreenChange_),o.on("stageclick",o.handleStageClick_),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o.changingSrc_=!1,o.playWaitingForReady_=!1,o.playOnLoadstart_=null,o}return R(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),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),Nn(this),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),s="video-js"===this.tag.tagName.toLowerCase();i?n=this.el_=t.parentNode:s||(n=this.el_=e.prototype.createEl.call(this,"div"));var o=fe(t);if(s){n=this.el_=t,t=this.tag=a.createElement("video");while(n.children.length)t.appendChild(n.firstChild);ue(n,"video-js")||ce(n,"video-js"),n.appendChild(t),i=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach((function(e){"undefined"!==typeof n[e]&&(t[e]=n[e])}))}if(t.setAttribute("tabindex","-1"),o.tabindex="-1",O&&(t.setAttribute("role","application"),o.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach((function(e){"class"===e?(n.className+=" "+o[e],s&&(t.className+=" "+o[e])):(n.setAttribute(e,o[e]),s&&t.setAttribute(e,o[e]))})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==r.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ze("vjs-styles-dimensions");var l=Ae(".vjs-styles-defaults"),u=Ae("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.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);for(var c=t.getElementsByTagName("a"),d=0;d<c.length;d++){var h=c.item(d);ce(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(n,t),le(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?Y.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new 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_()},t.prototype.updateStyleEl_=function(){if(!0!==r.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,i=void 0;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var a=n.split(":"),s=a[1]/a[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/s:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*s,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),et(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*s+"%;\n }\n ")}else{var o="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(o>=0&&(u.width=o),l>=0&&(u.height=l))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=gt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Sn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a="string"!==typeof this.autoplay()&&this.autoplay(),s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,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};_n.names.forEach((function(e){var t=_n[e];s[t.getterName]=n[t.privateName]})),V(s,this.options_[i]),V(s,this.options_[r]),V(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=Sn.getTech(e);if(!o)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(tt(this,this.handleTechReady_),!0),Bt.jsonToTextTracks(this.textTracksJson_||[],this.tech_),jr.forEach((function(e){n.on(n.tech_,e,n["handleTech"+gt(e)+"_"])})),Object.keys(Rr).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Rr[e]+"_"].bind(n),event:t}):n["handleTech"+Rr[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||le(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;_n.names.forEach((function(t){var n=_n[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=Bt.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&Y.warn(s(Mr)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){Y("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n["catch"])return n["catch"]((function(n){t.muted(e)}))},i=void 0;if("any"===e?(i=this.play(),i&&i.then&&i["catch"]&&i["catch"]((function(){return n()}))):i="muted"===e?n():this.play(),i&&i.then&&i["catch"])return i.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(n){t.trigger({type:"autoplay-failure",autoplay:e})}))}},t.prototype.updateSourceCaches_=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=Hn(this,t)),this.cache_.source=yt({},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 l=fe(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;if(i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),!e.src){var a=function e(n){if("sourceset"!==n.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}t.tech_.off(["sourceset","loadstart"],e)};this.tech_.one(["sourceset","loadstart"],a)}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=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")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return e.removeClass("vjs-waiting")}))},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(Y.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){Oe(e)&&this.controls_&&(this.paused()?Mt(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready((function(){if(e in Dn)return Pn(this.middleware_,this.tech_,e,t);if(e in Mn)return In(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw Y(n),n}}),!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Ln)return An(this.middleware_,this.tech_,e);if(e in Mn)return In(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Y("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Y("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Y(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||r.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mt;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready((function(){e.playWaitingForReady_=!1,t(e.play())}))}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||wt(0,0)},t.prototype.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=wt(0,0)),e},t.prototype.bufferedPercent=function(){return kt(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=Ct;this.isFullscreen(!0),e.requestFullscreen?(ze(a,e.fullscreenchange,tt(this,(function t(n){this.isFullscreen(a[e.fullscreenElement]),!1===this.isFullscreen()&&qe(a,e.fullscreenchange,t),this.trigger("fullscreenchange")}))),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=Ct;this.isFullscreen(!1),e.requestFullscreen?a[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.documentElement.style.overflow,ze(a,"keydown",tt(this,this.fullWindowOnEscKey)),a.documentElement.style.overflow="hidden",ce(a.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,qe(a,"keydown",this.fullWindowOnEscKey),a.documentElement.style.overflow=this.docOrigOverflow,de(a.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Sn.getTech(r);if(a||(a=bt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else Y.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t=this,n=this.options_.techOrder.map((function(e){return[e,Sn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Y.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var i=void 0;return e.some((function(e){return t.some((function(t){if(i=n(e,t),i)return!0}))})),i},r=void 0,a=function(e){return function(t,n){return e(n,t)}},s=function(e,n){var i=e[0],r=e[1];if(r.canPlaySource(n,t.options_[i.toLowerCase()]))return{source:n,tech:i}};return r=this.options_.sourceOrder?i(e,n,a(s)):i(n,e,s),r||!1},t.prototype.src=function(e){var t=this;if("undefined"===typeof e)return this.cache_.src||"";var n=Vn(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),xn(this,n[0],(function(e,i){t.middleware_=i,t.cache_.sources=n,t.updateSourceCaches_(e);var r=t.src_(e);if(r)return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void t.triggerReady());On(i,t.tech_)}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},t.prototype.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(vt(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),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"===typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=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"))},t.prototype.handleTechPosterChange_=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"))}},t.prototype.controls=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.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=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")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new It(e),this.addClass("vjs-error"),Y.error("(CODE:"+this.error_.code+" "+It.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");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")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,i=tt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("keydown",i),this.on("keyup",i);var o=void 0;this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track,n=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(n)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return yt(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=yt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=yt(i),i.player=void 0,e.tracks[n]=i}return e},t.prototype.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var i=new $t(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Nr.length;n++){var i=Nr[n],r=this.breakpoints_[i];if(t<=r){if(e===i)return;e&&this.removeClass(Br[e]),this.addClass(Br[i]),this.breakpoint_=i;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=V({},Ur,e),this.updateCurrentBreakpoint_()),V(this.breakpoints_)},t.prototype.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return Br[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=fe(e),i=n["data-setup"];if(ue(e,"vjs-fill")&&(n.fill=!0),ue(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=o(i||"{}"),a=r[0],s=r[1];a&&Y.error(a),V(n,s)}if(V(t,n),e.hasChildNodes())for(var l=e.childNodes,u=0,c=l.length;u<c;u++){var d=l[u],h=d.nodeName.toLowerCase();"source"===h?t.sources.push(fe(d)):"track"===h&&t.tracks.push(fe(d))}return t},t.prototype.flexNotSupported_=function(){var e=a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(bt);_n.names.forEach((function(e){var t=_n[e];Fr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Fr.players={};var $r=r.navigator;Fr.prototype.options_={techOrder:Sn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:$r&&($r.languages&&$r.languages[0]||$r.userLanguage||$r.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},x||Fr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Fr.prototype[e]=function(){return this.techGet_(e)}})),jr.forEach((function(e){Fr.prototype["handleTech"+gt(e)+"_"]=function(){return this.trigger(e)}})),bt.registerComponent("Player",Fr);var Hr="plugin",Vr="activePlugins_",zr={},qr=function(e){return zr.hasOwnProperty(e)},Wr=function(e){return qr(e)?zr[e]:void 0},Gr=function(e,t){e[Vr]=e[Vr]||{},e[Vr][t]=!0},Xr=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Yr=function(e,t){var n=function(){Xr(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Gr(this,e),Xr(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},Kr=function(e,t){return t.prototype.name=e,function(){Xr(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(i))));return this[e]=function(){return a},Xr(this,a.getEventHash()),a}},Qr=function(){function e(t){if(j(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,pt(this),delete this.trigger,mt(this,this.constructor.defaultState),Gr(t,this.name),this.dispose=tt(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=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},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return We(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Vr][e]=!1,this.player=this.state=null,t[e]=Kr(e,zr[e])},e.isBasic=function(t){var n="string"===typeof t?Wr(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+("undefined"===typeof t?"undefined":M(t))+".");if(qr(t))Y.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Fr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+("undefined"===typeof n?"undefined":M(n))+".");return zr[t]=n,t!==Hr&&(e.isBasic(n)?Fr.prototype[t]=Yr(t,n):Fr.prototype[t]=Kr(t,n)),n},e.deregisterPlugin=function(e){if(e===Hr)throw new Error("Cannot de-register base plugin.");qr(e)&&(delete zr[e],delete Fr.prototype[e])},e.getPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(zr),t=void 0;return e.forEach((function(e){var n=Wr(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=Wr(e);return t&&t.VERSION||""},e}();Qr.getPlugin=Wr,Qr.BASE_PLUGIN_NAME=Hr,Qr.registerPlugin(Hr,Qr),Fr.prototype.usingPlugin=function(e){return!!this[Vr]&&!0===this[Vr][e]},Fr.prototype.hasPlugin=function(e){return!!qr(e)};var Jr=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":M(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},Zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},i={};for(var r in"object"===("undefined"===typeof t?"undefined":M(t))?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"===typeof t&&(n=t),Jr(n,e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n};"undefined"===typeof HTMLVideoElement&&ne()&&(a.createElement("video"),a.createElement("audio"),a.createElement("track"),a.createElement("video-js"));var ea=function(e){return 0===e.indexOf("#")?e.slice(1):e};function ta(e,t,n){var i=ta.getPlayer(e);if(i)return t&&Y.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?Ae("#"+ea(e)):e;if(!ie(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");a.body.contains(r)||Y.warn("The element supplied is not included in the DOM"),t=t||{},ta.hooks("beforesetup").forEach((function(e){var n=e(r,yt(t));z(n)&&!Array.isArray(n)?t=yt(t,n):Y.error("please return an object in beforesetup hooks")}));var s=bt.getComponent("Player");return i=new s(r,t,n),ta.hooks("setup").forEach((function(e){return e(i)})),i}if(ta.hooks_={},ta.hooks=function(e,t){return ta.hooks_[e]=ta.hooks_[e]||[],t&&(ta.hooks_[e]=ta.hooks_[e].concat(t)),ta.hooks_[e]},ta.hook=function(e,t){ta.hooks(e,t)},ta.hookOnce=function(e,t){ta.hooks(e,[].concat(t).map((function(t){var n=function n(){return ta.removeHook(e,n),t.apply(void 0,arguments)};return n})))},ta.removeHook=function(e,t){var n=ta.hooks(e).indexOf(t);return!(n<=-1)&&(ta.hooks_[e]=ta.hooks_[e].slice(),ta.hooks_[e].splice(n,1),!0)},!0!==r.VIDEOJS_NO_DYNAMIC_STYLE&&ne()){var na=Ae(".vjs-styles-defaults");if(!na){na=Ze("vjs-styles-defaults");var ia=Ae("head");ia&&ia.insertBefore(na,ia.firstChild),et(na,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Je(1,ta),ta.VERSION=c,ta.options=Fr.prototype.options_,ta.getPlayers=function(){return Fr.players},ta.getPlayer=function(e){var t=Fr.players,n=void 0;if("string"===typeof e){var i=ea(e),r=t[i];if(r)return r;n=Ae("#"+i)}else n=e;if(ie(n)){var a=n,s=a.player,o=a.playerId;if(s||t[o])return s||t[o]}},ta.getAllPlayers=function(){return Object.keys(Fr.players).map((function(e){return Fr.players[e]})).filter(Boolean)},ta.players=Fr.players,ta.getComponent=bt.getComponent,ta.registerComponent=function(e,t){Sn.isTech(t)&&Y.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),bt.registerComponent.call(bt,e,t)},ta.getTech=Sn.getTech,ta.registerTech=Sn.registerTech,ta.use=En,!x&&Object.defineProperty?(Object.defineProperty(ta,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(ta.middleware,"TERMINATOR",{value:Cn,writeable:!1,enumerable:!0})):ta.middleware={TERMINATOR:Cn},ta.browser=D,ta.TOUCH_ENABLED=I,ta.extend=Zr,ta.mergeOptions=yt,ta.bind=tt,ta.registerPlugin=Qr.registerPlugin,ta.deregisterPlugin=Qr.deregisterPlugin,ta.plugin=function(e,t){return Y.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Qr.registerPlugin(e,t)},ta.getPlugins=Qr.getPlugins,ta.getPlugin=Qr.getPlugin,ta.getPluginVersion=Qr.getPluginVersion,ta.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),ta.options.languages=yt(ta.options.languages,(n={},n[e]=t,n)),ta.options.languages[e]},ta.log=Y,ta.createLogger=K,ta.createTimeRange=ta.createTimeRanges=wt,ta.formatTime=ui,ta.setFormatTime=oi,ta.resetFormatTime=li,ta.parseUrl=nn,ta.isCrossOrigin=sn,ta.EventTarget=rt,ta.on=ze,ta.one=Ge,ta.off=qe,ta.trigger=We,ta.xhr=l,ta.TextTrack=cn,ta.AudioTrack=dn,ta.VideoTrack=hn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){ta[e]=function(){return Y.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ie[e].apply(null,arguments)}})),ta.computedStyle=Q,ta.dom=Ie,ta.url=on,e.exports=ta},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var i,r,a,s,o=n("23e7"),l=n("c430"),u=n("da84"),c=n("d066"),d=n("fea9"),h=n("6eeb"),p=n("e2cc"),f=n("d2bb"),m=n("d44e"),g=n("2626"),v=n("861d"),y=n("1c0b"),b=n("19aa"),_=n("8925"),T=n("2266"),S=n("1c7e"),w=n("4840"),k=n("2cf4").set,C=n("b575"),E=n("cdf9"),x=n("44de"),O=n("f069"),A=n("e667"),P=n("69f3"),I=n("94ca"),L=n("b622"),D=n("6069"),M=n("605d"),j=n("2d00"),R=L("species"),N="Promise",B=P.get,U=P.set,F=P.getterFor(N),$=d&&d.prototype,H=d,V=$,z=u.TypeError,q=u.document,W=u.process,G=O.f,X=G,Y=!!(q&&q.createEvent&&u.dispatchEvent),K="function"==typeof PromiseRejectionEvent,Q="unhandledrejection",J="rejectionhandled",Z=0,ee=1,te=2,ne=1,ie=2,re=!1,ae=I(N,(function(){var e=_(H),t=e!==String(H);if(!t&&66===j)return!0;if(l&&!V["finally"])return!0;if(j>=51&&/native code/.test(e))return!1;var n=new H((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))},r=n.constructor={};return r[R]=i,re=n.then((function(){}))instanceof i,!re||!t&&D&&!K})),se=ae||!S((function(e){H.all(e)["catch"]((function(){}))})),oe=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},le=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;C((function(){var i=e.value,r=e.state==ee,a=0;while(n.length>a){var s,o,l,u=n[a++],c=r?u.ok:u.fail,d=u.resolve,h=u.reject,p=u.domain;try{c?(r||(e.rejection===ie&&he(e),e.rejection=ne),!0===c?s=i:(p&&p.enter(),s=c(i),p&&(p.exit(),l=!0)),s===u.promise?h(z("Promise-chain cycle")):(o=oe(s))?o.call(s,d,h):d(s)):h(i)}catch(f){p&&!l&&p.exit(),h(f)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ce(e)}))}},ue=function(e,t,n){var i,r;Y?(i=q.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},!K&&(r=u["on"+e])?r(i):e===Q&&x("Unhandled promise rejection",n)},ce=function(e){k.call(u,(function(){var t,n=e.facade,i=e.value,r=de(e);if(r&&(t=A((function(){M?W.emit("unhandledRejection",i,n):ue(Q,n,i)})),e.rejection=M||de(e)?ie:ne,t.error))throw t.value}))},de=function(e){return e.rejection!==ne&&!e.parent},he=function(e){k.call(u,(function(){var t=e.facade;M?W.emit("rejectionHandled",t):ue(J,t,e.value)}))},pe=function(e,t,n){return function(i){e(t,i,n)}},fe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=te,le(e,!0))},me=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var i=oe(t);i?C((function(){var n={done:!1};try{i.call(t,pe(me,n,e),pe(fe,n,e))}catch(r){fe(n,r,e)}})):(e.value=t,e.state=ee,le(e,!1))}catch(r){fe({done:!1},r,e)}}};if(ae&&(H=function(e){b(this,H,N),y(e),i.call(this);var t=B(this);try{e(pe(me,t),pe(fe,t))}catch(n){fe(t,n)}},V=H.prototype,i=function(e){U(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},i.prototype=p(V,{then:function(e,t){var n=F(this),i=G(w(this,H));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=M?W.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=Z&&le(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=B(e);this.promise=e,this.resolve=pe(me,t),this.reject=pe(fe,t)},O.f=G=function(e){return e===H||e===a?new r(e):X(e)},!l&&"function"==typeof d&&$!==Object.prototype)){s=$.then,re||(h($,"then",(function(e,t){var n=this;return new H((function(e,t){s.call(n,e,t)})).then(e,t)}),{unsafe:!0}),h($,"catch",V["catch"],{unsafe:!0}));try{delete $.constructor}catch(ge){}f&&f($,V)}o({global:!0,wrap:!0,forced:ae},{Promise:H}),m(H,N,!1,!0),g(N),a=c(N),o({target:N,stat:!0,forced:ae},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),o({target:N,stat:!0,forced:l||ae},{resolve:function(e){return E(l&&this===a?H:this,e)}}),o({target:N,stat:!0,forced:se},{all:function(e){var t=this,n=G(t),i=n.resolve,r=n.reject,a=A((function(){var n=y(t.resolve),a=[],s=0,o=1;T(e,(function(e){var l=s++,u=!1;a.push(void 0),o++,n.call(t,e).then((function(e){u||(u=!0,a[l]=e,--o||i(a))}),r)})),--o||i(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=G(t),i=n.reject,r=A((function(){var r=y(t.resolve);T(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},e762:function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return i})),n.d(t,"VERSION",(function(){return r})),n.d(t,"atob",(function(){return L})),n.d(t,"atobPolyfill",(function(){return I})),n.d(t,"btoa",(function(){return b})),n.d(t,"btoaPolyfill",(function(){return y})),n.d(t,"fromBase64",(function(){return N})),n.d(t,"toBase64",(function(){return E})),n.d(t,"utob",(function(){return k})),n.d(t,"encode",(function(){return E})),n.d(t,"encodeURI",(function(){return x})),n.d(t,"encodeURL",(function(){return x})),n.d(t,"btou",(function(){return P})),n.d(t,"decode",(function(){return N})),n.d(t,"isValid",(function(){return B})),n.d(t,"fromUint8Array",(function(){return T})),n.d(t,"toUint8Array",(function(){return M})),n.d(t,"extendString",(function(){return F})),n.d(t,"extendUint8Array",(function(){return $})),n.d(t,"extendBuiltins",(function(){return H})),n.d(t,"Base64",(function(){return V}));const i="3.7.2",r=i,a="function"===typeof atob,s="function"===typeof btoa,o="function"===typeof Buffer,l="function"===typeof TextDecoder?new TextDecoder:void 0,u="function"===typeof TextEncoder?new TextEncoder:void 0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(c),h=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(d),p=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,f=String.fromCharCode.bind(String),m="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),g=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),v=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),y=e=>{let t,n,i,r,a="";const s=e.length%3;for(let o=0;o<e.length;){if((n=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=n<<16|i<<8|r,a+=d[t>>18&63]+d[t>>12&63]+d[t>>6&63]+d[63&t]}return s?a.slice(0,s-3)+"===".substring(s):a},b=s?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):y,_=o?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let n=[];for(let i=0,r=e.length;i<r;i+=t)n.push(f.apply(null,e.subarray(i,i+t)));return b(n.join(""))},T=(e,t=!1)=>t?g(_(e)):_(e),S=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?f(192|t>>>6)+f(128|63&t):f(224|t>>>12&15)+f(128|t>>>6&63)+f(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return f(240|t>>>18&7)+f(128|t>>>12&63)+f(128|t>>>6&63)+f(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,k=e=>e.replace(w,S),C=o?e=>Buffer.from(e,"utf8").toString("base64"):u?e=>_(u.encode(e)):e=>b(k(e)),E=(e,t=!1)=>t?g(C(e)):C(e),x=e=>E(e,!0),O=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,A=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return f(55296+(n>>>10))+f(56320+(1023&n));case 3:return f((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return f((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},P=e=>e.replace(O,A),I=e=>{if(e=e.replace(/\s+/g,""),!p.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,i,r="";for(let a=0;a<e.length;)t=h[e.charAt(a++)]<<18|h[e.charAt(a++)]<<12|(n=h[e.charAt(a++)])<<6|(i=h[e.charAt(a++)]),r+=64===n?f(t>>16&255):64===i?f(t>>16&255,t>>8&255):f(t>>16&255,t>>8&255,255&t);return r},L=a?e=>atob(v(e)):o?e=>Buffer.from(e,"base64").toString("binary"):I,D=o?e=>m(Buffer.from(e,"base64")):e=>m(L(e),e=>e.charCodeAt(0)),M=e=>D(R(e)),j=o?e=>Buffer.from(e,"base64").toString("utf8"):l?e=>l.decode(D(e)):e=>P(L(e)),R=e=>v(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),N=e=>j(R(e)),B=e=>{if("string"!==typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},U=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),F=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,U(t));e("fromBase64",(function(){return N(this)})),e("toBase64",(function(e){return E(this,e)})),e("toBase64URI",(function(){return E(this,!0)})),e("toBase64URL",(function(){return E(this,!0)})),e("toUint8Array",(function(){return M(this)}))},$=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,U(t));e("toBase64",(function(e){return T(this,e)})),e("toBase64URI",(function(){return T(this,!0)})),e("toBase64URL",(function(){return T(this,!0)}))},H=()=>{F(),$()},V={version:i,VERSION:r,atob:L,atobPolyfill:I,btoa:b,btoaPolyfill:y,fromBase64:N,toBase64:E,encode:E,encodeURI:x,encodeURL:x,utob:k,btou:P,decode:N,isValid:B,fromUint8Array:T,toUint8Array:M,extendString:F,extendUint8Array:$,extendBuiltins:H}},e893:function(e,t,n){var i=n("5135"),r=n("56ef"),a=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=r(t),o=s.f,l=a.f,u=0;u<n.length;u++){var c=n[u];i(e,c)||o(e,c,l(t,c))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),a=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[a]===e)}},e9b0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){r(this,e),this.listeners={}}return i(e,[{key:"on",value:function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"off",value:function(e,t){var n=void 0;return!!this.listeners[e]&&(n=this.listeners[e].indexOf(t),this.listeners[e].splice(n,1),n>-1)}},{key:"trigger",value:function(e){var t=void 0,n=void 0,i=void 0,r=void 0;if(t=this.listeners[e],t)if(2===arguments.length)for(i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),i=t.length,n=0;n<i;++n)t[n].apply(this,r)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(e){this.on("data",(function(t){e.push(t)}))}}]),e}();t["default"]=a,e.exports=t["default"]},e9b3:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},ea3c:function(e,t){var n="auto",i={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function a(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function s(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function l(e,t,i){var r=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?r=document.createElement("custom"):u.enumerable=!0,r.hasBeenReset=!1;var c="",d=!1,h=e,p=t,f=i,m=null,g="",v=!0,y="auto",b="start",_=50,T="middle",S=50,w="middle";if(Object.defineProperty(r,"id",o({},u,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(r,"pauseOnExit",o({},u,{get:function(){return d},set:function(e){d=!!e}})),Object.defineProperty(r,"startTime",o({},u,{get:function(){return h},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",o({},u,{get:function(){return p},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",o({},u,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",o({},u,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",o({},u,{get:function(){return g},set:function(e){var t=a(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",o({},u,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",o({},u,{get:function(){return y},set:function(e){if("number"!==typeof e&&e!==n)throw new SyntaxError("An invalid number or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",o({},u,{get:function(){return b},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",o({},u,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",o({},u,{get:function(){return T},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",o({},u,{get:function(){return S},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");S=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",o({},u,{get:function(){return w},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),r.displayState=void 0,l)return r}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=l},ea7c:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},ea8e:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));var i,r=n("a142"),a=n("90c6");function s(e){if(Object(r["c"])(e))return e=String(e),Object(a["b"])(e)?e+"px":e}function o(){if(!i){var e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;i=parseFloat(t)}return i}function l(e){return e=e.replace(/rem/g,""),+e*o()}function u(e){return e=e.replace(/vw/g,""),+e*window.innerWidth/100}function c(e){return e=e.replace(/vh/g,""),+e*window.innerHeight/100}function d(e){if("number"===typeof e)return e;if(r["b"]){if(-1!==e.indexOf("rem"))return l(e);if(-1!==e.indexOf("vw"))return u(e);if(-1!==e.indexOf("vh"))return c(e)}return parseFloat(e)}},eaba:function(e,t,n){"use strict";var i,r,a,s=n("0129"),o=n("b52b");r=function(){var e,t,n=0;r.prototype.init.call(this),this.push=function(i){var r;for(t?(r=new Uint8Array(t.byteLength+i.data.byteLength),r.set(t),r.set(i.data,t.byteLength),t=r):t=i.data;n<t.byteLength-3;n++)if(1===t[n+2]){e=n+5;break}while(e<t.byteLength)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<t.length);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;break}t=t.subarray(n),e-=n,n=0},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")}},r.prototype=new s,a={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},i=function(){var e,t,n,s,l,u,c,d=new r;i.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,s=e.dts,d.push(e))},d.on("data",(function(i){var r={trackId:t,pts:n,dts:s,data:i};switch(31&i[0]){case 5:r.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:r.nalUnitType="sei_rbsp",r.escapedRBSP=l(i.subarray(1));break;case 7:r.nalUnitType="seq_parameter_set_rbsp",r.escapedRBSP=l(i.subarray(1)),r.config=u(r.escapedRBSP);break;case 8:r.nalUnitType="pic_parameter_set_rbsp";break;case 9:r.nalUnitType="access_unit_delimiter_rbsp";break;default:break}e.trigger("data",r)})),d.on("done",(function(){e.trigger("done")})),this.flush=function(){d.flush()},c=function(e,t){var n,i,r=8,a=8;for(n=0;n<e;n++)0!==a&&(i=t.readExpGolomb(),a=(r+i+256)%256),r=0===a?r:a},l=function(e){var t,n,i=e.byteLength,r=[],a=1;while(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;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},u=function(e){var t,n,i,r,s,l,u,d,h,p,f,m,g,v,y=0,b=0,_=0,T=0,S=1;if(t=new o(e),n=t.readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),a[n]&&(s=t.readUnsignedExpGolomb(),3===s&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(f=3!==s?8:12,v=0;v<f;v++)t.readBoolean()&&c(v<6?16:64,t);if(t.skipUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),0===l)t.readUnsignedExpGolomb();else if(1===l)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),u=t.readUnsignedExpGolomb(),v=0;v<u;v++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),d=t.readUnsignedExpGolomb(),h=t.readUnsignedExpGolomb(),p=t.readBits(1),0===p&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(y=t.readUnsignedExpGolomb(),b=t.readUnsignedExpGolomb(),_=t.readUnsignedExpGolomb(),T=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(g=t.readUnsignedByte(),g){case 1:m=[1,1];break;case 2:m=[12,11];break;case 3:m=[10,11];break;case 4:m=[16,11];break;case 5:m=[40,33];break;case 6:m=[24,11];break;case 7:m=[20,11];break;case 8:m=[32,11];break;case 9:m=[80,33];break;case 10:m=[18,11];break;case 11:m=[15,11];break;case 12:m=[64,33];break;case 13:m=[160,99];break;case 14:m=[4,3];break;case 15:m=[3,2];break;case 16:m=[2,1];break;case 255:m=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}m&&(S=m[0]/m[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:Math.ceil((16*(d+1)-2*y-2*b)*S),height:(2-p)*(h+1)*16-2*_-2*T}}},i.prototype=new s,e.exports={H264Stream:i,NalByteStream:r}},ed4d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&o["return"]&&o["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function r(e){return e&&e.__esModule?e:{default:e}}var a=n("be09"),s=r(a),o=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},l=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(e.segments)for(var r=n,a=void 0,l=0;l<e.segments.length;l++){var u=e.segments[l];if(a||(a=o(t,r+u.duration/2)),a){if("cueIn"in u){a.endTime=r,a.adEndTime=r,r+=u.duration,a=null;continue}if(r<a.endTime){r+=u.duration;continue}a.endTime+=u.duration}else if("cueOut"in u&&(a=new s["default"].VTTCue(r,r+u.duration,u.cueOut),a.adStartTime=r,a.adEndTime=r+parseFloat(u.cueOut),t.addCue(a)),"cueOutCont"in u){var c=void 0,d=void 0,h=u.cueOutCont.split("/").map(parseFloat),p=i(h,2);c=p[0],d=p[1],a=new s["default"].VTTCue(r,r+u.duration,""),a.adStartTime=r-c,a.adEndTime=a.adStartTime+d,t.addCue(a)}r+=u.duration}};t["default"]={updateAdCues:l,findAdCue:o},e.exports=t["default"]},ed6d:function(e,t,n){var i=n("4a4b");function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},ed7b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],i=t[4],r=n[4],a=void 0,s=void 0,o=void 0,l=[],u=[],c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,m=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(s=o=0;!i[s];s^=c||1,o=u[o]||1)for(p=o^o<<1^o<<2^o<<3^o<<4,p=p>>8^255&p^99,i[s]=p,r[p]=s,h=l[d=l[c=l[s]]],m=16843009*h^65537*d^257*c^16843008*s,f=257*l[p]^16843008*p,a=0;a<4;a++)t[a][s]=f=f<<24^f>>>8,n[a][p]=m=m<<24^m>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),n[a]=n[a].slice(0);return e},s=null,o=function(){function e(t){r(this,e),s||(s=a()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var n=void 0,i=void 0,o=void 0,l=void 0,u=void 0,c=this._tables[0][4],d=this._tables[1],h=t.length,p=1;if(4!==h&&6!==h&&8!==h)throw new Error("Invalid aes key size");for(l=t.slice(0),u=[],this._key=[l,u],n=h;n<4*h+28;n++)o=l[n-1],(n%h===0||8===h&&n%h===4)&&(o=c[o>>>24]<<24^c[o>>16&255]<<16^c[o>>8&255]<<8^c[255&o],n%h===0&&(o=o<<8^o>>>24^p<<24,p=p<<1^283*(p>>7))),l[n]=l[n-h]^o;for(i=0;n;i++,n--)o=l[3&i?n:n-4],u[i]=n<=4||i<4?o:d[0][c[o>>>24]]^d[1][c[o>>16&255]]^d[2][c[o>>8&255]]^d[3][c[255&o]]}return i(e,[{key:"decrypt",value:function(e,t,n,i,r,a){var s=this._key[1],o=e^s[0],l=i^s[1],u=n^s[2],c=t^s[3],d=void 0,h=void 0,p=void 0,f=s.length/4-2,m=void 0,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],S=v[4];for(m=0;m<f;m++)d=y[o>>>24]^b[l>>16&255]^_[u>>8&255]^T[255&c]^s[g],h=y[l>>>24]^b[u>>16&255]^_[c>>8&255]^T[255&o]^s[g+1],p=y[u>>>24]^b[c>>16&255]^_[o>>8&255]^T[255&l]^s[g+2],c=y[c>>>24]^b[o>>16&255]^_[l>>8&255]^T[255&u]^s[g+3],g+=4,o=d,l=h,u=p;for(m=0;m<4;m++)r[(3&-m)+a]=S[o>>>24]<<24^S[l>>16&255]<<16^S[u>>8&255]<<8^S[255&c]^s[g++],d=o,o=l,l=u,u=c,c=d}}]),e}();t["default"]=o,e.exports=t["default"]},eec7:function(e,t,n){"use strict";var i=n("e9b3"),r=n("8362"),a=n("6444"),s=n("53a8");function o(e,t){for(var n=0;n<e.length;n++)t(e[n])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function u(e,t,n){var i=e;return r(t)?(n=t,"string"===typeof e&&(i={uri:e})):i=s(t,{uri:e}),i.callback=n,i}function c(e,t,n){return t=u(e,t,n),d(t)}function d(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){4===p.readyState&&setTimeout(o,0)}function r(){var e=void 0;if(e=p.response?p.response:p.responseText||h(p),_)try{e=JSON.parse(e)}catch(t){}return e}function s(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,T)}function o(){if(!d){var t;clearTimeout(f),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=T,s=null;return 0!==t?(i={body:r(),statusCode:t,method:g,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(i.headers=a(p.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,i,i.body)}}var u,d,p=e.xhr||null;p||(p=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var f,m=p.url=e.uri||e.url,g=p.method=e.method||"GET",v=e.body||e.data,y=p.headers=e.headers||{},b=!!e.sync,_=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(_=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==g&&"HEAD"!==g&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),v=JSON.stringify(!0===e.json?v:e.json))),p.onreadystatechange=i,p.onload=o,p.onerror=s,p.onprogress=function(){},p.onabort=function(){d=!0},p.ontimeout=s,p.open(g,m,!b,e.username,e.password),b||(p.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}}),e.timeout)),p.setRequestHeader)for(u in y)y.hasOwnProperty(u)&&p.setRequestHeader(u,y[u]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(v||null),p}function h(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function p(){}e.exports=c,c.XMLHttpRequest=i.XMLHttpRequest||p,c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:i.XDomainRequest,o(["get","put","post","patch","head","delete"],(function(e){c["delete"===e?"del":e]=function(t,n,i){return n=u(t,n,i),n.method=e.toUpperCase(),d(n)}}))},ef34:function(e,t,n){(function(t){var i,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},a=n(1);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=i}).call(this,n("c8ba"))},f069:function(e,t,n){"use strict";var i=n("1c0b"),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},f0e2:function(e,t,n){"use strict";var i,r=n("be09"),a=n.n(r),s=n("ef34"),o=n.n(s),l=n("a559"),u=n.n(l),c=n("3c96"),d=n.n(c),h=n("55b5"),p=n.n(h),f=n("8c10"),m=n.n(f),g=n("df33"),v=n.n(g),y=n("3603"),b=n.n(y),_=n("2b8c"),T=n.n(_),S=n("b17c"),w=n.n(S),k=n("ed6d"),C=n.n(k),E=n("d136"),x=n.n(E),O="http://example.com",A=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=a.a.location&&a.a.location.href||"");var n="function"===typeof a.a.URL,i=/^\/\//.test(e),r=!a.a.location&&!/\/\//i.test(e);if(n?e=new a.a.URL(e,a.a.location||O):/\/\//i.test(e)||(e=x.a.buildAbsoluteURL(a.a.location&&a.a.location.href||"",e)),n){var s=new URL(t,e);return r?s.href.slice(O.length):i?s.href.slice(s.protocol.length):s.href}return x.a.buildAbsoluteURL(e,t)},P=A,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}(),L=n("ffdf"),D=function(e){function t(){var t;return t=e.call(this)||this,t.buffer="",t}p()(t,e);var n=t.prototype;return n.push=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),M=String.fromCharCode(9),j=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},R=function(){var e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},N=function(e){var t,n=e.split(R()),i={},r=n.length;while(r--)""!==n[r]&&(t=/([^=]*)=(.*)/.exec(n[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},B=function(e){function t(){var t;return t=e.call(this)||this,t.customParsers=[],t.tagMappers=[],t}p()(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;if(e=e.trim(),0!==e.length)if("#"===e[0]){var r=this.tagMappers.reduce((function(t,n){var i=n(e);return i===e?t:t.concat([i])}),[e]);r.forEach((function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e),t)return n=u()(j(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){var a=N(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=j(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=N(t[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),o={};s[0]&&(o.width=parseInt(s[0],10)),s[1]&&(o.height=parseInt(s[1],10)),n.attributes.RESOLUTION=o}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=N(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=N(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))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=N(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=N(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(M)),void i.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=N(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=j(n.attributes.BYTERANGE)),void i.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=N(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]))})),void i.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=N(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void i.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=N(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]}})),void i.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=N(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})}))}else this.trigger("data",{type:"uri",uri:e})},n.addParser=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){var s=n.exec(e);if(s)return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map,i=function(e){return t.test(e)?n(e):e};this.tagMappers.push(i)},t}(I),U=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},F=function(e){var t={};return Object.keys(e).forEach((function(n){t[U(n)]=e[n]})),t},$=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,l=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&t[a]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+o+")"}),t[a]=o),i&&!t.hasOwnProperty(s)&&(t[s]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})),i&&t[s]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+l+")."}),t[s]=l)}},H=function(e){function t(){var t;t=e.call(this)||this,t.lineStream=new D,t.parseStream=new B,t.lineStream.pipe(t.parseStream);var n,i,r=d()(t),a=[],s={},o=!1,l=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},h="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",p=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var f=0,m=0;return t.on("end",(function(){s.uri||!s.parts&&!s.preloadHints||(!s.map&&n&&(s.map=n),!s.key&&i&&(s.key=i),s.timeline||"number"!==typeof p||(s.timeline=p),t.manifest.preloadSegment=s)})),t.parseStream.on("data",(function(e){var t,d;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(s.byterange=t,t.length=e.length,"offset"in e||(e.offset=f)),"offset"in e&&(s.byterange=t,t.offset=e.offset),f=t.offset+t.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"})),e.duration>0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if(e.attributes.KEYFORMAT===h){var t=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];return-1===t.indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(L["a"])(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,p=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||c,e.attributes?(s.attributes||(s.attributes={}),u()(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],d={default:/yes/i.test(e.attributes.DEFAULT)},d.default?d.autoselect=!0:d.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(d.language=e.attributes.LANGUAGE),e.attributes.URI&&(d.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(d.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(d.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(d.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=d}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){p+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,$.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=F(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;o=!0;var n=this.manifest.segments.length,i=F(e.attributes);s.parts=s.parts||[],s.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=m),m=i.byterange.offset+i.byterange.length);var r=s.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=F(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),$.call(this,this.manifest),t.canSkipDateranges&&!t.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 t=this.manifest.segments.length,n=F(e.attributes),i=n.type&&"PART"===n.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?m:0,i&&(m=n.byterange.offset+n.byterange.length)));var r=s.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<s.preloadHints.length-1;a++){var o=s.preloadHints[a];o.type&&(o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=F(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];o&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=F(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),$.call(this,this.manifest)}}[e.tagType]||l).call(r)},uri:function(){s.uri=e.uri,a.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),i&&(s.key=i),s.timeline=p,n&&(s.map=n),m=0,s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}p()(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(I),V={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^/},z=["video","audio","text"],q=["Video","Audio","Text"],W=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){var i=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(n).toString(16)).slice(-2);return"avc1."+i+"00"+r})):e},G=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),z.forEach((function(i){var r=V[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var a=e.substring(0,r[1].length),s=e.replace(a,"");n.push({type:a,details:s,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n},X=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 G(r.playlists[0].attributes.CODECS)}return null},Y=function(e){return void 0===e&&(e=""),V.audio.test(e.trim().toLowerCase())},K=function(e){return void 0===e&&(e=""),V.text.test(e.trim().toLowerCase())},Q=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return W(e.trim())})),n="video";1===t.length&&Y(t[0])?n="audio":1===t.length&&K(t[0])&&(n="application");var i="mp4";return t.every((function(e){return V.mp4.test(e)}))?i="mp4":t.every((function(e){return V.webm.test(e)}))?i="webm":t.every((function(e){return V.ogg.test(e)}))&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}},J=function(e){return void 0===e&&(e=""),a.a.MediaSource&&a.a.MediaSource.isTypeSupported&&a.a.MediaSource.isTypeSupported(Q(e))||!1},Z=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<q.length;t++){var n=q[t];if(V["muxer"+n].test(e))return!0}return!1}))},ee="mp4a.40.2",te="avc1.4d400d",ne=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,ie=/^application\/dash\+xml/i,re=function(e){return ne.test(e)?"hls":ie.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},ae=n("210b"),se=function(e){return!!e&&"object"===typeof e},oe=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return"object"!==typeof n||Object.keys(n).forEach((function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):se(t[i])&&se(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]})),t}),{})},le=function(e){return Object.keys(e).map((function(t){return e[t]}))},ue=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n},ce=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},de=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},he=function(e,t){return e.reduce((function(e,n,i){return n[t]&&e.push(i),e}),[])},pe={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},fe=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,r=void 0===i?"":i,a=e.range,s=void 0===a?"":a,o=e.indexRange,l=void 0===o?"":o,u={uri:r,resolvedUri:P(n||"",r)};if(s||l){var c=s||l,d=c.split("-"),h=parseInt(d[0],10),p=parseInt(d[1],10);u.byterange={length:p-h+1,offset:h}}return u},me=function(e){var t=e.offset+e.length-1;return e.offset+"-"+t},ge=function(e){return e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},ve={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,s=ge(e.endNumber),o=t/i;return"number"===typeof s?{start:0,end:s}:"number"===typeof a?{start:0,end:a/o}:{start:0,end:r/o}},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.start,l=void 0===o?0:o,u=e.minimumUpdatePeriod,c=void 0===u?0:u,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=ge(e.endNumber),f=(t+n)/1e3,m=i+l,g=f+c,v=g-m,y=Math.ceil(v*a/s),b=Math.floor((f-m-h)*a/s),_=Math.floor((f-m)*a/s);return{start:Math.max(0,b),end:"number"===typeof p?p:Math.min(y,_)}}},ye=function(e){return function(t,n){var i=e.duration,r=e.timescale,a=void 0===r?1:r,s=e.periodIndex,o=e.startNumber,l=void 0===o?1:o;return{number:l+t,duration:i/a,timeline:s,time:n*i}}},be=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,s=e.sourceDuration,o=ve[t](e),l=o.start,u=o.end,c=ue(l,u).map(ye(e));if("static"===t){var d=c.length-1,h="number"===typeof a?a:s;c[d].duration=h-n/r*d}return c},_e=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,s=void 0===a?"":a,o=e.duration;if(!t)throw new Error(pe.NO_BASE_URL);var l=fe({baseUrl:t,source:i.sourceURL,range:i.range}),u=fe({baseUrl:t,source:t,indexRange:s});if(u.map=l,o){var c=be(e);c.length&&(u.duration=c[0].duration,u.timeline=c[0].timeline)}else r&&(u.duration=r,u.timeline=0);return u.number=0,[u]},Te=function(e,t,n){for(var i=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,o=s.offset+s.length,l=t.timescale,u=t.references.filter((function(e){return 1!==e.referenceType})),c=[],d=e.endList?"static":"dynamic",h=o+t.firstOffset,p=0;p<u.length;p++){var f=t.references[p],m=f.referencedSize,g=f.subsegmentDuration,v=h+m-1,y=h+"-"+v,b={baseUrl:n,timescale:l,timeline:a,periodIndex:a,duration:g,sourceDuration:r,indexRange:y,type:d},_=_e(b)[0];i&&(_.map=i),c.push(_),h+=m}return e.segments=c,e},Se=function(e){return e&&e.uri+"-"+me(e.byterange)},we=function(e){var t=le(e.reduce((function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");e[i]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):e[i]=t;return e}),{}));return t.map((function(e){return e.discontinuityStarts=he(e.segments,"discontinuity"),e}))},ke=function(e,t){var n=Se(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&Te(e,i,e.sidx.resolvedUri),e},Ce=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=ke(e[n],t);return e},Ee=function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,s={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:r,mediaSequence:r.length?r[0].number:1};return i.contentProtection&&(s.contentProtection=i.contentProtection),a&&(s.sidx=a),t&&(s.attributes.AUDIO="audio",s.attributes.SUBTITLES="subs"),s},xe=function(e){var t,n=e.attributes,i=e.segments;"undefined"===typeof i&&(i=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var r=(t={NAME:n.id,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t);return n.codecs&&(r.CODECS=n.codecs),{attributes:r,uri:"",endList:"static"===n.type,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1}},Oe=function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce((function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"",o=r.attributes.label||"main";if(s&&!r.attributes.label){var l=a?" ("+a+")":"";o=""+r.attributes.lang+l}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=ke(Ee(r,n),t);return e[o].playlists.push(u),"undefined"===typeof i&&"main"===a&&(i=r,i.default=!0),e}),{});if(!i){var a=Object.keys(r)[0];r[a].default=!0}return r},Ae=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(ke(xe(n),t)),e}),{})},Pe=function(e){return e.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):e}),{})},Ie=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(a.contentProtection=n.contentProtection),r&&(a.sidx=r),a},Le=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},De=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Me=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},je=function(e,t,n){var i;if(void 0===n&&(n={}),!e.length)return{};var r=e[0].attributes,a=r.sourceDuration,s=r.type,o=r.suggestedPresentationDelay,l=r.minimumUpdatePeriod,u=we(e.filter(Le)).map(Ie),c=we(e.filter(De)),d=e.filter(Me),h=e.map((function(e){return e.attributes.captionServices})).filter(Boolean),p={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:a,playlists:Ce(u,n)};l>=0&&(p.minimumUpdatePeriod=1e3*l),t&&(p.locations=t),"dynamic"===s&&(p.suggestedPresentationDelay=o);var f=0===p.playlists.length;return c.length&&(p.mediaGroups.AUDIO.audio=Oe(c,n,f)),d.length&&(p.mediaGroups.SUBTITLES.subs=Ae(d,n)),h.length&&(p.mediaGroups["CLOSED-CAPTIONS"].cc=Pe(h)),p},Re=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,l=e.start,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=(i+r)/1e3,p=a+u,f=h+d,m=f-p;return Math.ceil((m*o-t)/n)},Ne=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,l=e.timescale,u=void 0===l?1:l,c=e.startNumber,d=void 0===c?1:c,h=e.periodIndex,p=[],f=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,b=g.t||0;f<0&&(f=b),b&&b>f&&(f=b);var _=void 0;if(y<0){var T=m+1;_=T===t.length?"dynamic"===n&&r>0&&s.indexOf("$Number$")>0?Re(e,f,v):(o*u-f)/v:(t[T].t-f)/v}else _=y+1;var S=d+p.length+_,w=d+p.length;while(w<S)p.push({number:w,duration:v/u,time:f,timeline:h}),f+=v,w++}return p},Be=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Ue=function(e){return function(t,n,i,r){if("$$"===t)return"$";if("undefined"===typeof e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}},Fe=function(e,t){return e.replace(Be,Ue(t))},$e=function(e,t){return e.duration||t?e.duration?be(e):Ne(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]},He=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,a=fe({baseUrl:e.baseUrl,source:Fe(r.sourceURL,n),range:r.range}),s=$e(e,t);return s.map((function(t){n.Number=t.number,n.Time=t.time;var i=Fe(e.media||"",n),r=e.timescale||1,s=e.presentationTimeOffset||0,o=e.periodStart+(t.time-s)/r,l={uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:P(e.baseUrl||"",i),map:a,number:t.number,presentationTime:o};return l}))},Ve=function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=fe({baseUrl:n,source:r.sourceURL,range:r.range}),s=fe({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=a,s},ze=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(pe.SEGMENT_TIME_UNSPECIFIED);var s,o=r.map((function(t){return Ve(e,t)}));n&&(s=be(e)),t&&(s=Ne(e,t));var l=s.map((function(t,n){if(o[n]){var i=o[n],r=e.timescale||1,s=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-s)/r,i}})).filter((function(e){return e}));return l},qe=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=He,t=oe(i,r.template)):r.base?(n=_e,t=oe(i,r.base)):r.list&&(n=ze,t=oe(i,r.list));var a={attributes:i};if(!n)return a;var s=n(t,r.segmentTimeline);if(t.duration){var o=t,l=o.duration,u=o.timescale,c=void 0===u?1:u;t.duration=l/c}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},We=function(e){return e.map(qe)},Ge=function(e,t){return de(e.childNodes).filter((function(e){var n=e.tagName;return n===t}))},Xe=function(e){return e.textContent.trim()},Ye=function(e){var t=31536e3,n=2592e3,i=86400,r=3600,a=60,s=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,o=s.exec(e);if(!o)return 0;var l=o.slice(1),u=l[0],c=l[1],d=l[2],h=l[3],p=l[4],f=l[5];return parseFloat(u||0)*t+parseFloat(c||0)*n+parseFloat(d||0)*i+parseFloat(h||0)*r+parseFloat(p||0)*a+parseFloat(f||0)},Ke=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},Qe={mediaPresentationDuration:function(e){return Ye(e)},availabilityStartTime:function(e){return Ke(e)/1e3},minimumUpdatePeriod:function(e){return Ye(e)},suggestedPresentationDelay:function(e){return Ye(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Ye(e)},start:function(e){return Ye(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},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)?Ye(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},Je=function(e){return e&&e.attributes?de(e.attributes).reduce((function(e,t){var n=Qe[t.name]||Qe.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},Ze={"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"},et=function(e,t){return t.length?ce(e.map((function(e){return t.map((function(t){return P(e,Xe(t))}))}))):e},tt=function(e){var t=Ge(e,"SegmentTemplate")[0],n=Ge(e,"SegmentList")[0],i=n&&Ge(n,"SegmentURL").map((function(e){return oe({tag:"SegmentURL"},Je(e))})),r=Ge(e,"SegmentBase")[0],a=n||t,s=a&&Ge(a,"SegmentTimeline")[0],o=n||r||t,l=o&&Ge(o,"Initialization")[0],u=t&&Je(t);u&&l?u.initialization=l&&Je(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var c={template:u,segmentTimeline:s&&Ge(s,"S").map((function(e){return Je(e)})),list:n&&oe(Je(n),{segmentUrls:i,initialization:Je(l)}),base:r&&oe(Je(r),{initialization:Je(l)})};return Object.keys(c).forEach((function(e){c[e]||delete c[e]})),c},nt=function(e,t,n){return function(i){var r=Ge(i,"BaseURL"),a=et(t,r),s=oe(e,Je(i)),o=tt(i);return a.map((function(e){return{segmentInfo:oe(n,o),attributes:oe(s,{baseUrl:e})}}))}},it=function(e){return e.reduce((function(e,t){var n=Je(t),i=Ze[n.schemeIdUri];if(i){e[i]={attributes:n};var r=Ge(t,"cenc:pssh")[0];if(r){var a=Xe(r),s=a&&Object(L["a"])(a);e[i].pssh=s}}return e}),{})},rt=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){var t=e.value.split(";");return t.map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}))}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){var n=e.value.split(";");return n.map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),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}))}},at=function(e,t,n){return function(i){var r=Je(i),a=et(t,Ge(i,"BaseURL")),s=Ge(i,"Role")[0],o={role:Je(s)},l=oe(e,r,o),u=Ge(i,"Accessibility")[0],c=rt(Je(u));c&&(l=oe(l,{captionServices:c}));var d=Ge(i,"Label")[0];if(d&&d.childNodes.length){var h=d.childNodes[0].nodeValue.trim();l=oe(l,{label:h})}var p=it(Ge(i,"ContentProtection"));Object.keys(p).length&&(l=oe(l,{contentProtection:p}));var f=tt(i),m=Ge(i,"Representation"),g=oe(n,f);return ce(m.map(nt(l,a,g)))}},st=function(e,t){return function(n,i){var r=et(t,Ge(n.node,"BaseURL")),s=parseInt(n.attributes.id,10),o=a.a.isNaN(s)?i:s,l=oe(e,{periodIndex:o,periodStart:n.attributes.start});"number"===typeof n.attributes.duration&&(l.periodDuration=n.attributes.duration);var u=Ge(n.node,"AdaptationSet"),c=tt(n.node);return ce(u.map(at(l,r,c)))}},ot=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},lt=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,s=void 0===a?Date.now():a,o=n.clientOffset,l=void 0===o?0:o,u=Ge(e,"Period");if(!u.length)throw new Error(pe.INVALID_NUMBER_OF_PERIOD);var c=Ge(e,"Location"),d=Je(e),h=et([r],Ge(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=l,c.length&&(d.locations=c.map(Xe));var p=[];return u.forEach((function(e,t){var n=Je(e),i=p[t-1];n.start=ot({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:ce(p.map(st(d,h)))}},ut=function(e){if(""===e)throw new Error(pe.DASH_EMPTY_MANIFEST);var t,n,i=new ae["DOMParser"];try{t=i.parseFromString(e,"application/xml"),n=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(r){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(pe.DASH_INVALID_XML);return n},ct=function(e){var t=Ge(e,"UTCTiming")[0];if(!t)return null;var n=Je(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;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(pe.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},dt=function(e,t){void 0===t&&(t={});var n=lt(ut(e),t),i=We(n.representationInfo);return je(i,n.locations,t.sidxMapping)},ht=function(e){return ct(ut(e))},pt=n("81c0"),ft=n.n(pt),mt=function(e){return e.toString(2).length},gt=function(e){return Math.ceil(mt(e)/8)},vt=function(e){return ArrayBuffer.isView(e)},yt=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||vt(e)||e instanceof 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))},bt=a.a.BigInt||Number,_t=[bt("0x1"),bt("0x100"),bt("0x10000"),bt("0x1000000"),bt("0x100000000"),bt("0x10000000000"),bt("0x1000000000000"),bt("0x100000000000000"),bt("0x10000000000000000")],Tt=(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}(),function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,s=void 0!==a&&a;e=yt(e);var o=s?"reduce":"reduceRight",l=e[o]?e[o]:Array.prototype[o],u=l.call(e,(function(t,n,i){var r=s?i:Math.abs(i+1-e.length);return t+bt(n)*_t[r]}),bt(0));if(r){var c=_t[e.length]/bt(2)-bt(1);u=bt(u),u>c&&(u-=c,u-=c,u-=bt(2))}return Number(u)}),St=function(e,t){var n=void 0===t?{}:t,i=n.le,r=void 0!==i&&i;("bigint"!==typeof e&&"number"!==typeof e||"number"===typeof e&&e!==e)&&(e=0),e=bt(e);for(var a=gt(e),s=new Uint8Array(new ArrayBuffer(a)),o=0;o<a;o++){var l=r?o:Math.abs(o+1-s.length);s[l]=Number(e/_t[o]&bt(255)),e<0&&(s[l]=Math.abs(~s[l]),s[l]-=0===o?1:2)}return s},wt=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,yt(e));try{return decodeURIComponent(escape(t))}catch(n){}return t},kt=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},Ct=function(){for(var e=arguments.length,t=new 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})),t.length<=1)return yt(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=yt(e),r.set(e,a),a+=e.byteLength})),r},Et=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=yt(e),t=yt(t);var l=t.every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,(function(t,n){var i=o[n]?o[n]&e[a+n]:e[a+n];return t===i}))},xt=yt([73,68,51]),Ot=function(e,t){void 0===t&&(t=0),e=yt(e);var n=e[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],r=(16&n)>>4;return r?i+20:i+10},At=function e(t,n){return void 0===n&&(n=0),t=yt(t),t.length-n<10||!Et(t,xt,{offset:n})?n:(n+=Ot(t,n),e(t,n))},Pt=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"===typeof e?kt(e):e}),It=function(e){return Array.isArray(e)?e.map((function(e){return Pt(e)})):[Pt(e)]},Lt=function(e){e=yt(e);var t=[],n=0;while(e.length>n){var r=e[n],a=0,s=0;s++;var o=e[s];s++;while(128&o)a=(127&o)<<7,o=e[s],s++;a+=127&o;for(var l=0;l<i.length;l++){var u=i[l],c=u.id,d=u.parser;if(r===c){t.push(d(e.subarray(s,s+a)));break}}n+=a+s}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=wt(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=Lt(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={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:Lt(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var Dt=function e(t,n,i){void 0===i&&(i=!1),n=It(n),t=yt(t);var r=[];if(!n.length)return r;var a=0;while(a<t.length){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,o=t.subarray(a+4,a+8);if(0===s)break;var l=a+s;if(l>t.length){if(i)break;l=t.length}var u=t.subarray(a+8,l);Et(o,n[0])&&(1===n.length?r.push(u):r.push.apply(r,e(u,n.slice(1),i))),a=l}return r},Mt={EBML:yt([26,69,223,163]),DocType:yt([66,130]),Segment:yt([24,83,128,103]),SegmentInfo:yt([21,73,169,102]),Tracks:yt([22,84,174,107]),Track:yt([174]),TrackNumber:yt([215]),DefaultDuration:yt([35,227,131]),TrackEntry:yt([174]),TrackType:yt([131]),FlagDefault:yt([136]),CodecID:yt([134]),CodecPrivate:yt([99,162]),VideoTrack:yt([224]),AudioTrack:yt([225]),Cluster:yt([31,67,182,117]),Timestamp:yt([231]),TimestampScale:yt([42,215,177]),BlockGroup:yt([160]),BlockDuration:yt([155]),Block:yt([161]),SimpleBlock:yt([163])},jt=[128,64,32,16,8,4,2,1],Rt=function(e){for(var t=1,n=0;n<jt.length;n++){if(e&jt[n])break;t++}return t},Nt=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=Rt(e[t]),a=e.subarray(t,t+r);return n&&(a=Array.prototype.slice.call(e,t,t+r),a[0]^=jt[r-1]),{length:r,value:Tt(a,{signed:i}),bytes:a}},Bt=function e(t){return"string"===typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"===typeof t?St(t):t},Ut=function(e){return Array.isArray(e)?e.map((function(e){return Bt(e)})):[Bt(e)]},Ft=function e(t,n,i){if(i>=n.length)return n.length;var r=Nt(n,i,!1);if(Et(t.bytes,r.bytes))return i;var a=Nt(n,i+r.length);return e(t,n,i+a.length+a.value+r.length)},$t=function e(t,n){n=Ut(n),t=yt(t);var i=[];if(!n.length)return i;var r=0;while(r<t.length){var a=Nt(t,r,!1),s=Nt(t,r+a.length),o=r+a.length+s.length;127===s.value&&(s.value=Ft(a,t,o),s.value!==t.length&&(s.value-=o));var l=o+s.value>t.length?t.length:o+s.value,u=t.subarray(o,l);Et(n[0],a.bytes)&&(1===n.length?i.push(u):i=i.concat(e(u,n.slice(1))));var c=a.length+s.length+u.length;r+=c}return i},Ht=yt([0,0,0,1]),Vt=yt([0,0,1]),zt=yt([0,0,3]),qt=function(e){var t=[],n=1;while(n<e.length-2)Et(e.subarray(n,n+3),zt)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===t[0]&&(a++,t.shift()),r[n]=e[a];return r},Wt=function(e,t,n,i){void 0===i&&(i=1/0),e=yt(e),n=[].concat(n);var r,a=0,s=0;while(a<e.length&&(s<i||r)){var o=void 0;if(Et(e.subarray(a),Ht)?o=4:Et(e.subarray(a),Vt)&&(o=3),o){if(s++,r)return qt(e.subarray(r,a));var l=void 0;"h264"===t?l=31&e[a+o]:"h265"===t&&(l=e[a+o]>>1&63),-1!==n.indexOf(l)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)},Gt=function(e,t,n){return Wt(e,"h264",t,n)},Xt=function(e,t,n){return Wt(e,"h265",t,n)},Yt={webm:yt([119,101,98,109]),matroska:yt([109,97,116,114,111,115,107,97]),flac:yt([102,76,97,67]),ogg:yt([79,103,103,83]),ac3:yt([11,119]),riff:yt([82,73,70,70]),avi:yt([65,86,73]),wav:yt([87,65,86,69]),"3gp":yt([102,116,121,112,51,103]),mp4:yt([102,116,121,112]),fmp4:yt([115,116,121,112]),mov:yt([102,116,121,112,113,116]),moov:yt([109,111,111,118]),moof:yt([109,111,111,102])},Kt={aac:function(e){var t=At(e);return Et(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=At(e);return Et(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=$t(e,[Mt.EBML,Mt.DocType])[0];return Et(t,Yt.webm)},mkv:function(e){var t=$t(e,[Mt.EBML,Mt.DocType])[0];return Et(t,Yt.matroska)},mp4:function(e){return!Kt["3gp"](e)&&!Kt.mov(e)&&(!(!Et(e,Yt.mp4,{offset:4})&&!Et(e,Yt.fmp4,{offset:4}))||(!(!Et(e,Yt.moof,{offset:4})&&!Et(e,Yt.moov,{offset:4}))||void 0))},mov:function(e){return Et(e,Yt.mov,{offset:4})},"3gp":function(e){return Et(e,Yt["3gp"],{offset:4})},ac3:function(e){var t=At(e);return Et(e,Yt.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(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=At(e);return Et(e,Yt.flac,{offset:t})},ogg:function(e){return Et(e,Yt.ogg)},avi:function(e){return Et(e,Yt.riff)&&Et(e,Yt.avi,{offset:8})},wav:function(e){return Et(e,Yt.riff)&&Et(e,Yt.wav,{offset:8})},h264:function(e){return Gt(e,7,3).length},h265:function(e){return Xt(e,[32,33],3).length}},Qt=Object.keys(Kt).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);Qt.forEach((function(e){var t=Kt[e];Kt[e]=function(e){return t(yt(e))}}));for(var Jt,Zt=Kt,en=function(e){e=yt(e);for(var t=0;t<Qt.length;t++){var n=Qt[t];if(Zt[n](e))return n}return""},tn=function(e){return Dt(e,["moof"]).length>0},nn=n("36c6"),rn="7.15.4",an={},sn=function(e,t){return an[e]=an[e]||[],t&&(an[e]=an[e].concat(t)),an[e]},on=function(e,t){sn(e,t)},ln=function(e,t){var n=sn(e).indexOf(t);return!(n<=-1)&&(an[e]=an[e].slice(),an[e].splice(n,1),!0)},un=function(e,t){sn(e,[].concat(t).map((function(t){var n=function n(){return ln(e,n),t.apply(void 0,arguments)};return n})))},cn={prefixed:!0},dn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],hn=dn[0],pn=0;pn<dn.length;pn++)if(dn[pn][1]in o.a){Jt=dn[pn];break}if(Jt){for(var fn=0;fn<Jt.length;fn++)cn[hn[fn]]=Jt[fn];cn.prefixed=Jt[0]!==hn[0]}var mn=[],gn=function(e,t){return function(n,i,r){var s=t.levels[i],o=new RegExp("^("+s+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),mn){mn.push([].concat(r));var l=mn.length-1e3;mn.splice(0,l>0?l:0)}if(a.a.console){var u=a.a.console[n];u||"debug"!==n||(u=a.a.console.info||a.a.console.log),u&&s&&o.test(n)&&u[Array.isArray(r)?"apply":"call"](a.a.console,r)}}};function vn(e){var t,n="info",i=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];t("log",n,i)};return t=gn(e,i),i.createLogger=function(t){return vn(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(e){if("string"===typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},i.history=function(){return mn?[].concat(mn):[]},i.history.filter=function(e){return(mn||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){mn&&(mn.length=0)},i.history.disable=function(){null!==mn&&(mn.length=0,mn=null)},i.history.enable=function(){null===mn&&(mn=[])},i.error=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("error",n,i)},i.warn=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("warn",n,i)},i.debug=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("debug",n,i)},i}var yn=vn("VIDEOJS"),bn=yn.createLogger,_n=Object.prototype.toString,Tn=function(e){return Cn(e)?Object.keys(e):[]};function Sn(e,t){Tn(e).forEach((function(n){return t(e[n],n)}))}function wn(e,t,n){return void 0===n&&(n=0),Tn(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function kn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?u.a.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&Sn(t,(function(t,n){e[n]=t}))})),e)}function Cn(e){return!!e&&"object"===typeof e}function En(e){return Cn(e)&&"[object Object]"===_n.call(e)&&e.constructor===Object}function xn(e,t){if(!e||!t)return"";if("function"===typeof a.a.getComputedStyle){var n;try{n=a.a.getComputedStyle(e)}catch(i){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var On=a.a.navigator&&a.a.navigator.userAgent||"",An=/AppleWebKit\/([\d.]+)/i.exec(On),Pn=An?parseFloat(An.pop()):null,In=/iPod/i.test(On),Ln=function(){var e=On.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Dn=/Android/i.test(On),Mn=function(){var e=On.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}(),jn=Dn&&Mn<5&&Pn<537,Rn=/Firefox/i.test(On),Nn=/Edg/i.test(On),Bn=!Nn&&(/Chrome/i.test(On)||/CriOS/i.test(On)),Un=function(){var e=On.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Fn=function(){var e=/MSIE\s(\d+)\.\d/.exec(On),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(On)&&/rv:11.0/.test(On)&&(t=11),t}(),$n=/Safari/i.test(On)&&!Bn&&!Dn&&!Nn,Hn=/Windows/i.test(On),Vn=Boolean(Jn()&&("ontouchstart"in a.a||a.a.navigator.maxTouchPoints||a.a.DocumentTouch&&a.a.document instanceof a.a.DocumentTouch)),zn=/iPad/i.test(On)||$n&&Vn&&!/iPhone/i.test(On),qn=/iPhone/i.test(On)&&!zn,Wn=qn||zn||In,Gn=($n||Wn)&&!Bn,Xn=Object.freeze({__proto__:null,IS_IPOD:In,IOS_VERSION:Ln,IS_ANDROID:Dn,ANDROID_VERSION:Mn,IS_NATIVE_ANDROID:jn,IS_FIREFOX:Rn,IS_EDGE:Nn,IS_CHROME:Bn,CHROME_VERSION:Un,IE_VERSION:Fn,IS_SAFARI:$n,IS_WINDOWS:Hn,TOUCH_ENABLED:Vn,IS_IPAD:zn,IS_IPHONE:qn,IS_IOS:Wn,IS_ANY_SAFARI:Gn});function Yn(e){return"string"===typeof e&&Boolean(e.trim())}function Kn(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Qn(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function Jn(){return o.a===a.a.document}function Zn(e){return Cn(e)&&1===e.nodeType}function ei(){try{return a.a.parent!==a.a.self}catch(e){return!0}}function ti(e){return function(t,n){if(!Yn(t))return o.a[e](null);Yn(n)&&(n=o.a.querySelector(n));var i=Zn(n)?n:o.a;return i[e]&&i[e](t)}}function ni(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=o.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(yn.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?ii(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Si(r,i),r}function ii(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function ri(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ai(e,t){return Kn(t),e.classList?e.classList.contains(t):Qn(t).test(e.className)}function si(e,t){return e.classList?e.classList.add(t):ai(e,t)||(e.className=(e.className+" "+t).trim()),e}function oi(e,t){return e?(e.classList?e.classList.remove(t):(Kn(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(yn.warn("removeClass was called with an element that doesn't exist"),null)}function li(e,t,n){var i=ai(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?si(e,t):oi(e,t),e}function ui(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function ci(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;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function di(e,t){return e.getAttribute(t)}function hi(e,t,n){e.setAttribute(t,n)}function pi(e,t){e.removeAttribute(t)}function fi(){o.a.body.focus(),o.a.onselectstart=function(){return!1}}function mi(){o.a.onselectstart=function(){return!0}}function gi(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(xn(e,"height"))),n.width||(n.width=parseFloat(xn(e,"width"))),n}}function vi(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;while(e.offsetParent&&e!==o.a[cn.fullscreenElement])i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function yi(e,t){var n={x:0,y:0};if(Wn){var i=e;while(i&&"html"!==i.nodeName.toLowerCase()){var r=xn(i,"transform");if(/^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={},l=vi(t.target),u=vi(e),c=u.width,d=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,Wn&&(p-=n.x,h-=n.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,p/c)),o}function bi(e){return Cn(e)&&3===e.nodeType}function _i(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ti(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),Zn(e)||bi(e)?e:"string"===typeof e&&/\S/.test(e)?o.a.createTextNode(e):void 0})).filter((function(e){return e}))}function Si(e,t){return Ti(t).forEach((function(t){return e.appendChild(t)})),e}function wi(e,t){return Si(_i(e),t)}function ki(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))}var Ci,Ei=ti("querySelector"),xi=ti("querySelectorAll"),Oi=Object.freeze({__proto__:null,isReal:Jn,isEl:Zn,isInFrame:ei,createEl:ni,textContent:ii,prependTo:ri,hasClass:ai,addClass:si,removeClass:oi,toggleClass:li,setAttributes:ui,getAttributes:ci,getAttribute:di,setAttribute:hi,removeAttribute:pi,blockTextSelection:fi,unblockTextSelection:mi,getBoundingClientRect:gi,findPosition:vi,getPointerPosition:yi,isTextNode:bi,emptyEl:_i,normalizeContent:Ti,appendContent:Si,insertContent:wi,isSingleLeftClick:ki,$:Ei,$$:xi}),Ai=!1,Pi=function(){if(!1!==Ci.options.autoSetup){var e=Array.prototype.slice.call(o.a.getElementsByTagName("video")),t=Array.prototype.slice.call(o.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(o.a.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var s=i[r];if(!s||!s.getAttribute){Ii(1);break}if(void 0===s.player){var l=s.getAttribute("data-setup");null!==l&&Ci(s)}}else Ai||Ii(1)}};function Ii(e,t){Jn()&&(t&&(Ci=t),a.a.setTimeout(Pi,e))}function Li(){Ai=!0,a.a.removeEventListener("load",Li)}Jn()&&("complete"===o.a.readyState?Li():a.a.addEventListener("load",Li));var Di,Mi=function(e){var t=o.a.createElement("style");return t.className=e,t},ji=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Ri=3,Ni=Ri;function Bi(){return Ni++}a.a.WeakMap||(Di=function(){function e(){this.vdata="vdata"+Math.floor(a.a.performance&&a.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Bi();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];yn("We have no data for this element",e)},t.has=function(e){var t=e[this.vdata];return t in this.data},t["delete"]=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Ui,Fi=a.a.WeakMap?new WeakMap:new Di;function $i(e,t){if(Fi.has(e)){var n=Fi.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&&Fi["delete"](e)}}function Hi(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function Vi(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||a.a.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||o.a),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 s=o.a.documentElement,l=o.a.body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.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}var zi=function(){if("boolean"!==typeof Ui){Ui=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Ui=!0}});a.a.addEventListener("test",null,e),a.a.removeEventListener("test",null,e)}catch(t){}}return Ui},qi=["touchstart","touchmove"];function Wi(e,t,n){if(Array.isArray(t))return Hi(Wi,e,t,n);Fi.has(e)||Fi.set(e,{});var i=Fi.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Bi()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=Vi(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;try{a[s].call(e,t,n)}catch(l){yn.error(l)}}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;zi()&&qi.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function Gi(e,t,n){if(Fi.has(e)){var i=Fi.get(e);if(i.handlers){if(Array.isArray(t))return Hi(Gi,e,t,n);var r=function(e,t){i.handlers[t]=[],$i(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);$i(e,t)}else r(e,t)}else for(var o in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},o)&&r(e,o)}}}function Xi(e,t,n){var i=Fi.has(e)?Fi.get(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Vi(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)Xi.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Fi.has(t.target)||Fi.set(t.target,{});var a=Fi.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 Yi(e,t,n){if(Array.isArray(t))return Hi(Yi,e,t,n);var i=function i(){Gi(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Bi(),Wi(e,t,i)}function Ki(e,t,n){var i=function i(){Gi(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Bi(),Wi(e,t,i)}var Qi,Ji=Object.freeze({__proto__:null,fixEvent:Vi,on:Wi,off:Gi,trigger:Xi,one:Yi,any:Ki}),Zi=30,er=function(e,t,n){t.guid||(t.guid=Bi());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},tr=function(e,t){var n=a.a.performance.now(),i=function(){var i=a.a.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},nr=function(e,t,n,i){var r;void 0===i&&(i=a.a);var s=function(){i.clearTimeout(r),r=null},o=function(){var a=this,s=arguments,o=function(){r=null,o=null,n||e.apply(a,s)};!r&&n&&e.apply(a,s),i.clearTimeout(r),r=i.setTimeout(o,t)};return o.cancel=s,o},ir=function(){};ir.prototype.allowedEvents_={},ir.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Wi(this,e,t),this.addEventListener=n},ir.prototype.addEventListener=ir.prototype.on,ir.prototype.off=function(e,t){Gi(this,e,t)},ir.prototype.removeEventListener=ir.prototype.off,ir.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Yi(this,e,t),this.addEventListener=n},ir.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ki(this,e,t),this.addEventListener=n},ir.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=Vi(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Xi(this,e)},ir.prototype.dispatchEvent=ir.prototype.trigger,ir.prototype.queueTrigger=function(e){var t=this;Qi||(Qi=new Map);var n=e.type||e,i=Qi.get(this);i||(i=new Map,Qi.set(this,i));var r=i.get(n);i["delete"](n),a.a.clearTimeout(r);var s=a.a.setTimeout((function(){0===i.size&&(i=null,Qi["delete"](t)),t.trigger(e)}),0);i.set(n,s)};var rr=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:typeof e},ar=function(e){return e instanceof ir||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},sr=function(e,t){ar(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},or=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},lr=function(e,t,n){if(!e||!e.nodeName&&!ar(e))throw new Error("Invalid target for "+rr(t)+"#"+n+"; must be a DOM node or evented object.")},ur=function(e,t,n){if(!or(e))throw new Error("Invalid event type for "+rr(t)+"#"+n+"; must be a non-empty string or array.")},cr=function(e,t,n){if("function"!==typeof e)throw new Error("Invalid listener for "+rr(t)+"#"+n+"; must be a function.")},dr=function(e,t,n){var i,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),lr(i,e,n),ur(r,e,n),cr(a,e,n),a=er(e,a),{isTargetingSelf:s,target:i,type:r,listener:a}},hr=function(e,t,n,i){lr(e,e,t),e.nodeName?Ji[t](e,n,i):e[t](n,i)},pr={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=dr(this,n,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(hr(s,"on",o,l),!a){var u=function(){return e.off(s,o,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,hr(this,"on","dispose",u),hr(s,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=dr(this,n,"one"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)hr(s,"one",o,l);else{var u=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};u.guid=l.guid,hr(s,"one",o,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=dr(this,n,"any"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)hr(s,"any",o,l);else{var u=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};u.guid=l.guid,hr(s,"any",o,u)}},off:function(e,t,n){if(!e||or(e))Gi(this.eventBusEl_,e,t);else{var i=e,r=t;lr(i,this,"off"),ur(r,this,"off"),cr(n,this,"off"),n=er(this,n),this.off("dispose",n),i.nodeName?(Gi(i,r,n),Gi(i,"dispose",n)):ar(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){lr(this.eventBusEl_,this,"trigger");var n=e&&"string"!==typeof e?e.type:e;if(!or(n)){var i="Invalid event type for "+rr(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||yn).error(i)}return Xi(this.eventBusEl_,e,t)}};function fr(e,t){void 0===t&&(t={});var n=t,i=n.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=ni("span",{className:"vjs-event-bus"});return kn(e,pr),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&Fi.has(e)&&Fi["delete"](e)})),a.a.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var mr={state:{},setState:function(e){var t,n=this;return"function"===typeof e&&(e=e()),Sn(e,(function(e,i){n.state[i]!==e&&(t=t||{},t[i]={from:n.state[i],to:e}),n.state[i]=e})),t&&ar(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function gr(e,t){return kn(e,mr),e.state=kn({},e.state,t),"function"===typeof e.handleStateChanged&&ar(e)&&e.on("statechanged",e.handleStateChanged),e}var vr=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},yr=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},br=function(e,t){return yr(e)===yr(t)};function _r(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&Sn(t,(function(t,n){En(t)?(En(e[n])||(e[n]={}),e[n]=_r(e[n],t)):e[n]=t}))})),e}var Tr=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t["delete"]=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Sr=a.a.Map?a.a.Map:Tr,wr=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t["delete"]=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),kr=a.a.Set?a.a.Set:wr,Cr=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=_r({},this.options_),t=this.options_=_r(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+Bi()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(fr(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),gr(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new kr,this.setIntervalIds_=new kr,this.rafIds_=new kr,this.namedRafs_=new Sr,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=_r(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return ni(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var 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],l=n;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new 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||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"===typeof t){a=yr(t);var s=n.componentClass||a;n.name=a;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!==typeof o)return null;r=new o(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"===typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&&yr(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[vr(a)]=r),"function"===typeof r.el&&r.el()){var l=null;this.children_[i+1]&&(this.children_[i+1].el_?l=this.children_[i+1].el_:Zn(this.children_[i+1])&&(l=this.children_[i+1])),this.contentEl().insertBefore(r.el(),l)}return r},t.removeChild=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_[yr(e.name())]=null,this.childNameIndex_[vr(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=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)}},s=e.getComponent("Tech");i=Array.isArray(n)?n:Object.keys(n),i.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?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||yr(t.name));return n&&!s.isTech(n)})).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=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)},t.$=function(e,t){return Ei(e,t||this.contentEl())},t.$$=function(e,t){return xi(e,t||this.contentEl())},t.hasClass=function(e){return ai(this.el_,e)},t.addClass=function(e){si(this.el_,e)},t.removeClass=function(e){oi(this.el_,e)},t.toggleClass=function(e,t){li(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return di(this.el_,e)},t.setAttribute=function(e,t){hi(this.el_,e,t)},t.removeAttribute=function(e){pi(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));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"+yr(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=xn(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var n="offset"+yr(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null,i=10,r=200;this.on("touchstart",(function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=a.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY,s=Math.sqrt(r*r+a*a);s>i&&(e=!1)}}));var s=function(){e=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",(function(i){if(n=null,!0===e){var s=a.a.performance.now()-t;s<r&&(i.preventDefault(),this.trigger("tap"))}}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=er(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)}},t.setTimeout=function(e,t){var n,i=this;return e=er(this,e),this.clearTimersOnDispose_(),n=a.a.setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_["delete"](n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_["delete"](e),a.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=er(this,e),this.clearTimersOnDispose_();var n=a.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_["delete"](e),a.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=er(this,e),t=a.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_["delete"](t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=er(this,t);var i=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_["delete"](e)}));return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_["delete"](e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_["delete"](e),a.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+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",new Error('Illegal component, "'+t+'"; '+i+".");t=yr(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,u=Object.keys(l);if(l&&u.length>0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[vr(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Er(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function xr(e,t,n,i){return Er(e,i,n.length-1),n[i][t]}function Or(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:xr.bind(null,"start",0,e),end:xr.bind(null,"end",1,e)},a.a.Symbol&&a.a.Symbol.iterator&&(t[a.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function Ar(e,t){return Array.isArray(e)?Or(e):void 0===e||void 0===t?Or():Or([[e,t]])}function Pr(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Ar(0,0));for(var a=0;a<e.length;a++)n=e.start(a),i=e.end(a),i>t&&(i=t),r+=i-n;return r/t}function Ir(e){if(e instanceof Ir)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:Cn(e)&&("number"===typeof e.code&&(this.code=e.code),kn(this,e)),this.message||(this.message=Ir.defaultMessages[this.code]||"")}Cr.prototype.supportsRaf_="function"===typeof a.a.requestAnimationFrame&&"function"===typeof a.a.cancelAnimationFrame,Cr.registerComponent("Component",Cr),Ir.prototype.code=0,Ir.prototype.message="",Ir.prototype.status=null,Ir.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ir.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 Lr=0;Lr<Ir.errorTypes.length;Lr++)Ir[Ir.errorTypes[Lr]]=Lr,Ir.prototype[Ir.errorTypes[Lr]]=Lr;function Dr(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Mr(e){Dr(e)&&e.then(null,(function(e){}))}var jr=function(e){var t=["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}}))});return t},Rr=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=jr(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(jr))},Nr=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},Br={textTracksToJson:Rr,jsonToTextTracks:Nr,trackToJson_:jr},Ur="vjs-modal-dialog",Fr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.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_=ni("div",{className:Ur+"-content"},{role:"document"}),i.descEl_=ni("p",{className:Ur+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),ii(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return Ur+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=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},n.open=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_.pauseOnOpen&&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}},n.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},n.close=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()}},n.closeable=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_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),wi(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),_i(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=o.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),v.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(v.a.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}o.a.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())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof a.a.HTMLAnchorElement||e instanceof a.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof a.a.HTMLInputElement||e instanceof a.a.HTMLSelectElement||e instanceof a.a.HTMLTextAreaElement||e instanceof a.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof a.a.HTMLIFrameElement||e instanceof a.a.HTMLObjectElement||e instanceof a.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(Cr);Fr.prototype.options_={pauseOnOpen:!0,temporary:!0},Cr.registerComponent("ModalDialog",Fr);var $r=function(e){function t(t){var n;void 0===t&&(t=[]),n=e.call(this)||this,n.tracks_=[],Object.defineProperty(d()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}p()(t,e);var n=t.prototype;return n.addTrack=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})},ar(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=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}(ir);for(var Hr in $r.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},$r.prototype.allowedEvents_)$r.prototype["on"+Hr]=null;var Vr=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)},zr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){Vr(t,t[i]);break}return n=e.call(this,t)||this,n.changing_=!1,n}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Vr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Vr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}($r),qr=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)},Wr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){qr(t,t[i]);break}return n=e.call(this,t)||this,n.changing_=!1,Object.defineProperty(d()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&qr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,qr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}($r),Gr=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);var i=["metadata","chapters"];-1===i.indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}($r),Xr=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=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},t.removeTrackElement_=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}(),Yr=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=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)},t.getCueById=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}(),Kr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Qr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Jr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Zr={disabled:"disabled",hidden:"hidden",showing:"showing"},ea=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+Bi(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty(d()(n),e,{get:function(){return i[e]},set:function(){}})};for(var s in i)a(s);return Object.defineProperty(d()(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return p()(t,e),t}(ir),ta=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.a.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=a.a.location.protocol),i.host||(i.host=a.a.location.host),i},na=function(e){if(!e.match(/^https?:\/\//)){var t=o.a.createElement("a");t.href=e,e=t.href}return e},ia=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},ra=function(e,t){void 0===t&&(t=a.a.location);var n=ta(e),i=":"===n.protocol?t.protocol:n.protocol,r=i+n.host!==t.protocol+t.host;return r},aa=Object.freeze({__proto__:null,parseUrl:ta,getAbsoluteURL:na,getFileExtension:ia,isCrossOrigin:ra}),sa=function(e,t){var n=new a.a.WebVTT.Parser(a.a,a.a.vttjs,a.a.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&&(a.a.console&&a.a.console.groupCollapsed&&a.a.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return yn.error(e)})),a.a.console&&a.a.console.groupEnd&&a.a.console.groupEnd()),n.flush()},oa=function(e,t){var n={uri:e},i=ra(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),b()(n,er(this,(function(e,n,i){if(e)return yn.error(e,n);t.loaded_=!0,"function"!==typeof a.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return sa(i,t);yn.error("vttjs failed to load, stopping trying to process "+t.src)})):sa(i,t)})))},la=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=_r(t,{kind:Jr[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=Zr[i.mode]||"disabled",a=i["default"];"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),n=e.call(this,i)||this,n.tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var s=new Yr(n.cues_),o=new Yr(n.activeCues_),l=!1,u=er(d()(n),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1))})),c=function(){n.tech_.off("timeupdate",u)};return n.tech_.one("dispose",c),"disabled"!==r&&n.tech_.on("timeupdate",u),Object.defineProperties(d()(n),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){Zr[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||oa(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==r&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;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||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(l=!0);return this.activeCues_=t,o.setCues_(this.activeCues_),o},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&oa(n.src,d()(n))):n.loaded_=!0,n}p()(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(a.a.vttjs&&!(e instanceof a.a.vttjs.VTTCue)){for(var n in t=new a.a.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_)},n.removeCue=function(e){var t=this.cues_.length;while(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}(ea);la.prototype.allowedEvents_={cuechange:"cuechange"};var ua=function(e){function t(t){var n;void 0===t&&(t={});var i=_r(t,{kind:Qr[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(d()(n),"enabled",{get:function(){return r},set:function(e){"boolean"===typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return p()(t,e),t}(ea),ca=function(e){function t(t){var n;void 0===t&&(t={});var i=_r(t,{kind:Kr[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(d()(n),"selected",{get:function(){return r},set:function(e){"boolean"===typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return p()(t,e),t}(ea),da=0,ha=1,pa=2,fa=3,ma=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new la(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n["default"]=r["default"],Object.defineProperties(d()(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=da,r.addEventListener("loadeddata",(function(){i=pa,n.trigger({type:"load",target:d()(n)})})),n}return p()(t,e),t}(ir);ma.prototype.allowedEvents_={load:"load"},ma.NONE=da,ma.LOADING=ha,ma.LOADED=pa,ma.ERROR=fa;var ga={audio:{ListClass:zr,TrackClass:ua,capitalName:"Audio"},video:{ListClass:Wr,TrackClass:ca,capitalName:"Video"},text:{ListClass:Gr,TrackClass:la,capitalName:"Text"}};Object.keys(ga).forEach((function(e){ga[e].getterName=e+"Tracks",ga[e].privateName=e+"Tracks_"}));var va={remoteText:{ListClass:Gr,TrackClass:la,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Xr,TrackClass:ma,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ya=u()({},ga,va);function ba(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var s=new ya.text.TrackClass(r);return a.addTrack(s),s}va.names=Object.keys(va),ga.names=Object.keys(ga),ya.names=[].concat(va.names).concat(ga.names);var _a=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,i=e.call(this,null,t,n)||this,i.onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),ya.names.forEach((function(e){var n=ya[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new ya.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}p()(t,e);var n=t.prototype;return n.triggerSourceset=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"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(er(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Ar(0,0)},n.bufferedPercent=function(){return Pr(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(ga.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},n.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Ir(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Ar(0,0):Ar()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;ga.names.forEach((function(t){var n=ga[t],i=function(){e.trigger(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)}))}))},n.addWebVttScript_=function(){var e=this;if(!a.a.WebVTT)if(o.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&En(T.a)&&Object.keys(T.a).length>0)return void this.trigger("vttjsloaded");var t=o.a.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})),a.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=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++){var o=t[e];o.removeEventListener("cuechange",a)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return ba(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=_r(e,{tech:this});return new va.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(yn.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||a.a.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=yr(e),t.techs_[e]=n,t.techs_[vr(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=yr(e),a.a&&a.a.videojs&&a.a.videojs[e]?(yn.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.a.videojs[e]):void 0)},t}(Cr);ya.names.forEach((function(e){var t=ya[e];_a.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),_a.prototype.featuresVolumeControl=!0,_a.prototype.featuresMuteControl=!0,_a.prototype.featuresFullscreenResize=!1,_a.prototype.featuresPlaybackRate=!1,_a.prototype.featuresProgressEvents=!1,_a.prototype.featuresSourceset=!1,_a.prototype.featuresTimeupdateEvents=!1,_a.prototype.featuresNativeTextTracks=!1,_a.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(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),n)return n;return""},e.selectSourceHandler=function(t,n){for(var i,r=e.sourceHandlers||[],a=0;a<r.length;a++)if(i=r[a].canHandleSource(t,n),i)return r[a];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.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:yn.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)}},Cr.registerComponent("Tech",_a),_a.registerTech("Tech",_a),_a.defaultTechOrder_=[];var Ta={},Sa={},wa={};function ka(e,t){Ta[e]=Ta[e]||[],Ta[e].push(t)}function Ca(e,t,n){e.setTimeout((function(){return Na(t,Ta[t.type],n,e)}),1)}function Ea(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function xa(e,t,n){return e.reduceRight(Da(n),t[n]())}function Oa(e,t,n,i){return t[n](e.reduce(Da(n),i))}function Aa(e,t,n,i){void 0===i&&(i=null);var r="call"+yr(n),a=e.reduce(Da(r),i),s=a===wa,o=s?null:t[n](a);return Ma(e,n,o,s),o}var Pa={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Ia={setCurrentTime:1,setMuted:1,setVolume:1},La={play:1,pause:1};function Da(e){return function(t,n){return t===wa?wa:n[e]?n[e](t):t}}function Ma(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}function ja(e){Sa[e.id()]=null}function Ra(e,t){var n=Sa[e.id()],i=null;if(void 0===n||null===n)return i=t(e),Sa[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],s=a[0],o=a[1];s===t&&(i=o)}return null===i&&(i=t(e),n.push([t,i])),i}function Na(e,t,n,i,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var s=t,o=s[0],l=s.slice(1);if("string"===typeof o)Na(e,Ta[o],n,i,r,a);else if(o){var u=Ra(i,o);if(!u.setSource)return r.push(u),Na(e,l,n,i,r,a);u.setSource(kn({},e),(function(t,s){if(t)return Na(e,l,n,i,r,a);r.push(u),Na(s,e.type===s.type?l:Ta[s.type],n,i,r,a)}))}else l.length?Na(e,l,n,i,r,a):a?n(e,r):Na(e,Ta["*"],n,i,r,!0)}var Ba={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",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Ua=function(e){void 0===e&&(e="");var t=ia(e),n=Ba[t.toLowerCase()];return n||""},Fa=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 Ua(t)},$a=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):Cn(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[Ha({src:t})]:Cn(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[Ha(t)]:[];return t};function Ha(e){if(!e.type){var t=Ua(e.src);t&&(e.type=t)}return e}var Va=function(e){function t(t,n,i){var r,a=_r({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var s=0,o=n.playerOptions.techOrder;s<o.length;s++){var l=yr(o[s]),u=_a.getTech(l);if(l||(u=Cr.getComponent(l)),u&&u.isSupported()){t.loadTech_(l);break}}return r}return p()(t,e),t}(Cr);Cr.registerComponent("MediaLoader",Va);var za=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,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}p()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=kn({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&yn.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=kn({role:"button"},n),this.tabIndex_=t.tabIndex;var i=ni(e,t,n);return i.appendChild(ni("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=ni("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ii(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof 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_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Cr);Cr.registerComponent("ClickableComponent",za);var qa=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}p()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){var e=ni("div",{className:"vjs-poster",tabIndex:-1});return e},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(Fn||Nn)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Mr(this.player_.play()):this.player_.pause()}},t}(za);Cr.registerComponent("PosterImage",qa);var Wa="#222",Ga="#ccc",Xa={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'};function Ya(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)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Ka(e,t,n){try{e.style[t]=n}catch(i){return}}var Qa=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var s=function(e){return r.updateDisplay(e)};return t.on("loadstart",(function(e){return r.toggleDisplay(e)})),t.on("texttrackchange",s),t.on("loadedmetadata",(function(e){return r.preselectTrack(e)})),t.ready(er(d()(r),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",s),t.on("playerresize",s),a.a.addEventListener("orientationchange",s),t.on("dispose",(function(){return a.a.removeEventListener("orientationchange",s)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),r}p()(t,e);var n=t.prototype;return n.preselectTrack=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")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"===typeof a.a.WebVTT&&a.a.WebVTT.processCues(a.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(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)}else{var a=null,s=null,o=e.length;while(o--){var l=e[o];"showing"===l.mode&&("descriptions"===l.kind?a=l:s=l)}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))}},n.updateDisplayState=function(e){var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;while(i--){var r=n[i];if(r){var s=r.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&Ka(s.firstChild,"color",Ya(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Ka(s.firstChild,"backgroundColor",Ya(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Ka(s,"backgroundColor",Ya(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px "+Wa+", 2px 2px 4px "+Wa+", 2px 2px 5px "+Wa:"raised"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px "+Wa+", 2px 2px "+Wa+", 3px 3px "+Wa:"depressed"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px "+Ga+", 0 1px "+Ga+", -1px -1px "+Wa+", 0 -1px "+Wa:"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px "+Wa+", 0 0 4px "+Wa+", 0 0 4px "+Wa+", 0 0 4px "+Wa)),t.fontPercent&&1!==t.fontPercent){var o=a.a.parseFloat(s.style.fontSize);s.style.fontSize=o*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=Xa[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"===typeof a.a.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]);a.a.WebVTT.processCues(a.a,t,this.el_);for(var s=0;s<e.length;++s){for(var o=e[s],l=0;l<o.activeCues.length;++l){var u=o.activeCues[l].displayState;si(u,"vjs-text-track-cue"),si(u,"vjs-text-track-cue-"+(o.language?o.language:s))}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},t}(Cr);Cr.registerComponent("TextTrackDisplay",Qa);var Ja=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=ni("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Cr);Cr.registerComponent("LoadingSpinner",Ja);var Za=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),e="button",t=kn({className:this.buildCSSClass()},t),n=kn({type:"button"},n);var i=ni(e,t,n);return i.appendChild(ni("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return yn.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Cr.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(za);Cr.registerComponent("Button",Za);var es=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.mouseused_=!1,i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Mr(t),void(!this.player_.tech(!0)||(Fn||Nn)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};Dr(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Za);es.prototype.controlText_="Play Video",Cr.registerComponent("BigPlayButton",es);var ts=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.controlText(n&&n.controlText||i.localize("Close")),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){v.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Za);Cr.registerComponent("CloseButton",ts);var ns=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Mr(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(Za);ns.prototype.controlText_="Play",Cr.registerComponent("PlayToggle",ns);var is=function(e,t){e=e<0?0:e;var n=Math.floor(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="-"),r=r>0||s>0?r+":":"",i=((r||a>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},rs=is;function as(e){rs=e}function ss(){rs=is}function os(e,t){return void 0===t&&(t=e),rs(e,t)}var ls=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=ni("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=ni("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=os(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,yn.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=o.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Cr);ls.prototype.labelText_="Time",ls.prototype.controlText_="Time",Cr.registerComponent("TimeDisplay",ls);var us=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=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}(ls);us.prototype.labelText_="Current Time",us.prototype.controlText_="Current Time",Cr.registerComponent("CurrentTimeDisplay",us);var cs=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=function(e){return i.updateContent(e)};return i.on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(ls);cs.prototype.labelText_="Duration",cs.prototype.controlText_="Duration",Cr.registerComponent("DurationDisplay",cs);var ds=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Cr);Cr.registerComponent("TimeDivider",ds);var hs=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"durationchange",(function(e){return i.updateContent(e)})),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(ni("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=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}(ls);hs.prototype.labelText_="Remaining Time",hs.prototype.controlText_="Remaining Time",Cr.registerComponent("RemainingTimeDisplay",hs);var ps=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ni("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(ni("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(o.a.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Cr);Cr.registerComponent("LiveDisplay",ps);var fs=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=ni("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=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"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Za);fs.prototype.controlText_="Seek to live, currently playing live",Cr.registerComponent("SeekToLive",fs);var ms=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},gs=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.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}p()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=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)},n.disable=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}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=kn({tabIndex:0},n),i=kn({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Bn||e.preventDefault(),fi(),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)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;mi(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),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.update()},n.update=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}},n.getProgress=function(){return Number(ms(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=yi(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){v.a.isEventKey(t,"Left")||v.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):v.a.isEventKey(t,"Right")||v.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=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}(Cr);Cr.registerComponent("Slider",gs);var vs=function(e,t){return ms(e/t*100,0,100).toFixed(2)+"%"},ys=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=ni("span",{className:"vjs-control-text"}),i=ni("span",{textContent:this.localize("Loaded")}),r=o.a.createTextNode(": ");return this.percentageEl_=ni("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=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=vs(r,i);t.percent_!==s&&(t.el_.style.width=s,ii(t.percentageEl_,s),t.percent_=s);for(var o=0;o<n.length;o++){var l=n.start(o),u=n.end(o),c=a[o];c||(c=t.el_.appendChild(ni()),a[o]=c),c.dataset.start===l&&c.dataset.end===u||(c.dataset.start=l,c.dataset.end=u,c.style.left=vs(l,r),c.style.width=vs(u-l,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Cr);Cr.registerComponent("LoadProgressBar",ys);var bs=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=tr(er(d()(i),i.update),Zi),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=vi(this.el_),r=gi(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),l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){ii(this.el_,e)},n.updateTime=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(),l=o-t*o;a=(l<1?"":"-")+os(l,o)}else a=os(n,s);r.update(e,t,a),i&&i()}))},t}(Cr);Cr.registerComponent("TimeTooltip",bs);var _s=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=tr(er(d()(i),i.update),Zi),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=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}(Cr);_s.prototype.options_={children:[]},Wn||Dn||_s.prototype.options_.children.push("timeTooltip"),Cr.registerComponent("PlayProgressBar",_s);var Ts=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=tr(er(d()(i),i.update),Zi),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(Cr);Ts.prototype.options_={children:["timeTooltip"]},Cr.registerComponent("MouseTimeDisplay",Ts);var Ss=5,ws=12,ks=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.setEventHandlers_(),i}p()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=er(this,this.update),this.update=tr(this.update_,Zi),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 o.a&&"visibilityState"in o.a&&this.on(o.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===o.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Zi))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==o.a.visibilityState){var i=e.prototype.update.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();t&&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}",[os(e,r),os(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(gi(n.el()),n.getProgress())})),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=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},n.handleMouseDown=function(t){ki(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(ki(e)){var t,n=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(n>=.99)return void i.seekToLiveEdge();var r=i.seekableStart(),a=i.liveCurrentTime();if(t=r+n*i.liveWindow(),t>=a&&(t=a),t<=r&&(t=r+.1),t===1/0)return}else t=n*this.player_.duration(),t===this.player_.duration()&&(t-=.1);this.userSeek_(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Mr(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+Ss)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-Ss)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(v.a.isEventKey(t,"Space")||v.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(v.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(v.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(v()(t))){t.preventDefault(),t.stopPropagation();var i=10*(v.a.codes[v()(t)]-v.a.codes["0"])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else v.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Ss*ws)):v.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Ss*ws)):e.prototype.handleKeyDown.call(this,t)},n.dispose=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 o.a&&"visibilityState"in o.a&&this.off(o.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(gs);ks.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Wn||Dn||ks.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Cr.registerComponent("SeekBar",ks);var Cs=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleMouseMove=tr(er(d()(i),i.handleMouseMove),Zi),i.throttledHandleMouseSeek=tr(er(d()(i),i.handleMouseSeek),Zi),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=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=vi(r),s=yi(r,e).x;s=ms(s,0,1),i&&i.update(a,s),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=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&&Mr(this.player_.play())}},n.enable=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)},n.removeListenersAddedOnMousedownAndTouchstart=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_)},n.handleMouseDown=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_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Cr);Cs.prototype.options_={children:["seekBar"]},Cr.registerComponent("ProgressControl",Cs);var Es=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.disable(),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){o.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Za);Es.prototype.controlText_="Picture-in-Picture",Cr.registerComponent("PictureInPictureToggle",Es);var xs=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===o.a[t.fsApi_.fullscreenEnabled]&&i.disable(),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Za);xs.prototype.controlText_="Fullscreen",Cr.registerComponent("FullscreenToggle",xs);var Os=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")}))},As=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Cr);Cr.registerComponent("VolumeLevel",As);var Ps=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=tr(er(d()(i),i.update),Zi),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=gi(this.el_),a=gi(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),u=r.width/2;o<u?u+=u-o:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(i+"%")},n.write=function(e){ii(this.el_,e)},n.updateVolume=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}(Cr);Cr.registerComponent("VolumeLevelTooltip",Ps);var Is=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=tr(er(d()(i),i.update),Zi),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(Cr);Is.prototype.options_={children:["volumeLevelTooltip"]},Cr.registerComponent("MouseVolumeLevelDisplay",Is);var Ls=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){ki(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=gi(n),r=this.vertical(),a=yi(n,e);a=r?a.y:a.x,a=ms(a,0,1),t.update(i,a,r)}ki(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(gs);Ls.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Wn||Dn||Ls.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ls.prototype.playerEvent="volumechange",Cr.registerComponent("VolumeBar",Ls);var Ds=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,("undefined"===typeof n.volumeBar||En(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,Os(d()(i),t),i.throttledHandleMouseMove=tr(er(d()(i),i.handleMouseMove),Zi),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}p()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=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_)},n.handleMouseUp=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_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Cr);Ds.prototype.options_={children:["volumeBar"]},Cr.registerComponent("VolumeControl",Ds);var Ms=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")}))},js=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,Ms(d()(i),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Wn&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)oi(this.el_,"vjs-vol-"+n);si(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(Za);js.prototype.controlText_="Mute",Cr.registerComponent("MuteToggle",js);var Rs=function(e){function t(t,n){var i;return void 0===n&&(n={}),"undefined"!==typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"===typeof n.volumeControl||En(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),i=e.call(this,t,n)||this,i.handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}p()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=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")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){v.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Wi(o.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Gi(o.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){v.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Cr);Rs.prototype.options_={children:["muteToggle","volumeControl"]},Cr.registerComponent("VolumePanel",Rs);var Ns=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,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}p()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Cr&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Cr&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"===typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ni(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Wi(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||o.a.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){v.a.isEventKey(e,"Left")||v.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(v.a.isEventKey(e,"Right")||v.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice(),n=t.length&&t[0].hasClass("vjs-menu-title");n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Cr);Cr.registerComponent("Menu",Ns);var Bs=function(e){function t(t,n){var i;void 0===n&&(n={}),i=e.call(this,t,n)||this,i.menuButton_=new Za(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Za.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),Wi(o.a,"keyup",i.handleMenuKeyUp_)})),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}p()(t,e);var n=t.prototype;return n.update=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.show()},n.createMenu=function(){var e=new Ns(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ni("li",{className:"vjs-menu-title",textContent:yr(this.options_.title),tabIndex:-1}),n=new Cr(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},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=Za.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Gi(o.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){v.a.isEventKey(e,"Esc")||v.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),v.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(v.a.isEventKey(e,"Up")||v.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(v.a.isEventKey(e,"Esc")||v.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(v.a.isEventKey(e,"Esc")||v.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),v.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Wn&&ei())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Cr);Cr.registerComponent("MenuButton",Bs);var Us=function(e){function t(t,n){var i,r=n.tracks;if(i=e.call(this,t,n)||this,i.items.length<=1&&i.hide(),!r)return d()(i);var a=er(d()(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 p()(t,e),t}(Bs);Cr.registerComponent("TrackButton",Us);var Fs=["Tab","Esc","Up","Down","Right","Left"],$s=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.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}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",kn({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(ni("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){Fs.some((function(e){return v.a.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=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}(za);Cr.registerComponent("MenuItem",$s);var Hs=function(e){function t(t,n){var i,r=n.track,s=t.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,i=e.call(this,t,n)||this,i.track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var l,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(d()(i),t)},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(d()(i),t)};(t.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",c),i.on("dispose",(function(){t.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",c)})),void 0===s.onchange)&&i.on(["tap","click"],(function(){if("object"!==typeof a.a.Event)try{l=new a.a.Event("change")}catch(e){}l||(l=o.a.createEvent("Event"),l.initEvent("change",!0,!0)),s.dispatchEvent(l)}));return i.handleTracksChange(),i}p()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),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"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}($s);Cr.registerComponent("TextTrackMenuItem",Hs);var Vs=function(e){function t(t,n){return n.track={player:t,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,e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.handleTracksChange=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)},n.handleSelectedLanguageChange=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})},t}(Hs);Cr.registerComponent("OffTextTrackMenuItem",Vs);var zs=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Hs),this.label_&&(n=this.label_+" off"),e.push(new Vs(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),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 t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(Us);Cr.registerComponent("TextTrackButton",zs);var qs=function(e){function t(t,n){var i,r=n.track,a=n.cue,s=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=s&&s<a.endTime,i=e.call(this,t,n)||this,i.track=r,i.cue=a,r.addEventListener("cuechange",er(d()(i),i.update)),i}p()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}($s);Cr.registerComponent("ChaptersTrackMenuItem",qs);var Ws=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=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_=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_)}}},n.findChaptersTrack=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}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(yr(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=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 qs(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(zs);Ws.prototype.kind_="chapters",Ws.prototype.controlText_="Chapters",Cr.registerComponent("ChaptersButton",Ws);var Gs=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),s=er(d()(r),r.handleTracksChange);return a.addEventListener("change",s),r.on("dispose",(function(){a.removeEventListener("change",s)})),r}p()(t,e);var n=t.prototype;return n.handleTracksChange=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()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(zs);Gs.prototype.kind_="descriptions",Gs.prototype.controlText_="Descriptions",Cr.registerComponent("DescriptionsButton",Gs);var Xs=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(zs);Xs.prototype.kind_="subtitles",Xs.prototype.controlText_="Subtitles",Cr.registerComponent("SubtitlesButton",Xs);var Ys=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",i=e.call(this,t,n)||this,i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}p()(t,e);var n=t.prototype;return n.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Hs);Cr.registerComponent("CaptionSettingsMenuItem",Ys);var Ks=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Ys(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(zs);Ks.prototype.kind_="captions",Ks.prototype.controlText_="Captions",Cr.registerComponent("CaptionsButton",Ks);var Qs=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(ni("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(ni("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(Hs);Cr.registerComponent("SubsCapsMenuItem",Qs);var Js=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(yr(i.label_)),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Ys(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Qs),t},t}(zs);Js.prototype.kinds_=["captions","subtitles"],Js.prototype.controlText_="Subtitles",Cr.registerComponent("SubsCapsButton",Js);var Zs=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,i=e.call(this,t,n)||this,i.track=r,i.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(d()(i),t)};return a.addEventListener("change",s),i.on("dispose",(function(){a.removeEventListener("change",s)})),i}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text",textContent:this.localize("Descriptions")}))),r},n.handleClick=function(t){e.prototype.handleClick.call(this,t),this.track.enabled=!0},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}($s);Cr.registerComponent("AudioTrackMenuItem",Zs);var eo=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new Zs(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Us);eo.prototype.controlText_="Audio Track",Cr.registerComponent("AudioTrackButton",eo);var to=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,i=e.call(this,t,n)||this,i.label=r,i.rate=a,i.on(t,"ratechange",(function(e){return i.update(e)})),i}p()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}($s);to.prototype.contentElType="button",Cr.registerComponent("PlaybackRateMenuItem",to);var no=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",(function(e){return i.updateVisibility(e)})),i.on(t,"ratechange",(function(e){return i.updateLabel(e)})),i.on(t,"playbackrateschange",(function(e){return i.handlePlaybackRateschange(e)})),i}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=ni("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new to(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>t){i=n[r];break}this.player().playbackRate(i)},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Bs);no.prototype.controlText_="Playback Rate",Cr.registerComponent("PlaybackRateMenuButton",no);var io=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Cr);Cr.registerComponent("Spacer",io);var ro=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(io);Cr.registerComponent("CustomControlSpacer",ro);var ao=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Cr);ao.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o.a&&ao.prototype.options_.children.splice(ao.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Cr.registerComponent("ControlBar",ao);var so=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"error",(function(e){return i.open(e)})),i}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Fr);so.prototype.options_=u()({},Fr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Cr.registerComponent("ErrorDisplay",so);var oo="vjs-text-track-settings",lo=["#000","Black"],uo=["#00F","Blue"],co=["#0FF","Cyan"],ho=["#0F0","Green"],po=["#F0F","Magenta"],fo=["#F00","Red"],mo=["#FFF","White"],go=["#FF0","Yellow"],vo=["1","Opaque"],yo=["0.5","Semi-Transparent"],bo=["0","Transparent"],_o={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[lo,mo,fo,ho,uo,go,po,co]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[vo,yo,bo]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[mo,lo,fo,ho,uo,go,po,co]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},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:"Transparency",options:[vo,yo]},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:"Transparency",options:[bo,yo,vo]}};function To(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function So(e,t){var n=e.options[e.options.selectedIndex].value;return To(n,t)}function wo(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(To(e.options[i].value,n)===t){e.selectedIndex=i;break}}_o.windowColor.options=_o.backgroundColor.options;var ko=function(e){function t(t,n){var i;return n.temporary=!1,i=e.call(this,t,n)||this,i.updateDisplay=i.updateDisplay.bind(d()(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=ni("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()})),Sn(_o,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}p()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=_o[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map((function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',i.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return ni("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return ni("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("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return ni("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return wn(_o,(function(t,n,i){var r=So(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},n.setValues=function(e){var t=this;Sn(_o,(function(n,i){wo(t.$(n.selector),e[i],n.parser)}))},n.setDefaults=function(){var e=this;Sn(_o,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(a.a.localStorage.getItem(oo))}catch(t){yn.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?a.a.localStorage.setItem(oo,JSON.stringify(e)):a.a.localStorage.removeItem(oo)}catch(t){yn.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(Fr);Cr.registerComponent("TextTrackSettings",ko);var Co=function(e){function t(t,n){var i,r=n.ResizeObserver||a.a.ResizeObserver;null===n.ResizeObserver&&(r=!1);var s=_r({createEl:!r,reportTouchActivity:!1},n);return i=e.call(this,t,s)||this,i.ResizeObserver=n.ResizeObserver||a.a.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=nr((function(){i.resizeHandler()}),100,!1,d()(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){Gi(this,"resize",e),Gi(this,"unload",t),t=null};Wi(i.el_.contentWindow,"unload",t),Wi(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=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,e.prototype.dispose.call(this)},t}(Cr);Cr.registerComponent("ResizeManager",Co);var Eo={trackingThreshold:30,liveTolerance:15},xo=function(e){function t(t,n){var i,r=_r(Eo,n,{createEl:!1});return i=e.call(this,t,r)||this,i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.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.one(i.player_,"canplay",(function(){return i.toggleTracking()})),Fn&&"hidden"in o.a&&"visibilityState"in o.a&&i.on(o.a,"visibilitychange",i.handleVisibilityChange_),i}p()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(o.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(a.a.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(),s=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=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())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Zi),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_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=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_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"===typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(o.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Cr);Cr.registerComponent("LiveTracker",xo);var Oo,Ao=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)},Po=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=o.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=o.a.createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",a.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Io=function(e,t){for(var n={},i=0;i<e.length;i++)if(n=Object.getOwnPropertyDescriptor(e[i],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},Lo=function(e){return Io([e.el(),a.a.HTMLMediaElement.prototype,a.a.Element.prototype,Po],"innerHTML")},Do=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=Lo(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=n.apply(t,r);return Ao(e),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",_r(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_)}},Mo=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?na(a.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return a.a.Element.prototype.setAttribute.call(this,"src",e),e}}),jo=function(e){return Io([e.el(),a.a.HTMLMediaElement.prototype,Mo],"src")},Ro=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=jo(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",_r(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 Ao(e)||(e.triggerSourceset(""),Do(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Ao(e)||Do(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},No=function(e,t,n,i){void 0===i&&(i=!0);var 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)},Bo=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){var s=i.el_.childNodes,o=s.length,l=[];while(o--){var u=s[o],c=u.nodeName.toLowerCase();"track"===c&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),a||i.el_.hasAttribute("crossorigin")||!ra(u.src)||(a=!0)):l.push(u))}for(var d=0;d<l.length;d++)i.el_.removeChild(l[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&yn.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_(),(Vn||qn||jn)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}p()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Ro(this)},n.restoreMetadataTracksInIOSNativePlayer_=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 n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};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)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach((function(e){var t=n.el()[i+"Tracks"];t.removeEventListener(e,n[i+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=ga[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+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[va.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])}while(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)}))}},n.proxyNativeTracks_=function(){var e=this;ga.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=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=o.a.createElement("video");var i=this.options_.tag&&ci(this.options_.tag),r=_r({},i);Vn&&!0===this.options_.nativeControlsForTouch||delete r.controls,ui(e,kn(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&hi(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var a=["loop","muted","playsinline","autoplay"],s=0;s<a.length;s++){var l=a[s],u=this.options_[l];"undefined"!==typeof u&&(u?hi(e,l,l):pi(e,l),e[l]=u)}return e},n.handleLateInit_=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")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}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)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Gn?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){yn(t,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&Dn&&Bn&&0===this.el_.currentTime){var t=function t(){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},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!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)}))}},n.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=a.a.navigator&&a.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Mr(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=o.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),i=n.length;while(i--)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])}},n.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),a.a.performance&&"function"===typeof a.a.performance.now?e.creationTime=a.a.performance.now():a.a.performance&&a.a.performance.timing&&"number"===typeof a.a.performance.timing.navigationStart&&(e.creationTime=a.a.Date.now()-a.a.performance.timing.navigationStart),e},t}(_a);No(Bo,"TEST_VID",(function(){if(Jn()){var e=o.a.createElement("video"),t=o.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),Bo.isSupported=function(){try{Bo.TEST_VID.volume=.5}catch(e){return!1}return!(!Bo.TEST_VID||!Bo.TEST_VID.canPlayType)},Bo.canPlayType=function(e){return Bo.TEST_VID.canPlayType(e)},Bo.canPlaySource=function(e,t){return Bo.canPlayType(e.type)},Bo.canControlVolume=function(){try{var e=Bo.TEST_VID.volume;return Bo.TEST_VID.volume=e/2+.1,e!==Bo.TEST_VID.volume}catch(t){return!1}},Bo.canMuteVolume=function(){try{var e=Bo.TEST_VID.muted;return Bo.TEST_VID.muted=!e,Bo.TEST_VID.muted?hi(Bo.TEST_VID,"muted","muted"):pi(Bo.TEST_VID,"muted","muted"),e!==Bo.TEST_VID.muted}catch(t){return!1}},Bo.canControlPlaybackRate=function(){if(Dn&&Bn&&Un<58)return!1;try{var e=Bo.TEST_VID.playbackRate;return Bo.TEST_VID.playbackRate=e/2+.1,e!==Bo.TEST_VID.playbackRate}catch(t){return!1}},Bo.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(o.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Bo.supportsNativeTextTracks=function(){return Gn||Wn&&Bn},Bo.supportsNativeVideoTracks=function(){return!(!Bo.TEST_VID||!Bo.TEST_VID.videoTracks)},Bo.supportsNativeAudioTracks=function(){return!(!Bo.TEST_VID||!Bo.TEST_VID.audioTracks)},Bo.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];No(Bo.prototype,t,(function(){return Bo[n]()}),!0)})),Bo.prototype.movingMediaElementInDOM=!Wn,Bo.prototype.featuresFullscreenResize=!0,Bo.prototype.featuresProgressEvents=!0,Bo.prototype.featuresTimeupdateEvents=!0,Bo.patchCanPlayType=function(){Mn>=4&&!Rn&&!Bn&&(Oo=Bo.TEST_VID&&Bo.TEST_VID.constructor.prototype.canPlayType,Bo.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;return e&&t.test(e)?"maybe":Oo.call(this,e)})},Bo.unpatchCanPlayType=function(){var e=Bo.TEST_VID.constructor.prototype.canPlayType;return Oo&&(Bo.TEST_VID.constructor.prototype.canPlayType=Oo),e},Bo.patchCanPlayType(),Bo.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},Bo.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Bo.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Bo.prototype["set"+yr(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){Bo.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Bo.prototype["set"+yr(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Bo.prototype[e]=function(){return this.el_[e]()}})),_a.withSourceHandlers(Bo),Bo.nativeSourceHandler={},Bo.nativeSourceHandler.canPlayType=function(e){try{return Bo.TEST_VID.canPlayType(e)}catch(t){return""}},Bo.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Bo.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=ia(e.src);return Bo.nativeSourceHandler.canPlayType("video/"+n)}return""},Bo.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Bo.nativeSourceHandler.dispose=function(){},Bo.registerSourceHandler(Bo.nativeSourceHandler),_a.registerTech("Html5",Bo);var Uo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Fo={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},$o=["tiny","xsmall","small","medium","large","xlarge","huge"],Ho={};$o.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Ho[e]="vjs-layout-"+t}));var Vo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},zo=function(e){function t(n,i,r){var a;if(n.id=n.id||i.id||"vjs_video_"+Bi(),i=kn(t.getTagSettings(n),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(i.language=s.getAttribute("lang"))}else{var l=n;while(l&&1===l.nodeType){if(ci(l).hasOwnProperty("lang")){i.language=l.getAttribute("lang");break}l=l.parentNode}}if(a=e.call(this,null,i,r)||this,a.boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=bn(a.id_),a.fsApi_=cn,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&ci(n),a.language(a.options_.language),i.languages){var u={};Object.getOwnPropertyNames(i.languages).forEach((function(e){u[e.toLowerCase()]=i.languages[e]})),a.languages_=u}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!==typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),fr(d()(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(Wi(o.a,a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var c=_r(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=c,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),Vn&&a.addClass("vjs-touch-enabled"),Wn||a.addClass("vjs-workinghover"),t.players[a.id_]=d()(a);var h=rn.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a}p()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Gi(o.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Gi(o.a,"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),ja(this),ya.names.forEach((function(e){var t=ya[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this)},n.createEl=function(){var t,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?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=ci(n);if(r){t=this.el_=n,n=this.tag=o.a.createElement("video");while(t.children.length)n.appendChild(t.firstChild);ai(t,"video-js")||si(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(i){}}))}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(Fn||Bn&&Hn)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){r&&"class"===e||t.setAttribute(e,s[e]),r&&n.setAttribute(e,s[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Mi("vjs-styles-dimensions");var l=Ei(".vjs-styles-defaults"),u=Ei("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.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 c=n.getElementsByTagName("a"),d=0;d<c.length;d++){var h=c.item(d);si(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),ri(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):yn.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?yn.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,ar(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),sr(this,(function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new 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_()},n.updateStyleEl_=function(){if(!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var r=n.split(":"),s=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/s:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*s,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),ji(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*s+"%;\n }\n ")}else{var o="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(o>=0&&(u.width=o),l>=0&&(u.height=l))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=yr(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(_a.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_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,Promise:this.options_.Promise};ya.names.forEach((function(e){var t=ya[e];s[t.getterName]=n[t.privateName]})),kn(s,this.options_[i]),kn(s,this.options_[r]),kn(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=_a.getTech(e);if(!o)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(er(this,this.handleTechReady_),!0),Br.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Uo.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+yr(e)+"_"](t)}))})),Object.keys(Fo).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Fo[e]+"_"].bind(n),event:t}):n["handleTech"+Fo[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.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"===i&&this.tag||ri(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;ya.names.forEach((function(t){var n=ya[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=Br.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&yn.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=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_)},n.removeTechControlsListeners_=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_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(Dr(i))return i["catch"]((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():(n=this.play(),Dr(n)&&(n=n["catch"](i))),Dr(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var 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=Fa(this,t)),this.cache_.source=_r({},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 l=ci(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=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"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=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")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),n=function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))};this.on("timeupdate",n)},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(yn.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(this.paused()?Mr(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){if(this.controls_){var t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}));t||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())}},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=o.a[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=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}},n.techCall_=function(e,t){this.ready((function(){if(e in Ia)return Oa(this.middleware_,this.tech_,e,t);if(e in La)return Aa(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw yn(n),n}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Pa)return xa(this.middleware_,this.tech_,e);if(e in La)return Aa(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw yn("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw yn("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw yn(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||a.a.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Mr),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!Gn&&!Wn||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Ar(0,0)},n.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),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"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Ar(0,0)),e},n.bufferedPercent=function(){return Pr(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||a.a.Promise;if(t){var n=this;return new t((function(t,i){function r(){n.off("fullscreenerror",s),n.off("fullscreenchange",a)}function a(){r(),t()}function s(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",s);var o=n.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,i))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=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()},n.exitFullscreen=function(){var e=this.options_.Promise||a.a.Promise;if(e){var t=this;return new e((function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var s=t.exitFullscreenHelper_();s&&(s.then(i,i),s.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=o.a[this.fsApi_.exitFullscreen]();return t&&Mr(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o.a.documentElement.style.overflow,Wi(o.a,"keydown",this.boundFullWindowOnEscKey_),o.a.documentElement.style.overflow="hidden",si(o.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){v.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Gi(o.a,"keydown",this.boundFullWindowOnEscKey_),o.a.documentElement.style.overflow=this.docOrigOverflow,oi(o.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in o.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in o.a)return o.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){var n=function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;var n=["button","checkbox","hidden","radio","reset","submit"];if("input"===t)return-1===n.indexOf(e.type);var i=["textarea"];return-1!==i.indexOf(t)};n(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return v.a.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return v.a.isEventKey(e,"m")}:r,s=t.playPauseKey,l=void 0===s?function(e){return v.a.isEventKey(e,"k")||v.a.isEventKey(e,"Space")}:s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var u=Cr.getComponent("FullscreenToggle");!1!==o.a[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var c=Cr.getComponent("MuteToggle");c.prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation();var d=Cr.getComponent("PlayToggle");d.prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=_a.getTech(r);if(a||(a=Cr.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else yn.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,i=this.options_.techOrder.map((function(e){return[e,_a.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(yn.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),r=function(e,t,n){var i;return e.some((function(e){return t.some((function(t){if(i=n(e,t),i)return!0}))})),i},a=function(e){return function(t,n){return e(n,t)}},s=function(e,t){var i=e[0],r=e[1];if(r.canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}};return t=this.options_.sourceOrder?r(e,i,a(s)):r(i,e,s),t||!1},n.handleSrc_=function(e,t){var n=this;if("undefined"===typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=$a(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Ca(this,i[0],(function(e,r){n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e);var a=n.src_(e);if(a)return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void n.triggerReady());Ea(r,n.tech_)})),this.options_.retryOnError&&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)}}}else this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(br(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),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||a.a.Promise;if(this.paused()||!t)this.doReset_();else{var n=this.play();Mr(n.then((function(){return e.doReset_()})))}},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),ar(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"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):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=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"))},n.handleTechPosterChange_=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"))}},n.controls=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.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=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")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(sn("beforeerror").forEach((function(n){var i=n(t,e);Cn(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)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ir(e),this.addClass("vjs-error"),yn.error("(CODE:"+this.error_.code+" "+Ir.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),sn("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");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")}},n.listenForUserActivity_=function(){var e,t,n,i=er(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("mouseleave",s);var o,l=this.getChild("controlBar");!l||Wn||Dn||(l.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),l.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e,n=t.track;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),ar(this)&&this.trigger("languagechange"))},n.languages=function(){return _r(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=_r(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=_r(i),i.player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var i=new Fr(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<$o.length;n++){var i=$o[n],r=this.breakpoints_[i];if(t<=r){if(e===i)return;e&&this.removeClass(Ho[e]),this.addClass(Ho[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=kn({},Vo,e),this.updateCurrentBreakpoint_()),kn(this.breakpoints_)},n.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Ho[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"===typeof e){this.reset(),this.cache_.media=_r(e);var i=this.cache_.media,r=i.artwork,a=i.poster,s=i.src,o=i.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:Ua(a)}]),s&&this.src(s),a&&this.poster(a),Array.isArray(o)&&o.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t=this.currentSources(),n=Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})),i={src:t,textTracks:n};return e&&(i.poster=e,i.artwork=[{src:i.poster,type:Ua(i.poster)}]),i}return _r(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=ci(e),i=n["data-setup"];if(ai(e,"vjs-fill")&&(n.fill=!0),ai(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=m()(i||"{}"),a=r[0],s=r[1];a&&yn.error(a),kn(n,s)}if(kn(t,n),e.hasChildNodes())for(var o=e.childNodes,l=0,u=o.length;l<u;l++){var c=o[l],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(ci(c)):"track"===d&&t.tracks.push(ci(c))}return t},n.flexNotSupported_=function(){var e=o.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=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)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"===typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Cr);ya.names.forEach((function(e){var t=ya[e];zo.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),zo.prototype.crossorigin=zo.prototype.crossOrigin,zo.players={};var qo=a.a.navigator;zo.prototype.options_={techOrder:_a.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:qo&&(qo.languages&&qo.languages[0]||qo.userLanguage||qo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){zo.prototype[e]=function(){return this.techGet_(e)}})),Uo.forEach((function(e){zo.prototype["handleTech"+yr(e)+"_"]=function(){return this.trigger(e)}})),Cr.registerComponent("Player",zo);var Wo="plugin",Go="activePlugins_",Xo={},Yo=function(e){return Xo.hasOwnProperty(e)},Ko=function(e){return Yo(e)?Xo[e]:void 0},Qo=function(e,t){e[Go]=e[Go]||{},e[Go][t]=!0},Jo=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Zo=function(e,t){var n=function(){Jo(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Qo(this,e),Jo(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},el=function(e,t){return t.prototype.name=e,function(){Jo(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=w()(t,[this].concat(i));return this[e]=function(){return a},Jo(this,a.getEventHash()),a}},tl=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),fr(this),delete this.trigger,gr(this,this.constructor.defaultState),Qo(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),Xi(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Go][e]=!1,this.player=this.state=null,t[e]=el(e,Xo[e])},e.isBasic=function(t){var n="string"===typeof t?Ko(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Yo(t))yn.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(zo.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Xo[t]=n,t!==Wo&&(e.isBasic(n)?zo.prototype[t]=Zo(t,n):zo.prototype[t]=el(t,n)),n},e.deregisterPlugin=function(e){if(e===Wo)throw new Error("Cannot de-register base plugin.");Yo(e)&&(delete Xo[e],delete zo.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Xo)),e.forEach((function(e){var n=Ko(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=Ko(e);return t&&t.VERSION||""},e}();tl.getPlugin=Ko,tl.BASE_PLUGIN_NAME=Wo,tl.registerPlugin(Wo,tl),zo.prototype.usingPlugin=function(e){return!!this[Go]&&!0===this[Go][e]},zo.prototype.hasPlugin=function(e){return!!Yo(e)};var nl=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},i={};for(var r in"object"===typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"===typeof t&&(n=t),C()(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},il=function(e){return 0===e.indexOf("#")?e.slice(1):e};function rl(e,t,n){var i=rl.getPlayer(e);if(i)return t&&yn.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?Ei("#"+il(e)):e;if(!Zn(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||yn.warn("The element supplied is not included in the DOM"),t=t||{},sn("beforesetup").forEach((function(e){var n=e(r,_r(t));Cn(n)&&!Array.isArray(n)?t=_r(t,n):yn.error("please return an object in beforesetup hooks")}));var a=Cr.getComponent("Player");return i=new a(r,t,n),sn("setup").forEach((function(e){return e(i)})),i}if(rl.hooks_=an,rl.hooks=sn,rl.hook=on,rl.hookOnce=un,rl.removeHook=ln,!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE&&Jn()){var al=Ei(".vjs-styles-defaults");if(!al){al=Mi("vjs-styles-defaults");var sl=Ei("head");sl&&sl.insertBefore(al,sl.firstChild),ji(al,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Ii(1,rl),rl.VERSION=rn,rl.options=zo.prototype.options_,rl.getPlayers=function(){return zo.players},rl.getPlayer=function(e){var t,n=zo.players;if("string"===typeof e){var i=il(e),r=n[i];if(r)return r;t=Ei("#"+i)}else t=e;if(Zn(t)){var a=t,s=a.player,o=a.playerId;if(s||n[o])return s||n[o]}},rl.getAllPlayers=function(){return Object.keys(zo.players).map((function(e){return zo.players[e]})).filter(Boolean)},rl.players=zo.players,rl.getComponent=Cr.getComponent,rl.registerComponent=function(e,t){_a.isTech(t)&&yn.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Cr.registerComponent.call(Cr,e,t)},rl.getTech=_a.getTech,rl.registerTech=_a.registerTech,rl.use=ka,Object.defineProperty(rl,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(rl.middleware,"TERMINATOR",{value:wa,writeable:!1,enumerable:!0}),rl.browser=Xn,rl.TOUCH_ENABLED=Vn,rl.extend=nl,rl.mergeOptions=_r,rl.bind=er,rl.registerPlugin=tl.registerPlugin,rl.deregisterPlugin=tl.deregisterPlugin,rl.plugin=function(e,t){return yn.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),tl.registerPlugin(e,t)},rl.getPlugins=tl.getPlugins,rl.getPlugin=tl.getPlugin,rl.getPluginVersion=tl.getPluginVersion,rl.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),rl.options.languages=_r(rl.options.languages,(n={},n[e]=t,n)),rl.options.languages[e]},rl.log=yn,rl.createLogger=bn,rl.createTimeRange=rl.createTimeRanges=Ar,rl.formatTime=os,rl.setFormatTime=as,rl.resetFormatTime=ss,rl.parseUrl=ta,rl.isCrossOrigin=ra,rl.EventTarget=ir,rl.on=Wi,rl.one=Yi,rl.off=Gi,rl.trigger=Xi,rl.xhr=b.a,rl.TextTrack=la,rl.AudioTrack=ua,rl.VideoTrack=ca,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){rl[e]=function(){return yn.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Oi[e].apply(null,arguments)}})),rl.computedStyle=xn,rl.dom=Oi,rl.url=aa,rl.defineLazyProperty=No,rl.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"}); /*! @name @videojs/http-streaming @version 2.10.2 @license Apache-2.0 */ var ol=P,ll=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},ul=function(e){return rl.log.debug?rl.log.debug.bind(rl,"VHS:",e+" >"):function(){}},cl=1/30,dl=3*cl,hl=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 rl.createTimeRanges(i)},pl=function(e,t){return hl(e,(function(e,n){return e-dl<=t&&n+dl>=t}))},fl=function(e,t){return hl(e,(function(e){return e-cl>=t}))},ml=function(e){if(e.length<2)return rl.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return rl.createTimeRanges(t)},gl=function(e,t){var n=null,i=null,r=0,a=[],s=[];if(!e||!e.length||!t||!t.length)return rl.createTimeRange();var o=e.length;while(o--)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});o=t.length;while(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?(r++,2===r&&(n=a[o].time)):"end"===a[o].type&&(r--,1===r&&(i=a[o].time)),null!==n&&null!==i&&(s.push([n,i]),n=null,i=null);return rl.createTimeRanges(s)},vl=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(", ")},yl=function(e,t,n){void 0===n&&(n=1);var i=e.length?e.end(e.length-1):0;return(i-t)/n},bl=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},_l=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(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},Tl=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Sl=rl.createTimeRange,wl=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}),[])},kl=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Cl=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=t.preloadHints,r=(i||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return r+=n&&n.length?n.length:0,r}},El=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=kl(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},xl=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(i--){if(r=e.segments[i],"undefined"!==typeof r.end)return{result:n+r.end,precise:!0};if(n+=r.duration,"undefined"!==typeof r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},Ol=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(n=e.segments[r],"undefined"!==typeof n.start)return{result:n.start-i,precise:!0};if(i+=n.duration,"undefined"!==typeof n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},Al=function(e,t,n){if("undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=xl(e,t);if(i.precise)return i.result;var r=Ol(e,t);return r.precise?r.result:i.result+n},Pl=function(e,t,n){if(!e)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return a.a.Infinity}return Al(e,t,n)},Il=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var s=[r,i];i=s[0],r=s[1]}if(i<0){for(var o=i;o<Math.min(0,r);o++)a+=t;i=0}for(var l=i;l<r;l++)a+=n[l].duration;return a},Ll=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return Pl(e);if(null===t)return null;t=t||0;var r=Al(e,e.mediaSequence+e.segments.length,t);return n&&(i="number"===typeof i?i:El(null,e),r-=i),Math.max(0,r)},Dl=function(e,t,n){var i=!0,r=t||0,a=Ll(e,t,i,n);return null===a?Sl():Sl(r,a)},Ml=function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.experimentalExactManifestTimings,o=n-a,l=wl(t),u=0,c=0;c<l.length;c++){var d=l[c];if(i===d.segmentIndex&&("number"!==typeof r||"number"!==typeof d.partIndex||r===d.partIndex)){u=c;break}}if(o<0){if(u>0)for(var h=u-1;h>=0;h--){var p=l[h];if(o+=p.duration,s){if(o<0)continue}else if(o+cl<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-Il({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(u<0){for(var f=u;f<0;f++)if(o-=t.targetDuration,o<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};u=0}for(var m=u;m<l.length;m++){var g=l[m];if(o-=g.duration,s){if(o>0)continue}else if(o-cl>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+Il({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},jl=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Rl=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Nl=function(e){var t=jl(e);return!e.disabled&&!t},Bl=function(e){return e.disabled},Ul=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},Fl=function(e,t){return t.attributes&&t.attributes[e]},$l=function(e,t,n,i){if(void 0===i&&(i=0),!Fl("BANDWIDTH",n))return NaN;var r=e*n.attributes.BANDWIDTH;return(r-8*i)/t},Hl=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!!Nl(e)&&(e.attributes.BANDWIDTH||0)<n})).length},Vl=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))))},zl=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]),i)break;if(i)break}return!!i},ql=function(e){if(!e||!e.playlists||!e.playlists.length){var t=zl(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));return t}for(var n=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;if(i&&i.split(",").every((function(e){return Y(e)})))return"continue";var r=zl(e,(function(e){return Vl(n,e)}));return r?"continue":{v:!1}},i=0;i<e.playlists.length;i++){var r=n(i);if("continue"!==r&&"object"===typeof r)return r.v}return!0},Wl={liveEdgeDelay:El,duration:Pl,seekable:Dl,getMediaInfoForTime:Ml,isEnabled:Nl,isDisabled:Bl,isBlacklisted:jl,isIncompatible:Rl,playlistEnd:Ll,isAes:Ul,hasAttribute:Fl,estimateSegmentRequestTime:$l,isLowestEnabledRendition:Hl,isAudioOnly:ql,playlistMatch:Vl},Gl=rl.log,Xl=function(e,t){return e+"-"+t},Yl=function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,l=e.experimentalLLHLS,u=new H;t&&u.on("warn",t),n&&u.on("info",n),a.forEach((function(e){return u.addParser(e)})),o.forEach((function(e){return u.addTagMapper(e)})),u.push(i),u.end();var c=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){c.hasOwnProperty(e)&&delete c[e]})),c.segments&&c.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!c.targetDuration){var d=10;c.segments&&c.segments.length&&(d=c.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),c.targetDuration=d}var h=kl(c);if(h.length&&!c.partTargetDuration){var p=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+p),Gl.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.")),c.partTargetDuration=p}return c},Kl=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]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))},Ql=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},Jl=function(e){var t=e.playlists.length;while(t--){var n=e.playlists[t];Ql({playlist:n,id:Xl(t,n.uri)}),n.resolvedUri=ol(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||Gl.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},Zl=function(e){Kl(e,(function(t){t.uri&&(t.resolvedUri=ol(e.uri,t.uri))}))},eu=function(e,t){var n=Xl(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:a.a.location.href,resolvedUri:a.a.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i},tu=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var i="placeholder-uri-"+n;e.playlists[n].uri=i}var r=ql(e);Kl(e,(function(t,n,i,a){var s="placeholder-uri-"+n+"-"+i+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===n&&!t.uri)for(var o=0;o<e.playlists.length;o++){var l=e.playlists[o];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===i)return}t.playlists=[u()({},t)]}t.playlists.forEach((function(t,n){var i=Xl(n,s);t.uri?t.resolvedUri=t.resolvedUri||ol(e.uri,t.uri):(t.uri=0===n?s:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),Jl(e),Zl(e)},nu=rl.mergeOptions,iu=rl.EventTarget,ru=function(e,t){if(t.endList)return e;var n=[];if(t.serverControl&&t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var a=i.parts||[],s=Cl(t)-1;s>-1&&s!==a.length-1&&n.push("_HLS_part="+s),(s>-1||a.length)&&r--}n.unshift("_HLS_msn="+r)}return t.serverControl&&t.serverControl.canSkipUntil&&n.unshift("_HLS_skip="+(t.serverControl.canSkipDateranges?"v2":"YES")),n.forEach((function(t,n){var i=0===n?"?":"&";e+=""+i+t})),e},au=function(e,t){if(!e)return t;var n=nu(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]=nu(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},su=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,s=[],o=0;o<r.length;o++){var l=i[o+n],u=r[o];l?(a=l.map||a,s.push(au(l,u))):(a&&!u.map&&(u.map=a),s.push(u))}return s},ou=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=ol(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ol(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ol(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=ol(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=ol(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=ol(t,e.uri))}))},lu=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},uu=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence},cu=function(e,t,n){void 0===n&&(n=uu);var i=nu(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=lu(t);var a=nu(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=su(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){ou(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,Kl(e,(function(e,n,i,r){if(e.playlists)for(var a=0;a<e.playlists.length;a++)t.id===e.playlists[a].id&&(e.playlists[a]=t)})),i},du=function(e,t){var n=e.segments[e.segments.length-1],i=n&&n.parts&&n.parts[n.parts.length-1],r=i&&i.duration||n&&n.duration;return t&&r?1e3*r:500*(e.partTargetDuration||e.targetDuration||10)},hu=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=ul("PlaylistLoader");var a=i,s=a.withCredentials,o=void 0!==s&&s,l=a.handleManifestRedirects,u=void 0!==l&&l;r.src=t,r.vhs_=n,r.withCredentials=o,r.handleManifestRedirects=u;var c=n.options_;return r.customTagParsers=c&&c.customTagParsers||[],r.customTagMappers=c&&c.customTagMappers||[],r.experimentalLLHLS=c&&c.experimentalLLHLS||!1,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(d()(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}p()(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=ol(this.master.uri,t.uri);this.experimentalLLHLS&&(n=ru(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url,i=e.manifestString;return Yl({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:i,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=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(),Ql({playlist:a,uri:i,id:r});var s=cu(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,s?(this.master=s,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(du(this.media(),!!s)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),a.a.clearTimeout(this.mediaUpdateTimeout),a.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(a.a.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=a.a.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,s=!this.media_||e.id!==this.media_.id,o=this.master.playlists[e.id];if(o&&o.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(du(e,!0)),s){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.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=ll(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(a.a.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_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=a.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=a.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;if(this.started=!0,"object"===typeof this.src)return this.src.uri||(this.src.uri=a.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);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: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=ll(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}}))},n.srcUri=function(){return"string"===typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,tu(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=lu(e),e.segments.forEach((function(t){ou(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||a.a.location.href;this.master=eu(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(iu),pu=rl.xhr,fu=rl.mergeOptions,mu=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*8*1e3))),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=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},gu=function(){var e=function e(t,n){t=fu({timeout:45e3},t);var i=e.beforeRequest||rl.Vhs.xhr.beforeRequest;if(i&&"function"===typeof i){var r=i(t);r&&(t=r)}var a=!0===rl.Vhs.xhr.original?pu:rl.Vhs.xhr,s=a(t,(function(e,t){return mu(s,e,t,n)})),o=s.abort;return s.abort=function(){return s.aborted=!0,o.apply(s,arguments)},s.uri=t.uri,s.requestTime=Date.now(),s};return e.original=!0,e},vu=function(e){var t=e.offset+e.length-1,n=e.offset;return"bytes="+n+"-"+t},yu=function(e){var t={};return e.byterange&&(t.Range=vu(e.byterange)),t},bu=function(e,t){return e.start(t)+"-"+e.end(t)},_u=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Tu=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Su=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},wu=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},ku=function(e){return e.resolvedUri},Cu=function(e){for(var t,n,i=Array.prototype.slice.call(e),r=16,a="",s=0;s<i.length/r;s++)t=i.slice(s*r,s*r+r).map(_u).join(""),n=i.slice(s*r,s*r+r).map(Tu).join(""),a+=t+" "+n+"\n";return a},Eu=function(e){var t=e.bytes;return Cu(t)},xu=function(e){var t,n="";for(t=0;t<e.length;t++)n+=bu(e,t)+" ";return n},Ou=Object.freeze({__proto__:null,createTransferableMessage:Su,initSegmentId:wu,segmentKeyId:ku,hexDump:Cu,tagDump:Eu,textRanges:xu}),Au=.25,Pu=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=t.videoTimingInfo.transmuxedPresentationStart,r=i+n,a=e-r;return new Date(t.dateTimeObject.getTime()+1e3*a)},Iu=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},Lu=function(e,t){var n;try{n=new Date(e)}catch(c){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){i=t.segments[r];var a=t.segments[r+1].dateTimeObject;if(n<a)break}var s=t.segments[t.segments.length-1],o=s.dateTimeObject,l=s.videoTimingInfo?Iu(s.videoTimingInfo):s.duration+s.duration*Au,u=new Date(o.getTime()+1e3*l);return n>u?null:(n>o&&(i=s),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Wl.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Du=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length;r++)if(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,e<=i)break;var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+a.duration*Au)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},Mu=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(s){}var r=n.getTime(),a=i.getTime();return(a-r)/1e3},ju=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){var n=e.segments[t];if(!n.dateTimeObject)return!1}return!0},Ru=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=Du(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=Pu(i,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},Nu=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,s=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,u=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof n||!i||!s)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!ju(i))return c({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=Lu(n,i);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,p=Mu(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(s(d.estimatedStart+p),void u.one("seeked",(function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:c})})));var f=h.start+p,m=function(){return c(null,u.currentTime())};u.one("seeked",m),l&&u.pause(),s(f)},Bu=function(e,t){if(4===e.readyState)return t()},Uu=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=Ct(r,kt(n,!0)),i=i||At(r),r.length<10||i&&r.length<i+2)return Bu(t,(function(){return s(e,t,"",r)}));var o=en(r);return"ts"===o&&r.length<188||!o&&r.length<376?Bu(t,(function(){return s(e,t,"",r)})):s(null,t,o,r)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,mu(e,null,{statusCode:e.status},o)}))}},u=t(l,(function(e,t){return mu(u,e,t,o)}));return u},Fu=rl.EventTarget,$u=rl.mergeOptions,Hu=function(e,t){if(!uu(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(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)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}}return!0},Vu=function(e){var t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=dt(t,{manifestUri:n,clientOffset:i,sidxMapping:r});return tu(a,n),a},zu=function(e,t,n){for(var i=!0,r=$u(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),a=0;a<t.playlists.length;a++){var s=t.playlists[a];if(s.sidx){var o=Se(s.sidx);n&&n[o]&&n[o].sidx&&Te(s,n[o].sidx,s.sidx.resolvedUri)}var l=cu(r,s,Hu);l&&(r=l,i=!1)}return Kl(t,(function(e,t,n,a){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,o=cu(r,e.playlists[0],Hu);o&&(r=o,r.mediaGroups[t][n][a].playlists[0]=r.playlists[s],i=!1)}})),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r},qu=function(e,t){var n=Boolean(!e.map&&!t.map),i=n||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length);return i&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},Wu=function(e,t){var n={};for(var i in e){var r=e[i],a=r.sidx;if(a){var s=Se(a);if(!t[s])break;var o=t[s].sidxInfo;qu(o,a)&&(n[s]=t[s])}}return n},Gu=function(e,t){var n=Wu(e.playlists,t),i=n;return Kl(e,(function(e,n,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;i=$u(i,Wu(s,t))}})),i},Xu=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),a=e.call(this)||this,a.masterPlaylistLoader_=r||d()(a),r||(a.isMaster_=!0);var s=i,o=s.withCredentials,l=void 0!==o&&o,u=s.handleManifestRedirects,c=void 0!==u&&u;if(a.vhs_=n,a.withCredentials=l,a.handleManifestRedirects=c,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=ul("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}p()(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!==typeof e||e instanceof 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)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&Se(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var s=ll(this.handleManifestRedirects,e.sidx.resolvedUri),o=function(a,s){if(!i.requestErrored_(a,s,t)){var o,l=i.masterPlaylistLoader_.sidxMapping_;try{o=ft()(yt(s.response).subarray(8))}catch(u){return void i.requestErrored_(u,s,t)}return l[r]={sidxInfo:e.sidx,sidx:o},Te(e,o,e.sidx.resolvedUri),n(!0)}};this.request=Uu(s,this.vhs_.xhr,(function(t,n,r,a){if(t)return o(t,n);if(!r||"mp4"!==r)return o({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var l=e.sidx.byterange,u=l.offset,c=l.length;if(a.length>=c+u)return o(t,{response:a.subarray(u,u+c),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:yu({byterange:e.sidx.byterange})},o)}))}else this.mediaRequest_=a.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},a.a.clearTimeout(this.minimumUpdatePeriodTimeout_),a.a.clearTimeout(this.mediaRequest_),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=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_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(a.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=a.a.setTimeout((function(){return t.load()}),i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=a.a.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=ll(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=ht(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:ol(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=Vu({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_}),t=this.masterPlaylistLoader_.master;t&&(e=zu(t,e,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=e||t;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!t||e&&e.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(e)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(a.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;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 "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=a.a.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=Gu(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){var r=function e(){t.media().endList||(t.mediaUpdateTimeout=a.a.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),du(t.media(),Boolean(i))))};r()}this.trigger("loadedplaylist")},t}(Fu),Yu={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},Ku=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},Qu=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Ju=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())}},Zu=function(e){return function(){var t=Ju(e),n=Qu(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}},ec=function(e){return"var browserWorkerPolyFill = "+Qu.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},tc=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},nc=ec(tc((function(){var e=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],n)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={}}}};e.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},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,n,i,r,a,s,o,l,u,c,d,h,p,f,m,g,v,y,b,_,T,S,w,k,C,E,x,O,A,P,I,L,D,M,j,R,N=e,B=Math.pow(2,32)-1;(function(){var e;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:[]},"undefined"!==typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),x=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]),O=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]),A={video:x,audio:O},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),M=D,j=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=D,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),t=function(e){var t,n,i,r=[],a=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);t=r.length;while(t--)a+=r[t].byteLength;for(n=new Uint8Array(a+8),i=new DataView(n.buffer,n.byteOffset,n.byteLength),i.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<r.length;t++)n.set(r[t],a),a+=r[t].byteLength;return n},n=function(){return t(w.dinf,t(w.dref,L))},i=function(e){return t(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]))},r=function(){return t(w.ftyp,k,C,k,E)},g=function(e){return t(w.hdlr,A[e])},a=function(e){return t(w.mdat,e)},m=function(e){var n=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&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(w.mdhd,n)},f=function(e){return t(w.mdia,m(e),g(e.type),o(e))},s=function(e){return t(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return t(w.minf,"video"===e.type?t(w.vmhd,P):t(w.smhd,I),n(),y(e))},l=function(e,n){var i=[],r=n.length;while(r--)i[r]=_(n[r]);return t.apply(null,[w.moof,s(e)].concat(i))},u=function(e){var n=e.length,i=[];while(n--)i[n]=h(e[n]);return t.apply(null,[w.moov,d(4294967295)].concat(i).concat(c(e)))},c=function(e){var n=e.length,i=[];while(n--)i[n]=T(e[n]);return t.apply(null,[w.mvex].concat(i))},d=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&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 t(w.mvhd,n)},v=function(e){var n,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(w.sdtp,a)},y=function(e){return t(w.stbl,b(e),t(w.stts,R),t(w.stsc,M),t(w.stsz,j),t(w.stco,D))},function(){var e,n;b=function(i){return t(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?e(i):n(i))},e=function(e){var n,i,r=e.sps||[],a=e.pps||[],s=[],o=[];for(n=0;n<r.length;n++)s.push((65280&r[n].byteLength)>>>8),s.push(255&r[n].byteLength),s=s.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)o.push((65280&a[n].byteLength)>>>8),o.push(255&a[n].byteLength),o=o.concat(Array.prototype.slice.call(a[n]));if(i=[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]),t(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),t(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];i.push(t(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,i)},n=function(e){return t(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]),i(e))}}(),p=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&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 t(w.tkhd,n)},_=function(e){var n,i,r,a,s,o,l;return n=t(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&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])),o=Math.floor(e.baseMediaDecodeTime/(B+1)),l=Math.floor(e.baseMediaDecodeTime%(B+1)),i=t(w.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),s=92,"audio"===e.type?(r=S(e,s),t(w.traf,n,i,r)):(a=v(e),r=S(e,a.length+s),t(w.traf,n,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(w.trak,p(e),f(e))},T=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&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&&(n[n.length-1]=0),t(w.trex,n)},function(){var e,n,i;i=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,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},n=function(e,n){var r,a,s,o,l,u;for(o=e.samples||[],n+=20+16*o.length,s=i(o,n),a=new Uint8Array(s.length+16*o.length),a.set(s),r=s.length,u=0;u<o.length;u++)l=o[u],a[r++]=(4278190080&l.duration)>>>24,a[r++]=(16711680&l.duration)>>>16,a[r++]=(65280&l.duration)>>>8,a[r++]=255&l.duration,a[r++]=(4278190080&l.size)>>>24,a[r++]=(16711680&l.size)>>>16,a[r++]=(65280&l.size)>>>8,a[r++]=255&l.size,a[r++]=l.flags.isLeading<<2|l.flags.dependsOn,a[r++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,a[r++]=61440&l.flags.degradationPriority,a[r++]=15&l.flags.degradationPriority,a[r++]=(4278190080&l.compositionTimeOffset)>>>24,a[r++]=(16711680&l.compositionTimeOffset)>>>16,a[r++]=(65280&l.compositionTimeOffset)>>>8,a[r++]=255&l.compositionTimeOffset;return t(w.trun,a)},e=function(e,n){var r,a,s,o,l,u;for(o=e.samples||[],n+=20+8*o.length,s=i(o,n),r=new Uint8Array(s.length+8*o.length),r.set(s),a=s.length,u=0;u<o.length;u++)l=o[u],r[a++]=(4278190080&l.duration)>>>24,r[a++]=(16711680&l.duration)>>>16,r[a++]=(65280&l.duration)>>>8,r[a++]=255&l.duration,r[a++]=(4278190080&l.size)>>>24,r[a++]=(16711680&l.size)>>>16,r[a++]=(65280&l.size)>>>8,r[a++]=255&l.size;return t(w.trun,r)},S=function(t,i){return"audio"===t.type?e(t,i):n(t,i)}}();var U,F,$,H,V,z,q,W,G={ftyp:r,mdat:a,moof:l,moov:u,initSegment:function(e){var t,n=r(),i=u(e);return t=new Uint8Array(n.byteLength+i.byteLength),t.set(n),t.set(i,n.byteLength),t}},X=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++)n=e[t],"access_unit_delimiter_rbsp"===n.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],i.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},Y=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],n.keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),i=[n],i.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},K=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},Q=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},J=function(e,t){var n=Q();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},Z=function(e,t){var n,i,r,a,s,o=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)s=a[i],r=J(s,o),o+=r.size,l.push(r);return l},ee=function(e){var t,n,i,r,a,s,o=0,l=e.byteLength,u=e.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.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],h.setUint32(o,s.data.byteLength),o+=4,d.set(s.data,o),o+=s.data.byteLength;return d},te=function(e,t){var n,i=t||0,r=[];return n=J(e,i),r.push(n),r},ne=function(e){var t,n,i=0,r=e.byteLength,a=e.length,s=r+4*a,o=new Uint8Array(s),l=new DataView(o.buffer);for(t=0;t<e.length;t++)n=e[t],l.setUint32(i,n.data.byteLength),i+=4,o.set(n.data,i),i+=n.data.byteLength;return o},ie={groupNalsIntoFrames:X,groupFramesIntoGops:Y,extendFirstKeyFrame:K,generateSampleTable:Z,concatenateNalData:ee,generateSampleTableForFrame:te,concatenateNalDataForFrame:ne},re=[33,16,5,32,164,27],ae=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],se=function(e){var t=[];while(e--)t.push(0);return t},oe=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})},le=function(){if(!U){var e={96e3:[re,[227,64],se(154),[56]],88200:[re,[231],se(170),[56]],64e3:[re,[248,192],se(240),[56]],48e3:[re,[255,192],se(268),[55,148,128],se(54),[112]],44100:[re,[255,192],se(268),[55,163,128],se(84),[112]],32e3:[re,[255,192],se(268),[55,234],se(226),[112]],24e3:[re,[255,192],se(268),[55,255,128],se(268),[111,112],se(126),[224]],16e3:[re,[255,192],se(268),[55,255,128],se(268),[111,255],se(269),[223,108],se(195),[1,192]],12e3:[ae,se(268),[3,127,248],se(268),[6,255,240],se(268),[13,255,224],se(268),[27,253,128],se(259),[56]],11025:[ae,se(268),[3,127,248],se(268),[6,255,240],se(268),[13,255,224],se(268),[27,255,192],se(268),[55,175,128],se(108),[112]],8e3:[ae,se(268),[3,121,16],se(47),[7]]};U=oe(e)}return U},ue=9e4;F=function(e){return e*ue},$=function(e,t){return e*t},H=function(e){return e/ue},V=function(e,t){return e/t},z=function(e,t){return F(V(e,t))},q=function(e,t){return $(H(e),t)},W=function(e,t,n){return H(n?e:e-t)};var ce={ONE_SECOND_IN_TS:ue,secondsToVideoTs:F,secondsToAudioTs:$,videoTsToSeconds:H,audioTsToSeconds:V,audioTsToVideoTs:z,videoTsToAudioTs:q,metadataTsToSeconds:W},de=function(e){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],i+=n.data.byteLength;return i},he=function(e,t,n,i){var r,a,s,o,l=0,u=0,c=0,d=0;if(t.length&&(r=ce.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(ce.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),c=Math.floor(u/l),d=c*l),!(c<1||d>ce.ONE_SECOND_IN_TS/2))){for(a=le()[e.samplerate],a||(a=t[0].data),s=0;s<c;s++)o=t[0],t.splice(0,0,{data:a,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(ce.videoTsToAudioTs(d,e.samplerate)),d}},pe=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},fe=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},me=function(e){var t,n,i=0,r=new Uint8Array(de(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},ge={prefixWithSilence:he,trimAdtsFramesByEarliestDts:pe,generateSampleTable:fe,concatenateFrameData:me},ve=ce.ONE_SECOND_IN_TS,ye=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))},be=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},_e=function(e,t){var n,i,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(i=e.samplerate/ve,n*=i,n=Math.floor(n)),n},Te={clearDtsInfo:be,calculateTrackBaseMediaDecodeTime:_e,collectDtsInfo:ye},Se=4,we=128,ke=function(e){var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;while(t<e.byteLength){if(e[t]===we)break;while(255===e[t])i+=255,t++;i+=e[t++];while(255===e[t])r+=255,t++;if(r+=e[t++],!n.payload&&i===Se){var a=String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6]);if("GA94"===a){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},Ce=function(e){return 181!==e.payload[0]||49!==(e.payload[1]<<8|e.payload[2])||"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)},Ee=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++)r=3*n,a={type:3&t[r+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s},xe=function(e){var t,n,i=e.byteLength,r=[],a=1;while(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;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},Oe={parseSei:ke,parseUserData:Ce,parseCaptionPackets:Ee,discardEmulationPreventionBytes:xe,USER_DATA_REGISTERED_ITU_T_T35:Se},Ae=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!==typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new $e(0,0),new $e(0,1),new $e(1,0),new $e(1,1)],this.parse708captions_&&(this.cc708Stream_=new je),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")))};Ae.prototype=new N,Ae.prototype.push=function(e){var t,n,i;if("sei_rbsp"===e.nalUnitType&&(t=Oe.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Oe.USER_DATA_REGISTERED_ITU_T_T35&&(n=Oe.parseUserData(t),n)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Oe.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ae.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Ae.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)):this.flushCCStreams(e)},Ae.prototype.flush=function(){return this.flushStream("flush")},Ae.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ae.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Ae.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)},Ae.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},Ae.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)},Ae.prototype.setsTextOrXDSActive=function(e){return 256===(28928&e.ccData)||4138===(30974&e.ccData)||6186===(30974&e.ccData)},Ae.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Pe={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},Ie=function(e){var t=Pe[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},Le=function(e){return 32<=e&&e<=127||160<=e&&e<=255},De=function(e){this.windowNum=e,this.reset()};De.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},De.prototype.getText=function(){return this.rows.join("\n")},De.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},De.prototype.newLine=function(e){this.rows.length>=this.virtualRowCount&&"function"===typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);while(this.rows.length>this.virtualRowCount)this.rows.shift(),this.rowIdx--},De.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},De.prototype.addText=function(e){this.rows[this.rowIdx]+=e},De.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Me=function(e){this.serviceNum=e,this.text="",this.currentWindow=new De(-1),this.windows=[]};Me.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new De(n),"function"===typeof t&&(this.windows[n].beforeRowOverflow=t)},Me.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var je=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(t.new708Packet(),t.add708Bytes(e)):(null===t.current708Packet&&t.new708Packet(),t.add708Bytes(e))}};je.prototype=new N,je.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},je.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},je.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++)a=t[r++],n=a>>5,i=31&a,7===n&&i>0&&(a=t[r++],n=a),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},je.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++)i=a[r],Le(i)?r=this.handleText(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++},je.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data,i=n[++e];return Le(i)&&(e=this.handleText(e,t,!0)),e},je.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},je.prototype.initService=function(e,t){var n=this;return this.services[e]=new Me(e),this.services[e].init(this.getPts(t),(function(t){n.flushDisplayed(t,n.services[e])})),this.services[e]},je.prototype.handleText=function(e,t,n){var i=this.current708Packet.data,r=i[e],a=n?4096:0,s=Ie(a|r),o=t.currentWindow;return o.pendingNewLine&&!o.isEmpty()&&o.newLine(this.getPts(e)),o.pendingNewLine=!1,o.addText(s),e},je.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;return t.setCurrentWindow(r),e},je.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},je.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>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,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},je.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},je.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},je.prototype.displayWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible=1);return e},je.prototype.hideWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible=0);return e},je.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible^=1);return e},je.prototype.clearWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&t.windows[a].clearText();return e},je.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&t.windows[a].reset();return e},je.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},je.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},je.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},je.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Re={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},Ne=function(e){return null===e?"":(e=Re[e]||e,String.fromCharCode(e))},Be=14,Ue=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Fe=function(){var e=[],t=Be+1;while(t--)e.push("");return e},$e=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if(t=32639&e.ccData,t!==this.lastControlCode_){if(4096===(61440&t)?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_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Fe();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Fe();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Fe()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=Ne(i|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=(3&i)<<8,a=Ne(i|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===(14&r)&&this.addFormatting(e.pts,["i"]),1===(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var s=Ue.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=Ne(i),a+=Ne(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};$e.prototype=new N,$e.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(n){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},$e.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Fe(),this.nonDisplayed_=Fe(),this.lastControlCode_=null,this.column_=0,this.row_=Be,this.rollUpRows_=2,this.formatting_=[]},$e.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_},$e.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},$e.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},$e.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},$e.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},$e.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},$e.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},$e.prototype.isNormalChar=function(e){return e>=32&&e<=127},$e.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=Be,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Fe(),this.displayed_=Fe()),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]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},$e.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)},$e.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)}},$e.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},$e.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},$e.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<Be+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},$e.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var He={CaptionStream:Ae,Cea608Stream:$e,Cea708Stream:je},Ve={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},ze=8589934592,qe=4294967296,We="shared",Ge=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>qe)e+=n*ze;return e},Xe=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||We,this.push=function(e){this.type_!==We&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Ge(e.dts,i),e.pts=Ge(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Xe.prototype=new N;var Ye,Ke={TimestampRolloverStream:Xe,handleRollover:Ge},Qe=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Je=function(e,t,n){return decodeURIComponent(Qe(e,t,n))},Ze=function(e,t,n){return unescape(Qe(e,t,n))},et=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tt={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Je(e.data,1,t),e.value=Je(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Je(e.data,1,t),e.url=Je(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ze(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ye=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(Ye.prototype.init.call(this),this.dispatchType=Ve.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,l,u;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=et(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<i;)t.data.set(r[0].data.subarray(0,i-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=et(t.data.subarray(10,14)),i-=et(t.data.subarray(16,20)));do{if(s=et(t.data.subarray(n+4,n+8)),s<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if(u=String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),o={id:u,data:t.data.subarray(n+10,n+s+10)},o.key=o.id,tt[o.id]&&(tt[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner)){var c=o.data,d=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;d*=4,d+=3&c[7],o.timeStamp=d,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)}}},Ye.prototype=new N;var nt,it,rt,at=Ye,st=Ke.TimestampRolloverStream,ot=188,lt=71;nt=function(){var e=new Uint8Array(ot),t=0;nt.prototype.init.call(this),this.push=function(n){var i,r=0,a=ot;t?(i=new Uint8Array(n.byteLength+t),i.set(e.subarray(0,t)),i.set(n,t),t=0):i=n;while(a<i.byteLength)i[r]!==lt||i[a]!==lt?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=ot,a+=ot);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===ot&&e[0]===lt&&(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")}},nt.prototype=new N,it=function(){var e,t,n,i;it.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,a,s;if(1&e[5]){i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],r=3+n-4,a=(15&e[10])<<8|e[11],s=12+a;while(s<r){var o=e[s],l=(31&e[s+1])<<8|e[s+2];o===Ve.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=l:o===Ve.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=l:o===Ve.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][l]=o),s+=5+((15&e[s+3])<<8|e[s+4])}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){n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else 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=Ve.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ve.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},it.prototype=new N,it.STREAM_TYPES={h264:27,adts:15},rt=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=0!==(4&e[6]),n=e[7],192&n&&(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},l=0,u=0,c=!1;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,l=0;l<e.data.length;l++)r=e.data[l],a.set(r.data,u),u+=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)}};rt.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case Ve.H264_STREAM_TYPE:e=i,t="video";break;case Ve.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ve.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:[]};e=s.programMapTable,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"}),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")}},rt.prototype=new N;var ut={PAT_PID:0,MP2T_PACKET_LENGTH:ot,TransportPacketStream:nt,TransportParseStream:it,ElementaryStream:rt,TimestampRolloverStream:st,CaptionStream:He.CaptionStream,Cea608Stream:He.Cea608Stream,Cea708Stream:He.Cea708Stream,MetadataStream:at};for(var ct in Ve)Ve.hasOwnProperty(ct)&&(ut[ct]=Ve[ct]);var dt,ht=ut,pt=ce.ONE_SECOND_IN_TS,ft=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];dt=function(e){var t,n=0;dt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,s,o,l,u=0;if(e||(n=0),"audio"===i.type){var c;t&&t.length?(s=t,t=new Uint8Array(s.byteLength+i.data.byteLength),t.set(s),t.set(i.data,s.byteLength)):t=i.data;while(u+7<t.length)if(255===t[u]&&240===(246&t[u+1])){if("number"===typeof c&&(this.skipWarn_(c,u),c=null),a=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,o=1024*(1+(3&t[u+6])),l=o*pt/ft[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:ft[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),n++,u+=r}else"number"!==typeof c&&(c=u),u++;"number"===typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},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")}},dt.prototype=new N;var mt,gt=dt;mt=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 new 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?(n<<=e,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,i>0?n<<=r:t>0&&this.loadWord(),r=e-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(0!==(n&2147483648>>>e))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()};var vt,yt,bt,_t=mt;yt=function(){var e,t,n=0;yt.prototype.init.call(this),this.push=function(i){var r;t?(r=new Uint8Array(t.byteLength+i.data.byteLength),r.set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}while(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;break}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")}},yt.prototype=new N,bt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},vt=function(){var e,t,n,i,r,a,s,o=new yt;vt.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";break}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,r=8,a=8;for(n=0;n<e;n++)0!==a&&(i=t.readExpGolomb(),a=(r+i+256)%256),r=0===a?r:a},r=function(e){var t,n,i=e.byteLength,r=[],a=1;while(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;t=i-r.length,n=new Uint8Array(t);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,l,u,c,d,h,p,f,m=0,g=0,v=0,y=0,b=[1,1];if(t=new _t(e),n=t.readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),bt[n]&&(a=t.readUnsignedExpGolomb(),3===a&&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()&&s(f<6?16:64,t);if(t.skipUnsignedExpGolomb(),o=t.readUnsignedExpGolomb(),0===o)t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),f=0;f<l;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),d=t.readBits(1),0===d&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(p=t.readUnsignedByte(),p){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}b&&(b[0],b[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(u+1)-2*m-2*g,height:(2-d)*(c+1)*16-2*v-2*y,sarRatio:b}}},vt.prototype=new N;var Tt,St={H264Stream:vt,NalByteStream:yt},wt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],kt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],i=e[t+5],r=(16&i)>>4;return n=n>=0?n:0,r?n+20:n+10},Ct=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:(n+=kt(t,n),e(t,n))},Et=function(e){var t=Ct(e,0);return e.length>=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},xt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ot=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},At=function(e,t,n){return unescape(Ot(e,t,n))},Pt=function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3,r=6144&e[t+3];return r|i|n},It=function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},Lt=function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return wt[(60&e[t+2])>>>2];t++}return null},Dt=function(e){var t,n,i,r;t=10,64&e[5]&&(t+=4,t+=xt(e.subarray(10,14)));do{if(n=xt(e.subarray(t+4,t+8)),n<1)return null;if(r=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===r){i=e.subarray(t+10,t+n+10);for(var a=0;a<i.byteLength;a++)if(0===i[a]){var s=At(i,0,a);if("com.apple.streaming.transportStreamTimestamp"===s){var o=i.subarray(a+1),l=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return l*=4,l+=3&o[7],l}break}}t+=10,t+=n}while(t<e.byteLength);return null},Mt={isLikelyAacData:Et,parseId3TagSize:kt,parseAdtsSize:Pt,parseType:It,parseSampleRate:Lt,parseAacTimestamp:Dt};Tt=function(){var e=new Uint8Array,t=0;Tt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,s,o=0,l=0;e.length?(s=e.length,e=new Uint8Array(n.byteLength+s),e.set(e.subarray(0,s)),e.set(n,s)):e=n;while(e.length-l>=3)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!==(255&e[l])||240!==(240&e[l+1]))l++;else{if(e.length-l<7)break;if(o=Mt.parseAdtsSize(e,l),l+o>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else{if(e.length-l<10)break;if(o=Mt.parseId3TagSize(e,l),l+o>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Tt.prototype=new N;var jt,Rt,Nt,Bt,Ut=Tt,Ft=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],$t=Ft,Ht=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Vt=Ht,zt=St.H264Stream,qt=Mt.isLikelyAacData,Wt=ce.ONE_SECOND_IN_TS,Gt=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},Xt=function(e,t,n,i,r,a){var s=n-t,o=i-t,l=r-n;return{start:{dts:e,pts:e+s},end:{dts:e+o,pts:e+l},prependedContentDuration:a,baseMediaDecodeTime:e}};Rt=function(e,t){var n,i=[],r=0,a=0,s=1/0;t=t||{},n=t.firstSequenceNumber||0,Rt.prototype.init.call(this),this.push=function(t){Te.collectDtsInfo(e,t),e&&$t.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,l,u,c,d,h,p;0!==i.length?(o=ge.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=Te.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=ge.prefixWithSilence(e,o,a,s),e.samples=ge.generateSampleTable(o),u=G.mdat(ge.concatenateFrameData(o)),i=[],l=G.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),Te.clearDtsInfo(e),d=Math.ceil(1024*Wt/e.samplerate),o.length&&(h=o.length*d,this.trigger("segmentTimingInfo",Xt(ce.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,p||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.trigger("done","AudioSegmentStream")},this.reset=function(){Te.clearDtsInfo(e),i=[],this.trigger("reset")}},Rt.prototype=new N,jt=function(e,t){var n,i,r,a=[],s=[];t=t||{},n=t.firstSequenceNumber||0,jt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Te.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],Vt.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(){var i,r,o,l,u,c,d,h,p=0;while(a.length){if("access_unit_delimiter_rbsp"===a[0].nalUnitType)break;a.shift()}if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=ie.groupNalsIntoFrames(a),o=ie.groupFramesIntoGops(i),o[0][0].keyFrame||(r=this.getGopForFusion_(a[0],e),r?(p=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=ie.extendFirstKeyFrame(o)),s.length){var f;if(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o),!f)return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Te.clearDtsInfo(e),o=f}Te.collectDtsInfo(e,o),e.samples=ie.generateSampleTable(o),u=G.mdat(ie.concatenateNalData(o)),e.baseMediaDecodeTime=Te.calculateTrackBaseMediaDecodeTime(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",Xt(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),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),l=G.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.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(){Te.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,s,o=45e3,l=1e4,u=1/0;for(s=0;s<this.gopCache_.length;s++)a=this.gopCache_[s],r=a.gop,e.pps&&Gt(e.pps[0],a.pps[0])&&e.sps&&Gt(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration,n>=-l&&n<=o&&(!i||u>n)&&(i=a,u=n)));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,o,l,u;a=e.byteLength,o=e.nalCount,l=e.duration,t=n=0;while(t<s.length&&n<e.length){if(i=s[t],r=e[n],i.pts===r.pts)break;r.pts>i.pts?t++:(n++,a-=r.byteLength,o-=r.nalCount,l-=r.duration)}return 0===n?e:n===e.length?null:(u=e.slice(n),u.byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,o,l;t=s.length-1,n=e.length-1,a=null,o=!1;while(t>=0&&n>=0){if(i=s[t],r=e[n],i.pts===r.pts){o=!0;break}i.pts>r.pts?t--:(t===s.length-1&&(a=n),n--)}if(!o&&null===a)return null;if(l=o?n:a,0===l)return e;var u=e.slice(l),c=u.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 u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}},jt.prototype=new N,Bt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},"undefined"!==typeof 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,Bt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},Bt.prototype=new N,Bt.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;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Vt.forEach((function(e){s.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,$t.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,i=G.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(i.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],t.startTime=ce.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=ce.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)n=this.pendingMetadata[r],n.cueTime=ce.metadataTsToSeconds(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)},Bt.prototype.setRemux=function(e){this.remuxTracks=e},Nt=function(e){var t,n,i=this,r=!0;Nt.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 ht.MetadataStream,r.aacStream=new Ut,r.audioTimestampRolloverStream=new ht.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ht.TimestampRolloverStream("timed-metadata"),r.adtsStream=new gt,r.coalesceStream=new Bt(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 Rt(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"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ht.MetadataStream,r.packetStream=new ht.TransportPacketStream,r.parseStream=new ht.TransportParseStream,r.elementaryStream=new ht.ElementaryStream,r.timestampRolloverStream=new ht.TimestampRolloverStream,r.adtsStream=new gt,r.h264Stream=new zt,r.captionStream=new ht.CaptionStream(e),r.coalesceStream=new Bt(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){s=a.tracks.length;while(s--)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||(n=a.tracks[s],n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s],t.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime);t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new jt(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 Rt(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"))},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Te.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Te.clearDtsInfo(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=qt(e);if(t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var n=Object.keys(this.transmuxPipeline_),i=0;i<n.length;i++){var a=n[i];"headOfPipeline"!==a&&this.transmuxPipeline_[a].on&&this.transmuxPipeline_[a].on("log",this.getLogTrigger_(a))}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()}},Nt.prototype=new N;var Yt,Kt,Qt,Jt,Zt,en,tn={Transmuxer:Nt,VideoSegmentStream:jt,AudioSegmentStream:Rt,AUDIO_PROPERTIES:$t,VIDEO_PROPERTIES:Vt,generateSegmentTimingInfo:Xt},nn=function(e){return e>>>0},rn=function(e){return("00"+e.toString(16)).slice(-2)},an={toUnsigned:nn,toHexString:rn},sn=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]),t},on=sn,ln=an.toUnsigned,un=function e(t,n){var i,r,a,s,o,l=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=ln(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=on(t.subarray(i+4,i+8)),s=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(i+8,s)):(o=e(t.subarray(i+8,s),n.slice(1)),o.length&&(l=l.concat(o)))),i=s;return l},cn=un,dn=an.toUnsigned,hn=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:dn(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=dn(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},pn=hn,fn=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]}},mn=fn,gn=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],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:mn(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);while(c--)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=mn(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},vn=gn,yn=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],l=32&i.flags[2],u=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),l&&(i.defaultSampleFlags=n.getUint32(t)),u&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i},bn=yn,_n=Oe.discardEmulationPreventionBytes,Tn=He.CaptionStream,Sn=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},wn=function(e,t,n){var i,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={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 u=e.subarray(r+1,r+1+a),c=Sn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:_n(u),trackId:n},c)i.pts=c.pts,i.dts=c.dts,s=c;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=s.pts,i.dts=s.dts}l.seiNals.push(i);break}return l},kn=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=vn(e),n=t.samples;n.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),e.pts=i+e.compositionTimeOffset,i+=e.duration})),o=o.concat(n)})),o},Cn=function(e,t){var n=cn(e,["moof","traf"]),i=cn(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,a=e.mdat,s=e.traf,o=cn(s,["tfhd"]),l=bn(o[0]),u=l.trackId,c=cn(s,["tfdt"]),d=c.length>0?pn(c[0]).baseMediaDecodeTime:0,h=cn(s,["trun"]);t===u&&h.length>0&&(n=kn(h,d,l),i=wn(a,n,u),r[u]||(r[u]={seiNals:[],logs:[]}),r[u].seiNals=r[u].seiNals.concat(i.seiNals),r[u].logs=r[u].logs.concat(i.logs))})),r},En=function(e,t,n){var i;if(null===t)return null;i=Cn(e,t);var r=i[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}},xn=function(){var e,t,n,i,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new Tn,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&&"object"===typeof t&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))n=a[0],i=s[n];else if(null===n||!i)return t.push(e),null;while(t.length>0){var l=t.shift();this.parse(l,a,s)}return o=En(e,n,i),o&&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:[],captionStreams:[]}: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()},On=xn,An=an.toUnsigned,Pn=an.toHexString;Yt=function(e){var t={},n=cn(e,["moov","trak"]);return n.reduce((function(e,t){var n,i,r,a,s;return n=cn(t,["tkhd"])[0],n?(i=n[0],r=0===i?12:20,a=An(n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),s=cn(t,["mdia","mdhd"])[0],s?(i=s[0],r=0===i?12:20,e[a]=An(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]),e):null):null}),t)},Kt=function(e,t){var n,i,r;return n=cn(t,["moof","traf"]),i=[].concat.apply([],n.map((function(t){return cn(t,["tfhd"]).map((function(n){var i,r,a;return i=An(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),r=e[i]||9e4,a=cn(t,["tfdt"]).map((function(e){var t,n;return t=e[0],n=An(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=An(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n}))[0],a="number"!==typeof a||isNaN(a)?1/0:a,a/r}))}))),r=Math.min.apply(null,i),isFinite(r)?r:0},Qt=function(e,t){var n,i=cn(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var s=cn(i[0],["tfhd"])[0],o=cn(i[0],["trun"])[0],l=cn(i[0],["tfdt"])[0];if(s){var u=bn(s);n=u.trackId}if(l){var c=pn(l);r=c.baseMediaDecodeTime}if(o){var d=vn(o);d.samples&&d.samples.length&&(a=d.samples[0].compositionTimeOffset||0)}}var h=e[n]||9e4;return(r+a)/h},Jt=function(e){var t=cn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t=cn(e,["mdia","hdlr"]),i=cn(e,["tkhd"]);t.forEach((function(e,t){var r,a,s,o=on(e.subarray(8,12)),l=i[t];"vide"===o&&(r=new DataView(l.buffer,l.byteOffset,l.byteLength),a=r.getUint8(0),s=0===a?r.getUint32(12):r.getUint32(20),n.push(s))}))})),n},en=function(e){var t=e[0],n=0===t?12:20;return An(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])},Zt=function(e){var t=cn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=cn(e,["tkhd"])[0];a&&(t=new DataView(a.buffer,a.byteOffset,a.byteLength),i=t.getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var s=cn(e,["mdia","hdlr"])[0];if(s){var o=on(s.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=cn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=on(u.subarray(4,8));var c,d,h=cn(u,[r.codec])[0];h&&(/^[a-z]vc[1-9]$/i.test(r.codec)?(c=h.subarray(78),d=on(c.subarray(4,8)),"avcC"===d&&c.length>11?(r.codec+=".",r.codec+=Pn(c[9]),r.codec+=Pn(c[10]),r.codec+=Pn(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=h.subarray(28),d=on(c.subarray(4,8)),"esds"===d&&c.length>20&&0!==c[19]?(r.codec+="."+Pn(c[19]),r.codec+="."+Pn(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var p=cn(e,["mdia","mdhd"])[0];p&&(r.timescale=en(p)),n.push(r)})),n};var In={findBox:cn,parseType:on,timescale:Yt,startTime:Kt,compositionStartTime:Qt,videoTrackIds:Jt,tracks:Zt,getTimescaleFromMediaHeader:en},Ln=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},Dn=function(e){return!!(64&e[1])},Mn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},jn=function(e,t){var n=Ln(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},Rn=function(e){var t=Dn(e),n=4+Mn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},Nn=function(e){var t={},n=Dn(e),i=4+Mn(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r,a,s;r=(15&e[i+1])<<8|e[i+2],a=3+r-4,s=(15&e[i+10])<<8|e[i+11];var o=12+s;while(o<a){var l=i+o;t[(31&e[l+1])<<8|e[l+2]]=e[l],o+=5+((15&e[l+3])<<8|e[l+4])}return t}},Bn=function(e,t){var n=Ln(e),i=t[n];switch(i){case Ve.H264_STREAM_TYPE:return"video";case Ve.ADTS_STREAM_TYPE:return"audio";case Ve.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Un=function(e){var t=Dn(e);if(!t)return null;var n=4+Mn(e);if(n>=e.byteLength)return null;var i,r=null;return i=e[n+7],192&i&&(r={},r.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,r.pts*=4,r.pts+=(6&e[n+13])>>>1,r.dts=r.pts,64&i&&(r.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,r.dts*=4,r.dts+=(6&e[n+18])>>>1)),r},Fn=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}},$n=function(e){for(var t,n=4+Mn(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}while(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&&(t=Fn(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(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}t=Fn(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0),a=r-2,r+=3;break;default:r+=3;break}return i=i.subarray(a),r-=a,a=0,i&&i.byteLength>3&&(t=Fn(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0)),s},Hn={parseType:jn,parsePat:Rn,parsePmt:Nn,parsePayloadUnitStartIndicator:Dn,parsePesType:Bn,parsePesTime:Un,videoPacketContainsKeyFrame:$n},Vn=Ke.handleRollover,zn={};zn.ts=Hn,zn.aac=Mt;var qn=ce.ONE_SECOND_IN_TS,Wn=188,Gn=71,Xn=function(e,t){var n,i,r=0,a=Wn;while(a<e.byteLength)if(e[r]!==Gn||e[a]!==Gn)r++,a++;else{switch(n=e.subarray(r,a),i=zn.ts.parseType(n,t.pid),i){case"pat":t.pid=zn.ts.parsePat(n);break;case"pmt":var s=zn.ts.parsePmt(n);t.table=t.table||{},Object.keys(s).forEach((function(e){t.table[e]=s[e]}));break}r+=Wn,a+=Wn}},Yn=function(e,t,n){var i,r,a,s,o,l=0,u=Wn,c=!1;while(u<=e.byteLength)if(e[l]!==Gn||e[u]!==Gn&&u!==e.byteLength)l++,u++;else{switch(i=e.subarray(l,u),r=zn.ts.parseType(i,t.pid),r){case"pes":a=zn.ts.parsePesType(i,t.table),s=zn.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&s&&(o=zn.ts.parsePesTime(i),o&&(o.type="audio",n.audio.push(o),c=!0));break}if(c)break;l+=Wn,u+=Wn}u=e.byteLength,l=u-Wn,c=!1;while(l>=0)if(e[l]!==Gn||e[u]!==Gn&&u!==e.byteLength)l--,u--;else{switch(i=e.subarray(l,u),r=zn.ts.parseType(i,t.pid),r){case"pes":a=zn.ts.parsePesType(i,t.table),s=zn.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&s&&(o=zn.ts.parsePesTime(i),o&&(o.type="audio",n.audio.push(o),c=!0));break}if(c)break;l-=Wn,u-=Wn}},Kn=function(e,t,n){var i,r,a,s,o,l,u,c,d=0,h=Wn,p=!1,f={data:[],size:0};while(h<e.byteLength)if(e[d]!==Gn||e[h]!==Gn)d++,h++;else{switch(i=e.subarray(d,h),r=zn.ts.parseType(i,t.pid),r){case"pes":if(a=zn.ts.parsePesType(i,t.table),s=zn.ts.parsePayloadUnitStartIndicator(i),"video"===a&&(s&&!p&&(o=zn.ts.parsePesTime(i),o&&(o.type="video",n.video.push(o),p=!0)),!n.firstKeyFrame)){if(s&&0!==f.size){l=new Uint8Array(f.size),u=0;while(f.data.length)c=f.data.shift(),l.set(c,u),u+=c.byteLength;if(zn.ts.videoPacketContainsKeyFrame(l)){var m=zn.ts.parsePesTime(l);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.")}f.size=0}f.data.push(i),f.size+=i.byteLength}break}if(p&&n.firstKeyFrame)break;d+=Wn,h+=Wn}h=e.byteLength,d=h-Wn,p=!1;while(d>=0)if(e[d]!==Gn||e[h]!==Gn)d--,h--;else{switch(i=e.subarray(d,h),r=zn.ts.parseType(i,t.pid),r){case"pes":a=zn.ts.parsePesType(i,t.table),s=zn.ts.parsePayloadUnitStartIndicator(i),"video"===a&&s&&(o=zn.ts.parsePesTime(i),o&&(o.type="video",n.video.push(o),p=!0));break}if(p)break;d-=Wn,h-=Wn}},Qn=function(e,t){if(e.audio&&e.audio.length){var n=t;("undefined"===typeof n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=Vn(e.dts,n),e.pts=Vn(e.pts,n),e.dtsTime=e.dts/qn,e.ptsTime=e.pts/qn}))}if(e.video&&e.video.length){var i=t;if(("undefined"===typeof i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=Vn(e.dts,i),e.pts=Vn(e.pts,i),e.dtsTime=e.dts/qn,e.ptsTime=e.pts/qn})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=Vn(r.dts,i),r.pts=Vn(r.pts,i),r.dtsTime=r.dts/qn,r.ptsTime=r.pts/qn}}},Jn=function(e){var t,n=!1,i=0,r=null,a=null,s=0,o=0;while(e.length-o>=3){var l=zn.aac.parseType(e,o);switch(l){case"timed-metadata":if(e.length-o<10){n=!0;break}if(s=zn.aac.parseId3TagSize(e,o),s>e.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=zn.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){n=!0;break}if(s=zn.aac.parseAdtsSize(e,o),s>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=zn.aac.parseSampleRate(t)),i++,o+=s;break;default:o++;break}if(n)return null}if(null===r||null===a)return null;var u=qn/r,c={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*u,pts:a+1024*i*u}]};return c},Zn=function(e){var t={pid:null,table:null},n={};for(var i in Xn(e,t),t.table)if(t.table.hasOwnProperty(i)){var r=t.table[i];switch(r){case Ve.H264_STREAM_TYPE:n.video=[],Kn(e,t,n),0===n.video.length&&delete n.video;break;case Ve.ADTS_STREAM_TYPE:n.audio=[],Yn(e,t,n),0===n.audio.length&&delete n.audio;break}}return n},ei=function(e,t){var n,i=zn.aac.isLikelyAacData(e);return n=i?Jn(e):Zn(e),n&&(n.audio||n.video)?(Qn(n,t),n):null},ti={inspect:ei,parseAudioPes_:Yn},ni=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:ce.videoTsToSeconds(t.start.dts),presentation:ce.videoTsToSeconds(t.start.pts)},end:{decode:ce.videoTsToSeconds(t.end.dts),presentation:ce.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ce.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ce.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:ce.videoTsToSeconds(t.start.dts),presentation:ce.videoTsToSeconds(t.start.pts)},end:{decode:ce.videoTsToSeconds(t.end.dts),presentation:ce.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ce.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ce.videoTsToSeconds(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:ce.videoTsToSeconds(t.start),end:ce.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ce.videoTsToSeconds(t.start),end:ce.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},ii=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new tn.Transmuxer(this.options),ni(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new On,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])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=In.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=In.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!==typeof n||isNaN(n)?void 0:n*ce.ONE_SECOND_IN_TS,r=ti.inspect(t,i),a=null;r&&(a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1},a.hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ce.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ce.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new ii(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new ii(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),ic=Zu(nc),rc=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,s=i.captions,o=i.captionStreams,l=i.metadata,u=i.videoFrameDtsTime,c=i.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});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)};"undefined"!==typeof u&&(h.videoFrameDtsTime=u),"undefined"!==typeof c&&(h.videoFramePtsTime=c),n(h)},ac=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},sc=function(e,t){t.gopInfo=e.data.gopInfo},oc=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,c=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},b=v,_=function(n){t.currentTransmux===e&&("data"===n.data.action&&rc(n,y,s),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&sc(n,y),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(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&&p(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,ac({transmuxedData:y,callback:f}),lc(t))))};if(t.onmessage=_,i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!==typeof a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var T=n instanceof ArrayBuffer?n:n.buffer,S=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:T,byteOffset:S,byteLength:n.byteLength},[T])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},lc=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"===typeof e.currentTransmux?e.currentTransmux():oc(e.currentTransmux))},uc=function(e,t){e.postMessage({action:t}),lc(e)},cc=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void uc(t,e);t.transmuxQueue.push(uc.bind(null,t,e))},dc=function(e){cc("reset",e)},hc=function(e){cc("endTimeline",e)},pc=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void oc(e);e.transmuxer.transmuxQueue.push(e)},fc=function(e){var t=new ic;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},mc={reset:dc,endTimeline:hc,transmux:pc,createTransmuxer:fc},gc=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=u()({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))};if(t.addEventListener("message",a),e.data){var s=e.data instanceof 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)},vc={FAILURE:2,TIMEOUT:-101,ABORTED:-102},yc=function(e){e.forEach((function(e){e.abort()}))},bc=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},_c=function(e){var t=e.target,n=Date.now()-t.requestTime,i={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},Tc=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:vc.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:vc.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:vc.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:vc.FAILURE,xhr:t}:null},Sc=function(e,t,n){return function(i,r){var a=r.response,s=Tc(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:vc.FAILURE,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u<t.length;u++)t[u].bytes=l;return n(null,e)}},wc=function(e,t){var n=en(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,code:vc.FAILURE})}gc({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return 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)}})},kc=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=Tc(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,wc(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}},Cc=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=Tc(e,r);if(a)return n(a,t);var s="arraybuffer"!==i&&r.responseText?Ku(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=bc(r),t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),n(null,t)}},Ec=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},m=Boolean(f.audio&&f.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end"),_=function(){return pc({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&&"undefined"!==typeof e.start&&(g(e.start),g=null),v&&"undefined"!==typeof e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!==typeof e.start&&(y(e.start),y=null),b&&"undefined"!==typeof e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){o(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:u,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})};gc({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,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&y(r.videoStart),g=null,y=null),_()}})},xc=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(n);if(tn(f)){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){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};gc({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?gc({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach((function(e){p(rl.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if("undefined"===typeof t.container&&(t.container=en(f)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Ec({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},Oc=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,s=e.decryptionWorker,o=function e(n){if(n.data.source===i){s.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};s.addEventListener("message",o),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),s.postMessage(Su({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},Ac=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;Oc({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,xc({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}))},Pc=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,yc(t),h(e,g);if(f+=1,f===t.length){var v=function(){if(g.encryptedBytes)return Ac({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p});xc({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return Oc({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(e){g.map.bytes=e,wc(g,(function(e){if(e)return yc(t),h(e,g);v()}))}));v()}}}},Ic=function(e){var t=e.loadendState,n=e.abortFn;return function(e){var i=e.target;i.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}},Lc=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){var i=e.target;if(!i.aborted)return t.stats=rl.mergeOptions(t.stats,_c(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},Dc=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=Pc({activeXhrs:y,decryptionWorker:i,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var T=rl.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),S=Sc(r,_,b),w=t(T,S);y.push(w)}if(r.map&&!r.map.bytes){var k=r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri);if(k){var C=rl.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),E=Sc(r,[r.map.key],b),x=t(C,E);y.push(x)}var O=rl.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:yu(r.map)}),A=kc({segment:r,finishProcessingFn:b}),P=t(O,A);y.push(P)}var I=rl.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:yu(r)}),L=Cc({segment:r,finishProcessingFn:b,responseType:I.responseType}),D=t(I,L);D.addEventListener("progress",Lc({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m})),y.push(D);var M={};return y.forEach((function(e){e.addEventListener("loadend",Ic({loadendState:M,abortFn:a}))})),function(){return yc(y)}},Mc=ul("CodecUtils"),jc=function(e){var t=e.attributes||{};if(t.CODECS)return G(t.CODECS)},Rc=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Nc=function(e,t){if(!Rc(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},Bc=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(W(""+i+r))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return Mc("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},Uc=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Fc=function(e,t){var n=t.attributes||{},i=Bc(jc(t)||[]);if(Rc(e,t)&&!i.audio&&!Nc(e,t)){var r=Bc(X(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},$c=ul("PlaylistSelector"),Hc=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||""})}},Vc=function(e,t){if(!e)return"";var n=a.a.getComputedStyle(e);return n?n[t]:""},zc=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}))},qc=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||a.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||a.a.Number.MAX_VALUE,n-i},Wc=function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||a.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||a.a.Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},Gc=function(e,t,n,i,r,s){if(e){var o={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},l=e.playlists;Wl.isAudioOnly(e)&&(l=s.getAudioTrackPlaylists_(),o.audioOnly=!0);var u=l.map((function(e){var t,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||a.a.Number.MAX_VALUE,{bandwidth:t,width:n,height:i,playlist:e}}));zc(u,(function(e,t){return e.bandwidth-t.bandwidth})),u=u.filter((function(e){return!Wl.isIncompatible(e.playlist)}));var c=u.filter((function(e){return Wl.isEnabled(e.playlist)}));c.length||(c=u.filter((function(e){return!Wl.isDisabled(e.playlist)})));var d=c.filter((function(e){return e.bandwidth*Yu.BANDWIDTH_VARIANCE<t})),h=d[d.length-1],p=d.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(!1===r){var f=p||c[0]||u[0];if(f&&f.playlist){var m="sortedPlaylistReps";return p&&(m="bandwidthBestRep"),c[0]&&(m="enabledPlaylistReps"),$c("choosing "+Hc(f)+" using "+m+" with options",o),f.playlist}return $c("could not choose a playlist with options",o),null}var g=d.filter((function(e){return e.width&&e.height}));zc(g,(function(e,t){return e.width-t.width}));var v=g.filter((function(e){return e.width===n&&e.height===i}));h=v[v.length-1];var y,b,_,T,S=v.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(S||(y=g.filter((function(e){return e.width>n||e.height>i})),b=y.filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=b[b.length-1],_=b.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),s.experimentalLeastPixelDiffSelector){var w=g.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));zc(w,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),T=w[0]}var k=T||_||S||p||c[0]||u[0];if(k&&k.playlist){var C="sortedPlaylistReps";return T?C="leastPixelDiffRep":_?C="resolutionPlusOneRep":S?C="resolutionBestRep":p?C="bandwidthBestRep":c[0]&&(C="enabledPlaylistReps"),$c("choosing "+Hc(k)+" using "+C+" with options",o),k.playlist}return $c("could not choose a playlist with options",o),null}},Xc=function(){var e=this.useDevicePixelRatio&&a.a.devicePixelRatio||1;return Gc(this.playlists.master,this.systemBandwidth,parseInt(Vc(this.tech_.el(),"width"),10)*e,parseInt(Vc(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Yc=function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&a.a.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),Gc(this.playlists.master,t,parseInt(Vc(this.tech_.el(),"width"),10)*i,parseInt(Vc(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},Kc=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,u=t.playlists.filter((function(e){return!Wl.isIncompatible(e)})),c=u.filter(Wl.isEnabled);c.length||(c=u.filter((function(e){return!Wl.isDisabled(e)})));var d=c.filter(Wl.hasAttribute.bind(null,"BANDWIDTH")),h=d.map((function(e){var t=l.getSyncPoint(e,r,o,n),u=t?1:2,c=Wl.estimateSegmentRequestTime(a,i,e),d=c*u-s;return{playlist:e,rebufferingImpact:d}})),p=h.filter((function(e){return e.rebufferingImpact<=0}));return zc(p,(function(e,t){return qc(t.playlist,e.playlist)})),p.length?p[0]:(zc(h,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),h[0]||null)},Qc=function(){var e=this,t=this.playlists.master.playlists.filter(Wl.isEnabled);zc(t,(function(e,t){return qc(e,t)}));var n=t.filter((function(t){return!!Fc(e.playlists.master,t).video}));return n[0]||null},Jc=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},Zc=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-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,l=!1,u=a[i];u&&(s=u.label,o=u.language,l=u["default"]),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:l,label:s,language:o},!1).track}}},ed=function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=a.a.WebKitDataCue||a.a.VTTCue;n.forEach((function(e){var n=e.stream;t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))}))}},td=function(e){Object.defineProperties(e.frame,{id:{get:function(){return rl.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return rl.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return rl.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},nd=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var s=a.a.WebKitDataCue||a.a.VTTCue,o=t.metadataTrack_;if(o&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!==typeof t||a.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new s(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,td(n),o.addCue(n)}))})),o.cues&&o.cues.length)){for(var l=o.cues,u=[],c=0;c<l.length;c++)l[c]&&u.push(l[c]);var d=u.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),h=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));h.forEach((function(e,t){var n=d[e],i=Number(h[t+1])||r;n.forEach((function(e){e.endTime=i}))}))}}},id=function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)},rd=function(e,t,n){var i,r;if(n&&n.cues){i=n.cues.length;while(i--)r=n.cues[i],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)}},ad=function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&(r++,r>1&&i.push(t[a]));i.length&&i.forEach((function(t){return e.removeCue(t)}))}},sd=function(e,t,n){if("undefined"===typeof t||null===t||!e.length)return[];var i,r=Math.ceil((t-n+3)*nn["ONE_SECOND_IN_TS"]);for(i=0;i<e.length;i++)if(e[i].pts>r)break;return e.slice(i)},od=function(e,t,n){if(!t.length)return e;if(n)return t.slice();var i=t[0].pts,r=0;for(r;r<e.length;r++)if(e[r].pts>=i)break;return e.slice(0,r).concat(t)},ld=function(e,t,n,i){var r=Math.ceil((t-i)*nn["ONE_SECOND_IN_TS"]),a=Math.ceil((n-i)*nn["ONE_SECOND_IN_TS"]),s=e.slice(),o=e.length;while(o--)if(e[o].pts<=a)break;if(-1===o)return s;var l=o+1;while(l--)if(e[l].pts<=r)break;return l=Math.max(l,0),s.splice(l,o-l+1),s},ud=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])return!1;if(e[a]!==t[a])return!1}return!0},cd=22,dd=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,r>n))return a}return 0===i.length?0:i[i.length-1]},hd=1,pd=500,fd=function(e){return"number"===typeof e&&isFinite(e)},md=1/60,gd=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.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.":!t.hasVideo&&n.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},vd=function(e,t,n){var i=t-Yu.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)},yd=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=void 0===l?[]:l,c=e.mediaIndex,d=e.partIndex,h=e.timeline,p=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)");var m="number"===typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?Cl({preloadSegment:i})-1:0;return g+" ["+(s+c)+"/"+(s+p)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+o+"]"},bd=function(e){return e+"TimingInfo"},_d=function(e){var t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered,a=e.overrideCheck;return a||t!==n?t<n?i:r.length?r.end(r.length-1):i:null},Td=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},Sd=function(e,t){var n=e&&"number"===typeof e.start&&"number"===typeof e.end?e.end-e.start:0,i=t&&"number"===typeof t.start&&"number"===typeof t.end?t.end-t.start:0;return Math.max(n,i)},wd=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+cl},kd=function(e,t){if("hls"!==t)return null;var n=Sd(e.audioTimingInfo,e.videoTimingInfo);if(!n)return null;var i=e.playlist.targetDuration,r=wd({segmentDuration:n,maxDuration:2*i}),a=wd({segmentDuration:n,maxDuration:i}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+n+" when the reported duration is "+e.duration+" and the target duration is "+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},Cd=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!==typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=rl.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=ul("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(d()(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i}p()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return mc.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},n.resetStats_=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},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=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,a.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return"undefined"!==typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&mc.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return rl.createTimeRanges();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()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=wu(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},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=ku(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},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),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 ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+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 "+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)}},n.pause=function(){this.checkBufferTimeout_&&(a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&mc.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){r--,0===r&&n()};for(var s in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=ld(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)rd(e,t,this.inbandTextTracks_[s]);rd(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),pd)},n.fillBuffer_=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))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!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},n.chooseNextRequest_=function(){var e=Tl(this.buffered_())||0,t=Math.max(0,e-this.currentTime_()),n=!this.hasPlayed_()&&t>=1,i=t>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(a.isSyncRequest)a.mediaIndex=dd(this.currentTimeline_,r,e);else if(null!==this.mediaIndex){var s=r[this.mediaIndex],o="number"===typeof this.partIndex?this.partIndex:-1;a.startOfSegment=s.end?s.end:e,s.parts&&s.parts[o+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=o+1):a.mediaIndex=this.mediaIndex+1}else{var l=Wl.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?e:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),u=l.segmentIndex,c=l.startTime,d=l.partIndex;a.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",a.mediaIndex=u,a.startOfSegment=c,a.partIndex=d}var h=r[a.mediaIndex],p=h&&"number"===typeof a.partIndex&&h.parts&&h.parts[a.partIndex];if(!h||"number"===typeof a.partIndex&&!p)return null;"number"!==typeof a.partIndex&&h.parts&&(a.partIndex=0);var f=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=r.length-1&&f&&!this.seeking_()?null:this.generateSegmentInfo_(a)},n.generateSegmentInfo_=function(e){var t=e.playlist,n=e.mediaIndex,i=e.startOfSegment,r=e.isSyncRequest,a=e.partIndex,s=e.forceTimestampOffset,o=e.getMediaInfoForTime,l=t.segments[n],u="number"===typeof a&&l.parts[a],c={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||l.resolvedUri,mediaIndex:n,partIndex:u?a:null,isSyncRequest:r,startOfSegment:i,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:l.timeline,duration:u&&u.duration||l.duration,segment:l,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:o},d="undefined"!==typeof s?s:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:l.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:d});var h=Tl(this.sourceUpdater_.audioBuffered());return"number"===typeof h&&(c.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=sd(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c},n.timestampOffsetForSegment_=function(e){return _d(e)},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=Wl.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=yl(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=Kc({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a,l=o-s.rebufferingImpact,u=.5;a<=cl&&(u=1),!s.playlist||s.playlist.uri===this.playlist_.uri||l<u||(this.bandwidth=s.playlist.attributes.BANDWIDTH*Yu.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+yd(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},ud(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_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=bd(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length){var i=this.pendingSegment_;if(i.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),a={};t.forEach((function(e){a[e.stream]=a[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=a[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)})),Object.keys(a).forEach((function(e){var t=a[e],i=t.startTime,s=t.endTime,o=t.captions,l=n.inbandTextTracks_;n.logger_("adding cues from "+i+" -> "+s+" for "+e),Zc(l,n.vhs_.tech_,e),rd(i,s,l[e]),ed({captionArray:o,inbandTextTracks:l,timestampOffset:r})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t))}else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var i=this.pendingSegment_;if(i.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();id(this.inbandTextTracks_,n,this.vhs_.tech_),nd({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))}},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Td({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(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)&&!Td({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(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[bd(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)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=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)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=wu(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},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,s=e.bytes,o=this.sourceUpdater_.audioBuffered(),l=this.sourceUpdater_.videoBuffered();o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+bl(o).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+bl(l).join(", "));var u=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0,d=l.length?l.start(0):0,h=l.length?l.end(l.length-1):0;if(c-u<=hd&&h-d<=hd)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+bl(o).join(", ")+", video buffer: "+bl(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:s}));var p=this.currentTime_(),f=p-hd;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+f),this.remove(0,f,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+hd+"s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=a.a.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3*hd)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(t.code!==cd?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=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=Jc({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=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}},n.appendData_=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})}},n.loadSegment_=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=u()({},e,{forceTimestampOffset:!0});u()(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=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,s=i||r&&a;this.logger_("Requesting "+yd(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Dc({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_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,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_(yd(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=vd(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=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},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<md?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+md):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===vc.ABORTED)return;return this.pause(),e.code===vc.TIMEOUT?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_=od(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"===typeof e.start&&"number"===typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if("undefined"!==typeof t)return t;if(!s)return l.start;var u=n.segments[i-1];return 0!==i&&u&&"undefined"!==typeof u.start&&u.end===r+a?o.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");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_)return e.timingInfo||"number"!==typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=gd(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"===typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,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")}},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo,i=n&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"===typeof i.end?i.end:i.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=kd(e,this.sourceType_);if(t&&("warn"===t.severity?rl.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+yd(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;if(n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration)this.resetEverything();else{var i=null!==this.mediaIndex;i&&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_()}}else this.logger_("Throwing away un-appended sync request "+yd(e))},n.recordThroughput_=function(e){if(e.duration<md)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+md);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(fd(n)&&fd(i)){rd(n,i,this.segmentMetadataTrack_);var r=a.a.WebKitDataCue||a.a.VTTCue,s={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},o=JSON.stringify(s),l=new r(n,i,o);l.value=s,this.segmentMetadataTrack_.addCue(l)}}},t}(rl.EventTarget);function Ed(){}var xd,Od=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},Ad=["video","audio"],Pd=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},Id=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null},Ld=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!Pd(t,n)){if(r.type!==t){if(i=Id(t,n.queue),null===i)return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},Dd=function(e,t){var n=t[e+"Buffer"],i=Od(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},Md=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},jd={appendBuffer:function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(Md(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(s){r.logger_("Error with code "+s.code+" "+(s.code===cd?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(s)}}}},remove:function(e,t){return function(n,i){var r=i[n+"Buffer"];if(Md(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(a){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},timestampOffset:function(e){return function(t,n){var i=n[t+"Buffer"];Md(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},callback:function(e){return function(t,n){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(n){rl.log.warn("Failed to call media source endOfStream",n)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(n){rl.log.warn("Failed to set media source duration",n)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(Md(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(i){rl.log.warn("Failed to abort on "+e+"Buffer",i)}}}}},addSourceBuffer:function(e,t){return function(n){var i=Od(e),r=Q(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var n=t[e+"Buffer"];if(Dd(e,t),Md(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(i){rl.log.warn("Failed to removeSourceBuffer "+e+"Buffer",i)}}}},changeType:function(e){return function(t,n){var i=n[t+"Buffer"],r=Q(e);Md(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}}},Rd=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}),Ld(t,n)},Nd=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}Ld(e,t)}},Bd=function(e){function t(t){var n;return n=e.call(this)||this,n.mediaSource=t,n.sourceopenListener_=function(){return Ld("mediaSource",d()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=ul("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Nd("video",d()(n)),n.onAudioUpdateEnd_=Nd("audio",d()(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}p()(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Rd({type:"mediaSource",sourceUpdater:this,action:jd.addSourceBuffer(e,t),name:"addSourceBuffer"})},n.abort=function(e){Rd({type:e,sourceUpdater:this,action:jd.abort(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Rd({type:"mediaSource",sourceUpdater:this,action:jd.removeSourceBuffer(e),name:"removeSourceBuffer"}):rl.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!rl.browser.IE_VERSION&&!rl.browser.IS_FIREFOX&&a.a.MediaSource&&a.a.MediaSource.prototype&&"function"===typeof a.a.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return a.a.SourceBuffer&&a.a.SourceBuffer.prototype&&"function"===typeof a.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Rd({type:e,sourceUpdater:this,action:jd.changeType(t),name:"changeType"}):rl.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!==typeof e||0===Object.keys(e).length)throw new 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)}))},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var s=t;if(Rd({type:r,sourceUpdater:this,action:jd.appendBuffer(a,i||{mediaIndex:-1},s),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,o.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return Md(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:rl.createTimeRange()},n.videoBuffered=function(){return Md(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:rl.createTimeRange()},n.buffered=function(){var e=Md(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Md(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():gl(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Ed),Rd({type:"mediaSource",sourceUpdater:this,action:jd.duration(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Ed),"string"!==typeof e&&(e=void 0),Rd({type:"mediaSource",sourceUpdater:this,action:jd.endOfStream(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Ed),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Rd({type:"audio",sourceUpdater:this,action:jd.remove(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Ed),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Rd({type:"video",sourceUpdater:this,action:jd.remove(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!Pd("audio",this)&&!Pd("video",this))},n.audioTimestampOffset=function(e){return"undefined"!==typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Rd({type:"audio",sourceUpdater:this,action:jd.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return"undefined"!==typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Rd({type:"video",sourceUpdater:this,action:jd.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Rd({type:"audio",sourceUpdater:this,action:jd.callback(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Rd({type:"video",sourceUpdater:this,action:jd.callback(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),Ad.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return Dd(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(rl.EventTarget),Ud=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Fd=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),$d=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}p()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return rl.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return rl.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=wu(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=Fd.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Fd,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){rd(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){while(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},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===vc.TIMEOUT&&this.handleTimeout_(),e.code===vc.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!==typeof a.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o,l=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",o),i.stopForError({message:"Error loading vtt.js"})};return o=function(){i.subtitlesTrack_.tech_.off("vttjserror",l),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",l)}s.requested=!0;try{this.parseVTTCues_(r)}catch(u){return void this.stopForError({message:u.message})}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)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new a.a.VTTCue(e.startTime,e.endTime,e.text):e)})),ad(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"===typeof a.a.TextDecoder?t=new a.a.TextDecoder("utf8"):(t=a.a.WebVTT.StringDecoder(),n=!0);var i=new a.a.WebVTT.Parser(a.a,a.a.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){rl.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=Ud(r)),i.parse(r)}var s=e.bytes;n&&(s=Ud(s)),i.parse(s),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/nn["ONE_SECOND_IN_TS"]-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(s,o-i.duration)}}}else i.empty=!0},t}(Cd),Hd=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},Vd=function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,r=n,s=0;s<e.segments.length;s++){var o=e.segments[s];if(i||(i=Hd(t,r+o.duration/2)),i){if("cueIn"in o){i.endTime=r,i.adEndTime=r,r+=o.duration,i=null;continue}if(r<i.endTime){r+=o.duration;continue}i.endTime+=o.duration}else if("cueOut"in o&&(i=new a.a.VTTCue(r,r+o.duration,o.cueOut),i.adStartTime=r,i.adEndTime=r+parseFloat(o.cueOut),t.addCue(i)),"cueOutCont"in o){var l=o.cueOutCont.split("/").map(parseFloat),u=l[0],c=l[1];i=new a.a.VTTCue(r,r+o.duration,""),i.adStartTime=r-u,i.adEndTime=i.adStartTime+c,t.addCue(i)}r+=o.duration}},zd=[{name:"VOD",run:function(e,t,n,i,r){if(n!==1/0){var a={time:0,segmentIndex:0,partIndex:null};return a}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=wl(t);r=r||0;for(var l=0;l<o.length;l++){var u=t.endList||0===r?l:o.length-(l+1),c=o[u],d=c.segment,h=e.timelineToDatetimeMappings[d.timeline];if(h&&d.dateTimeObject){var p=d.dateTimeObject.getTime()/1e3,f=p+h;if(d.parts&&"number"===typeof c.partIndex)for(var m=0;m<c.partIndex;m++)f+=d.parts[m].duration;var g=Math.abs(r-f);if(null!==s&&(0===g||s<g))break;s=g,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=wl(t),l=0;l<o.length;l++){var u=t.endList||0===r?l:o.length-(l+1),c=o[u],d=c.segment,h=c.part&&c.part.start||d&&d.start;if(d.timeline===i&&"undefined"!==typeof h){var p=Math.abs(r-h);if(null!==s&&s<p)break;(!a||null===s||s>=p)&&(s=p,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 l=t.discontinuityStarts[o],u=t.discontinuitySequence+o+1,c=e.discontinuities[u];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:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){if(t.syncInfo){var a={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null};return a}return null}}],qd=function(e){function t(t){var n;return n=e.call(this)||this,n.timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=ul("SyncController"),n}p()(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);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+Il({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<zd.length;a++){var s=zd[a],o=s.run(this,e,t,n,i);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r},n.selectSyncPoint_=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 ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"===typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){for(var n=t.mediaSequence-e.mediaSequence,i=n-1;i>=0;i--){var r=e.segments[i];if(r&&"undefined"!==typeof r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=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}},n.saveSegmentTimingInfo=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)},n.timestampOffsetForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=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 "+e.timeline+": [time: "+o.time+"] [mapping: "+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},n.saveDiscontinuitySyncInfo_=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 l=void 0;l=s<0?n.start-Il({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+Il({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(rl.EventTarget),Wd=function(e){function t(){var t;return t=e.call(this)||this,t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}p()(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=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]},n.lastTimelineChange=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]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(rl.EventTarget),Gd=ec(tc((function(){function e(e,n,i){return i={path:n,exports:{},require:function(e,n){return t(e,void 0===n||null===n?i.path:n)}},e(i,i.exports),i.exports}function t(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=e((function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0})),i=e((function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),r=e((function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),a=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}(); /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */ function s(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])} /*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */var o=function(){var e,t,n,i,r,a,s,o,l,u=[[[],[],[],[],[]],[[],[],[],[],[]]],c=u[0],d=u[1],h=c[4],p=d[4],f=[],m=[];for(e=0;e<256;e++)m[(f[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!h[t];t^=i||1,n=m[n]||1)for(s=n^n<<1^n<<2^n<<3^n<<4,s=s>>8^255&s^99,h[t]=s,p[s]=t,a=f[r=f[i=f[t]]],l=16843009*a^65537*r^257*i^16843008*t,o=257*f[s]^16843008*s,e=0;e<4;e++)c[e][t]=o=o<<24^o>>>8,d[e][s]=l=l<<24^l>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),d[e]=d[e].slice(0);return u},l=null,u=function(){function e(e){var t,n,i;l||(l=o()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],s=e.length,u=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var c=e.slice(0),d=[];for(this._key=[c,d],t=s;t<4*s+28;t++)i=c[t-1],(t%s===0||8===s&&t%s===4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%s===0&&(i=i<<8^i>>>24^u<<24,u=u<<1^283*(u>>7))),c[t]=c[t-s]^i;for(n=0;t;n++,t--)i=c[3&n?t:t-4],d[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}var t=e.prototype;return t.decrypt=function(e,t,n,i,r,a){var s,o,l,u,c=this._key[1],d=e^c[0],h=i^c[1],p=n^c[2],f=t^c[3],m=c.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],S=v[4];for(u=0;u<m;u++)s=y[d>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&f]^c[g],o=y[h>>>24]^b[p>>16&255]^_[f>>8&255]^T[255&d]^c[g+1],l=y[p>>>24]^b[f>>16&255]^_[d>>8&255]^T[255&h]^c[g+2],f=y[f>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&p]^c[g+3],g+=4,d=s,h=o,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=S[d>>>24]<<24^S[h>>16&255]<<16^S[p>>8&255]<<8^S[255&f]^c[g++],s=d,d=h,h=p,p=f,f=s},e}(),c=function(e){function t(){var t;return t=e.call(this,a)||this,t.jobs=[],t.delay=1,t.timeout_=null,t}r(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(a),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,n){var i,r,a,s,o,l,c,h,p,f=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],p=0;p<f.length;p+=4)o=d(f[p]),l=d(f[p+1]),c=d(f[p+2]),h=d(f[p+3]),m.decrypt(o,l,c,h,v,p),v[p]=d(v[p]^i),v[p+1]=d(v[p+1]^r),v[p+2]=d(v[p+2]^a),v[p+3]=d(v[p+3]^s),i=o,r=l,a=c,s=h;return g},p=function(){function e(t,n,i,r){var a=e.STEP,o=new Int32Array(t.buffer),l=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,i,l)),u=a;u<o.length;u+=a)i=new Uint32Array([d(o[u-4]),d(o[u-3]),d(o[u-2]),d(o[u-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,i,l));this.asyncStream_.push((function(){r(null,s(l))}))}var t=e.prototype;return t.decryptChunk_=function(e,t,n,i){return function(){var r=h(e,t,n);i.set(r,e.byteOffset)}},n(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),f=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new p(n,i,r,(function(e,n){self.postMessage(f({source:t.source,decrypted:n}),[n.buffer])}))}}))),Xd=Zu(Gd),Yd=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Kd=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Qd=function(e,t){t.activePlaylistLoader=e,e.load()},Jd=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastGroup_;o&&u&&o.id===u.id||(a.lastGroup_=o,a.lastTrack_=s,Kd(i,a),o&&!o.isMasterPlaylist&&(o.playlistLoader?(i.resyncLoader(),Qd(o.playlistLoader,a)):l&&r.resetEverything()))}},Zd=function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];i.lastGroup_=null,n.abort(),n.pause()}},eh=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,s=t.mediaTypes[e],o=s.activeTrack(),l=s.getActiveGroup(),u=s.activePlaylistLoader,c=s.lastTrack_;if((!c||!o||c.id!==o.id)&&(s.lastGroup_=l,s.lastTrack_=o,Kd(r,s),l)){if(l.isMasterPlaylist){if(!o||!c||o.id===c.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return s.logger_("track change. Switching master audio from "+c.id+" to "+o.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}u!==l.playlistLoader?(r.track&&r.track(o),r.resetEverything(),Qd(l.playlistLoader,s)):Qd(l.playlistLoader,s)}}},th={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Kd(n,i);var a=i.activeTrack(),s=i.activeGroup(),o=(s.filter((function(e){return e["default"]}))[0]||s[0]).id,l=i.tracks[o];if(a!==l){for(var u in rl.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];rl.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Kd(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},nh={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",th[e](e,n))}},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",th[e](e,n))}},ih={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,c=o.logger_,d=t.masterPlaylistLoader,h=ql(d.master);for(var p in s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},h&&(s[e].main["default"].playlists=d.master.playlists)),s[e])for(var f in l[p]||(l[p]=[]),s[e][p]){var m=s[e][p][f],g=void 0;if(h?(c("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new hu(m.playlists[0],n,a):m.resolvedUri?new hu(m.resolvedUri,n,a):m.playlists&&"dash"===i?new Xu(m.playlists[0],n,a,d):null,m=rl.mergeOptions({id:f,playlistLoader:g},m),nh[e](e,m.playlistLoader,t),l[p].push(m),"undefined"===typeof u[f]){var v=new rl.AudioTrack({id:f,kind:Yd(m),enabled:!1,language:m.language,default:m["default"],label:f});u[f]=v}}r.on("error",th[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=t.masterPlaylistLoader;for(var h in o[e])for(var p in u[h]||(u[h]=[]),o[e][h])if(!o[e][h][p].forced){var f=o[e][h][p],m=void 0;if("hls"===r)m=new hu(f.resolvedUri,i,s);else if("dash"===r){var g=f.playlists.filter((function(e){return e.excludeUntil!==1/0}));if(!g.length)return;m=new Xu(f.playlists[0],i,s,d)}else"vhs-json"===r&&(m=new hu(f.playlists?f.playlists[0]:f.resolvedUri,i,s));if(f=rl.mergeOptions({id:p,playlistLoader:m},f),nh[e](e,f.playlistLoader,t),u[h].push(f),"undefined"===typeof c[p]){var v=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f["default"]&&f.autoselect,language:f.language,label:p},!1).track;c[p]=v}}a.on("error",th[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in i[e])for(var l in a[o]||(a[o]=[]),i[e][o]){var u=i[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:u.language,instreamId:u.instreamId,default:u["default"]&&u.autoselect};if(c[d.instreamId]&&(d=rl.mergeOptions(d,c[d.instreamId])),void 0===d["default"]&&delete d["default"],a[o].push(rl.mergeOptions({id:l},u)),"undefined"===typeof s[l]){var h=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d["default"],language:d.language,label:d.label},!1).track;s[l]=h}}}}},rh=function e(t,n){for(var i=0;i<t.length;i++){if(Vl(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},ah=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var s=null;a.attributes[e]&&(s=r[a.attributes[e]]);var o=Object.keys(r);if(!s)if("AUDIO"===e&&o.length>1&&ql(t.master))for(var l=0;l<o.length;l++){var u=r[o[l]];if(rh(u,a)){s=u;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return"undefined"===typeof n?s:null!==n&&s&&s.filter((function(e){return e.id===n.id}))[0]||null}},sh={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}},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}}},oh=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}},lh=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){ih[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,s=a["AUDIO"],o=a.main;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=ah(n,e),t[n].activeTrack=sh[n](n,e),t[n].onGroupChanged=Jd(n,e),t[n].onGroupChanging=Zd(n,e),t[n].onTrackChanged=eh(n,e),t[n].getActiveGroup=oh(n,e)}));var l=t.AUDIO.activeGroup();if(l){var u=(l.filter((function(e){return e["default"]}))[0]||l[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();var c=t.AUDIO.getActiveGroup();c.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 d=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var h in i.audioTracks().addEventListener("change",d),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",d),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[h])},uh=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ed,activeTrack:Ed,getActiveGroup:Ed,onGroupChanged:Ed,onTrackChanged:Ed,lastTrack_:null,logger_:ul("MediaGroups["+t+"]")}})),e},ch=120,dh=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],hh=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},ph=function(e){var t=e.currentPlaylist,n=e.nextPlaylist,i=e.forwardBuffer,r=e.bufferLowWaterLine,a=e.bufferHighWaterLine,s=e.duration,o=e.experimentalBufferBasedABR,l=e.log;if(!n)return rl.log.warn("We received no playlist to switch to. Please check your stream."),!1;var u="allowing switch "+(t&&t.id||"null")+" -> "+n.id;if(!t)return l(u+" as current playlist is not set"),!0;if(n.id===t.id)return!1;if(!t.endList)return l(u+" as current playlist is live"),!0;var c=o?Yu.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Yu.MAX_BUFFER_LOW_WATER_LINE;if(s<c)return l(u+" as duration < max low water line ("+s+" < "+c+")"),!0;var d=n.attributes.BANDWIDTH,h=t.attributes.BANDWIDTH;if(d<h&&(!o||i<a)){var p=u+" as next bandwidth < current bandwidth ("+d+" < "+h+")";return o&&(p+=" and forwardBuffer < bufferHighWaterLine ("+i+" < "+a+")"),l(p),!0}if((!o||d>h)&&i>=r){var f=u+" as forwardBuffer >= bufferLowWaterLine ("+i+" >= "+r+")";return o&&(f+=" and next bandwidth > current bandwidth ("+d+" > "+h+")"),l(f),!0}return l("not "+u+" as no switching criteria met"),!1},fh=function(e){function t(t){var n;n=e.call(this)||this;var i=t.src,r=t.handleManifestRedirects,s=t.withCredentials,o=t.tech,l=t.bandwidth,u=t.externVhs,c=t.useCueTags,h=t.blacklistDuration,p=t.enableLowInitialPlaylist,f=t.sourceType,m=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,v=t.experimentalLeastPixelDiffSelector;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var y=t.maxPlaylistRetries;null!==y&&"undefined"!==typeof y||(y=1/0),xd=u,n.experimentalBufferBasedABR=Boolean(g),n.experimentalLeastPixelDiffSelector=Boolean(v),n.withCredentials=s,n.tech_=o,n.vhs_=o.vhs,n.sourceType_=f,n.useCueTags_=c,n.blacklistDuration=h,n.maxPlaylistRetries=y,n.enableLowInitialPlaylist=p,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:y,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=uh(),n.mediaSource=new a.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(d()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(d()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(d()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=rl.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new qd(t),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Xd,n.sourceUpdater_=new Bd(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new Wd;var b={vhs:n.vhs_,parse708captions:t.parse708captions,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:l,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new Xu(i,n.vhs_,n.requestOptions_):new hu(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Cd(rl.mergeOptions(b,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Cd(rl.mergeOptions(b,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new $d(rl.mergeOptions(b,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),dh.forEach((function(e){n[e+"_"]=hh.bind(d()(n),e)})),n.logger_=ul("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var _="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(_,(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}p()(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=a.a.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(a.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var s in a)if(a[s]["default"]){n={label:s};break}}if(!n)return t;var o=[];for(var l in i)if(i[l][n.label]){var u=i[l][n.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&o.push(d)}}return o.length?o:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Hl(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),lh({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),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.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial");var i="vhs-json"===e.sourceType_&&e.initialMedia_.segments;if(!i)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Hl(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();if("playlist-unchanged"!==t.lastExcludeReason_){var n=e.stuckAtPlaylistEnd_(t);n&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=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]){var o=n.AUDIO[a][s];o.uri||(i=!1)}i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),xd.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media(),n=this.tech_.buffered(),i=n.length?n.end(n.length-1)-this.tech_.currentTime():0,r=this.bufferLowWaterLine(),a=this.bufferHighWaterLine();return ph({currentPlaylist:t,nextPlaylist:e,forwardBuffer:i,bufferLowWaterLine:r,bufferHighWaterLine:a,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),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"}),e.tech_.trigger({type:"usage",name:"hls-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.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},ch))}));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.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){rl.browser.IE_VERSION||rl.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(rl.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")},n.handleSourceEnded_=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}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=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())},n.stuckAtPlaylistEnd_=function(e){var t=this.seekable();if(!t.length)return!1;var n=this.syncController_.getExpiredTime(e,this.duration());if(null===n)return!1;var i=xd.Playlist.playlistEnd(e,n),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return i-r<=dl;var s=a.end(a.length-1);return s-r<=dl&&i-s<=dl},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(Nl),s=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return rl.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s);if(s){var o=!1;r.forEach((function(e){if(e!==n){var t=e.excludeUntil;"undefined"!==typeof t&&t!==1/0&&(o=!0,delete e.excludeUntil)}})),o&&(rl.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=e.internal?this.logger_:rl.log.warn,c=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+c+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"===typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",s||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);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[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"===typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=pl(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:xd.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=xd.Playlist.seekable(t,n,xd.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n)return;if(e=xd.Playlist.seekable(t,n,xd.Playlist.liveEdgeDelay(i,t)),0===e.length)return}var a,s;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),s=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=rl.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===s||(this.logger_("seekable updated ["+vl(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);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))}else{var n=this.tech_.buffered(),i=xd.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),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()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=Fc(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||te),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||ee)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||ee,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var a,s=function(e,t){return e?J(t):Z(t)},o={};if(["video","audio"].forEach((function(e){if(i.hasOwnProperty(e)&&!s(t[e].isFmp4,i[e])){var n=t[e].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(i[e]),"audio"===e&&(a=n)}})),r&&a&&this.media().attributes.AUDIO){var l=this.media().attributes.AUDIO;this.master().playlists.forEach((function(t){var n=t.attributes&&t.attributes.AUDIO;n===l&&t!==e.media()&&(t.excludeUntil=1/0)})),this.logger_("excluding audio group "+l+" as "+a+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach((function(t){var n=(G(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(G(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')})),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var c=Object.keys(o).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+o[t].join(",")+'"',e}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=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)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=Fc(e.master,r),s=[];!a.audio||Z(a.audio)||J(a.audio)||s.push("audio codec "+a.audio),!a.video||Z(a.video)||J(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=Bc(G(e)),a=Uc(r),s=r.video&&G(r.video)[0]||null,o=r.audio&&G(r.audio)[0]||null;Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var l=[],u=Fc(t.masterPlaylistLoader_.master,r),c=Uc(u);if(u.audio||u.video){if(c!==a&&l.push('codec count "'+c+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=u.video&&G(u.video)[0]||null,h=u.audio&&G(u.audio)[0]||null;d&&s&&d.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+s.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),Vd(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=Yu.GOAL_BUFFER_LENGTH,n=Yu.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,Yu.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=Yu.BUFFER_LOW_WATER_LINE,n=Yu.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,Yu.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Yu.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return Yu.BUFFER_HIGH_WATER_LINE},t}(rl.EventTarget),mh=function(e,t,n){return function(i){var r=e.master.playlists[t],a=Rl(r),s=Nl(r);return"undefined"===typeof i?s:(i?delete r.disabled:r.disabled=!0,i===s||a||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}},gh=function(e,t,n){var i=e.masterPlaylistController_,r=e.options_.smoothQualityChange,a=r?"smooth":"fast",s=i[a+"QualityChange_"].bind(i);if(t.attributes){var o=t.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=Fc(i.master(),t),this.playlist=t,this.id=n,this.enabled=mh(e.playlists,t.id,s)},vh=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=ql(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!Rl(e)})).map((function(t,n){return new gh(e,t,t.id)})):[]}},yh=["seeking","seeked","pause","playing","error"],bh=function(e){var t=e.buffered,n=e.targetDuration,i=e.currentTime;return!!t.length&&(!(t.end(0)-t.start(0)<2*n)&&(!(i>t.start(0))&&t.start(0)-i<n))},_h=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=ul("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},s=function(){return t.cancelTimer_()},o=function(){return t.fixesBadSeeks_()},l=this.masterPlaylistController_,u=["main","subtitle","audio"],c={};u.forEach((function(e){c[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},l[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),l[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),t.tech_.on(["seeked","seeking"],c[e].reset)})),this.tech_.on("seekablechanged",o),this.tech_.on("waiting",r),this.tech_.on(yh,s),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.logger_("dispose"),t.tech_.off("seekablechanged",o),t.tech_.off("waiting",r),t.tech_.off(yh,s),t.tech_.off("canplay",i),t.tech_.off("play",n),u.forEach((function(e){l[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),l[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),t.tech_.off(["seeked","seeking"],c[e].reset)})),t.checkCurrentTimeTimeout_&&a.a.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&a.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=a.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=_l(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:bl(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+dl>=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)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){var e=this.tech_.seeking();if(!e)return!1;var t,n=this.seekable(),i=this.tech_.currentTime(),r=this.afterSeekableWindow_(n,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);if(r){var a=n.end(n.length-1);t=a}if(this.beforeSeekableWindow_(n,i)){var s=n.start(0);t=s+(s===n.end(0)?0:dl)}if("undefined"!==typeof t)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+vl(n)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;var o=this.tech_.buffered();return!!bh({buffered:o,targetDuration:this.media().targetDuration,currentTime:i})&&(t=o.start(0)+dl,this.logger_("Buffered region starts ("+o.start(0)+") just beyond seek point ("+i+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=pl(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered(),a=this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t});if(a)return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=fl(r,t);if(s.length>0){var o=s.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+dl,a=!n.endList;return a&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=pl(t,i-3),s=pl(t,i),o=pl(n,i);o.length&&!s.length&&a.length&&(r={start:a.end(0),end:o.end(0)})}else{var l=fl(t,i);l.length||(r=this.gapFromVideoUnderflow_(t,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=fl(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+cl),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=ml(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}(),Th={errorInterval:30,getSource:function(e){var t=this.tech({IWillNotUseThisInPlugins:!0}),n=t.currentSource_||this.currentSource();return e(n)}},Sh=function e(t,n){var i=0,r=0,a=rl.mergeOptions(Th,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var s=function(){r&&t.currentTime(r)},o=function(e){null!==e&&void 0!==e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"===typeof a.getSource?(i=Date.now(),a.getSource.call(t,o)):void rl.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)},c=function(n){u(),e(t,n)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=c},wh=function(e){Sh(this,e)},kh="2.10.2",Ch="5.13.0",Eh="0.19.0",xh="4.7.0",Oh="3.1.2",Ah={PlaylistLoader:hu,Playlist:Wl,utils:Ou,STANDARD_PLAYLIST_SELECTOR:Xc,INITIAL_PLAYLIST_SELECTOR:Qc,lastBandwidthSelector:Xc,movingAverageBandwidthSelector:Yc,comparePlaylistBandwidth:qc,comparePlaylistResolution:Wc,xhr:gu()};Object.keys(Yu).forEach((function(e){Object.defineProperty(Ah,e,{get:function(){return rl.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),Yu[e]},set:function(t){rl.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?rl.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):Yu[e]=t}})}));var Ph="videojs-vhs",Ih=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"})},Lh=function(e,t){t.representations().forEach((function(t){e.addQualityLevel(t)})),Ih(e,t.playlists)};Ah.canPlaySource=function(){return rl.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Dh=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=Bc(G(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=Q(i.video),a=Q(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 rl.mergeOptions(e,s)},Mh=function(e,t){return e.reduce((function(e,n){if(!n.contentProtection)return e;var i=t.reduce((function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[])},jh=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=i?r.concat([i]):r,s=Mh(a,Object.keys(n)),o=[],l=[];return s.forEach((function(e){l.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),o.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(o),Promise.race(l)])},Rh=function(e){var t=e.player,n=e.sourceKeySystems,i=e.media,r=e.audioMedia,a=Dh(n,i,r);return!!a&&(t.currentSource().keySystems=a,!(a&&!t.eme)||(rl.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},Nh=function(){if(!a.a.localStorage)return null;var e=a.a.localStorage.getItem(Ph);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}},Bh=function(e){if(!a.a.localStorage)return!1;var t=Nh();t=t?rl.mergeOptions(t,e):e;try{a.a.localStorage.setItem(Ph,JSON.stringify(t))}catch(n){return!1}return t},Uh=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e};Ah.supportsNativeHls=function(){if(!o.a||!o.a.createElement)return!1;var e=o.a.createElement("video");if(!rl.getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),Ah.supportsNativeDash=function(){return!!(o.a&&o.a.createElement&&rl.getTech("Html5").isSupported())&&/maybe|probably/i.test(o.a.createElement("video").canPlayType("application/dash+xml"))}(),Ah.supportsTypeNatively=function(e){return"hls"===e?Ah.supportsNativeHls:"dash"===e&&Ah.supportsNativeDash},Ah.isSupported=function(){return rl.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Fh=rl.getComponent("Component"),$h=function(e){function t(t,n,i){var r;if(r=e.call(this,n,rl.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&rl.log.warn("Using hls options is deprecated. Use vhs instead."),"number"===typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=ul("VhsHandler"),n.options_&&n.options_.playerId){var a=rl(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return rl.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),d()(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return rl.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),d()(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return rl.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),d()(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,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 new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(o.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=o.a.fullscreenElement||o.a.webkitFullscreenElement||o.a.mozFullScreenElement||o.a.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}p()(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=Nh();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=Yu.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Yu.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(t){"undefined"!==typeof e.source_[t]&&(e.options_[t]=e.source_[t])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){this.setOptions_(),this.options_.src=Uh(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Ah,this.options_.sourceType=re(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&rl.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new fh(this.options_);var i=rl.mergeOptions({liveRangeSafeTimeDelta:dl},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new _h(i),this.masterPlaylistController_.on("error",(function(){var e=rl.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!==typeof t||t.code?"string"===typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));var r=this.options_.experimentalBufferBasedABR?Ah.movingAverageBandwidthSelector(.55):Ah.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Ah.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);e=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(t+e));return n},set:function(){rl.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 n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return bl(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return bl(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&Bh({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){vh(n)})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=a.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Rh({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})})),11!==rl.browser.IE_VERSION&&n?(this.logger_("waiting for EME key session creation"),jh({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.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})}))):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=rl.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){Lh(e.qualityLevels_,e)})),this.playlists.on("mediachange",(function(){Ih(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":kh,"mux.js":Ch,"mpd-parser":Eh,"m3u8-parser":xh,"aes-decrypter":Oh}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Bd.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&a.a.URL.revokeObjectURL&&(a.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return Ru({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Nu({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(Fh),Hh={name:"videojs-http-streaming",VERSION:kh,canHandleSource:function(e,t){void 0===t&&(t={});var n=rl.mergeOptions(rl.options,t);return Hh.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=rl.mergeOptions(rl.options,n);return t.vhs=new $h(e,t,i),rl.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return rl.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=gu(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=rl.mergeOptions(rl.options,t),i=n.vhs.overrideNative,r=void 0===i?!rl.browser.IS_ANY_SAFARI:i,a=re(e),s=a&&(!Ah.supportsTypeNatively(a)||r);return s?"maybe":""}},Vh=function(){return J("avc1.4d400d,mp4a.40.2")};Vh()&&rl.getTech("Html5").registerSourceHandler(Hh,0),rl.VhsHandler=$h,Object.defineProperty(rl,"HlsHandler",{get:function(){return rl.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),$h},configurable:!0}),rl.VhsSourceHandler=Hh,Object.defineProperty(rl,"HlsSourceHandler",{get:function(){return rl.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Hh},configurable:!0}),rl.Vhs=Ah,Object.defineProperty(rl,"Hls",{get:function(){return rl.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Ah},configurable:!0}),rl.use||(rl.registerComponent("Hls",Ah),rl.registerComponent("Vhs",Ah)),rl.options.vhs=rl.options.vhs||{},rl.options.hls=rl.options.hls||{},rl.registerPlugin?rl.registerPlugin("reloadSourceOnError",wh):rl.plugin("reloadSourceOnError",wh);t["a"]=rl},f24e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){return e.start(t)+"-"+e.end(t)},r=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},a=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},s=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},o=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},l={hexDump:function(e){for(var t=Array.prototype.slice.call(e),n=16,i="",s=void 0,o=void 0,l=0;l<t.length/n;l++)s=t.slice(l*n,l*n+n).map(r).join(""),o=t.slice(l*n,l*n+n).map(a).join(""),i+=s+" "+o+"\n";return i},tagDump:function(e){return l.hexDump(e.bytes)},textRanges:function(e){var t="",n=void 0;for(n=0;n<e.length;n++)t+=i(e,n)+" ";return t},createTransferableMessage:s,initSegmentId:o};t["default"]=l,e.exports=t["default"]},f42a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n("9fd3"),s=d(a),o=n("769d"),l=d(o),u=n("faec"),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){h(this,t);var e=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));e.lineStream=new l["default"],e.parseStream=new c["default"],e.lineStream.pipe(e.parseStream);var n=e,r=[],a={},s=void 0,o=void 0,u=function(){},d={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},f=0;return e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},e.parseStream.on("data",(function(e){var t=void 0,l=void 0;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(this.trigger("info",{message:"defaulting offset to zero"}),e.offset=0)),"offset"in e&&(a.byterange=t,t.offset=e.offset)},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"})),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=r},key:function(){e.attributes?"NONE"!==e.attributes.METHOD?e.attributes.URI?(e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),o={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(o.iv=e.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):o=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,f=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){s={},e.uri&&(s.uri=e.uri),e.byterange&&(s.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=r,this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes?(a.attributes||(a.attributes={}),i(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],l={default:/yes/i.test(e.attributes.DEFAULT)},l["default"]?l.autoselect=!0:l.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(l.language=e.attributes.LANGUAGE),e.attributes.URI&&(l.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(l.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(l.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(l.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=l}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){f+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(r.length)},"program-date-time":function(){this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},"cue-out":function(){a.cueOut=e.data},"cue-out-cont":function(){a.cueOutCont=e.data},"cue-in":function(){a.cueIn=e.data}}[e.tagType]||u).call(n)},uri:function(){a.uri=e.uri,r.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),o&&(a.key=o),a.timeline=f,s&&(a.map=s),a={}},comment:function(){}})[e.type].call(n)})),e}return f(t,e),r(t,[{key:"push",value:function(e){this.lineStream.push(e)}},{key:"end",value:function(){this.lineStream.push("\n")}}]),t}(s["default"]);t["default"]=m},f5df:function(e,t,n){var i=n("00ee"),r=n("c6b6"),a=n("b622"),s=a("toStringTag"),o="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),s))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},f631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=n("be09"),o=r(s),l=n("d3ae"),u=r(l),c=n("e475"),d=r(c),h=["seeking","seeked","pause","playing","error"],p=function(){function e(t){var n=this;a(this,e),this.tech_=t.tech,this.seekable=t.seekable,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,t.debug&&(this.logger_=d["default"].log.bind(d["default"],"playback-watcher ->")),this.logger_("initialize");var i=function(){return n.monitorCurrentTime_()},r=function(){return n.techWaiting_()},s=function(){return n.cancelTimer_()},l=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",l),this.tech_.on("waiting",r),this.tech_.on(h,s),this.tech_.on("canplay",i),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",l),n.tech_.off("waiting",r),n.tech_.off(h,s),n.tech_.off("canplay",i),n.checkCurrentTimeTimeout_&&o["default"].clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return i(e,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&o["default"].clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=o["default"].setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+u["default"].SAFE_TIME_DELTA>=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:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var e=this.tech_.seeking(),t=this.seekable(),n=this.tech_.currentTime(),i=void 0;if(e&&this.afterSeekableWindow_(t,n)){var r=t.end(t.length-1);i=r}if(e&&this.beforeSeekableWindow_(t,n)){var a=t.start(0);i=a+u["default"].SAFE_TIME_DELTA}return"undefined"!==typeof i&&(this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+u["default"].printableRange(t)+". Seeking to "+i+"."),this.tech_.setCurrentTime(i),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=u["default"].findRange(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.buffered(),r=u["default"].findNextRange(i,t);if(this.videoUnderflow_(r,i,t))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(r.length>0){var a=r.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+a+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,t),!0}return!1}},{key:"afterSeekableWindow_",value:function(e,t){return!!e.length&&t>e.end(e.length-1)+u["default"].SAFE_TIME_DELTA}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-u["default"].SAFE_TIME_DELTA)}},{key:"videoUnderflow_",value:function(e,t,n){if(0===e.length){var i=this.gapFromVideoUnderflow_(t,n);if(i)return this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=u["default"].findNextRange(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+u["default"].TIME_FUDGE_FACTOR),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var n=u["default"].findGaps(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}},{key:"logger_",value:function(){}}]),e}();t["default"]=p,e.exports=t["default"]},f6b4:function(e,t,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},f7fd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t,n){var i=!0;while(i){var r=e,a=t,s=n;i=!1,null===r&&(r=Function.prototype);var o=Object.getOwnPropertyDescriptor(r,a);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(r);if(null===u)return;e=u,t=a,n=s,i=!0,o=u=void 0}};function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n("d61a"),u=a(l),c=n("e475"),d=a(c),h=n("6e1b"),p=a(h),f=n("56c8"),m=a(f),g=n("be09"),v=a(g),y=n("4ea2"),b=a(y),_=n("f24e"),T=n("81bc"),S=n("d3ae"),w=n("57db"),k=500,C=function(e,t,n){if(!e||!t)return!1;var i=e.segments,r=n===i.length;return e.endList&&"open"===t.readyState&&r},E=function(e){return"number"===typeof e&&isFinite(e)},x=function(e,t,n){return"main"===e&&t&&n?n.containsAudio||n.containsVideo?t.containsVideo&&!n.containsVideo?"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.":!t.containsVideo&&n.containsVideo?"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};t.illegalMediaSwitch=x;var O=function(e,t,n){var i=void 0;return i=e.length&&e.start(0)>0&&e.start(0)<t?e.start(0):t-30,Math.min(i,t-n)};t.safeBackBufferTrimTime=O;var A=function(e){function t(e){var n=this,i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(s(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),!e)throw new TypeError("Initialization settings are required");if("function"!==typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.state="INIT",this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.hls_=e.hls,this.loaderType_=e.loaderType,this.startingMedia_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.pendingSegment_=null,this.mimeType_=null,this.sourceUpdater_=null,this.xhrOptions_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.syncController_.on("syncinfoupdate",(function(){return n.trigger("syncinfoupdate")})),this.mediaSource_.addEventListener("sourceopen",(function(){return n.ended_=!1})),this.fetchAtBuffer_=!1,i.debug&&(this.logger_=d["default"].log.bind(d["default"],"segment-loader",this.loaderType_,"->"))}return o(t,e),i(t,[{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}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(e){return"undefined"!==typeof e&&(this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():d["default"].createTimeRanges()}},{key:"initSegment",value:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!e)return null;var n=(0,_.initSegmentId)(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes}),i||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"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.sourceUpdater_=new p["default"](this.mediaSource_,this.mimeType_),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_;if(this.playlist_=e,this.xhrOptions_=t,this.hasPlayed_()||(e.syncInfo={mediaSequence:e.mediaSequence,time:0}),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===e.uri){var r=e.mediaSequence-n.mediaSequence;this.logger_("mediaSequenceDiff",r),null!==this.mediaIndex&&(this.mediaIndex-=r),i&&(i.mediaIndex-=r,i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,e)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(v["default"].clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(e){this.mimeType_||(this.mimeType_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_()),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(e,t){this.sourceUpdater_&&this.sourceUpdater_.remove(e,t),(0,b["default"])(e,t,this.segmentMetadataTrack_)}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&v["default"].clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=v["default"].setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&v["default"].clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=v["default"].setTimeout(this.monitorBufferTick_.bind(this),k)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e){var t=C(this.playlist_,this.mediaSource_,e.mediaIndex);t?this.endOfStream():(e.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&((e.timeline!==this.currentTimeline_||null!==e.startOfSegment&&e.startOfSegment<this.sourceUpdater_.timestampOffset())&&(this.syncController_.reset(),e.timestampOffset=e.startOfSegment),this.loadSegment_(e))}}}},{key:"checkBuffer_",value:function(e,t,n,i,r,a){var s=0,o=void 0;e.length&&(s=e.end(e.length-1));var l=Math.max(0,s-r);if(!t.segments.length)return null;if(l>=this.goalBufferLength_())return null;if(!i&&l>=1)return null;if(this.logger_("checkBuffer_","mediaIndex:",n,"hasPlayed:",i,"currentTime:",r,"syncPoint:",a,"fetchAtBuffer:",this.fetchAtBuffer_,"bufferedTime:",l),null===a)return n=this.getSyncSegmentCandidate_(t),this.logger_("getSync","mediaIndex:",n),this.generateSegmentInfo_(t,n,null,!0);if(null!==n){this.logger_("walkForward","mediaIndex:",n+1);var c=t.segments[n];return o=c&&c.end?c.end:s,this.generateSegmentInfo_(t,n+1,o,!1)}if(this.fetchAtBuffer_){var d=u["default"].getMediaInfoForTime(t,s,a.segmentIndex,a.time);n=d.mediaIndex,o=d.startTime}else{d=u["default"].getMediaInfoForTime(t,r,a.segmentIndex,a.time);n=d.mediaIndex,o=d.startTime}return this.logger_("getMediaIndexForTime","mediaIndex:",n,"startOfSegment:",o),this.generateSegmentInfo_(t,n,o,!1)}},{key:"getSyncSegmentCandidate_",value:function(e){var t=this;if(-1===this.currentTimeline_)return 0;var n=e.segments.map((function(e,t){return{timeline:e.timeline,segmentIndex:t}})).filter((function(e){return e.timeline===t.currentTimeline_}));return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(e,t,n,i){if(t<0||t>=e.segments.length)return null;var r=e.segments[t];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:t,isSyncRequest:i,startOfSegment:n,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(e){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return!1;var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=u["default"].estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=(0,S.timeUntilRebuffer)(this.buffered_(),t,this.hls_.tech_.playbackRate())-1;if(r<=a)return!1;var s=(0,w.minRebufferMaxBandwidthSelector)({master:this.hls_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a,l=o-s.rebufferingImpact,c=.5;return a<=S.TIME_FUDGE_FACTOR&&(c=1),!s.playlist||s.playlist.uri===this.playlist_.uri||l<c?!1:(this.bandwidth=s.playlist.attributes.BANDWIDTH*m["default"].BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(e,t){this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(t.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),e.abortRequests=(0,T.mediaSegmentRequest)(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.createSimplifiedSegmentObj_(e),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(e){var t=O(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,n={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId};if(t.key){var i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key={resolvedUri:t.key.resolvedUri,iv:i}}return t.map&&(n.map=this.initSegment(t.map)),n}},{key:"segmentRequestFinished_",value:function(e,t){if(this.mediaRequests+=1,t.stats&&(this.mediaBytesTransferred+=t.stats.bytesReceived,this.mediaTransferDuration+=t.stats.roundTripTime),this.pendingSegment_){if(t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===T.REQUEST_ERRORS.ABORTED?void(this.mediaRequestsAborted+=1):(this.pause(),e.code===T.REQUEST_ERRORS.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));this.bandwidth=t.stats.bandwidth,this.roundTrip=t.stats.roundTripTime,t.map&&(t.map=this.initSegment(t.map,!0)),this.processSegmentResponse_(t)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(e){var t=this.pendingSegment_;t.bytes=e.bytes,e.map&&(t.segment.map.bytes=e.map.bytes),t.endOfAllRequests=e.endOfAllRequests,this.handleSegment_()}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_){var t=this.pendingSegment_,n=t.segment,i=this.syncController_.probeSegmentInfo(t);"undefined"===typeof this.startingMedia_&&i&&(i.containsAudio||i.containsVideo)&&(this.startingMedia_={containsAudio:i.containsAudio,containsVideo:i.containsVideo});var r=x(this.loaderType_,this.startingMedia_,i);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");null!==t.timestampOffset&&t.timestampOffset!==this.sourceUpdater_.timestampOffset()&&(this.sourceUpdater_.timestampOffset(t.timestampOffset),this.trigger("timestampoffset"));var a=this.syncController_.mappingForTimeline(t.timeline);null!==a&&this.trigger({type:"segmenttimemapping",mapping:a}),this.state="APPENDING",n.map&&function(){var t=(0,_.initSegmentId)(n.map);if(!e.activeInitSegmentId_||e.activeInitSegmentId_!==t){var i=e.initSegment(n.map);e.sourceUpdater_.appendBuffer(i.bytes,(function(){e.activeInitSegmentId_=t}))}}(),t.byteLength=t.bytes.byteLength,"number"===typeof n.start&&"number"===typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.sourceUpdater_.appendBuffer(t.bytes,this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleUpdateEnd_",value:function(){if(this.logger_("handleUpdateEnd_","segmentInfo:",this.pendingSegment_),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=e.segment,n=null!==this.mediaIndex;if(this.pendingSegment_=null,this.recordThroughput_(e),this.addSegmentMetadataCue_(e),this.state="READY",this.mediaIndex=e.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration)this.resetEverything();else{n&&this.trigger("bandwidthupdate"),this.trigger("progress");var i=C(e.playlist,this.mediaSource_,e.mediaIndex+1);i&&this.endOfStream(),this.paused()||this.monitorBuffer_()}}},{key:"recordThroughput_",value:function(e){var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},{key:"logger_",value:function(){}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(E(n)&&E(i)){(0,b["default"])(n,i,this.segmentMetadataTrack_);var r=v["default"].WebKitDataCue||v["default"].VTTCue,a={bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.uri,start:n,end:i},s=JSON.stringify(a),o=new r(n,i,s);o.value=a,this.segmentMetadataTrack_.addCue(o)}}}}]),t}(d["default"].EventTarget);t["default"]=A},f97d:function(e,t){var n={"":!0,up:!0};function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function a(){var e=100,t=3,n=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=i(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}e.exports=a},faec:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{!i&&o["return"]&&o["return"]()}finally{if(r)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n("9fd3"),s=o(a);function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(){var e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},h=function(e){var t=e.split(d()),n={},i=t.length,r=void 0;while(i--)""!==t[i]&&(r=/([^=]*)=(.*)/.exec(t[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),n[r[0]]=r[1]);return n},p=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return c(t,e),r(t,[{key:"push",value:function(e){var t=void 0,n=void 0;if(e=e.replace(/^[\u0000\s]+|[\u0000\s]+$/g,""),0!==e.length)if("#"===e[0])if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"totalduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"byterange"},t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),void this.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){var r=h(t[1]);if(r.URI&&(n.uri=r.URI),r.BYTERANGE){var a=r.BYTERANGE.split("@"),s=i(a,2),o=s[0],l=s[1];n.byterange={},o&&(n.byterange.length=parseInt(o,10)),l&&(n.byterange.offset=parseInt(l,10))}}this.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=h(t[1]),n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x"),c={};u[0]&&(c.width=parseInt(u[0],10)),u[1]&&(c.height=parseInt(u[1],10)),n.attributes.RESOLUTION=c}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}this.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=h(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=h(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))),void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);this.trigger("data",{type:"tag",data:e.slice(4)})}}}else this.trigger("data",{type:"comment",text:e.slice(1)});else this.trigger("data",{type:"uri",uri:e})}}]),t}(s["default"]);t["default"]=p},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fce3:function(e,t,n){var i=n("d039"),r=n("da84"),a=r.RegExp;e.exports=i((function(){var e=a(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fda2:function(e,t,n){},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},fef4:function(e,t,n){e.exports={generator:n("a31d"),Transmuxer:n("2c5a").Transmuxer,AudioSegmentStream:n("2c5a").AudioSegmentStream,VideoSegmentStream:n("2c5a").VideoSegmentStream}},ffdf:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i=n("be09"),r=n.n(i),a=function(t){return r.a.atob?r.a.atob(t):e.from(t,"base64").toString("binary")};function s(e){for(var t=a(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}}).call(this,n("b639").Buffer)}}]); //# sourceMappingURL=chunk-vendors.d311597a.js.map