baiqiu-cms-decoration1 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/bq-cms-decoration.min.js +19 -0
- package/dist/bq-cms-decoration.min.js.map +1 -0
- package/dist/font/iconfont.eot +0 -0
- package/dist/font/iconfont.svg +203 -0
- package/dist/font/iconfont.ttf +0 -0
- package/dist/font/iconfont.woff +0 -0
- package/dist/iconfont.svg +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("bq-cms-decoration.min",[],t):"object"==typeof exports?exports["bq-cms-decoration.min"]=t():e["bq-cms-decoration.min"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=53)}([function(e,t){function i(e,t){var i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var a=n(r);return[i].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([a]).join("\n")}return[i].join("\n")}function n(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=i(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(n[a]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(e,t,i){"use strict";function n(e){return"[object Array]"===C.call(e)}function r(e){return void 0===e}function a(e){return null!==e&&!r(e)&&null!==e.constructor&&!r(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function s(e){return"[object ArrayBuffer]"===C.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return"string"==typeof e}function d(e){return"number"==typeof e}function c(e){return null!==e&&"object"===(void 0===e?"undefined":x(e))}function p(e){if("[object Object]"!==C.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){return"[object Date]"===C.call(e)}function f(e){return"[object File]"===C.call(e)}function v(e){return"[object Blob]"===C.call(e)}function m(e){return"[object Function]"===C.call(e)}function g(e){return c(e)&&m(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){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&&void 0!==e)if("object"!==(void 0===e?"undefined":x(e))&&(e=[e]),n(e))for(var i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function T(){function e(e,i){p(t[i])&&p(e)?t[i]=T(t[i],e):p(e)?t[i]=T({},e):n(e)?t[i]=e.slice():t[i]=e}for(var t={},i=0,r=arguments.length;i<r;i++)w(arguments[i],e);return t}function S(e,t,i){return w(t,function(t,n){e[n]=i&&"function"==typeof t?E(t,i):t}),e}function k(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=i(31),C=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:s,isBuffer:a,isFormData:o,isArrayBufferView:l,isString:u,isNumber:d,isObject:c,isPlainObject:p,isUndefined:r,isDate:h,isFile:f,isBlob:v,isFunction:m,isStream:g,isURLSearchParams:y,isStandardBrowserEnv:_,forEach:w,merge:T,extend:S,trim:b,stripBOM:k}},function(e,t,i){"use strict";function n(e,t,i,n){m=i,y=n||{};var a=d()(e,t);return r(a),function(t){for(var i=[],n=0;n<a.length;n++){var s=a[n],o=p[s.id];o.refs--,i.push(o)}t?(a=d()(e,t),r(a)):a=[];for(var n=0;n<i.length;n++){var o=i[n];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete p[o.id]}}}}function r(e){for(var t=0;t<e.length;t++){var i=e[t],n=p[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(s(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(s(i.parts[r]));p[i.id]={id:i.id,refs:1,parts:a}}}}function a(){var e=document.createElement("style");return e.type="text/css",h.appendChild(e),e}function s(e){var t,i,n=document.querySelector("style["+b+'~="'+e.id+'"]');if(n){if(m)return g;n.parentNode.removeChild(n)}if(_){var r=v++;n=f||(f=a()),t=o.bind(null,n,r,!1),i=o.bind(null,n,r,!0)}else n=a(),t=l.bind(null,n),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else i()}}function o(e,t,i,n){var r=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var a=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function l(e,t){var i=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),y.ssrId&&e.setAttribute(b,t.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var u=i(57),d=i.n(u),c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var p={},h=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,v=0,m=!1,g=function(){},y=null,b="data-vue-ssr-id",_="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),w=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,i,n,r,a){var s,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,o=e.default);var u="function"==typeof o?o.options:o;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r);var d;if(a?(d=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=d):n&&(d=n),d){var c=u.functional,p=c?u.render:u.beforeCreate;c?(u._injectStyles=d,u.render=function(e,t){return d.call(t),p(e,t)}):u.beforeCreate=p?[].concat(p,d):[d]}return{esModule:s,exports:o,options:u}}},function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(t,i(9))},function(e,t,i){"use strict";i.d(t,"g",function(){return l}),i.d(t,"e",function(){return u}),i.d(t,"k",function(){return c}),i.d(t,"j",function(){return p}),i.d(t,"i",function(){return h}),i.d(t,"b",function(){return m}),i.d(t,"f",function(){return g}),i.d(t,"c",function(){return y}),i.d(t,"h",function(){return b}),i.d(t,"d",function(){return _}),i.d(t,"a",function(){return w});var n=i(4),r=i.n(n),a=function(e,t){for(var i="";t--;)i+=e;return i},s=function(e){return e.toString(2).length},o=function(e){return Math.ceil(s(e)/8)},l=function(e,t,i){return void 0===i&&(i=" "),(a(i,t)+e.toString()).slice(-t)},u=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},d=function(e){return u(e)},c=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||d(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))},p=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(16),2,"0");return t},h=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(2),8,"0");return t},f=r.a.BigInt||Number,v=[f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000")],m=(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}(),function(e,t){var i=void 0===t?{}:t,n=i.signed,r=void 0!==n&&n,a=i.le,s=void 0!==a&&a;e=c(e);var o=s?"reduce":"reduceRight",l=e[o]?e[o]:Array.prototype[o],u=l.call(e,function(t,i,n){var r=s?n:Math.abs(n+1-e.length);return t+f(i)*v[r]},f(0));if(r){var d=v[e.length]/f(2)-f(1);u=f(u),u>d&&(u-=d,u-=d,u-=f(2))}return Number(u)}),g=function(e,t){var i=void 0===t?{}:t,n=i.le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!==e)&&(e=0),e=f(e);for(var a=o(e),s=new Uint8Array(new ArrayBuffer(a)),l=0;l<a;l++){var u=r?l:Math.abs(l+1-s.length);s[u]=Number(e/v[l]&f(255)),e<0&&(s[u]=Math.abs(~s[u]),s[u]-=0===l?1:2)}return s},y=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,c(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},b=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 i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i},_=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}),t.length<=1)return c(t[0]);var n=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),r=new Uint8Array(n),a=0;return t.forEach(function(e){e=c(e),r.set(e,a),a+=e.byteLength}),r},w=function(e,t,i){var n=void 0===i?{}:i,r=n.offset,a=void 0===r?0:r,s=n.mask,o=void 0===s?[]:s;e=c(e),t=c(t);var l=t.every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,function(t,i){return t===(o[i]?o[i]&e[a+i]:e[a+i])})}},function(e,t,i){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var r=i(59),a=i(63),s=i(11),o=i(125),l=(i.n(o),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={props:{pageData:{type:Object|String},maxWidthMobile:{type:Number},curSystem:{type:String},envUrl:{type:String,default:"https://mpdev.ibaiqiu.com/"},widthShow:{type:String|Number},recordId:{type:String|Number},refererPagePath:{type:String},path:{type:String},brand:{type:String},isReportCms:{type:Boolean,default:!0},pathType:{type:Number,default:1}},components:{comTitle:r.a,hotSport:a.a},data:function(){return{isPC:!0,showSwiper:!1,pageDataObj:{list:[]}}},watch:{pageData:{handler:function(e,t){var i=this;if(e){var r="object"===(void 0===e?"undefined":u(e))?l({},e):l({},JSON.parse(e));if(1===r.componentType){var a=r.list.slice(0,1),s=r.list.slice(-1),o=[].concat(n(r.list)),d=[].concat(n(s),n(o),n(a));r.list=[].concat(n(d))}this.pageDataObj=r,1===this.pageDataObj.isVideoHasHot&&(this.pageDataObj.popList=this.pageDataObj.videoHotInfo.popList,this.pageDataObj.type=2),this.comTitleWidth>=0&&this.$nextTick(function(){i.comTitleWidth=i.$refs.videoRef?i.$refs.videoRef.clientWidth:"",i.getVideoHeight&&i.getVideoHeight()}),this.pageDataObj.list&&this.pageDataObj.list.length>4&&(this.showNavigation=!0)}},deep:!0,immediate:!0},curSystem:{handler:function(e,t){this.isPC="pc"===e,this.showSwiper=!1,this.changeOption&&this.changeOption()},deep:!0,immediate:!0},brand:{handler:function(e,t){localStorage.getItem(e+"Cookie")||localStorage.setItem(e+"Cookie",""+parseInt((new Date).getTime())+Math.floor(1e4*Math.random()))}}},computed:{swiperChange:function(){return{widthStyle:this.pageData.widthStyle,styleType:this.pageData.styleType}}},methods:{checkIsMobile:function(e){this.isPC===e&&(this.showSwiper=!1,this.isPC=!e,this.changeOption&&this.changeOption()),this.checkDomChange&&this.checkDomChange()},navigatorPage:function(e){this.$emit("jumpLink",e)},reportAnalytics:function(e){this.isReportCms&&(e.popData.brand=1===this.pathType?"defaultPath":this.brand,e.path=3===e.popData.pathType?e.popData.webUrl:"",Object(s.b)(l({},e,{brand:this.brand}),this.envUrl))}},beforeDestroy:function(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null),Object(s.a)()}}},function(e,t,i){e.exports=i(66)},function(e,t,i){var n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,o){"object"===a(t)&&void 0!==e?e.exports=o():(n=o,void 0!==(r="function"==typeof n?n.call(t,i,t,e):n)&&(e.exports=r))}(0,function(){"use strict";function e(e,t){var i=[],n=0;if(e&&!t&&e instanceof Ne)return e;if(e)if("string"==typeof e){var r,a,s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var o="div";for(0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select"),a=Le.createElement(o),a.innerHTML=s,n=0;n<a.childNodes.length;n+=1)i.push(a.childNodes[n])}else for(r=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||Le).querySelectorAll(e.trim()):[Le.getElementById(e.trim().split("#")[1])],n=0;n<r.length;n+=1)r[n]&&i.push(r[n])}else if(e.nodeType||e===Me||e===Le)i.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)i.push(e[n]);return new Ne(i)}function t(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function i(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this}function n(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this}function r(e){return!!this[0]&&this[0].classList.contains(e)}function s(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this}function o(e,t){var i=arguments;{if(1!==arguments.length||"string"!=typeof e){for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}if(this[0])return this[0].getAttribute(e)}}function l(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function u(e,t){var i;{if(void 0!==t){for(var n=0;n<this.length;n+=1)i=this[n],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);if(r)return r;return}}}function d(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function c(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this}function p(){function t(t){var i=t.target;if(i){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),e(i).is(o))l.apply(i,n);else for(var r=e(i).parents(),a=0;a<r.length;a+=1)e(r[a]).is(o)&&l.apply(r[a],n)}}function i(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var n,r=[],a=arguments.length;a--;)r[a]=arguments[a];var s=r[0],o=r[1],l=r[2],u=r[3];"function"==typeof r[1]&&(n=r,s=n[0],l=n[1],u=n[2],o=void 0),u||(u=!1);for(var d,c=s.split(" "),p=0;p<this.length;p+=1){var h=this[p];if(o)for(d=0;d<c.length;d+=1){var f=c[d];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:l,proxyListener:t}),h.addEventListener(f,t,u)}else for(d=0;d<c.length;d+=1){var v=c[d];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[v]||(h.dom7Listeners[v]=[]),h.dom7Listeners[v].push({listener:l,proxyListener:i}),h.addEventListener(v,i,u)}}return this}function h(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=t[0],r=t[1],a=t[2],s=t[3];"function"==typeof t[1]&&(e=t,n=e[0],a=e[1],s=e[2],r=void 0),s||(s=!1);for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],d=0;d<this.length;d+=1){var c=this[d],p=void 0;if(!r&&c.dom7Listeners?p=c.dom7Listeners[u]:r&&c.dom7LiveListeners&&(p=c.dom7LiveListeners[u]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];a&&f.listener===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a||(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1))}}return this}function f(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=e[0].split(" "),n=e[1],r=0;r<i.length;r+=1)for(var a=i[r],s=0;s<this.length;s+=1){var o=this[s],l=void 0;try{l=new Me.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0})}catch(e){l=Le.createEvent("Event"),l.initEvent(a,!0,!0),l.detail=n}o.dom7EventData=e.filter(function(e,t){return t>0}),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}return this}function v(e){function t(a){if(a.target===this)for(e.call(this,a),i=0;i<n.length;i+=1)r.off(n[i],t)}var i,n=["webkitTransitionEnd","transitionend"],r=this;if(e)for(i=0;i<n.length;i+=1)r.on(n[i],t);return this}function m(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 g(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 y(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),i=Le.body,n=e.clientTop||i.clientTop||0,r=e.clientLeft||i.clientLeft||0,a=e===Me?Me.scrollY:e.scrollTop,s=e===Me?Me.scrollX:e.scrollLeft;return{top:t.top+a-n,left:t.left+s-r}}return null}function b(){return this[0]?Me.getComputedStyle(this[0],null):{}}function _(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return Me.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]=t;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 T(e){if(void 0===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 S(e){if(void 0===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 k(t){var i,n,r=this[0];if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(i=e(t),n=0;n<i.length;n+=1)if(i[n]===r)return!0;return!1}if(t===Le)return r===Le;if(t===Me)return r===Me;if(t.nodeType||t instanceof Ne){for(i=t.nodeType?[t]:t,n=0;n<i.length;n+=1)if(i[n]===r)return!0;return!1}return!1}function x(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function E(e){if(void 0===e)return this;var t,i=this.length;return e>i-1?new Ne([]):e<0?(t=i+e,new Ne(t<0?[]:[this[t]])):new Ne([this[e]])}function C(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i,n=0;n<e.length;n+=1){i=e[n];for(var r=0;r<this.length;r+=1)if("string"==typeof i){var a=Le.createElement("div");for(a.innerHTML=i;a.firstChild;)this[r].appendChild(a.firstChild)}else if(i instanceof Ne)for(var s=0;s<i.length;s+=1)this[r].appendChild(i[s]);else this[r].appendChild(i)}return this}function j(e){var t,i;for(t=0;t<this.length;t+=1)if("string"==typeof e){var n=Le.createElement("div");for(n.innerHTML=e,i=n.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof Ne)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function O(t){return new Ne(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function P(t){var i=[],n=this[0];if(!n)return new Ne([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;t?e(r).is(t)&&i.push(r):i.push(r),n=r}return new Ne(i)}function I(t){if(this.length>0){var i=this[0];return new Ne(t?i.previousElementSibling&&e(i.previousElementSibling).is(t)?[i.previousElementSibling]:[]:i.previousElementSibling?[i.previousElementSibling]:[])}return new Ne([])}function A(t){var i=[],n=this[0];if(!n)return new Ne([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;t?e(r).is(t)&&i.push(r):i.push(r),n=r}return new Ne(i)}function D(i){for(var n=[],r=0;r<this.length;r+=1)null!==this[r].parentNode&&(i?e(this[r].parentNode).is(i)&&n.push(this[r].parentNode):n.push(this[r].parentNode));return e(t(n))}function L(i){for(var n=[],r=0;r<this.length;r+=1)for(var a=this[r].parentNode;a;)i?e(a).is(i)&&n.push(a):n.push(a),a=a.parentNode;return e(t(n))}function M(e){var t=this;return void 0===e?new Ne([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function N(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return new Ne(t)}function R(i){for(var n=[],r=0;r<this.length;r+=1)for(var a=this[r].childNodes,s=0;s<a.length;s+=1)i?1===a[s].nodeType&&e(a[s]).is(i)&&n.push(a[s]):1===a[s].nodeType&&n.push(a[s]);return new Ne(t(n))}function U(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function B(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var n,r,a=this;for(n=0;n<t.length;n+=1){var s=e(t[n]);for(r=0;r<s.length;r+=1)a[a.length]=s[r],a.length+=1}return a}function z(){var e,t,i=this,n=i.$el;e=void 0!==i.params.width?i.params.width:n[0].clientWidth,t=void 0!==i.params.height?i.params.height:n[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),Ue.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function F(){var e=this,t=e.params,i=e.$wrapperEl,n=e.size,r=e.rtlTranslate,a=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=i.children("."+e.params.slideClass),u=s?e.virtual.slides.length:l.length,d=[],c=[],p=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var v=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,y=-h,b=0,_=0;if(void 0!==n){"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*n),e.virtualSize=-g,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var w;t.slidesPerColumn>1&&(w=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(w=Math.max(w,t.slidesPerView*t.slidesPerColumn)));for(var T,S=t.slidesPerColumn,k=w/S,x=Math.floor(u/t.slidesPerColumn),E=0;E<u;E+=1){T=0;var C=l.eq(E);if(t.slidesPerColumn>1){var j=void 0,O=void 0,P=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)O=Math.floor(E/S),P=E-O*S,(O>x||O===x&&P===S-1)&&(P+=1)>=S&&(P=0,O+=1);else{var I=Math.floor(E/t.slidesPerGroup);P=Math.floor(E/t.slidesPerView)-I*t.slidesPerColumn,O=E-P*t.slidesPerView-I*t.slidesPerView}j=O+P*w/S,C.css({"-webkit-box-ordinal-group":j,"-moz-box-ordinal-group":j,"-ms-flex-order":j,"-webkit-order":j,order:j})}else P=Math.floor(E/k),O=E-P*k;C.css("margin-"+(e.isHorizontal()?"top":"left"),0!==P&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",O).attr("data-swiper-row",P)}if("none"!==C.css("display")){if("auto"===t.slidesPerView){var A=Me.getComputedStyle(C[0],null),D=C[0].style.transform,L=C[0].style.webkitTransform;if(D&&(C[0].style.transform="none"),L&&(C[0].style.webkitTransform="none"),t.roundLengths)T=e.isHorizontal()?C.outerWidth(!0):C.outerHeight(!0);else if(e.isHorizontal()){var M=parseFloat(A.getPropertyValue("width")),N=parseFloat(A.getPropertyValue("padding-left")),R=parseFloat(A.getPropertyValue("padding-right")),U=parseFloat(A.getPropertyValue("margin-left")),B=parseFloat(A.getPropertyValue("margin-right")),z=A.getPropertyValue("box-sizing");T=z&&"border-box"===z&&!ze.isIE?M+U+B:M+N+R+U+B}else{var F=parseFloat(A.getPropertyValue("height")),q=parseFloat(A.getPropertyValue("padding-top")),V=parseFloat(A.getPropertyValue("padding-bottom")),H=parseFloat(A.getPropertyValue("margin-top")),G=parseFloat(A.getPropertyValue("margin-bottom")),W=A.getPropertyValue("box-sizing");T=W&&"border-box"===W&&!ze.isIE?F+H+G:F+q+V+H+G}D&&(C[0].style.transform=D),L&&(C[0].style.webkitTransform=L),t.roundLengths&&(T=Math.floor(T))}else T=(n-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(T=Math.floor(T)),l[E]&&(e.isHorizontal()?l[E].style.width=T+"px":l[E].style.height=T+"px");l[E]&&(l[E].swiperSlideSize=T),p.push(T),t.centeredSlides?(y=y+T/2+b/2+g,0===b&&0!==E&&(y=y-n/2-g),0===E&&(y=y-n/2-g),Math.abs(y)<.001&&(y=0),t.roundLengths&&(y=Math.floor(y)),_%t.slidesPerGroup==0&&d.push(y),c.push(y)):(t.roundLengths&&(y=Math.floor(y)),_%t.slidesPerGroup==0&&d.push(y),c.push(y),y=y+T+g),e.virtualSize+=T+g,b=T,_+=1}}e.virtualSize=Math.max(e.virtualSize,n)+f;var X;if(r&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),Be.flexbox&&!t.setWrapperSize||(e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(T+t.spaceBetween)*w,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){X=[];for(var Y=0;Y<d.length;Y+=1){var $=d[Y];t.roundLengths&&($=Math.floor($)),d[Y]<e.virtualSize+d[0]&&X.push($)}d=X}if(!t.centeredSlides){X=[];for(var K=0;K<d.length;K+=1){var J=d[K];t.roundLengths&&(J=Math.floor(J)),d[K]<=e.virtualSize-n&&X.push(J)}d=X,Math.floor(e.virtualSize-n)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-n)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?r?l.css({marginLeft:g+"px"}):l.css({marginRight:g+"px"}):l.css({marginBottom:g+"px"})),t.centerInsufficientSlides){var Q=0;if(p.forEach(function(e){Q+=e+(t.spaceBetween?t.spaceBetween:0)}),(Q-=t.spaceBetween)<n){var Z=(n-Q)/2;d.forEach(function(e,t){d[t]=e-Z}),c.forEach(function(e,t){c[t]=e+Z})}}Ue.extend(e,{slides:l,snapGrid:d,slidesGrid:c,slidesSizesGrid:p}),u!==o&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),c.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function q(e){var t,i=this,n=[],r=0;if("number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var a=i.activeIndex+t;if(a>i.slides.length)break;n.push(i.slides.eq(a)[0])}else n.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var s=n[t].offsetHeight;r=s>r?s:r}r&&i.$wrapperEl.css("height",r+"px")}function V(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}function H(t){void 0===t&&(t=this&&this.translate||0);var i=this,n=i.params,r=i.slides,a=i.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&i.updateSlidesOffset();var s=-t;a&&(s=t),r.removeClass(n.slideVisibleClass),i.visibleSlidesIndexes=[],i.visibleSlides=[];for(var o=0;o<r.length;o+=1){var l=r[o],u=(s+(n.centeredSlides?i.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var d=-(s-l.swiperSlideOffset),c=d+i.slidesSizesGrid[o];(d>=0&&d<i.size-1||c>1&&c<=i.size||d<=0&&c>=i.size)&&(i.visibleSlides.push(l),i.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}l.progress=a?-u:u}i.visibleSlides=e(i.visibleSlides)}}function G(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,n=t.maxTranslate()-t.minTranslate(),r=t.progress,a=t.isBeginning,s=t.isEnd,o=a,l=s;0===n?(r=0,a=!0,s=!0):(r=(e-t.minTranslate())/n,a=r<=0,s=r>=1),Ue.extend(t,{progress:r,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.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 W(){var e=this,t=e.slides,i=e.params,n=e.$wrapperEl,r=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass);var o;o=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=o.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));var u=o.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===u.length&&(u=t.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function X(e){var t,i=this,n=i.rtlTranslate?i.translate:-i.translate,r=i.slidesGrid,a=i.snapGrid,s=i.params,o=i.activeIndex,l=i.realIndex,u=i.snapIndex,d=e;if(void 0===d){for(var c=0;c<r.length;c+=1)void 0!==r[c+1]?n>=r[c]&&n<r[c+1]-(r[c+1]-r[c])/2?d=c:n>=r[c]&&n<r[c+1]&&(d=c+1):n>=r[c]&&(d=c);s.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(t=a.indexOf(n)>=0?a.indexOf(n):Math.floor(d/s.slidesPerGroup),t>=a.length&&(t=a.length-1),d===o)return void(t!==u&&(i.snapIndex=t,i.emit("snapIndexChange")));var p=parseInt(i.slides.eq(d).attr("data-swiper-slide-index")||d,10);Ue.extend(i,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:d}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),(i.initialized||i.runCallbacksOnInit)&&i.emit("slideChange")}function Y(t){var i=this,n=i.params,r=e(t.target).closest("."+n.slideClass)[0],a=!1;if(r)for(var s=0;s<i.slides.length;s+=1)i.slides[s]===r&&(a=!0);if(!r||!a)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(e(r).attr("data-swiper-slide-index"),10):i.clickedIndex=e(r).index(),n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}function $(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,i=t.params,n=t.rtlTranslate,r=t.translate,a=t.$wrapperEl;if(i.virtualTranslate)return n?-r:r;var s=Ue.getTranslate(a[0],e);return n&&(s=-s),s||0}function K(e,t){var i=this,n=i.rtlTranslate,r=i.params,a=i.$wrapperEl,s=i.progress,o=0,l=0;i.isHorizontal()?o=n?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.virtualTranslate||(Be.transforms3d?a.transform("translate3d("+o+"px, "+l+"px, 0px)"):a.transform("translate("+o+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l;var u,d=i.maxTranslate()-i.minTranslate();u=0===d?0:(e-i.minTranslate())/d,u!==s&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function J(){return-this.snapGrid[0]}function Q(){return-this.snapGrid[this.snapGrid.length-1]}function Z(e,t){var i=this;i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function ee(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.params,a=i.previousIndex;r.autoHeight&&i.updateAutoHeight();var s=t;if(s||(s=n>a?"next":n<a?"prev":"reset"),i.emit("transitionStart"),e&&n!==a){if("reset"===s)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===s?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}function te(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.previousIndex;i.animating=!1,i.setTransition(0);var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),i.emit("transitionEnd"),e&&n!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}function ie(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,a=e;a<0&&(a=0);var s=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,c=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(a/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(d||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var h=-o[p];if(r.updateProgress(h),s.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*h)>=Math.floor(100*l[f])&&(a=f);if(r.initialized&&a!==d){if(!r.allowSlideNext&&h<r.translate&&h<r.minTranslate())return!1;if(!r.allowSlidePrev&&h>r.translate&&h>r.maxTranslate()&&(d||0)!==a)return!1}var v;return v=a>d?"next":a<d?"prev":"reset",c&&-h===r.translate||!c&&h===r.translate?(r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(h),"reset"!==v&&(r.transitionStart(i,v),r.transitionEnd(i,v)),!1):(0!==t&&Be.transition?(r.setTransition(t),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),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(i,v))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.transitionEnd(i,v)),!0)}function ne(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,a=e;return r.params.loop&&(a+=r.loopedSlides),r.slideTo(a,t,i,n)}function re(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.params,a=n.animating;return r.loop?!a&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)}function ae(e,t,i){function n(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,a=r.params,s=r.animating,o=r.snapGrid,l=r.slidesGrid,u=r.rtlTranslate;if(a.loop){if(s)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var d,c=u?r.translate:-r.translate,p=n(c),h=o.map(function(e){return n(e)}),f=(l.map(function(e){return n(e)}),o[h.indexOf(p)],o[h.indexOf(p)-1]);return void 0!==f&&(d=l.indexOf(f))<0&&(d=r.activeIndex-1),r.slideTo(d,e,t,i)}function se(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this;return n.slideTo(n.activeIndex,e,t,i)}function oe(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.activeIndex,a=Math.floor(r/n.params.slidesPerGroup);if(a<n.snapGrid.length-1){var s=n.rtlTranslate?n.translate:-n.translate,o=n.snapGrid[a];s-o>(n.snapGrid[a+1]-o)/2&&(r=n.params.slidesPerGroup)}return n.slideTo(r,e,t,i)}function le(){var t,i=this,n=i.params,r=i.$wrapperEl,a="auto"===n.slidesPerView?i.slidesPerViewDynamic():n.slidesPerView,s=i.clickedIndex;if(n.loop){if(i.animating)return;t=parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?s<i.loopedSlides-a/2||s>i.slides.length-i.loopedSlides+a/2?(i.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Ue.nextTick(function(){i.slideTo(s)})):i.slideTo(s):s>i.slides.length-a?(i.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Ue.nextTick(function(){i.slideTo(s)})):i.slideTo(s)}else i.slideTo(s)}function ue(){var t=this,i=t.params,n=t.$wrapperEl;n.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var r=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var a=i.slidesPerGroup-r.length%i.slidesPerGroup;if(a!==i.slidesPerGroup){for(var s=0;s<a;s+=1){var o=e(Le.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);n.append(o)}r=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var l=[],u=[];r.each(function(i,n){var a=e(n);i<t.loopedSlides&&u.push(n),i<r.length&&i>=r.length-t.loopedSlides&&l.push(n),a.attr("data-swiper-slide-index",i)});for(var d=0;d<u.length;d+=1)n.append(e(u[d].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var c=l.length-1;c>=0;c-=1)n.prepend(e(l[c].cloneNode(!0)).addClass(i.slideDuplicateClass))}function de(){var e,t=this,i=t.params,n=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 d=-l[n],c=d-t.getTranslate();if(n<a){e=r.length-3*a+n,e+=a;t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((u?-t.translate:t.translate)-c)}else if("auto"===i.slidesPerView&&n>=2*a||n>=r.length-a){e=-r.length+n+a,e+=a;var p=t.slideTo(e,0,!1,!0);p&&0!==c&&t.setTranslate((u?-t.translate:t.translate)-c)}t.allowSlidePrev=s,t.allowSlideNext=o}function ce(){var e=this,t=e.$wrapperEl,i=e.params,n=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}function pe(e){var t=this;if(!(Be.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var i=t.el;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"}}function he(){var e=this;Be.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}function fe(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"===(void 0===e?"undefined":a(e))&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&Be.observer||t.update()}function ve(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var s=r+1;if("object"===(void 0===e?"undefined":a(e))&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&n.prepend(e[o]);s=r+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&Be.observer||t.update(),t.slideTo(s,0,!1)}function me(e,t){var i=this,n=i.$wrapperEl,r=i.params,s=i.activeIndex,o=s;r.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+r.slideClass));var l=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=l)return void i.appendSlide(t);for(var u=o>e?o+1:o,d=[],c=l-1;c>=e;c-=1){var p=i.slides.eq(c);p.remove(),d.unshift(p)}if("object"===(void 0===t?"undefined":a(t))&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&n.append(t[h]);u=o>e?o+t.length:o}else n.append(t);for(var f=0;f<d.length;f+=1)n.append(d[f]);r.loop&&i.loopCreate(),r.observer&&Be.observer||i.update(),r.loop?i.slideTo(u+i.loopedSlides,0,!1):i.slideTo(u,0,!1)}function ge(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex,s=r;i.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var o,l=s;if("object"===(void 0===e?"undefined":a(e))&&"length"in e){for(var u=0;u<e.length;u+=1)o=e[u],t.slides[o]&&t.slides.eq(o).remove(),o<l&&(l-=1);l=Math.max(l,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<l&&(l-=1),l=Math.max(l,0);i.loop&&t.loopCreate(),i.observer&&Be.observer||t.update(),i.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function ye(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function be(t){var i=this,n=i.touchEventsData,r=i.params,a=i.touches;if(!i.animating||!r.preventInteractionOnTransition){var s=t;if(s.originalEvent&&(s=s.originalEvent),n.isTouchEvent="touchstart"===s.type,(n.isTouchEvent||!("which"in s)||3!==s.which)&&!(!n.isTouchEvent&&"button"in s&&s.button>0||n.isTouched&&n.isMoved)){if(r.noSwiping&&e(s.target).closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])return void(i.allowClick=!0);if(!r.swipeHandler||e(s).closest(r.swipeHandler)[0]){a.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,a.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var o=a.currentX,l=a.currentY,u=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,d=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!u||!(o<=d||o>=Me.screen.width-d)){if(Ue.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=o,a.startY=l,n.touchStartTime=Ue.now(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==s.type){var c=!0;e(s.target).is(n.formElements)&&(c=!1),Le.activeElement&&e(Le.activeElement).is(n.formElements)&&Le.activeElement!==s.target&&Le.activeElement.blur();var p=c&&i.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||p)&&s.preventDefault()}i.emit("touchStart",s)}}}}}function _e(t){var i=this,n=i.touchEventsData,r=i.params,a=i.touches,s=i.rtlTranslate,o=t;if(o.originalEvent&&(o=o.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",o));if(!n.isTouchEvent||"mousemove"!==o.type){var l="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,u="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY;if(o.preventedByNestedSwiper)return a.startX=l,void(a.startY=u);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(Ue.extend(a,{startX:l,startY:u,currentX:l,currentY:u}),n.touchStartTime=Ue.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<a.startY&&i.translate<=i.maxTranslate()||u>a.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(l<a.startX&&i.translate<=i.maxTranslate()||l>a.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&Le.activeElement&&o.target===Le.activeElement&&e(o.target).is(n.formElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){a.currentX=l,a.currentY=u;var d=a.currentX-a.startX,c=a.currentY-a.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(c,2))<i.params.threshold)){if(void 0===n.isScrolling){var p;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:d*d+c*c>=25&&(p=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,n.isScrolling=i.isHorizontal()?p>r.touchAngle:90-p>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",o),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(n.startMoving){i.allowClick=!1,o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation(),n.isMoved||(r.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",o)),i.emit("sliderMove",o),n.isMoved=!0;var h=i.isHorizontal()?d:c;a.diff=h,h*=r.touchRatio,s&&(h=-h),i.swipeDirection=h>0?"prev":"next",n.currentTranslate=h+n.startTranslate;var f=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),h>0&&n.currentTranslate>i.minTranslate()?(f=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+n.startTranslate+h,v))):h<0&&n.currentTranslate<i.maxTranslate()&&(f=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-n.startTranslate-h,v))),f&&(o.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(h)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:a[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:a[i.isHorizontal()?"currentX":"currentY"],time:Ue.now()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}}}}}function we(e){var t=this,i=t.touchEventsData,n=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),i.allowTouchCallbacks&&t.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=Ue.now(),c=d-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),c<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=Ue.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),c<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",u))),i.lastClickTime=Ue.now(),Ue.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;var p;if(p=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var h=i.velocities.pop(),f=i.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(m>150||Ue.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var g=1e3*n.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var _,w,T=!1,S=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(b<t.maxTranslate())n.freeModeMomentumBounce?(b+t.maxTranslate()<-S&&(b=t.maxTranslate()-S),_=t.maxTranslate(),T=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),n.loop&&n.centeredSlides&&(w=!0);else if(b>t.minTranslate())n.freeModeMomentumBounce?(b-t.minTranslate()>S&&(b=t.minTranslate()+S),_=t.minTranslate(),T=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),n.loop&&n.centeredSlides&&(w=!0);else if(n.freeModeSticky){for(var k,x=0;x<l.length;x+=1)if(l[x]>-b){k=x;break}b=Math.abs(l[k]-b)<Math.abs(l[k-1]-b)||"next"===t.swipeDirection?l[k]:l[k-1],b=-b}if(w&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&T?(t.updateProgress(_),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(_),s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(b),t.setTransition(g),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(n.freeModeSticky)return void t.slideToClosest();return void((!n.freeModeMomentum||c>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var E=0,C=t.slidesSizesGrid[0],j=0;j<o.length;j+=n.slidesPerGroup)void 0!==o[j+n.slidesPerGroup]?p>=o[j]&&p<o[j+n.slidesPerGroup]&&(E=j,C=o[j+n.slidesPerGroup]-o[j]):p>=o[j]&&(E=j,C=o[o.length-1]-o[o.length-2]);var O=(p-o[E])/C;if(c>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(O>=n.longSwipesRatio?t.slideTo(E+n.slidesPerGroup):t.slideTo(E)),"prev"===t.swipeDirection&&(O>1-n.longSwipesRatio?t.slideTo(E+n.slidesPerGroup):t.slideTo(E))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(E+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(E)}}function Te(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=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=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function Se(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function ke(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl;e.onTouchStart=be.bind(e),e.onTouchMove=_e.bind(e),e.onTouchEnd=we.bind(e),e.onClick=Se.bind(e);var a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(Be.touch||!Be.pointerEvents&&!Be.prefixedPointerEvents){if(Be.touch){var o=!("touchstart"!==i.start||!Be.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(i.start,e.onTouchStart,o),a.addEventListener(i.move,e.onTouchMove,Be.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!Ke.ios&&!Ke.android||t.simulateTouch&&!Be.touch&&Ke.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),Le.addEventListener("mousemove",e.onTouchMove,s),Le.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(i.start,e.onTouchStart,!1),Le.addEventListener(i.move,e.onTouchMove,s),Le.addEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(Ke.ios||Ke.android?"resize orientationchange observerUpdate":"resize observerUpdate",Te,!0)}function xe(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl,a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(Be.touch||!Be.pointerEvents&&!Be.prefixedPointerEvents){if(Be.touch){var o=!("onTouchStart"!==i.start||!Be.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(i.start,e.onTouchStart,o),a.removeEventListener(i.move,e.onTouchMove,s),a.removeEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!Ke.ios&&!Ke.android||t.simulateTouch&&!Be.touch&&Ke.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),Le.removeEventListener("mousemove",e.onTouchMove,s),Le.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(i.start,e.onTouchStart,!1),Le.removeEventListener(i.move,e.onTouchMove,s),Le.removeEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(Ke.ios||Ke.android?"resize orientationchange observerUpdate":"resize observerUpdate",Te)}function Ee(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides;void 0===n&&(n=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];void 0!==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,d=r.loop&&(l.slidesPerView!==r.slidesPerView||u);u&&i&&e.changeDirection(),Ue.extend(e.params,l),Ue.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,d&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}}}function Ce(e){var t=this;if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var a=n[r];t.params.breakpointsInverse?a<=Me.innerWidth&&(i=a):a>=Me.innerWidth&&!i&&(i=a)}return i||"max"}}function je(){var e=this,t=e.classNames,i=e.params,n=e.rtl,r=e.$el,a=[];a.push("initialized"),a.push(i.direction),i.freeMode&&a.push("free-mode"),Be.flexbox||a.push("no-flexbox"),i.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),i.slidesPerColumn>1&&a.push("multirow"),Ke.android&&a.push("android"),Ke.ios&&a.push("ios"),(ze.isIE||ze.isEdge)&&(Be.pointerEvents||Be.prefixedPointerEvents)&&a.push("wp8-"+i.direction),a.forEach(function(e){t.push(i.containerModifierClass+e)}),r.addClass(t.join(" "))}function Oe(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}function Pe(e,t,i,n,r,a){function s(){a&&a()}var o;e.complete&&r?s():t?(o=new Me.Image,o.onload=s,o.onerror=s,n&&(o.sizes=n),i&&(o.srcset=i),t&&(o.src=t)):s()}function Ie(){function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}function Ae(){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())}function De(){var e="onwheel"in Le;if(!e){var t=Le.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&Le.implementation&&Le.implementation.hasFeature&&!0!==Le.implementation.hasFeature("","")&&(e=Le.implementation.hasFeature("Events.wheel","3.0")),e}var Le="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,Me="undefined"==typeof window?{document:Le,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,Ne=function(e){for(var t=this,i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this};e.fn=Ne.prototype,e.Class=Ne,e.Dom7=Ne;var Re={addClass:i,removeClass:n,hasClass:r,toggleClass:s,attr:o,removeAttr:l,data:u,transform:d,transition:c,on:p,off:h,trigger:f,transitionEnd:v,outerWidth:m,outerHeight:g,offset:y,css:_,each:w,html:T,text:S,is:k,index:x,eq:E,append:C,prepend:j,next:O,nextAll:P,prev:I,prevAll:A,parent:D,parents:L,closest:M,find:N,children:R,remove:U,add:B,styles:b};Object.keys(Re).forEach(function(t){e.fn[t]=e.fn[t]||Re[t]});var Ue={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){void 0===t&&(t="x");var i,n,r,a=Me.getComputedStyle(e,null);return Me.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new Me.WebKitCSSMatrix("none"===n?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(n=Me.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=Me.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(e){var t,i,n,r,a={},s=e||Me.location.href;if("string"==typeof s&&s.length)for(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"",i=s.split("&").filter(function(e){return""!==e}),r=i.length,t=0;t<r;t+=1)n=i[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return a},isObject:function(e){return"object"===(void 0===e?"undefined":a(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),n=1;n<e.length;n+=1){var r=e[n];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&&(Ue.isObject(i[l])&&Ue.isObject(r[l])?Ue.extend(i[l],r[l]):!Ue.isObject(i[l])&&Ue.isObject(r[l])?(i[l]={},Ue.extend(i[l],r[l])):i[l]=r[l])}}return i}},Be=function(){var e=Le.createElement("div");return{touch:Me.Modernizr&&!0===Me.Modernizr.touch||function(){return!!(Me.navigator.maxTouchPoints>0||"ontouchstart"in Me||Me.DocumentTouch&&Le instanceof Me.DocumentTouch)}(),pointerEvents:!!(Me.navigator.pointerEnabled||Me.PointerEvent||"maxTouchPoints"in Me.navigator&&Me.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Me.navigator.msPointerEnabled,transition:function(){var t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:Me.Modernizr&&!0===Me.Modernizr.csstransforms3d||function(){var t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<i.length;n+=1)if(i[n]in t)return!0;return!1}(),observer:function(){return"MutationObserver"in Me||"WebkitMutationObserver"in Me}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});Me.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in Me}()}}(),ze=function(){return{isIE:!!Me.navigator.userAgent.match(/Trident/g)||!!Me.navigator.userAgent.match(/MSIE/g),isEdge:!!Me.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=Me.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Me.navigator.userAgent)}}(),Fe=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])})},qe={components:{configurable:!0}};Fe.prototype.on=function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n},Fe.prototype.once=function(e,t,i){function n(){for(var i=[],a=arguments.length;a--;)i[a]=arguments[a];t.apply(r,i),r.off(e,n),n.f7proxy&&delete n.f7proxy}var r=this;return"function"!=typeof t?r:(n.f7proxy=t,r.on(e,n,i))},Fe.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach(function(n,r){(n===t||n.f7proxy&&n.f7proxy===t)&&i.eventsListeners[e].splice(r,1)})}),i):i},Fe.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i=this;if(!i.eventsListeners)return i;var n,r,a;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=i):(n=e[0].events,r=e[0].data,a=e[0].context||i),(Array.isArray(n)?n:n.split(" ")).forEach(function(e){if(i.eventsListeners&&i.eventsListeners[e]){var t=[];i.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(a,r)})}}),i},Fe.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&Ue.extend(e,n.params)})},Fe.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})},qe.components.set=function(e){var t=this;t.use&&t.use(e)},Fe.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var r=e.name||Object.keys(n.prototype.modules).length+"_"+Ue.now();return n.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach(function(t){n.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){n[t]=e.static[t]}),e.install&&e.install.apply(n,t),n},Fe.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;return Array.isArray(e)?(e.forEach(function(e){return n.installModule(e)}),n):n.installModule.apply(n,[e].concat(t))},Object.defineProperties(Fe,qe);var Ve={updateSize:z,updateSlides:F,updateAutoHeight:q,updateSlidesOffset:V,updateSlidesProgress:H,updateProgress:G,updateSlidesClasses:W,updateActiveIndex:X,updateClickedSlide:Y},He={getTranslate:$,setTranslate:K,minTranslate:J,maxTranslate:Q},Ge={setTransition:Z,transitionStart:ee,transitionEnd:te},We={slideTo:ie,slideToLoop:ne,slideNext:re,slidePrev:ae,slideReset:se,slideToClosest:oe,slideToClickedSlide:le},Xe={loopCreate:ue,loopFix:de,loopDestroy:ce},Ye={setGrabCursor:pe,unsetGrabCursor:he},$e={appendSlide:fe,prependSlide:ve,addSlide:me,removeSlide:ge,removeAllSlides:ye},Ke=function(){var e=Me.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Me.cordova||Me.phonegap,phonegap:Me.cordova||Me.phonegap},i=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(t.os="windows",t.osVersion=i[2],t.windows=!0),n&&!i&&(t.os="android",t.osVersion=n[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||s||a)&&(t.os="ios",t.ios=!0),s&&!a&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),r&&(t.osVersion=r[2].replace(/_/g,"."),t.ipad=!0),a&&(t.osVersion=a[3]?a[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||r||a)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=Le.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(a||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=Me.devicePixelRatio||1,t}(),Je={attachEvents:ke,detachEvents:xe},Qe={setBreakpoint:Ee,getBreakpoint:Ce},Ze={addClasses:je,removeClasses:Oe},et={loadImage:Pe,preloadImages:Ie},tt={checkOverflow:Ae},it={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},nt={update:Ve,translate:He,transition:Ge,slide:We,loop:Xe,grabCursor:Ye,manipulation:$e,events:Je,breakpoints:Qe,checkOverflow:tt,classes:Ze,images:et},rt={},at=function(t){function i(){for(var n,r=[],s=arguments.length;s--;)r[s]=arguments[s];var o,l;1===r.length&&r[0].constructor&&r[0].constructor===Object?l=r[0]:(n=r,o=n[0],l=n[1]),l||(l={}),l=Ue.extend({},l),o&&!l.el&&(l.el=o),t.call(this,l),Object.keys(nt).forEach(function(e){Object.keys(nt[e]).forEach(function(t){i.prototype[t]||(i.prototype[t]=nt[e][t])})});var u=this;void 0===u.modules&&(u.modules={}),Object.keys(u.modules).forEach(function(e){var t=u.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!==(void 0===n?"undefined":a(n))||null===n)return;if(!(i in l&&"enabled"in n))return;!0===l[i]&&(l[i]={enabled:!0}),"object"!==a(l[i])||"enabled"in l[i]||(l[i].enabled=!0),l[i]||(l[i]={enabled:!1})}});var d=Ue.extend({},it);u.useModulesParams(d),u.params=Ue.extend({},d,rt,l),u.originalParams=Ue.extend({},u.params),u.passedParams=Ue.extend({},l),u.$=e;var c=e(u.params.el);if(o=c[0]){if(c.length>1){var p=[];return c.each(function(e,t){var n=Ue.extend({},l,{el:t});p.push(new i(n))}),p}o.swiper=u,c.data("swiper",u);var h=c.children("."+u.params.wrapperClass);return Ue.extend(u,{$el:c,el:o,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:e(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===u.params.direction},isVertical:function(){return"vertical"===u.params.direction},rtl:"rtl"===o.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===u.params.direction&&("rtl"===o.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:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return Be.pointerEvents?t=["pointerdown","pointermove","pointerup"]:Be.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEventsTouch={start:e[0],move:e[1],end:e[2]},u.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},Be.touch||!u.params.simulateTouch?u.touchEventsTouch:u.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:Ue.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.params.init&&u.init(),u}}t&&(i.__proto__=t),i.prototype=Object.create(t&&t.prototype),i.prototype.constructor=i;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return i.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,r=e.size,a=e.activeIndex,s=1;if(t.centeredSlides){for(var o,l=i[a].swiperSlideSize,u=a+1;u<i.length;u+=1)i[u]&&!o&&(l+=i[u].swiperSlideSize,s+=1,l>r&&(o=!0));for(var d=a-1;d>=0;d-=1)i[d]&&!o&&(l+=i[d].swiperSlideSize,s+=1,l>r&&(o=!0))}else for(var c=a+1;c<i.length;c+=1)n[c]-n[a]<r&&(s+=1);return s},i.prototype.update=function(){function e(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var i=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}},i.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e?i:(i.$el.removeClass(""+i.params.containerModifierClass+n+" wp8-"+n).addClass(""+i.params.containerModifierClass+e),(ze.isIE||ze.isEdge)&&(Be.pointerEvents||Be.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+e),i.params.direction=e,i.slides.each(function(t,i){"vertical"===e?i.style.width="":i.style.height=""}),i.emit("changeDirection"),t&&i.update(),i)},i.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"))},i.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,n=i.params,r=i.$el,a=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(e){i.off(e)}),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),Ue.deleteProps(i)),i.destroyed=!0,null)},i.extendDefaults=function(e){Ue.extend(rt,e)},n.extendedDefaults.get=function(){return rt},n.defaults.get=function(){return it},n.Class.get=function(){return t},n.$.get=function(){return e},Object.defineProperties(i,n),i}(Fe),st={name:"device",proto:{device:Ke},static:{device:Ke}},ot={name:"support",proto:{support:Be},static:{support:Be}},lt={name:"browser",proto:{browser:ze},static:{browser:ze}},ut={name:"resize",create:function(){var e=this;Ue.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;Me.addEventListener("resize",e.resize.resizeHandler),Me.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;Me.removeEventListener("resize",e.resize.resizeHandler),Me.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},dt={func:Me.MutationObserver||Me.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,n=dt.func,r=new n(function(e){if(1===e.length)return void i.emit("observerUpdate",e[0]);var t=function(){i.emit("observerUpdate",e[0])};Me.requestAnimationFrame?Me.requestAnimationFrame(t):Me.setTimeout(t,0)});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(r)},init:function(){var e=this;if(Be.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);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=[]}},ct={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;Ue.extend(e,{observer:{init:dt.init.bind(e),attach:dt.attach.bind(e),destroy:dt.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},pt={update:function(e){function t(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,n=i.params,r=n.slidesPerView,a=n.slidesPerGroup,s=n.centeredSlides,o=i.params.virtual,l=o.addSlidesBefore,u=o.addSlidesAfter,d=i.virtual,c=d.from,p=d.to,h=d.slides,f=d.slidesGrid,v=d.renderSlide,m=d.offset;i.updateActiveIndex();var g,y=i.activeIndex||0;g=i.rtlTranslate?"right":i.isHorizontal()?"left":"top";var b,_;s?(b=Math.floor(r/2)+a+l,_=Math.floor(r/2)+a+u):(b=r+(a-1)+l,_=a+u);var w=Math.max((y||0)-_,0),T=Math.min((y||0)+b,h.length-1),S=(i.slidesGrid[w]||0)-(i.slidesGrid[0]||0);if(Ue.extend(i.virtual,{from:w,to:T,offset:S,slidesGrid:i.slidesGrid}),c===w&&p===T&&!e)return i.slidesGrid!==f&&S!==m&&i.slides.css(g,S+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:S,from:w,to:T,slides:function(){for(var e=[],t=w;t<=T;t+=1)e.push(h[t]);return e}()}),void t();var k=[],x=[];if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var E=c;E<=p;E+=1)(E<w||E>T)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+E+'"]').remove();for(var C=0;C<h.length;C+=1)C>=w&&C<=T&&(void 0===p||e?x.push(C):(C>p&&x.push(C),C<c&&k.push(C)));x.forEach(function(e){i.$wrapperEl.append(v(h[e],e))}),k.sort(function(e,t){return t-e}).forEach(function(e){i.$wrapperEl.prepend(v(h[e],e))}),i.$wrapperEl.children(".swiper-slide").css(g,S+"px"),t()},renderSlide:function(t,i){var n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[i])return n.virtual.cache[i];var a=e(r.renderSlide?r.renderSlide.call(n,t,i):'<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+i+'">'+t+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",i),r.cache&&(n.virtual.cache[i]=a),a},appendSlide:function(e){var t=this;if("object"===(void 0===e?"undefined":a(e))&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,i=t.activeIndex,n=i+1,r=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);n=i+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(n,0)},removeSlide:function(e){var t=this;if(void 0!==e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)t.virtual.slides.splice(e[n],1),t.params.virtual.cache&&delete t.virtual.cache[e[n]],e[n]<i&&(i-=1),i=Math.max(i,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<i&&(i-=1),i=Math.max(i,0);t.virtual.update(!0),t.slideTo(i,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},ht={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;Ue.extend(e,{virtual:{update:pt.update.bind(e),appendSlide:pt.appendSlide.bind(e),prependSlide:pt.prependSlide.bind(e),removeSlide:pt.removeSlide.bind(e),removeAllSlides:pt.removeAllSlides.bind(e),renderSlide:pt.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};Ue.extend(e.params,t),Ue.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},ft={handle:function(e){var t=this,i=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r||34===r))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||Le.activeElement&&Le.activeElement.nodeName&&("input"===Le.activeElement.nodeName.toLowerCase()||"textarea"===Le.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var a=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var s=Me.innerWidth,o=Me.innerHeight,l=t.$el.offset();i&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<u.length;d+=1){var c=u[d];c[0]>=0&&c[0]<=s&&c[1]>=0&&c[1]<=o&&(a=!0)}if(!a)return}t.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||i)&&(33!==r&&37!==r||!i)||t.slideNext(),(33!==r&&37!==r||i)&&(34!==r&&39!==r||!i)||t.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||t.slideNext(),33!==r&&38!==r||t.slidePrev()),t.emit("keyPress",r)}},enable:function(){var t=this;t.keyboard.enabled||(e(Le).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(e(Le).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},vt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;Ue.extend(e,{keyboard:{enabled:!1,enable:ft.enable.bind(e),disable:ft.disable.bind(e),handle:ft.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()}}},mt={lastScrollTime:Ue.now(),event:function(){return Me.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":De()?"wheel":"mousewheel"}(),normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var r=0,a=i.rtlTranslate?-1:1,s=mt.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===r)return!0;if(n.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var o=i.getTranslate()+r*n.sensitivity,l=i.isBeginning,u=i.isEnd;if(o>=i.minTranslate()&&(o=i.minTranslate()),o<=i.maxTranslate()&&(o=i.maxTranslate()),i.setTransition(0),i.setTranslate(o),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=Ue.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),o===i.minTranslate()||o===i.maxTranslate())return!0}else{if(Ue.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",t);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",t);i.mousewheel.lastScrollTime=(new Me.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var t=this;if(!mt.event)return!1;if(t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(mt.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!mt.event)return!1;if(!t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.off(mt.event,t.mousewheel.handle),t.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;Ue.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:Ue.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()}}},yt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=i.$nextEl,r=i.$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)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[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 t=this,i=t.params.navigation;if(i.nextEl||i.prevEl){var n,r;i.nextEl&&(n=e(i.nextEl),t.params.uniqueNavElements&&"string"==typeof i.nextEl&&n.length>1&&1===t.$el.find(i.nextEl).length&&(n=t.$el.find(i.nextEl))),i.prevEl&&(r=e(i.prevEl),t.params.uniqueNavElements&&"string"==typeof i.prevEl&&r.length>1&&1===t.$el.find(i.prevEl).length&&(r=t.$el.find(i.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),r&&r.length>0&&r.on("click",t.navigation.onPrevClick),Ue.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]})}},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,n=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}},bt={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;Ue.extend(e,{navigation:{init:yt.init.bind(e),update:yt.update.bind(e),destroy:yt.destroy.bind(e),onNextClick:yt.onNextClick.bind(e),onPrevClick:yt.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var i=this,n=i.navigation,r=n.$nextEl,a=n.$prevEl;if(i.params.navigation.hideOnClick&&!e(t.target).is(a)&&!e(t.target).is(r)){var s;r?s=r.hasClass(i.params.navigation.hiddenClass):a&&(s=a.hasClass(i.params.navigation.hiddenClass)),!0===s?i.emit("navigationShow",i):i.emit("navigationHide",i),r&&r.toggleClass(i.params.navigation.hiddenClass),a&&a.toggleClass(i.params.navigation.hiddenClass)}}}},_t={update:function(){var t=this,i=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var r,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el,o=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),r>a-1-2*t.loopedSlides&&(r-=a-2*t.loopedSlides),r>o-1&&(r-=o),r<0&&"bullets"!==t.params.paginationType&&(r=o+r)):r=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var l,u,d,c=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=c.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=r-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),l=r-t.pagination.dynamicBulletIndex,u=l+(Math.min(c.length,n.dynamicMainBullets)-1),d=(u+l)/2),c.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),s.length>1)c.each(function(t,i){var a=e(i),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{if(c.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=c.eq(l),h=c.eq(u),f=l;f<=u;f+=1)c.eq(f).addClass(n.bulletActiveClass+"-main");p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),h.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var v=Math.min(c.length,n.dynamicMainBullets+4),m=(t.pagination.bulletSize*v-t.pagination.bulletSize)/2-d*t.pagination.bulletSize,g=i?"right":"left";c.css(t.isHorizontal()?g:"top",m+"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 y;y=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var b=(r+1)/o,_=1,w=1;"horizontal"===y?_=b:w=b,s.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+_+") scaleY("+w+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(t,r+1,o)),t.emit("paginationRender",t,s[0])):t.emit("paginationUpdate",t,s[0]),s[t.params.watchOverflow&&t.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 i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,r="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((i-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+">";n.html(r),e.pagination.bullets=n.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>',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var t=this,i=t.params.pagination;if(i.el){var n=e(i.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===t.$el.find(i.el).length&&(n=t.$el.find(i.el)),"bullets"===i.type&&i.clickable&&n.addClass(i.clickableClass),n.addClass(i.modifierClass+i.type),"bullets"===i.type&&i.dynamicBullets&&(n.addClass(""+i.modifierClass+i.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&n.addClass(i.progressbarOppositeClass),i.clickable&&n.on("click","."+i.bulletClass,function(i){i.preventDefault();var n=e(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),Ue.extend(t.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 i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass)}}},wt={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;Ue.extend(e,{pagination:{init:_t.init.bind(e),render:_t.render.bind(e),update:_t.update.bind(e),destroy:_t.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?e.pagination.update():void 0===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(){this.pagination.destroy()},click:function(t){var i=this;if(i.params.pagination.el&&i.params.pagination.hideOnClick&&i.pagination.$el.length>0&&!e(t.target).hasClass(i.params.pagination.bulletClass)){!0===i.pagination.$el.hasClass(i.params.pagination.hiddenClass)?i.emit("paginationShow",i):i.emit("paginationHide",i),i.pagination.$el.toggleClass(i.params.pagination.hiddenClass)}}}},Tt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,r=t.dragSize,a=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,u=r,d=(a-r)*n;i?(d=-d,d>0?(u=r-d,d=0):-d+r>a&&(u=a+d)):d<0?(u=r+d,d=0):d+r>a&&(u=a-d),e.isHorizontal()?(Be.transforms3d?s.transform("translate3d("+d+"px, 0, 0)"):s.transform("translateX("+d+"px)"),s[0].style.width=u+"px"):(Be.transforms3d?s.transform("translate3d(0px, "+d+"px, 0)"):s.transform("translateY("+d+"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,i=t.$dragEl,n=t.$el;i[0].style.width="",i[0].style.height="";var r,a=e.isHorizontal()?n[0].offsetWidth:n[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()?i[0].style.width=r+"px":i[0].style.height=r+"px",n[0].style.display=s>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),Ue.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){return this.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,i=this,n=i.scrollbar,r=i.rtlTranslate,a=n.$el,s=n.dragSize,o=n.trackSize,l=n.dragStartPos;t=(n.getPointerPosition(e)-a.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:s/2))/(o-s),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var u=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(u),i.setTranslate(u),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=t.$wrapperEl,a=n.$el,s=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),i.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,n=t.$wrapperEl,r=i.$el,a=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),n.transition(0),r.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=n.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=Ue.nextTick(function(){r.css("opacity",0),r.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!Be.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!Be.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};Be.touch?(s.addEventListener(i.start,e.scrollbar.onDragStart,o),s.addEventListener(i.move,e.scrollbar.onDragMove,o),s.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.addEventListener(n.start,e.scrollbar.onDragStart,o),Le.addEventListener(n.move,e.scrollbar.onDragMove,o),Le.addEventListener(n.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!Be.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!Be.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};Be.touch?(s.removeEventListener(i.start,e.scrollbar.onDragStart,o),s.removeEventListener(i.move,e.scrollbar.onDragMove,o),s.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.removeEventListener(n.start,e.scrollbar.onDragStart,o),Le.removeEventListener(n.move,e.scrollbar.onDragMove,o),Le.removeEventListener(n.end,e.scrollbar.onDragEnd,l))}},init:function(){var t=this;if(t.params.scrollbar.el){var i=t.scrollbar,n=t.$el,r=t.params.scrollbar,a=e(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&a.length>1&&1===n.find(r.el).length&&(a=n.find(r.el));var s=a.find("."+t.params.scrollbar.dragClass);0===s.length&&(s=e('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(s)),Ue.extend(i,{$el:a,el:a[0],$dragEl:s,dragEl:s[0]}),r.draggable&&i.enableDraggable()}},destroy:function(){this.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;Ue.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(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},kt={setTransform:function(t,i){var n=this,r=n.rtl,a=e(t),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"),d=a.attr("data-swiper-parallax-scale"),c=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)*i*s+"%":l*i*s+"px",u=u.indexOf("%")>=0?parseInt(u,10)*i+"%":u*i+"px",void 0!==c&&null!==c){var p=c-(c-1)*(1-Math.abs(i));a[0].style.opacity=p}if(void 0===d||null===d)a.transform("translate3d("+l+", "+u+", 0px)");else{var h=d-(d-1)*(1-Math.abs(i));a.transform("translate3d("+l+", "+u+", 0px) scale("+h+")")}},setTranslate:function(){var t=this,i=t.$el,n=t.slides,r=t.progress,a=t.snapGrid;i.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,r)}),n.each(function(i,n){var s=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(i/2)-r*(a.length-1)),s=Math.min(Math.max(s,-1),1),e(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,s)})})},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(i,n){var r=e(n),a=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),r.transition(a)})}},xt={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;Ue.extend(e,{parallax:{setTransform:kt.setTransform.bind(e),setTranslate:kt.setTranslate.bind(e),setTransition:kt.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)}}},Et={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(t){var i=this,n=i.params.zoom,r=i.zoom,a=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!Be.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.fakeGestureTouched=!0,a.scaleStart=Et.getDistanceBetweenTouches(t)}if(!(a.$slideEl&&a.$slideEl.length||(a.$slideEl=e(t.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=i.slides.eq(i.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)))return void(a.$imageEl=void 0);a.$imageEl.transition(0),i.zoom.isScaling=!0},onGestureChange:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!Be.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=Et.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(Be.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!Be.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Ke.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,n=i.gesture,r=i.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(Ke.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,i=t.zoom,n=i.gesture,r=i.image,a=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=Ue.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=Ue.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*i.scale,o=r.height*i.scale;if(!(s<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(n.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&&!i.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(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,n=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var a=300,s=300,o=r.x*a,l=n.currentX+o,u=r.y*s,d=n.currentY+u;0!==r.x&&(a=Math.abs((l-n.currentX)/r.x)),0!==r.y&&(s=Math.abs((d-n.currentY)/r.y));var c=Math.max(a,s);n.currentX=l,n.currentY=d;var p=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(i.slideWidth/2-p/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),i.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl.transform("translate3d(0,0,0) scale(1)"),i.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,i.$slideEl=void 0,i.$imageEl=void 0,i.$imageWrapEl=void 0)},toggle:function(e){var t=this,i=t.zoom;i.scale&&1!==i.scale?i.out():i.in(e)},in:function(t){var i=this,n=i.zoom,r=i.params.zoom,a=n.gesture,s=n.image;if(a.$slideEl||(a.$slideEl=i.clickedSlide?e(i.clickedSlide):i.slides.eq(i.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+r.containerClass)),a.$imageEl&&0!==a.$imageEl.length){a.$slideEl.addClass(""+r.zoomedSlideClass);var o,l,u,d,c,p,h,f,v,m,g,y,b,_,w,T,S,k;void 0===s.touchesStart.x&&t?(o="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,l="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(o=s.touchesStart.x,l=s.touchesStart.y),n.scale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,t?(S=a.$slideEl[0].offsetWidth,k=a.$slideEl[0].offsetHeight,u=a.$slideEl.offset().left,d=a.$slideEl.offset().top,c=u+S/2-o,p=d+k/2-l,v=a.$imageEl[0].offsetWidth,m=a.$imageEl[0].offsetHeight,g=v*n.scale,y=m*n.scale,b=Math.min(S/2-g/2,0),_=Math.min(k/2-y/2,0),w=-b,T=-_,h=c*n.scale,f=p*n.scale,h<b&&(h=b),h>w&&(h=w),f<_&&(f=_),f>T&&(f=T)):(h=0,f=0),a.$imageWrapEl.transition(300).transform("translate3d("+h+"px, "+f+"px,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+n.scale+")")}},out:function(){var t=this,i=t.zoom,n=t.params.zoom,r=i.gesture;r.$slideEl||(r.$slideEl=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(i.scale=1,i.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 i=!("touchstart"!==e.touchEvents.start||!Be.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};Be.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),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 i=!("touchstart"!==e.touchEvents.start||!Be.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};Be.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Ct={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(i){t[i]=Et[i].bind(e)}),Ue.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var n=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,n,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.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()}}},jt={loadInSlide:function(t,i){void 0===i&&(i=!0);var n=this,r=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled,s=a?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),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(t,a){var o=e(a);o.addClass(r.loadingClass);var l=o.attr("data-background"),u=o.attr("data-src"),d=o.attr("data-srcset"),c=o.attr("data-sizes");n.loadImage(o[0],u||l,d,c,!1,function(){if(void 0!==n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(d&&(o.attr("srcset",d),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),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&&i){var e=s.attr("data-swiper-slide-index");if(s.hasClass(n.params.slideDuplicateClass)){var t=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(t.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(){function t(e){if(l){if(r.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function i(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var n=this,r=n.$wrapperEl,a=n.params,s=n.slides,o=n.activeIndex,l=n.virtual&&a.virtual.enabled,u=a.lazy,d=a.slidesPerView;if("auto"===d&&(d=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)r.children("."+a.slideVisibleClass).each(function(t,i){var r=l?e(i).attr("data-swiper-slide-index"):e(i).index();n.lazy.loadInSlide(r)});else if(d>1)for(var c=o;c<o+d;c+=1)t(c)&&n.lazy.loadInSlide(c);else n.lazy.loadInSlide(o);if(u.loadPrevNext)if(d>1||u.loadPrevNextAmount&&u.loadPrevNextAmount>1){for(var p=u.loadPrevNextAmount,h=d,f=Math.min(o+h+Math.max(p,h),s.length),v=Math.max(o-Math.max(h,p),0),m=o+d;m<f;m+=1)t(m)&&n.lazy.loadInSlide(m);for(var g=v;g<o;g+=1)t(g)&&n.lazy.loadInSlide(g)}else{var y=r.children("."+a.slideNextClass);y.length>0&&n.lazy.loadInSlide(i(y));var b=r.children("."+a.slidePrevClass);b.length>0&&n.lazy.loadInSlide(i(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;Ue.extend(e,{lazy:{initialImageLoaded:!1,load:jt.load.bind(e),loadInSlide:jt.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()}}},Pt={LinearSpline:function(e,t){var i=function(){var e,t,i;return function(n,r){for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var n,r;return this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Pt.LinearSpline(t.slidesGrid,e.slidesGrid):new Pt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),r=-a.controller.spline.interpolate(-t)),r&&"container"!==a.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),r=(t-a.minTranslate())*n+e.minTranslate()),a.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,a),e.updateActiveIndex(),e.updateSlidesClasses()}var n,r,a=this,s=a.controller.control;if(Array.isArray(s))for(var o=0;o<s.length;o+=1)s[o]!==t&&s[o]instanceof at&&i(s[o]);else s instanceof at&&t!==s&&i(s)},setTransition:function(e,t){function i(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&Ue.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){a&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var n,r=this,a=r.controller.control;if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==t&&a[n]instanceof at&&i(a[n]);else a instanceof at&&t!==a&&i(a)}},It={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;Ue.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Pt.getInterpolateFunction.bind(e),setTranslate:Pt.setTranslate.bind(e),setTransition:Pt.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 i=this;i.controller.control&&i.controller.setTranslate(e,t)},setTransition:function(e,t){var i=this;i.controller.control&&i.controller.setTransition(e,t)}}},At={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(t){var i=this,n=i.params.a11y;if(13===t.keyCode){var r=e(t.target);i.navigation&&i.navigation.$nextEl&&r.is(i.navigation.$nextEl)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?i.a11y.notify(n.lastSlideMessage):i.a11y.notify(n.nextSlideMessage)),i.navigation&&i.navigation.$prevEl&&r.is(i.navigation.$prevEl)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?i.a11y.notify(n.firstSlideMessage):i.a11y.notify(n.prevSlideMessage)),i.pagination&&r.is("."+i.params.pagination.bulletClass)&&r[0].click()}},notify:function(e){var t=this,i=t.a11y.liveRegion;0!==i.length&&(i.html(""),i.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&i.length>0&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(i))}},updatePagination:function(){var t=this,i=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(n,r){var a=e(r);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,i.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,n=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,n.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,n.prevSlideMessage),i.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=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t,i;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),i&&i.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},Dt={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 t=this;Ue.extend(t,{a11y:{liveRegion:e('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(At).forEach(function(e){t.a11y[e]=At[e].bind(t)})},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()}}},Lt={init:function(){var e=this;if(e.params.history){if(!Me.history||!Me.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=Lt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Me.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||Me.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Lt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=Me.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var n=i.slides.eq(t),r=Lt.slugify(n.attr("data-history"));Me.location.pathname.includes(e)||(r=e+"/"+r);var a=Me.history.state;a&&a.value===r||(i.params.history.replaceState?Me.history.replaceState({value:r},null,r):Me.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var r=0,a=n.slides.length;r<a;r+=1){var s=n.slides.eq(r),o=Lt.slugify(s.attr("data-history"));if(o===t&&!s.hasClass(n.params.slideDuplicateClass)){var l=s.index();n.slideTo(l,e,i)}}else n.slideTo(0,e,i)}},Mt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;Ue.extend(e,{history:{init:Lt.init.bind(e),setHistory:Lt.setHistory.bind(e),setHistoryPopState:Lt.setHistoryPopState.bind(e),scrollToSlide:Lt.scrollToSlide.bind(e),destroy:Lt.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)}}},Nt={onHashCange:function(){var e=this,t=Le.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&Me.history&&Me.history.replaceState)Me.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");Le.location.hash=i||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var i=Le.location.hash.replace("#","");if(i)for(var n=0,r=t.slides.length;n<r;n+=1){var a=t.slides.eq(n),s=a.attr("data-hash")||a.attr("data-history");if(s===i&&!a.hasClass(t.params.slideDuplicateClass)){var o=a.index();t.slideTo(o,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&e(Me).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){var t=this;t.params.hashNavigation.watchState&&e(Me).off("hashchange",t.hashNavigation.onHashCange)}},Rt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;Ue.extend(e,{hashNavigation:{initialized:!1,init:Nt.init.bind(e),destroy:Nt.destroy.bind(e),setHash:Nt.setHash.bind(e),onHashCange:Nt.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()}}},Ut={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=Ue.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"))},i)},start:function(){var e=this;return void 0===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&&(void 0!==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;Ue.extend(e,{autoplay:{running:!1,paused:!1,run:Ut.run.bind(e),start:Ut.start.bind(e),stop:Ut.stop.bind(e),pause:Ut.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 i=this;i.autoplay.running&&(t||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(e):i.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()}}},zt={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),r=n[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(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d("+a+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.transitionEnd(function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)n.trigger(e[i])}})}}},Ft={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;Ue.extend(e,{fadeEffect:{setTranslate:zt.setTranslate.bind(e),setTransition:zt.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};Ue.extend(e.params,t),Ue.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)}}},qt={setTranslate:function(){var t,i=this,n=i.$el,r=i.$wrapperEl,a=i.slides,s=i.width,o=i.height,l=i.rtlTranslate,u=i.size,d=i.params.cubeEffect,c=i.isHorizontal(),p=i.virtual&&i.params.virtual.enabled,h=0;d.shadow&&(c?(t=r.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),r.append(t)),t.css({height:s+"px"})):(t=n.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),n.append(t))));for(var f=0;f<a.length;f+=1){var v=a.eq(f),m=f;p&&(m=parseInt(v.attr("data-swiper-slide-index"),10));var g=90*m,y=Math.floor(g/360);l&&(g=-g,y=Math.floor(-g/360));var b=Math.max(Math.min(v[0].progress,1),-1),_=0,w=0,T=0;m%4==0?(_=4*-y*u,T=0):(m-1)%4==0?(_=0,T=4*-y*u):(m-2)%4==0?(_=u+4*y*u,T=u):(m-3)%4==0&&(_=-u,T=3*u+4*u*y),l&&(_=-_),c||(w=_,_=0);var S="rotateX("+(c?0:-g)+"deg) rotateY("+(c?g:0)+"deg) translate3d("+_+"px, "+w+"px, "+T+"px)";if(b<=1&&b>-1&&(h=90*m+90*b,l&&(h=90*-m-90*b)),v.transform(S),d.slideShadows){var k=c?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),x=c?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===k.length&&(k=e('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),v.append(k)),0===x.length&&(x=e('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),v.append(x)),k.length&&(k[0].style.opacity=Math.max(-b,0)),x.length&&(x[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"}),d.shadow)if(c)t.transform("translate3d(0px, "+(s/2+d.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var E=Math.abs(h)-90*Math.floor(Math.abs(h)/90),C=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),j=d.shadowScale,O=d.shadowScale/C,P=d.shadowOffset;t.transform("scale3d("+j+", 1, "+O+") translate3d(0px, "+(o/2+P)+"px, "+-o/2/O+"px) rotateX(-90deg)")}var I=ze.isSafari||ze.isUiWebView?-u/2:0;r.transform("translate3d(0px,0,"+I+"px) rotateX("+(i.isHorizontal()?0:h)+"deg) rotateY("+(i.isHorizontal()?-h:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el;t.slides.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()&&i.find(".swiper-cube-shadow").transition(e)}},Vt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;Ue.extend(e,{cubeEffect:{setTranslate:qt.setTranslate.bind(e),setTransition:qt.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};Ue.extend(e.params,t),Ue.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)}}},Ht={setTranslate:function(){for(var t=this,i=t.slides,n=t.rtlTranslate,r=0;r<i.length;r+=1){var a=i.eq(r),s=a[0].progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(a[0].progress,1),-1));var o=a[0].swiperSlideOffset,l=-180*s,u=l,d=0,c=-o,p=0;if(t.isHorizontal()?n&&(u=-u):(p=c,c=0,d=-u,u=0),a[0].style.zIndex=-Math.abs(Math.round(s))+i.length,t.params.flipEffect.slideShadows){var h=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===f.length&&(f=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),h.length&&(h[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}a.transform("translate3d("+c+"px, "+p+"px, 0px) rotateX("+d+"deg) rotateY("+u+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=t.activeIndex,r=t.$wrapperEl;if(i.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;i.eq(n).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},Gt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;Ue.extend(e,{flipEffect:{setTranslate:Ht.setTranslate.bind(e),setTransition:Ht.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};Ue.extend(e.params,t),Ue.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)}}},Wt={setTranslate:function(){for(var t=this,i=t.width,n=t.height,r=t.slides,a=t.$wrapperEl,s=t.slidesSizesGrid,o=t.params.coverflowEffect,l=t.isHorizontal(),u=t.translate,d=l?i/2-u:n/2-u,c=l?o.rotate:-o.rotate,p=o.depth,h=0,f=r.length;h<f;h+=1){var v=r.eq(h),m=s[h],g=v[0].swiperSlideOffset,y=(d-g-m/2)/m*o.modifier,b=l?c*y:0,_=l?0:c*y,w=-p*Math.abs(y),T=l?0:o.stretch*y,S=l?o.stretch*y:0;Math.abs(S)<.001&&(S=0),Math.abs(T)<.001&&(T=0),Math.abs(w)<.001&&(w=0),Math.abs(b)<.001&&(b=0),Math.abs(_)<.001&&(_=0);var k="translate3d("+S+"px,"+T+"px,"+w+"px) rotateX("+_+"deg) rotateY("+b+"deg)";if(v.transform(k),v[0].style.zIndex=1-Math.abs(Math.round(y)),o.slideShadows){var x=l?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=l?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===x.length&&(x=e('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),v.append(x)),0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),v.append(E)),x.length&&(x[0].style.opacity=y>0?y:0),E.length&&(E[0].style.opacity=-y>0?-y:0)}}if(Be.pointerEvents||Be.prefixedPointerEvents){a[0].style.perspectiveOrigin=d+"px 50%"}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Xt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;Ue.extend(e,{coverflowEffect:{setTranslate:Wt.setTranslate.bind(e),setTransition:Wt.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)}}},Yt={init:function(){var e=this,t=e.params,i=t.thumbs,n=e.constructor;i.swiper instanceof n?(e.thumbs.swiper=i.swiper,Ue.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Ue.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Ue.isObject(i.swiper)&&(e.thumbs.swiper=new n(Ue.extend({},i.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 t=this,i=t.thumbs.swiper;if(i){var n=i.clickedIndex,r=i.clickedSlide;if(!(r&&e(r).hasClass(t.params.thumbs.slideThumbActiveClass)||void 0===n||null===n)){var a;if(a=i.params.loop?parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var s=t.activeIndex;t.slides.eq(s).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,s=t.activeIndex);var o=t.slides.eq(s).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),l=t.slides.eq(s).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===o?l:void 0===l?o:l-s<s-o?l:o}t.slideTo(a)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;if(t.realIndex!==i.realIndex){var r,a=i.activeIndex;if(i.params.loop){i.slides.eq(a).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,a=i.activeIndex);var s=i.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();r=void 0===s?o:void 0===o?s:o-a==a-s?a:o-a<a-s?o:s}else r=t.realIndex;i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>a?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>a&&(r=r-n+1),i.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),i.slides.removeClass(u),i.params.loop||i.params.virtual)for(var d=0;d<l;d+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+d)+'"]').addClass(u);else for(var c=0;c<l;c+=1)i.slides.eq(t.realIndex+c).addClass(u)}}},$t={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;Ue.extend(e,{thumbs:{swiper:null,init:Yt.init.bind(e),update:Yt.update.bind(e),onThumbClick:Yt.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params,i=t.thumbs;i&&i.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,i=t.thumbs.swiper;i&&i.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}},Kt=[st,ot,lt,ut,ct,ht,vt,gt,bt,wt,St,xt,Ct,Ot,It,Dt,Mt,Rt,Bt,Ft,Vt,Gt,Xt,$t];return void 0===at.use&&(at.use=at.Class.use,at.installModule=at.Class.installModule),at.use(Kt),at})},function(e,t){var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},function(e,t,i){"use strict";function n(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];if(t.call(void 0,r,n,e))return r}}function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}function a(e,t){if(null===e||"object"!==(void 0===e?"undefined":s(e)))throw new TypeError("target is not an object");for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r({HTML:"text/html",isHTML:function(e){return e===o.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===l.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=a,t.find=n,t.freeze=r,t.MIME_TYPE=o,t.NAMESPACE=l},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){var t="";switch(e.brand){case"defaultPath":t=""+s.a[e.brand][e.jumpLinkType]+a(e)}return t}function a(e){var t="";switch(e.jumpLinkType){case 1:t=e.productCode+"?colorCode="+e.colorCode;break;case 2:t="?categoryId="+e.categoryCode;break;case 9:t="";break;case 10:t=""+e.articleCode}return t}i.d(t,"c",function(){return r}),i.d(t,"b",function(){return h}),i.d(t,"a",function(){return m});var s=i(102),o=i(14),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},u=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),d=new o.a,c=function(){function e(t){n(this,e),this.envUrl=t,this.interval=p(t)}return u(e,null,[{key:"getInstance",value:function(t){return this.instance||(this.instance=new e(t)),this.instance}},{key:"ClearTimer",value:function(){this.instance.interval&&(clearInterval(this.instance.interval),this.instance.interval=null)}}]),e}(),p=function(e){return setInterval(function(){var t=JSON.parse(sessionStorage.getItem("reportData")||null)||[];t.length>0&&(sessionStorage.setItem("reportData","[]"),f(t,e))},1e3)},h=function(e,t){var i={commodity_id:e.popData.productCode||"",commodity_name:e.popData.selectDataShow||"",component_id:e.uniqueId,component_type:e.componentType,hot_zone_id:e.popData.uniqueId,hot_zone_name:e.popData.uniqueName,material_id:e.materialId,material_name:e.materialName,url_path:e.path?e.path:"/",refer_info:e.refererPagePath,trigger_Method_Type:e.componentMethodType,event:e.event},n=JSON.parse(sessionStorage.getItem("reportData")||null)||[];n.push(i),sessionStorage.setItem("reportData",JSON.stringify(n)),c.getInstance(t)},f=function(e,t){var i=e.map(function(e){return v(e)});d.acquisitionBatch(t,i)},v=function(e){var t="";localStorage.getItem(e.brand+"Cookie")?t=localStorage.getItem(e.brand+"Cookie"):(t=""+parseInt((new Date).getTime())+Math.floor(1e4*Math.random()),localStorage.setItem(e.brand+"Cookie",t));var i=e.event||"bannerShow";return delete e.event,{eventProperty:JSON.stringify(l({},e)),event:i,distinctId:t}},m=function(){c.ClearTimer()}},function(e,t,i){var n=i(58);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("24ad41d3",n,!0,{})},function(e,t){function i(){return e.exports=i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,"a",function(){return s});var r=i(103),a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=function(){function e(){n(this,e)}return a(e,[{key:"getCmsList",value:function(e){return r.a.get(e.url,{})}},{key:"getProductInfo",value:function(e,t){return r.a.postBody(e+"/service-zuul/manage/search/plp/standard",{body:t})}},{key:"getSortProductInfo",value:function(e,t){return r.a.postBody(e+"/service-zuul/manage/search/cms/sort",{body:t})}},{key:"getNavigate",value:function(e){return r.a.get(e.url,{headers:{common:{languageCode:e.language||""}}})}},{key:"dataSaveDecorationPageComponentEvent",value:function(e,t){return r.a.postBody(e+"service-zuul/data/collect/acquisition",{body:t})}},{key:"acquisitionBatch",value:function(e,t){return r.a.postBody(e+"service-zuul/data/collect/acquisitionBatch",{body:t})}}]),e}()},function(e,t,i){"use strict";(function(t){function n(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function r(e,t,i){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(e)}var a=i(1),s=i(111),o=i(33),l={"Content-Type":"application/x-www-form-urlencoded"},u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=i(34):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(e=i(34)),e}(),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.isObject(e)||t&&"application/json"===t["Content-Type"]?(n(t,"application/json"),r(e)):e}],transformResponse:[function(e){var t=this.transitional,i=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,r=!i&&"json"===this.responseType;if(r||n&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],function(e){u.headers[e]={}}),a.forEach(["post","put","patch"],function(e){u.headers[e]=a.merge(l)}),e.exports=u}).call(t,i(110))},function(e,t,i){function n(e){for(var t=0;t<e.length;t++){var i=e[t],n=d[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(a(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{for(var s=[],r=0;r<i.parts.length;r++)s.push(a(i.parts[r]));d[i.id]={id:i.id,refs:1,parts:s}}}}function r(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function a(e){var t,i,n=document.querySelector("style["+g+'~="'+e.id+'"]');if(n){if(f)return v;n.parentNode.removeChild(n)}if(y){var a=h++;n=p||(p=r()),t=s.bind(null,n,a,!1),i=s.bind(null,n,a,!0)}else n=r(),t=o.bind(null,n),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else i()}}function s(e,t,i,n){var r=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var a=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function o(e,t){var i=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),m.ssrId&&e.setAttribute(g,t.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=i(153),d={},c=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,h=0,f=!1,v=function(){},m=null,g="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i,r){f=i,m=r||{};var a=u(e,t);return n(a),function(t){for(var i=[],r=0;r<a.length;r++){var s=a[r],o=d[s.id];o.refs--,i.push(o)}t?(a=u(e,t),n(a)):a=[];for(var r=0;r<i.length;r++){var o=i[r];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete d[o.id]}}}};var b=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){"use strict";var n=i(18);t.a=n.a},function(e,t,i){"use strict";var n=i(8),r=i.n(n),a=i(12),s=(i.n(a),i(6));t.a={name:"picNav",mixins:[s.a],data:function(){return{showNavigation:!1,option:{observer:!0,observeParents:!0,observeSlideChildren:!0},swiperId:Math.round(2e3*Math.random())}},watch:{pageDataObj:{handler:function(){var e=this;this.pageDataObj&&this.pageDataObj.list&&this.pageDataObj.list.length>0&&3===this.pageDataObj.styleType?this.$nextTick(function(){e.swiper?("pc"===e.curSystem?(e.pageDataObj.list.length<=4?(e.option.slidesPerView=4,e.option.slidesPerGroup=4):(e.option.slidesPerView=4.1,e.option.slidesPerGroup=4.1),e.option.navigation={nextEl:".swiper-button-nextp",prevEl:".swiper-button-prevp"}):(e.option.slidesPerView=2.1,e.option.scrollbar={el:".swiper-scrollbar",draggable:!0}),e.swiper.update()):("pc"===e.curSystem?(e.pageDataObj.list.length<=4?e.option.slidesPerView=4:(e.option.slidesPerView=4.1,e.option.slidesPerGroup=4.1),e.option.navigation={nextEl:".swiper-button-nextp",prevEl:".swiper-button-prevp"}):(e.option.slidesPerView=2.1,e.option.scrollbar={el:".swiper-scrollbar",draggable:!0}),e.swiper=new r.a(".swiper-containerpic"+e.swiperId,e.option))}):this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)},deep:!0,immediate:!0}},mounted:function(){},methods:{exposurePost:function(e){this.$emit("exposurePost",e)},changeOption:function(){},navigatorPage:function(e){this.$emit("jumpLink",e)}}}},function(e,t,i){"use strict";t.a={name:"comTitle",props:{maxWidthMobile:{type:Number},curSystem:{type:String},widthShow:{type:String|Number},widthStyle:{type:Object}},data:function(){return{isMobile:!1,isOnresize:document.documentElement.clientWidth,timer:!1,componentWidth:"100%",topWidth:"100%"}},watch:{widthStyle:{handler:function(e,t){if(e)if(2==e.type){if(this.widthShow)return this.topWidth=this.widthShow+"px",void("pc"===this.curSystem?this.componentWidth="100%":this.componentWidth=this.widthStyle.width/2+"px");this.topWidth="100%",this.componentWidth=document.body.offsetWidth<e.width?"100%":e.width+"px"}else this.componentWidth="100%",this.topWidth="100%"},deep:!0,immediate:!0}},mounted:function(){"mobile"===this.curSystem&&(this.isMobile=!0)},destroyed:function(){},directives:{resize:{bind:function(e,t){function i(){var i=document.defaultView.getComputedStyle(e);n===i.width&&r===i.height||t.value({width:i.width,height:i.height}),n=i.width,r=i.height}var n="",r="";e.__vueSetInterval__=setInterval(i,300)},unbind:function(e){clearInterval(e.__vueSetInterval__)}}},methods:{resize:function(e){if("pc"===this.curSystem){var t=e.width,i=t.split("px")[0];if(!this.timer){if(!this.widthStyle)return;1===this.widthStyle.type?this.isMobile=i-0<=this.maxWidthMobile-0:this.widthShow?"100%"!==this.widthStyle.width&&i<this.widthShow?this.topWidth="100%":"100%"!==this.widthStyle.width&&i>this.widthShow&&(this.topWidth=this.widthShow+"px"):(this.topWidth="100%",this.componentWidth=i-0<this.widthStyle.width-0?"100%":this.widthStyle.width+"px",this.isMobile=i-0<=this.widthStyle.width||i-0<=this.maxWidthMobile),this.$emit("checkIsMobile",this.isMobile),this.timer=!0;var n=this;setTimeout(function(){n.timer=!1},400)}}}}}},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(22),o=i(29),l=(i.n(o),i(30)),u=(i.n(l),i(11)),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};t.a={name:"hotSport",props:{isSwiper:{type:Boolean,default:!1},pageData:{type:Object,default:function(){return{width:"",popList:[],pic:""}}},curSystem:{type:String},showShadow:{type:Boolean},uniqueId:{type:String},uniqueName:{type:String},envUrl:{type:String},refererPagePath:{type:String},brand:{type:String},isReportCms:{type:Boolean},pathType:{type:Number},componentType:{type:Number},path:{type:String}},watch:{pageData:{handler:function(e,t){e.videoUrl&&1===e.isVideoHasHot&&(this.pageData.popList=e.videoHotInfo.popList),this.setVideo(),this.getDomWidth()},deep:!0,immediate:!0}},data:function(){return{isImagePost:!1,swiperTimer:null,hasPostList:[],proportion:0,hotPageData:{},clientWidth:0,clientHeight:0,hoverIndex:null,showVideo:!1}},mounted:function(){var e=this;this.hotPageData=d({},this.pageData),this.isReportCms&&this.$nextTick(function(){var t=void 0;window.addEventListener("scroll",function(){e.isFixed&&(e.isFixed=!1),t&&clearTimeout(t),t=setTimeout(function(){e.handleScroll()},200)}),e.handleScroll()}),window.addEventListener("scroll",function(){e.handleScrollGio()}),this.handleScrollGio()},methods:{swiperInitPost:function(){var e=this;return n(a.a.mark(function t(){var i,n,r,s,o,l,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.hotPageData.popList||[],i.forEach(function(t,i){var n=e.$refs[""+e.uniqueId+i];if(n&&n[0]){var r=document.documentElement.clientHeight,a=n[0].getBoundingClientRect();r-(a.top||0)-(a.height||0)>=0&&(e.hasPostList.find(function(e){return e.uniqueId===t.uniqueId})||(e.$emit("exposurePost",{dataset:t,type:"hotSport"}),e.hasPostList.push(t)))}}),n=e.$refs.hotMain,n&&!e.isImagePost&&(r=document.documentElement.clientHeight,s=n.getBoundingClientRect(),o=s.top||0,l=s.height||0,(u=r-o-l)>=0&&(Boolean(e.pageData&&e.pageData.popList&&e.pageData.popList.length>0)||e.$emit("exposurePost",{dataset:e.pageData,type:"image"}),e.isImagePost=!0));case 6:case"end":return t.stop()}},t,e)}))()},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},handleScrollGio:function(){var e=this;return n(a.a.mark(function t(){var i,n,r,s,o,l,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isSwiper){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.sleep(100);case 4:i=e.hotPageData.popList||[],i.forEach(function(t,i){var n=e.$refs[""+e.uniqueId+i];if(n&&n[0]){var r=document.documentElement.clientHeight,a=n[0].getBoundingClientRect();r-(a.top||0)-(a.height||0)>=0&&(e.hasPostList.find(function(e){return e.uniqueId===t.uniqueId})||(e.$emit("exposurePost",{dataset:t,type:"hotSport"}),e.hasPostList.push(t)))}}),n=e.$refs.hotMain,n&&!e.isImagePost&&(r=document.documentElement.clientHeight,s=n.getBoundingClientRect(),o=s.top||0,l=s.height||0,(u=r-o-l)>=0&&(Boolean(e.pageData&&e.pageData.popList&&e.pageData.popList.length>0)||e.$emit("exposurePost",{dataset:e.pageData,type:"image"}),e.isImagePost=!0));case 8:case"end":return t.stop()}},t,e)}))()},handleScroll:function(){for(var e=this.hotPageData.popList||[],t=0;t<e.length;t++)if(!e[t].isShow){var i=this.$refs[""+this.uniqueId+t][0].getBoundingClientRect();if(i.top<=window.innerHeight||i.bottom>0){this.hotPageData.popList[t].isShow=!0,this.isFixed=!0;var n=e[t];Object(u.b)({uniqueId:this.uniqueId,uniqueName:this.uniqueName,componentMethodType:0,popData:d({},n,{brand:1===this.pathType?"defaultPath":this.brand}),materialId:this.pageData.uniqueId,materialName:this.pageData.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,event:"bannerShow"},this.envUrl)}else this.isFixed=!1}},getDomWidth:function(){var e=this;this.$nextTick(function(){setTimeout(function(){e.proportion=e.$refs.hotMain?e.$refs.hotMain.clientWidth/750:document.getElementsByClassName("hot-main"+e.uniqueId)[0]?document.getElementsByClassName("hot-main"+e.uniqueId)[0]/750:0,e.$refs.hotMain&&(e.clientWidth=e.$refs.hotMain.clientWidth,e.clientHeight||(e.clientHeight=e.$refs.hotMain.clientHeight),e.proportion=e.$refs.hotMain.clientWidth/750),e.pageData.popList.length>0&&(0===e.clientWidth||0===e.clientHeight)&&e.getDomWidth()},500)})},setVideo:function(){var e=this.pageData,t=this;this.$nextTick(function(){e.videoUrl&&setTimeout(function(){t.myPlayer=Object(s.a)("my-video"+e.uniqueId,{controls:!e.hasOwnProperty("controls")||!e.controls,muted:!e.hasOwnProperty("mute")||e.mute,reload:"auto",loop:e.loop,autoPlay:e.autoPlay,sources:[{src:e.videoUrl,type:"video/mp4"}],poster:e.coverPic},function(){e.autoPlay&&this.play(),this.on("play",function(){t.play()}),this.on("ended",function(){t.ended()}),this.on("pause",function(){t.pause()})})},500)}),t.showVideo=!0},clickHot:function(e){if(this.isReportCms){var t={component_id:this.uniqueId,uniqueName:this.uniqueName,trigger_Method_Type:1,commodity_id:e.productCode||"",commodity_name:e.selectDataShow||"",hot_zone_id:e.uniqueId||"",hot_zone_name:e.uniqueName||"",material_id:this.pageData.uniqueId,material_name:this.pageData.uniqueName,refer_info:this.refererPagePath,url_path:this.path||"/",component_type:this.componentType,brand:this.brand},i="";localStorage.getItem(t.brand+"Cookie")?i=localStorage.getItem(t.brand+"Cookie"):(i=""+parseInt((new Date).getTime())+Math.floor(1e4*Math.random()),localStorage.setItem(t.brand+"Cookie",i));var n={eventProperty:JSON.stringify(d({},t)),event:"bannerClick",distinctId:i},r=new Blob([JSON.stringify(n)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",r)}this.$emit("clickUrl",e)},playVideo:function(){var e=this;this.$nextTick(function(){e.myPlayer&&e.pageData.autoPlay&&e.myPlayer.play()})},play:function(){this.$emit("stopSwiperAuto")},ended:function(){this.$emit("startSwiperAuto")},pause:function(){this.$emit("startSwiperAuto")},pauseVideo:function(){var e=this;this.$nextTick(function(){e.myPlayer&&e.pageData.autoPlay&&e.myPlayer.pause()})},mouseIndex:function(e,t){this.hoverIndex=t},mouseOutIndex:function(e,t){this.hoverIndex=null}},beforeDestroy:function(){this.myPlayer&&this.myPlayer.dispose()}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,i){"use strict";(function(e){function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e){return Array.isArray(e)?e:Array.from(e)}function a(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 s(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)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function u(e){function t(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a("log",r,t)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:":",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="info",a=void 0;return a=Pt(e,t,n),t.createLogger=function(t,r,a){var s=void 0!==r?r:i;return u(e+" "+s+" "+t,s,void 0!==a?a:n)},t.createNewLogger=function(e,t,i){return u(e,t,i)},t.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},t.level=function(e){if("string"==typeof e){if(!t.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},t.history=function(){return Ot?[].concat(Ot):[]},t.history.filter=function(e){return(Ot||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},t.history.clear=function(){Ot&&(Ot.length=0)},t.history.disable=function(){null!==Ot&&(Ot.length=0,Ot=null)},t.history.enable=function(){null===Ot&&(Ot=[])},t.error=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("error",r,t)},t.warn=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("warn",r,t)},t.debug=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("debug",r,t)},t}function d(e,t){Lt(e).forEach(function(i){return t(e[i],i)})}function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Lt(e).reduce(function(i,n){return t(i,e[n],n)},i)}function p(e){return!!e&&"object"===(void 0===e?"undefined":mt(e))}function h(e){return p(e)&&"[object Object]"===Dt.call(e)&&e.constructor===Object}function f(){for(var e={},t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.forEach(function(t){t&&d(t,function(t,i){if(!h(t))return void(e[i]=t);h(e[i])||(e[i]={}),e[i]=f(e[i],t)})}),e}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[];for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];t.push(n)}return t}function m(e,t,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=function(i){return Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=i();return r(e),e}};return n&&(a.set=r),Object.defineProperty(e,t,a)}function g(e){return"string"==typeof e&&Boolean(e.trim())}function y(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function b(){return $e.a===Xe.a.document}function _(e){return p(e)&&1===e.nodeType}function w(){try{return Xe.a.parent!==Xe.a.self}catch(e){return!0}}function T(e){return function(t,i){if(!g(t))return $e.a[e](null);g(i)&&(i=$e.a.querySelector(i));var n=_(i)?i:$e.a;return n[e]&&n[e](t)}}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=$e.a.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];"textContent"===e?k(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),n&&V(r,n),r}function k(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function x(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function E(e,t){return y(t),e.classList.contains(t)}function C(e){for(var t,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return(t=e.classList).add.apply(t,l(n.reduce(function(e,t){return e.concat(t.split(/\s+/))},[]))),e}function j(e){var t;if(!e)return It.warn("removeClass was called with an element that doesn't exist"),null;for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return(t=e.classList).remove.apply(t,l(n.reduce(function(e,t){return e.concat(t.split(/\s+/))},[]))),e}function O(e,t,i){return"function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=void 0),t.split(/\s+/).forEach(function(t){return e.classList.toggle(t,i)}),e}function P(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var n=t[i];null===n||void 0===n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)})}function I(e){var t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var a=n[r].name,s=n[r].value;i.includes(a)&&(s=null!==s),t[a]=s}return t}function A(e,t){return e.getAttribute(t)}function D(e,t,i){e.setAttribute(t,i)}function L(e,t){e.removeAttribute(t)}function M(){$e.a.body.focus(),$e.a.onselectstart=function(){return!1}}function N(){$e.a.onselectstart=function(){return!0}}function R(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(W(e,"height"))),i.width||(i.width=parseFloat(W(e,"width"))),i}}function U(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==$e.a[St.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function B(e,t){var i={x:0,y:0};if(ri)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=W(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}if(n.assignedSlot&&n.assignedSlot.parentElement&&Xe.a.WebKitCSSMatrix){var o=Xe.a.getComputedStyle(n.assignedSlot.parentElement).transform,l=new Xe.a.WebKitCSSMatrix(o);i.x+=l.m41,i.y+=l.m42}n=n.parentNode||n.host}var u={},d=U(t.target),c=U(e),p=c.width,h=c.height,f=t.offsetY-(c.top-d.top),v=t.offsetX-(c.left-d.left);return t.changedTouches&&(v=t.changedTouches[0].pageX-c.left,f=t.changedTouches[0].pageY+c.top,ri&&(v-=i.x,f-=i.y)),u.y=1-Math.max(0,Math.min(1,f/h)),u.x=Math.max(0,Math.min(1,v/p)),u}function z(e){return p(e)&&3===e.nodeType}function F(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function q(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),_(e)||z(e)?e:"string"==typeof e&&/\S/.test(e)?$e.a.createTextNode(e):void 0}).filter(function(e){return e})}function V(e,t){return q(t).forEach(function(t){return e.appendChild(t)}),e}function H(e,t){return V(F(e),t)}function G(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||("mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons)))}function W(e,t){if(!e||!t)return"";if("function"==typeof Xe.a.getComputedStyle){var i=void 0;try{i=Xe.a.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}function X(e){[].concat(l($e.a.styleSheets)).forEach(function(t){try{var i=[].concat(l(t.cssRules)).map(function(e){return e.cssText}).join(""),n=$e.a.createElement("style");n.textContent=i,e.document.head.appendChild(n)}catch(i){var r=$e.a.createElement("link");r.rel="stylesheet",r.type=t.type,r.media=t.media.mediaText,r.href=t.href,e.document.head.appendChild(r)}})}function Y(e,t){b()&&(t&&(ci=t),Xe.a.setTimeout(pi,e))}function $(){di=!0,Xe.a.removeEventListener("load",$)}function K(){return mi++}function J(e,t){if(vi.has(e)){var i=vi.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&vi.delete(e)}}function Q(e,t,i,n){i.forEach(function(i){e(t,i,n)})}function Z(e){function t(){return!0}function i(){return!1}if(e.fixed_)return e;if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n=e||Xe.a.event;e={};var r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(var a in n)r.includes(a)||"returnValue"===a&&n.preventDefault||(e[a]=n[a]);if(e.target||(e.target=e.srcElement||$e.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var s=$e.a.documentElement,o=$e.a.body;e.pageX=e.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.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}function ee(e,t,i){if(Array.isArray(t))return Q(ee,e,t,i);vi.has(e)||vi.set(e,{});var n=vi.get(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),i.guid||(i.guid=K()),n.handlers[t].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(t,i){if(!n.disabled){t=Z(t);var r=n.handlers[t.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s<o&&!t.isImmediatePropagationStopped();s++)try{a[s].call(e,t,i)}catch(e){It.error(e)}}}),1===n.handlers[t].length)if(e.addEventListener){var r=!1;yi()&&bi.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function te(e,t,i){if(vi.has(e)){var n=vi.get(e);if(n.handlers){if(Array.isArray(t))return Q(te,e,t,i);var r=function(e,t){n.handlers[t]=[],J(e,t)};if(void 0!==t){var a=n.handlers[t];if(a){if(!i)return void r(e,t);if(i.guid)for(var s=0;s<a.length;s++)a[s].guid===i.guid&&a.splice(s--,1);J(e,t)}}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function ie(e,t,i){var n=vi.has(e)?vi.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Z(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)ie.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){vi.has(t.target)||vi.set(t.target,{});var a=vi.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function ne(e,t,i){if(Array.isArray(t))return Q(ne,e,t,i);var n=function n(){te(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||K(),ee(e,t,n)}function re(e,t,i){var n=function n(){te(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||K(),ee(e,t,n)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.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_=S("span",{className:"vjs-event-bus"});return Object.assign(e,Ri),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&vi.has(e)&&vi.delete(e)}),Xe.a.setTimeout(function(){e.eventBusEl_=null},0)}),e}function se(e,t){return Object.assign(e,Ui),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&Oi(e)&&e.on("statechanged",e.handleStateChanged),e}function oe(e,t,i){if("number"!=typeof t||t<0||t>i)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}function le(e,t,i,n){return oe(e,n,i.length-1),i[n][t]}function ue(e){var t=void 0;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:le.bind(null,"start",0,e),end:le.bind(null,"end",1,e)},Xe.a.Symbol&&Xe.a.Symbol.iterator&&(t[Xe.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function de(e,t){return Array.isArray(e)?ue(e):void 0===e||void 0===t?ue():ue([[e,t]])}function ce(e){Gi=e}function pe(){Gi=Hi}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Gi(e,t)}function fe(e,t){var i=0,n=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=de(0,0));for(var a=0;a<e.length;a++)n=e.start(a),r=e.end(a),r>t&&(r=t),i+=r-n;return i/t}function ve(e){if(e instanceof ve)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:p(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=ve.defaultMessages[this.code]||"")}function me(e){return void 0!==e&&null!==e&&"function"==typeof e.then}function ge(e){me(e)&&e.then(null,function(e){})}function ye(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.textTracks();r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e;var s=new Cn.text.TrackClass(r);return a.addTrack(s),s}function be(e,t){On[e]=On[e]||[],On[e].push(t)}function _e(e,t,i){e.setTimeout(function(){return Oe(t,On[t.type],i,e)},1)}function we(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function Te(e,t,i){return e.reduceRight(xe(i),t[i]())}function Se(e,t,i,n){return t[i](e.reduce(xe(i),n))}function ke(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+zi(i),a=e.reduce(xe(r),n),s=a===In,o=s?null:t[i](a);return Ee(e,i,o,s),o}function xe(e){return function(t,i){return t===In?In:i[e]?i[e](t):t}}function Ee(e,t,i,n){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](n,i)}}function Ce(e){Pn.hasOwnProperty(e.id())&&delete Pn[e.id()]}function je(e,t){var i=Pn[e.id()],n=null;if(void 0===i||null===i)return n=t(e),Pn[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var a=ft(i[r],2),s=a[0],o=a[1];s===t&&(n=o)}return null===n&&(n=t(e),i.push([t,n])),n}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments[2],n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=r(t),l=o[0],u=o.slice(1);if("string"==typeof l)Oe(e,On[l],i,n,a,s);else if(l){var d=je(n,l);if(!d.setSource)return a.push(d),Oe(e,u,i,n,a,s);d.setSource(Object.assign({},e),function(t,r){if(t)return Oe(e,u,i,n,a,s);a.push(d),Oe(r,e.type===r.type?u:On[r.type],i,n,a,s)})}else u.length?Oe(e,u,i,n,a,s):s?i(e,a):Oe(e,On["*"],i,n,a,!0)}function Pe(e){if(!e.type){var t=Nn(e.src);t&&(e.type=t)}return e}function Ie(e,t){var i=void 0;if(4===e.length)i=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.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function Ae(e,t,i){try{e.style[t]=i}catch(e){return}}function De(e){return e?e+"px":""}function Le(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}function Me(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function Ne(e,t){return Me(e.options[e.options.selectedIndex].value,t)}function Re(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(Me(e.options[n].value,i)===t){e.selectedIndex=n;break}}function Ue(e,t){var i=!1;return function(){i||It.warn(e),i=!0;for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.apply(this,r)}}function Be(e,t,i,n){return Ue(t+" is deprecated and will be removed in "+e+".0; please use "+i+" instead.",n)}function ze(e,t,i){var n=ze.getPlayer(e);if(n)return t&&It.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&n.ready(i),n;var r="string"==typeof e?oi("#"+Wa(e)):e;if(!_(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");var a="getRootNode"in r&&r.getRootNode()instanceof Xe.a.ShadowRoot,s=a?r.getRootNode():r.ownerDocument.body;r.ownerDocument.defaultView&&s.contains(r)||It.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),bt("beforesetup").forEach(function(e){var i=e(r,f(t));if(!p(i)||Array.isArray(i))return void It.error("please return an object in beforesetup hooks");t=f(t,i)});var o=Vi.getComponent("Player");return n=new o(r,t,i),bt("setup").forEach(function(e){return e(n)}),n}function Fe(){for(var e=ze.obj||ze,t=e.merge||e.mergeOptions,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.apply(e,n)}function qe(){for(var e=ze.time||ze,t=e.createTimeRanges||e.createTimeRanges,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.apply(e,n)}function Ve(e){if(0===e.length)return"Buffered Ranges are empty";for(var t="Buffered Ranges: \n",i=0;i<e.length;i++){var n=e.start(i),r=e.end(i);t+=n+" --\x3e "+r+". Duration ("+(r-n)+")\n"}return t}function He(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}function Ge(){}i.d(t,"a",function(){return ze});for(var We=i(4),Xe=i.n(We),Ye=i(23),$e=i.n(Ye),Ke=i(69),Je=i.n(Ke),Qe=i(74),Ze=i.n(Qe),et=i(13),tt=i.n(et),it=i(24),nt=i(78),rt=i(84),at=i(85),st=i(5),ot=i(86),lt=i(92),ut=i.n(lt),dt=i(27),ct=i(94),pt=i(99),ht=(i.n(pt),function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,i,n)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(n)}),ft=(function(){function e(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),vt=(function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}()),mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt="8.21.0",yt={},bt=function(e,t){return yt[e]=yt[e]||[],t&&(yt[e]=yt[e].concat(t)),yt[e]},_t=function(e,t){bt(e,t)},wt=function(e,t){var i=bt(e).indexOf(t);return!(i<=-1)&&(yt[e]=yt[e].slice(),yt[e].splice(i,1),!0)},Tt=function(e,t){bt(e,[].concat(t).map(function(t){return function i(){return wt(e,i),t.apply(void 0,arguments)}}))},St={prefixed:!0},kt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],xt=kt[0],Et=void 0,Ct=0;Ct<kt.length;Ct++)if(kt[Ct][1]in $e.a){Et=kt[Ct];break}if(Et){for(var jt=0;jt<Et.length;jt++)St[xt[jt]]=Et[jt];St.prefixed=Et[0]!==xt[0]}var Ot=[],Pt=function(e,t,i){return function(n,r,a){var s=t.levels[r],o=new RegExp("^("+s+")$"),l=e;if("log"!==n&&a.unshift(n.toUpperCase()+":"),i&&(l="%c"+e,a.unshift(i)),a.unshift(l+":"),Ot){Ot.push([].concat(a));var u=Ot.length-1e3;Ot.splice(0,u>0?u:0)}if(Xe.a.console){var d=Xe.a.console[n];d||"debug"!==n||(d=Xe.a.console.info||Xe.a.console.log),d&&s&&o.test(n)&&d[Array.isArray(a)?"apply":"call"](Xe.a.console,a)}}},It=u("VIDEOJS"),At=It.createLogger,Dt=Object.prototype.toString,Lt=function(e){return p(e)?Object.keys(e):[]},Mt=Object.freeze({__proto__:null,each:d,reduce:c,isObject:p,isPlain:h,merge:f,values:v,defineLazyProperty:m}),Nt=!1,Rt=null,Ut=!1,Bt=void 0,zt=!1,Ft=!1,qt=!1,Vt=!1,Ht=null,Gt=null,Wt=Boolean(Xe.a.cast&&Xe.a.cast.framework&&Xe.a.cast.framework.CastReceiverContext),Xt=null,Yt=!1,$t=!1,Kt=!1,Jt=!1,Qt=!1,Zt=!1,ei=!1,ti=Boolean(b()&&("ontouchstart"in Xe.a||Xe.a.navigator.maxTouchPoints||Xe.a.DocumentTouch&&Xe.a.document instanceof Xe.a.DocumentTouch)),ii=Xe.a.navigator&&Xe.a.navigator.userAgentData;if(ii&&ii.platform&&ii.brands&&(Ut="Android"===ii.platform,Ft=Boolean(ii.brands.find(function(e){return"Microsoft Edge"===e.brand})),qt=Boolean(ii.brands.find(function(e){return"Chromium"===e.brand})),Vt=!Ft&&qt,Ht=Gt=(ii.brands.find(function(e){return"Chromium"===e.brand})||{}).version||null,$t="Windows"===ii.platform),!qt){var ni=Xe.a.navigator&&Xe.a.navigator.userAgent||"";Nt=/iPod/i.test(ni),Rt=function(){var e=ni.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Ut=/Android/i.test(ni),Bt=function(){var e=ni.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),zt=/Firefox/i.test(ni),Ft=/Edg/i.test(ni),qt=/Chrome/i.test(ni)||/CriOS/i.test(ni),Vt=!Ft&&qt,Ht=Gt=function(){var e=ni.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Xt=function(){var e=/MSIE\s(\d+)\.\d/.exec(ni),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(ni)&&/rv:11.0/.test(ni)&&(t=11),t}(),Qt=/Tizen/i.test(ni),Zt=/Web0S/i.test(ni),ei=Qt||Zt,Yt=/Safari/i.test(ni)&&!Vt&&!Ut&&!Ft&&!ei,$t=/Windows/i.test(ni),Kt=/iPad/i.test(ni)||Yt&&ti&&!/iPhone/i.test(ni),Jt=/iPhone/i.test(ni)&&!Kt}var ri=Jt||Kt||Nt,ai=(Yt||ri)&&!Vt,si=Object.freeze({__proto__:null,get IS_IPOD(){return Nt},get IOS_VERSION(){return Rt},get IS_ANDROID(){return Ut},get ANDROID_VERSION(){return Bt},get IS_FIREFOX(){return zt},get IS_EDGE(){return Ft},get IS_CHROMIUM(){return qt},get IS_CHROME(){return Vt},get CHROMIUM_VERSION(){return Ht},get CHROME_VERSION(){return Gt},IS_CHROMECAST_RECEIVER:Wt,get IE_VERSION(){return Xt},get IS_SAFARI(){return Yt},get IS_WINDOWS(){return $t},get IS_IPAD(){return Kt},get IS_IPHONE(){return Jt},get IS_TIZEN(){return Qt},get IS_WEBOS(){return Zt},get IS_SMART_TV(){return ei},TOUCH_ENABLED:ti,IS_IOS:ri,IS_ANY_SAFARI:ai}),oi=T("querySelector"),li=T("querySelectorAll"),ui=Object.freeze({__proto__:null,isReal:b,isEl:_,isInFrame:w,createEl:S,textContent:k,prependTo:x,hasClass:E,addClass:C,removeClass:j,toggleClass:O,setAttributes:P,getAttributes:I,getAttribute:A,setAttribute:D,removeAttribute:L,blockTextSelection:M,unblockTextSelection:N,getBoundingClientRect:R,findPosition:U,getPointerPosition:B,isTextNode:z,emptyEl:F,normalizeContent:q,appendContent:V,insertContent:H,isSingleLeftClick:G,$:oi,$$:li,computedStyle:W,copyStyleSheetsToWindow:X}),di=!1,ci=void 0,pi=function(){if(!1!==ci.options.autoSetup){var e=Array.prototype.slice.call($e.a.getElementsByTagName("video")),t=Array.prototype.slice.call($e.a.getElementsByTagName("audio")),i=Array.prototype.slice.call($e.a.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s||!s.getAttribute){Y(1);break}if(void 0===s.player){var o=s.getAttribute("data-setup");null!==o&&ci(s)}}else di||Y(1)}};b()&&("complete"===$e.a.readyState?$():Xe.a.addEventListener("load",$));var hi=function(e){var t=$e.a.createElement("style");return t.className=e,t},fi=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},vi=new WeakMap,mi=3,gi=void 0,yi=function(){if("boolean"!=typeof gi){gi=!1;try{var e=Object.defineProperty({},"passive",{get:function(){gi=!0}});Xe.a.addEventListener("test",null,e),Xe.a.removeEventListener("test",null,e)}catch(e){}}return gi},bi=["touchstart","touchmove"],_i=Object.freeze({__proto__:null,fixEvent:Z,on:ee,off:te,trigger:ie,one:ne,any:re}),wi=30,Ti=function(e,t,i){t.guid||(t.guid=K());var n=t.bind(e);return n.guid=i?i+"_"+t.guid:t.guid,n},Si=function(e,t){var i=Xe.a.performance.now();return function(){var n=Xe.a.performance.now();n-i>=t&&(e.apply(void 0,arguments),i=n)}},ki=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xe.a,r=void 0,a=function(){n.clearTimeout(r),r=null},s=function(){var a=this,s=arguments,o=function(){r=null,o=null,i||e.apply(a,s)};!r&&i&&e.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,t)};return s.cancel=a,s},xi=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:wi,bind_:Ti,throttle:Si,debounce:ki}),Ei=void 0,Ci=function(){function e(){o(this,e)}return vt(e,[{key:"on",value:function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ee(this,e,t),this.addEventListener=i}},{key:"off",value:function(e,t){te(this,e,t)}},{key:"one",value:function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ne(this,e,t),this.addEventListener=i}},{key:"any",value:function(e,t){var i=this.addEventListener;this.addEventListener=function(){},re(this,e,t),this.addEventListener=i}},{key:"trigger",value:function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Z(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ie(this,e)}},{key:"queueTrigger",value:function(e){var t=this;Ei||(Ei=new Map);var i=e.type||e,n=Ei.get(this);n||(n=new Map,Ei.set(this,n));var r=n.get(i);n.delete(i),Xe.a.clearTimeout(r);var a=Xe.a.setTimeout(function(){n.delete(i),0===n.size&&(n=null,Ei.delete(t)),t.trigger(e)},0);n.set(i,a)}}]),e}();Ci.prototype.allowedEvents_={},Ci.prototype.addEventListener=Ci.prototype.on,Ci.prototype.removeEventListener=Ci.prototype.off,Ci.prototype.dispatchEvent=Ci.prototype.trigger;var ji=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:void 0===e?"undefined":mt(e)},Oi=function(e){return e instanceof Ci||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},Pi=function(e,t){Oi(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},Ii=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Ai=function(e,t,i){if(!e||!e.nodeName&&!Oi(e))throw new Error("Invalid target for "+ji(t)+"#"+i+"; must be a DOM node or evented object.")},Di=function(e,t,i){if(!Ii(e))throw new Error("Invalid event type for "+ji(t)+"#"+i+"; must be a non-empty string or array.")},Li=function(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+ji(t)+"#"+i+"; must be a function.")},Mi=function(e,t,i){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,r=void 0,a=void 0,s=void 0;if(n){r=e.eventBusEl_,t.length>=3&&t.shift();var o=ft(t,2);a=o[0],s=o[1]}else r=t[0],a=t[1],s=t[2];return Ai(r,e,i),Di(a,e,i),Li(s,e,i),s=Ti(e,s),{isTargetingSelf:n,target:r,type:a,listener:s}},Ni=function(e,t,i,n){Ai(e,e,t),e.nodeName?_i[t](e,i,n):e[t](i,n)},Ri={on:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=Mi(this,i,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(Ni(s,"on",o,l),!a){var u=function(){return e.off(s,o,l)};u.guid=l.guid;var d=function(){return e.off("dispose",u)};d.guid=l.guid,Ni(this,"on","dispose",u),Ni(s,"on","dispose",d)}},one:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=Mi(this,i,"one"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)Ni(s,"one",o,l);else{var u=function t(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.off(s,o,t),l.apply(null,n)};u.guid=l.guid,Ni(s,"one",o,u)}},any:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=Mi(this,i,"any"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)Ni(s,"any",o,l);else{var u=function t(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.off(s,o,t),l.apply(null,n)};u.guid=l.guid,Ni(s,"any",o,u)}},off:function(e,t,i){if(!e||Ii(e))te(this.eventBusEl_,e,t);else{var n=e,r=t;Ai(n,this,"off"),Di(r,this,"off"),Li(i,this,"off"),i=Ti(this,i),this.off("dispose",i),n.nodeName?(te(n,r,i),te(n,"dispose",i)):Oi(n)&&(n.off(r,i),n.off("dispose",i))}},trigger:function(e,t){Ai(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!Ii(i))throw new Error("Invalid event type for "+ji(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.");return ie(this.eventBusEl_,e,t)}},Ui={state:{},setState:function(e){var t=this;"function"==typeof e&&(e=e());var i=void 0;return d(e,function(e,n){t.state[n]!==e&&(i=i||{},i[n]={from:t.state[n],to:e}),t.state[n]=e}),i&&Oi(this)&&this.trigger({changes:i,type:"statechanged"}),i}},Bi=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},zi=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},Fi=function(e,t){return zi(e)===zi(t)},qi=Object.freeze({__proto__:null,toLowerCase:Bi,toTitleCase:zi,titleCaseEquals:Fi}),Vi=function(){function e(t,i,n){var r=this;if(o(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=f({},this.options_),i=this.options_=f(this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var a=t&&t.id&&t.id()||"no_player";this.id_=a+"_component_"+K()}this.name_=i.name||null,i.el?this.el_=i.el:!1!==i.createEl&&(this.el_=this.createEl()),i.className&&this.el_&&i.className.split(" ").forEach(function(e){return r.addClass(e)}),["on","off","one","any","trigger"].forEach(function(e){r[e]=void 0}),!1!==i.evented&&(ae(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),se(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==i.initChildren&&this.initChildren(),this.ready(n),!1!==i.reportTouchActivity&&this.enableTouchActivity()}return vt(e,[{key:"dispose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}},{key:"isDisposed",value:function(){return Boolean(this.isDisposed_)}},{key:"player",value:function(){return this.player_}},{key:"options",value:function(e){return e?(this.options_=f(this.options_,e),this.options_):this.options_}},{key:"el",value:function(){return this.el_}},{key:"createEl",value:function(e,t,i){return S(e,t,i)}},{key:"localize",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],l=i;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){var n=t[i-1],r=n;return void 0===n&&(r=e),r})),l}},{key:"handleLanguagechange",value:function(){}},{key:"contentEl",value:function(){return this.contentEl_||this.el_}},{key:"id",value:function(){return this.id_}},{key:"name",value:function(){return this.name_}},{key:"children",value:function(){return this.children_}},{key:"getChildById",value:function(e){return this.childIndex_[e]}},{key:"getChild",value:function(e){if(e)return this.childNameIndex_[e]}},{key:"getDescendant",value:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n}},{key:"setIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(this.player_.options_.experimentalSvgIcons){var i="http://www.w3.org/2000/svg",n=S("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=$e.a.createElementNS(i,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");var a=$e.a.createElementNS(i,"use");return r.appendChild(a),a.setAttributeNS(null,"href","#vjs-icon-"+e),n.appendChild(r),this.iconIsSet_?t.replaceChild(n,t.querySelector(".vjs-icon-placeholder")):t.appendChild(n),this.iconIsSet_=!0,n}}},{key:"addChild",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"==typeof t){a=zi(t);var s=i.componentClass||a;i.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,i)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&&zi(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[Bi(a)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[n+1]&&(this.children_[n+1].el_?l=this.children_[n+1].el_:_(this.children_[n+1])&&(l=this.children_[n+1])),this.contentEl().insertBefore(r.el(),l)}return r}},{key:"removeChild",value:function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[zi(e.name())]=null,this.childNameIndex_[Bi(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}}},{key:"initChildren",value:function(){var t=this,i=this.options_.children;if(i){var n=this.options_,r=function(e){var i=e.name,r=e.opts;if(void 0!==n[i]&&(r=n[i]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(i,r);a&&(t[i]=a)}},a=void 0,s=e.getComponent("Tech");a=Array.isArray(i)?i:Object.keys(i),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 n=void 0,r=void 0;return"string"==typeof e?(n=e,r=i[n]||t.options_[n]||{}):(n=e.name,r=e),{name:n,opts:r}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||zi(t.name));return i&&!s.isTech(i)}).forEach(r)}}},{key:"buildCSSClass",value:function(){return""}},{key:"ready",value: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))}},{key:"triggerReady",value:function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}},{key:"$",value:function(e,t){return oi(e,t||this.contentEl())}},{key:"$$",value:function(e,t){return li(e,t||this.contentEl())}},{key:"hasClass",value:function(e){return E(this.el_,e)}},{key:"addClass",value:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];C.apply(void 0,[this.el_].concat(t))}},{key:"removeClass",value:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];j.apply(void 0,[this.el_].concat(t))}},{key:"toggleClass",value:function(e,t){O(this.el_,e,t)}},{key:"show",value:function(){this.removeClass("vjs-hidden")}},{key:"hide",value:function(){this.addClass("vjs-hidden")}},{key:"lockShowing",value:function(){this.addClass("vjs-lock-showing")}},{key:"unlockShowing",value:function(){this.removeClass("vjs-lock-showing")}},{key:"getAttribute",value:function(e){return A(this.el_,e)}},{key:"setAttribute",value:function(e,t){D(this.el_,e,t)}},{key:"removeAttribute",value:function(e){L(this.el_,e)}},{key:"width",value:function(e,t){return this.dimension("width",e,t)}},{key:"height",value:function(e,t){return this.dimension("height",e,t)}},{key:"dimensions",value:function(e,t){this.width(e,!0),this.height(t)}},{key:"dimension",value:function(e,t,i){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(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+zi(e)],10)}},{key:"currentDimension",value:function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=W(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+zi(e);t=this.el_[i]}return t}},{key:"currentDimensions",value:function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}},{key:"currentWidth",value:function(){return this.currentDimension("width")}},{key:"currentHeight",value:function(){return this.currentDimension("height")}},{key:"getPositions",value:function(){var e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}},{key:"focus",value:function(){this.el_.focus()}},{key:"blur",value:function(){this.el_.blur()}},{key:"handleKeyDown",value:function(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}},{key:"handleKeyPress",value:function(e){this.handleKeyDown(e)}},{key:"emitTapEvents",value:function(){var e=0,t=null,i=void 0;this.on("touchstart",function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=Xe.a.performance.now(),i=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)i=!1;else if(t){var n=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY,a=Math.sqrt(n*n+r*r);a>10&&(i=!1)}});var n=function(){i=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){if(t=null,!0===i){Xe.a.performance.now()-e<200&&(n.preventDefault(),this.trigger("tap"))}})}},{key:"enableTouchActivity",value:function(){if(this.player()&&this.player().reportUserActivity){var e=Ti(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}}},{key:"setTimeout",value:function(e,t){var i,n=this;return e=Ti(this,e),this.clearTimersOnDispose_(),i=Xe.a.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}},{key:"clearTimeout",value:function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),Xe.a.clearTimeout(e)),e}},{key:"setInterval",value:function(e,t){e=Ti(this,e),this.clearTimersOnDispose_();var i=Xe.a.setInterval(e,t);return this.setIntervalIds_.add(i),i}},{key:"clearInterval",value:function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),Xe.a.clearInterval(e)),e}},{key:"requestAnimationFrame",value:function(e){var t=this;this.clearTimersOnDispose_();var i;return e=Ti(this,e),i=Xe.a.requestAnimationFrame(function(){t.rafIds_.has(i)&&t.rafIds_.delete(i),e()}),this.rafIds_.add(i),i}},{key:"requestNamedAnimationFrame",value:function(e,t){var i=this;this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=Ti(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},{key:"cancelNamedAnimationFrame",value:function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}},{key:"cancelAnimationFrame",value:function(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),Xe.a.cancelAnimationFrame(e)),e}},{key:"clearTimersOnDispose_",value:function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var i=ft(t,2),n=i[0],r=i[1];e[n].forEach(function(t,i){return e[r](i)})}),e.clearingTimersOnDispose_=!1}))}},{key:"getIsDisabled",value:function(){return Boolean(this.el_.disabled)}},{key:"getIsExpresslyInert",value:function(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}},{key:"getIsFocusable",value:function(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}},{key:"getIsAvailableToBeFocused",value:function(e){function t(e){var t=Xe.a.getComputedStyle(e,null),i=t.getPropertyValue("visibility"),n=t.getPropertyValue("display"),r=["hidden","collapse"];return"none"!==n&&!r.includes(i)}return e||(e=this.el()),!(!function(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;var t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0)return!1;if(t.x>($e.a.documentElement.clientWidth||Xe.a.innerWidth))return!1;if(t.y<0)return!1;if(t.y>($e.a.documentElement.clientHeight||Xe.a.innerHeight))return!1;for(var i=$e.a.elementFromPoint(t.x,t.y);i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}}(e)||!function(e){return!!t(e.parentElement)&&!(!t(e)||"0"===e.style.opacity||"0px"===Xe.a.getComputedStyle(e).height||"0px"===Xe.a.getComputedStyle(e).width)}(e)||e.parentElement&&!(e.tabIndex>=0))}}],[{key:"registerComponent",value:function(t,i){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),r=n&&n.isTech(i),a=e===i||e.prototype.isPrototypeOf(i.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=zi(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]=i,e.components_[Bi(t)]=i,i}},{key:"getComponent",value:function(t){if(t&&e.components_)return e.components_[t]}}]),e}();Vi.registerComponent("Component",Vi);var Hi=function(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=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=n=i="-"),r=r>0||s>0?r+":":"",n=((r||a>=10)&&n<10?"0"+n:n)+":",i=i<10?"0"+i:i,r+n+i},Gi=Hi,Wi=Object.freeze({__proto__:null,createTimeRanges:de,createTimeRange:de,setFormatTime:ce,resetFormatTime:pe,formatTime:he});ve.prototype.code=0,ve.prototype.message="",ve.prototype.status=null,ve.prototype.metadata=null,ve.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ve.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."},ve.MEDIA_ERR_CUSTOM=0,ve.prototype.MEDIA_ERR_CUSTOM=0,ve.MEDIA_ERR_ABORTED=1,ve.prototype.MEDIA_ERR_ABORTED=1,ve.MEDIA_ERR_NETWORK=2,ve.prototype.MEDIA_ERR_NETWORK=2,ve.MEDIA_ERR_DECODE=3,ve.prototype.MEDIA_ERR_DECODE=3,ve.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ve.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ve.MEDIA_ERR_ENCRYPTED=5,ve.prototype.MEDIA_ERR_ENCRYPTED=5;var Xi=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i,n){return e[i]&&(t[i]=e[i]),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}})})},Yi=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Xi(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(Xi))},$i=function(e,t){return e.forEach(function(e){var i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return i.addCue(e)})}),t.textTracks()},Ki={textTracksToJson:Yi,jsonToTextTracks:$i,trackToJson_:Xi},Ji="vjs-modal-dialog",Qi=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.close_=function(e){return n.close(e)},n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=S("div",{className:Ji+"-content"},{role:"document"}),n.descEl_=S("p",{className:Ji+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")}),k(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}},{key:"dispose",value:function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"buildCSSClass",value:function(){return Ji+" vjs-hidden "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"label",value:function(){return this.localize(this.options_.label||"Modal Window")}},{key:"description",value:function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}},{key:"open",value:function(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());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}},{key:"opened",value:function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}},{key:"close",value:function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}}},{key:"closeable",value:function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,i=this.getChild("closeButton");if(t&&!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}},{key:"fill",value:function(){this.fillWith(this.content())}},{key:"fillWith",value:function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),H(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);var r=this.getChild("closeButton");r&&i.appendChild(r.el_),this.trigger("aftermodalfill")}},{key:"empty",value:function(){this.trigger("beforemodalempty"),F(this.contentEl()),this.trigger("modalempty")}},{key:"content",value:function(e){return void 0!==e&&(this.content_=e),this.content_}},{key:"conditionalFocus_",value:function(){var e=$e.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}},{key:"conditionalBlur_",value:function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}},{key:"handleKeyDown",value:function(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable())return e.preventDefault(),void this.close();if("Tab"===e.key){for(var t=this.focusableEls_(),i=this.el_.querySelector(":focus"),n=void 0,r=0;r<t.length;r++)if(i===t[r]){n=r;break}$e.a.activeElement===this.el_&&(n=0),e.shiftKey&&0===n?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||n!==t.length-1||(t[0].focus(),e.preventDefault())}}},{key:"focusableEls_",value:function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof Xe.a.HTMLAnchorElement||e instanceof Xe.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof Xe.a.HTMLInputElement||e instanceof Xe.a.HTMLSelectElement||e instanceof Xe.a.HTMLTextAreaElement||e instanceof Xe.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof Xe.a.HTMLIFrameElement||e instanceof Xe.a.HTMLObjectElement||e instanceof Xe.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})}}]),t}(Vi);Qi.prototype.options_={pauseOnOpen:!0,temporary:!0},Vi.registerComponent("ModalDialog",Qi);var Zi=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var n=0;n<e.length;n++)i.addTrack(e[n]);return i}return s(t,e),vt(t,[{key:"addTrack",value:function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-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})},Oi(e)&&e.addEventListener("labelchange",e.labelchange_)}},{key:"removeTrack",value:function(e){for(var t=void 0,i=0,n=this.length;i<n;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}},{key:"getTrackById",value:function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t}}]),t}(Ci);Zi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var en in Zi.prototype.allowedEvents_)Zi.prototype["on"+en]=null;var tn=function(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)},nn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t);for(var i=e.length-1;i>=0;i--)if(e[i].enabled){tn(e,e[i]);break}var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.changing_=!1,n}return s(t,e),vt(t,[{key:"addTrack",value:function(e){var i=this;e.enabled&&tn(this,e),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTrack",this).call(this,e),e.addEventListener&&(e.enabledChange_=function(){i.changing_||(i.changing_=!0,tn(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}},{key:"removeTrack",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}]),t}(Zi),rn=function(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)},an=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t);for(var i=e.length-1;i>=0;i--)if(e[i].selected){rn(e,e[i]);break}var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.changing_=!1,Object.defineProperty(n,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}return s(t,e),vt(t,[{key:"addTrack",value:function(e){var i=this;e.selected&&rn(this,e),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTrack",this).call(this,e),e.addEventListener&&(e.selectedChange_=function(){i.changing_||(i.changing_=!0,rn(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}},{key:"removeTrack",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}]),t}(Zi),sn=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"addTrack",value:function(e){var i=this;ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTrack",this).call(this,e),this.queueChange_||(this.queueChange_=function(){return i.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return i.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}},{key:"removeTrack",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}]),t}(Zi),on=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var i=0,n=t.length;i<n;i++)this.addTrackElement_(t[i])}return vt(e,[{key:"addTrackElement_",value:function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}},{key:"getTrackElementByTrack_",value:function(e){for(var t=void 0,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}},{key:"removeTrackElement_",value:function(e){for(var t=0,i=this.trackElements_.length;t<i;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}(),ln=function(){function e(t){o(this,e),e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}return vt(e,[{key:"setCues_",value:function(e){var t=this.length||0,i=0,n=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<n)for(i=t;i<n;i++)r.call(this,i)}},{key:"getCueById",value:function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t}}]),e}(),un={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},dn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},cn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},pn={disabled:"disabled",hidden:"hidden",showing:"showing"},hn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n={id:e.id||"vjs_track_"+K(),kind:e.kind||"",language:e.language||""},r=e.label||"";for(var s in n)!function(e){Object.defineProperty(i,e,{get:function(){return n[e]},set:function(){}})}(s);return Object.defineProperty(i,"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),i}return s(t,e),t}(Ci),fn=function(e){return new URL(e,$e.a.baseURI)},vn=function(e){return new URL(e,$e.a.baseURI).href},mn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,i=t.exec(e);if(i)return i.pop().toLowerCase()}return""},gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe.a.location;return fn(e).origin!==t.origin},yn=Object.freeze({__proto__:null,parseUrl:fn,getAbsoluteURL:vn,getFileExtension:mn,isCrossOrigin:gn}),bn=function(e,t){var i=new Xe.a.WebVTT.Parser(Xe.a,Xe.a.vttjs,Xe.a.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(Xe.a.console&&Xe.a.console.groupCollapsed&&Xe.a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return It.error(e)}),Xe.a.console&&Xe.a.console.groupEnd&&Xe.a.console.groupEnd()),i.flush()},_n=function(e,t){var i={uri:e},n=gn(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),Je()(i,Ti(this,function(e,i,n){if(e)return It.error(e,i);t.loaded_=!0,"function"!=typeof Xe.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){return"vttjserror"===e.type?void It.error("vttjs failed to load, stopping trying to process "+t.src):bn(n,t)}):bn(n,t)}))},wn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o(this,t),!e.tech)throw new Error("A tech was not provided.");var i=f(e,{kind:cn[e.kind]||"subtitles",language:e.language||e.srclang||""}),n=pn[i.mode]||"disabled",r=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(n="hidden");var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i));s.tech_=i.tech,s.cues_=[],s.activeCues_=[],s.preload_=!1!==s.tech_.preloadTextTracks;var l=new ln(s.cues_),u=new ln(s.activeCues_),d=!1;s.timeupdateHandler=Ti(s,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.tech_.isDisposed()){if(!this.tech_.isReady_)return void("timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)));this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});var c=function(){s.stopTracking()};return s.tech_.one("dispose",c),"disabled"!==n&&s.startTracking(),Object.defineProperties(s,{default:{get:function(){return r},set:function(){}},mode:{get:function(){return n},set:function(e){pn[e]&&n!==e&&(n=e,this.preload_||"disabled"===n||0!==this.cues.length||_n(this.src,this),this.stopTracking(),"disabled"!==n&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?l:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return u;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];r.startTime<=e&&r.endTime>=e&&t.push(r)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(d=!0);return this.activeCues_=t,u.setCues_(this.activeCues_),u},set:function(){}}}),i.src?(s.src=i.src,s.preload_||(s.loaded_=!0),(s.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&_n(s.src,s)):s.loaded_=!0,s}return s(t,e),vt(t,[{key:"startTracking",value:function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}},{key:"stopTracking",value:function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}},{key:"addCue",value:function(e){var t=e;if(!("getCueAsHTML"in t)){t=new Xe.a.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}},{key:"removeCue",value:function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}]),t}(hn);wn.prototype.allowedEvents_={cuechange:"cuechange"};var Tn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=f(e,{kind:dn[e.kind]||""}),n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i)),r=!1;return Object.defineProperty(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 s(t,e),t}(hn),Sn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=f(e,{kind:un[e.kind]||""}),n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i)),r=!1;return Object.defineProperty(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 s(t,e),t}(hn),kn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=void 0,r=new wn(e);return i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i.default=r.default,Object.defineProperties(i,{readyState:{get:function(){return n}},track:{get:function(){return r}}}),n=t.NONE,r.addEventListener("loadeddata",function(){n=t.LOADED,i.trigger({type:"load",target:i})}),i}return s(t,e),t}(Ci);kn.prototype.allowedEvents_={load:"load"},kn.NONE=0,kn.LOADING=1,kn.LOADED=2,kn.ERROR=3;var xn={audio:{ListClass:nn,TrackClass:Tn,capitalName:"Audio"},video:{ListClass:an,TrackClass:Sn,capitalName:"Video"},text:{ListClass:sn,TrackClass:wn,capitalName:"Text"}};Object.keys(xn).forEach(function(e){xn[e].getterName=e+"Tracks",xn[e].privateName=e+"Tracks_"});var En={remoteText:{ListClass:sn,TrackClass:wn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:on,TrackClass:kn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Cn=Object.assign({},xn,En);En.names=Object.keys(En),xn.names=Object.keys(xn),Cn.names=[].concat(En.names).concat(xn.names);var jn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};o(this,t),e.reportTouchActivity=!1;var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,e,i));return n.onDurationChange_=function(e){return n.onDurationChange(e)},n.trackProgress_=function(e){return n.trackProgress(e)},n.trackCurrentTime_=function(e){return n.trackCurrentTime(e)},n.stopTrackingCurrentTime_=function(e){return n.stopTrackingCurrentTime(e)},n.disposeSourceHandler_=function(e){return n.disposeSourceHandler(e)},n.queuedHanders_=new Set,n.hasStarted_=!1,n.on("playing",function(){this.hasStarted_=!0}),n.on("loadstart",function(){this.hasStarted_=!1}),Cn.names.forEach(function(t){var i=Cn[t];e&&e[i.getterName]&&(n[i.privateName]=e[i.getterName])}),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===e["native"+t+"Tracks"]&&(n["featuresNative"+t+"Tracks"]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.preloadTextTracks=!1!==e.preloadTextTracks,n.autoRemoteTextTracks_=new Cn.text.ListClass,n.initTrackListeners(),e.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}return s(t,e),vt(t,[{key:"triggerSourceset",value:function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})}},{key:"manualProgressOn",value:function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}},{key:"manualProgressOff",value:function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}},{key:"trackProgress",value:function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ti(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}},{key:"onDurationChange",value:function(e){this.duration_=this.duration()}},{key:"buffered",value:function(){return de(0,0)}},{key:"bufferedPercent",value:function(){return fe(this.buffered(),this.duration_)}},{key:"stopTrackingProgress",value:function(){this.clearInterval(this.progressInterval)}},{key:"manualTimeUpdatesOn",value:function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}},{key:"manualTimeUpdatesOff",value:function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}},{key:"trackCurrentTime",value:function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}},{key:"stopTrackingCurrentTime",value:function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}},{key:"dispose",value:function(){this.clearTracks(xn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"clearTracks",value:function(e){var t=this;e=[].concat(e),e.forEach(function(e){for(var i=t[e+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===e&&t.removeRemoteTextTrack(r),i.removeTrack(r)}})}},{key:"cleanupAutoTextTracks",value:function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}}},{key:"reset",value:function(){}},{key:"crossOrigin",value:function(){}},{key:"setCrossOrigin",value:function(){}},{key:"error",value:function(e){return void 0!==e&&(this.error_=new ve(e),this.trigger("error")),this.error_}},{key:"played",value:function(){return this.hasStarted_?de(0,0):de()}},{key:"play",value:function(){}},{key:"setScrubbing",value:function(e){}},{key:"scrubbing",value:function(){}},{key:"setCurrentTime",value:function(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}},{key:"initTrackListeners",value:function(){var e=this;xn.names.forEach(function(t){var i=xn[t],n=function(){e.trigger(t+"trackchange")},r=e[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})}},{key:"addWebVttScript_",value:function(){var e=this;if(!Xe.a.WebVTT)if($e.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&h(Ze.a)&&Object.keys(Ze.a).length>0)return void this.trigger("vttjsloaded");var t=$e.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}),Xe.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}},{key:"emulateTextTracks",value:function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e<t.length;e++){var i=t[e];i.removeEventListener("cuechange",a),"showing"===i.mode&&i.addEventListener("cuechange",a)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",function(){i.off("addtrack",n),i.off("removetrack",r),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",a)}})}},{key:"addTextTrack",value:function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return ye(this,e,t,i)}},{key:"createRemoteTextTrack",value:function(e){var t=f(e,{tech:this});return new En.remoteTextEl.TrackClass(t)}},{key:"addRemoteTextTrack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=this.createRemoteTextTrack(t);return"boolean"!=typeof i&&(i=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!1===i&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(n.track)}),n}},{key:"removeRemoteTextTrack",value:function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}},{key:"getVideoPlaybackQuality",value:function(){return{}}},{key:"requestPictureInPicture",value:function(){return Promise.reject()}},{key:"disablePictureInPicture",value:function(){return!0}},{key:"setDisablePictureInPicture",value:function(){}},{key:"requestVideoFrameCallback",value:function(e){var t=this,i=K();return!this.isReady_||this.paused()?(this.queuedHanders_.add(i),this.one("playing",function(){t.queuedHanders_.has(i)&&(t.queuedHanders_.delete(i),e())})):this.requestNamedAnimationFrame(i,e),i}},{key:"cancelVideoFrameCallback",value:function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}},{key:"setPoster",value:function(){}},{key:"playsinline",value:function(){}},{key:"setPlaysinline",value:function(){}},{key:"overrideNativeAudioTracks",value:function(e){}},{key:"overrideNativeVideoTracks",value:function(e){}},{key:"canPlayType",value:function(e){return""}}],[{key:"canPlayType",value:function(e){return""}},{key:"canPlaySource",value:function(e,i){return t.canPlayType(e.type)}},{key:"isTech",value:function(e){return e.prototype instanceof t||e instanceof t||e===t}},{key:"registerTech",value:function(e,i){if(t.techs_||(t.techs_={}),!t.isTech(i))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=zi(e),t.techs_[e]=i,t.techs_[Bi(e)]=i,"Tech"!==e&&t.defaultTechOrder_.push(e),i}},{key:"getTech",value:function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=zi(e),Xe.a&&Xe.a.videojs&&Xe.a.videojs[e]?(It.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),Xe.a.videojs[e]):void 0)}}]),t}(Vi);Cn.names.forEach(function(e){var t=Cn[e];jn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),jn.prototype.featuresVolumeControl=!0,jn.prototype.featuresMuteControl=!0,jn.prototype.featuresFullscreenResize=!1,jn.prototype.featuresPlaybackRate=!1,jn.prototype.featuresProgressEvents=!1,jn.prototype.featuresSourceset=!1,jn.prototype.featuresTimeupdateEvents=!1,jn.prototype.featuresNativeTextTracks=!1,jn.prototype.featuresVideoFrameCallback=!1,jn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,t)},e.canPlayType=function(t){for(var i=e.sourceHandlers||[],n=void 0,r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,i){for(var n=e.sourceHandlers||[],r=0;r<n.length;r++)if(n[r].canHandleSource(t,i))return n[r];return null},e.canPlaySource=function(t,i){var n=e.selectSourceHandler(t,i);return n?n.canHandleSource(t,i):""},["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:It.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.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)}},Vi.registerComponent("Tech",jn),jn.registerTech("Tech",jn),jn.defaultTechOrder_=[];var On={},Pn={},In={},An={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Dn={setCurrentTime:1,setMuted:1,setVolume:1},Ln={play:1,pause:1},Mn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=mn(e);return Mn[t.toLowerCase()]||""},Rn=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var a=n[r];if(a.type&&a.src&&a.src===t)return a.type}return Nn(t)},Un=function e(t){if(Array.isArray(t)){var i=[];t.forEach(function(t){t=e(t),Array.isArray(t)?i=i.concat(t):p(t)&&i.push(t)}),t=i}else t="string"==typeof t&&t.trim()?[Pe({src:t})]:p(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Pe(t)]:[];return t},Bn='<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',zn=Qt?10009:Zt?461:8,Fn={codes:{play:415,pause:19,ff:417,rw:412,back:zn},names:n({415:"play",19:"pause",417:"ff",412:"rw"},zn,"back"),isEventKey:function(e,t){return t=t.toLowerCase(),!(!this.names[e.keyCode]||this.names[e.keyCode]!==t)},getEventName:function(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){var t=this.codes[e.code];return this.names[t]}return null}},qn=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.player_=e,i.focusableComponents=[],i.isListening_=!1,i.isPaused_=!1,i.onKeyDown_=i.onKeyDown_.bind(i),i.lastFocusedComponent_=null,i}return s(t,e),vt(t,[{key:"start",value:function(){var e=this;this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",function(){e.focus(e.updateFocusableComponents()[0])}),this.player_.on("modalclose",function(){e.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",function(){e.updateFocusableComponents(),e.focusableComponents.length&&(e.focusableComponents.length>1?e.focusableComponents[1].focus():e.focusableComponents[0].focus())}))}},{key:"stop",value:function(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}},{key:"onKeyDown_",value:function(e){var t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();var i=t.key.substring(5).toLowerCase();this.move(i)}else if(Fn.isEventKey(t,"play")||Fn.isEventKey(t,"pause")||Fn.isEventKey(t,"ff")||Fn.isEventKey(t,"rw")){t.preventDefault();var n=Fn.getEventName(t);this.performMediaAction_(n)}else Fn.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&e.target.closeable()&&(t.preventDefault(),e.target.close())}},{key:"performMediaAction_",value:function(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}},{key:"userSeek_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}},{key:"pause",value:function(){this.isPaused_=!0}},{key:"resume",value:function(){this.isPaused_=!1}},{key:"handlePlayerBlur_",value:function(e){var t=e.relatedTarget,i=null,n=this.getCurrentComponent(e.target);t&&(i=Boolean(t.closest(".video-js")),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(e.currentTarget.contains(e.relatedTarget)||i)&&t||(n&&"CloseButton"===n.name()?this.refocusComponent():(this.pause(),n&&n.el()&&(this.lastFocusedComponent_=n)))}},{key:"handlePlayerFocus_",value:function(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}},{key:"updateFocusableComponents",value:function(){function e(t){var i=!0,r=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done);i=!0){var l=s.value;l.hasOwnProperty("el_")&&l.getIsFocusable()&&l.getIsAvailableToBeFocused(l.el())&&n.push(l),l.hasOwnProperty("children_")&&l.children_.length>0&&e(l.children_)}}catch(e){r=!0,a=e}finally{try{!i&&o.return&&o.return()}finally{if(r)throw a}}}var t=this,i=this.player_,n=[];return i.children_.forEach(function(i){if(i.hasOwnProperty("el_")){if(i.getIsFocusable&&i.getIsAvailableToBeFocused&&i.getIsFocusable()&&i.getIsAvailableToBeFocused(i.el()))return void n.push(i);i.hasOwnProperty("children_")&&i.children_.length>0?e(i.children_):i.hasOwnProperty("items")&&i.items.length>0?e(i.items):t.findSuitableDOMChild(i)&&n.push(i)}if("ErrorDisplay"===i.name_&&i.opened_){var r=i.el_.querySelector(".vjs-errors-ok-button-container");if(r){r.querySelectorAll("button").forEach(function(e,t){n.push({name:function(){return"ModalButton"+(t+1)},el:function(){return e},getPositions:function(){var t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:function(){return!0},getIsFocusable:function(e){return!0},focus:function(){return e.focus()}})})}}}),this.focusableComponents=n,this.focusableComponents}},{key:"findSuitableDOMChild",value:function(e){function t(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(var n=0;n<i.children.length;n++){var r=i.children[n],a=t(r);if(a)return a}return null}return e.el()?t(e.el()):null}},{key:"getCurrentComponent",value:function(e){this.updateFocusableComponents();var t=e||document.activeElement;if(this.focusableComponents.length){var i=!0,n=!1,r=void 0;try{for(var a,s=this.focusableComponents[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var o=a.value;if(o.el()===t)return o}}catch(e){n=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}}}},{key:"add",value:function(e){var t=[].concat(l(this.focusableComponents));e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}},{key:"remove",value:function(e){for(var t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name())return this.focusableComponents.splice(t,1),void this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}},{key:"clear",value:function(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}},{key:"move",value:function(e){var t=this,i=this.getCurrentComponent();if(i){var n=i.getPositions(),r=this.focusableComponents.filter(function(r){return r!==i&&t.isInDirection_(n.boundingClientRect,r.getPositions().boundingClientRect,e)}),a=this.findBestCandidate_(n.center,r,e);a?this.focus(a):this.trigger({type:"endOfFocusableComponents",direction:e,focusedComponent:i})}}},{key:"findBestCandidate_",value:function(e,t,i){var n=1/0,r=null,a=!0,s=!1,o=void 0;try{for(var l,u=t[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var d=l.value,c=d.getPositions().center,p=this.calculateDistance_(e,c,i);p<n&&(n=p,r=d)}}catch(e){s=!0,o=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw o}}return r}},{key:"isInDirection_",value:function(e,t,i){switch(i){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}},{key:"refocusComponent",value:function(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(var e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}},{key:"focus",value:function(e){"object"===(void 0===e?"undefined":mt(e))&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}},{key:"calculateDistance_",value:function(e,t,i){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y),a=void 0;switch(i){case"right":case"left":a=n+100*r;break;case"up":a=2*r+.5*n;break;case"down":a=5*r+n;break;default:a=n+r}return a}},{key:"searchForTrackSelect_",value:function(){var e=this,t=!0,i=!1,n=void 0;try{for(var r,a=e.updateFocusableComponents()[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var s=r.value;if("TextTrackSelect"===s.constructor.name){e.focus(s);break}}}catch(e){i=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(i)throw n}}}}]),t}(Ci),Vn=function(e){function t(e,i,n){o(this,t);var r=f({createEl:!1},i),s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,n));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)e.src(i.playerOptions.sources);else for(var l=0,u=i.playerOptions.techOrder;l<u.length;l++){var d=zi(u[l]),c=jn.getTech(d);if(d||(c=Vi.getComponent(d)),c&&c.isSupported()){e.loadTech_(d);break}}return s}return s(t,e),t}(Vi);Vi.registerComponent("MediaLoader",Vn);var Hn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.options_.controlText&&n.controlText(n.options_.controlText),n.handleMouseOver_=function(e){return n.handleMouseOver(e)},n.handleMouseOut_=function(e){return n.handleMouseOut(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.emitTapEvents(),n.enable(),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&It.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;var n=S(e,t,i);return this.player_.options_.experimentalSvgIcons||n.appendChild(S("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}},{key:"dispose",value:function(){this.controlTextEl_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"createControlTextEl",value:function(e){return this.controlTextEl_=S("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,k(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}},{key:"buildCSSClass",value:function(){return"vjs-control vjs-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"enable",value:function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}},{key:"disable",value:function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}},{key:"handleLanguagechange",value:function(){this.controlText(this.controlText_)}},{key:"handleClick",value:function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}},{key:"handleKeyDown",value:function(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(Vi);Vi.registerComponent("ClickableComponent",Hn);var Gn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update(),n.update_=function(e){return n.update(e)},e.on("posterchange",n.update_),n}return s(t,e),vt(t,[{key:"dispose",value:function(){this.player().off("posterchange",this.update_),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){return S("div",{className:"vjs-poster"})}},{key:"crossOrigin",value:function(e){return void 0===e?this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null:null!==e&&"anonymous"!==e&&"use-credentials"!==e?void this.player_.log.warn('crossOrigin must be null, "anonymous" or "use-credentials", given "'+e+'"'):void(this.$("img")&&(this.$("img").crossOrigin=e))}},{key:"update",value:function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}},{key:"setSrc",value:function(e){if(!e)return void(this.el_.textContent="");this.$("img")||this.el_.appendChild(S("picture",{className:"vjs-poster",tabIndex:-1},{},S("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}},{key:"handleClick",value:function(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ge(this.player_.play()):this.player_.pause())}}]),t}(Hn);Gn.prototype.crossorigin=Gn.prototype.crossOrigin,Vi.registerComponent("PosterImage",Gn);var Wn={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'},Xn=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n)),s=function(e){return r.updateDisplay(e)},l=function(e){r.updateDisplayOverlay(),r.updateDisplay(e)};return e.on("loadstart",function(e){return r.toggleDisplay(e)}),e.on("texttrackchange",s),e.on("loadedmetadata",function(e){r.updateDisplayOverlay(),r.preselectTrack(e)}),e.ready(Ti(r,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",l),e.on("playerresize",l);var t=Xe.a.screen.orientation||Xe.a,i=Xe.a.screen.orientation?"change":"orientationchange";t.addEventListener(i,l),e.on("dispose",function(){return t.removeEventListener(i,l)});for(var n=this.options_.playerOptions.tracks||[],r=0;r<n.length;r++)this.player_.addRemoteTextTrack(n[r],!0);this.preselectTrack()})),r}return s(t,e),vt(t,[{key:"preselectTrack",value:function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,n=void 0,r=void 0,a=void 0,s=0;s<t.length;s++){var o=t[s];i&&i.enabled&&i.language&&i.language===o.language&&o.kind in e?o.kind===i.kind?a=o:a||(a=o):i&&!i.enabled?(a=null,n=null,r=null):o.default&&("descriptions"!==o.kind||n?o.kind in e&&!r&&(r=o):n=o)}a?a.mode="showing":r?r.mode="showing":n&&(n.mode="showing")}},{key:"toggleDisplay",value:function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}},{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}},{key:"clearDisplay",value:function(){"function"==typeof Xe.a.WebVTT&&Xe.a.WebVTT.processCues(Xe.a,[],this.el_)}},{key:"updateDisplay",value:function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}return void this.updateForTrack(i)}for(var a=null,s=null,o=e.length;o--;){var l=e[o];"showing"===l.mode&&("descriptions"===l.kind?a=l:s=l)}if(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)),!Xe.a.CSS.supports("inset","10px")){var u=this.el_,d=u.querySelectorAll(".vjs-text-track-cue"),c=this.player_.controlBar.el_.getBoundingClientRect().height,p=this.player_.el_.getBoundingClientRect().height;u.style="",Ae(u,"position","relative"),Ae(u,"height",p-c+"px"),Ae(u,"top","unset"),ei?Ae(u,"bottom",p+"px"):Ae(u,"bottom","0px"),d.length>0&&d.forEach(function(e){if(e.style.inset){var t=e.style.inset.split(" ");3===t.length&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:"unset"})}})}}},{key:"updateDisplayOverlay",value:function(){if(this.player_.videoHeight()&&Xe.a.CSS.supports("inset-inline: 10px")){var e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,n=this.player_.videoWidth()/this.player_.videoHeight(),r=0,a=0;Math.abs(i-n)>.1&&(i>n?r=Math.round((e-t*n)/2):a=Math.round((t-e/n)/2)),Ae(this.el_,"insetInline",De(r)),Ae(this.el_,"insetBlock",De(a))}}},{key:"updateDisplayState",value:function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r=i[n];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&Ae(a.firstChild,"color",Ie(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Ae(a.firstChild,"backgroundColor",Ie(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Ae(a,"backgroundColor",Ie(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=Xe.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Wn[t.fontFamily])}}}},{key:"updateForTrack",value:function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof Xe.a.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);Xe.a.WebVTT.processCues(Xe.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var l=s.activeCues[o].displayState;C(l,"vjs-text-track-cue","vjs-text-track-cue-"+(s.language?s.language:a)),s.language&&D(l,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}}}]),t}(Vi);Vi.registerComponent("TextTrackDisplay",Xn);var Yn=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=this.player_.isAudio(),i=this.localize(e?"Audio Player":"Video Player"),n=S("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[i])}),r=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r}},{key:"handleLanguagechange",value:function(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}]),t}(Vi);Vi.registerComponent("LoadingSpinner",Yn);var $n=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"createEl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i);var n=S(e,t,i);return this.player_.options_.experimentalSvgIcons||n.appendChild(S("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return It.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),Vi.prototype.addChild.call(this,e,t)}},{key:"enable",value:function(){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enable",this).call(this),this.el_.removeAttribute("disabled")}},{key:"disable",value:function(){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disable",this).call(this),this.el_.setAttribute("disabled","disabled")}},{key:"handleKeyDown",value:function(e){if(" "===e.key||"Enter"===e.key)return void e.stopPropagation();ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(Hn);Vi.registerComponent("Button",$n);var Kn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.mouseused_=!1,n.setIcon("play"),n.on("mousedown",function(e){return n.handleMouseDown(e)}),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-big-play-button"}},{key:"handleClick",value:function(e){var t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return ge(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());var i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");if(!n)return void this.player_.tech(!0).focus();var r=function(){return n.focus()};me(t)?t.then(r,function(){}):this.setTimeout(r,1)}},{key:"handleKeyDown",value:function(e){this.mouseused_=!1,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleMouseDown",value:function(e){this.mouseused_=!0}}]),t}($n);Kn.prototype.controlText_="Play Video",Vi.registerComponent("BigPlayButton",Kn);var Jn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.setIcon("cancel"),n.controlText(i&&i.controlText||n.localize("Close")),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-close-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){this.trigger({type:"close",bubbles:!1})}},{key:"handleKeyDown",value:function(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}($n);Vi.registerComponent("CloseButton",Jn);var Qn=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return i.replay=void 0===i.replay||i.replay,n.setIcon("play"),n.on(e,"play",function(e){return n.handlePlay(e)}),n.on(e,"pause",function(e){return n.handlePause(e)}),i.replay&&n.on(e,"ended",function(e){return n.handleEnded(e)}),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-play-control "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){this.player_.paused()?ge(this.player_.play()):this.player_.pause()}},{key:"handleSeeked",value:function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}},{key:"handlePlay",value:function(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}},{key:"handlePause",value:function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}},{key:"handleEnded",value:function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})}}]),t}($n);Qn.prototype.controlText_="Play",Vi.registerComponent("PlayToggle",Qn);var Zn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,["timeupdate","ended","seeking"],function(e){return n.update(e)}),n.updateTextNode_(),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=this.buildCSSClass(),i=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:e+" vjs-time-control vjs-control"}),n=S("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return i.appendChild(n),this.contentEl_=S("span",{className:e+"-display"},{role:"presentation"}),i.appendChild(this.contentEl_),i}},{key:"dispose",value:function(){this.contentEl_=null,this.textNode_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"update",value:function(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}},{key:"updateTextNode_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t=he(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,It.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=$e.a.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}}))}},{key:"updateContent",value:function(e){}}]),t}(Vi);Zn.prototype.labelText_="Time",Zn.prototype.controlText_="Time",Vi.registerComponent("TimeDisplay",Zn);var er=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-current-time"}},{key:"updateContent",value:function(e){var t=void 0;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}]),t}(Zn);er.prototype.labelText_="Current Time",er.prototype.controlText_="Current Time",Vi.registerComponent("CurrentTimeDisplay",er);var tr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=function(e){return n.updateContent(e)};return n.on(e,"durationchange",r),n.on(e,"loadstart",r),n.on(e,"loadedmetadata",r),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-duration"}},{key:"updateContent",value:function(e){var t=this.player_.duration();this.updateTextNode_(t)}}]),t}(Zn);tr.prototype.labelText_="Duration",tr.prototype.controlText_="Duration",Vi.registerComponent("DurationDisplay",tr);var ir=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div"),n=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"span",{textContent:"/"});return i.appendChild(n),e.appendChild(i),e}}]),t}(Vi);Vi.registerComponent("TimeDivider",ir);var nr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,"durationchange",function(e){return n.updateContent(e)}),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-remaining-time"}},{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this);return!1!==this.options_.displayNegative&&e.insertBefore(S("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}},{key:"updateContent",value:function(e){if("number"==typeof this.player_.duration()){var t=void 0;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}}]),t}(Zn);nr.prototype.labelText_="Remaining Time",nr.prototype.controlText_="Remaining Time",Vi.registerComponent("RemainingTimeDisplay",nr);var rr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.updateShowing(),n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)}),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=S("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(S("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild($e.a.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}},{key:"dispose",value:function(){this.contentEl_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"updateShowing",value:function(e){this.player().duration()===1/0?this.show():this.hide()}}]),t}(Vi);Vi.registerComponent("LiveDisplay",rr);var ar=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=S("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}},{key:"updateLiveEdgeStatus",value:function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}},{key:"handleClick",value:function(){this.player_.liveTracker.seekToLiveEdge()}},{key:"dispose",value:function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}($n);ar.prototype.controlText_="Seek to live, currently playing live",Vi.registerComponent("SeekToLive",ar);var sr=Object.freeze({__proto__:null,clamp:Le}),or=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}return s(t,e),vt(t,[{key:"enabled",value:function(){return this.enabled_}},{key:"enable",value:function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}},{key:"disable",value:function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}}},{key:"createEl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=Object.assign({tabIndex:0},i),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n)}},{key:"handleMouseDown",value:function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Vt||e.preventDefault(),M(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}},{key:"handleMouseMove",value:function(e){}},{key:"handleMouseUp",value:function(e){var t=this.bar.el_.ownerDocument;N(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}},{key:"update",value:function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_?t:(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var i=e.vertical()?"height":"width";e.bar.el().style[i]=(100*t).toFixed(2)+"%"}),t)}}},{key:"getProgress",value:function(){return Number(Le(this.getPercent(),0,1).toFixed(4))}},{key:"calculateDistance",value:function(e){var t=B(this.el_,e);return this.vertical()?t.y:t.x}},{key:"handleKeyDown",value:function(e){var i=this.options_.playerOptions.spatialNavigation,n=i&&i.enabled,r=i&&i.horizontalSeek;n?r&&"ArrowLeft"===e.key||!r&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):r&&"ArrowRight"===e.key||!r&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleClick",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"vertical",value:function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}]),t}(Vi);Vi.registerComponent("Slider",or);var lr=function(e,t){return Le(e/t*100,0,100).toFixed(2)+"%"},ur=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.partEls_=[],n.on(e,"progress",function(e){return n.update(e)}),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-load-progress"}),i=S("span",{className:"vjs-control-text"}),n=S("span",{textContent:this.localize("Loaded")}),r=$e.a.createTextNode(": ");return this.percentageEl_=S("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),e}},{key:"dispose",value:function(){this.partEls_=null,this.percentageEl_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"update",value:function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,i=t.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=lr(r,n);t.percent_!==s&&(t.el_.style.width=s,k(t.percentageEl_,s),t.percent_=s);for(var o=0;o<i.length;o++){var l=i.start(o),u=i.end(o),d=a[o];d||(d=t.el_.appendChild(S()),a[o]=d),d.dataset.start===l&&d.dataset.end===u||(d.dataset.start=l,d.dataset.end=u,d.style.left=lr(l,r),d.style.width=lr(u-l,r))}for(var c=a.length;c>i.length;c--)t.el_.removeChild(a[c-1]);a.length=i.length})}}]),t}(Vi);Vi.registerComponent("LoadProgressBar",ur);var dr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=Si(Ti(n,n.update),wi),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t,i){var n=U(this.el_),r=R(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right);o||(o=e.width-a,s=a);var l=n.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>n.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}}},{key:"write",value:function(e){k(this.el_,e)}},{key:"updateTime",value:function(e,t,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a=void 0,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?"":"-")+he(l,o)}else a=he(i,s);r.update(e,t,a),n&&n()})}}]),t}(Vi);Vi.registerComponent("TimeTooltip",dr);var cr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.setIcon("circle"),n.update=Si(Ti(n,n.update),wi),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}}}]),t}(Vi);cr.prototype.options_={children:[]},ri||Ut||cr.prototype.options_.children.push("timeTooltip"),Vi.registerComponent("PlayProgressBar",cr);var pr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=Si(Ti(n,n.update),wi),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-mouse-display"})}},{key:"update",value:function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})}}]),t}(Vi);pr.prototype.options_={children:["timeTooltip"]},Vi.registerComponent("MouseTimeDisplay",pr);var hr=function(e){function t(e,i){o(this,t),i=f(t.prototype.options_,i),i.children=[].concat(l(i.children));var n=e.options_.disableSeekWhileScrubbingOnMobile&&(ri||Ut);(!ri&&!Ut||n)&&i.children.splice(1,0,"mouseTimeDisplay");var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return r.shouldDisableSeekWhileScrubbingOnMobile_=n,r.pendingSeekTime_=null,r.setEventHandlers_(),r}return s(t,e),vt(t,[{key:"setEventHandlers_",value:function(){var e=this;this.update_=Ti(this,this.update),this.update=Si(this.update_,wi),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],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 $e.a&&"visibilityState"in $e.a&&this.on($e.a,"visibilitychange",this.toggleVisibility_)}},{key:"toggleVisibility_",value:function(e){"hidden"===$e.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}},{key:"enableInterval_",value:function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,wi))}},{key:"disableInterval_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}},{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}},{key:"update",value:function(e){var i=this;if("hidden"!==$e.a.visibilityState){var n=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===e&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[he(e,r),he(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(R(i.el()),i.getProgress())}),n}}},{key:"userSeek_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}},{key:"getCurrentTime_",value:function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}},{key:"getPercent",value:function(){if(this.pendingSeekTime_)return this.pendingSeekTime_/this.player_.duration();var e=this.getCurrentTime_(),t=void 0,i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}},{key:"handleMouseDown",value:function(e){G(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbingOnMobile_||this.player_.pause(),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseDown",this).call(this,e))}},{key:"handleMouseMove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(G(e)&&!isNaN(this.player_.duration())){t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=void 0,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),s=r.liveCurrentTime();if(i=a+n*r.liveWindow(),i>=s&&(i=s),i<=a&&(i=a+.1),i===1/0)return}else(i=n*this.player_.duration())===this.player_.duration()&&(i-=.1);this.shouldDisableSeekWhileScrubbingOnMobile_?this.pendingSeekTime_=i:this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}}},{key:"enable",value:function(){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enable",this).call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()}},{key:"disable",value:function(){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disable",this).call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()}},{key:"handleMouseUp",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.pendingSeekTime_&&(this.userSeek_(this.pendingSeekTime_),this.pendingSeekTime_=null),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ge(this.player_.play()):this.update_()}},{key:"stepForward",value:function(){this.userSeek_(this.player_.currentTime()+5)}},{key:"stepBack",value:function(){this.userSeek_(this.player_.currentTime()-5)}},{key:"handleAction",value:function(e){this.player_.paused()?this.player_.play():this.player_.pause()}},{key:"handleKeyDown",value:function(e){var i=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();var n=.1*parseInt(e.key,10);i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"dispose",value:function(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],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 $e.a&&"visibilityState"in $e.a&&this.off($e.a,"visibilitychange",this.toggleVisibility_),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(or);hr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Vi.registerComponent("SeekBar",hr);var fr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleMouseMove=Si(Ti(n,n.handleMouseMove),wi),n.throttledHandleMouseSeek=Si(Ti(n,n.handleMouseSeek),wi),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)},n.enable(),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control vjs-control"})}},{key:"handleMouseMove",value:function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),a=U(r),s=B(r,e).x;s=Le(s,0,1),n&&n.update(a,s),i&&i.update(a,t.getProgress())}}}},{key:"handleMouseSeek",value:function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)}},{key:"enabled",value:function(){return this.enabled_}},{key:"disable",value:function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ge(this.player_.play())}}},{key:"enable",value:function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}},{key:"removeListenersAddedOnMousedownAndTouchstart",value:function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseDown",value:function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseUp",value:function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}]),t}(Vi);fr.prototype.options_={children:["seekBar"]},Vi.registerComponent("ProgressControl",fr);var vr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.setIcon("picture-in-picture-enter"),n.on(e,["enterpictureinpicture","leavepictureinpicture"],function(e){return n.handlePictureInPictureChange(e)}),n.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(e){return n.handlePictureInPictureEnabledChange(e)}),n.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){return n.handlePictureInPictureAudioModeChange()}),n.disable(),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-picture-in-picture-control vjs-hidden "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handlePictureInPictureAudioModeChange",value:function(){if("audio"!==this.player_.currentType().substring(0,5)&&!this.player_.audioPosterMode()&&!this.player_.audioOnlyMode())return void this.show();this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}},{key:"handlePictureInPictureEnabledChange",value:function(){$e.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in Xe.a?this.enable():this.disable()}},{key:"handlePictureInPictureChange",value:function(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}},{key:"handleClick",value:function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}},{key:"show",value:function(){"function"==typeof $e.a.exitPictureInPicture&&ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}}]),t}($n);vr.prototype.controlText_="Picture-in-Picture",Vi.registerComponent("PictureInPictureToggle",vr);var mr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.setIcon("fullscreen-enter"),n.on(e,"fullscreenchange",function(e){return n.handleFullscreenChange(e)}),!1===$e.a[e.fsApi_.fullscreenEnabled]&&n.disable(),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-fullscreen-control "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleFullscreenChange",value:function(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}},{key:"handleClick",value:function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}]),t}($n);mr.prototype.controlText_="Fullscreen",Vi.registerComponent("FullscreenToggle",mr);var gr=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")})},yr=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"span",{className:"vjs-control-text"})),e}}]),t}(Vi);Vi.registerComponent("VolumeLevel",yr);var br=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=Si(Ti(n,n.update),wi),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t,i,n){if(!i){var r=R(this.el_),a=R(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(n+"%")}},{key:"write",value:function(e){k(this.el_,e)}},{key:"updateVolume",value:function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,i,n.toFixed(0)),r&&r()})}}]),t}(Vi);Vi.registerComponent("VolumeLevelTooltip",br);var _r=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=Si(Ti(n,n.update),wi),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-mouse-display"})}},{key:"update",value:function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})}}]),t}(Vi);_r.prototype.options_={children:["volumeLevelTooltip"]},Vi.registerComponent("MouseVolumeLevelDisplay",_r);var wr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on("slideractive",function(e){return n.updateLastVolume_(e)}),n.on(e,"volumechange",function(e){return n.updateARIAAttributes(e)}),e.ready(function(){return n.updateARIAAttributes()}),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}},{key:"handleMouseDown",value:function(e){G(e)&&ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseDown",this).call(this,e)}},{key:"handleMouseMove",value:function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var i=this.el(),n=R(i),r=this.vertical(),a=B(i,e);a=r?a.y:a.x,a=Le(a,0,1),t.update(n,a,r)}G(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}},{key:"checkMuted",value:function(){this.player_.muted()&&this.player_.muted(!1)}},{key:"getPercent",value:function(){return this.player_.muted()?0:this.player_.volume()}},{key:"stepForward",value:function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}},{key:"stepBack",value:function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}},{key:"updateARIAAttributes",value:function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}},{key:"volumeAsPercentage_",value:function(){return Math.round(100*this.player_.volume())}},{key:"updateLastVolume_",value:function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})}}]),t}(or);wr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ri||Ut||wr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),wr.prototype.playerEvent="volumechange",Vi.registerComponent("VolumeBar",wr);var Tr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),i.vertical=i.vertical||!1,(void 0===i.volumeBar||h(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return gr(n,e),n.throttledHandleMouseMove=Si(Ti(n,n.handleMouseMove),wi),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",function(e){return n.handleMouseDown(e)}),n.on("touchstart",function(e){return n.handleMouseDown(e)}),n.on("mousemove",function(e){return n.handleMouseMove(e)}),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-control vjs-control "+e})}},{key:"handleMouseDown",value:function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseUp",value:function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}},{key:"handleMouseMove",value:function(e){this.volumeBar.handleMouseMove(e)}}]),t}(Vi);Tr.prototype.options_={children:["volumeBar"]},Vi.registerComponent("VolumeControl",Tr);var Sr=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")})},kr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return Sr(n,e),n.on(e,["loadstart","volumechange"],function(e){return n.update(e)}),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-mute-control "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}},{key:"update",value:function(e){this.updateIcon_(),this.updateControlText_()}},{key:"updateIcon_",value:function(){var e=this.player_.volume(),t=3;this.setIcon("volume-high"),ri&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),j(this.el_,[0,1,2,3].reduce(function(e,t){return e+(t?" ":"")+"vjs-vol-"+t},"")),C(this.el_,"vjs-vol-"+t)}},{key:"updateControlText_",value:function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}}]),t}($n);kr.prototype.controlText_="Mute",Vi.registerComponent("MuteToggle",kr);var xr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||h(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(e,["loadstart"],function(e){return n.volumePanelState_(e)}),n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)}),n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)}),n.on("keydown",function(e){return n.handleKeyPress(e)}),n.on("mouseover",function(e){return n.handleMouseOver(e)}),n.on("mouseout",function(e){return n.handleMouseOut(e)}),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}return s(t,e),vt(t,[{key:"sliderActive_",value:function(){this.addClass("vjs-slider-active")}},{key:"sliderInactive_",value:function(){this.removeClass("vjs-slider-active")}},{key:"volumePanelState_",value:function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}},{key:"createEl",value:function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-panel vjs-control "+e})}},{key:"dispose",value:function(){this.handleMouseOut(),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"handleVolumeControlKeyUp",value:function(e){"Escape"===e.key&&this.muteToggle.focus()}},{key:"handleMouseOver",value:function(e){this.addClass("vjs-hover"),ee($e.a,"keyup",this.handleKeyPressHandler_)}},{key:"handleMouseOut",value:function(e){this.removeClass("vjs-hover"),te($e.a,"keyup",this.handleKeyPressHandler_)}},{key:"handleKeyPress",value:function(e){"Escape"===e.key&&this.handleMouseOut()}}]),t}(Vi);xr.prototype.options_={children:["muteToggle","volumeControl"]},Vi.registerComponent("VolumePanel",xr);var Er=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.validOptions=[5,10,30],n.skipTime=n.getSkipForwardTime(),n.skipTime&&n.validOptions.includes(n.skipTime)?(n.setIcon("forward-"+n.skipTime),n.controlText(n.localize("Skip forward {1} seconds",[n.skipTime.toLocaleString(e.language())])),n.show()):n.hide(),n}return s(t,e),vt(t,[{key:"getSkipForwardTime",value:function(){var e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}},{key:"buildCSSClass",value:function(){return"vjs-skip-forward-"+this.getSkipForwardTime()+" "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){if(!isNaN(this.player_.duration())){var t=this.player_.currentTime(),i=this.player_.liveTracker,n=i&&i.isLive()?i.seekableEnd():this.player_.duration(),r=void 0;r=t+this.skipTime<=n?t+this.skipTime:n,this.player_.currentTime(r)}}},{key:"handleLanguagechange",value:function(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}]),t}($n);Er.prototype.controlText_="Skip Forward",Vi.registerComponent("SkipForward",Er);var Cr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.validOptions=[5,10,30],n.skipTime=n.getSkipBackwardTime(),n.skipTime&&n.validOptions.includes(n.skipTime)?(n.setIcon("replay-"+n.skipTime),n.controlText(n.localize("Skip backward {1} seconds",[n.skipTime.toLocaleString(e.language())])),n.show()):n.hide(),n}return s(t,e),vt(t,[{key:"getSkipBackwardTime",value:function(){var e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}},{key:"buildCSSClass",value:function(){return"vjs-skip-backward-"+this.getSkipBackwardTime()+" "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){var t=this.player_.currentTime(),i=this.player_.liveTracker,n=i&&i.isLive()&&i.seekableStart(),r=void 0;r=n&&t-this.skipTime<=n?n:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}},{key:"handleLanguagechange",value:function(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}]),t}($n);Cr.prototype.controlText_="Skip Backward",Vi.registerComponent("SkipBackward",Cr);var jr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",function(e){return n.handleKeyDown(e)}),n.boundHandleBlur_=function(e){return n.handleBlur(e)},n.boundHandleTapClick_=function(e){return n.handleTapClick(e)},n}return s(t,e),vt(t,[{key:"addEventListenerForItem",value:function(e){e instanceof Vi&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}},{key:"removeEventListenerForItem",value:function(e){e instanceof Vi&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}},{key:"removeChild",value:function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e)}},{key:"addItem",value:function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)}},{key:"createEl",value:function(){var e=this.options_.contentElType||"ul";this.contentEl_=S(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),ee(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i}},{key:"dispose",value:function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"handleBlur",value:function(e){var t=e.relatedTarget||$e.a.activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}}},{key:"handleTapClick",value:function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var i=t.filter(function(t){return t.el()===e.target})[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}},{key:"handleKeyDown",value:function(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),e.stopPropagation(),this.stepBack())}},{key:"stepForward",value:function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}},{key:"stepBack",value:function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}]),t}(Vi);Vi.registerComponent("Menu",jr);var Or=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));n.menuButton_=new $n(e,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=$n.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var s=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",s),n.on(n.menuButton_,"click",s),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),ee($e.a,"keyup",n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}return s(t,e),vt(t,[{key:"update",value:function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}},{key:"createMenu",value:function(){var e=new jr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=S("li",{className:"vjs-menu-title",textContent:zi(this.options_.title),tabIndex:-1}),i=new Vi(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e}},{key:"createItems",value:function(){}},{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:this.buildWrapperCSSClass()},{})}},{key:"setIcon",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setIcon",this).call(this,e,this.menuButton_.el_)}},{key:"buildWrapperCSSClass",value:function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+$n.prototype.buildCSSClass()+" "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildCSSClass",value:function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)}},{key:"dispose",value:function(){this.handleMouseLeave(),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"handleClick",value:function(e){this.buttonPressed_?this.unpressButton():this.pressButton()}},{key:"handleMouseLeave",value:function(e){this.removeClass("vjs-hover"),te($e.a,"keyup",this.handleMenuKeyUp_)}},{key:"focus",value:function(){this.menuButton_.focus()}},{key:"blur",value:function(){this.menuButton_.blur()}},{key:"handleKeyDown",value:function(e){"Escape"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus())):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}},{key:"handleMenuKeyUp",value:function(e){"Escape"!==e.key&&"Tab"!==e.key||this.removeClass("vjs-hover")}},{key:"handleSubmenuKeyPress",value:function(e){this.handleSubmenuKeyDown(e)}},{key:"handleSubmenuKeyDown",value:function(e){"Escape"!==e.key&&"Tab"!==e.key||(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus()))}},{key:"pressButton",value:function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ri&&w())return;this.menu.focus()}}},{key:"unpressButton",value:function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}},{key:"disable",value:function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}},{key:"enable",value:function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}]),t}(Vi);Vi.registerComponent("MenuButton",Or);var Pr=function(e){function t(e,i){o(this,t);var n=i.tracks,r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if(r.items.length<=1&&r.hide(),!n)return a(r);var s=Ti(r,r.update);return n.addEventListener("removetrack",s),n.addEventListener("addtrack",s),n.addEventListener("labelchange",s),r.player_.on("ready",s),r.player_.on("dispose",function(){n.removeEventListener("removetrack",s),n.removeEventListener("addtrack",s),n.removeEventListener("labelchange",s)}),r}return s(t,e),t}(Or);Vi.registerComponent("TrackButton",Pr);var Ir=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.selectable=i.selectable,n.isSelected_=i.selected||!1,n.multiSelectable=i.multiSelectable,n.selected(n.isSelected_),n.selectable?n.multiSelectable?n.el_.setAttribute("role","menuitemcheckbox"):n.el_.setAttribute("role","menuitemradio"):n.el_.setAttribute("role","menuitem"),n}return s(t,e),vt(t,[{key:"createEl",value:function(e,i,n){this.nonIconControl=!0;var r=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"li",Object.assign({className:"vjs-menu-item",tabIndex:-1},i),n),a=S("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(a):r.replaceChild(a,r.querySelector(".vjs-icon-placeholder")),r}},{key:"handleKeyDown",value:function(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleClick",value:function(e){this.selected(!0)}},{key:"selected",value:function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}]),t}(Hn);Vi.registerComponent("MenuItem",Ir);var Ar=function(e){function t(e,i){o(this,t);var n=i.track,r=e.textTracks();i.label=n.label||n.language||"Unknown",i.selected="showing"===n.mode;var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));s.track=n,s.kinds=(i.kinds||[i.kind||s.track.kind]).filter(Boolean);var l=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s.handleTracksChange.apply(s,t)},u=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s.handleSelectedLanguageChange.apply(s,t)};if(e.on(["loadstart","texttrackchange"],l),r.addEventListener("change",l),r.addEventListener("selectedlanguagechange",u),s.on("dispose",function(){e.off(["loadstart","texttrackchange"],l),r.removeEventListener("change",l),r.removeEventListener("selectedlanguagechange",u)}),void 0===r.onchange){var d=void 0;s.on(["tap","click"],function(){if("object"!==mt(Xe.a.Event))try{d=new Xe.a.Event("change")}catch(e){}d||(d=$e.a.createEvent("Event"),d.initEvent("change",!0,!0)),r.dispatchEvent(d)})}return s.handleTracksChange(),s}return s(t,e),vt(t,[{key:"handleClick",value:function(e){var i=this.track,n=this.player_.textTracks();if(ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this,e),n)for(var r=0;r<n.length;r++){var a=n[r];-1!==this.kinds.indexOf(a.kind)&&(a===i?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}}},{key:"handleTracksChange",value:function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}},{key:"handleSelectedLanguageChange",value:function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;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}}}},{key:"dispose",value:function(){this.track=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Ir);Vi.registerComponent("TextTrackMenuItem",Ar);var Dr=function(e){function t(e,i){return o(this,t),i.track={player:e,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,a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i))}return s(t,e),vt(t,[{key:"handleTracksChange",value:function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}},{key:"handleSelectedLanguageChange",value:function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}},{key:"handleLanguagechange",value:function(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleLanguagechange",this).call(this)}}]),t}(Ar);Vi.registerComponent("OffTextTrackMenuItem",Dr);var Lr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),i.tracks=e.textTracks(),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i))}return s(t,e),vt(t,[{key:"createItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ar,i=void 0;this.label_&&(i=this.label_+" off"),e.push(new Dr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var a=n[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}(Pr);Vi.registerComponent("TextTrackButton",Lr);var Mr=function(e){function t(e,i){o(this,t);var n=i.track,r=i.cue,s=e.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=r.text,i.selected=r.startTime<=s&&s<r.endTime;var l=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return l.track=n,l.cue=r,l}return s(t,e),vt(t,[{key:"handleClick",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this),this.player_.currentTime(this.cue.startTime)}}]),t}(Ir);Vi.registerComponent("ChaptersTrackMenuItem",Mr);var Nr=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));return r.setIcon("chapters"),r.selectCurrentItem_=function(){r.items.forEach(function(e){e.selected(r.track_.activeCues[0]===e.cue)})},r}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-chapters-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-chapters-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"update",value:function(e){if(!e||!e.track||"chapters"===e.track.kind){var i=this.findChaptersTrack();i!==this.track_?(this.setTrack(i),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this)):(!this.items||i&&i.cues&&i.cues.length!==this.items.length)&&ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this)}}},{key:"setTrack",value:function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}},{key:"findChaptersTrack",value:function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var i=e[t];if(i.kind===this.kind_)return i}}},{key:"getMenuCaption",value:function(){return this.track_&&this.track_.label?this.track_.label:this.localize(zi(this.kind_))}},{key:"createMenu",value:function(){return this.options_.title=this.getMenuCaption(),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createMenu",this).call(this)}},{key:"createItems",value:function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],a=new Mr(this.player_,{track:this.track_,cue:r});e.push(a)}return e}}]),t}(Lr);Nr.prototype.kind_="chapters",Nr.prototype.controlText_="Chapters",Vi.registerComponent("ChaptersButton",Nr);var Rr=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));r.setIcon("audio-description");var s=e.textTracks(),l=Ti(r,r.handleTracksChange);return s.addEventListener("change",l),r.on("dispose",function(){s.removeEventListener("change",l)}),r}return s(t,e),vt(t,[{key:"handleTracksChange",value:function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()}},{key:"buildCSSClass",value:function(){return"vjs-descriptions-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-descriptions-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}}]),t}(Lr);Rr.prototype.kind_="descriptions",Rr.prototype.controlText_="Descriptions",Vi.registerComponent("DescriptionsButton",Rr);var Ur=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));return r.setIcon("subtitles"),r}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-subtitles-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-subtitles-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}}]),t}(Lr);Ur.prototype.kind_="subtitles",Ur.prototype.controlText_="Subtitles",Vi.registerComponent("SubtitlesButton",Ur);var Br=function(e){function t(e,i){o(this,t),i.track={player:e,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.addClass("vjs-texttrack-settings"),n.controlText(", opens "+i.kind+" settings dialog"),n}return s(t,e),vt(t,[{key:"handleClick",value:function(e){this.player().getChild("textTrackSettings").open()}},{key:"handleLanguagechange",value:function(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleLanguagechange",this).call(this)}}]),t}(Ar);Vi.registerComponent("CaptionSettingsMenuItem",Br);var zr=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));return r.setIcon("captions"),r}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-captions-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-captions-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Br(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createItems",this).call(this,e)}}]),t}(Lr);zr.prototype.kind_="captions",zr.prototype.controlText_="Captions",Vi.registerComponent("CaptionsButton",zr);var Fr=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"createEl",value:function(e,i,n){var r=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):a.appendChild(S("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(S("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r}}]),t}(Ar);Vi.registerComponent("SubsCapsMenuItem",Fr);var qr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.label_="subtitles",n.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1&&(n.label_="captions",n.setIcon("captions")),n.menuButton_.controlText(zi(n.label_)),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-subs-caps-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-subs-caps-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Br(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createItems",this).call(this,e,Fr)}}]),t}(Lr);qr.prototype.kinds_=["captions","subtitles"],qr.prototype.controlText_="Subtitles",Vi.registerComponent("SubsCapsButton",qr);var Vr=function(e){function t(e,i){o(this,t);var n=i.track,r=e.audioTracks();i.label=n.label||n.language||"Unknown",i.selected=n.enabled;var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));s.track=n,s.addClass("vjs-"+n.kind+"-menu-item");var l=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s.handleTracksChange.apply(s,t)};return r.addEventListener("change",l),s.on("dispose",function(){r.removeEventListener("change",l)}),s}return s(t,e),vt(t,[{key:"createEl",value:function(e,i,n){var r=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n),a=r.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(a.appendChild(S("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(S("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}},{key:"handleClick",value:function(e){if(ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var i=this.player_.audioTracks(),n=0;n<i.length;n++){var r=i[n];r!==this.track&&(r.enabled=r===this.track)}}},{key:"handleTracksChange",value:function(e){this.selected(this.track.enabled)}}]),t}(Ir);Vi.registerComponent("AudioTrackMenuItem",Vr);var Hr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),i.tracks=e.audioTracks();var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.setIcon("audio"),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-audio-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-audio-button "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new Vr(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e}}]),t}(Pr);Hr.prototype.controlText_="Audio Track",Vi.registerComponent("AudioTrackButton",Hr);var Gr=function(e){function t(e,i){o(this,t);var n=i.rate,r=parseFloat(n,10);i.label=n,i.selected=r===e.playbackRate(),i.selectable=!0,i.multiSelectable=!1;var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return s.label=n,s.rate=r,s.on(e,"ratechange",function(e){return s.update(e)}),s}return s(t,e),vt(t,[{key:"handleClick",value:function(e){ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this),this.player().playbackRate(this.rate)}},{key:"update",value:function(e){this.selected(this.player().playbackRate()===this.rate)}}]),t}(Ir);Gr.prototype.contentElType="button",Vi.registerComponent("PlaybackRateMenuItem",Gr);var Wr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.menuButton_.el_.setAttribute("aria-describedby",n.labelElId_),n.updateVisibility(),n.updateLabel(),n.on(e,"loadstart",function(e){return n.updateVisibility(e)}),n.on(e,"ratechange",function(e){return n.updateLabel(e)}),n.on(e,"playbackrateschange",function(e){return n.handlePlaybackRateschange(e)}),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=S("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}},{key:"dispose",value:function(){this.labelEl_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"buildCSSClass",value:function(){return"vjs-playback-rate "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-playback-rate "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){for(var e=this.playbackRates(),t=[],i=e.length-1;i>=0;i--)t.push(new Gr(this.player(),{rate:e[i]+"x"}));return t}},{key:"handlePlaybackRateschange",value:function(e){this.update()}},{key:"playbackRates",value:function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]}},{key:"playbackRateSupported",value:function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}},{key:"updateVisibility",value:function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}},{key:"updateLabel",value:function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}]),t}(Or);Wr.prototype.controlText_="Playback Rate",Vi.registerComponent("PlaybackRateMenuButton",Wr);var Xr=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-spacer "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.className||(i.className=this.buildCSSClass()),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n)}}]),t}(Vi);Vi.registerComponent("Spacer",Xr);var Yr=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-custom-control-spacer "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:this.buildCSSClass(),textContent:" "})}}]),t}(Xr);Vi.registerComponent("CustomControlSpacer",Yr);var $r=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-control-bar",dir:"ltr"})}}]),t}(Vi);$r.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Vi.registerComponent("ControlBar",$r);var Kr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,"error",function(e){n.open(e)}),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-error-display "+ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"content",value:function(){var e=this.player().error();return e?this.localize(e.message):""}}]),t}(Qi);Kr.prototype.options_=Object.assign({},Qi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Vi.registerComponent("ErrorDisplay",Kr);var Jr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.el_.setAttribute("aria-labelledby",n.selectLabelledbyIds),n}return s(t,e),vt(t,[{key:"createEl",value:function(){var e=this;return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),S("select",{id:this.options_.id},{},this.options_.SelectOptions.map(function(t){var i=(e.options_.labelId?e.options_.labelId:"vjs-track-option-"+K())+"-"+t[1].replace(/\W+/g,""),n=S("option",{id:i,value:e.localize(t[0]),textContent:e.localize(t[1])});return n.setAttribute("aria-labelledby",e.selectLabelledbyIds+" "+i),n}))}}]),t}(Vi);Vi.registerComponent("TextTrackSelect",Jr);var Qr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=S("legend",{textContent:n.localize(n.options_.legendText),id:n.options_.legendId});n.el().appendChild(r);var s=n.options_.selects,l=!0,u=!1,d=void 0;try{for(var c,p=s[Symbol.iterator]();!(l=(c=p.next()).done);l=!0){var h=c.value,f=n.options_.selectConfigs[h],v=f.className,m=f.id.replace("%s",n.options_.id_),g=null,y="vjs_select_"+K();if("colors"===n.options_.type){g=S("span",{className:v});var b=S("label",{id:m,className:"vjs-label",textContent:n.localize(f.label)});b.setAttribute("for",y),g.appendChild(b)}var _=new Jr(e,{SelectOptions:f.options,legendId:n.options_.legendId,id:y,labelId:m});n.addChild(_),"colors"===n.options_.type&&(g.appendChild(_.el()),n.el().appendChild(g))}}catch(e){u=!0,d=e}finally{try{!l&&p.return&&p.return()}finally{if(u)throw d}}return n}return s(t,e),vt(t,[{key:"createEl",value:function(){return S("fieldset",{className:this.options_.className})}}]),t}(Vi);Vi.registerComponent("TextTrackFieldset",Qr);var Zr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=n.options_.textTrackComponentid,s=new Qr(e,{id_:r,legendId:"captions-text-legend-"+r,legendText:n.localize("Text"),className:"vjs-fg vjs-track-setting",selects:n.options_.fieldSets[0],selectConfigs:n.options_.selectConfigs,type:"colors"});n.addChild(s);var l=new Qr(e,{id_:r,legendId:"captions-background-"+r,legendText:n.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:n.options_.fieldSets[1],selectConfigs:n.options_.selectConfigs,type:"colors"});n.addChild(l);var u=new Qr(e,{id_:r,legendId:"captions-window-"+r,legendText:n.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:n.options_.fieldSets[2],selectConfigs:n.options_.selectConfigs,type:"colors"});return n.addChild(u),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return S("div",{className:"vjs-track-settings-colors"})}}]),t}(Vi);Vi.registerComponent("TextTrackSettingsColors",Zr);var ea=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=n.options_.textTrackComponentid,s=new Qr(e,{id_:r,legendId:"captions-font-size-"+r,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:n.options_.fieldSets[0],selectConfigs:n.options_.selectConfigs,type:"font"});n.addChild(s);var l=new Qr(e,{id_:r,legendId:"captions-edge-style-"+r,legendText:n.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:n.options_.fieldSets[1],selectConfigs:n.options_.selectConfigs,type:"font"});n.addChild(l);var u=new Qr(e,{id_:r,legendId:"captions-font-family-"+r,legendText:n.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:n.options_.fieldSets[2],selectConfigs:n.options_.selectConfigs,type:"font"});return n.addChild(u),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return S("div",{className:"vjs-track-settings-font"})}}]),t}(Vi);Vi.registerComponent("TextTrackSettingsFont",ea);var ta=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=n.localize("restore all settings to the default values"),s=new $n(e,{controlText:r,className:"vjs-default-button"});s.el().classList.remove("vjs-control","vjs-button"),s.el().textContent=n.localize("Reset"),n.addChild(s);var l=new $n(e,{controlText:r,className:"vjs-done-button"});return l.el().classList.remove("vjs-control","vjs-button"),l.el().textContent=n.localize("Done"),n.addChild(l),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return S("div",{className:"vjs-track-settings-controls"})}}]),t}(Vi);Vi.registerComponent("TrackSettingsControls",ta);var ia=["#000","Black"],na=["#00F","Blue"],ra=["#0FF","Cyan"],aa=["#0F0","Green"],sa=["#F0F","Magenta"],oa=["#F00","Red"],la=["#FFF","White"],ua=["#FF0","Yellow"],da=["1","Opaque"],ca=["0.5","Semi-Transparent"],pa=["0","Transparent"],ha={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ia,la,oa,aa,na,ua,sa,ra],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[da,ca,pa],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[la,ia,oa,aa,na,ua,sa,ra],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",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:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[da,ca],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[pa,ca,da],className:"vjs-window-opacity vjs-opacity"}};ha.windowColor.options=ha.backgroundColor.options;var fa=function(e){function t(e,i){o(this,t),i.temporary=!1;var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.updateDisplay=n.updateDisplay.bind(n),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.renderModalComponents(e),n.endDialog=S("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.bindFunctionsToSelectsAndButtons(),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}return s(t,e),vt(t,[{key:"renderModalComponents",value:function(e){var t=new Zr(e,{textTrackComponentid:this.id_,selectConfigs:ha,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);var i=new ea(e,{textTrackComponentid:this.id_,selectConfigs:ha,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);var n=new ta(e);this.addChild(n)}},{key:"bindFunctionsToSelectsAndButtons",value:function(){var e=this;this.on(this.$(".vjs-done-button"),["click","tap"],function(){e.saveSettings(),e.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],function(){e.setDefaults(),e.updateDisplay()}),d(ha,function(t){e.on(e.$(t.selector),"change",e.updateDisplay)})}},{key:"dispose",value:function(){this.endDialog=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"label",value:function(){return this.localize("Caption Settings Dialog")}},{key:"description",value:function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}},{key:"buildCSSClass",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)+" vjs-text-track-settings"}},{key:"getValues",value:function(){var e=this;return c(ha,function(t,i,n){var r=Ne(e.$(i.selector),i.parser);return void 0!==r&&(t[n]=r),t},{})}},{key:"setValues",value:function(e){var t=this;d(ha,function(i,n){Re(t.$(i.selector),e[n],i.parser)})}},{key:"setDefaults",value:function(){var e=this;d(ha,function(t){var i=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=i})}},{key:"restoreSettings",value:function(){var e=void 0;try{e=JSON.parse(Xe.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){It.warn(e)}e&&this.setValues(e)}},{key:"saveSettings",value:function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?Xe.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):Xe.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){It.warn(e)}}}},{key:"updateDisplay",value:function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}},{key:"handleLanguagechange",value:function(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}]),t}(Qi);Vi.registerComponent("TextTrackSettings",fa);var va=function(e){function t(e,i){o(this,t);var n=i.ResizeObserver||Xe.a.ResizeObserver;null===i.ResizeObserver&&(n=!1);var r=f({createEl:!n,reportTouchActivity:!1},i),s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return s.ResizeObserver=i.ResizeObserver||Xe.a.ResizeObserver,s.loadListener_=null,s.resizeObserver_=null,s.debouncedHandler_=ki(function(){s.resizeHandler()},100,!1,s),n?(s.resizeObserver_=new s.ResizeObserver(s.debouncedHandler_),s.resizeObserver_.observe(e.el())):(s.loadListener_=function(){if(s.el_&&s.el_.contentWindow){var e=s.debouncedHandler_,t=s.unloadListener_=function(){te(this,"resize",e),te(this,"unload",t),t=null};ee(s.el_.contentWindow,"unload",t),ee(s.el_.contentWindow,"resize",e)}},s.one("load",s.loadListener_)),s}return s(t,e),vt(t,[{key:"createEl",value:function(){return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}},{key:"resizeHandler",value:function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}},{key:"dispose",value:function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Vi);Vi.registerComponent("ResizeManager",va);var ma={trackingThreshold:20,liveTolerance:15},ga=function(e){function t(e,i){o(this,t);var n=f(ma,i,{createEl:!1}),r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(e){return r.handlePlay(e)},r.handleFirstTimeupdate_=function(e){return r.handleFirstTimeupdate(e)},r.handleSeeked_=function(e){return r.handleSeeked(e)},r.seekToLiveEdge_=function(e){return r.seekToLiveEdge(e)},r.reset_(),r.on(r.player_,"durationchange",function(e){return r.handleDurationchange(e)}),r.on(r.player_,"canplay",function(){return r.toggleTracking()}),r}return s(t,e),vt(t,[{key:"trackLive_",value:function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(Xe.a.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;var n=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-r)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}}},{key:"handleDurationchange",value:function(){this.toggleTracking()}},{key:"toggleTracking",value:function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}},{key:"startTracking",value:function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,wi),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}},{key:"handleFirstTimeupdate",value:function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}},{key:"handleSeeked",value:function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}},{key:"handlePlay",value:function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}},{key:"reset_",value:function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}},{key:"nextSeekedFromUser",value:function(){this.nextSeekedFromUser_=!0}},{key:"stopTracking",value:function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}},{key:"seekableEnd",value:function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}},{key:"seekableStart",value:function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}},{key:"liveWindow",value:function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}},{key:"isLive",value:function(){return this.isTracking()}},{key:"atLiveEdge",value:function(){return!this.behindLiveEdge()}},{key:"liveCurrentTime",value:function(){return this.pastSeekEnd()+this.seekableEnd()}},{key:"pastSeekEnd",value:function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}},{key:"behindLiveEdge",value:function(){return this.behindLiveEdge_}},{key:"isTracking",value:function(){return"number"==typeof this.trackingInterval_}},{key:"seekToLiveEdge",value:function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}},{key:"dispose",value:function(){this.stopTracking(),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Vi);Vi.registerComponent("LiveTracker",ga);var ya=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on("statechanged",function(e){return n.updateDom_()}),n.updateDom_(),n}return s(t,e),vt(t,[{key:"createEl",value:function(){return this.els={title:S("div",{className:"vjs-title-bar-title",id:"vjs-title-bar-title-"+K()}),description:S("div",{className:"vjs-title-bar-description",id:"vjs-title-bar-description-"+K()})},S("div",{className:"vjs-title-bar"},{},v(this.els))}},{key:"updateDom_",value:function(){var e=this,t=this.player_.tech_,i=t&&t.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(function(t){var r=e.state[t],a=e.els[t],s=n[t];F(a),r&&k(a,r),i&&(i.removeAttribute(s),r&&i.setAttribute(s,a.id))}),this.state.title||this.state.description?this.show():this.hide()}},{key:"update",value:function(e){this.setState(e)}},{key:"dispose",value:function(){var e=this.player_.tech_,i=e&&e.el_;i&&(i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-describedby")),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this),this.els=null}}]),t}(Vi);Vi.registerComponent("TitleBar",ya);var ba={initialDisplay:4e3,position:[],takeFocus:!1},_a=function(e){function t(e,i){o(this,t),i=f(ba,i);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.controlText(i.controlText),n.hide(),n.on(n.player_,["useractive","userinactive"],function(e){n.removeClass("force-display")}),n}return s(t,e),vt(t,[{key:"buildCSSClass",value:function(){return"vjs-transient-button focus-visible "+this.options_.position.map(function(e){return"vjs-"+e}).join(" ")}},{key:"createEl",value:function(){var e=S("button",{},{type:"button",class:this.buildCSSClass()},S("span"));return this.controlTextEl_=e.querySelector("span"),e}},{key:"show",value:function(){var e=this;ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(function(){e.removeClass("force-display")},this.options_.initialDisplay)}},{key:"hide",value:function(){this.removeClass("force-display"),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"hide",this).call(this)}},{key:"dispose",value:function(){this.player_.clearTimeout(this.forceDisplayTimeout),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}($n);Vi.registerComponent("TransientButton",_a);var wa=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a<i.length;a++){var s=i[a].src;s&&-1===n.indexOf(s)&&n.push(s)}return!!n.length&&(1===n.length&&(r=n[0]),e.triggerSourceset(r),!0)},Ta=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=$e.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=$e.a.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",Xe.a.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Sa=function(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i},ka=function(e){return Sa([e.el(),Xe.a.HTMLMediaElement.prototype,Xe.a.Element.prototype,Ta],"innerHTML")},xa=function(e){var t=e.el();if(!t.resetSourceWatch_){var i={},n=ka(e),r=function(i){return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=i.apply(t,r);return wa(e),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",f(n,{set:r(n.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(i).forEach(function(e){t[e]=i[e]}),Object.defineProperty(t,"innerHTML",n)},e.one("sourceset",t.resetSourceWatch_)}},Ea=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?vn(Xe.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return Xe.a.Element.prototype.setAttribute.call(this,"src",e),e}}),Ca=function(e){return Sa([e.el(),Xe.a.HTMLMediaElement.prototype,Ea],"src")},ja=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var i=Ca(e),n=t.setAttribute,r=t.load;Object.defineProperty(t,"src",f(i,{set:function(n){var r=i.set.call(t,n);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(i,r){var a=n.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),a},t.load=function(){var i=r.call(t);return wa(e)||(e.triggerSourceset(""),xa(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):wa(e)||xa(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=n,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Oa=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=e.source,s=!1;if(n.featuresVideoFrameCallback=n.featuresVideoFrameCallback&&"VIDEO"===n.el_.tagName,r&&(n.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?n.setSource(r):n.handleLateInit_(n.el_),e.enableSourceset&&n.setupSourcesetHandling_(),n.isScrubbing_=!1,n.el_.hasChildNodes()){for(var l=n.el_.childNodes,u=l.length,d=[];u--;){var c=l[u];"track"===c.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(c),n.remoteTextTracks().addTrack(c.track),n.textTracks().addTrack(c.track),s||n.el_.hasAttribute("crossorigin")||!gn(c.src)||(s=!0)):d.push(c))}for(var p=0;p<d.length;p++)n.el_.removeChild(d[p])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&s&&It.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),n.restoreMetadataTracksInIOSNativePlayer_(),(ti||Jt)&&!0===e.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}return s(t,e),vt(t,[{key:"dispose",value:function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"setupSourcesetHandling_",value:function(){ja(this)}},{key:"restoreMetadataTracksInIOSNativePlayer_",value:function(){var e=this.textTracks(),t=void 0,i=function(){t=[];for(var i=0;i<e.length;i++){var n=e[i];"metadata"===n.kind&&t.push({track:n,storedMode:n.mode})}};i(),e.addEventListener("change",i),this.on("dispose",function(){return e.removeEventListener("change",i)});var n=function i(){for(var n=0;n<t.length;n++){var r=t[n];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",i),e.removeEventListener("change",n),e.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",n)})}},{key:"overrideNative_",value:function(e,t){var i=this;if(t===this["featuresNative"+e+"Tracks"]){var n=e.toLowerCase();this[n+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach(function(e){i.el()[n+"Tracks"].removeEventListener(e,i[n+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}}},{key:"overrideNativeAudioTracks",value:function(e){this.overrideNative_("Audio",e)}},{key:"overrideNativeVideoTracks",value:function(e){this.overrideNative_("Video",e)}},{key:"proxyNativeTracksForType_",value:function(e){var t=this,i=xn[e],n=this.el()[i.getterName],r=this[i.getterName]();if(this["featuresNative"+i.capitalName+"Tracks"]&&n&&n.addEventListener){var a={change:function(i){var n={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(n),"text"===e&&t[En.remoteText.getterName]().trigger(n)},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 i=!1,a=0;a<n.length;a++)if(n[a]===r[t]){i=!0;break}i||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[i.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(e){var i=a[e];n.addEventListener(e,i),t.on("dispose",function(t){return n.removeEventListener(e,i)})}),this.on("loadstart",s),this.on("dispose",function(e){return t.off("loadstart",s)})}}},{key:"proxyNativeTracks_",value:function(){var e=this;xn.names.forEach(function(t){e.proxyNativeTracksForType_(t)})}},{key:"createEl",value:function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=$e.a.createElement("video");var n=this.options_.tag&&I(this.options_.tag),r=f({},n);ti&&!0===this.options_.nativeControlsForTouch||delete r.controls,P(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&D(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 o=a[s],l=this.options_[o];void 0!==l&&(l?D(e,o,o):L(e,o),e[o]=l)}return e}},{key:"handleLateInit_",value:function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),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)})}}},{key:"setScrubbing",value:function(e){this.isScrubbing_=e}},{key:"scrubbing",value:function(){return this.isScrubbing_}},{key:"setCurrentTime",value:function(e){try{this.isScrubbing_&&this.el_.fastSeek&&ai?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){It(e,"Video is not ready. (Video.js)")}}},{key:"duration",value:function(){var e=this;if(this.el_.duration===1/0&&Ut&&Vt&&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}},{key:"width",value:function(){return this.el_.offsetWidth}},{key:"height",value:function(){return this.el_.offsetHeight}},{key:"proxyWebkitFullscreen_",value:function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},i=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",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}}},{key:"supportsFullScreen",value:function(){return"function"==typeof this.el_.webkitEnterFullScreen}},{key:"enterFullScreen",value:function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ge(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}},{key:"exitFullScreen",value:function(){if(!this.el_.webkitDisplayingFullscreen)return void this.trigger("fullscreenerror",new Error("The video is not fullscreen"));this.el_.webkitExitFullScreen()}},{key:"requestPictureInPicture",value:function(){return this.el_.requestPictureInPicture()}},{key:"requestVideoFrameCallback",value:function(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"requestVideoFrameCallback",this).call(this,e)}},{key:"cancelVideoFrameCallback",value:function(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"cancelVideoFrameCallback",this).call(this,e)}},{key:"src",value:function(e){if(void 0===e)return this.el_.src;this.setSrc(e)}},{key:"addSourceElement",value:function(e,t){if(!e)return It.error("Invalid source URL."),!1;var i={src:e};t&&(i.type=t);var n=S("source",{},i);return this.el_.appendChild(n),!0}},{key:"removeSourceElement",value:function(e){if(!e)return It.error("Source URL is required to remove the source element."),!1;var t=this.el_.querySelectorAll("source"),i=!0,n=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var o=a.value;if(o.src===e)return this.el_.removeChild(o),!0}}catch(e){n=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}return It.warn("No matching source element found with src: "+e),!1}},{key:"reset",value:function(){t.resetMediaElement(this.el_)}},{key:"currentSrc",value:function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}},{key:"setControls",value:function(e){this.el_.controls=!!e}},{key:"addTextTrack",value:function(e,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,i,n):ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTextTrack",this).call(this,e,i,n)}},{key:"createRemoteTextTrack",value:function(e){if(!this.featuresNativeTextTracks)return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createRemoteTextTrack",this).call(this,e);var i=$e.a.createElement("track");return e.kind&&(i.kind=e.kind),e.label&&(i.label=e.label),(e.language||e.srclang)&&(i.srclang=e.language||e.srclang),e.default&&(i.default=e.default),e.id&&(i.id=e.id),e.src&&(i.src=e.src),i}},{key:"addRemoteTextTrack",value:function(e,i){var n=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addRemoteTextTrack",this).call(this,e,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}},{key:"removeRemoteTextTrack",value:function(e){if(ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeRemoteTextTrack",this).call(this,e),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)e!==i[n]&&e!==i[n].track||this.el().removeChild(i[n])}},{key:"getVideoPlaybackQuality",value:function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),Xe.a.performance&&(e.creationTime=Xe.a.performance.now()),e}}]),t}(jn);m(Oa,"TEST_VID",function(){if(b()){var e=$e.a.createElement("video"),t=$e.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Oa.isSupported=function(){try{Oa.TEST_VID.volume=.5}catch(e){return!1}return!(!Oa.TEST_VID||!Oa.TEST_VID.canPlayType)},Oa.canPlayType=function(e){return Oa.TEST_VID.canPlayType(e)},Oa.canPlaySource=function(e,t){return Oa.canPlayType(e.type)},Oa.canControlVolume=function(){try{var e=Oa.TEST_VID.volume;Oa.TEST_VID.volume=e/2+.1;var t=e!==Oa.TEST_VID.volume;return t&&ri?(Xe.a.setTimeout(function(){Oa&&Oa.prototype&&(Oa.prototype.featuresVolumeControl=e!==Oa.TEST_VID.volume)}),!1):t}catch(e){return!1}},Oa.canMuteVolume=function(){try{var e=Oa.TEST_VID.muted;return Oa.TEST_VID.muted=!e,Oa.TEST_VID.muted?D(Oa.TEST_VID,"muted","muted"):L(Oa.TEST_VID,"muted"),e!==Oa.TEST_VID.muted}catch(e){return!1}},Oa.canControlPlaybackRate=function(){if(Ut&&Vt&&Gt<58)return!1;try{var e=Oa.TEST_VID.playbackRate;return Oa.TEST_VID.playbackRate=e/2+.1,e!==Oa.TEST_VID.playbackRate}catch(e){return!1}},Oa.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty($e.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty($e.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty($e.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty($e.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Oa.supportsNativeTextTracks=function(){return ai||ri&&Vt},Oa.supportsNativeVideoTracks=function(){return!(!Oa.TEST_VID||!Oa.TEST_VID.videoTracks)},Oa.supportsNativeAudioTracks=function(){return!(!Oa.TEST_VID||!Oa.TEST_VID.audioTracks)},Oa.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=ft(e,2),i=t[0],n=t[1];m(Oa.prototype,i,function(){return Oa[n]()},!0)}),Oa.prototype.featuresVolumeControl=Oa.canControlVolume(),Oa.prototype.movingMediaElementInDOM=!ri,Oa.prototype.featuresFullscreenResize=!0,Oa.prototype.featuresProgressEvents=!0,Oa.prototype.featuresTimeupdateEvents=!0,Oa.prototype.featuresVideoFrameCallback=!(!Oa.TEST_VID||!Oa.TEST_VID.requestVideoFrameCallback),Oa.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Oa.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Oa.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Oa.prototype["set"+zi(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){Oa.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Oa.prototype["set"+zi(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Oa.prototype[e]=function(){return this.el_[e]()}}),jn.withSourceHandlers(Oa),Oa.nativeSourceHandler={},Oa.nativeSourceHandler.canPlayType=function(e){try{return Oa.TEST_VID.canPlayType(e)}catch(e){return""}},Oa.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Oa.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=mn(e.src);return Oa.nativeSourceHandler.canPlayType("video/"+i)}return""},Oa.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Oa.nativeSourceHandler.dispose=function(){},Oa.registerSourceHandler(Oa.nativeSourceHandler),jn.registerTech("Html5",Oa);var Pa=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ia={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Aa=["tiny","xsmall","small","medium","large","xlarge","huge"],Da={};Aa.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Da[e]="vjs-layout-"+t});var La={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Ma=function(e){function t(e,i,n){if(o(this,t),e.id=e.id||i.id||"vjs_video_"+K(),i=Object.assign(t.getTagSettings(e),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language){var r=e.closest("[lang]");r&&(i.language=r.getAttribute("lang"))}var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,i,n));if(s.boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)},s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)},s.boundUpdateStyleEl_=function(e){return s.updateStyleEl_(e)},s.boundApplyInitTime_=function(e){return s.applyInitTime_(e)},s.boundUpdateCurrentBreakpoint_=function(e){return s.updateCurrentBreakpoint_(e)},s.boundHandleTechClick_=function(e){return s.handleTechClick_(e)},s.boundHandleTechDoubleClick_=function(e){return s.handleTechDoubleClick_(e)},s.boundHandleTechTouchStart_=function(e){return s.handleTechTouchStart_(e)},s.boundHandleTechTouchMove_=function(e){return s.handleTechTouchMove_(e)},s.boundHandleTechTouchEnd_=function(e){return s.handleTechTouchEnd_(e)},s.boundHandleTechTap_=function(e){return s.handleTechTap_(e)},s.boundUpdatePlayerHeightOnAudioOnlyMode_=function(e){return s.updatePlayerHeightOnAudioOnlyMode_(e)},s.isFullscreen_=!1,s.log=At(s.id_),s.fsApi_=St,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,s.audioOnlyMode_=!1,s.audioPosterMode_=!1,s.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!s.options_||!s.options_.techOrder||!s.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(s.tag=e,s.tagAttributes=e&&I(e),s.language(s.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach(function(e){l[e.toLowerCase()]=i.languages[e]}),s.languages_=l}else s.languages_=t.prototype.options_.languages;s.resetCache_(),s.poster_=i.poster||"",s.controls_=!!i.controls,e.controls=!1,e.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],e.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach(function(e){if("function"!=typeof s[e])throw new Error('plugin "'+e+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),ae(s,{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(ee($e.a,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var u=f(s.options_);if(i.plugins&&Object.keys(i.plugins).forEach(function(e){s[e](i.plugins[e])}),i.debug&&s.debug(!0),s.options_.playerOptions=u,s.middleware_=[],s.playbackRates(i.playbackRates),i.experimentalSvgIcons){var d=new Xe.a.DOMParser,c=d.parseFromString(Bn,"image/svg+xml");if(c.querySelector("parsererror"))It.warn("Failed to load SVG Icons. Falling back to Font Icons."),s.options_.experimentalSvgIcons=null;else{var p=c.documentElement;p.style.display="none",s.el_.appendChild(p),s.addClass("vjs-svg-icons-enabled")}}s.initChildren(),s.isAudio("audio"===e.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),i.spatialNavigation&&i.spatialNavigation.enabled&&(s.spatialNavigation=new qn(s),s.addClass("vjs-spatial-navigation-enabled")),ti&&s.addClass("vjs-touch-enabled"),ri||s.addClass("vjs-workinghover"),t.players[s.id_]=s;var h=gt.split(".")[0];return s.addClass("vjs-v"+h),s.userActive(!0),s.reportUserActivity(),s.one("play",function(e){return s.listenForUserActivity_(e)}),s.on("keydown",function(e){return s.handleKeyDown(e)}),s.on("languagechange",function(e){return s.handleLanguagechange(e)}),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.on("ready",function(){s.audioPosterMode(s.options_.audioPosterMode),s.audioOnlyMode(s.options_.audioOnlyMode)}),s}return s(t,e),vt(t,[{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.off("dispose"),te($e.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),te($e.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),Ce(this),Cn.names.forEach(function(t){var i=Cn[t],n=e[i.getterName]();n&&n.off&&n.off()}),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this,{restoreEl:this.options_.restoreEl})}},{key:"createEl",value:function(){var e=this.tag,i=void 0,n=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?i=this.el_=e.parentNode:r||(i=this.el_=ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div"));var a=I(e);if(r){for(i=this.el_=e,e=this.tag=$e.a.createElement("video");i.children.length;)e.appendChild(i.firstChild);E(i,"video-js")||C(i,"video-js"),i.appendChild(e),n=this.playerElIngest_=i,Object.keys(i).forEach(function(t){try{e[t]=i[t]}catch(e){}})}e.setAttribute("tabindex","-1"),a.tabindex="-1",Vt&&$t&&(e.setAttribute("role","application"),a.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(t){r&&"class"===t||i.setAttribute(t,a[t]),r&&e.setAttribute(t,a[t])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=i.player=this,this.addClass("vjs-paused");var s=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(function(e){return si[e]}).map(function(e){return"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-")});if(this.addClass.apply(this,l(s)),!0!==Xe.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=hi("vjs-styles-dimensions");var o=oi(".vjs-styles-defaults"),u=oi("head");u.insertBefore(this.styleEl_,o?o.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 d=e.getElementsByTagName("a"),c=0;c<d.length;c++){var p=d.item(c);C(p,"vjs-hidden"),p.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!n&&e.parentNode.insertBefore(i,e),x(e,i),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=i,i}},{key:"crossOrigin",value:function(e){return void 0===e?this.techGet_("crossOrigin"):null!==e&&"anonymous"!==e&&"use-credentials"!==e?void It.warn('crossOrigin must be null, "anonymous" or "use-credentials", given "'+e+'"'):(this.techCall_("setCrossOrigin",e),void(this.posterImage&&this.posterImage.crossOrigin(e)))}},{key:"width",value:function(e){return this.dimension("width",e)}},{key:"height",value:function(e){return this.dimension("height",e)}},{key:"dimension",value:function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);if(isNaN(n))return void It.error('Improper value "'+t+'" supplied for for '+e);this[i]=n,this.updateStyleEl_()}},{key:"fluid",value:function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Oi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),Pi(this,function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}},{key:"fill",value:function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}},{key:"aspectRatio",value:function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw 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_()}},{key:"updateStyleEl_",value:function(){if(!0===Xe.a.VIDEOJS_NO_DYNAMIC_STYLE){var e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(e>=0&&(i.width=e),t>=0&&(i.height=t)))}var n=void 0,r=void 0,a=void 0,s=void 0;a=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var o=a.split(":"),l=o[1]/o[0];n=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/l:this.videoWidth()||300,r=void 0!==this.height_?this.height_:n*l,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),fi(this.styleEl_,"\n ."+s+" {\n width: "+n+"px;\n height: "+r+"px;\n }\n\n ."+s+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*l+"%;\n }\n ")}},{key:"loadTech_",value:function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=zi(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(jn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,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};Cn.names.forEach(function(e){var t=Cn[e];s[t.getterName]=i[t.privateName]}),Object.assign(s,this.options_[n]),Object.assign(s,this.options_[r]),Object.assign(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=jn.getTech(e);if(!o)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(Ti(this,this.handleTechReady_),!0),Ki.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Pa.forEach(function(e){i.on(i.tech_,e,function(t){return i["handleTech"+zi(e)+"_"](t)})}),Object.keys(Ia).forEach(function(e){i.on(i.tech_,e,function(t){if(0===i.tech_.playbackRate()&&i.tech_.seeking())return void i.queuedCallbacks_.push({callback:i["handleTech"+Ia[e]+"_"].bind(i),event:t});i["handleTech"+Ia[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.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"===n&&this.tag||x(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}},{key:"unloadTech_",value:function(){var e=this;Cn.names.forEach(function(t){var i=Cn[t];e[i.privateName]=e[i.getterName]()}),this.textTracksJson_=Ki.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}},{key:"tech",value:function(e){return void 0===e&&It.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_}},{key:"version",value:function(){return{"video.js":gt}}},{key:"addTechControlsListeners_",value:function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}},{key:"removeTechControlsListeners_",value:function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}},{key:"handleTechReady_",value:function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}},{key:"handleTechLoadStart_",value:function(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}},{key:"manualAutoplay_",value:function(e){var t=this;if(this.tech_&&"string"==typeof e){var i=function(){var e=t.muted();t.muted(!0);var i=function(){t.muted(e)};t.playTerminatedQueue_.push(i);var n=t.play();if(me(n))return n.catch(function(e){throw i(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})},n=void 0;if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():(n=this.play(),me(n)&&(n=n.catch(i))),me(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}}},{key:"updateSourceCaches_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=Rn(this,t)),this.cache_.source=f({},e,{src:t,type:i});for(var n=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=I(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}},{key:"handleTechSourceset_",value:function(e){var t=this;if(!this.changingSrc_){var i=function(e){return t.updateSourceCaches_(e)},n=this.currentSource().src,r=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==n)&&(i=function(){}),i(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var i=t.techGet_("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}},{key:"hasStarted",value:function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}},{key:"handleTechPlay_",value:function(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}},{key:"handleTechRateChange_",value:function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}},{key:"handleTechWaiting_",value:function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),i=function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))};this.on("timeupdate",i)}},{key:"handleTechCanPlay_",value:function(){this.removeClass("vjs-waiting"),this.trigger("canplay")}},{key:"handleTechCanPlayThrough_",value:function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}},{key:"handleTechPlaying_",value:function(){this.removeClass("vjs-waiting"),this.trigger("playing")}},{key:"handleTechSeeking_",value:function(){this.addClass("vjs-seeking"),this.trigger("seeking")}},{key:"handleTechSeeked_",value:function(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}},{key:"handleTechPause_",value:function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}},{key:"handleTechEnded_",value:function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}},{key:"handleTechDurationChange_",value:function(){this.duration(this.techGet_("duration"))}},{key:"handleTechClick_",value:function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?ge(this.play()):this.pause()))}},{key:"handleTechDoubleClick_",value:function(e){if(this.controls_){Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!$e.a.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}}},{key:"handleTechTap_",value:function(){this.userActive(!this.userActive())}},{key:"handleTechTouchStart_",value:function(){this.userWasActive=this.userActive()}},{key:"handleTechTouchMove_",value:function(){this.userWasActive&&this.reportUserActivity()}},{key:"handleTechTouchEnd_",value:function(e){e.cancelable&&e.preventDefault()}},{key:"toggleFullscreenClass_",value:function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}},{key:"documentFullscreenChange_",value:function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=$e.a[this.fsApi_.fullscreenElement]===i;!n&&i.matches&&(n=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}}},{key:"handleTechFullscreenChange_",value:function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){i.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}},{key:"handleTechFullscreenError_",value:function(e,t){this.trigger("fullscreenerror",t)}},{key:"togglePictureInPictureClass_",value:function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}},{key:"handleTechEnterPictureInPicture_",value:function(e){this.isInPictureInPicture(!0)}},{key:"handleTechLeavePictureInPicture_",value:function(e){this.isInPictureInPicture(!1)}},{key:"handleTechError_",value:function(){var e=this.tech_.error();e&&this.error(e)}},{key:"handleTechTextData_",value:function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}},{key:"getCache",value:function(){return this.cache_}},{key:"resetCache_",value:function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}},{key:"techCall_",value:function(e,t){this.ready(function(){if(e in Dn)return Se(this.middleware_,this.tech_,e,t);if(e in Ln)return ke(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw It(e),e}},!0)}},{key:"techGet_",value:function(e){if(this.tech_&&this.tech_.isReady_){if(e in An)return Te(this.middleware_,this.tech_,e);if(e in Ln)return ke(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw It("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw It("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw It(t),t}}}},{key:"play",value:function(){var e=this;return new Promise(function(t){e.play_(t)})}},{key:"play_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge;this.playCallbacks_.push(t);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),n=Boolean(ai||ri);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!i&&n&&this.load());var r=this.techGet_("play");n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}},{key:"runPlayTerminatedQueue_",value:function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}},{key:"runPlayCallbacks_",value:function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}},{key:"pause",value:function(){this.techCall_("pause")}},{key:"paused",value:function(){return!1!==this.techGet_("paused")}},{key:"played",value:function(){return this.techGet_("played")||de(0,0)}},{key:"scrubbing",value:function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}},{key:"currentTime",value:function(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}},{key:"applyInitTime_",value:function(){this.currentTime(this.cache_.initTime)}},{key:"duration",value:function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}},{key:"remainingTime",value:function(){return this.duration()-this.currentTime()}},{key:"remainingTimeDisplay",value:function(){return Math.floor(this.duration())-Math.floor(this.currentTime())}},{key:"buffered",value:function(){var e=this.techGet_("buffered");return e&&e.length||(e=de(0,0)),e}},{key:"seekable",value:function(){var e=this.techGet_("seekable");return e&&e.length||(e=de(0,0)),e}},{key:"seeking",value:function(){return this.techGet_("seeking")}},{key:"ended",value:function(){return this.techGet_("ended")}},{key:"networkState",value:function(){return this.techGet_("networkState")}},{key:"readyState",value:function(){return this.techGet_("readyState")}},{key:"bufferedPercent",value:function(){return fe(this.buffered(),this.duration())}},{key:"bufferedEnd",value:function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i}},{key:"volume",value:function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}},{key:"muted",value:function(e){return void 0!==e?void this.techCall_("setMuted",e):this.techGet_("muted")||!1}},{key:"defaultMuted",value:function(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}},{key:"lastVolume_",value:function(e){return void 0!==e&&0!==e?void(this.cache_.lastVolume=e):this.cache_.lastVolume}},{key:"supportsFullScreen",value:function(){return this.techGet_("supportsFullScreen")||!1}},{key:"isFullscreen",value:function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}},{key:"requestFullscreen",value:function(e){this.isInPictureInPicture()&&this.exitPictureInPicture();var t=this;return new Promise(function(i,n){function r(){t.off("fullscreenerror",s),t.off("fullscreenchange",a)}function a(){r(),i()}function s(e,t){r(),n(t)}t.one("fullscreenchange",a),t.one("fullscreenerror",s);var o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(i,n))})}},{key:"requestFullscreenHelper_",value:function(e){var t=this,i=void 0;if(this.fsApi_.prefixed||(i=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(i=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](i);return n&&n.then(function(){return t.isFullscreen(!0)},function(){return t.isFullscreen(!1)}),n}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}},{key:"exitFullscreen",value:function(){var e=this;return new Promise(function(t,i){function n(){e.off("fullscreenerror",a),e.off("fullscreenchange",r)}function r(){n(),t()}function a(e,t){n(),i(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",a);var s=e.exitFullscreenHelper_();s&&(s.then(n,n),s.then(t,i))})}},{key:"exitFullscreenHelper_",value:function(){var e=this;if(this.fsApi_.requestFullscreen){var t=$e.a[this.fsApi_.exitFullscreen]();return t&&ge(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}},{key:"enterFullWindow",value:function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=$e.a.documentElement.style.overflow,ee($e.a,"keydown",this.boundFullWindowOnEscKey_),$e.a.documentElement.style.overflow="hidden",C($e.a.body,"vjs-full-window"),this.trigger("enterFullWindow")}},{key:"fullWindowOnEscKey",value:function(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}},{key:"exitFullWindow",value:function(){this.isFullscreen(!1),this.isFullWindow=!1,te($e.a,"keydown",this.boundFullWindowOnEscKey_),$e.a.documentElement.style.overflow=this.docOrigOverflow,j($e.a.body,"vjs-full-window"),this.trigger("exitFullWindow")}},{key:"disablePictureInPicture",value:function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}},{key:"isInPictureInPicture",value:function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}},{key:"requestPictureInPicture",value:function(){var e=this;if(this.options_.enableDocumentPictureInPicture&&Xe.a.documentPictureInPicture){var t=$e.a.createElement(this.el().tagName);return t.classList=this.el().classList,t.classList.add("vjs-pip-container"),this.posterImage&&t.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&t.appendChild(this.titleBar.el().cloneNode(!0)),t.appendChild(S("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),Xe.a.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(function(i){return X(i),e.el_.parentNode.insertBefore(t,e.el_),i.document.body.appendChild(e.el_),i.document.body.classList.add("vjs-pip-window"),e.player_.isInPictureInPicture(!0),e.player_.trigger({type:"enterpictureinpicture",pipWindow:i}),i.addEventListener("pagehide",function(i){var n=i.target.querySelector(".video-js");t.parentNode.replaceChild(n,t),e.player_.isInPictureInPicture(!1),e.player_.trigger("leavepictureinpicture")}),i})}return"pictureInPictureEnabled"in $e.a&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}},{key:"exitPictureInPicture",value:function(){return Xe.a.documentPictureInPicture&&Xe.a.documentPictureInPicture.window?(Xe.a.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in $e.a?$e.a.exitPictureInPicture():void 0}},{key:"handleKeyDown",value:function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;var i=["button","checkbox","hidden","radio","reset","submit"];return"input"===t?-1===i.indexOf(e.type):-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}}},{key:"handleHotkeys",value:function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=void 0===i?function(t){return"f"===e.key.toLowerCase()}:i,r=t.muteKey,a=void 0===r?function(t){return"m"===e.key.toLowerCase()}:r,s=t.playPauseKey,o=void 0===s?function(t){return"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}:s;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();var l=Vi.getComponent("FullscreenToggle");!1!==$e.a[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var u=Vi.getComponent("MuteToggle");u.prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation();var d=Vi.getComponent("PlayToggle");d.prototype.handleClick.call(this,e)}}},{key:"canPlayType",value:function(e){for(var t=void 0,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],a=jn.getTech(r);if(a||(a=Vi.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else It.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""}},{key:"selectSource",value:function(e){var t=this,i=this.options_.techOrder.map(function(e){return[e,jn.getTech(e)]}).filter(function(e){var t=ft(e,2),i=t[0],n=t[1];return n?n.isSupported():(It.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(e,t,i){var n=void 0;return e.some(function(e){return t.some(function(t){if(n=i(e,t))return!0})}),n},r=function(e,i){var n=ft(e,2),r=n[0];if(n[1].canPlaySource(i,t.options_[r.toLowerCase()]))return{source:i,tech:r}};return(this.options_.sourceOrder?n(e,i,function(e){return function(t,i){return e(i,t)}}(r)):n(i,e,r))||!1}},{key:"handleSrc_",value:function(e,t){var i=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var n=Un(e);if(!n.length)return void this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),_e(this,n[0],function(e,r){if(i.middleware_=r,t||(i.cache_.sources=n),i.updateSourceCaches_(e),i.src_(e))return n.length>1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void i.triggerReady());we(r,i.tech_)}),n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},a=function(){i.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",a)}}}},{key:"src",value:function(e){return this.handleSrc_(e,!1)}},{key:"src_",value:function(e){var t=this,i=this.selectSource([e]);return!i||(Fi(i.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_(i.tech,i.source),this.tech_.ready(function(){t.changingSrc_=!1}),!1))}},{key:"addSourceElement",value:function(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}},{key:"removeSourceElement",value:function(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}},{key:"load",value:function(){if(this.tech_&&this.tech_.vhs)return void this.src(this.currentSource());this.techCall_("load")}},{key:"reset",value:function(){var e=this;if(this.paused())this.doReset_();else{ge(this.play().then(function(){return e.doReset_()}))}}},{key:"doReset_",value:function(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Oi(this)&&this.trigger("playerreset")}},{key:"resetControlBarUI_",value:function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}},{key:"resetProgressBar_",value:function(){this.currentTime(0);var e=this.controlBar||{},t=e.currentTimeDisplay,i=e.durationDisplay,n=e.progressControl,r=e.remainingTimeDisplay,a=n||{},s=a.seekBar;t&&t.updateContent(),i&&i.updateContent(),r&&r.updateContent(),s&&(s.update(),s.loadProgressBar&&s.loadProgressBar.update())}},{key:"resetPlaybackRate_",value:function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}},{key:"resetVolumeBar_",value:function(){this.volume(1),this.trigger("volumechange")}},{key:"currentSources",value:function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}},{key:"currentSource",value:function(){return this.cache_.source||{}}},{key:"currentSrc",value:function(){return this.currentSource()&&this.currentSource().src||""}},{key:"currentType",value:function(){return this.currentSource()&&this.currentSource().type||""}},{key:"preload",value:function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}},{key:"autoplay",value:function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"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=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}},{key:"playsinline",value:function(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}},{key:"loop",value:function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}},{key:"poster",value:function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}},{key:"handleTechPosterChange_",value:function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}},{key:"controls",value:function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}},{key:"usingNativeControls",value:function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}},{key:"error",value:function(e){var t=this;if(void 0===e)return this.error_||null;if(bt("beforeerror").forEach(function(i){var n=i(t,e);if((!p(n)||Array.isArray(n))&&"string"!=typeof n&&"number"!=typeof n&&null!==n)return void t.log.error("please return a value that MediaError expects in beforeerror hooks");e=n}),this.options_.suppressNotSupportedError&&e&&4===e.code){var i=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),void this.one("loadstart",function(){this.off(["click","touchstart"],i)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new ve(e),this.addClass("vjs-error"),It.error("(CODE:"+this.error_.code+" "+ve.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),bt("error").forEach(function(e){return e(t,t.error_)})}},{key:"reportUserActivity",value:function(e){this.userActivity_=!0}},{key:"userActive",value:function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)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")}}},{key:"listenForUserActivity_",value:function(){var e=void 0,t=void 0,i=void 0,n=Ti(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,n())},a=function(){n(),this.clearInterval(e),e=this.setInterval(n,250)},s=function(t){n(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("mouseleave",s);var o=this.getChild("controlBar");!o||ri||Ut||(o.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),o.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",n),this.on("keyup",n);var l=void 0,u=function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);var e=this.options_.inactivityTimeout;e<=0||(l=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}};this.setInterval(u,250)}},{key:"playbackRate",value:function(e){return void 0!==e?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}},{key:"defaultPlaybackRate",value:function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}},{key:"isAudio",value:function(e){return void 0!==e?void(this.isAudio_=!!e):!!this.isAudio_}},{key:"updatePlayerHeightOnAudioOnlyMode_",value:function(){var e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}},{key:"enableAudioOnlyUI_",value:function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),i=this.getChild("ControlBar"),n=i&&i.currentHeight();t.forEach(function(t){t!==i&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=n,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(n),this.trigger("audioonlymodechange")}},{key:"disableAudioOnlyUI_",value:function(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}},{key:"audioOnlyMode",value:function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),Promise.all(i).then(function(){return t.enableAudioOnlyUI_()})}return Promise.resolve().then(function(){return t.disableAudioOnlyUI_()})}},{key:"enablePosterModeUI_",value:function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}},{key:"disablePosterModeUI_",value:function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}},{key:"audioPosterMode",value:function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){return this.audioOnlyMode(!1).then(function(){t.enablePosterModeUI_()})}return Promise.resolve().then(function(){t.enablePosterModeUI_()})}return Promise.resolve().then(function(){t.disablePosterModeUI_()})}},{key:"addTextTrack",value:function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}},{key:"addRemoteTextTrack",value:function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}},{key:"removeRemoteTextTrack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}},{key:"getVideoPlaybackQuality",value:function(){return this.techGet_("getVideoPlaybackQuality")}},{key:"videoWidth",value:function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}},{key:"videoHeight",value:function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}},{key:"language",value:function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Oi(this)&&this.trigger("languagechange"))}},{key:"languages",value:function(){return f(t.prototype.options_.languages,this.languages_)}},{key:"toJSON",value:function(){var e=f(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];n=f(n),n.player=void 0,e.tracks[i]=n}return e}},{key:"createModal",value:function(e,t){var i=this;t=t||{},t.content=e||"";var n=new Qi(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n}},{key:"updateCurrentBreakpoint_",value:function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<Aa.length;i++){var n=Aa[i],r=this.breakpoints_[n];if(t<=r){if(e===n)return;e&&this.removeClass(Da[e]),this.addClass(Da[n]),this.breakpoint_=n;break}}}},{key:"removeCurrentBreakpoint_",value:function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}},{key:"breakpoints",value:function(e){return void 0===e?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},La,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}},{key:"responsive",value:function(e){return void 0===e?this.responsive_:(e=Boolean(e),e!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0)}},{key:"currentBreakpoint",value:function(){return this.breakpoint_}},{key:"currentBreakpointClass",value:function(){return Da[this.breakpoint_]||""}},{key:"loadMedia",value:function(e,t){var i=this;if(e&&"object"===(void 0===e?"undefined":mt(e))){var n=this.crossOrigin();this.reset(),this.cache_.media=f(e);var r=this.cache_.media,a=r.artist,s=r.artwork,o=r.description,l=r.poster,u=r.src,d=r.textTracks,c=r.title;!s&&l&&(this.cache_.media.artwork=[{src:l,type:Nn(l)}]),n&&this.crossOrigin(n),u&&this.src(u),l&&this.poster(l),Array.isArray(d)&&d.forEach(function(e){return i.addRemoteTextTrack(e,!1)}),this.titleBar&&this.titleBar.update({title:c,description:o||a||""}),this.ready(t)}}},{key:"getMedia",value:function(){if(!this.cache_.media){var e=this.poster(),t=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}),n={src:t,textTracks:i};return e&&(n.poster=e,n.artwork=[{src:n.poster,type:Nn(n.poster)}]),n}return f(this.cache_.media)}},{key:"debug",value:function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}},{key:"playbackRates",value:function(e){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"))}}],[{key:"getTagSettings",value:function(e){var t={sources:[],tracks:[]},i=I(e),n=i["data-setup"];if(E(e,"vjs-fill")&&(i.fill=!0),E(e,"vjs-fluid")&&(i.fluid=!0),null!==n)try{Object.assign(i,JSON.parse(n||"{}"))}catch(e){It.error("data-setup",e)}if(Object.assign(t,i),e.hasChildNodes())for(var r=e.childNodes,a=0,s=r.length;a<s;a++){var o=r[a],l=o.nodeName.toLowerCase();"source"===l?t.sources.push(I(o)):"track"===l&&t.tracks.push(I(o))}return t}}]),t}(Vi);Cn.names.forEach(function(e){var t=Cn[e];Ma.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Ma.prototype.crossorigin=Ma.prototype.crossOrigin,Ma.players={};var Na=Xe.a.navigator;Ma.prototype.options_={techOrder:jn.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Na&&(Na.languages&&Na.languages[0]||Na.userLanguage||Na.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1},Pa.forEach(function(e){Ma.prototype["handleTech"+zi(e)+"_"]=function(){return this.trigger(e)}}),Vi.registerComponent("Player",Ma);var Ra={},Ua=function(e){return Ra.hasOwnProperty(e)},Ba=function(e){return Ua(e)?Ra[e]:void 0},za=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Fa=function(e,t,i){var n=(i?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},qa=function(e,t){var i=function(){Fa(this,{name:e,plugin:t,instance:null},!0);var i=t.apply(this,arguments);return za(this,e),Fa(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach(function(e){i[e]=t[e]}),i},Va=function(e,t){return t.prototype.name=e,function(){Fa(this,{name:e,plugin:t,instance:null},!0);for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(n))));return this[e]=function(){return a},Fa(this,a.getEventHash()),a}},Ha=function(){function e(t){if(o(this,e),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)),ae(this),delete this.trigger,se(this,this.constructor.defaultState),za(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}return vt(e,[{key:"version",value:function(){return this.constructor.VERSION}},{key:"getEventHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ie(this.eventBusEl_,e,this.getEventHash(t))}},{key:"handleStateChanged",value:function(e){}},{key:"dispose",value:function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Va(e,Ra[e])}}],[{key:"isBasic",value:function(t){var i="string"==typeof t?Ba(t):t;return"function"==typeof i&&!e.prototype.isPrototypeOf(i.prototype)}},{key:"registerPlugin",value:function(t,i){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":mt(t))+".");if(Ua(t))It.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Ma.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===i?"undefined":mt(i))+".");return Ra[t]=i,"plugin"!==t&&(e.isBasic(i)?Ma.prototype[t]=qa(t,i):Ma.prototype[t]=Va(t,i)),i}},{key:"deregisterPlugin",value:function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");Ua(e)&&(delete Ra[e],delete Ma.prototype[e])}},{key:"getPlugins",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(Ra),t=void 0;return e.forEach(function(e){var i=Ba(e);i&&(t=t||{},t[e]=i)}),t}},{key:"getPluginVersion",value:function(e){var t=Ba(e);return t&&t.VERSION||""}}]),e}();Ha.getPlugin=Ba,Ha.BASE_PLUGIN_NAME="plugin",Ha.registerPlugin("plugin",Ha),Ma.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Ma.prototype.hasPlugin=function(e){return!!Ua(e)};var Ga={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"},Wa=function(e){return 0===e.indexOf("#")?e.slice(1):e};if(ze.hooks_=yt,ze.hooks=bt,ze.hook=_t,ze.hookOnce=Tt,ze.removeHook=wt,!0!==Xe.a.VIDEOJS_NO_DYNAMIC_STYLE&&b()){var Xa=oi(".vjs-styles-defaults");if(!Xa){Xa=hi("vjs-styles-defaults");var Ya=oi("head");Ya&&Ya.insertBefore(Xa,Ya.firstChild),fi(Xa,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}Y(1,ze),ze.VERSION=gt,ze.options=Ma.prototype.options_,ze.getPlayers=function(){return Ma.players},ze.getPlayer=function(e){var t=Ma.players,i=void 0;if("string"==typeof e){var n=Wa(e),r=t[n];if(r)return r;i=oi("#"+n)}else i=e;if(_(i)){var a=i,s=a.player,o=a.playerId;if(s||t[o])return s||t[o]}},ze.getAllPlayers=function(){return Object.keys(Ma.players).map(function(e){return Ma.players[e]}).filter(Boolean)},ze.players=Ma.players,ze.getComponent=Vi.getComponent,ze.registerComponent=function(e,t){return jn.isTech(t)&&It.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Vi.registerComponent.call(Vi,e,t)},ze.getTech=jn.getTech,ze.registerTech=jn.registerTech,ze.use=be,Object.defineProperty(ze,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(ze.middleware,"TERMINATOR",{value:In,writeable:!1,enumerable:!0}),ze.browser=si,ze.obj=Mt,ze.mergeOptions=Be(9,"videojs.mergeOptions","videojs.obj.merge",f),ze.defineLazyProperty=Be(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",m),ze.bind=Be(9,"videojs.bind","native Function.prototype.bind",Ti),ze.registerPlugin=Ha.registerPlugin,ze.deregisterPlugin=Ha.deregisterPlugin,ze.plugin=function(e,t){return It.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Ha.registerPlugin(e,t)},ze.getPlugins=Ha.getPlugins,ze.getPlugin=Ha.getPlugin,ze.getPluginVersion=Ha.getPluginVersion,ze.addLanguage=function(e,t){return e=(""+e).toLowerCase(),ze.options.languages=f(ze.options.languages,n({},e,t)),ze.options.languages[e]},ze.log=It,ze.createLogger=At,ze.time=Wi,ze.createTimeRange=Be(9,"videojs.createTimeRange","videojs.time.createTimeRanges",de),ze.createTimeRanges=Be(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",de),ze.formatTime=Be(9,"videojs.formatTime","videojs.time.formatTime",he),ze.setFormatTime=Be(9,"videojs.setFormatTime","videojs.time.setFormatTime",ce),ze.resetFormatTime=Be(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",pe),ze.parseUrl=Be(9,"videojs.parseUrl","videojs.url.parseUrl",fn),ze.isCrossOrigin=Be(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",gn),ze.EventTarget=Ci,ze.any=re,ze.on=ee,ze.one=ne,ze.off=te,ze.trigger=ie,ze.xhr=Je.a,ze.TextTrack=wn,ze.AudioTrack=Tn,ze.VideoTrack=Sn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){ze[e]=function(){return It.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),ui[e].apply(null,arguments)}}),ze.computedStyle=Be(9,"videojs.computedStyle","videojs.dom.computedStyle",W),ze.dom=ui,ze.fn=xi,ze.num=sr,ze.str=qi,ze.url=yn,ze.Error=Ga;/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */
|
|
2
|
+
var $a=function e(t){o(this,e);var i=this;return i.id=t.id,i.label=i.id,i.width=t.width,i.height=t.height,i.bitrate=t.bandwidth,i.frameRate=t.frameRate,i.enabled_=t.enabled,Object.defineProperty(i,"enabled",{get:function(){return i.enabled_()},set:function(e){i.enabled_(e)}}),i},Ka=function(e){function t(){var e;o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=i;return n.levels_=[],n.selectedIndex_=-1,Object.defineProperty(n,"selectedIndex",{get:function(){return n.selectedIndex_}}),Object.defineProperty(n,"length",{get:function(){return n.levels_.length}}),n[Symbol.iterator]=function(){return n.levels_.values()},e=n,a(i,e)}return s(t,e),vt(t,[{key:"addQualityLevel",value:function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var i=this.levels_.length;return t=new $a(e),""+i in this||Object.defineProperty(this,i,{get:function(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}},{key:"removeQualityLevel",value:function(e){for(var t=null,i=0,n=this.length;i<n;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}},{key:"getQualityLevelById",value:function(e){for(var t=0,i=this.length;t<i;t++){var n=this[t];if(n.id===e)return n}return null}},{key:"dispose",value:function(){this.selectedIndex_=-1,this.levels_.length=0}}]),t}(ze.EventTarget);Ka.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(var en in Ka.prototype.allowedEvents_)Ka.prototype["on"+en]=null;var Ja=function(e,t){var i=e.qualityLevels,n=new Ka,r=function t(){n.dispose(),e.qualityLevels=i,e.off("dispose",t)};return e.on("dispose",r),e.qualityLevels=function(){return n},e.qualityLevels.VERSION="4.1.0",n},Qa=function(e){return Ja(this,ze.obj.merge({},e))};ze.registerPlugin("qualityLevels",Qa),Qa.VERSION="4.1.0";/*! @name @videojs/http-streaming @version 3.16.2 @license Apache-2.0 */
|
|
3
|
+
var Za=it.a,es=function(e,t){return t&&t.responseURL&&e!==t.responseURL?t.responseURL:e},ts=function(e){return ze.log.debug?ze.log.debug.bind(ze,"VHS:",e+" >"):function(){}},is=function(e,t){var i=[],n=void 0;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 qe(i)},ns=function(e,t){return is(e,function(e,i){return e-.1<=t&&i+.1>=t})},rs=function(e,t){return is(e,function(e){return e-1/30>=t})},as=function(e){if(e.length<2)return qe();for(var t=[],i=1;i<e.length;i++){var n=e.end(i-1),r=e.start(i);t.push([n,r])}return qe(t)},ss=function(e,t){var i=null,n=null,r=0,a=[],s=[];if(!(e&&e.length&&t&&t.length))return qe();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2===++r&&(i=a[o].time):"end"===a[o].type&&1===--r&&(n=a[o].time),null!==i&&null!==n&&(s.push([i,n]),i=null,n=null);return qe(s)},os=function(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},ls=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return((e.length?e.end(e.length-1):0)-t)/i},us=function(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},ds=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1},cs=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},ps=function(e,t){var i=0;if(!e||!e.length)return i;for(var n=0;n<e.length;n++){var r=e.start(n),a=e.end(n);t>a||(i+=t>r&&t<=a?a-t:a-r)}return i},hs=function(e,t){if(!t.preload)return t.duration;var i=0;return(t.parts||[]).forEach(function(e){i+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(i+=e.partTargetDuration)}),i},fs=function(e){return(e.segments||[]).reduce(function(e,t,i){return t.parts?t.parts.forEach(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e},[])},vs=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},ms=function(e){var t=e.preloadSegment;if(t){var i=t.parts,n=t.preloadHints,r=(n||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0);return r+=i&&i.length?i.length:0}},gs=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var i=vs(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},ys=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(r=e.segments[n],void 0!==r.end)return{result:i+r.end,precise:!0};if(i+=hs(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}},bs=function(e,t){for(var i=0,n=void 0,r=t-e.mediaSequence;r<e.segments.length;r++){if(n=e.segments[r],void 0!==n.start)return{result:n.start-i,precise:!0};if(i+=hs(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},_s=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var n=ys(e,t);if(n.precise)return n.result;var r=bs(e,t);return r.precise?r.result:n.result+i},ws=function(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return Xe.a.Infinity}return _s(e,t,i)},Ts=function(e){var t=e.defaultDuration,i=e.durationList,n=e.startIndex,r=e.endIndex,a=0;if(n>r){var s=[r,n];n=s[0],r=s[1]}if(n<0){for(var o=n;o<Math.min(0,r);o++)a+=t;n=0}for(var l=n;l<r;l++)a+=i[l].duration;return a},Ss=function(e,t,i,n){if(!e||!e.segments)return null;if(e.endList)return ws(e);if(null===t)return null;t=t||0;var r=_s(e,e.mediaSequence+e.segments.length,t);return i&&(n="number"==typeof n?n:gs(null,e),r-=n),Math.max(0,r)},ks=function(e,t,i){var n=t||0,r=Ss(e,t,!0,i);return null===r?qe():(r<n&&(r=n),qe(n,r))},xs=function(e){for(var t=e.playlist,i=e.currentTime,n=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.exactManifestTimings,o=i-a,l=fs(t),u=0,d=0;d<l.length;d++){var c=l[d];if(n===c.segmentIndex&&("number"!=typeof r||"number"!=typeof c.partIndex||r===c.partIndex)){u=d;break}}if(o<0){if(u>0)for(var p=u-1;p>=0;p--){var h=l[p];if(o+=h.duration,s){if(o<0)continue}else if(o+1/30<=0)continue;return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:a-Ts({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:p})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var v=u;v<l.length;v++){var m=l[v];o-=m.duration;var g=m.duration>1/30,y=0===o,b=g&&o+1/30>=0;if(!y&&!b||v===l.length-1){if(s){if(o>0)continue}else if(o-1/30>=0)continue;return{partIndex:m.partIndex,segmentIndex:m.segmentIndex,startTime:a+Ts({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:v})}}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},Es=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Cs=function(e){return e.excludeUntil&&e.excludeUntil===1/0},js=function(e){var t=Es(e);return!e.disabled&&!t},Os=function(e){return e.disabled},Ps=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},Is=function(e,t){return t.attributes&&t.attributes[e]},As=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return Is("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*n)/t:NaN},Ds=function(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!js(e)&&(e.attributes.BANDWIDTH||0)<i}).length},Ls=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))))},Ms=function(e,t){var i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},n=!1;for(var r in i){for(var a in i[r])if(n=t(i[r][a]))break;if(n)break}return!!n},Ns=function(e){if(!e||!e.playlists||!e.playlists.length){return Ms(e,function(e){return e.playlists&&e.playlists.length||e.uri})}for(var t=0;t<e.playlists.length;t++){var i=function(t){var i=e.playlists[t],n=i.attributes&&i.attributes.CODECS;return n&&n.split(",").every(function(e){return Object(rt.f)(e)})?"continue":Ms(e,function(e){return Ls(i,e)})?"continue":{v:!1}}(t);switch(i){case"continue":continue;default:if("object"===(void 0===i?"undefined":mt(i)))return i.v}}return!0},Rs={liveEdgeDelay:gs,duration:ws,seekable:ks,getMediaInfoForTime:xs,isEnabled:js,isDisabled:Os,isExcluded:Es,isIncompatible:Cs,playlistEnd:Ss,isAes:Ps,hasAttribute:Is,estimateSegmentRequestTime:As,isLowestEnabledRendition:Ds,isAudioOnly:Ns,playlistMatch:Ls,segmentDurationWithParts:hs},Us=ze.log,Bs=function(e,t){return e+"-"+t},zs=function(e,t,i){return"placeholder-uri-"+e+"-"+t+"-"+i},Fs=function(e){var t=e.onwarn,i=e.oninfo,n=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,l=e.llhls,u=new nt.a;t&&u.on("warn",t),i&&u.on("info",i),a.forEach(function(e){return u.addParser(e)}),o.forEach(function(e){return u.addTagMapper(e)}),u.push(n),u.end();var d=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){d.hasOwnProperty(e)&&delete d[e]}),d.segments&&d.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!d.targetDuration){var c=10;d.segments&&d.segments.length&&(c=d.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t({message:"manifest has no targetDuration defaulting to "+c}),d.targetDuration=c}var p=vs(d);if(p.length&&!d.partTargetDuration){var h=p.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t({message:"manifest has no partTargetDuration defaulting to "+h}),Us.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.")),d.partTargetDuration=h}return d},qs=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(i){if(e.mediaGroups[i])for(var n in e.mediaGroups[i])for(var r in e.mediaGroups[i][n]){var a=e.mediaGroups[i][n][r];t(a,i,n,r)}})},Vs=function(e){var t=e.playlist,i=e.uri,n=e.id;t.id=n,t.playlistErrors_=0,i&&(t.uri=i),t.attributes=t.attributes||{}},Hs=function(e){for(var t=e.playlists.length;t--;){var i=e.playlists[t];Vs({playlist:i,id:Bs(t,i.uri)}),i.resolvedUri=Za(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||Us.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},Gs=function(e){qs(e,function(t){t.uri&&(t.resolvedUri=Za(e.uri,t.uri))})},Ws=function(e,t){var i=Bs(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Xe.a.location.href,resolvedUri:Xe.a.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n},Xs=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zs;e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var r="placeholder-uri-"+n;e.playlists[n].uri=r}var a=Ns(e);qs(e,function(t,n,r,s){if(!t.playlists||!t.playlists.length){if(a&&"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===r)return}t.playlists=[tt()({},t)]}t.playlists.forEach(function(t,a){var o=i(n,r,s,t),l=Bs(a,o);t.uri?t.resolvedUri=t.resolvedUri||Za(e.uri,t.uri):(t.uri=0===a?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),Hs(e),Gs(e)},Ys=function(){function e(){o(this,e),this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}return vt(e,[{key:"setOffset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null===this.offset_&&e.length){var t=ft(e,1),i=t[0];void 0!==i.programDateTime&&(this.offset_=i.programDateTime/1e3)}}},{key:"setPendingDateRanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length){var t=ft(e,1),i=t[0],n=i.startDate.getTime();this.trimProcessedDateRanges_(n),this.pendingDateRanges_=e.reduce(function(e,t){return e.set(t.id,t),e},new Map)}}},{key:"processDateRange",value:function(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}},{key:"getDateRangesToProcess",value:function(){var e=this;if(null===this.offset_)return[];var t={},i=[];this.pendingDateRanges_.forEach(function(n,r){if(!e.processedDateRanges_.has(r)&&(n.startTime=n.startDate.getTime()/1e3-e.offset_,n.processDateRange=function(){return e.processDateRange(n)},i.push(n),n.class))if(t[n.class]){var a=t[n.class].push(n);n.classListIndex=a-1}else t[n.class]=[n],n.classListIndex=0});var n=!0,r=!1,a=void 0;try{for(var s,o=i[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var l=s.value,u=t[l.class]||[];l.endDate?l.endTime=l.endDate.getTime()/1e3-this.offset_:l.endOnNext&&u[l.classListIndex+1]?l.endTime=u[l.classListIndex+1].startTime:l.duration?l.endTime=l.startTime+l.duration:l.plannedDuration?l.endTime=l.startTime+l.plannedDuration:l.endTime=l.startTime}}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}},{key:"trimProcessedDateRanges_",value:function(e){var t=this;new Map(this.processedDateRanges_).forEach(function(i,n){i.startDate.getTime()<e&&t.processedDateRanges_.delete(n)})}}]),e}(),$s=function(e){var t=e.requestType,i=e.request,n=e.error,r=e.parseFailure,a=i.status<200||i.status>299,s=i.status>=400&&i.status<=499,o={uri:i.uri,requestType:t},l=a&&!s||r;if(n&&s)o.error=tt()({},n),o.errorType=ze.Error.NetworkRequestFailed;else if(i.aborted)o.errorType=ze.Error.NetworkRequestAborted;else if(i.timedout)o.erroType=ze.Error.NetworkRequestTimeout;else if(l){var u=r?ze.Error.NetworkBodyParserFailed:ze.Error.NetworkBadStatus;o.errorType=u,o.status=i.status,o.headers=i.headers}return o},Ks=ze.EventTarget,Js=function(e,t){if(t.endList||!t.serverControl)return e;var i={};if(t.serverControl.canBlockReload){var n=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(n){var a=n.parts||[],s=ms(t)-1;s>-1&&s!==a.length-1&&(i._HLS_part=s),(s>-1||a.length)&&r--}i._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){var o=new Xe.a.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){i.hasOwnProperty(e)&&o.searchParams.set(e,i[e])}),e=o.toString()}return e},Qs=function(e,t){if(!e)return t;var i=Fe(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(i.parts[n]=Fe(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},Zs=function(e,t,i){var n=e.slice(),r=t.slice();i=i||0;for(var a=[],s=void 0,o=0;o<r.length;o++){var l=n[o+i],u=r[o];l?(s=l.map||s,a.push(Qs(l,u))):(s&&!u.map&&(u.map=s),a.push(u))}return a},eo=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Za(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Za(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Za(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Za(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=Za(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=Za(t,e.uri))})},to=function(e){var t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(var n=0;n<i.preloadHints.length;n++)if("MAP"===i.preloadHints[n].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},io=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},no=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:io,n=Fe(e,{}),r=n.playlists[t.id];if(!r)return null;if(i(r,t))return null;t.segments=to(t);var a=Fe(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=Zs(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach(function(e){eo(e,a.resolvedUri)});for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===t.id&&(n.playlists[o]=a);return n.playlists[t.id]=a,n.playlists[t.uri]=a,qs(e,function(e,i,n,r){if(e.playlists)for(var s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=a)}),n},ro=function(e,t){var i=e.segments||[],n=i[i.length-1],r=n&&n.parts&&n.parts[n.parts.length-1],a=r&&r.duration||n&&n.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},ao=function(e,t,i){if(e){var n=[];return e.forEach(function(e){if(e.attributes){var t=e.attributes,i=t.BANDWIDTH,r=t.RESOLUTION,a=t.CODECS;n.push({id:e.id,bandwidth:i,resolution:r,codecs:a})}}),{type:t,isLive:i,renditions:n}}},so=function(e){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw new Error("A non-empty playlist URL or object is required");r.logger_=ts("PlaylistLoader");var s=n.withCredentials,l=void 0!==s&&s;r.src=e,r.vhs_=i,r.withCredentials=l,r.addDateRangesToTextTrack_=n.addDateRangesToTextTrack;var u=i.options_;return r.customTagParsers=u&&u.customTagParsers||[],r.customTagMappers=u&&u.customTagMappers||[],r.llhls=u&&u.llhls,r.dateRangesStorage_=new Ys,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(r),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r.on("loadedplaylist",r.handleLoadedPlaylist_.bind(r)),r}return s(t,e),vt(t,[{key:"handleLoadedPlaylist_",value:function(){var e=this.media();if(e){this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);var t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}}},{key:"handleMediaupdatetimeout_",value:function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),i=Za(this.main.uri,t.uri);this.llhls&&(i=Js(i,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:i,withCredentials:this.withCredentials,requestType:"hls-playlist"},function(t,i){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})})}}},{key:"playlistRequestError",value:function(e,t,i){var n=t.uri,r=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:e.status>=500?4:2,metadata:$s({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}},{key:"parseManifest_",value:function(e){var t=this,i=e.url,n=e.manifestString;try{return Fs({onwarn:function(e){var n=e.message;return t.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(e){var n=e.message;return t.logger_("m3u8-parser info for "+i+": "+n)},manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}catch(e){this.error=e,this.error.metadata={errorType:ze.Error.StreamingHlsPlaylistParserError,error:e}}}},{key:"haveMetadata",value:function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a={playlistInfo:{type:"media",uri:n}};this.trigger({type:"playlistparsestart",metadata:a});var s=i||this.parseManifest_({url:n,manifestString:t});s.lastRequest=Date.now(),Vs({playlist:s,uri:n,id:r});var o=no(this.main,s);this.targetDuration=s.partTargetDuration||s.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(ro(this.media(),!!o)),a.parsedPlaylist=ao(this.main.playlists,a.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:a}),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),Xe.a.clearTimeout(this.mediaUpdateTimeout),Xe.a.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Ys,this.off()}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e,t){var i=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.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(Xe.a.clearTimeout(this.finalRenditionTimeout),t){var n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=Xe.a.setTimeout(this.media.bind(this,e,!1),n))}var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(ro(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;var o={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:o}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},function(t,n){if(i.request){if(e.lastRequest=Date.now(),e.resolvedUri=es(e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,r);i.trigger({type:"playlistrequestcomplete",metadata:o}),i.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}})}}},{key:"pause",value:function(){this.mediaUpdateTimeout&&(Xe.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_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;this.mediaUpdateTimeout&&(Xe.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(e){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;return void(this.mediaUpdateTimeout=Xe.a.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},n))}if(!this.started)return void this.start();i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}},{key:"updateMediaUpdateTimeout_",value:function(e){var t=this;this.mediaUpdateTimeout&&(Xe.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=Xe.a.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))}},{key:"start",value:function(){var e=this;if(this.started=!0,"object"===mt(this.src))return this.src.uri||(this.src.uri=Xe.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);var t={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},function(i,n){if(e.request){if(e.request=null,i)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2,metadata:$s({requestType:n.requestType,request:n,error:i})},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.trigger({type:"playlistrequestcomplete",metadata:t}),e.src=es(e.src,n),e.trigger({type:"playlistparsestart",metadata:t});var r=e.parseManifest_({manifestString:n.responseText,url:e.src});t.parsedPlaylist=ao(r.playlists,t.playlistInfo.type,!1),e.trigger({type:"playlistparsecomplete",metadata:t}),e.setupInitialPlaylist(r)}})}},{key:"srcUri",value:function(){return"string"==typeof this.src?this.src:this.src.uri}},{key:"setupInitialPlaylist",value:function(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,Xs(this.main,this.srcUri()),e.playlists.forEach(function(e){e.segments=to(e),e.segments.forEach(function(t){eo(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));var t=this.srcUri()||Xe.a.location.href;this.main=Ws(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}},{key:"updateOrDeleteClone",value:function(e,t){for(var i=this.main,n=e.ID,r=i.playlists.length;r--;){var a=i.playlists[r];if(a.attributes["PATHWAY-ID"]===n){var s=a.resolvedUri,o=a.id;if(t){var l=this.createCloneURI_(a.resolvedUri,e),u=Bs(n,l),d=this.createCloneAttributes_(n,a.attributes),c=this.createClonePlaylist_(a,u,e,d);i.playlists[r]=c,i.playlists[u]=c,i.playlists[l]=c}else i.playlists.splice(r,1);delete i.playlists[o],delete i.playlists[s]}}this.updateOrDeleteCloneMedia(e,t)}},{key:"updateOrDeleteCloneMedia",value:function(e,t){var i=this.main,n=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){if(i.mediaGroups[e]&&i.mediaGroups[e][n])for(var t in i.mediaGroups[e])if(t===n){for(var r in i.mediaGroups[e][t]){var a=i.mediaGroups[e][t][r];a.playlists.forEach(function(e,t){var n=i.playlists[e.id],r=n.id,a=n.resolvedUri;delete i.playlists[r],delete i.playlists[a]})}delete i.mediaGroups[e][t]}}),t&&this.createClonedMediaGroups_(e)}},{key:"addClonePathway",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.main,n=i.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),a=Bs(e.ID,r),s=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,a,e,s);i.playlists[n]=o,i.playlists[a]=o,i.playlists[r]=o,this.createClonedMediaGroups_(e)}},{key:"createClonedMediaGroups_",value:function(e){var t=this,i=e.ID,n=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(a){if(r.mediaGroups[a]&&!r.mediaGroups[a][i])for(var s in r.mediaGroups[a])if(s===n){r.mediaGroups[a][i]={};for(var o in r.mediaGroups[a][s])!function(n){var o=r.mediaGroups[a][s][n];r.mediaGroups[a][i][n]=tt()({},o);var l=r.mediaGroups[a][i][n],u=t.createCloneURI_(o.resolvedUri,e);l.resolvedUri=u,l.uri=u,l.playlists=[],o.playlists.forEach(function(s,o){var u=r.playlists[s.id],d=zs(a,i,n),c=Bs(i,d);if(u&&!r.playlists[c]){var p=t.createClonePlaylist_(u,c,e),h=p.resolvedUri;r.playlists[c]=p,r.playlists[h]=p}l.playlists[o]=t.createClonePlaylist_(s,c,e)})}(o)}})}},{key:"createClonePlaylist_",value:function(e,t,i,n){var r=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:r,uri:r,id:t};return e.segments&&(a.segments=[]),n&&(a.attributes=n),Fe(e,a)}},{key:"createCloneURI_",value:function(e,t){var i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;var n=t["URI-REPLACEMENT"].PARAMS,r=!0,a=!1,s=void 0;try{for(var o,l=Object.keys(n)[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value;i.searchParams.set(u,n[u])}}catch(e){a=!0,s=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw s}}return i.href}},{key:"createCloneAttributes_",value:function(e,t){var i=n({},"PATHWAY-ID",e);return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(n){t[n]&&(i[n]=e)}),i}},{key:"getKeyIdSet",value:function(e){if(e.contentProtection){var t=new Set;for(var i in e.contentProtection){var n=e.contentProtection[i].attributes.keyId;n&&t.add(n.toLowerCase())}return t}}}]),t}(Ks),oo=function(e,t,i,n){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))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),n(t,e)},lo=function(e,t){if(e&&e.size){var i=t;return e.forEach(function(e){i=e(i)}),i}},uo=function(e,t,i,n){e&&e.size&&e.forEach(function(e){e(t,i,n)})},co=function(){var e=function e(t,i){t=Fe({timeout:45e3},t);var n=e.beforeRequest||ze.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||ze.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||ze.Vhs.xhr._responseCallbackSet;n&&"function"==typeof n&&(ze.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(n));var s=!0===ze.Vhs.xhr.original?ze.xhr:ze.Vhs.xhr,o=lo(r,t);r.delete(n);var l=s(o||t,function(e,t){return uo(a,l,e,t),oo(l,e,t,i)}),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},po=function(e){var t=void 0,i=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?Xe.a.BigInt(e.offset)+Xe.a.BigInt(e.length)-Xe.a.BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t},ho=function(e){var t={};return e.byterange&&(t.Range=po(e.byterange)),t},fo=function(e,t){return e.start(t)+"-"+e.end(t)},vo=function(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},mo=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},go=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];Object(st.e)(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t},yo=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},bo=function(e){return e.resolvedUri},_o=function(e){for(var t=Array.prototype.slice.call(e),i="",n=void 0,r=void 0,a=0;a<t.length/16;a++)n=t.slice(16*a,16*a+16).map(vo).join(""),r=t.slice(16*a,16*a+16).map(mo).join(""),i+=n+" "+r+"\n";return i},wo=function(e){var t=e.bytes;return _o(t)},To=function(e){var t="",i=void 0;for(i=0;i<e.length;i++)t+=fo(e,i)+" ";return t},So=Object.freeze({__proto__:null,createTransferableMessage:go,initSegmentId:yo,segmentKeyId:bo,hexDump:_o,tagDump:wo,textRanges:To}),ko=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,n=t.videoTimingInfo.transmuxedPresentationStart,r=n+i,a=e-r;return new Date(t.dateTimeObject.getTime()+1e3*a)},xo=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},Eo=function(e,t){var i=void 0;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var n=t.segments[0];if(i<new Date(n.dateTimeObject))return null;for(var r=0;r<t.segments.length-1;r++){n=t.segments[r];if(i<new Date(t.segments[r+1].dateTimeObject))break}var a=t.segments[t.segments.length-1],s=a.dateTimeObject,o=a.videoTimingInfo?xo(a.videoTimingInfo):a.duration+.25*a.duration;return i>new Date(s.getTime()+1e3*o)?null:(i>new Date(s)&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:Rs.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})},Co=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i=0,n=void 0,r=0;r<t.segments.length&&(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,!(e<=i));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},jo=function(e,t){var i=void 0,n=void 0;try{i=new Date(e),n=new Date(t)}catch(e){}var r=i.getTime();return(n.getTime()-r)/1e3},Oo=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0},Po=function(e){var t=e.playlist,i=e.time,n=void 0===i?void 0:i,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===n)return r({message:"getProgramTime: playlist and time must be provided"});var a=Co(n,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:n},o=ko(n,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},Io=function e(t){var i=t.programTime,n=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,d=t.callback;if(!d)throw new Error("seekToProgramTime: callback must be provided");if(void 0===i||!n||!s)return d({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!u.hasStarted_)return d({message:"player must be playing a live stream to start buffering"});if(!Oo(n))return d({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var c=Eo(i,n);if(!c)return d({message:i+" was not found in the stream"});var p=c.segment,h=jo(p.dateTimeObject,i);if("estimate"===c.type)return 0===a?d({message:i+" is not buffered yet. Try again"}):(s(c.estimatedStart+h),void u.one("seeked",function(){e({programTime:i,playlist:n,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:d})}));var f=p.start+h,v=function(){return d(null,u.currentTime())};u.one("seeked",v),l&&u.pause(),s(f)},Ao=function(e,t){if(4===e.readyState)return t()},Do=function(e,t,i,n){var r=[],a=void 0,s=!1,o=function(e,t,n,r){return t.abort(),s=!0,i(e,t,n,r)},l=function(e,t){if(!s){if(e)return e.metadata=$s({requestType:n,request:t,error:e}),o(e,t,"",r);var i=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=Object(st.d)(r,Object(st.h)(i,!0)),a=a||Object(dt.a)(r),r.length<10||a&&r.length<a+2)return Ao(t,function(){return o(e,t,"",r)});var l=Object(ct.a)(r);return"ts"===l&&r.length<188?Ao(t,function(){return o(e,t,"",r)}):!l&&r.length<376?Ao(t,function(){return o(e,t,"",r)}):o(null,t,l,r)}},u={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){t.total,t.loaded;return oo(e,null,{statusCode:e.status},l)})}},d=t(u,function(e,t){return oo(d,e,t,l)});return d},Lo=ze.EventTarget,Mo=function(e,t){if(!io(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 i=0;i<e.segments.length;i++){var n=e.segments[i],r=t.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){var a=n.byterange,s=r.byterange;if(a&&!s||!a&&s)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}}return!0},No=function(e,t,i,n){return"placeholder-uri-"+e+"-"+t+"-"+(n.attributes.NAME||i)},Ro=function(e){var t=e.mainXml,i=e.srcUrl,n=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,s=Object(ot.c)(t,{manifestUri:i,clientOffset:n,sidxMapping:r,previousManifest:a});return Xs(s,i,No),s},Uo=function(e,t){qs(e,function(i,n,r,a){t.mediaGroups[n][r]&&a in t.mediaGroups[n][r]||delete e.mediaGroups[n][r][a]})},Bo=function(e,t,i){for(var n=!0,r=Fe(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var s=t.playlists[a];if(s.sidx){var o=Object(ot.b)(s.sidx);i&&i[o]&&i[o].sidx&&Object(ot.a)(s,i[o].sidx,s.sidx.resolvedUri)}var l=no(r,s,Mo);l&&(r=l,n=!1)}return qs(t,function(e,t,i,a){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,o=no(r,e.playlists[0],Mo);o&&(r=o,a in r.mediaGroups[t][i]||(r.mediaGroups[t][i][a]=e),r.mediaGroups[t][i][a].playlists[0]=r.playlists[s],n=!1)}}),Uo(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(n=!1),n?null:r},zo=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},Fo=function(e,t){var i={};for(var n in e){var r=e[n],a=r.sidx;if(a){var s=Object(ot.b)(a);if(!t[s])break;var o=t[s].sidxInfo;zo(o,a)&&(i[s]=t[s])}}return i},qo=function(e,t){var i=Fo(e.playlists,t),n=i;return qs(e,function(e,i,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;n=Fe(n,Fo(s,t))}}),n},Vo=function(e){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3];o(this,t);var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));s.isPaused_=!0,s.mainPlaylistLoader_=r||s,r||(s.isMain_=!0);var l=n.withCredentials,u=void 0!==l&&l;if(s.vhs_=i,s.withCredentials=u,s.addMetadataToTextTrack=n.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=ts("DashPlaylistLoader"),s.isMain_?(s.mainPlaylistLoader_.srcUrl=e,s.mainPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=e,s}return s(t,e),vt(t,[{key:"requestErrored_",value:function(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!==(void 0===e?"undefined":mt(e))||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}},{key:"addSidxSegments_",value:function(e,t,i){var n=this,r=e.sidx&&Object(ot.b)(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r])return Xe.a.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=Xe.a.setTimeout(function(){return i(!1)},0));var a=es(e.sidx.resolvedUri),s=function(a,s){if(!n.requestErrored_(a,s,t)){var o=n.mainPlaylistLoader_.sidxMapping_,l=s.requestType,u=void 0;try{u=ut()(Object(st.k)(s.response).subarray(8))}catch(e){return e.metadata=$s({requestType:l,request:s,parseFailure:!0}),void n.requestErrored_(e,s,t)}return o[r]={sidxInfo:e.sidx,sidx:u},Object(ot.a)(e,u,e.sidx.resolvedUri),i(!0)}};this.request=Do(a,this.vhs_.xhr,function(t,i,r,o){if(t)return s(t,i);if(!r||"mp4"!==r){var l=r||"unknown";return s({status:i.status,message:"Unsupported "+l+" container type for sidx segment at URL: "+a,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i)}var u=e.sidx.byterange,d=u.offset,c=u.length;if(o.length>=c+d)return s(t,{response:o.subarray(d,d+c),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:a,responseType:"arraybuffer",requestType:"dash-sidx",headers:ho({byterange:e.sidx.byterange})},s)},"dash-sidx")}},{key:"dispose",value:function(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},Xe.a.clearTimeout(this.minimumUpdatePeriodTimeout_),Xe.a.clearTimeout(this.mediaRequest_),Xe.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}var n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,i,function(n){t.haveMetadata({startingState:i,playlist:e})}))}},{key:"haveMetadata",value:function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,Xe.a.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MAIN_MANIFEST"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),Xe.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(Xe.a.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var t=this;this.isPaused_=!1,Xe.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=Xe.a.setTimeout(function(){return t.load()},n))}if(!this.started)return void this.start();i&&!i.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}},{key:"start",value:function(){var e=this;if(this.started=!0,!this.isMain_)return Xe.a.clearTimeout(this.mediaRequest_),void(this.mediaRequest_=Xe.a.setTimeout(function(){return e.haveMain_()},0));this.requestMain_(function(t,i){e.haveMain_(),e.hasPendingRequest()||e.media_||e.media(e.mainPlaylistLoader_.main.playlists[0])})}},{key:"requestMain_",value:function(e){var t=this,i={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:i}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},function(n,r){if(n){var a=r.requestType;n.metadata=$s({requestType:a,request:r,error:n})}if(t.requestErrored_(n,r))return void("HAVE_NOTHING"===t.state&&(t.started=!1));t.trigger({type:"manifestrequestcomplete",metadata:i});var s=r.responseText!==t.mainPlaylistLoader_.mainXml_;return t.mainPlaylistLoader_.mainXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?t.mainLoaded_=Date.parse(r.responseHeaders.date):t.mainLoaded_=Date.now(),t.mainPlaylistLoader_.srcUrl=es(t.mainPlaylistLoader_.srcUrl,r),s?(t.handleMain_(),void t.syncClientServerClock_(function(){return e(r,s)})):e(r,s)})}},{key:"syncClientServerClock_",value:function(e){var t=this,i=Object(ot.d)(this.mainPlaylistLoader_.mainXml_);return null===i?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.mainPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Za(this.mainPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},function(n,r){if(t.request){if(n){var a=r.requestType;return t.error.metadata=$s({requestType:a,request:r,error:n}),t.mainPlaylistLoader_.clientOffset_=t.mainLoaded_-Date.now(),e()}var s=void 0;s="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.mainLoaded_:Date.parse(r.responseText),t.mainPlaylistLoader_.clientOffset_=s-Date.now(),e()}}))}},{key:"haveMain_",value:function(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}},{key:"handleMain_",value:function(){Xe.a.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;var e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:t});var i=void 0;try{i=Ro({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(e){this.error=e,this.error.metadata={errorType:ze.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}e&&(i=Bo(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;var n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){var r=i,a=r.duration,s=r.endList,o=[];i.playlists.forEach(function(e){o.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})});var l={duration:a,isLive:!s,renditions:o};t.parsedManifest=l,this.trigger({type:"manifestparsecomplete",metadata:t})}return Boolean(i)}},{key:"updateMinimumUpdatePeriodTimeout_",value:function(){var e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(Xe.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.main&&e.main.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0)return void(t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"));this.createMUPTimeout_(t)}},{key:"createMUPTimeout_",value:function(e){var t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=Xe.a.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}},{key:"refreshXml_",value:function(){var e=this;this.requestMain_(function(t,i){i&&(e.media_&&(e.media_=e.mainPlaylistLoader_.main.playlists[e.media_.id]),e.mainPlaylistLoader_.sidxMapping_=qo(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})}},{key:"refreshMedia_",value:function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();var i=this.mainPlaylistLoader_.main.playlists,n=!this.media_||this.media_!==i[e];if(n?this.media_=i[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=Xe.a.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},ro(t.media(),Boolean(n))))}()}this.trigger("loadedplaylist")}},{key:"addEventStreamToMetadataTrack_",value:function(e){if(e&&this.mainPlaylistLoader_.main.eventStream){var t=this.mainPlaylistLoader_.main.eventStream.map(function(e){return{cueTime:e.start,frames:[{data:e.messageData}]}});this.addMetadataToTextTrack("EventStream",t,this.mainPlaylistLoader_.main.duration)}}},{key:"getKeyIdSet",value:function(e){if(e.contentProtection){var t=new Set;for(var i in e.contentProtection){var n=e.contentProtection[i].attributes["cenc:default_KID"];n&&t.add(n.replace(/-/g,"").toLowerCase())}return t}}},{key:"isPaused",get:function(){return this.isPaused_}}]),t}(Lo),Ho={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},Go=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer},Wo=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Xo=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(i){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},Yo=function(e){return function(){var t=Xo(e),i=Wo(new Worker(t));i.objURL=t;var n=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},i}},$o=function(e){return"var browserWorkerPolyFill = "+Wo.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},Ko=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Jo=$o(Ko(function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},i=function(){this.init=function(){var e={};this.on=function(t,i){e[t]||(e[t]=[]),e[t]=e[t].concat(i)},this.off=function(t,i){var n;return!!e[t]&&(n=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(n,1),n>-1)},this.trigger=function(t){var i,n,r,a;if(i=e[t])if(2===arguments.length)for(r=i.length,n=0;n<r;++n)i[n].call(this,arguments[1]);else{for(a=[],n=arguments.length,n=1;n<arguments.length;++n)a.push(arguments[n]);for(r=i.length,n=0;n<r;++n)i[n].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)}),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},i.prototype.push=function(e){this.trigger("data",e)},i.prototype.flush=function(e){this.trigger("done",e)},i.prototype.partialFlush=function(e){this.trigger("partialdone",e)},i.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},i.prototype.reset=function(e){this.trigger("reset",e)};var n,r,a,s,l,u,d,c,p,h,f,v,m,g,y,b,_,w,T,S,k,x,E,C,j,O,P,I,A,D,L,M,N,R,U,B,z=i,F=Math.pow(2,32),q=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):i.getUint32(0)*F+i.getUint32(4)},V={getUint64:q,MAX_UINT32:F},H=V.MAX_UINT32;!function(){var e;if(E={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 E)E.hasOwnProperty(e)&&(E[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=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)]),j=new Uint8Array([0,0,0,1]),P=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]),I=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:P,audio:I},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),L=new Uint8Array([0,0,0,0,0,0,0,0]),N=new Uint8Array([0,0,0,0,0,0,0,0]),R=N,U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),B=N,D=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(e){var t,i,n,r=[],a=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)a+=r[t].byteLength;for(i=new Uint8Array(a+8),n=new DataView(i.buffer,i.byteOffset,i.byteLength),n.setUint32(0,i.byteLength),i.set(e,4),t=0,a=8;t<r.length;t++)i.set(r[t],a),a+=r[t].byteLength;return i},r=function(){return n(E.dinf,n(E.dref,M))},a=function(e){return n(E.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 n(E.ftyp,C,j,C,O)},b=function(e){return n(E.hdlr,A[e])},l=function(e){return n(E.mdat,e)},y=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),n(E.mdhd,t)},g=function(e){return n(E.mdia,y(e),b(e.type),d(e))},u=function(e){return n(E.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},d=function(e){return n(E.minf,"video"===e.type?n(E.vmhd,D):n(E.smhd,L),r(),w(e))},c=function(e,t){for(var i=[],r=t.length;r--;)i[r]=S(t[r]);return n.apply(null,[E.moof,u(e)].concat(i))},p=function(e){for(var t=e.length,i=[];t--;)i[t]=v(e[t]);return n.apply(null,[E.moov,f(4294967295)].concat(i).concat(h(e)))},h=function(e){for(var t=e.length,i=[];t--;)i[t]=k(e[t]);return n.apply(null,[E.mvex].concat(i))},f=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 n(E.mvhd,t)},_=function(e){var t,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,a[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(E.sdtp,a)},w=function(e){return n(E.stbl,T(e),n(E.stts,B),n(E.stsc,R),n(E.stsz,U),n(E.stco,N))},function(){var e,t;T=function(i){return n(E.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?e(i):t(i))},e=function(e){var t,i,r=e.sps||[],a=e.pps||[],s=[],o=[];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]));for(t=0;t<a.length;t++)o.push((65280&a[t].byteLength)>>>8),o.push(255&a[t].byteLength),o=o.concat(Array.prototype.slice.call(a[t]));if(i=[E.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]),n(E.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),n(E.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(n(E.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 n.apply(null,i)},t=function(e){return n(E.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 n(E.tkhd,t)},S=function(e){var t,i,r,a,s,o,l;return t=n(E.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/H),l=Math.floor(e.baseMediaDecodeTime%H),i=n(E.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=x(e,s),n(E.traf,t,i,r)):(a=_(e),r=x(e,a.length+s),n(E.traf,t,i,r,a))},v=function(e){return e.duration=e.duration||4294967295,n(E.trak,m(e),g(e))},k=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),n(E.trex,t)},function(){var e,t,i;i=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|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,l,u;for(o=e.samples||[],t+=20+16*o.length,s=i(o,t),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 n(E.trun,a)},e=function(e,t){var r,a,s,o,l,u;for(o=e.samples||[],t+=20+8*o.length,s=i(o,t),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 n(E.trun,r)},x=function(i,n){return"audio"===i.type?e(i,n):t(i,n)}}();var G,W,X,Y,$,K,J,Q,Z={ftyp:s,mdat:l,moof:c,moov:p,initSegment:function(e){var t,i=s(),n=p(e);return t=new Uint8Array(i.byteLength+n.byteLength),t.set(i),t.set(n,i.byteLength),t}},ee=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,t=0;t<e.length;t++)i=e[t],"access_unit_delimiter_rbsp"===i.nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),n=[i],n.byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},te=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.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++)i=e[t],i.keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),n=[i],n.nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},ie=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},ne=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},re=function(e,t){var i=ne();return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},ae=function(e,t){var i,n,r,a,s,o=t||0,l=[];for(i=0;i<e.length;i++)for(a=e[i],n=0;n<a.length;n++)s=a[n],r=re(s,o),o+=r.size,l.push(r);return l},se=function(e){var t,i,n,r,a,s,o=0,l=e.byteLength,u=e.nalCount,d=l+4*u,c=new Uint8Array(d),p=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(a=r[i],n=0;n<a.length;n++)s=a[n],p.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},oe=function(e,t){var i,n=t||0,r=[];return i=re(e,n),r.push(i),r},le=function(e){var t,i,n=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++)i=e[t],l.setUint32(n,i.data.byteLength),n+=4,o.set(i.data,n),n+=i.data.byteLength;return o},ue={groupNalsIntoFrames:ee,groupFramesIntoGops:te,extendFirstKeyFrame:ie,generateSampleTable:ae,concatenateNalData:se,generateSampleTableForFrame:oe,concatenateNalDataForFrame:le},de=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],pe=function(e){for(var t=[];e--;)t.push(0);return t},he=function(e){return Object.keys(e).reduce(function(t,i){return t[i]=new Uint8Array(e[i].reduce(function(e,t){return e.concat(t)},[])),t},{})},fe=function(){if(!G){var e={96e3:[de,[227,64],pe(154),[56]],88200:[de,[231],pe(170),[56]],64e3:[de,[248,192],pe(240),[56]],48e3:[de,[255,192],pe(268),[55,148,128],pe(54),[112]],44100:[de,[255,192],pe(268),[55,163,128],pe(84),[112]],32e3:[de,[255,192],pe(268),[55,234],pe(226),[112]],24e3:[de,[255,192],pe(268),[55,255,128],pe(268),[111,112],pe(126),[224]],16e3:[de,[255,192],pe(268),[55,255,128],pe(268),[111,255],pe(269),[223,108],pe(195),[1,192]],12e3:[ce,pe(268),[3,127,248],pe(268),[6,255,240],pe(268),[13,255,224],pe(268),[27,253,128],pe(259),[56]],11025:[ce,pe(268),[3,127,248],pe(268),[6,255,240],pe(268),[13,255,224],pe(268),[27,255,192],pe(268),[55,175,128],pe(108),[112]],8e3:[ce,pe(268),[3,121,16],pe(47),[7]]};G=he(e)}return G};W=function(e){return 9e4*e},X=function(e,t){return e*t},Y=function(e){return e/9e4},$=function(e,t){return e/t},K=function(e,t){return W($(e,t))},J=function(e,t){return X(Y(e),t)},Q=function(e,t,i){return Y(i?e:e-t)};var ve={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:W,secondsToAudioTs:X,videoTsToSeconds:Y,audioTsToSeconds:$,audioTsToVideoTs:K,videoTsToAudioTs:J,metadataTsToSeconds:Q},me=fe,ge=ve,ye=function(e){var t,i,n=0;for(t=0;t<e.length;t++)i=e[t],n+=i.data.byteLength;return n},be=function(e,t,i,n){var r,a,s,o,l=0,u=0,d=0,c=0;if(t.length&&(r=ge.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(ge.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&n&&(u=r-Math.max(i,n),d=Math.floor(u/l),c=d*l),!(d<1||c>ge.ONE_SECOND_IN_TS/2))){for(a=me()[e.samplerate],a||(a=t[0].data),s=0;s<d;s++)o=t[0],t.splice(0,0,{data:a,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(ge.videoTsToAudioTs(c,e.samplerate)),c}},_e=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},we=function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=e[t],n.push({size:i.data.byteLength,duration:1024});return n},Te=function(e){var t,i,n=0,r=new Uint8Array(ye(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,n),n+=i.data.byteLength;return r},Se={prefixWithSilence:be,trimAdtsFramesByEarliestDts:_e,generateSampleTable:we,concatenateFrameData:Te},ke=ve.ONE_SECOND_IN_TS,xe=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))},Ee=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ce=function(e,t){var i,n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=r,i=Math.max(0,i),"audio"===e.type&&(n=e.samplerate/ke,i*=n,i=Math.floor(i)),i},je={clearDtsInfo:Ee,calculateTrackBaseMediaDecodeTime:Ce,collectDtsInfo:xe},Oe=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,n=0,r=0}return i},Pe=function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Ie=function(e,t){var i,n,r,a,s=[];if(!(64&t[0]))return s;for(n=31&t[0],i=0;i<n;i++)r=3*i,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},Ae=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-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=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},De={parseSei:Oe,parseUserData:Pe,parseCaptionPackets:Ie,discardEmulationPreventionBytes:Ae,USER_DATA_REGISTERED_ITU_T_T35:4},Le=z,Me=De,Ne=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Xe(0,0),new Xe(0,1),new Xe(1,0),new Xe(1,1)],this.parse708captions_&&(this.cc708Stream_=new qe({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Ne.prototype=new Le,Ne.prototype.push=function(e){var t,i,n;if("sei_rbsp"===e.nalUnitType&&(t=Me.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Me.USER_DATA_REGISTERED_ITU_T_T35&&(i=Me.parseUserData(t)))){if(e.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return void(--this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=Me.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ne.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Ne.prototype.flushStream=function(e){if(!this.captionPackets_.length)return void this.flushCCStreams(e);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)},Ne.prototype.flush=function(){return this.flushStream("flush")},Ne.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ne.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ne.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)},Ne.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ne.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ne.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Ne.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Re={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},Ue=function(e){var t=Re[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},Be=function(e){return 32<=e&&e<=127||160<=e&&e<=255},ze=function(e){this.windowNum=e,this.reset()};ze.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},ze.prototype.getText=function(){return this.rows.join("\n")},ze.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ze.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ze.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},ze.prototype.addText=function(e){this.rows[this.rowIdx]+=e},ze.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Fe=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new ze(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};Fe.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new ze(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},Fe.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Fe.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var qe=function e(t){t=t||{},e.prototype.init.call(this);var i,n=this,r=t.captionServices||{},a={};Object.keys(r).forEach(function(e){i=r[e],/^SERVICE/.test(e)&&(a[e]=i.encoding)}),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};qe.prototype=new Le,qe.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},qe.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},qe.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)a=t[r++],i=a>>5,n=31&a,7===i&&n>0&&(a=t[r++],i=a),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},qe.prototype.pushServiceBlock=function(e,t,i){var n,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r<t+i&&r<a.length;r++)n=a[r],Be(n)?r=this.handleText(r,s):24===n?r=this.multiByteCharacter(r,s):16===n?r=this.extendedCommands(r,s):128<=n&&n<=135?r=this.setCurrentWindow(r,s):152<=n&&n<=159?r=this.defineWindow(r,s):136===n?r=this.clearWindows(r,s):140===n?r=this.deleteWindows(r,s):137===n?r=this.displayWindows(r,s):138===n?r=this.hideWindows(r,s):139===n?r=this.toggleWindows(r,s):151===n?r=this.setWindowAttributes(r,s):144===n?r=this.setPenAttributes(r,s):145===n?r=this.setPenColor(r,s):146===n?r=this.setPenLocation(r,s):143===n?s=this.reset(r,s):8===n?s.currentWindow.backspace():12===n?s.currentWindow.clearText():13===n?s.currentWindow.pendingNewLine=!0:14===n?s.currentWindow.clearText():141===n&&r++},qe.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data,n=i[++e];return Be(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},qe.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},qe.prototype.initService=function(e,t){var i,n,i="SERVICE"+e,r=this;return i in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new Fe(e,n,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},qe.prototype.handleText=function(e,t,i){var n,r,a=i&&i.isExtended,s=i&&i.isMultiByte,o=this.current708Packet.data,l=a?4096:0,u=o[e],d=o[e+1],c=t.currentWindow;if(s?(r=[u,d],e++):r=[u],t.textDecoder_&&!a)n=t.textDecoder_.decode(new Uint8Array(r));else if(s){var p=function(e){return e.map(function(e){return("0"+(255&e).toString(16)).slice(-2)}).join("")}(r);n=String.fromCharCode(parseInt(p,16))}else n=Ue(l|u);return c.pendingNewLine&&!c.isEmpty()&&c.newLine(this.getPts(e)),c.pendingNewLine=!1,c.addText(n),e},qe.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,n=i[e+1],r=i[e+2];return Be(n)&&Be(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},qe.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data,n=i[e],r=7&n;return t.setCurrentWindow(r),e},qe.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e],r=7&n;t.setCurrentWindow(r);var a=t.currentWindow;return n=i[++e],a.visible=(32&n)>>5,a.rowLock=(16&n)>>4,a.columnLock=(8&n)>>3,a.priority=7&n,n=i[++e],a.relativePositioning=(128&n)>>7,a.anchorVertical=127&n,n=i[++e],a.anchorHorizontal=n,n=i[++e],a.anchorPoint=(240&n)>>4,a.rowCount=15&n,n=i[++e],a.columnCount=63&n,n=i[++e],a.windowStyle=(56&n)>>3,a.penStyle=7&n,a.virtualRowCount=a.rowCount+1,e},qe.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},qe.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},qe.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)},qe.prototype.displayWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&(t.windows[a].visible=1);return e},qe.prototype.hideWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&(t.windows[a].visible=0);return e},qe.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&(t.windows[a].visible^=1);return e},qe.prototype.clearWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&t.windows[a].clearText();return e},qe.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&t.windows[a].reset();return e},qe.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penAttr;return n=i[++e],r.textTag=(240&n)>>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},qe.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},qe.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},qe.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Ve={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},He=function(e){return null===e?"":(e=Ve[e]||e,String.fromCharCode(e))},Ge=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],We=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},Xe=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)===this.lastControlCode_)return void(this.lastControlCode_=null);if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=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),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=We();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=We();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=We()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))n=(3&n)<<8,a=He(n|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),n=(3&n)<<8,a=He(n|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,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(n,r)){var s=3&r;this.nonDisplayed_[this.row_].offset=s,this.column_+=s}else if(this.isPAC(n,r)){var o=Ge.indexOf(7968&t);if("rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&o>=0&&o<=14&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)){var l=(14&t)>>1;this.column_=4*l,this.nonDisplayed_[this.row_].indent+=l}this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=He(n),a+=He(r),this[this.mode_](e.pts,a),this.column_+=a.length)}};Xe.prototype=new Le,Xe.prototype.flushDisplayed=function(e){var t=this,i=function(e){t.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},n=[];this.displayed_.forEach(function(e,t){if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){i(t)}e.text.length&&n.push({text:e.text,line:t+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else void 0!==e&&null!==e||i(t)}),n.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:n,stream:this.name_})},Xe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=We(),this.nonDisplayed_=We(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Xe.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_},Xe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Xe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Xe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Xe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Xe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Xe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Xe.prototype.isNormalChar=function(e){return e>=32&&e<=127},Xe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=We(),this.displayed_=We()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Xe.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},Xe.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)}},Xe.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_].text;i+=t,this.nonDisplayed_[this.row_].text=i},Xe.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i},Xe.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Xe.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i};var Ye={CaptionStream:Ne,Cea608Stream:Xe,Cea708Stream:qe},$e={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ke=z,Je=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},Qe=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){if("metadata"===e.type)return void this.trigger("data",e);"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Je(e.dts,n),e.pts=Je(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Qe.prototype=new Ke;var Ze,et={TimestampRolloverStream:Qe,handleRollover:Je},tt=function(e,t,i){if(!e)return-1;for(var n=i;n<e.length;n++)if(e[n]===t)return n;return-1},it={typedArrayIndexOf:tt},nt=it.typedArrayIndexOf,rt={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},at=function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r},st=function(e,t,i){return decodeURIComponent(at(e,t,i))},ot=function(e,t,i){return unescape(at(e,t,i))},lt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},ut={APIC:function(e){var t,i,n=1;e.data[0]===rt.Utf8&&((t=nt(e.data,0,n))<0||(e.mimeType=ot(e.data,n,t),n=t+1,e.pictureType=e.data[n],n++,(i=nt(e.data,0,n))<0||(e.description=st(e.data,n,i),n=i+1,"--\x3e"===e.mimeType?e.url=ot(e.data,n,e.data.length):e.pictureData=e.data.subarray(n,e.data.length))))},"T*":function(e){e.data[0]===rt.Utf8&&(e.value=st(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===rt.Utf8&&-1!==(t=nt(e.data,0,1))&&(e.description=st(e.data,1,t),e.value=st(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=ot(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===rt.Utf8&&-1!==(t=nt(e.data,0,1))&&(e.description=st(e.data,1,t),e.url=ot(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=ot(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},dt=function(e){var t,i,n=10,r=0,a=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){r=lt(e.subarray(6,10)),r+=10;64&e[5]&&(n+=4,n+=lt(e.subarray(10,14)),r-=lt(e.subarray(16,20)));do{if((t=lt(e.subarray(n+4,n+8)))<1)break;i=String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]);var s={id:i,data:e.subarray(n+10,n+t+10)};s.key=s.id,ut[s.id]?ut[s.id](s):"T"===s.id[0]?ut["T*"](s):"W"===s.id[0]&&ut["W*"](s),a.push(s),n+=10,n+=t}while(n<r);return a}},ct={parseId3Frames:dt,parseSyncSafeInteger:lt,frameParsers:ut},pt=z,ht=$e,ft=ct;Ze=function(e){var t,i={descriptor:e&&e.descriptor},n=0,r=[],a=0;if(Ze.prototype.init.call(this),this.dispatchType=ht.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,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)))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(r.push(e),a+=e.data.byteLength,1===r.length&&(n=ft.parseSyncSafeInteger(e.data.subarray(6,10)),n+=10),!(a<n)){for(t={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<n;)t.data.set(r[0].data.subarray(0,n-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();i=10,64&t.data[5]&&(i+=4,i+=ft.parseSyncSafeInteger(t.data.subarray(10,14)),n-=ft.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((s=ft.parseSyncSafeInteger(t.data.subarray(i+4,i+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(u=String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),o={id:u,data:t.data.subarray(i+10,i+s+10)},o.key=o.id,ft.frameParsers[o.id]?ft.frameParsers[o.id](o):"T"===o.id[0]?ft.frameParsers["T*"](o):"W"===o.id[0]&&ft.frameParsers["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var d=o.data,c=(1&d[3])<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;c*=4,c+=3&d[7],o.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10,i+=s}while(i<n);this.trigger("data",t)}}}},Ze.prototype=new pt;var gt,yt,bt,_t=Ze,wt=z,Tt=Ye,St=$e,kt=et.TimestampRolloverStream;gt=function(){var e=new Uint8Array(188),t=0;gt.prototype.init.call(this),this.push=function(i){var n,r=0,a=188;for(t?(n=new Uint8Array(i.byteLength+t),n.set(e.subarray(0,t)),n.set(i,t),t=0):n=i;a<n.byteLength;)71!==n[r]||71!==n[a]?(r++,a++):(this.trigger("data",n.subarray(r,a)),r+=188,a+=188);r<n.byteLength&&(e.set(n.subarray(r),0),t=n.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},gt.prototype=new wt,yt=function(){var e,t,i,n;yt.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,n){var r=0;n.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===n.type?t(e.subarray(r),n):i(e.subarray(r),n)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],n.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=n.pmtPid},i=function(e,t){var i,r,a,s;if(1&e[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=(15&e[1])<<8|e[2],r=3+i-4,a=(15&e[10])<<8|e[11],s=12+a;s<r;){var o=e[s],l=(31&e[s+1])<<8|e[s+2];o===St.H264_STREAM_TYPE&&null===n.programMapTable.video?n.programMapTable.video=l:o===St.ADTS_STREAM_TYPE&&null===n.programMapTable.audio?n.programMapTable.audio=l:o===St.METADATA_STREAM_TYPE&&(n.programMapTable["timed-metadata"][l]=o),s+=5+((15&e[s+3])<<8|e[s+4])}t.programMapTable=n.programMapTable}},this.push=function(t){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=St.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=St.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},yt.prototype=new wt,yt.STREAM_TYPES={h264:27,adts:15},bt=function(){var e,t=this,i=!1,n={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=function(e,t){var i,n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===n&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),i=e[7],192&i&&(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&i&&(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,i,n){var r,a=new Uint8Array(e.size),o={type:i},l=0,u=0,d=!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),d="video"===i||o.packetLength<=e.size,(n||d)&&(e.size=0,e.data.length=0),d&&t.trigger("data",o)}};bt.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case St.H264_STREAM_TYPE:e=n,t="video";break;case St.ADTS_STREAM_TYPE:e=r,t="audio";break;case St.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 n={type:"metadata",tracks:[]};e=s.programMapTable,null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",n)}})[s.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!i&&e){var n={type:"metadata",tracks:[]};null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}i=!1,this.flushStreams_(),this.trigger("done")}},bt.prototype=new wt;var xt={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:gt,TransportParseStream:yt,ElementaryStream:bt,TimestampRolloverStream:kt,CaptionStream:Tt.CaptionStream,Cea608Stream:Tt.Cea608Stream,Cea708Stream:Tt.Cea708Stream,MetadataStream:_t};for(var Et in St)St.hasOwnProperty(Et)&&(xt[Et]=St[Et]);var Ct,jt=xt,Ot=z,Pt=ve.ONE_SECOND_IN_TS,It=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Ct=function(e){var t,i=0;Ct.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+i+" outside syncword"})},this.push=function(n){var r,a,s,o,l,u=0;if(e||(i=0),"audio"===n.type){t&&t.length?(s=t,t=new Uint8Array(s.byteLength+n.data.byteLength),t.set(s),t.set(n.data,s.byteLength)):t=n.data;for(var d;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof d&&(this.skipWarn_(d,u),d=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/It[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:n.pts+i*l,dts:n.dts+i*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:It[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),i++,u+=r}else"number"!=typeof d&&(d=u),u++;"number"==typeof d&&(this.skipWarn_(d,u),d=null),t=t.subarray(u)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},Ct.prototype=new Ot;var At,Dt=Ct;At=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},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)),i=new DataView(a.buffer).getUint32(0),n=8*s,t-=s},this.skipBits=function(e){var r;n>e?(i<<=e,n-=e):(e-=n,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var r=Math.min(n,e),a=i>>>32-r;return n-=r,n>0?i<<=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<n;++e)if(0!=(i&2147483648>>>e))return i<<=e,n-=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 Lt,Mt,Nt,Rt=At,Ut=z,Bt=Rt;Mt=function(){var e,t,i=0;Mt.prototype.init.call(this),this.push=function(n){var r;t?(r=new Uint8Array(t.byteLength+n.data.byteLength),r.set(t),r.set(n.data,t.byteLength),t=r):t=n.data;for(var a=t.byteLength;i<a-3;i++)if(1===t[i+2]){e=i+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}i+3!==e-2&&this.trigger("data",t.subarray(i+3,e-2));do{e++}while(1!==t[e]&&e<a);i=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(i+3,e-2)),i=e-2,e+=3;break;default:e+=3}t=t.subarray(i),e-=i,i=0},this.reset=function(){t=null,i=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},Mt.prototype=new Ut,Nt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Lt=function(){var e,t,i,n,r,a,s,o=new Mt;Lt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,o.push(e))},o.on("data",function(s){var o={trackId:t,pts:i,dts:n,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){var i,n,r=8,a=8;for(i=0;i<e;i++)0!==a&&(n=t.readExpGolomb(),a=(r+n+256)%256),r=0===a?r:a},r=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-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=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},a=function(e){var t,i,n,r,a,o,l,u,d,c,p,h,f=0,v=0,m=0,g=0,y=[1,1];if(t=new Bt(e),i=t.readUnsignedByte(),r=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),Nt[i]&&(a=t.readUnsignedExpGolomb(),3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(p=3!==a?8:12,h=0;h<p;h++)t.readBoolean()&&(h<6?s(16,t):s(64,t));if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),h=0;h<l;h++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),d=t.readUnsignedExpGolomb(),c=t.readBits(1),0===c&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:16*(u+1)-2*f-2*v,height:(2-c)*(d+1)*16-2*m-2*g,sarRatio:y}}},Lt.prototype=new Ut;var zt,Ft={H264Stream:Lt,NalByteStream:Mt},qt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Vt=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],n=e[t+5],r=(16&n)>>4;return i=i>=0?i:0,r?i+20:i+10},Ht=function e(t,i){return t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)?i:(i+=Vt(t,i),e(t,i))},Gt=function(e){var t=Ht(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},Wt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Xt=function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r},Yt=function(e,t,i){return unescape(Xt(e,t,i))},$t=function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},Kt=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},Jt=function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return qt[(60&e[t+2])>>>2];t++}return null},Qt=function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=Wt(e.subarray(10,14)));do{if((i=Wt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r<n.byteLength;r++)if(0===n[r]){var a=Yt(n,0,r);if("com.apple.streaming.transportStreamTimestamp"===a){var s=n.subarray(r+1),o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return o*=4,o+=3&s[7]}break}}t+=10,t+=i}while(t<e.byteLength);return null},Zt={isLikelyAacData:Gt,parseId3TagSize:Vt,parseAdtsSize:$t,parseType:Kt,parseSampleRate:Jt,parseAacTimestamp:Qt},ei=z,ti=Zt;zt=function(){var e=new Uint8Array,t=0;zt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var n,r,a,s,o=0,l=0;for(e.length?(s=e.length,e=new Uint8Array(i.byteLength+s),e.set(e.subarray(0,s)),e.set(i,s)):e=i;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=ti.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=ti.parseId3TagSize(e,l),l+o>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}n=e.length-l,e=n>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},zt.prototype=new ei;var ii,ni,ri,ai,si=zt,oi=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],li=oi,ui=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],di=ui,ci=z,pi=Z,hi=ue,fi=Se,vi=je,mi=jt,gi=ve,yi=Dt,bi=Ft.H264Stream,_i=si,wi=Zt.isLikelyAacData,Ti=ve.ONE_SECOND_IN_TS,Si=li,ki=di,xi=function(e,t){t.stream=e,this.trigger("log",t)},Ei=function(e,t){for(var i=Object.keys(t),n=0;n<i.length;n++){var r=i[n];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",xi.bind(e,r))}},Ci=function(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},ji=function(e,t,i,n,r,a){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:a,baseMediaDecodeTime:e}};ni=function(e,t){var i,n=[],r=0,a=0,s=1/0;t=t||{},i=t.firstSequenceNumber||0,ni.prototype.init.call(this),this.push=function(t){vi.collectDtsInfo(e,t),e&&Si.forEach(function(i){e[i]=t[i]}),n.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,d,c,p,h;if(0===n.length)return void this.trigger("done","AudioSegmentStream");o=fi.trimAdtsFramesByEarliestDts(n,e,r),e.baseMediaDecodeTime=vi.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),h=fi.prefixWithSilence(e,o,a,s),e.samples=fi.generateSampleTable(o),u=pi.mdat(fi.concatenateFrameData(o)),n=[],l=pi.moof(i,[e]),d=new Uint8Array(l.byteLength+u.byteLength),i++,d.set(l),d.set(u,l.byteLength),vi.clearDtsInfo(e),c=Math.ceil(1024*Ti/e.samplerate),o.length&&(p=o.length*c,this.trigger("segmentTimingInfo",ji(gi.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+p,o[0].pts+p,h||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+p})),this.trigger("data",{track:e,boxes:d}),this.trigger("done","AudioSegmentStream")},this.reset=function(){vi.clearDtsInfo(e),n=[],this.trigger("reset")}},ni.prototype=new ci,ii=function(e,t){var i,n,r,a=[],s=[];t=t||{},i=t.firstSequenceNumber||0,ii.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){vi.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],ki.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var n,r,o,l,u,d,c,p,h=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=hi.groupNalsIntoFrames(a),o=hi.groupFramesIntoGops(n),o[0][0].keyFrame||(r=this.getGopForFusion_(a[0],e),r?(h=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=hi.extendFirstKeyFrame(o)),s.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))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");vi.clearDtsInfo(e),o=f}vi.collectDtsInfo(e,o),e.samples=hi.generateSampleTable(o),u=pi.mdat(hi.concatenateNalData(o)),e.baseMediaDecodeTime=vi.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),c=o[0],p=o[o.length-1],this.trigger("segmentTimingInfo",ji(e.baseMediaDecodeTime,c.dts,c.pts,p.dts+p.duration,p.pts+p.duration,h)),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=pi.moof(i,[e]),d=new Uint8Array(l.byteLength+u.byteLength),i++,d.set(l),d.set(u,l.byteLength),this.trigger("data",{track:e,boxes:d}),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(){vi.clearDtsInfo(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var i,n,r,a,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)a=this.gopCache_[s],r=a.gop,e.pps&&Ci(e.pps[0],a.pps[0])&&e.sps&&Ci(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(i=t.dts-r.dts-r.duration)>=-1e4&&i<=45e3&&(!n||o>i)&&(n=a,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;t<s.length&&i<e.length&&(n=s[t],r=e[i],n.pts!==r.pts);)r.pts>n.pts?t++:(i++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?e:i===e.length?null:(u=e.slice(i),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,i,n,r,a,o;for(t=s.length-1,i=e.length-1,a=null,o=!1;t>=0&&i>=0;){if(n=s[t],r=e[i],n.pts===r.pts){o=!0;break}n.pts>r.pts?t--:(t===s.length-1&&(a=i),i--)}if(!o&&null===a)return null;var l;if(0===(l=o?i:a))return e;var u=e.slice(l),d=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=d.byteLength,u.duration=d.duration,u.nalCount=d.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}},ii.prototype=new ci,ai=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},void 0!==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,ai.prototype.init.call(this),this.push=function(e){return e.content||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))))}},ai.prototype=new ci,ai.prototype.flush=function(e){var t,i,n,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 void(++this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,ki.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Si.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,n=pi.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),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=gi.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=gi.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)i=this.pendingMetadata[r],i.cueTime=gi.metadataTsToSeconds(i.pts,o,this.keepOriginalTimestamps),s.metadata.push(i);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++)i=s.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ai.prototype.setRemux=function(e){this.remuxTracks=e},ri=function(e){var t,i,n=this,r=!0;ri.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 mi.MetadataStream,r.aacStream=new _i,r.audioTimestampRolloverStream=new mi.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new mi.TimestampRolloverStream("timed-metadata"),r.adtsStream=new yi,r.coalesceStream=new ai(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||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ni(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Ei(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new mi.MetadataStream,r.packetStream=new mi.TransportPacketStream,r.parseStream=new mi.TransportParseStream,r.elementaryStream=new mi.ElementaryStream,r.timestampRolloverStream=new mi.TimestampRolloverStream,r.adtsStream=new yi,r.h264Stream=new bi,r.captionStream=new mi.CaptionStream(e),r.coalesceStream=new ai(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?i||"audio"!==a.tracks[s].type||(i=a.tracks[s],i.timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=a.tracks[s],t.timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime);t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new ii(t,e),r.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ni(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,n.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Ei(this,r)},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,vi.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,vi.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.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(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=wi(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},ri.prototype=new ci;var Oi,Pi,Ii={Transmuxer:ri,VideoSegmentStream:ii,AudioSegmentStream:ni,AUDIO_PROPERTIES:Si,VIDEO_PROPERTIES:ki,generateSegmentTimingInfo:ji},Ai=function(e){return e>>>0},Di=function(e){return("00"+e.toString(16)).slice(-2)},Li={toUnsigned:Ai,toHexString:Di},Mi=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])},Ni=Mi,Ri=Li.toUnsigned,Ui=Ni,Bi=function e(t,i){var n,r,a,s,o,l=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=Ri(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=Ui(t.subarray(n+4,n+8)),s=r>1?n+r:t.byteLength,a===i[0]&&(1===i.length?l.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1)),o.length&&(l=l.concat(o)))),n=s;return l},zi=Bi,Fi=Li.toUnsigned,qi=V.getUint64,Vi=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=qi(e.subarray(4)):t.baseMediaDecodeTime=Fi(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Hi=Vi,Gi=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],u=65536&n.flags[0],d=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),u&&(n.durationIsEmpty=!0),!r&&d&&(n.baseDataOffsetIsMoof=!0),n},Wi=Gi,Xi=V.getUint64,Yi=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)},n=12;0===i.version?(i.earliestPresentationTime=t.getUint32(n),i.firstOffset=t.getUint32(n+4),n+=8):(i.earliestPresentationTime=Xi(e.subarray(n)),i.firstOffset=Xi(e.subarray(n+8)),n+=16),n+=2;var r=t.getUint16(n);for(n+=2;r>0;n+=12,r--)i.references.push({referenceType:(128&e[n])>>>7,referencedSize:2147483647&t.getUint32(n),subsegmentDuration:t.getUint32(n+4),startsWithSap:!!(128&e[n+8]),sapType:(112&e[n+8])>>>4,sapDeltaTime:268435455&t.getUint32(n+8)});return i},$i=Yi,Ki=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]}},Ji=Ki,Qi=Ji,Zi=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],d=n.getUint32(4),c=8;for(r&&(i.dataOffset=n.getInt32(c),c+=4),a&&d&&(t={flags:Qi(e.subarray(c,c+4))},c+=4,s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t),d--);d--;)t={},s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),l&&(t.flags=Qi(e.subarray(c,c+4)),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t);return i},en=Zi,tn=V,nn=tn.getUint64,rn=function(e){return new Date(1e3*e-20828448e5)},an=Ni,sn=zi,on=function(e){var t,i,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=[];for(t=0;t+4<e.length;t+=i)if(i=n.getUint32(t),t+=4,i<=0)r.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&e[t]){case 1:r.push("slice_layer_without_partitioning_rbsp");break;case 5:r.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:r.push("sei_rbsp");break;case 7:r.push("seq_parameter_set_rbsp");break;case 8:r.push("pic_parameter_set_rbsp");break;case 9:r.push("access_unit_delimiter_rbsp");break;default:r.push("UNKNOWN NAL - "+e[t]&31)}return r},ln={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:Oi(e.subarray(78,e.byteLength))}},avcC:function(e){var t,i,n,r,a=new DataView(e.buffer,e.byteOffset,e.byteLength),s={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},o=31&e[5];for(n=6,r=0;r<o;r++)i=a.getUint16(n),n+=2,s.sps.push(new Uint8Array(e.subarray(n,n+i))),n+=i;for(t=e[n],n++,r=0;r<t;r++)i=a.getUint16(n),n+=2,s.pps.push(new Uint8Array(e.subarray(n,n+i))),n+=i;return s},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},edts:function(e){return{boxes:Oi(e)}},elst:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:i.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),edits:[]},r=i.getUint32(4);for(t=8;r;r--)0===n.version?(n.edits.push({segmentDuration:i.getUint32(t),mediaTime:i.getInt32(t+4),mediaRate:i.getUint16(t+8)+i.getUint16(t+10)/65536}),t+=12):(n.edits.push({segmentDuration:nn(e.subarray(t)),mediaTime:nn(e.subarray(t+8)),mediaRate:i.getUint16(t+16)+i.getUint16(t+18)/65536}),t+=20);return n},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={majorBrand:an(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},n=8;n<e.byteLength;)i.compatibleBrands.push(an(e.subarray(n,n+4))),n+=4;return i},dinf:function(e){return{boxes:Oi(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:Oi(e.subarray(8))}},hdlr:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:an(e.subarray(8,12)),name:""},n=8;for(n=24;n<e.byteLength;n++){if(0===e[n]){n++;break}i.name+=String.fromCharCode(e[n])}return i.name=decodeURIComponent(escape(i.name)),i},mdat:function(e){return{byteLength:e.byteLength,nals:on(e)}},mdhd:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:i.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===r.version?(n+=4,r.creationTime=rn(i.getUint32(n)),n+=8,r.modificationTime=rn(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=8,r.duration=i.getUint32(n)):(r.creationTime=rn(i.getUint32(n)),n+=4,r.modificationTime=rn(i.getUint32(n)),n+=4,r.timescale=i.getUint32(n),n+=4,r.duration=i.getUint32(n)),n+=4,t=i.getUint16(n),r.language+=String.fromCharCode(96+(t>>10)),r.language+=String.fromCharCode(96+((992&t)>>5)),r.language+=String.fromCharCode(96+(31&t)),r},mdia:function(e){return{boxes:Oi(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:Oi(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&(i.streamDescriptor=Oi(e.subarray(28))[0]),i},moof:function(e){return{boxes:Oi(e)}},moov:function(e){return{boxes:Oi(e)}},mvex:function(e){return{boxes:Oi(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=4,n={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=rn(t.getUint32(i)),i+=8,n.modificationTime=rn(t.getUint32(i)),i+=4,n.timescale=t.getUint32(i),i+=8,n.duration=t.getUint32(i)):(n.creationTime=rn(t.getUint32(i)),i+=4,n.modificationTime=rn(t.getUint32(i)),i+=4,n.timescale=t.getUint32(i),i+=4,n.duration=t.getUint32(i)),i+=4,n.rate=t.getUint16(i)+t.getUint16(i+2)/16,i+=4,n.volume=t.getUint8(i)+t.getUint8(i+1)/8,i+=2,i+=2,i+=8,n.matrix=new Uint32Array(e.subarray(i,i+36)),i+=36,i+=24,n.nextTrackId=t.getUint32(i),n},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)i.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return i},sidx:$i,smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:Oi(e)}},ctts:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:i.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),compositionOffsets:[]},r=i.getUint32(4);for(t=8;r;t+=8,r--)n.compositionOffsets.push({sampleCount:i.getUint32(t),sampleOffset:i[0===n.version?"getUint32":"getInt32"](t+4)});return n},stss:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:i.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),syncSamples:[]},r=i.getUint32(4);for(t=8;r;t+=4,r--)n.syncSamples.push(i.getUint32(t));return n},stco:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},r=i.getUint32(4);for(t=8;r;t+=4,r--)n.chunkOffsets.push(i.getUint32(t));return n},stsc:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=i.getUint32(4),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;n;t+=12,n--)r.sampleToChunks.push({firstChunk:i.getUint32(t),samplesPerChunk:i.getUint32(t+4),sampleDescriptionIndex:i.getUint32(t+8)});return r},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:Oi(e.subarray(8))}},stsz:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:i.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)n.entries.push(i.getUint32(t));return n},stts:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},r=i.getUint32(4);for(t=8;r;t+=8,r--)n.timeToSamples.push({sampleCount:i.getUint32(t),sampleDelta:i.getUint32(t+4)});return n},styp:function(e){return ln.ftyp(e)},tfdt:Hi,tfhd:Wi,tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=4,n={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===n.version?(i+=4,n.creationTime=rn(t.getUint32(i)),i+=8,n.modificationTime=rn(t.getUint32(i)),i+=4,n.trackId=t.getUint32(i),i+=4,i+=8,n.duration=t.getUint32(i)):(n.creationTime=rn(t.getUint32(i)),i+=4,n.modificationTime=rn(t.getUint32(i)),i+=4,n.trackId=t.getUint32(i),i+=4,i+=4,n.duration=t.getUint32(i)),i+=4,i+=8,n.layer=t.getUint16(i),i+=2,n.alternateGroup=t.getUint16(i),i+=2,n.volume=t.getUint8(i)+t.getUint8(i+1)/8,i+=2,i+=2,n.matrix=new Uint32Array(e.subarray(i,i+36)),i+=36,n.width=t.getUint16(i)+t.getUint16(i+2)/65536,i+=4,n.height=t.getUint16(i)+t.getUint16(i+2)/65536,n},traf:function(e){return{boxes:Oi(e)}},trak:function(e){return{boxes:Oi(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:en,"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};Oi=function(e){for(var t,i,n,r,a,s=0,o=[],l=new ArrayBuffer(e.length),u=new Uint8Array(l),d=0;d<e.length;++d)u[d]=e[d];for(t=new DataView(l);s<e.byteLength;)i=t.getUint32(s),n=an(e.subarray(s+4,s+8)),r=i>1?s+i:e.byteLength,a=(ln[n]||function(e){return{data:e}})(e.subarray(s+8,r)),a.size=i,a.type=n,o.push(a),s=r;return o},Pi=function(e,t){var i;return t=t||0,i=new Array(2*t+1).join(" "),e.map(function(e,n){return i+e.type+"\n"+Object.keys(e).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(t){var n=i+" "+t+": ",r=e[t];if(r instanceof Uint8Array||r instanceof Uint32Array){var a=Array.prototype.slice.call(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return a?1===a.length?n+"<"+a.join("").slice(1)+">":n+"<\n"+a.map(function(e){return i+" "+e}).join("\n")+"\n"+i+" >":n+"<>"}return n+JSON.stringify(r,null,2).split("\n").map(function(e,t){return 0===t?e:i+" "+e}).join("\n")}).join("\n")+(e.boxes?"\n"+Pi(e.boxes,t+1):"")}).join("\n")};var un,dn={inspect:Oi,textify:Pi,parseType:an,findBox:sn,parseTraf:ln.traf,parseTfdt:ln.tfdt,parseHdlr:ln.hdlr,parseTfhd:ln.tfhd,parseTrun:ln.trun,parseSidx:ln.sidx},cn=function(e){for(var t=0,i=String.fromCharCode(e[t]),n="";"\0"!==i;)n+=i,t++,i=String.fromCharCode(e[t]);return n+=i},pn={uint8ToCString:cn},hn=pn.uint8ToCString,fn=V.getUint64,vn=function(e){var t,i,n,r,a,s,o,l,u=4,d=e[0];if(0===d){t=hn(e.subarray(u)),u+=t.length,i=hn(e.subarray(u)),u+=i.length;var c=new DataView(e.buffer);n=c.getUint32(u),u+=4,a=c.getUint32(u),u+=4,s=c.getUint32(u),u+=4,o=c.getUint32(u),u+=4}else if(1===d){var c=new DataView(e.buffer);n=c.getUint32(u),u+=4,r=fn(e.subarray(u)),u+=8,s=c.getUint32(u),u+=4,o=c.getUint32(u),u+=4,t=hn(e.subarray(u)),u+=t.length,i=hn(e.subarray(u)),u+=i.length}l=new Uint8Array(e.subarray(u,e.byteLength));var p={scheme_id_uri:t,value:i,timescale:n||1,presentation_time:r,presentation_time_delta:a,event_duration:s,id:o,message_data:l};return gn(d,p)?p:void 0},mn=function(e,t,i,n){return e||0===e?e/t:n+i/t},gn=function(e,t){var i="\0"!==t.scheme_id_uri,n=0===e&&yn(t.presentation_time_delta)&&i,r=1===e&&yn(t.presentation_time)&&i;return!(e>1)&&n||r},yn=function(e){return void 0!==e||null!==e},bn={parseEmsgBox:vn,scaleTime:mn};un="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var _n,wn,Tn,Sn,kn,xn,En,Cn=un,jn=Li.toUnsigned,On=Li.toHexString,Pn=zi,In=Ni,An=bn,Dn=Wi,Ln=en,Mn=Hi,Nn=V.getUint64,Rn=Cn,Un=ct.parseId3Frames;_n=function(e){var t={};return Pn(e,["moov","trak"]).reduce(function(e,t){var i,n,r,a,s;return(i=Pn(t,["tkhd"])[0])?(n=i[0],r=0===n?12:20,a=jn(i[r]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]),(s=Pn(t,["mdia","mdhd"])[0])?(n=s[0],r=0===n?12:20,e[a]=jn(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]),e):null):null},t)},wn=function(e,t){var i;i=Pn(t,["moof","traf"]);var n=i.reduce(function(t,i){var n,r=Pn(i,["tfhd"])[0],a=jn(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),s=e[a]||9e4,o=Pn(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);n=1===o[0]?Nn(o.subarray(4,12)):l.getUint32(4);var u=void 0;return"bigint"==typeof n?u=n/Rn.BigInt(s):"number"!=typeof n||isNaN(n)||(u=n/s),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},Tn=function(e,t){var i,n=Pn(t,["moof","traf"]),r=0,a=0;if(n&&n.length){var s=Pn(n[0],["tfhd"])[0],o=Pn(n[0],["trun"])[0],l=Pn(n[0],["tfdt"])[0];if(s){i=Dn(s).trackId}if(l){r=Mn(l).baseMediaDecodeTime}if(o){var u=Ln(o);u.samples&&u.samples.length&&(a=u.samples[0].compositionTimeOffset||0)}}var d=e[i]||9e4;"bigint"==typeof r&&(a=Rn.BigInt(a),d=Rn.BigInt(d));var c=(r+a)/d;return"bigint"==typeof c&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),c},Sn=function(e){var t=Pn(e,["moov","trak"]),i=[];return t.forEach(function(e){var t=Pn(e,["mdia","hdlr"]),n=Pn(e,["tkhd"]);t.forEach(function(e,t){var r,a,s,o=In(e.subarray(8,12)),l=n[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),i.push(s))})}),i},xn=function(e){var t=e[0],i=0===t?12:20;return jn(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])},kn=function(e){var t=Pn(e,["moov","trak"]),i=[];return t.forEach(function(e){var t,n,r={},a=Pn(e,["tkhd"])[0];a&&(t=new DataView(a.buffer,a.byteOffset,a.byteLength),n=t.getUint8(0),r.id=0===n?t.getUint32(12):t.getUint32(20));var s=Pn(e,["mdia","hdlr"])[0];if(s){var o=In(s.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=Pn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=In(u.subarray(4,8));var d,c,p=Pn(u,[r.codec])[0];p&&(/^[asm]vc[1-9]$/i.test(r.codec)?(d=p.subarray(78),c=In(d.subarray(4,8)),"avcC"===c&&d.length>11?(r.codec+=".",r.codec+=On(d[9]),r.codec+=On(d[10]),r.codec+=On(d[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(d=p.subarray(28),c=In(d.subarray(4,8)),"esds"===c&&d.length>20&&0!==d[19]?(r.codec+="."+On(d[19]),r.codec+="."+On(d[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Pn(e,["mdia","mdhd"])[0];h&&(r.timescale=xn(h)),i.push(r)}),i},En=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Pn(e,["emsg"]).map(function(e){var i=An.parseEmsgBox(new Uint8Array(e)),n=Un(i.message_data);return{cueTime:An.scaleTime(i.presentation_time,i.timescale,i.presentation_time_delta,t),duration:An.scaleTime(i.event_duration,i.timescale),frames:n}})};var Bn={findBox:Pn,parseType:In,timescale:_n,startTime:wn,compositionStartTime:Tn,videoTrackIds:Sn,tracks:kn,getTimescaleFromMediaHeader:xn,getEmsgID3:En},zn=dn.parseTrun,Fn=Bn.findBox,qn=Cn,Vn=function(e){var t=Fn(e,["moof","traf"]),i=Fn(e,["mdat"]),n=[];return i.forEach(function(e,i){var r=t[i];n.push({mdat:e,traf:r})}),n},Hn=function(e,t,i){var n=t,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,s=i.trackId,o=[];return e.forEach(function(e){var t=zn(e),i=t.samples;i.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof n?(e.pts=n+qn.BigInt(e.compositionTimeOffset),n+=qn.BigInt(e.duration)):(e.pts=n+e.compositionTimeOffset,n+=e.duration)}),o=o.concat(i)}),o},Gn={getMdatTrafPairs:Vn,parseSamples:Hn},Wn=De.discardEmulationPreventionBytes,Xn=Ye.CaptionStream,Yn=zi,$n=Hi,Kn=Wi,Jn=Gn.getMdatTrafPairs,Qn=Gn.parseSamples,Zn=function(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null},er=function(e,t,i){var n,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),d=Zn(r,t);if(n={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:Wn(u),trackId:i},d)n.pts=d.pts,n.dts=d.dts,s=d;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}n.pts=s.pts,n.dts=s.dts}l.seiNals.push(n)}return l},tr=function(e,t){var i={};return Jn(e).forEach(function(e){var n,r,a=e.mdat,s=e.traf,o=Yn(s,["tfhd"]),l=Kn(o[0]),u=l.trackId,d=Yn(s,["tfdt"]),c=d.length>0?$n(d[0]).baseMediaDecodeTime:0,p=Yn(s,["trun"]);t===u&&p.length>0&&(n=Qn(p,c,l),r=er(a,n,u),i[u]||(i[u]={seiNals:[],logs:[]}),i[u].seiNals=i[u].seiNals.concat(r.seiNals),i[u].logs=i[u].logs.concat(r.logs))}),i},ir=function(e,t,i){var n;if(null===t)return null;n=tr(e,t);var r=n[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:i}},nr=function(){var e,t,i,n,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new Xn,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,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"===(void 0===t?"undefined":mt(t))&&0===Object.keys(t).length)&&(i!==e[0]||n!==t[i])},this.parse=function(e,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))i=a[0],n=s[i];else if(null===i||!n)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return o=ir(e,i,n),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=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},rr=nr,ar=dn.parseTfdt,sr=zi,or=Bn.getTimescaleFromMediaHeader,lr=Gn.parseSamples,ur=Gn.getMdatTrafPairs,dr=function(){var e=9e4;this.init=function(t){var i=sr(t,["moov","trak","mdia","mdhd"])[0];i&&(e=or(i))},this.parseSegment=function(t){var i=[],n=ur(t),r=0;return n.forEach(function(t){var n=t.mdat,a=t.traf,s=sr(a,["tfdt"])[0],o=sr(a,["tfhd"])[0],l=sr(a,["trun"]);if(s){var u=ar(s);r=u.baseMediaDecodeTime}if(l.length&&o){var d=lr(l,r,o),c=0;d.forEach(function(t){var r=new TextDecoder("utf-8"),a=n.slice(c,c+t.size);if(sr(a,["vtte"])[0])return void(c+=t.size);sr(a,["vttc"]).forEach(function(n){var a=sr(n,["payl"])[0],s=sr(n,["sttg"])[0],o=t.pts/e,l=(t.pts+t.duration)/e,u=void 0,d=void 0;if(a)try{u=r.decode(a)}catch(e){console.error(e)}if(s)try{d=r.decode(s)}catch(e){console.error(e)}t.duration&&u&&i.push({cueText:u,start:o,end:l,settings:d})}),c+=t.size})}}),i}},cr=dr,pr=$e,hr=function(e){var t=31&e[1];return t<<=8,t|=e[2]},fr=function(e){return!!(64&e[1])},vr=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},mr=function(e,t){var i=hr(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},gr=function(e){var t=fr(e),i=4+vr(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},yr=function(e){var t={},i=fr(e),n=4+vr(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r,a,s;r=(15&e[n+1])<<8|e[n+2],a=3+r-4,s=(15&e[n+10])<<8|e[n+11];for(var o=12+s;o<a;){var l=n+o;t[(31&e[l+1])<<8|e[l+2]]=e[l],o+=5+((15&e[l+3])<<8|e[l+4])}return t}},br=function(e,t){switch(t[hr(e)]){case pr.H264_STREAM_TYPE:return"video";case pr.ADTS_STREAM_TYPE:return"audio";case pr.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},_r=function(e){if(!fr(e))return null;var t=4+vr(e);if(t>=e.byteLength)return null;var i,n=null;return i=e[t+7],192&i&&(n={},n.pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},wr=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}},Tr=function(e){for(var t,i=4+vr(e),n=e.subarray(i),r=0,a=0,s=!1;a<n.byteLength-3;a++)if(1===n[a+2]){r=a+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}a+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===(t=wr(31&n[a+3]))&&(s=!0);do{r++}while(1!==n[r]&&r<n.length);a=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}t=wr(31&n[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0),a=r-2,r+=3;break;default:r+=3}return n=n.subarray(a),r-=a,a=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===(t=wr(31&n[a+3]))&&(s=!0),s},Sr={parseType:mr,parsePat:gr,parsePmt:yr,parsePayloadUnitStartIndicator:fr,parsePesType:br,parsePesTime:_r,videoPacketContainsKeyFrame:Tr},kr=$e,xr=et.handleRollover,Er={};Er.ts=Sr,Er.aac=Zt;var Cr=ve.ONE_SECOND_IN_TS,jr=function(e,t){for(var i,n=0,r=188;r<e.byteLength;)if(71!==e[n]||71!==e[r])n++,r++;else{switch(i=e.subarray(n,r),Er.ts.parseType(i,t.pid)){case"pat":t.pid=Er.ts.parsePat(i);break;case"pmt":var a=Er.ts.parsePmt(i);t.table=t.table||{},Object.keys(a).forEach(function(e){t.table[e]=a[e]})}n+=188,r+=188}},Or=function(e,t,i){for(var n,r,a,s,o=0,l=188,u=!1;l<=e.byteLength;)if(71!==e[o]||71!==e[l]&&l!==e.byteLength)o++,l++;else{switch(n=e.subarray(o,l),Er.ts.parseType(n,t.pid)){case"pes":r=Er.ts.parsePesType(n,t.table),a=Er.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Er.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0)}if(u)break;o+=188,l+=188}for(l=e.byteLength,o=l-188,u=!1;o>=0;)if(71!==e[o]||71!==e[l]&&l!==e.byteLength)o--,l--;else{switch(n=e.subarray(o,l),Er.ts.parseType(n,t.pid)){case"pes":r=Er.ts.parsePesType(n,t.table),a=Er.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Er.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0)}if(u)break;o-=188,l-=188}},Pr=function(e,t,i){for(var n,r,a,s,o,l,u,d=0,c=188,p=!1,h={data:[],size:0};c<e.byteLength;)if(71!==e[d]||71!==e[c])d++,c++;else{switch(n=e.subarray(d,c),Er.ts.parseType(n,t.pid)){case"pes":if(r=Er.ts.parsePesType(n,t.table),a=Er.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(a&&!p&&(s=Er.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),p=!0),!i.firstKeyFrame)){if(a&&0!==h.size){for(o=new Uint8Array(h.size),l=0;h.data.length;)u=h.data.shift(),o.set(u,l),l+=u.byteLength;if(Er.ts.videoPacketContainsKeyFrame(o)){var f=Er.ts.parsePesTime(o);f?(i.firstKeyFrame=f,i.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.")}h.size=0}h.data.push(n),h.size+=n.byteLength}}if(p&&i.firstKeyFrame)break;d+=188,c+=188}for(c=e.byteLength,d=c-188,p=!1;d>=0;)if(71!==e[d]||71!==e[c])d--,c--;else{switch(n=e.subarray(d,c),Er.ts.parseType(n,t.pid)){case"pes":r=Er.ts.parsePesType(n,t.table),a=Er.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=Er.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),p=!0)}if(p)break;d-=188,c-=188}},Ir=function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=xr(e.dts,i),e.pts=xr(e.pts,i),e.dtsTime=e.dts/Cr,e.ptsTime=e.pts/Cr})}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=xr(e.dts,n),e.pts=xr(e.pts,n),e.dtsTime=e.dts/Cr,e.ptsTime=e.pts/Cr}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=xr(r.dts,n),r.pts=xr(r.pts,n),r.dtsTime=r.dts/Cr,r.ptsTime=r.pts/Cr}}},Ar=function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(Er.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((s=Er.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=Er.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){i=!0;break}if((s=Er.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=Er.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var l=Cr/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*l,pts:a+1024*n*l}]}},Dr=function(e){var t={pid:null,table:null},i={};jr(e,t);for(var n in t.table)if(t.table.hasOwnProperty(n)){var r=t.table[n];switch(r){case kr.H264_STREAM_TYPE:i.video=[],Pr(e,t,i),0===i.video.length&&delete i.video;break;case kr.ADTS_STREAM_TYPE:i.audio=[],Or(e,t,i),0===i.audio.length&&delete i.audio}}return i},Lr=function(e,t){var i,n=Er.aac.isLikelyAacData(e);return(i=n?Ar(e):Dr(e))&&(i.audio||i.video)?(Ir(i,t),i):null},Mr={inspect:Lr,parseAudioPes_:Or},Nr=function(e,t){t.on("data",function(t){var i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.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 i={start:{decode:ve.videoTsToSeconds(t.start.dts),presentation:ve.videoTsToSeconds(t.start.pts)},end:{decode:ve.videoTsToSeconds(t.end.dts),presentation:ve.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ve.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=ve.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){var i={start:{decode:ve.videoTsToSeconds(t.start.dts),presentation:ve.videoTsToSeconds(t.start.pts)},end:{decode:ve.videoTsToSeconds(t.end.dts),presentation:ve.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ve.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=ve.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})}),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:ve.videoTsToSeconds(t.start),end:ve.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ve.videoTsToSeconds(t.start),end:ve.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},Rr=function(){function e(t,i){o(this,e),this.options=i||{},this.self=t,this.init()}return vt(e,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Ii.Transmuxer(this.options),Nr(this.self,this.transmuxer)}},{key:"pushMp4Captions",value:function(e){this.captionParser||(this.captionParser=new rr,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])}},{key:"initMp4WebVttParser",value:function(e){this.webVttParser||(this.webVttParser=new cr);var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.webVttParser.init(t)}},{key:"getMp4WebVttText",value:function(e){this.webVttParser||(this.webVttParser=new cr);var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.webVttParser.parseSegment(t);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:i||[],data:t.buffer},[t.buffer])}},{key:"probeMp4StartTime",value:function(e){var t=e.timescales,i=e.data,n=Bn.startTime(t,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])}},{key:"probeMp4Tracks",value:function(e){var t=e.data,i=Bn.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:t},[t.buffer])}},{key:"probeEmsgID3",value:function(e){var t=e.data,i=e.offset,n=Bn.getEmsgID3(t,i);this.self.postMessage({action:"probeEmsgID3",id3Frames:n,emsgData:t},[t.buffer])}},{key:"probeTs",value:function(e){var t=e.data,i=e.baseStartTime,n="number"!=typeof i||isNaN(i)?void 0:i*ve.ONE_SECOND_IN_TS,r=Mr.inspect(t,n),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])}},{key:"clearAllMp4Captions",value:function(){this.captionParser&&this.captionParser.clearAllCaptions()}},{key:"clearParsedMp4Captions",value:function(){this.captionParser&&this.captionParser.clearParsedCaptions()}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.transmuxer.reset()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ve.secondsToVideoTs(t)))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ve.secondsToVideoTs(e.appendStart)))}},{key:"setRemux",value:function(e){this.transmuxer.setRemux(e.remux)}},{key:"flush",value:function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}},{key:"endTimeline",value:function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}();self.onmessage=function(e){if("init"===e.data.action&&e.data.options)return void(this.messageHandlers=new Rr(self,e.data.options));this.messageHandlers||(this.messageHandlers=new Rr(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}})),Qo=Yo(Jo),Zo=function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,d=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var c=e.data.segment.boxes||{data:e.data.segment.data},p={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==u&&(p.videoFrameDtsTime=u),void 0!==d&&(p.videoFramePtsTime=d),i(p)},el=function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)},tl=function(e,t){t.gopInfo=e.data.gopInfo},il=function(e){var t=e.transmuxer,i=e.bytes,n=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,d=e.onVideoSegmentTimingInfo,c=e.onAudioSegmentTimingInfo,p=e.onId3,h=e.onCaptions,f=e.onDone,v=e.onEndedTimeline,m=e.onTransmuxerLog,g=e.isEndOfTimeline,y=e.segment,b=e.triggerSegmentEventFn,_={buffer:[]},w=g,T=function(i){t.currentTransmux===e&&("data"===i.data.action&&Zo(i,_,s),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&tl(i,_),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&d(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&p([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&h(i.data.caption),"endedtimeline"===i.data.action&&(w=!1,v()),"log"===i.data.action&&m(i.data.log),"transmuxed"===i.data.type&&(w||(t.onmessage=null,el({transmuxedData:_,callback:f}),nl(t))))},S=function(){var e={message:"Received an error message from the transmuxer worker",metadata:{errorType:ze.Error.StreamingFailedToTransmuxSegment,segmentInfo:ku({segment:y})}};f(null,e)};if(t.onmessage=T,t.onerror=S,n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),i.byteLength){var k=i instanceof ArrayBuffer?i:i.buffer,x=i instanceof ArrayBuffer?0:i.byteOffset;b({type:"segmenttransmuxingstart",segment:y}),t.postMessage({action:"push",data:k,byteOffset:x,byteLength:i.byteLength},[k])}g&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},nl=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():il(e.currentTransmux))},rl=function(e,t){e.postMessage({action:t}),nl(e)},al=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void rl(t,e);t.transmuxQueue.push(rl.bind(null,t,e))},sl=function(e){al("reset",e)},ol=function(e){al("endTimeline",e)},ll=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void il(e);e.transmuxer.transmuxQueue.push(e)},ul=function(e){var t=new Qo;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},dl={reset:sl,endTimeline:ol,transmux:ll,createTransmuxer:ul},cl=function(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=tt()({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===i&&(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)),n(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)},pl={FAILURE:2,TIMEOUT:-101,ABORTED:-102},hl=function(e){e.forEach(function(e){e.abort()})},fl=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},vl=function(e){var t=e.target,i=Date.now()-t.requestTime,n={bandwidth:1/0,bytesReceived:0,roundTripTime:i||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n},ml=function(e,t){var i=t.requestType,n=$s({requestType:i,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:pl.TIMEOUT,xhr:t,metadata:n}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:pl.ABORTED,xhr:t,metadata:n}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:pl.FAILURE,xhr:t,metadata:n}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:pl.FAILURE,xhr:t,metadata:n}:null},gl=function(e,t,i,n){return function(r,a){var s=a.response,o=ml(r,a);if(o)return i(o,e);if(16!==s.byteLength)return i({status:a.status,message:"Invalid HLS key at URL: "+a.uri,code:pl.FAILURE,xhr:a},e);for(var l=new DataView(s),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]),d=0;d<t.length;d++)t[d].bytes=u;var c={uri:a.uri};return n({type:"segmentkeyloadcomplete",segment:e,keyInfo:c}),i(null,e)}},yl=function(e,t){"wvtt"===t&&e.transmuxer.postMessage({action:"initMp4WebVttParser",data:e.map.bytes})},bl=function(e,t,i){"wvtt"===t&&cl({action:"getMp4WebVttText",data:e.bytes,transmuxer:e.transmuxer,callback:function(t){var n=t.data,r=t.mp4VttCues;e.bytes=n,i(null,e,{mp4VttCues:r})}})},_l=function(e,t){var i=Object(ct.a)(e.map.bytes);if("mp4"!==i){var n=e.map.resolvedUri||e.map.uri,r=i||"unknown";return t({internal:!0,message:"Found unsupported "+r+" container for initialization segment at URL: "+n,code:pl.FAILURE,metadata:{mediaType:r}})}cl({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(i){var n=i.tracks,r=i.data;return e.map.bytes=r,n.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),"text"===t.type&&yl(e,t.codec))}),t(null)}})},wl=function(e){var t=e.segment,i=e.finishProcessingFn,n=e.triggerSegmentEventFn;return function(e,r){var a=ml(e,r);if(a)return i(a,t);var s=new Uint8Array(r.response);if(n({type:"segmentloaded",segment:t}),t.map.key)return t.map.encryptedBytes=s,i(null,t);t.map.bytes=s,_l(t,function(e){if(e)return e.xhr=r,e.status=r.status,i(e,t);i(null,t)})}},Tl=function(e){var t=e.segment,i=e.finishProcessingFn,n=e.responseType,r=e.triggerSegmentEventFn;return function(e,a){var s=ml(e,a);if(s)return i(s,t);r({type:"segmentloaded",segment:t});var o="arraybuffer"!==n&&a.responseText?Go(a.responseText.substring(t.lastReachedChar||0)):a.response;return t.stats=fl(a),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),i(null,t)}},Sl=function(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=e.triggerSegmentEventFn,v=t.map&&t.map.tracks||{},m=Boolean(v.audio&&v.video),g=r.bind(null,t,"audio","start"),y=r.bind(null,t,"audio","end"),b=r.bind(null,t,"video","start"),_=r.bind(null,t,"video","end"),w=function(){return ll({bytes:i,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,c(t,e)},onTrackInfo:function(e){n&&(m&&(e.isMuxed=!0),n(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:function(e){b&&void 0!==e.start&&(b(e.start),b=null),_&&void 0!==e.end&&_(e.end)},onVideoSegmentTimingInfo:function(e){var i={pts:{start:e.start.presentation,end:e.end.presentation},dts:{start:e.start.decode,end:e.end.decode}};f({type:"segmenttransmuxingtiminginfoavailable",segment:t,timingInfo:i}),a(e)},onAudioSegmentTimingInfo:function(e){var i={pts:{start:e.start.pts,end:e.end.pts},dts:{start:e.start.dts,end:e.end.dts}};f({type:"segmenttransmuxingtiminginfoavailable",segment:t,timingInfo:i}),s(e)},onId3:function(e,i){o(t,e,i)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:u,onEndedTimeline:function(){d()},onTransmuxerLog:h,onDone:function(e,i){p&&(e.type="combined"===e.type?"video":e.type,f({type:"segmenttransmuxingcomplete",segment:t}),p(i,t,e))},segment:t,triggerSegmentEventFn:f})};cl({action:"probeTs",transmuxer:t.transmuxer,data:i,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=i=e.data;var r=e.result;r&&(n(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),n=null),w()}})},kl=function(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=e.triggerSegmentEventFn,v=new Uint8Array(i);if(Object(ct.b)(v)){t.isFmp4=!0;var m=t.map.tracks;if(m.text&&(!m.audio||!m.video))return c(t,{data:v,type:"text"}),void bl(t,m.text.codec,p);var 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),n(t,g);var y=function(e,i){c(t,{data:v,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),i&&i.length&&o(t,i),e&&e.length&&l(t,e),p(null,t,{})};return void cl({action:"probeMp4StartTime",timescales:t.map.timescales,data:v,transmuxer:t.transmuxer,callback:function(e){var n=e.data,a=e.startTime;i=n.buffer,t.bytes=v=n,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),cl({action:"probeEmsgID3",data:v,transmuxer:t.transmuxer,offset:a,callback:function(e){var n=e.emsgData,r=e.id3Frames;if(i=n.buffer,t.bytes=v=n,!m.video||!n.byteLength||!t.transmuxer)return void y(void 0,r);cl({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:v,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){i=e.data.buffer,t.bytes=v=e.data,e.logs.forEach(function(e){h(Fe(e,{stream:"mp4CaptionParser"}))}),y(e.captions,r)}})}})}})}return t.transmuxer?(void 0===t.container&&(t.container=Object(ct.a)(v)),"ts"!==t.container&&"aac"!==t.container?(n(t,{hasAudio:!1,hasVideo:!1}),void p(null,t,{})):void Sl({segment:t,bytes:i,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h,triggerSegmentEventFn:f})):void p(null,t,{})},xl=function(e,t){var i=e.id,n=e.key,r=e.encryptedBytes,a=e.decryptionWorker,s=e.segment,o=e.doneFn,l=function e(n){if(n.data.source===i){a.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};a.onerror=function(){var e="An error occurred in the decryption worker",t=ku({segment:s}),i={message:e,metadata:{error:new Error(e),errorType:ze.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:s.key.resolvedUri||s.map.key.resolvedUri}}};o(i,s)},a.addEventListener("message",l);var u=void 0;u=n.bytes.slice?n.bytes.slice():new Uint32Array(Array.prototype.slice.call(n.bytes)),a.postMessage(go({source:i,encrypted:r,key:u,iv:n.iv}),[r.buffer,u.buffer])},El=function(e){var t=e.decryptionWorker,i=e.segment,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=e.triggerSegmentEventFn;f({type:"segmentdecryptionstart"}),xl({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:t,segment:i,doneFn:p},function(e){i.bytes=e,f({type:"segmentdecryptioncomplete",segment:i}),kl({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h,triggerSegmentEventFn:f})})},Cl=function(e){var t=e.activeXhrs,i=e.decryptionWorker,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=e.triggerSegmentEventFn,v=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,hl(t),p(e,g);if((v+=1)===t.length){var y=function(){if(g.encryptedBytes)return El({decryptionWorker:i,segment:g,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h,triggerSegmentEventFn:f});kl({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h,triggerSegmentEventFn:f})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return f({type:"segmentdecryptionstart",segment:g}),xl({decryptionWorker:i,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key,segment:g,doneFn:p},function(e){g.map.bytes=e,f({type:"segmentdecryptioncomplete",segment:g}),_l(g,function(e){if(e)return hl(t),p(e,g);y()})});y()}}}},jl=function(e){var t=e.loadendState,i=e.abortFn;return function(e){e.target.aborted&&i&&!t.calledAbortFn&&(i(),t.calledAbortFn=!0)}},Ol=function(e){var t=e.segment,i=e.progressFn;e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn;return function(e){if(!e.target.aborted)return t.stats=Fe(t.stats,vl(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),i(e,t)}},Pl=function(e){var t=e.xhr,i=e.xhrOptions,n=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,d=e.audioSegmentTimingInfoFn,c=e.id3Fn,p=e.captionsFn,h=e.isEndOfTimeline,f=e.endedTimelineFn,v=e.dataFn,m=e.doneFn,g=e.onTransmuxerLog,y=e.triggerSegmentEventFn,b=[],_=Cl({activeXhrs:b,decryptionWorker:n,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:d,id3Fn:c,captionsFn:p,isEndOfTimeline:h,endedTimelineFn:f,dataFn:v,doneFn:m,onTransmuxerLog:g,triggerSegmentEventFn:y});if(r.key&&!r.key.bytes){var w=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&w.push(r.map.key);var T=Fe(i,{uri:r.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),S=gl(r,w,_,y);y({type:"segmentkeyloadstart",segment:r,keyInfo:{uri:r.key.resolvedUri}});var k=t(T,S);b.push(k)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var x=Fe(i,{uri:r.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),E=gl(r,[r.map.key],_,y);y({type:"segmentkeyloadstart",segment:r,keyInfo:{uri:r.map.key.resolvedUri}});var C=t(x,E);b.push(C)}var j=Fe(i,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:ho(r.map),requestType:"segment-media-initialization"}),O=wl({segment:r,finishProcessingFn:_,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:r});var P=t(j,O);b.push(P)}var I=Fe(i,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:ho(r),requestType:"segment"}),A=Tl({segment:r,finishProcessingFn:_,responseType:I.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:r});var D=t(I,A);D.addEventListener("progress",Ol({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:d,id3Fn:c,captionsFn:p,isEndOfTimeline:h,endedTimelineFn:f,dataFn:v})),b.push(D);var L={};return b.forEach(function(e){e.addEventListener("loadend",jl({loadendState:L,abortFn:a}))}),function(){return hl(b)}},Il=ts("CodecUtils"),Al=function(e){var t=e.attributes||{};if(t.CODECS)return Object(rt.h)(t.CODECS)},Dl=function(e,t){var i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},Ll=function(e,t){if(!Dl(e,t))return!0;var i=t.attributes||{},n=e.mediaGroups.AUDIO[i.AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1},Ml=function(e){var t={};return e.forEach(function(e){var i=e.mediaType,n=e.type,r=e.details;t[i]=t[i]||[],t[i].push(Object(rt.i)(""+n+r))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return Il("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},Nl=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Rl=function(e,t){var i=t.attributes||{},n=Ml(Al(t)||[]);if(Dl(e,t)&&!n.audio&&!Ll(e,t)){var r=Ml(Object(rt.d)(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},Ul=ts("PlaylistSelector"),Bl=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||""})}},zl=function(e,t){if(!e)return"";var i=Xe.a.getComputedStyle(e);return i?i[t]:""},Fl=function(e,t){var i=e.slice();e.sort(function(e,n){var r=t(e,n);return 0===r?i.indexOf(e)-i.indexOf(n):r})},ql=function(e,t){var i=void 0,n=void 0;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||Xe.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||Xe.a.Number.MAX_VALUE,i-n},Vl=function(e,t){var i=void 0,n=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||Xe.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||Xe.a.Number.MAX_VALUE,i===n&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},Hl=function(e,t,i,n,r,a){if(e){var s={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},o=e.playlists;Rs.isAudioOnly(e)&&(o=a.getAudioTrackPlaylists_(),s.audioOnly=!0);var l=o.map(function(e){var t=void 0,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||Xe.a.Number.MAX_VALUE,{bandwidth:t,width:i,height:n,playlist:e}});Fl(l,function(e,t){return e.bandwidth-t.bandwidth}),l=l.filter(function(e){return!Rs.isIncompatible(e.playlist)});var u=l.filter(function(e){return Rs.isEnabled(e.playlist)});u.length||(u=l.filter(function(e){return!Rs.isDisabled(e.playlist)}));var d=u.filter(function(e){return e.bandwidth*Ho.BANDWIDTH_VARIANCE<t}),c=d[d.length-1],p=d.filter(function(e){return e.bandwidth===c.bandwidth})[0];if(!1===r){var h=p||u[0]||l[0];if(h&&h.playlist){var f="sortedPlaylistReps";return p&&(f="bandwidthBestRep"),u[0]&&(f="enabledPlaylistReps"),Ul("choosing "+Bl(h)+" using "+f+" with options",s),h.playlist}return Ul("could not choose a playlist with options",s),null}var v=d.filter(function(e){return e.width&&e.height});Fl(v,function(e,t){return e.width-t.width});var m=v.filter(function(e){return e.width===i&&e.height===n});c=m[m.length-1];var g=m.filter(function(e){return e.bandwidth===c.bandwidth})[0],y=void 0,b=void 0,_=void 0;g||(y=v.filter(function(e){return e.width>i||e.height>n}),b=y.filter(function(e){return e.width===y[0].width&&e.height===y[0].height}),c=b[b.length-1],_=b.filter(function(e){return e.bandwidth===c.bandwidth})[0]);var w=void 0;if(a.leastPixelDiffSelector){var T=v.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e});Fl(T,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),w=T[0]}var S=w||_||g||p||u[0]||l[0];if(S&&S.playlist){var k="sortedPlaylistReps";return w?k="leastPixelDiffRep":_?k="resolutionPlusOneRep":g?k="resolutionBestRep":p?k="bandwidthBestRep":u[0]&&(k="enabledPlaylistReps"),Ul("choosing "+Bl(S)+" using "+k+" with options",s),S.playlist}return Ul("could not choose a playlist with options",s),null}},Gl=function(){var e=this.useDevicePixelRatio?Xe.a.devicePixelRatio||1:1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),Hl(this.playlists.main,this.systemBandwidth,parseInt(zl(this.tech_.el(),"width"),10)*e,parseInt(zl(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},Wl=function(e){var t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio?Xe.a.devicePixelRatio||1:1;return isNaN(this.customPixelRatio)||(n=this.customPixelRatio),t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),Hl(this.playlists.main,t,parseInt(zl(this.tech_.el(),"width"),10)*n,parseInt(zl(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.playlistController_)}},Xl=function(e){var t=e.main,i=e.currentTime,n=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!Rs.isIncompatible(e)}),d=u.filter(Rs.isEnabled);d.length||(d=u.filter(function(e){return!Rs.isDisabled(e)}));var c=d.filter(Rs.hasAttribute.bind(null,"BANDWIDTH")),p=c.map(function(e){var t=l.getSyncPoint(e,r,o,i),u=t?1:2;return{playlist:e,rebufferingImpact:Rs.estimateSegmentRequestTime(a,n,e)*u-s}}),h=p.filter(function(e){return e.rebufferingImpact<=0});return Fl(h,function(e,t){return ql(t.playlist,e.playlist)}),h.length?h[0]:(Fl(p,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),p[0]||null)},Yl=function(){var e=this,t=this.playlists.main.playlists.filter(Rs.isEnabled);return Fl(t,function(e,t){return ql(e,t)}),t.filter(function(t){return!!Rl(e.playlists.main,t).video})[0]||null},$l=function(e){var t=0,i=void 0;return e.bytes&&(i=new Uint8Array(e.bytes),e.segments.forEach(function(e){i.set(e,t),t+=e.byteLength})),i},Kl=function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=t.textTracks().getTrackById(n);if(r)e[i]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},s=i,o=i,l=!1,u=a[n];u&&(s=u.label,o=u.language,l=u.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:l,label:s,language:o},!1).track}}},Jl=function(e){var t=e.inbandTextTracks,i=e.captionArray,n=e.timestampOffset;if(i){var r=Xe.a.WebKitDataCue||Xe.a.VTTCue;i.forEach(function(e){var i=e.stream;e.content?e.content.forEach(function(a){var s=new r(e.startTime+n,e.endTime+n,a.text);s.line=a.line,s.align="left",s.position=a.position,s.positionAlign="line-left",t[i].addCue(s)}):t[i].addCue(new r(e.startTime+n,e.endTime+n,e.text))})}},Ql=function(e){Object.defineProperties(e.frame,{id:{get:function(){return ze.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return ze.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return ze.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},Zl=function(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var a=Xe.a.WebKitDataCue||Xe.a.VTTCue,s=t.metadataTrack_;if(s&&(i.forEach(function(e){var t=e.cueTime+n;!("number"!=typeof t||Xe.a.isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach(function(e){var i=new a(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,Ql(i),s.addCue(i)})}),s.cues&&s.cues.length)){for(var o=s.cues,l=[],u=0;u<o.length;u++)o[u]&&l.push(o[u]);var d=l.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),c=Object.keys(d).sort(function(e,t){return Number(e)-Number(t)});c.forEach(function(e,t){var i=d[e],n=isFinite(r)?r:e,a=Number(c[t+1])||n;i.forEach(function(e){e.endTime=a})})}}},eu={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},tu=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),iu=function(e){var t=e.inbandTextTracks,i=e.dateRanges,n=t.metadataTrack_;if(n){var r=Xe.a.WebKitDataCue||Xe.a.VTTCue;i.forEach(function(e){var t=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(e)[Symbol.iterator]();!(t=(s=o.next()).done);t=!0){var l=s.value;if(!tu.has(l)){var u=new r(e.startTime,e.endTime,"");u.id=e.id,u.type="com.apple.quicktime.HLS",u.value={key:eu[l],data:e[l]},"scte35Out"!==l&&"scte35In"!==l||(u.value.data=new Uint8Array(u.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(u)}}}catch(e){i=!0,a=e}finally{try{!t&&o.return&&o.return()}finally{if(i)throw a}}e.processDateRange()})}},nu=function(e,t,i){e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,ze.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},ru=function(e,t,i){var n=void 0,r=void 0;if(i&&i.cues)for(n=i.cues.length;n--;)r=i.cues[n],r.startTime>=e&&r.endTime<=t&&i.removeCue(r)},au=function(e){var t=e.cues;if(t)for(var i={},n=t.length-1;n>=0;n--){var r=t[n],a=r.startTime+"-"+r.endTime+"-"+r.text;i[a]?e.removeCue(r):i[a]=r}},su=function(e,t,i){if(void 0===t||null===t||!e.length)return[];var n=Math.ceil((t-i+3)*pt.ONE_SECOND_IN_TS),r=void 0;for(r=0;r<e.length&&!(e[r].pts>n);r++);return e.slice(r)},ou=function(e,t,i){if(!t.length)return e;if(i)return t.slice();var n=t[0].pts,r=0;for(r;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)},lu=function(e,t,i,n){for(var r=Math.ceil((t-n)*pt.ONE_SECOND_IN_TS),a=Math.ceil((i-n)*pt.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s},uu=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r];if(a!==n[r])return!1;if(e[a]!==t[a])return!1}return!0},du=function(e,t,i){t=t||[];for(var n=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(n.push(a),(r+=s.duration)>i))return a}return 0===n.length?0:n[n.length-1]},cu=function(e){return"number"==typeof e&&isFinite(e)},pu=function(e,t,i){return"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.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&&i.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},hu=function(e,t,i){var n=t-Ho.BACK_BUFFER_LENGTH;e.length&&(n=Math.max(n,e.start(0)));var r=t-i;return Math.min(r,n)},fu=function(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=void 0===l?[]:l,d=e.mediaIndex,c=e.partIndex,p=e.timeline,h=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var v="number"==typeof c,m=e.segment.uri?"segment":"pre-segment",g=v?ms({preloadSegment:n})-1:0;return m+" ["+(s+d)+"/"+(s+h)+"]"+(v?" part ["+c+"/"+g+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(v?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+p+"] selected by ["+f+"] playlist ["+o+"]"},vu=function(e){return e+"TimingInfo"},mu=function(e){var t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==i?t<i?n:r.length?r.end(r.length-1):n:null},gu=function(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(i===n)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},yu=function(e){if(!e)return!1;var t=e.pendingTimelineChange({type:"audio"}),i=e.pendingTimelineChange({type:"main"}),n=t&&i,r=n&&t.to!==i.to;return!(!n||-1===t.from||-1===i.from||!r)},bu=function(e){var t=e.timelineChangeController_.pendingTimelineChange({type:"audio"}),i=e.timelineChangeController_.pendingTimelineChange({type:"main"});return t&&i&&t.to<i.to},_u=function(e){var t=e.pendingSegment_;if(t){if(gu({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&yu(e.timelineChangeController_)){if(bu(e))return void e.timelineChangeController_.trigger("audioTimelineBehind");e.timelineChangeController_.trigger("fixBadTimelineChange")}}},wu=function(e){var t=0;return["video","audio"].forEach(function(i){var n=e[i+"TimingInfo"];if(n){var r=n.start,a=n.end,s=void 0;"bigint"==typeof r||"bigint"==typeof a?s=Xe.a.BigInt(a)-Xe.a.BigInt(r):"number"==typeof r&&"number"==typeof a&&(s=a-r),void 0!==s&&s>t&&(t=s)}}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},Tu=function(e){var t=e.segmentDuration,i=e.maxDuration;return!!t&&Math.round(t)>i+1/30},Su=function(e,t){if("hls"!==t)return null;var i=wu({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;var n=e.playlist.targetDuration,r=Tu({segmentDuration:i,maxDuration:2*n}),a=Tu({segmentDuration:i,maxDuration:n}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+i+" when the reported duration is "+e.duration+" and the target duration is "+n+". 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},ku=function(e){var t=e.type,i=e.segment;if(i){var n=Boolean(i.key||i.map&&i.map.ke),r=Boolean(i.map&&!i.map.bytes),a=void 0===i.startOfSegment?i.start:i.startOfSegment;return{type:t||i.type,uri:i.resolvedUri||i.uri,start:a,duration:i.duration,isEncrypted:n,isMediaInitialization:r}}},xu=function(e){function t(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!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");return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,i.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,i.captionServices_=e.captionServices,i.exactManifestTimings=e.exactManifestTimings,i.addMetadataToTextTrack=e.addMetadataToTextTrack,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.shouldForceTimestampOffsetAfterResync_=!1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=!1,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_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.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_=ts("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(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_():_u(i)}),i.sourceUpdater_.on("codecschange",function(e){i.trigger(tt()({type:"codecschange"},e))}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()?i.processCallQueue_():_u(i)}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(e){i.trigger(tt()({type:"timelinechange"},e)),i.hasEnoughInfoToLoad_()?i.processLoadQueue_():_u(i),i.hasEnoughInfoToAppend_()?i.processCallQueue_():_u(i)}),i}return s(t,e),vt(t,[{key:"createTransmuxer_",value:function(){return dl.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}},{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}},{key:"dispose",value:function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&Xe.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}},{key:"setAudio",value:function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}},{key:"abort",value:function(){if("WAITING"!==this.state)return this.pendingSegment_&&(this.pendingSegment_=null),void this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,Xe.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}},{key:"checkForAbort_",value:function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}},{key:"error",value:function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.transmuxer_&&dl.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return qe();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}},{key:"initSegmentForMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var i=yo(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e}},{key:"segmentKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var i=bo(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&!this.paused()}},{key:"load",value: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"))}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&!(this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)){var i=this.playlist_,n=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(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_("Playlist update:\ncurrentTime: "+this.currentTime_()+"\nbufferedEnd: "+cs(this.buffered_())+"\n",this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){if(null!==this.mediaIndex){!e.endList&&"number"==typeof e.partTargetDuration?this.resetLoader():this.resyncLoader()}return this.currentMediaInfo_=void 0,void this.trigger("playlistupdate")}var a=e.mediaSequence-i.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}}n&&(n.mediaIndex-=a,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(Xe.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"resetEverything",value:function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}},{key:"resyncLoader",value:function(){this.transmuxer_&&dl.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;var e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"===this.sourceType_&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},{key:"remove",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");var r=1,a=function(){0===--r&&i()};!n&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=lu(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a));for(var s in this.inbandTextTracks_)ru(e,t,this.inbandTextTracks_[s]);ru(e,t,this.segmentMetadataTrack_),a()}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&Xe.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Xe.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&Xe.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Xe.a.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();if(e){var t={segmentInfo:ku({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}}}},{key:"isEndOfStream_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaIndex,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.partIndex;if(!t||!this.mediaSource_)return!1;var n="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a}},{key:"chooseNextRequest_",value:function(){var e=this.buffered_(),t=cs(e)||0,i=ps(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=du(this.currentTimeline_,a,t),this.logger_("choose next request. Can not find sync point. Fallback to media Index: "+s.mediaIndex);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var u=void 0,d=void 0,c=void 0,p=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_("chooseNextRequest_ request after Quality Switch:\nFor TargetTime: "+p+".\nCurrentTime: "+this.currentTime_()+"\nBufferedEnd: "+t+"\nFetch At Buffer: "+this.fetchAtBuffer_+"\n",this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){var h=this.getSyncInfoFromMediaSequenceSync_(p);if(!h){var f="No sync info found while using media sequence sync";return this.error({message:f,metadata:{errorType:ze.Error.StreamingFailedToSelectNextSegment,error:new Error(f)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_("chooseNextRequest_ mediaSequence syncInfo ("+h.start+" --\x3e "+h.end+")"),u=h.segmentIndex,d=h.partIndex,c=h.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");var v=Rs.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:p,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});u=v.segmentIndex,d=v.partIndex,c=v.startTime}s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+p:"currentTime "+p,s.mediaIndex=u,s.startOfSegment=c,s.partIndex=d,this.logger_("choose next request. Playlist switched and we have a sync point. Media Index: "+s.mediaIndex+" ")}var m=a[s.mediaIndex],g=m&&"number"==typeof s.partIndex&&m.parts&&m.parts[s.partIndex];if(!m||"number"==typeof s.partIndex&&!g)return null;"number"!=typeof s.partIndex&&m.parts&&(s.partIndex=0,g=m.parts[0]);var y=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&g&&!y&&!g.independent)if(0===s.partIndex){var b=a[s.mediaIndex-1],_=b.parts&&b.parts.length&&b.parts[b.parts.length-1];_&&_.independent&&(s.mediaIndex-=1,s.partIndex=b.parts.length-1,s.independent="previous segment")}else m.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");var w=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&w&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,s.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(s))}},{key:"getSyncInfoFromMediaSequenceSync_",value:function(e){if(!this.mediaSequenceSync_)return null;var t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_("getSyncInfoFromMediaSequenceSync_. Pulled target time from "+e+" to "+t);var i=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!i)return null;if(!i.isAppended)return i;var n=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return n?(n.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),n):null}},{key:"generateSegmentInfo_",value:function(e){var t=e.independent,i=e.playlist,n=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=i.segments[n],d="number"==typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:d?s:null,isSyncRequest:a,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:d&&d.duration||u.duration,segment:u,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},p=void 0!==o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:p});var h=cs(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(c.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=su(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c}},{key:"timestampOffsetForSegment_",value:function(e){return mu(e)}},{key:"earlyAbortWhenNeeded_",value:function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),i=e.bandwidth,n=this.pendingSegment_.duration,r=Rs.estimateSegmentRequestTime(n,i,this.playlist_,e.bytesReceived),a=ls(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=Xl({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a,l=o-s.rebufferingImpact,u=.5;a<=1/30&&(u=1),!s.playlist||s.playlist.uri===this.playlist_.uri||l<u||(this.bandwidth=s.playlist.attributes.BANDWIDTH*Ho.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}}},{key:"handleAbort_",value:function(e){this.logger_("Aborting "+fu(e)),this.mediaRequestsAborted+=1}},{key:"handleProgress_",value:function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}},{key:"handleTrackInfo_",value:function(e,t){var i=t,n=i.hasAudio,r=i.hasVideo,a={segmentInfo:ku({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:n,hasVideo:r}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:a}),this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},uu(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_():_u(this)))}},{key:"handleTimingInfo_",value:function(e,t,i,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=vu(t);r[a]=r[a]||{},r[a][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()?this.processCallQueue_():_u(this)}}},{key:"handleCaptions_",value:function(e,t){var i=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],a=t.startTime,s=t.endTime,o=t.captions,l=i.inbandTextTracks_;i.logger_("adding cues from "+a+" -> "+s+" for "+e),Kl(l,i.vhs_.tech_,e),ru(a,s,l[e]),Jl({captionArray:o,inbandTextTracks:l,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}}},{key:"handleId3_",value:function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i));this.addMetadataToTextTrack(i,t,this.duration_())}}},{key:"processMetadataQueue_",value:function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}},{key:"processCallQueue_",value:function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})}},{key:"processLoadQueue_",value:function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})}},{key:"hasEnoughInfoToLoad_",value:function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!gu({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}},{key:"getCurrentMediaInfo_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pendingSegment_;return e&&e.trackInfo||this.currentMediaInfo_}},{key:"getMediaInfo_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pendingSegment_;return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}},{key:"getPendingSegmentPlaylist",value:function(){return this.pendingSegment_?this.pendingSegment_.playlist:null}},{key:"hasEnoughInfoToAppend_",value:function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;return!(n&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!gu({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}},{key:"handleData_",value:function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return _u(this),void this.callQueue_.push(this.handleData_.bind(this,e,t));var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[vu(t.type)].start;else{var n=this.getCurrentMediaInfo_(),r="main"===this.loaderType_&&n&&n.hasVideo,a=void 0;r&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:r,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==i.mediaIndex||s.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}}},{key:"updateAppendInitSegmentStatus",value:function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}},{key:"getInitSegmentAndUpdateState_",value:function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var a=yo(n);if(this.activeInitSegmentId_===a)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null}},{key:"handleQuotaExceededError_",value:function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+us(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+us(o).join(", "));var l=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,d=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(u-l<=1&&c-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+us(s).join(", ")+", video buffer: "+us(o).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:n,type:r,bytes:a}));var p=this.currentTime_(),h=p-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=Xe.a.setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0)}},{key:"handleAppendError_",value:function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;if(t){if(22===t.code)return void this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error({message:n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id,metadata:{errorType:ze.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}},{key:"appendToSourceBuffer_",value:function(e){var t=e.segmentInfo,i=e.type,n=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;n&&(s.unshift(n),o+=n.byteLength),a=$l({bytes:o,segments:s})}var l={segmentInfo:ku({type:this.loaderType_,segment:t})};this.trigger({type:"segmentappendstart",metadata:l}),this.sourceUpdater_.appendBuffer({segmentInfo:t,type:i,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:i,bytes:a}))}},{key:"handleSegmentTimingInfo_",value:function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}}},{key:"appendData_",value:function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}}},{key:"loadSegment_",value:function(e){var t=this;if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return _u(this),void this.loadQueue_.push(function(){var i=tt()({},e,{forceTimestampOffset:!0});tt()(e,t.generateSegmentInfo_(i)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)});this.updateTransmuxerAndRequestSegment_(e)}},{key:"updateTransmuxerAndRequestSegment_",value:function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,s=n||r&&a;this.logger_("Requesting\n"+He(e.uri)+"\n"+fu(e)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Pl({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,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(i){var n=i.message,r=i.level,a=i.stream;t.logger_(fu(e)+" logged from transmuxer stream "+a+" as a "+r+": "+n)},triggerSegmentEventFn:function(e){var i=e.type,n=e.segment,r=e.keyInfo,a=e.trackInfo,s=e.timingInfo,o=ku({segment:n}),l={segmentInfo:o};r&&(l.keyInfo=r),a&&(l.trackInfo=a),s&&(l.timingInfo=s),t.trigger({type:i,metadata:l})}})}},{key:"trimBackBuffer_",value:function(e){var t=hu(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,i=e.part,n=e.segment.key||e.segment.map&&e.segment.map.key,r=e.segment.map&&!e.segment.map.bytes,a={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:n,isMediaInitialization:r},s=e.playlist.segments[e.mediaIndex-1];if(s&&s.timeline===t.timeline&&(s.videoTimingInfo?a.baseStartTime=s.videoTimingInfo.transmuxedDecodeEnd:s.audioTimingInfo&&(a.baseStartTime=s.audioTimingInfo.transmuxedDecodeEnd)),t.key){var o=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);a.key=this.segmentKey(t.key),a.key.iv=o}return t.map&&(a.map=this.initSegmentForMap(t.map)),a}},{key:"saveTransferStats_",value:function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}},{key:"saveBandwidthRelatedStats_",value:function(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<1/60)return void this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60);var i={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:i}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}},{key:"handleTimeout_",value:function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}},{key:"segmentRequestFinished_",value:function(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===pl.ABORTED)return;return this.pause(),e.code===pl.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=ou(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}}},{key:"setTimeMapping_",value:function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}},{key:"updateMediaSecondsLoaded_",value:function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}},{key:"shouldUpdateTransmuxerTimestampOffset_",value:function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}},{key:"trueSegmentStart_",value:function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!s)return l.start;var u=i.segments[n-1];return 0!==n&&u&&void 0!==u.start&&u.end===r+a?o.start:r}},{key:"waitForAppendsToComplete_",value:function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&n,s=!this.audioDisabled_&&i&&!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))}},{key:"checkAppendsDone_",value:function(e){this.checkForAbort_(e.requestId)||0===--e.waitingOnAppends&&this.handleAppendsDone_()}},{key:"checkForIllegalMediaSwitch",value:function(e){var t=pu(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}},{key:"updateSourceBufferTimestampOffset_",value:function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}}},{key:"getSegmentStartTimeForTimestampOffsetCalculation_",value:function(e){var t=e.videoTimingInfo,i=e.audioTimingInfo,n=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i&&"number"==typeof i.transmuxedDecodeStart?i.transmuxedDecodeStart:n.start:n.start}},{key:"updateTimingInfoEnd_",value:function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo,n=i&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}},{key:"handleAppendsDone_",value:function(){if(this.pendingSegment_){var e={segmentInfo:ku({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_;t.part&&t.part.syncInfo?t.part.syncInfo.markAppended():t.segment.syncInfo&&t.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:"main"===this.loaderType_});var i=Su(t,this.sourceType_);if(i&&("warn"===i.severity?ze.log.warn(i.message):this.logger_(i.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",t.isSyncRequest&&(this.trigger("syncinfoupdate"),!t.hasAppendedData_))return void this.logger_("Throwing away un-appended sync request "+fu(t));this.logger_("Appended "+fu(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var n=t.segment,r=t.part,a=n.end&&this.currentTime_()-n.end>3*t.playlist.targetDuration,s=r&&r.end&&this.currentTime_()-r.end>3*t.playlist.partTargetDuration;if(a||s)return this.logger_("bad "+(a?"segment":"part")+" "+fu(t)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}},{key:"recordThroughput_",value:function(e){if(e.duration<1/60)return void this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60);var t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,i=t.start,n=t.end;if(cu(i)&&cu(n)){ru(i,n,this.segmentMetadataTrack_);var r=Xe.a.WebKitDataCue||Xe.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:n},s=JSON.stringify(a),o=new r(i,n,s);o.value=a,this.segmentMetadataTrack_.addCue(o)}}}},{key:"mediaSequenceSync_",get:function(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}}]),t}(ze.EventTarget),Eu=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},Cu=["video","audio"],ju=function(e,t){var i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]},Ou=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null},Pu=function e(t,i){if(0!==i.queue.length){var n=0,r=i.queue[n];if("mediaSource"===r.type)return void(i.updating()||"closed"===i.mediaSource.readyState||(i.queue.shift(),r.action(i),r.doneFn&&r.doneFn(),e("audio",i),e("video",i)));if("mediaSource"!==t&&i.ready()&&"closed"!==i.mediaSource.readyState&&!ju(t,i)){if(r.type!==t){if(null===(n=Ou(t,i.queue)))return;r=i.queue[n]}return i.queue.splice(n,1),i.queuePending[t]=r,r.action(t,i),r.doneFn?void 0:(i.queuePending[t]=null,void e(t,i))}}},Iu=function(e,t){var i=t[e+"Buffer"],n=Eu(e);i&&(i.removeEventListener("updateend",t["on"+n+"UpdateEnd_"]),i.removeEventListener("error",t["on"+n+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},Au=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Du={appendBuffer:function(e,t,i){return function(n,r){var a=r[n+"Buffer"];if(Au(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+n+"Buffer");try{a.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+n+"Buffer"),r.queuePending[n]=null,i(e)}}}},remove:function(e,t){return function(i,n){var r=n[i+"Buffer"];if(Au(n.mediaSource,r)){n.logger_("Removing "+e+" to "+t+" from "+i+"Buffer");try{r.remove(e,t)}catch(r){n.logger_("Remove "+e+" to "+t+" from "+i+"Buffer failed")}}}},timestampOffset:function(e){return function(t,i){var n=i[t+"Buffer"];Au(i.mediaSource,n)&&(i.logger_("Setting "+t+"timestampOffset to "+e),n.timestampOffset=e)}},callback:function(e){return function(t,i){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){ze.log.warn("Failed to call media source endOfStream",e)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){ze.log.warn("Failed to set media source duration",e)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var i=t[e+"Buffer"];if(Au(t.mediaSource,i)){t.logger_("calling abort on "+e+"Buffer");try{i.abort()}catch(t){ze.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},addSourceBuffer:function(e,t){return function(i){var n=Eu(e),r=Object(rt.e)(t);i.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=i.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",i["on"+n+"UpdateEnd_"]),a.addEventListener("error",i["on"+n+"Error_"]),i.codecs[e]=t,i[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var i=t[e+"Buffer"];if(Iu(e,t),Au(t.mediaSource,i)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(i)}catch(t){ze.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},changeType:function(e){return function(t,i){var n=i[t+"Buffer"],r=Object(rt.e)(e);if(Au(i.mediaSource,n)){var a=e.substring(0,e.indexOf(".")),s=i.codecs[t];if(s.substring(0,s.indexOf("."))!==a){var o={codecsChangeInfo:{from:s,to:e}};i.trigger({type:"codecschange",metadata:o}),i.logger_("changing "+t+"Buffer codec from "+s+" to "+e);try{n.changeType(r),i.codecs[t]=e}catch(e){o.errorType=ze.Error.StreamingCodecsChangeError,o.error=e,e.metadata=o,i.error_=e,i.trigger("error"),ze.log.warn("Failed to changeType on "+t+"Buffer",e)}}}}}},Lu=function(e){var t=e.type,i=e.sourceUpdater,n=e.action,r=e.doneFn,a=e.name;i.queue.push({type:t,action:n,doneFn:r,name:a}),Pu(t,i)},Mu=function(e,t){return function(i){var n=t[e+"Buffered"](),r=Ve(n);if(t.logger_('received "updateend" event for '+e+" Source Buffer: ",r),t.queuePending[e]){var a=t.queuePending[e].doneFn;t.queuePending[e]=null,a&&a(t[e+"Error_"])}Pu(e,t)}},Nu=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.mediaSource=e,i.sourceopenListener_=function(){return Pu("mediaSource",i)},i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_),i.logger_=ts("SourceUpdater"),i.audioTimestampOffset_=0,i.videoTimestampOffset_=0,i.queue=[],i.queuePending={audio:null,video:null},i.delayedAudioAppendQueue_=[],i.videoAppendQueued_=!1,i.codecs={},i.onVideoUpdateEnd_=Mu("video",i),i.onAudioUpdateEnd_=Mu("audio",i),i.onVideoError_=function(e){i.videoError_=e},i.onAudioError_=function(e){i.audioError_=e},i.createdSourceBuffers_=!1,i.initializedEme_=!1,i.triggeredReady_=!1,i}return s(t,e),vt(t,[{key:"initializedEme",value:function(){this.initializedEme_=!0,this.triggerReady()}},{key:"hasCreatedSourceBuffers",value:function(){return this.createdSourceBuffers_}},{key:"hasInitializedAnyEme",value:function(){return this.initializedEme_}},{key:"ready",value:function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}},{key:"createSourceBuffers",value:function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}},{key:"triggerReady",value:function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}},{key:"addSourceBuffer",value:function(e,t){Lu({type:"mediaSource",sourceUpdater:this,action:Du.addSourceBuffer(e,t),name:"addSourceBuffer"})}},{key:"abort",value:function(e){Lu({type:e,sourceUpdater:this,action:Du.abort(e),name:"abort"})}},{key:"removeSourceBuffer",value:function(e){if(!this.canRemoveSourceBuffer())return void ze.log.error("removeSourceBuffer is not supported!");Lu({type:"mediaSource",sourceUpdater:this,action:Du.removeSourceBuffer(e),name:"removeSourceBuffer"})}},{key:"canRemoveSourceBuffer",value:function(){return!ze.browser.IS_FIREFOX&&Xe.a.MediaSource&&Xe.a.MediaSource.prototype&&"function"==typeof Xe.a.MediaSource.prototype.removeSourceBuffer}},{key:"canChangeType",value:function(){return this.constructor.canChangeType()}},{key:"changeType",value:function(e,t){if(!this.canChangeType())return void ze.log.error("changeType is not supported!");Lu({type:e,sourceUpdater:this,action:Du.changeType(t),name:"changeType"})}},{key:"addOrChangeSourceBuffers",value:function(e){var t=this;if(!e||"object"!==(void 0===e?"undefined":mt(e))||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(i){var n=e[i];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(i,n);t.canChangeType()&&t.changeType(i,n)})}},{key:"appendBuffer",value:function(e,t){var i=this,n=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(Lu({type:r,sourceUpdater:this,action:Du.appendBuffer(a,n||{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){i.appendBuffer.apply(i,e)})}}},{key:"audioBuffered",value:function(){return Au(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:qe()}},{key:"videoBuffered",value:function(){return Au(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:qe()}},{key:"buffered",value:function(){var e=Au(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Au(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():ss(this.audioBuffered(),this.videoBuffered())}},{key:"setDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge;Lu({type:"mediaSource",sourceUpdater:this,action:Du.duration(e),name:"duration",doneFn:t})}},{key:"endOfStream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge;"string"!=typeof e&&(e=void 0),Lu({type:"mediaSource",sourceUpdater:this,action:Du.endOfStream(e),name:"endOfStream",doneFn:t})}},{key:"removeAudio",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge;if(!this.audioBuffered().length||0===this.audioBuffered().end(0))return void i();Lu({type:"audio",sourceUpdater:this,action:Du.remove(e,t),doneFn:i,name:"remove"})}},{key:"removeVideo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ge;if(!this.videoBuffered().length||0===this.videoBuffered().end(0))return void i();Lu({type:"video",sourceUpdater:this,action:Du.remove(e,t),doneFn:i,name:"remove"})}},{key:"updating",value:function(){return!(!ju("audio",this)&&!ju("video",this))}},{key:"audioTimestampOffset",value:function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Lu({type:"audio",sourceUpdater:this,action:Du.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}},{key:"videoTimestampOffset",value:function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(Lu({type:"video",sourceUpdater:this,action:Du.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}},{key:"audioQueueCallback",value:function(e){this.audioBuffer&&Lu({type:"audio",sourceUpdater:this,action:Du.callback(e),name:"callback"})}},{key:"videoQueueCallback",value:function(e){this.videoBuffer&&Lu({type:"video",sourceUpdater:this,action:Du.callback(e),name:"callback"})}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),Cu.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return Iu(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}],[{key:"canChangeType",value:function(){return Xe.a.SourceBuffer&&Xe.a.SourceBuffer.prototype&&"function"==typeof Xe.a.SourceBuffer.prototype.changeType}}]),t}(ze.EventTarget),Ru=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Uu=function(e){var t=new Uint8Array(e);return Array.from(t).map(function(e){return e.toString(16).padStart(2,"0")}).join("")},Bu=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),zu=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded."))}return s(t,e),t}(Error),Fu=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.mediaSource_=null,n.subtitlesTrack_=null,n.featuresNativeTextTracks_=e.featuresNativeTextTracks,n.loadVttJs=e.loadVttJs,n.shouldSaveSegmentTimingInfo_=!1,n}return s(t,e),vt(t,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return qe();var e=this.subtitlesTrack_.cues;return qe([[e[0].startTime,e[e.length-1].startTime]])}},{key:"initSegmentForMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var i=yo(e),n=this.initSegments_[i];if(t&&!n&&e.bytes){var r=Bu.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Bu,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return n||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return void 0===e?this.subtitlesTrack_:(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(e,t){ru(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var i=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",i),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"timestampOffsetForSegment_",value:function(){return null}},{key:"chooseNextRequest_",value:function(){return this.skipEmptySegments_(ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"chooseNextRequest_",this).call(this))}},{key:"skipEmptySegments_",value:function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}},{key:"stopForError",value:function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}},{key:"segmentRequestFinished_",value:function(e,t,i){var n=this;if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===pl.TIMEOUT&&this.handleTimeout_(),e.code===pl.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_,a=i.mp4VttCues&&i.mp4VttCues.length;a&&(r.mp4VttCues=i.mp4VttCues),this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),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 Xe.a.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(function(){return n.segmentRequestFinished_(e,t,i)},function(){return n.stopForError({message:"Error loading vtt.js"})});s.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message,metadata:{errorType:ze.Error.StreamingVttParserError,error:e}})}if(a||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){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new Xe.a.VTTCue(e.startTime,e.endTime,e.text):e)}),au(this.subtitlesTrack_),this.handleAppendsDone_()}},{key:"handleData_",value:function(e,i){var n=e&&"vtt"===e.type,r=i&&"text"===i.type;n&&r&&ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleData_",this).call(this,e,i)}},{key:"updateTimingInfoEnd_",value:function(){}},{key:"parseMp4VttCues_",value:function(e){var t=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(function(i){var n=i.start+t,r=i.end+t,a=new Xe.a.VTTCue(n,r,i.cueText);i.settings&&i.settings.split(" ").forEach(function(e){var t=e.split(":"),i=t[0],n=t[1];a[i]=isNaN(n)?n:Number(n)}),e.cues.push(a)})}},{key:"parseVTTCues_",value:function(e){var t=void 0,i=!1;if("function"!=typeof Xe.a.WebVTT)throw new zu;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues)return void this.parseMp4VttCues_(e);"function"==typeof Xe.a.TextDecoder?t=new Xe.a.TextDecoder("utf8"):(t=Xe.a.WebVTT.StringDecoder(),i=!0);var n=new Xe.a.WebVTT.Parser(Xe.a,Xe.a.vttjs,t);if(n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){ze.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;i&&(r=Ru(r)),n.parse(r)}var a=e.bytes;i&&(a=Ru(a)),n.parse(a),n.flush()}},{key:"updateTimeMapping_",value:function(e,t,i){var n=this,r=e.segment;if(t){if(!e.cues.length)return void(r.empty=!0);var a=e.timestampmap,s=a.MPEGTS,o=a.LOCAL,l=s/pt.ONE_SECOND_IN_TS,u=l-o+t.mapping;if(e.cues.forEach(function(e){var i=e.endTime-e.startTime,r=n.handleRollover_(e.startTime+u,t.time);e.startTime=Math.max(r,0),e.endTime=Math.max(r+i,0)}),!i.syncInfo){var d=e.cues[0].startTime,c=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(d,c-r.duration)}}}}},{key:"handleRollover_",value:function(e,t){if(null===t)return e;var i=e*pt.ONE_SECOND_IN_TS,n=t*pt.ONE_SECOND_IN_TS,r=void 0;for(r=n<i?-8589934592:8589934592;Math.abs(i-n)>4294967296;)i+=r;return i/pt.ONE_SECOND_IN_TS}}]),t}(xu),qu=function(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},Vu=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.segments)for(var n=i,r=void 0,a=0;a<e.segments.length;a++){var s=e.segments[a];if(r||(r=qu(t,n+s.duration/2)),r){if("cueIn"in s){r.endTime=n,r.adEndTime=n,n+=s.duration,r=null;continue}if(n<r.endTime){n+=s.duration;continue}r.endTime+=s.duration}else if("cueOut"in s&&(r=new Xe.a.VTTCue(n,n+s.duration,s.cueOut),r.adStartTime=n,r.adEndTime=n+parseFloat(s.cueOut),t.addCue(r)),"cueOutCont"in s){var o=s.cueOutCont.split("/").map(parseFloat),l=ft(o,2),u=l[0],d=l[1];r=new Xe.a.VTTCue(n,n+s.duration,""),r.adStartTime=n-u,r.adEndTime=r.adStartTime+d,t.addCue(r)}n+=s.duration}},Hu=function(){function e(t){var i=t.start,n=t.end,r=t.segmentIndex,a=t.partIndex,s=void 0===a?null:a,l=t.appended,u=void 0!==l&&l;o(this,e),this.start_=i,this.end_=n,this.segmentIndex_=r,this.partIndex_=s,this.appended_=u}return vt(e,[{key:"isInRange",value:function(e){return e>=this.start&&e<this.end}},{key:"markAppended",value:function(){this.appended_=!0}},{key:"resetAppendedStatus",value:function(){this.appended_=!1}},{key:"isAppended",get:function(){return this.appended_}},{key:"start",get:function(){return this.start_}},{key:"end",get:function(){return this.end_}},{key:"segmentIndex",get:function(){return this.segmentIndex_}},{key:"partIndex",get:function(){return this.partIndex_}}]),e}(),Gu=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o(this,e),this.segmentSyncInfo_=t,this.partsSyncInfo_=i}return vt(e,[{key:"resetAppendStatus",value:function(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(function(e){return e.resetAppendedStatus()})}},{key:"segmentSyncInfo",get:function(){return this.segmentSyncInfo_}},{key:"partsSyncInfo",get:function(){return this.partsSyncInfo_}},{key:"hasPartsSyncInfo",get:function(){return this.partsSyncInfo_.length>0}}]),e}(),Wu=function(){function e(){o(this,e),this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}return vt(e,[{key:"resetAppendedStatus",value:function(){this.storage_.forEach(function(e){return e.resetAppendStatus()})}},{key:"update",value:function(e,t){var i=e.mediaSequence,n=e.segments;if(this.isReliable_=this.isReliablePlaylist_(i,n),this.isReliable_)return this.updateStorage_(n,i,this.calculateBaseTime_(i,n,t))}},{key:"getSyncInfoForTime",value:function(e){var t=!0,i=!1,n=void 0;try{for(var r,a=this.storage_.values()[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var s=r.value,o=s.segmentSyncInfo,l=s.partsSyncInfo;if(l.length){var u=!0,d=!1,c=void 0;try{for(var p,h=l[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var f=p.value;if(f.isInRange(e))return f}}catch(e){d=!0,c=e}finally{try{!u&&h.return&&h.return()}finally{if(d)throw c}}}else if(o.isInRange(e))return o}}catch(e){i=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(i)throw n}}return null}},{key:"getSyncInfoForMediaSequence",value:function(e){return this.storage_.get(e)}},{key:"updateStorage_",value:function(e,t,i){var n=this,r=new Map,a="\n",s=i,o=t;this.start_=s,e.forEach(function(e,t){var i=n.storage_.get(o),l=s,u=l+e.duration,d=Boolean(i&&i.segmentSyncInfo&&i.segmentSyncInfo.isAppended),c=new Hu({start:l,end:u,appended:d,segmentIndex:t});e.syncInfo=c;var p=s,h=(e.parts||[]).map(function(e,n){var r=p,s=p+e.duration,l=Boolean(i&&i.partsSyncInfo&&i.partsSyncInfo[n]&&i.partsSyncInfo[n].isAppended),u=new Hu({start:r,end:s,appended:l,segmentIndex:t,partIndex:n});return p=s,a+="Media Sequence: "+o+"."+n+" | Range: "+r+" --\x3e "+s+" | Appended: "+l+"\n",e.syncInfo=u,u});r.set(o,new Gu(c,h)),a+=He(e.resolvedUri)+" | Media Sequence: "+o+" | Range: "+l+" --\x3e "+u+" | Appended: "+d+"\n",o++,s=u}),this.end_=s,this.storage_=r,this.diagnostics_=a}},{key:"calculateBaseTime_",value:function(e,t,i){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;var n=Math.min.apply(Math,l(this.storage_.keys()));if(e<n){for(var r=n-e,a=this.storage_.get(n).segmentSyncInfo.start,s=0;s<r;s++){a-=t[s].duration}return a}return i}},{key:"isReliablePlaylist_",value:function(e,t){return void 0!==e&&null!==e&&Array.isArray(t)&&t.length}},{key:"start",get:function(){return this.start_}},{key:"end",get:function(){return this.end_}},{key:"diagnostics",get:function(){return this.diagnostics_}},{key:"isReliable",get:function(){return this.isReliable_}}]),e}(),Xu=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.parent_=e,i}return s(t,e),vt(t,[{key:"calculateBaseTime_",value:function(e,i,n){if(!this.storage_.size){var r=this.parent_.getSyncInfoForMediaSequence(e);return r?r.segmentSyncInfo.start:0}return ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"calculateBaseTime_",this).call(this,e,i,n)}}]),t}(Wu),Yu=[{name:"VOD",run:function(e,t,i,n,r){if(i!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"MediaSequence",run:function(e,t,i,n,r,a){var s=e.getMediaSequenceSync(a);if(!s)return null;if(!s.isReliable)return null;var o=s.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=fs(t);r=r||0;for(var l=0;l<o.length;l++){var u=t.endList||0===r?l:o.length-(l+1),d=o[u],c=d.segment,p=e.timelineToDatetimeMappings[c.timeline];if(p&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3,f=h+p;if(c.parts&&"number"==typeof d.partIndex)for(var v=0;v<d.partIndex;v++)f+=c.parts[v].duration;var m=Math.abs(r-f);if(null!==s&&(0===m||s<m))break;s=m,a={time:f,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}}return a}},{name:"Segment",run:function(e,t,i,n,r){var a=null,s=null;r=r||0;for(var o=fs(t),l=0;l<o.length;l++){var u=t.endList||0===r?l:o.length-(l+1),d=o[u],c=d.segment,p=d.part&&d.part.start||c&&c.start;if(c.timeline===n&&void 0!==p){var h=Math.abs(r-p);if(null!==s&&s<h)break;(!a||null===s||s>=h)&&(s=h,a={time:p,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,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,d=e.discontinuities[u];if(d){var c=Math.abs(r-d.time);if(null!==s&&s<c)break;(!a||null===s||s>=c)&&(s=c,a={time:d.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){if(t.syncInfo){return{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}}return null}}],$u=function(e){function t(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));e.timelines=[],e.discontinuities=[],e.timelineToDatetimeMappings={};var i=new Wu,n=new Xu(i),r=new Xu(i);return e.mediaSequenceStorage_={main:i,audio:n,vtt:r},e.logger_=ts("SyncController"),e}return s(t,e),vt(t,[{key:"getMediaSequenceSync",value:function(e){return this.mediaSequenceStorage_[e]||null}},{key:"getSyncPoint",value:function(e,t,i,n,r){if(t!==1/0){return Yu.find(function(e){return"VOD"===e.name}).run(this,e,t)}var a=this.runStrategies_(e,t,i,n,r);if(!a.length)return null;var s=!0,o=!1,l=void 0;try{for(var u,d=a[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var c=u.value,p=c.syncPoint,h=c.strategy,f=p.segmentIndex,v=p.time;if(!(f<0)){var m=e.segments[f],g=v,y=g+m.duration;if(this.logger_("Strategy: "+h+". Current time: "+n+". selected segment: "+f+". Time: ["+g+" -> "+y+"]}"),n>=g&&n<y)return this.logger_("Found sync point with exact match: ",p),p}}}catch(e){o=!0,l=e}finally{try{!s&&d.return&&d.return()}finally{if(o)throw l}}return this.selectSyncPoint_(a,{key:"time",value:n})}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+Ts({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))}},{key:"runStrategies_",value:function(e,t,i,n,r){for(var a=[],s=0;s<Yu.length;s++){var o=Yu[s],l=o.run(this,e,t,i,n,r);l&&(l.strategy=o.name,a.push({strategy:o.name,syncPoint:l}))}return a}},{key:"selectSyncPoint_",value:function(e,t){for(var i=e[0].syncPoint,n=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<n&&(n=s,i=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+("number"==typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i}},{key:"saveExpiredSegmentInfo",value:function(e,t){var i=t.mediaSequence-e.mediaSequence;if(i>86400)return void ze.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");for(var n=i-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMappingForStart",value:function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}},{key:"saveSegmentTimingInfo",value:function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)}},{key:"timestampOffsetForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t,i){var n=e.segment,r=e.part,a=this.timelines[e.timeline],s=void 0,o=void 0;if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+a.time+"] [mapping: "+a.mapping+"]")),s=e.startOfSegment,o=t.end+a.mapping;else{if(!a)return!1;s=t.start+a.mapping,o=t.end+a.mapping}return r&&(r.start=s,r.end=o),(!n.start||s<n.start)&&(n.start=s),n.end=o,!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var n=0;n<t.discontinuityStarts.length;n++){var r=t.discontinuityStarts[n],a=t.discontinuitySequence+n+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?i.start-Ts({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+Ts({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}}},{key:"dispose",value:function(){this.trigger("dispose"),this.off()}}]),t}(ze.EventTarget),Ku=function(e){function t(){o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.pendingTimelineChanges_={},e.lastTimelineChanges_={},e}return s(t,e),vt(t,[{key:"clearPendingTimelineChange",value:function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}},{key:"pendingTimelineChange",value:function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]}},{key:"lastTimelineChange",value:function(e){var t=e.type,i=e.from,n=e.to;if("number"==typeof i&&"number"==typeof n){this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t];var r={timelineChangeInfo:{from:i,to:n}};this.trigger({type:"timelinechange",metadata:r})}return this.lastTimelineChanges_[t]}},{key:"dispose",value:function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}]),t}(ze.EventTarget),Ju=$o(Ko(function(){/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
|
|
4
|
+
function t(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var i,n=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 i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].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}(),r=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],n=t[4],r=i[4],a=void 0,s=void 0,o=void 0,l=[],u=[],d=void 0,c=void 0,p=void 0,h=void 0,f=void 0,v=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(s=o=0;!n[s];s^=d||1,o=u[o]||1)for(h=o^o<<1^o<<2^o<<3^o<<4,h=h>>8^255&h^99,n[s]=h,r[h]=s,p=l[c=l[d=l[s]]],v=16843009*p^65537*c^257*d^16843008*s,f=257*l[h]^16843008*h,a=0;a<4;a++)t[a][s]=f=f<<24^f>>>8,i[a][h]=v=v<<24^v>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),i[a]=i[a].slice(0);return e},l=null,u=function(){function e(t){o(this,e),l||(l=r()),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 i=void 0,n=void 0,a=void 0,s=this._tables[0][4],u=this._tables[1],d=t.length,c=1;if(4!==d&&6!==d&&8!==d)throw new Error("Invalid aes key size");var p=t.slice(0),h=[];for(this._key=[p,h],i=d;i<4*d+28;i++)a=p[i-1],(i%d==0||8===d&&i%d==4)&&(a=s[a>>>24]<<24^s[a>>16&255]<<16^s[a>>8&255]<<8^s[255&a],i%d==0&&(a=a<<8^a>>>24^c<<24,c=c<<1^283*(c>>7))),p[i]=p[i-d]^a;for(n=0;i;n++,i--)a=p[3&n?i:i-4],h[n]=i<=4||n<4?a:u[0][s[a>>>24]]^u[1][s[a>>16&255]]^u[2][s[a>>8&255]]^u[3][s[255&a]]}return vt(e,[{key:"decrypt",value:function(e,t,i,n,r,a){var s=this._key[1],o=e^s[0],l=n^s[1],u=i^s[2],d=t^s[3],c=void 0,p=void 0,h=void 0,f=s.length/4-2,v=void 0,m=4,g=this._tables[1],y=g[0],b=g[1],_=g[2],w=g[3],T=g[4];for(v=0;v<f;v++)c=y[o>>>24]^b[l>>16&255]^_[u>>8&255]^w[255&d]^s[m],p=y[l>>>24]^b[u>>16&255]^_[d>>8&255]^w[255&o]^s[m+1],h=y[u>>>24]^b[d>>16&255]^_[o>>8&255]^w[255&l]^s[m+2],d=y[d>>>24]^b[o>>16&255]^_[l>>8&255]^w[255&u]^s[m+3],m+=4,o=c,l=p,u=h;for(v=0;v<4;v++)r[(3&-v)+a]=T[o>>>24]<<24^T[l>>16&255]<<16^T[u>>8&255]<<8^T[255&d]^s[m++],c=o,o=l,l=u,u=d,d=c}}]),e}(),d=function(e){function t(){o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return e.jobs=[],e.delay=1,e.timeout_=null,e}return s(t,e),vt(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}(n),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},p=function(e,t,i){var n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new u(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),s=new Int32Array(a.buffer),o=void 0,l=void 0,d=void 0,p=void 0,h=void 0,f=void 0,v=void 0,m=void 0,g=void 0;for(o=i[0],l=i[1],d=i[2],p=i[3],g=0;g<n.length;g+=4)h=c(n[g]),f=c(n[g+1]),v=c(n[g+2]),m=c(n[g+3]),r.decrypt(h,f,v,m,s,g),s[g]=c(s[g]^o),s[g+1]=c(s[g+1]^l),s[g+2]=c(s[g+2]^d),s[g+3]=c(s[g+3]^p),o=h,l=f,d=v,p=m;return a},h=function(){function e(i,n,r,a){o(this,e);var s=e.STEP,l=new Int32Array(i.buffer),u=new Uint8Array(i.byteLength),p=0;for(this.asyncStream_=new d,this.asyncStream_.push(this.decryptChunk_(l.subarray(p,p+s),n,r,u)),p=s;p<l.length;p+=s)r=new Uint32Array([c(l[p-4]),c(l[p-3]),c(l[p-2]),c(l[p-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(p,p+s),n,r,u));this.asyncStream_.push(function(){a(null,t(u))})}return vt(e,[{key:"decryptChunk_",value:function(e,t,i,n){return function(){var r=p(e,t,i);n.set(r,e.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),e}(),f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};i="undefined"!=typeof window?window:void 0!==f?f:"undefined"!=typeof self?self:{};var v=i,m=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},g=v.BigInt||Number;g("0x1"),g("0x100"),g("0x10000"),g("0x1000000"),g("0x100000000"),g("0x10000000000"),g("0x1000000000000"),g("0x100000000000000"),g("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();var y=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];m(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t};self.onmessage=function(e){var t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),n=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 h(i,n,r,function(e,i){self.postMessage(y({source:t.source,decrypted:i}),[i.buffer])})}})),Qu=Yo(Ju),Zu=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},ed=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},td=function(e,t){t.activePlaylistLoader=e,e.load()},id=function(e,t){return function(){var i=t.segmentLoaders,n=i[e],r=i.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastGroup_;if((!o||!u||o.id!==u.id)&&(a.lastGroup_=o,a.lastTrack_=s,ed(n,a),o&&!o.isMainPlaylist)){if(!o.playlistLoader)return void(l&&r.resetEverything());n.resyncLoader(),td(o.playlistLoader,a)}}},nd=function(e,t){return function(){var i=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,i.abort(),i.pause()}},rd=function(e,t){return function(){var i=t.mainPlaylistLoader,n=t.segmentLoaders,r=n[e],a=n.main,s=t.mediaTypes[e],o=s.activeTrack(),l=s.getActiveGroup(),u=s.activePlaylistLoader,d=s.lastTrack_;if((!d||!o||d.id!==o.id)&&(s.lastGroup_=l,s.lastTrack_=o,ed(r,s),l)){if(l.isMainPlaylist){if(!o||!d||o.id===d.id)return;var c=t.vhs.playlistController_,p=c.selectPlaylist();if(c.media()===p)return;return s.logger_("track change. Switching main audio from "+d.id+" to "+o.id),i.pause(),a.resetEverything(),void c.fastQualityChange_(p)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}if(u===l.playlistLoader)return void td(l.playlistLoader,s);r.track&&r.track(o),r.resetEverything(),td(l.playlistLoader,s)}}},ad={AUDIO:function(e,t){return function(){var i=t.mediaTypes[e],n=t.excludePlaylist,r=i.activeTrack(),a=i.activeGroup(),s=(a.filter(function(e){return e.default})[0]||a[0]).id,o=i.tracks[s];if(r===o)return void n({error:{message:"Problem encountered loading the default audio track."}});ze.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var l in i.tracks)i.tracks[l].enabled=i.tracks[l]===o;i.onTrackChanged()}},SUBTITLES:function(e,t){return function(){var i=t.mediaTypes[e];ze.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");var n=i.activeTrack();n&&(n.mode="disabled"),i.onTrackChanged()}}},sd={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",ad[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",ad[e](e,i))}},od={AUDIO:function(e,t){var i=t.vhs,n=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.main.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,d=o.logger_,c=t.mainPlaylistLoader,p=Ns(c.main);s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},p&&(s[e].main.default.playlists=c.main.playlists));for(var h in s[e]){l[h]||(l[h]=[]);for(var f in s[e][h]){var v=s[e][h][f],m=void 0;if(p?(d("AUDIO group '"+h+"' label '"+f+"' is a main playlist"),v.isMainPlaylist=!0,m=null):m="vhs-json"===n&&v.playlists?new so(v.playlists[0],i,a):v.resolvedUri?new so(v.resolvedUri,i,a):v.playlists&&"dash"===n?new Vo(v.playlists[0],i,a,c):null,v=Fe({id:f,playlistLoader:m},v),sd[e](e,v.playlistLoader,t),l[h].push(v),void 0===u[f]){var g=new ze.AudioTrack({id:f,kind:Zu(v),enabled:!1,language:v.language,default:v.default,label:f});u[f]=g}}}r.on("error",ad[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.main.mediaGroups,l=t.mediaTypes[e],u=l.groups,d=l.tracks,c=t.mainPlaylistLoader;for(var p in o[e]){u[p]||(u[p]=[]);for(var h in o[e][p])if(n.options_.useForcedSubtitles||!o[e][p][h].forced){var f=o[e][p][h],v=void 0;if("hls"===r)v=new so(f.resolvedUri,n,s);else if("dash"===r){var m=f.playlists.filter(function(e){return e.excludeUntil!==1/0});if(!m.length)return;v=new Vo(f.playlists[0],n,s,c)}else"vhs-json"===r&&(v=new so(f.playlists?f.playlists[0]:f.resolvedUri,n,s));if(f=Fe({id:h,playlistLoader:v},f),sd[e](e,f.playlistLoader,t),u[p].push(f),void 0===d[h]){var g=i.addRemoteTextTrack({id:h,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:h},!1).track;d[h]=g}}}a.on("error",ad[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.main.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in n[e]){a[o]||(a[o]=[]);for(var l in n[e][o]){var u=n[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var d=i.options_.vhs&&i.options_.vhs.captionServices||{},c={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(d[c.instreamId]&&(c=Fe(c,d[c.instreamId])),void 0===c.default&&delete c.default,a[o].push(Fe({id:l},u)),void 0===s[l]){var p=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[l]=p}}}}}},ld=function e(t,i){for(var n=0;n<t.length;n++){if(Ls(i,t[n]))return!0;if(t[n].playlists&&e(t[n].playlists,i))return!0}return!1},ud=function(e,t){return function(i){var n=t.mainPlaylistLoader,r=t.mediaTypes[e].groups,a=n.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&&Ns(t.main))for(var l=0;l<o.length;l++){var u=r[o[l]];if(ld(u,a)){s=u;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return void 0===i?s:null!==i&&s?s.filter(function(e){return e.id===i.id})[0]||null:null}},dd={AUDIO:function(e,t){return function(){var i=t.mediaTypes[e].tracks;for(var n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(e,t){return function(){var i=t.mediaTypes[e].tracks;for(var n in i)if("showing"===i[n].mode||"hidden"===i[n].mode)return i[n];return null}}},cd=function(e,t){var i=t.mediaTypes;return function(){var t=i[e].activeTrack();return t?i[e].activeGroup(t):null}},pd=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){od[t](t,e)});var t=e.mediaTypes,i=e.mainPlaylistLoader,n=e.tech,r=e.vhs,a=e.segmentLoaders,s=a.AUDIO,o=a.main;["AUDIO","SUBTITLES"].forEach(function(i){t[i].activeGroup=ud(i,e),t[i].activeTrack=dd[i](i,e),t[i].onGroupChanged=id(i,e),t[i].onGroupChanging=nd(i,e),t[i].onTrackChanged=rd(i,e),t[i].getActiveGroup=cd(i,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();t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}i.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),i.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var d=function(){t.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"})};n.audioTracks().addEventListener("change",d),n.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",d),n.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),n.clearTracks("audio");for(var c in t.AUDIO.tracks)n.audioTracks().addTrack(t.AUDIO.tracks[c])},hd=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ge,activeTrack:Ge,getActiveGroup:Ge,onGroupChanged:Ge,onTrackChanged:Ge,lastTrack_:null,logger_:ts("MediaGroups["+t+"]")}}),e},fd=function(){function e(){o(this,e),this.priority_=[],this.pathwayClones_=new Map}return vt(e,[{key:"version",set:function(e){1===e&&(this.version_=e)},get:function(){return this.version_}},{key:"ttl",set:function(e){this.ttl_=e||300},get:function(){return this.ttl_}},{key:"reloadUri",set:function(e){e&&(this.reloadUri_=Za(this.reloadUri_,e))},get:function(){return this.reloadUri_}},{key:"priority",set:function(e){e&&e.length&&(this.priority_=e)},get:function(){return this.priority_}},{key:"pathwayClones",set:function(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(function(e){return[e.ID,e]})))},get:function(){return this.pathwayClones_}}]),e}(),vd=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.currentPathway=null,n.defaultPathway=null,n.queryBeforeStart=!1,n.availablePathways_=new Set,n.steeringManifest=new fd,n.proxyServerUrl_=null,n.manifestType_=null,n.ttlTimeout_=null,n.request_=null,n.currentPathwayClones=new Map,n.nextPathwayClones=new Map,n.excludedSteeringManifestURLs=new Set,n.logger_=ts("Content Steering"),n.xhr_=e,n.getBandwidth_=i,n}return s(t,e),vt(t,[{key:"assignTagProperties",value:function(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";var i=t.serverUri||t.serverURL;return i?i.startsWith("data:")?void this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=Za(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,void(this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))):(this.logger_("steering manifest URL is "+i+", cannot request steering manifest."),void this.trigger("error"))}},{key:"requestSteeringManifest",value:function(e){var t=this,i=this.steeringManifest.reloadUri;if(i){var n=e?i:this.getRequestURI(i);if(!n)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();var r={contentSteeringInfo:{uri:n}};this.trigger({type:"contentsteeringloadstart",metadata:r}),this.request_=this.xhr_({uri:n,requestType:"content-steering-manifest"},function(e,i){if(e){if(410===i.status)return t.logger_("manifest request 410 "+e+"."),t.logger_("There will be no more content steering requests to "+n+" this session."),void t.excludedSteeringManifestURLs.add(n);if(429===i.status){var a=i.responseHeaders["retry-after"];return t.logger_("manifest request 429 "+e+"."),t.logger_("content steering will retry in "+a+" seconds."),void t.startTTLTimeout_(parseInt(a,10))}return t.logger_("manifest failed to load "+e+"."),void t.startTTLTimeout_()}t.trigger({type:"contentsteeringloadcomplete",metadata:r});var s=void 0;try{s=JSON.parse(t.request_.responseText)}catch(e){var o={errorType:ze.Error.StreamingContentSteeringParserError,error:e};t.trigger({type:"error",metadata:o})}t.assignSteeringProperties_(s);var l={contentSteeringInfo:r.contentSteeringInfo,contentSteeringManifest:{version:t.steeringManifest.version,reloadUri:t.steeringManifest.reloadUri,priority:t.steeringManifest.priority}};t.trigger({type:"contentsteeringparsed",metadata:l}),t.startTTLTimeout_()})}}},{key:"setProxyServerUrl_",value:function(e){var t=new Xe.a.URL(e),i=new Xe.a.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}},{key:"decodeDataUriManifest_",value:function(e){var t=JSON.parse(Xe.a.atob(e));this.assignSteeringProperties_(t)}},{key:"setSteeringParams_",value:function(e){var t=new Xe.a.URL(e),i=this.getPathway(),n=this.getBandwidth_();if(i){var r="_"+this.manifestType_+"_pathway";t.searchParams.set(r,i)}if(n){var a="_"+this.manifestType_+"_throughput";t.searchParams.set(a,n)}return t.toString()}},{key:"assignSteeringProperties_",value:function(e){var t=this;if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_("manifest version is "+e.VERSION+", which is not supported."),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());var i=function(e){var i=!0,n=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var o=a.value;if(t.availablePathways_.has(o))return o}}catch(e){n=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}return[].concat(l(t.availablePathways_))[0]}(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}},{key:"getPathway",value:function(){return this.currentPathway||this.defaultPathway}},{key:"getRequestURI",value:function(e){var t=this;if(!e)return null;var i=function(e){return t.excludedSteeringManifestURLs.has(e)};if(this.proxyServerUrl_){var n=this.setProxyServerUrl_(e);if(!i(n))return n}var r=this.setSteeringParams_(e);return i(r)?null:r}},{key:"startTTLTimeout_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.steeringManifest.ttl,i=1e3*t;this.ttlTimeout_=Xe.a.setTimeout(function(){e.requestSteeringManifest()},i)}},{key:"clearTTLTimeout_",value:function(){Xe.a.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}},{key:"abort",value:function(){this.request_&&this.request_.abort(),this.request_=null}},{key:"dispose",value:function(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new fd}},{key:"addAvailablePathway",value:function(e){e&&this.availablePathways_.add(e)}},{key:"clearAvailablePathways",value:function(){this.availablePathways_.clear()}},{key:"excludePathway",value:function(e){return this.availablePathways_.delete(e)}},{key:"didDASHTagChange",value:function(e,t){return!t&&this.steeringManifest.reloadUri||t&&(Za(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}},{key:"getAvailablePathways",value:function(){return this.availablePathways_}}]),t}(ze.EventTarget),md=function(e,t){var i=null;return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];clearTimeout(i),i=setTimeout(function(){e.apply(null,r)},t)}},gd=void 0,yd=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],bd=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},_d=function(e){var t=e.currentPlaylist,i=e.buffered,n=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,s=e.bufferHighWaterLine,o=e.duration,l=e.bufferBasedABR,u=e.log;if(!r)return ze.log.warn("We received no playlist to switch to. Please check your stream."),!1;var d="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return u(d+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var c=Boolean(ns(i,n).length);if(!t.endList)return c||"number"!=typeof t.partTargetDuration?(u(d+" as current playlist is live"),!0):(u("not "+d+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var p=ps(i,n),h=l?Ho.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Ho.MAX_BUFFER_LOW_WATER_LINE;if(o<h)return u(d+" as duration < max low water line ("+o+" < "+h+")"),!0;var f=r.attributes.BANDWIDTH,v=t.attributes.BANDWIDTH;if(f<v&&(!l||p<s)){var m=d+" as next bandwidth < current bandwidth ("+f+" < "+v+")";return l&&(m+=" and forwardBuffer < bufferHighWaterLine ("+p+" < "+s+")"),u(m),!0}if((!l||f>v)&&p>=a){var g=d+" as forwardBuffer >= bufferLowWaterLine ("+p+" >= "+a+")";return l&&(g+=" and next bandwidth > current bandwidth ("+f+" > "+v+")"),u(g),!0}return u("not "+d+" as no switching criteria met"),!1},wd=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));i.fastQualityChange_=md(i.fastQualityChange_.bind(i),100);var n=e.src,r=e.withCredentials,s=e.tech,l=e.bandwidth,u=e.externVhs,d=e.useCueTags,c=e.playlistExclusionDuration,p=e.enableLowInitialPlaylist,h=e.sourceType,f=e.cacheEncryptionKeys,v=e.bufferBasedABR,m=e.leastPixelDiffSelector,g=e.captionServices,y=e.experimentalUseMMS;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");var b=e.maxPlaylistRetries;null!==b&&void 0!==b||(b=1/0),gd=u,i.bufferBasedABR=Boolean(v),i.leastPixelDiffSelector=Boolean(m),i.withCredentials=r,i.tech_=s,i.vhs_=s.vhs,i.player_=e.player_,i.sourceType_=h,i.useCueTags_=d,i.playlistExclusionDuration=c,i.maxPlaylistRetries=b,i.enableLowInitialPlaylist=p,i.usingManagedMediaSource_=!1,i.useCueTags_&&(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:r,maxPlaylistRetries:b,timeout:null},i.on("error",i.pauseLoading),i.mediaTypes_=hd(),y&&Xe.a.ManagedMediaSource?(i.tech_.el_.disableRemotePlayback=!0,i.mediaSource=new Xe.a.ManagedMediaSource,i.usingManagedMediaSource_=!0,ze.log("Using ManagedMediaSource")):Xe.a.MediaSource&&(i.mediaSource=new Xe.a.MediaSource),i.handleDurationChange_=i.handleDurationChange_.bind(i),i.handleSourceOpen_=i.handleSourceOpen_.bind(i),i.handleSourceEnded_=i.handleSourceEnded_.bind(i),i.load=i.load.bind(i),i.pause=i.pause.bind(i),i.mediaSource.addEventListener("durationchange",i.handleDurationChange_),i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_),i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_),i.mediaSource.addEventListener("startstreaming",i.load),i.mediaSource.addEventListener("endstreaming",i.pause),i.seekable_=qe(),i.hasPlayed_=!1,i.syncController_=new $u(e),i.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new Qu,i.sourceUpdater_=new Nu(i.mediaSource),i.inbandTextTracks_={},i.timelineChangeController_=new Ku,i.keyStatusMap_=new Map;var _={vhs:i.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:g,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.duration()},hasPlayed:function(){return i.hasPlayed_},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:l,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:i.addMetadataToTextTrack.bind(i)};i.mainPlaylistLoader_="dash"===i.sourceType_?new Vo(n,i.vhs_,Fe(i.requestOptions_,{addMetadataToTextTrack:i.addMetadataToTextTrack.bind(i)})):new so(n,i.vhs_,Fe(i.requestOptions_,{addDateRangesToTextTrack:i.addDateRangesToTextTrack_.bind(i)})),i.setupMainPlaylistLoaderListeners_(),i.mainSegmentLoader_=new xu(Fe(_,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),e),i.audioSegmentLoader_=new xu(Fe(_,{loaderType:"audio"}),e),i.subtitleSegmentLoader_=new Fu(Fe(_,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise(function(e,t){function i(){s.off("vttjserror",n),e()}function n(){s.off("vttjsloaded",i),t()}s.one("vttjsloaded",i),s.one("vttjserror",n),s.addWebVttScript_()})}}),e);var w=function(){return i.mainSegmentLoader_.bandwidth};i.contentSteeringController_=new vd(i.vhs_.xhr,w),i.setupSegmentLoaderListeners_(),i.bufferBasedABR&&(i.mainPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()}),i.tech_.on("pause",function(){return i.stopABRTimer_()}),i.tech_.on("play",function(){return i.startABRTimer_()})),yd.forEach(function(e){i[e+"_"]=bd.bind(i,e)}),i.logger_=ts("pc"),i.triggeredFmp4Usage=!1,"none"===i.tech_.preload()?(i.loadOnPlay_=function(){i.loadOnPlay_=null,i.mainPlaylistLoader_.load()},i.tech_.one("play",i.loadOnPlay_)):i.mainPlaylistLoader_.load(),i.timeToLoadedData__=-1,i.mainAppendsToLoadedData__=-1,i.audioAppendsToLoadedData__=-1;var T="none"===i.tech_.preload()?"play":"loadstart";return i.tech_.one(T,function(){var e=Date.now();i.tech_.one("loadeddata",function(){i.timeToLoadedData__=Date.now()-e,i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends,i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends})}),i}return s(t,e),vt(t,[{key:"mainAppendsToLoadedData_",value:function(){return this.mainAppendsToLoadedData__}},{key:"audioAppendsToLoadedData_",value:function(){return this.audioAppendsToLoadedData__}},{key:"appendsToLoadedData_",value:function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}},{key:"timeToLoadedData_",value:function(){return this.timeToLoadedData__}},{key:"checkABR_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"abr",t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}},{key:"switchMedia_",value:function(e,t,i){var n=this.media(),r=n&&(n.id||n.uri),a=e&&(e.id||e.uri);if(r&&r!==a){this.logger_("switch media "+r+" -> "+a+" from "+t);var s={renditionInfo:{id:a,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:s}),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})}this.mainPlaylistLoader_.media(e,i)}},{key:"switchMediaForDASHContentSteering_",value:function(){var e=this;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){var i=e.mediaTypes_[t],n=i?i.activeGroup():null,r=e.contentSteeringController_.getPathway();if(n&&r){var a=n.length?n[0].playlists:n.playlists,s=a.filter(function(e){return e.attributes.serviceLocation===r});s.length&&e.mediaTypes_[t].activePlaylistLoader.media(s[0])}})}},{key:"startABRTimer_",value:function(){var e=this;this.stopABRTimer_(),this.abrTimer_=Xe.a.setInterval(function(){return e.checkABR_()},250)}},{key:"stopABRTimer_",value:function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(Xe.a.clearInterval(this.abrTimer_),this.abrTimer_=null)}},{key:"getAudioTrackPlaylists_",value:function(){var e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var i=e.mediaGroups.AUDIO,n=Object.keys(i),r=void 0;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||n.length&&i[n[0]];for(var s in a)if(a[s].default){r={label:s};break}}if(!r)return t;var o=[];for(var l in i)if(i[l][r.label]){var u=i[l][r.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 d=0;d<e.playlists.length;d++){var c=e.playlists[d];c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===l&&o.push(c)}}return o.length?o:t}},{key:"setupMainPlaylistLoaderListeners_",value:function(){var e=this;this.mainPlaylistLoader_.on("loadedmetadata",function(){var t=e.mainPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;Ds(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=i,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),pd({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,mainPlaylistLoader:e.mainPlaylistLoader_,vhs:e.vhs_,main:e.main(),mediaTypes:e.mediaTypes_,excludePlaylist:e.excludePlaylist.bind(e)}),e.triggerPresenceUsage_(e.main(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.mainPlaylistLoader_.media();if(!t){e.attachContentSteeringListeners_(),e.initContentSteeringController_(),e.excludeUnsupportedVariants_();var i=void 0;if(e.enableLowInitialPlaylist&&(i=e.selectInitialPlaylist()),i||(i=e.selectPlaylist()),!i||!e.shouldSwitchToMedia_(i))return;e.initialMedia_=i,e.switchMedia_(e.initialMedia_,"initial");if(!("vhs-json"===e.sourceType_&&e.initialMedia_.segments))return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}),this.mainPlaylistLoader_.on("error",function(){var t=e.mainPlaylistLoader_.error;e.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",function(){var t=e.mainPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;Ds(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=i,"dash"===e.sourceType_&&e.mainPlaylistLoader_.isPaused&&e.mainPlaylistLoader_.load(),e.mainSegmentLoader_.pause(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.waitingForFastQualityPlaylistReceived_?e.runFastQualitySwitch_():e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",function(){var t=e.mainPlaylistLoader_.media();if("playlist-unchanged"!==t.lastExcludeReason_){e.stuckAtPlaylistEnd_(t)&&(e.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),e.tech_.trigger("playliststuck"))}}),this.mainPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(function(t){e.mainPlaylistLoader_.on(t,function(t){e.player_.trigger(tt()({},t))})})}},{key:"handleUpdatedMediaPlaylist",value:function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}},{key:"triggerPresenceUsage_",value:function(e,t){var i=e.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var a in i.AUDIO)for(var s in i.AUDIO[a]){var o=i.AUDIO[a][s];o.uri||(n=!1)}n&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),gd.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}},{key:"shouldSwitchToMedia_",value:function(e){var t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return _d({buffered:a,currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){e.bufferBasedABR&&e.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){var t=e.mainSegmentLoader_.error();e.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",function(){var t=e.audioSegmentLoader_.pendingSegment_;if(t&&t.segment&&t.segment.syncInfo){var i=t.segment.syncInfo.end+.01;e.tech_.setCurrentTime(i)}}),this.timelineChangeController_.on("fixBadTimelineChange",function(){e.logger_("Fix bad timeline change. Restarting al segment loaders..."),e.mainSegmentLoader_.pause(),e.mainSegmentLoader_.resetEverything(),e.mediaTypes_.AUDIO.activePlaylistLoader&&(e.audioSegmentLoader_.pause(),e.audioSegmentLoader_.resetEverything()),e.mediaTypes_.SUBTITLES.activePlaylistLoader&&(e.subtitleSegmentLoader_.pause(),e.subtitleSegmentLoader_.resetEverything()),e.load()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.bufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(function(t){e.mainSegmentLoader_.on(t,function(t){e.player_.trigger(tt()({},t))}),e.audioSegmentLoader_.on(t,function(t){e.player_.trigger(tt()({},t))}),e.subtitleSegmentLoader_.on(t,function(t){e.player_.trigger(tt()({},t))})})}},{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:"pause",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"fastQualityChange_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectPlaylist();if(e&&e===this.mainPlaylistLoader_.media())return void this.logger_("skipping fastQualityChange because new media is same as old");this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}},{key:"runFastQualitySwitch_",value:function(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}},{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.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){var t=this.seekable();if(!t.length)return!1;var i=t.end(0),n=i;if(e.start){var r=e.start.timeOffset;n=r<0?Math.max(i+r,t.start(0)):Math.min(i,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(n)}return this.hasPlayed_=!0,this.load(),!0}},{key:"handleSourceOpen_",value:function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")}},{key:"handleSourceEnded_",value:function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}}},{key:"handleDurationChange_",value:function(){this.tech_.trigger("durationchange")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}},{key:"stuckAtPlaylistEnd_",value:function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var i=gd.Playlist.playlistEnd(e,t),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n<=.1;var a=r.end(r.length-1);return a-n<=.1&&i-a<=.1}},{key:"excludePlaylist",value:function(e){var t=this,i=e.playlistToExclude,n=void 0===i?this.mainPlaylistLoader_.media():i,r=e.error,a=void 0===r?{}:r,s=e.playlistExclusionDuration;if(n=n||this.mainPlaylistLoader_.media(),s=s||a.playlistExclusionDuration||this.playlistExclusionDuration,!n)return this.error=a,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var o=this.mainPlaylistLoader_.main.playlists,l=o.filter(js),u=1===l.length&&l[0]===n;if(1===o.length&&s!==1/0)return ze.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(u);if(u){if(this.main().contentSteering){var d=this.pathwayAttribute_(n),c=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(d),this.excludeThenChangePathway_(),void setTimeout(function(){t.contentSteeringController_.addAvailablePathway(d)},c)}var p=!1;o.forEach(function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(p=!0,delete e.excludeUntil)}}),p&&(ze.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}var h=void 0;h=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*s,n.excludeUntil=h,a.reason&&(n.lastExcludeReason_=a.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});var f=this.selectPlaylist();if(!f)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var v=a.internal?this.logger_:ze.log.warn,m=a.message?" "+a.message:"";v((a.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+m+" Switching to playlist "+f.id+"."),f.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),f.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var g=f.targetDuration/2*1e3||5e3,y="number"==typeof f.lastRequest&&Date.now()-f.lastRequest<=g;return this.switchMedia_(f,"exclude",u||y)}},{key:"pauseLoading",value:function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}},{key:"delegateLoaders_",value:function(e,t){var i=this,n=[],r="all"===e;(r||"main"===e)&&n.push(this.mainPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=i[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||n.push(r)}),n.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})}},{key:"setCurrentTime",value:function(e){var t=ns(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}},{key:"duration",value:function(){if(!this.mainPlaylistLoader_)return 0;var e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:gd.Playlist.duration(e):1/0:0}},{key:"seekable",value:function(){return this.seekable_}},{key:"getSeekableRange_",value:function(e,t){var i=e.media();if(!i)return null;var n=this.syncController_.getMediaSequenceSync(t);if(n&&n.isReliable){var r=n.start,a=n.end;if(!isFinite(r)||!isFinite(a))return null;var s=gd.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i),o=Math.max(0,a-s);return o<r?null:qe([[r,o]])}var l=this.syncController_.getExpiredTime(i,this.duration());if(null===l)return null;var u=gd.Playlist.seekable(i,l,gd.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i));return u.length?u:null}},{key:"computeFinalSeekable_",value:function(e,t){if(!t)return e;var i=e.start(0),n=e.end(0),r=t.start(0),a=t.end(0);return r>n||i>a?e:qe([[Math.max(i,r),Math.min(n,a)]])}},{key:"onSyncInfoUpdate_",value:function(){if(this.mainPlaylistLoader_){var e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(e){var t=void 0;if(!this.mediaTypes_.AUDIO.activePlaylistLoader||(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"))){var i=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,t),this.seekable_&&!(i&&i.length&&this.seekable_.length&&i.start(0)===this.seekable_.start(0)&&i.end(0)===this.seekable_.end(0))){this.logger_("seekable updated ["+os(this.seekable_)+"]");var n={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:n}),this.tech_.trigger("seekablechanged")}}}}}},{key:"updateDuration",value:function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)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;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1)))}var i=this.tech_.buffered(),n=gd.Playlist.duration(this.mainPlaylistLoader_.media());i.length>0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var i=e.mediaTypes_[t].groups;for(var n in i)i[n].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}},{key:"main",value:function(){return this.mainPlaylistLoader_.main}},{key:"media",value:function(){return this.mainPlaylistLoader_.media()||this.initialMedia_}},{key:"areMediaTypesKnown_",value:function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}},{key:"getCodecsOrExclude_",value:function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},i=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;var n=Rl(this.main(),i),r={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=n.video||t.main.videoCodec||rt.b),t.main.isMuxed&&(r.video+=","+(n.audio||t.main.audioCodec||rt.a)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||a)&&(r.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||rt.a,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!r.audio&&!r.video)return void this.excludePlaylist({playlistToExclude:i,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});var s=function(t,i){return t?Object(rt.c)(i,e.usingManagedMediaSource_):Object(rt.g)(i)},o={},l=void 0;if(["video","audio"].forEach(function(e){if(r.hasOwnProperty(e)&&!s(t[e].isFmp4,r[e])){var i=t[e].isFmp4?"browser":"muxer";o[i]=o[i]||[],o[i].push(r[e]),"audio"===e&&(l=i)}}),a&&l&&i.attributes.AUDIO){var u=i.attributes.AUDIO;this.main().playlists.forEach(function(e){(e.attributes&&e.attributes.AUDIO)===u&&e!==i&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+u+" as "+l+' does not support codec(s): "'+r.audio+'"')}if(Object.keys(o).length){var d=Object.keys(o).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+o[t].join(",")+'"'},"")+".";return void this.excludePlaylist({playlistToExclude:i,error:{internal:!0,message:d},playlistExclusionDuration:1/0})}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];if(["video","audio"].forEach(function(t){var i=(Object(rt.h)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,n=(Object(rt.h)(r[t]||"")[0]||{}).type;i&&n&&i.toLowerCase()!==n.toLowerCase()&&c.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+r[t]+'"')}),c.length)return void this.excludePlaylist({playlistToExclude:i,error:{message:"Codec switching not supported: "+c.join(", ")+".",internal:!0},playlistExclusionDuration:1/0})}return r}},{key:"tryToCreateSourceBuffers_",value:function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}}},{key:"excludeUnsupportedVariants_",value:function(){var e=this,t=this.main().playlists,i=[];Object.keys(t).forEach(function(n){var r=t[n];if(-1===i.indexOf(r.id)){i.push(r.id);var a=Rl(e.main,r),s=[];!a.audio||Object(rt.g)(a.audio)||Object(rt.c)(a.audio,e.usingManagedMediaSource_)||s.push("audio codec "+a.audio),!a.video||Object(rt.g)(a.video)||Object(rt.c)(a.video,e.usingManagedMediaSource_)||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(", ")))}})}},{key:"excludeIncompatibleVariants_",value:function(e){var t=this,i=[],n=this.main().playlists,r=Ml(Object(rt.h)(e)),a=Nl(r),s=r.video&&Object(rt.h)(r.video)[0]||null,o=r.audio&&Object(rt.h)(r.audio)[0]||null;Object.keys(n).forEach(function(e){var r=n[e];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],u=Rl(t.mainPlaylistLoader_.main,r),d=Nl(u);if(u.audio||u.video){if(d!==a&&l.push('codec count "'+d+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var c=u.video&&Object(rt.h)(u.video)[0]||null,p=u.audio&&Object(rt.h)(u.audio)[0]||null;c&&s&&c.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+c.type+'" !== "'+s.type+'"'),p&&o&&p.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+p.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+": "+l.join(" && ")))}}})}},{key:"updateAdCues_",value:function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),Vu(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=Ho.GOAL_BUFFER_LENGTH,i=Ho.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,Ho.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=Ho.BUFFER_LOW_WATER_LINE,i=Ho.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,Ho.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Ho.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:n)}},{key:"bufferHighWaterLine",value:function(){return Ho.BUFFER_HIGH_WATER_LINE}},{key:"addDateRangesToTextTrack_",value:function(e){nu(this.inbandTextTracks_,"com.apple.streaming",this.tech_),iu({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}},{key:"addMetadataToTextTrack",value:function(e,t,i){var n=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();nu(this.inbandTextTracks_,e,this.tech_),Zl({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:i})}},{key:"pathwayAttribute_",value:function(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}},{key:"initContentSteeringController_",value:function(){var e=this,t=this.main();if(t.contentSteering){var i=!0,n=!1,r=void 0;try{for(var a,s=t.playlists[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var o=a.value;this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(o))}}catch(e){n=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw r}}if(this.contentSteeringController_.assignTagProperties(t.uri,t.contentSteering),this.contentSteeringController_.queryBeforeStart)return void this.contentSteeringController_.requestSteeringManifest(!0);this.tech_.one("canplay",function(){e.contentSteeringController_.requestSteeringManifest()})}}},{key:"resetContentSteeringController_",value:function(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}},{key:"attachContentSteeringListeners_",value:function(){var e=this;this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(function(t){e.contentSteeringController_.on(t,function(t){e.trigger(tt()({},t))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",function(){var t=e.main();(e.contentSteeringController_.didDASHTagChange(t.uri,t.contentSteering)||function(){var i=e.contentSteeringController_.getAvailablePathways(),n=[],r=!0,a=!1,s=void 0;try{for(var o,l=t.playlists[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value,d=u.attributes.serviceLocation;if(d&&(n.push(d),!i.has(d)))return!0}}catch(e){a=!0,s=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw s}}return!(n.length||!i.size)}())&&e.resetContentSteeringController_()})}},{key:"excludeThenChangePathway_",value:function(){var e=this,t=this.contentSteeringController_.getPathway();if(t){this.handlePathwayClones_();var i=this.main(),n=i.playlists,r=new Set,a=!1;Object.keys(n).forEach(function(i){var s=n[i],o=e.pathwayAttribute_(s),l=o&&t!==o;s.excludeUntil===1/0&&"content-steering"===s.lastExcludeReason_&&!l&&(delete s.excludeUntil,delete s.lastExcludeReason_,a=!0);var u=!s.excludeUntil&&s.excludeUntil!==1/0;!r.has(s.id)&&l&&u&&(r.add(s.id),s.excludeUntil=1/0,s.lastExcludeReason_="content-steering",e.logger_("excluding "+s.id+" for "+s.lastExcludeReason_))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(function(i){var n=e.mediaTypes_[i];if(n.activePlaylistLoader){var r=n.activePlaylistLoader.media_;r&&r.attributes.serviceLocation!==t&&(a=!0)}}),a&&this.changeSegmentPathway_()}}},{key:"handlePathwayClones_",value:function(){var e=this,t=this.main(),i=t.playlists,n=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(n&&n.size||r&&r.size){var a=!0,s=!1,o=void 0;try{for(var u,d=n.entries()[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var c=u.value,p=ft(c,2),h=p[0],f=p[1];r.get(h)||(this.mainPlaylistLoader_.updateOrDeleteClone(f),this.contentSteeringController_.excludePathway(h))}}catch(e){s=!0,o=e}finally{try{!a&&d.return&&d.return()}finally{if(s)throw o}}var v=!0,m=!1,g=void 0;try{for(var y,b=r.entries()[Symbol.iterator]();!(v=(y=b.next()).done);v=!0){var _=y.value,w=ft(_,2),T=w[0],S=w[1];!function(t,r){var a=n.get(t);a?e.equalPathwayClones_(a,r)||(e.mainPlaylistLoader_.updateOrDeleteClone(r,!0),e.contentSteeringController_.addAvailablePathway(t)):(i.filter(function(e){return e.attributes["PATHWAY-ID"]===r["BASE-ID"]}).forEach(function(t){e.mainPlaylistLoader_.addClonePathway(r,t)}),e.contentSteeringController_.addAvailablePathway(t))}(T,S)}}catch(e){m=!0,g=e}finally{try{!v&&b.return&&b.return()}finally{if(m)throw g}}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([].concat(l(r)))))}}},{key:"equalPathwayClones_",value:function(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;var i=e["URI-REPLACEMENT"].PARAMS,n=t["URI-REPLACEMENT"].PARAMS;for(var r in i)if(i[r]!==n[r])return!1;for(var a in n)if(i[a]!==n[a])return!1;return!0}},{key:"changeSegmentPathway_",value:function(){var e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}},{key:"excludeNonUsablePlaylistsByKeyId_",value:function(){var e=this;if(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.main){var t=0;this.mainPlaylistLoader_.main.playlists.forEach(function(i){var n=e.mainPlaylistLoader_.getKeyIdSet(i);n&&n.size&&n.forEach(function(n){var r=e.keyStatusMap_.has(n)&&"usable"===e.keyStatusMap_.get(n),a="non-usable"===i.lastExcludeReason_&&i.excludeUntil===1/0;r?r&&a&&(delete i.excludeUntil,delete i.lastExcludeReason_,e.logger_("enabling playlist "+i.id+" because key ID "+n+" is usable")):(i.excludeUntil!==1/0&&"non-usable"!==i.lastExcludeReason_&&(i.excludeUntil=1/0,i.lastExcludeReason_="non-usable",e.logger_("excluding playlist "+i.id+" because the key ID "+n+" doesn't exist in the keyStatusMap or is not usable")),t++)})}),t>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(function(e){var t=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,i=e.excludeUntil===1/0&&"non-usable"===e.lastExcludeReason_;t&&i&&(delete e.excludeUntil,ze.log.warn("enabling non-HD playlist "+e.id+" because all playlists were excluded due to non-usable key IDs"))})}}},{key:"addKeyStatus_",value:function(e,t){var i="string"==typeof e,n=i?e:Uu(e),r=n.slice(0,32).toLowerCase();this.logger_("KeyStatus '"+t+"' with key ID "+r+" added to the keyStatusMap"),this.keyStatusMap_.set(r,t)}},{key:"updatePlaylistByKeyStatus",value:function(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}},{key:"excludeNonUsableThenChangePlaylist_",value:function(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}]),t}(ze.EventTarget),Td=function(e,t,i){return function(n){var r=e.main.playlists[t],a=Cs(r),s=js(r);if(void 0===n)return s;n?delete r.disabled:r.disabled=!0;var o={renditionInfo:{id:t,bandwidth:r.attributes.BANDWIDTH,resolution:r.attributes.RESOLUTION,codecs:r.attributes.CODECS},cause:"fast-quality"};return n===s||a||(n?(i(r),e.trigger({type:"renditionenabled",metadata:o})):e.trigger({type:"renditiondisabled",metadata:o})),n}},Sd=function e(t,i,n){o(this,e);var r=t.playlistController_,a=r.fastQualityChange_.bind(r);if(i.attributes){var s=i.attributes.RESOLUTION;this.width=s&&s.width,this.height=s&&s.height,this.bandwidth=i.attributes.BANDWIDTH,this.frameRate=i.attributes["FRAME-RATE"]}this.codecs=Rl(r.main(),i),this.playlist=i,this.id=n,this.enabled=Td(t.playlists,i.id,a)},kd=function(e){e.representations=function(){var t=e.playlistController_.main(),i=Ns(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(function(e){return!Cs(e)}).map(function(t,i){return new Sd(e,t,t.id)}):[]}},xd=["seeking","seeked","pause","playing","error"],Ed=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));i.playlistController_=e.playlistController,i.tech_=e.tech,i.seekable=e.seekable,i.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,i.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,i.media=e.media,i.playedRanges_=[],i.consecutiveUpdates=0,i.lastRecordedTime=null,i.checkCurrentTimeTimeout_=null,i.logger_=ts("PlaybackWatcher"),i.logger_("initialize");var n=function(){return i.monitorCurrentTime_()},r=function(){return i.monitorCurrentTime_()},s=function(){return i.techWaiting_()},l=function(){return i.resetTimeUpdate_()},u=i.playlistController_,d=["main","subtitle","audio"],c={};d.forEach(function(e){c[e]={reset:function(){return i.resetSegmentDownloads_(e)},updateend:function(){return i.checkSegmentDownloads_(e)}},u[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),u[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),i.tech_.on(["seeked","seeking"],c[e].reset)});var p=function(e){["main","audio"].forEach(function(t){u[t+"SegmentLoader_"][e]("appended",i.seekingAppendCheck_)})};return i.seekingAppendCheck_=function(){i.fixesBadSeeks_()&&(i.consecutiveUpdates=0,i.lastRecordedTime=i.tech_.currentTime(),p("off"))},i.clearSeekingAppendCheck_=function(){return p("off")},i.watchForBadSeeking_=function(){i.clearSeekingAppendCheck_(),p("on")},i.tech_.on("seeked",i.clearSeekingAppendCheck_),i.tech_.on("seeking",i.watchForBadSeeking_),i.tech_.on("waiting",s),i.tech_.on(xd,l),i.tech_.on("canplay",r),i.tech_.one("play",n),i.dispose=function(){i.clearSeekingAppendCheck_(),i.logger_("dispose"),i.tech_.off("waiting",s),i.tech_.off(xd,l),i.tech_.off("canplay",r),i.tech_.off("play",n),i.tech_.off("seeking",i.watchForBadSeeking_),i.tech_.off("seeked",i.clearSeekingAppendCheck_),d.forEach(function(e){u[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),u[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),i.tech_.off(["seeked","seeking"],c[e].reset)}),i.checkCurrentTimeTimeout_&&Xe.a.clearTimeout(i.checkCurrentTimeTimeout_),i.resetTimeUpdate_()},i}return s(t,e),vt(t,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&Xe.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=Xe.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"resetSegmentDownloads_",value:function(e){var t=this.playlistController_[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_()}},{key:"checkSegmentDownloads_",value:function(e){var t=this.playlistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=ds(this[e+"Buffered_"],n);if(this[e+"Buffered_"]=n,r){var a={bufferedRanges:n};return t.trigger({type:"bufferedrangeschanged",metadata:a}),void this.resetSegmentDownloads_(e)}this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:us(n)}),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.excludePlaylist({error:{message:"Excessive "+e+" segment downloading detected."},playlistExclusionDuration:1/0}))}},{key:"checkCurrentTime_",value:function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(qe([this.lastRecordedTime,e]));var i={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:i}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}}},{key:"resetTimeUpdate_",value:function(){this.consecutiveUpdates=0}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var e=this.seekable(),t=this.tech_.currentTime(),i=this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow),n=void 0;if(i){n=e.end(e.length-1)}if(this.beforeSeekableWindow_(e,t)){var r=e.start(0);n=r+(r===e.end(0)?0:.1)}if(void 0!==n)return this.logger_("Trying to seek outside of seekable at time "+t+" with seekable range "+os(e)+". Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0;for(var a=this.playlistController_.sourceUpdater_,s=this.tech_.buffered(),o=a.audioBuffer?a.audioBuffered():null,l=a.videoBuffer?a.videoBuffered():null,u=this.media(),d=u.partTargetDuration?u.partTargetDuration:2*(u.targetDuration-1/30),c=[o,l],p=0;p<c.length;p++)if(c[p]){var h=ps(c[p],t);if(h<d)return!1}var f=rs(s,t);return 0!==f.length&&(n=f.start(0)+.1,this.logger_("Buffered region starts ("+f.start(0)+") just beyond seek point ("+t+"). Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),i=ns(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+i.start(0)+" -> "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}var n=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;var a=rs(r,t);return a.length>0&&(this.logger_("Stopped at "+t+" and seeking to "+a.start(0)),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}},{key:"afterSeekableWindow_",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e.length)return!1;var r=e.end(e.length-1)+.1,a=!i.endList,s="number"==typeof i.partTargetDuration;return a&&(s||n)&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}},{key:"videoUnderflow_",value:function(e){var t=e.videoBuffered,i=e.audioBuffered,n=e.currentTime;if(t){var r=void 0;if(t.length&&i.length){var a=ns(t,n-3),s=ns(t,n),o=ns(i,n);o.length&&!s.length&&a.length&&(r={start:a.end(0),end:o.end(0)})}else{rs(t,n).length||(r=this.gapFromVideoUnderflow_(t,n))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0)}}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),i=this.tech_.currentTime(),n=rs(t,i);if(this.resetTimeUpdate_(),0!==n.length&&i===e){this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+1/30);var r={gapInfo:{from:i,to:n.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:r}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var i=as(e),n=0;n<i.length;n++){var r=i.start(n),a=i.end(n);if(t-r<4&&t-r>2)return{start:r,end:a}}return null}}]),t}(ze.EventTarget),Cd={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},jd=function e(t,i){var n=0,r=0,a=Fe(Cd,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-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.play())},l=function(){return Date.now()-n<1e3*a.errorInterval?void t.trigger({type:"usage",name:"vhs-error-reload-canceled"}):a.getSource&&"function"==typeof a.getSource?(n=Date.now(),a.getSource.call(t,o)):void ze.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)},d=function(i){u(),e(t,i)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=d},Od=function(e){jd(this,e)},Pd={PlaylistLoader:so,Playlist:Rs,utils:So,STANDARD_PLAYLIST_SELECTOR:Gl,INITIAL_PLAYLIST_SELECTOR:Yl,lastBandwidthSelector:Gl,movingAverageBandwidthSelector:Wl,comparePlaylistBandwidth:ql,comparePlaylistResolution:Vl,xhr:co()};Object.keys(Ho).forEach(function(e){Object.defineProperty(Pd,e,{get:function(){return ze.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),Ho[e]},set:function(t){if(ze.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0)return void ze.log.warn("value of Vhs."+e+" must be greater than or equal to 0");Ho[e]=t}})});var Id=function(e,t){for(var i=t.media(),n=-1,r=0;r<e.length;r++)if(e[r].id===i.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})},Ad=function(e,t){t.representations().forEach(function(t){e.addQualityLevel(t)}),Id(e,t.playlists)};Pd.canPlaySource=function(){return ze.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};var Dd=function(e,t,i){if(!e)return e;var n={};t&&t.attributes&&t.attributes.CODECS&&(n=Ml(Object(rt.h)(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);var r=Object(rt.e)(n.video),a=Object(rt.e)(n.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 Fe(e,s)},Ld=function(e,t){return e.reduce(function(e,i){if(!i.contentProtection)return e;var n=t.reduce(function(e,t){var n=i.contentProtection[t];return n&&n.pssh&&(e[t]={pssh:n.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[])},Md=function(e){var t=e.player,i=e.sourceKeySystems,n=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=n?r.concat([n]):r,s=Ld(a,Object.keys(i)),o=[],l=[];return s.forEach(function(e){l.push(new Promise(function(e,i){t.tech_.one("keysessioncreated",e)})),o.push(new Promise(function(i,n){t.eme.initializeMediaKeys({keySystems:e},function(e){if(e)return void n(e);i()})}))}),Promise.race([Promise.all(o),Promise.race(l)])},Nd=function(e){var t=e.player,i=e.sourceKeySystems,n=e.media,r=e.audioMedia,a=Dd(i,n,r);return!!a&&(t.currentSource().keySystems=a,!(a&&!t.eme)||(ze.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},Rd=function(){if(!Xe.a.localStorage)return null;var e=Xe.a.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},Ud=function(e){if(!Xe.a.localStorage)return!1;var t=Rd();t=t?Fe(t,e):e;try{Xe.a.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(e){return!1}return t},Bd=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e},zd=function(e,t){e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},Fd=function(e,t){e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},qd=function(e,t){e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},Vd=function(e,t){e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};Pd.supportsNativeHls=function(){if(!$e.a||!$e.a.createElement)return!1;var e=$e.a.createElement("video");return!!ze.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Pd.supportsNativeDash=function(){return!!($e.a&&$e.a.createElement&&ze.getTech("Html5").isSupported())&&/maybe|probably/i.test($e.a.createElement("video").canPlayType("application/dash+xml"))}(),Pd.supportsTypeNatively=function(e){return"hls"===e?Pd.supportsNativeHls:"dash"===e&&Pd.supportsNativeDash},Pd.isSupported=function(){return ze.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},Pd.xhr.onRequest=function(e){zd(Pd.xhr,e)},Pd.xhr.onResponse=function(e){Fd(Pd.xhr,e)},Pd.xhr.offRequest=function(e){qd(Pd.xhr,e)},Pd.xhr.offResponse=function(e){Vd(Pd.xhr,e)};var Hd=ze.getComponent("Component"),Gd=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,n.vhs));if("number"==typeof n.initialBandwidth&&(r.options_.bandwidth=n.initialBandwidth),r.logger_=ts("VhsHandler"),i.options_&&i.options_.playerId){var s=ze.getPlayer(i.options_.playerId);r.player_=s}if(r.tech_=i,r.source_=e,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks)i.overrideNativeAudioTracks(!0),i.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");return r.on($e.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=$e.a.fullscreenElement||$e.a.webkitFullscreenElement||$e.a.mozFullScreenElement||$e.a.msFullscreenElement;t&&t.contains(r.tech_.el())?r.playlistController_.fastQualityChange_():r.playlistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_)return void(this.ignoreNextSeekingEvent_=!1);this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}return s(t,e),vt(t,[{key:"setOptions_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.options_=Fe(this.options_,t),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var i=Rd();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Ho.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ho.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;var n=this.options_.customPixelRatio;"number"==typeof n&&n>=0&&(this.customPixelRatio=n)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setOptions_(e)}},{key:"src",value:function(e,t){var i=this;if(e){this.setOptions_(),this.options_.src=Bd(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Pd,this.options_.sourceType=Object(at.a)(t),this.options_.seekTo=function(e){i.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new wd(this.options_);var n=Fe({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return i.seekable()},media:function(){return i.playlistController_.media()},playlistController:this.playlistController_});this.playbackWatcher_=new Ed(n),this.attachStreamingEventListeners_(),this.playlistController_.on("error",function(){var e=ze.players[i.tech_.options_.playerId],t=i.playlistController_.error;"object"!==(void 0===t?"undefined":mt(t))||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var r=this.options_.bufferBasedABR?Pd.movingAverageBandwidthSelector(.55):Pd.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Pd.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.playlistController_.selectPlaylist},set:function(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.playlistController_.mainSegmentLoader_.bandwidth,t=Xe.a.navigator.connection||Xe.a.navigator.mozConnection||Xe.a.navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){var i=1e3*t.downlink*1e3;e=i>=1e7&&e>=1e7?Math.max(e,i):i}return e},set:function(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){ze.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.playlistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.playlistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.playlistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.playlistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.playlistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.playlistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.playlistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return i.playlistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return i.playlistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return i.playlistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return i.playlistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return i.playlistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return us(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},main:{get:function(){return i.playlists.main},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return us(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",function(){i.options_.useBandwidthFromLocalStorage&&Ud({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})}),this.playlistController_.on("selectedinitialmedia",function(){kd(i)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",function(){i.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=Xe.a.URL.createObjectURL(this.playlistController_.mediaSource),(ze.browser.IS_ANY_SAFARI||ze.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}}},{key:"createKeySessions_",value:function(){var e=this,t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Md({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.main.playlists}).then(function(){e.logger_("created EME key session"),e.playlistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})})}},{key:"handleWaitingForKey_",value:function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}},{key:"setupEme_",value:function(){var e=this,t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=Nd({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",function(t){e.playlistController_.updatePlaylistByKeyStatus(t.keyId,t.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!i)return void this.playlistController_.sourceUpdater_.initializedEme();this.createKeySessions_()}},{key:"setupQualityLevels_",value:function(){var e=this,t=ze.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",function(){Ad(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){Id(e.qualityLevels_,e.playlists)}))}},{key:"version",value:function(){return this.constructor.version()}},{key:"canChangeType",value:function(){return Nu.canChangeType()}},{key:"play",value:function(){this.playlistController_.play()}},{key:"setCurrentTime",value:function(e){this.playlistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.playlistController_.duration()}},{key:"seekable",value:function(){return this.playlistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&Xe.a.URL.revokeObjectURL&&(Xe.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),ht(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(e,t){return Po({playlist:this.playlistController_.media(),time:e,callback:t})}},{key:"seekToProgramTime",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return Io({programTime:e,playlist:this.playlistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}},{key:"setupXhrHooks_",value:function(){var e=this;this.xhr.onRequest=function(t){zd(e.xhr,t)},this.xhr.onResponse=function(t){Fd(e.xhr,t)},this.xhr.offRequest=function(t){qd(e.xhr,t)},this.xhr.offResponse=function(t){Vd(e.xhr,t)},this.player_.trigger("xhr-hooks-ready")}},{key:"attachStreamingEventListeners_",value:function(){var e=this,t=["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"],i=["gapjumped","playedrangeschanged"];t.forEach(function(t){e.playlistController_.on(t,function(t){e.player_.trigger(tt()({},t))})}),i.forEach(function(t){e.playbackWatcher_.on(t,function(t){e.player_.trigger(tt()({},t))})})}}],[{key:"version",value:function(){return{"@videojs/http-streaming":"3.16.2","mux.js":"7.1.0","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}}]),t}(Hd),Wd={name:"videojs-http-streaming",VERSION:"3.16.2",canHandleSource:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Fe(ze.options,t);return!(!i.vhs.experimentalUseMMS&&!Object(rt.c)("avc1.4d400d,mp4a.40.2",!1))&&Wd.canPlayType(e.type,i)},handleSource:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Fe(ze.options,i);return t.vhs=new Gd(e,t,n),t.vhs.xhr=co(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){var i=Object(at.a)(e);if(!i)return"";var n=Wd.getOverrideNative(t);return!Pd.supportsTypeNatively(i)||n?"maybe":""},getOverrideNative:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vhs,i=void 0===t?{}:t,n=!(ze.browser.IS_ANY_SAFARI||ze.browser.IS_IOS),r=i.overrideNative;return void 0===r?n:r}};(function(){return Object(rt.c)("avc1.4d400d,mp4a.40.2",!0)})()&&ze.getTech("Html5").registerSourceHandler(Wd,0),ze.VhsHandler=Gd,ze.VhsSourceHandler=Wd,ze.Vhs=Pd,ze.use||ze.registerComponent("Vhs",Pd),ze.options.vhs=ze.options.vhs||{},ze.getPlugin&&ze.getPlugin("reloadSourceOnError")||ze.registerPlugin("reloadSourceOnError",Od)}).call(t,i(9))},function(e,t,i){(function(t){var n,r=void 0!==t?t:"undefined"!=typeof window?window:{},a=i(68);"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=n}).call(t,i(9))},function(e,t,i){"use strict";var n=i(4),r=i.n(n),a=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=r.a.location&&r.a.location.href||"");var i=/^\/\//.test(e),n=!r.a.location&&!/\/\//i.test(e);e=new r.a.URL(e,r.a.location||"https://example.com");var a=new URL(t,e);return n?a.href.slice("https://example.com".length):i?a.href.slice(a.protocol.length):a.href};t.a=a},function(e,t,i){"use strict";(function(e){function n(e){for(var t=s(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}t.a=n;var r=i(4),a=i.n(r),s=function(t){return a.a.atob?a.a.atob(t):e.from(t,"base64").toString("binary")}}).call(t,i(80).Buffer)},function(e,t,i){function n(e){return""!==e}function r(e){return e?e.split(/[\t\n\f\r ]+/).filter(n):[]}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function s(e){if(!e)return[];var t=r(e);return Object.keys(t.reduce(a,{}))}function o(e){return function(t){return e&&-1!==e.indexOf(t)}}function l(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function u(e,t){var i=e.prototype;if(!(i instanceof t)){var n=function(){};n.prototype=t.prototype,n=new n,l(i,n),e.prototype=i=n}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}function d(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,Se[e]),this.message=Se[e],Error.captureStackTrace&&Error.captureStackTrace(this,d);return i.code=e,t&&(this.message=this.message+": "+t),i}function c(){}function p(e,t){this._node=e,this._refresh=t,h(this)}function h(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(re(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var n=i.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];l(i,e),e._inc=t}}function f(){}function v(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function m(e,t,i,n){if(n?t[v(t,n)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(n&&k(r,e,n),S(r,e,i))}}function g(e,t,i){var n=v(t,i);if(!(n>=0))throw new d(xe,new Error(e.tagName+"@"+i));for(var r=t.length-1;n<r;)t[n]=t[++n];if(t.length=r,e){var a=e.ownerDocument;a&&(k(a,e,i),i.ownerElement=null)}}function y(){}function b(){}function _(e){return"<"==e&&"<"||">"==e&&">"||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function w(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(w(e,t))return!0}while(e=e.nextSibling)}function T(){this.ownerDocument=this}function S(e,t,i){e&&e._inc++,i.namespaceURI===le.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function k(e,t,i,n){e&&e._inc++,i.namespaceURI===le.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function x(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{for(var r=t.firstChild,a=0;r;)n[a++]=r,r=r.nextSibling;n.length=a,delete n[n.length]}}}function E(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,x(e.ownerDocument,e),t}function C(e){return e&&(e.nodeType===b.DOCUMENT_NODE||e.nodeType===b.DOCUMENT_FRAGMENT_NODE||e.nodeType===b.ELEMENT_NODE)}function j(e){return e&&(P(e)||I(e)||O(e)||e.nodeType===b.DOCUMENT_FRAGMENT_NODE||e.nodeType===b.COMMENT_NODE||e.nodeType===b.PROCESSING_INSTRUCTION_NODE)}function O(e){return e&&e.nodeType===b.DOCUMENT_TYPE_NODE}function P(e){return e&&e.nodeType===b.ELEMENT_NODE}function I(e){return e&&e.nodeType===b.TEXT_NODE}function A(e,t){var i=e.childNodes||[];if(oe(i,P)||O(t))return!1;var n=oe(i,O);return!(t&&n&&i.indexOf(n)>i.indexOf(t))}function D(e,t){function i(e){return P(e)&&e!==t}var n=e.childNodes||[];if(oe(n,i))return!1;var r=oe(n,O);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function L(e,t,i){if(!C(e))throw new d(ke,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new d(xe,"child not in parent");if(!j(t)||O(t)&&e.nodeType!==b.DOCUMENT_NODE)throw new d(ke,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function M(e,t,i){var n=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===b.DOCUMENT_FRAGMENT_NODE){var a=r.filter(P);if(a.length>1||oe(r,I))throw new d(ke,"More than one element or text in fragment");if(1===a.length&&!A(e,i))throw new d(ke,"Element in fragment can not be inserted before doctype")}if(P(t)&&!A(e,i))throw new d(ke,"Only one element can be added and only after doctype");if(O(t)){if(oe(n,O))throw new d(ke,"Only one doctype is allowed");var s=oe(n,P);if(i&&n.indexOf(s)<n.indexOf(i))throw new d(ke,"Doctype can only be inserted before an element");if(!i&&s)throw new d(ke,"Doctype can not be appended since element is present")}}function N(e,t,i){var n=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===b.DOCUMENT_FRAGMENT_NODE){var a=r.filter(P);if(a.length>1||oe(r,I))throw new d(ke,"More than one element or text in fragment");if(1===a.length&&!D(e,i))throw new d(ke,"Element in fragment can not be inserted before doctype")}if(P(t)&&!D(e,i))throw new d(ke,"Only one element can be added and only after doctype");if(O(t)){if(oe(n,function(e){return O(e)&&e!==i}))throw new d(ke,"Only one doctype is allowed");var s=oe(n,P);if(i&&n.indexOf(s)<n.indexOf(i))throw new d(ke,"Doctype can only be inserted before an element")}}function R(e,t,i,n){L(e,t,i),e.nodeType===b.DOCUMENT_NODE&&(n||M)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===_e){var a=t.firstChild;if(null==a)return t;var s=t.lastChild}else a=s=t;var o=i?i.previousSibling:e.lastChild;a.previousSibling=o,s.nextSibling=i,o?o.nextSibling=a:e.firstChild=a,null==i?e.lastChild=s:i.previousSibling=s;do{a.parentNode=e}while(a!==s&&(a=a.nextSibling));return x(e.ownerDocument||e,e),t.nodeType==_e&&(t.firstChild=t.lastChild=null),t}function U(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,x(e.ownerDocument,e,t),t}function B(){this._nsMap={}}function z(){}function F(){}function q(){}function V(){}function H(){}function G(){}function W(){}function X(){}function Y(){}function $(){}function K(){}function J(){}function Q(e,t){var i=[],n=9==this.nodeType&&this.documentElement||this,r=n.prefix,a=n.namespaceURI;if(a&&null==r){var r=n.lookupPrefix(a);if(null==r)var s=[{namespace:a,prefix:null}]}return te(this,i,e,t,s),i.join("")}function Z(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===n&&r===le.XML||r===le.XMLNS)return!1;for(var a=i.length;a--;){var s=i[a];if(s.prefix===n)return s.namespace!==r}return!0}function ee(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,_),'"')}function te(e,t,i,n,r){if(r||(r=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case de:var a=e.attributes,s=a.length,o=e.firstChild,l=e.tagName;i=le.isHTML(e.namespaceURI)||i;var u=l;if(!i&&!e.prefix&&e.namespaceURI){for(var d,c=0;c<a.length;c++)if("xmlns"===a.item(c).name){d=a.item(c).value;break}if(!d)for(var p=r.length-1;p>=0;p--){var h=r[p];if(""===h.prefix&&h.namespace===e.namespaceURI){d=h.namespace;break}}if(d!==e.namespaceURI)for(var p=r.length-1;p>=0;p--){var h=r[p];if(h.namespace===e.namespaceURI){h.prefix&&(u=h.prefix+":"+l);break}}}t.push("<",u);for(var f=0;f<s;f++){var v=a.item(f);"xmlns"==v.prefix?r.push({prefix:v.localName,namespace:v.value}):"xmlns"==v.nodeName&&r.push({prefix:"",namespace:v.value})}for(var f=0;f<s;f++){var v=a.item(f);if(Z(v,i,r)){var m=v.prefix||"",g=v.namespaceURI;ee(t,m?"xmlns:"+m:"xmlns",g),r.push({prefix:m,namespace:g})}te(v,t,i,n,r)}if(l===u&&Z(e,i,r)){var m=e.prefix||"",g=e.namespaceURI;ee(t,m?"xmlns:"+m:"xmlns",g),r.push({prefix:m,namespace:g})}if(o||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),i&&/^script$/i.test(l))for(;o;)o.data?t.push(o.data):te(o,t,i,n,r.slice()),o=o.nextSibling;else for(;o;)te(o,t,i,n,r.slice()),o=o.nextSibling;t.push("</",u,">")}else t.push("/>");return;case ye:case _e:for(var o=e.firstChild;o;)te(o,t,i,n,r.slice()),o=o.nextSibling;return;case ce:return ee(t,e.name,e.value);case pe:return t.push(e.data.replace(/[<&>]/g,_));case he:return t.push("<![CDATA[",e.data,"]]>");case ge:return t.push("\x3c!--",e.data,"--\x3e");case be:var y=e.publicId,b=e.systemId;if(t.push("<!DOCTYPE ",e.name),y)t.push(" PUBLIC ",y),b&&"."!=b&&t.push(" ",b),t.push(">");else if(b&&"."!=b)t.push(" SYSTEM ",b,">");else{var w=e.internalSubset;w&&t.push(" [",w,"]"),t.push(">")}return;case me:return t.push("<?",e.target," ",e.data,"?>");case fe:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ie(e,t,i){var n;switch(t.nodeType){case de:n=t.cloneNode(!1),n.ownerDocument=e;case _e:break;case ce:i=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,i)for(var r=t.firstChild;r;)n.appendChild(ie(e,r,i)),r=r.nextSibling;return n}function ne(e,t,i){var n=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=t[r];"object"!=(void 0===a?"undefined":ae(a))&&a!=n[r]&&(n[r]=a)}switch(t.childNodes&&(n.childNodes=new c),n.ownerDocument=e,n.nodeType){case de:var s=t.attributes,o=n.attributes=new f,l=s.length;o._ownerElement=n;for(var u=0;u<l;u++)n.setAttributeNode(ne(e,s.item(u),!0));break;case ce:i=!0}if(i)for(var d=t.firstChild;d;)n.appendChild(ne(e,d,i)),d=d.nextSibling;return n}function re(e,t,i){e[t]=i}var ae="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},se=i(10),oe=se.find,le=se.NAMESPACE,ue={},de=ue.ELEMENT_NODE=1,ce=ue.ATTRIBUTE_NODE=2,pe=ue.TEXT_NODE=3,he=ue.CDATA_SECTION_NODE=4,fe=ue.ENTITY_REFERENCE_NODE=5,ve=ue.ENTITY_NODE=6,me=ue.PROCESSING_INSTRUCTION_NODE=7,ge=ue.COMMENT_NODE=8,ye=ue.DOCUMENT_NODE=9,be=ue.DOCUMENT_TYPE_NODE=10,_e=ue.DOCUMENT_FRAGMENT_NODE=11,we=ue.NOTATION_NODE=12,Te={},Se={},ke=(Te.INDEX_SIZE_ERR=(Se[1]="Index size error",1),Te.DOMSTRING_SIZE_ERR=(Se[2]="DOMString size error",2),Te.HIERARCHY_REQUEST_ERR=(Se[3]="Hierarchy request error",3)),xe=(Te.WRONG_DOCUMENT_ERR=(Se[4]="Wrong document",4),Te.INVALID_CHARACTER_ERR=(Se[5]="Invalid character",5),Te.NO_DATA_ALLOWED_ERR=(Se[6]="No data allowed",6),Te.NO_MODIFICATION_ALLOWED_ERR=(Se[7]="No modification allowed",7),Te.NOT_FOUND_ERR=(Se[8]="Not found",8)),Ee=(Te.NOT_SUPPORTED_ERR=(Se[9]="Not supported",9),Te.INUSE_ATTRIBUTE_ERR=(Se[10]="Attribute in use",10));Te.INVALID_STATE_ERR=(Se[11]="Invalid state",11),Te.SYNTAX_ERR=(Se[12]="Syntax error",12),Te.INVALID_MODIFICATION_ERR=(Se[13]="Invalid modification",13),Te.NAMESPACE_ERR=(Se[14]="Invalid namespace",14),Te.INVALID_ACCESS_ERR=(Se[15]="Invalid access",15);d.prototype=Error.prototype,l(Te,d),c.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)te(this[n],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},p.prototype.item=function(e){return h(this),this[e]||null},u(p,c),f.prototype={length:0,item:c.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new d(Ee);var i=this.getNamedItem(e.nodeName);return m(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new d(Ee);return t=this.getNamedItemNS(e.namespaceURI,e.localName),m(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return g(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return g(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var n=this[i];if(n.localName==t&&n.namespaceURI==e)return n}return null}},y.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var n=new T;if(n.implementation=this,n.childNodes=new c,n.doctype=i||null,i&&n.appendChild(i),t){var r=n.createElementNS(e,t);n.appendChild(r)}return n},createDocumentType:function(e,t,i){var n=new G;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=i||"",n}},b.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 R(this,e,t)},replaceChild:function(e,t){R(this,e,t,N),t&&this.removeChild(t)},removeChild:function(e){return E(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ne(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==pe&&e.nodeType==pe?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&i[n]===e)return n;t=t.nodeType==ce?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==ce?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},l(ue,b),l(ue,b.prototype),T.prototype={nodeName:"#document",nodeType:ye,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==_e){for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e}return R(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===de&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),E(this,e)},replaceChild:function(e,t){R(this,e,t,N),e.ownerDocument=this,t&&this.removeChild(t),P(e)&&(this.documentElement=e)},importNode:function(e,t){return ie(this,e,t)},getElementById:function(e){var t=null;return w(this.documentElement,function(i){if(i.nodeType==de&&i.getAttribute("id")==e)return t=i,!0}),t},getElementsByClassName:function(e){var t=s(e);return new p(this,function(i){var n=[];return t.length>0&&w(i.documentElement,function(r){if(r!==i&&r.nodeType===de){var a=r.getAttribute("class");if(a){var l=e===a;if(!l){var u=s(a);l=t.every(o(u))}l&&n.push(r)}}}),n})},createElement:function(e){var t=new B;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new c,(t.attributes=new f)._ownerElement=t,t},createDocumentFragment:function(){var e=new $;return e.ownerDocument=this,e.childNodes=new c,e},createTextNode:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new K;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new z;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Y;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new B,n=t.split(":"),r=i.attributes=new f;return i.childNodes=new c,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new z,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},u(T,b),B.prototype={nodeType:de,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 i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===_e?this.insertBefore(e,null):U(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 i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+i,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new p(this,function(t){var i=[];return w(t,function(n){n===t||n.nodeType!=de||"*"!==e&&n.tagName!=e||i.push(n)}),i})},getElementsByTagNameNS:function(e,t){return new p(this,function(i){var n=[];return w(i,function(r){r===i||r.nodeType!==de||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||n.push(r)}),n})}},T.prototype.getElementsByTagName=B.prototype.getElementsByTagName,T.prototype.getElementsByTagNameNS=B.prototype.getElementsByTagNameNS,u(B,b),z.prototype.nodeType=ce,u(z,b),F.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(Se[ke])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},u(F,b),q.prototype={nodeName:"#text",nodeType:pe,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(q,F),V.prototype={nodeName:"#comment",nodeType:ge},u(V,F),H.prototype={nodeName:"#cdata-section",nodeType:he},u(H,F),G.prototype.nodeType=be,u(G,b),W.prototype.nodeType=we,u(W,b),X.prototype.nodeType=ve,u(X,b),Y.prototype.nodeType=fe,u(Y,b),$.prototype.nodeName="#document-fragment",$.prototype.nodeType=_e,u($,b),K.prototype.nodeType=me,u(K,b),J.prototype.serializeToString=function(e,t,i){return Q.call(e,t,i)},b.prototype.toString=Q;try{if(Object.defineProperty){var Ce=function e(t){switch(t.nodeType){case de:case _e:var i=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&i.push(e(t)),t=t.nextSibling;return i.join("");default:return t.nodeValue}};Object.defineProperty(p.prototype,"length",{get:function(){return h(this),this.$$length}}),Object.defineProperty(b.prototype,"textContent",{get:function(){return Ce(this)},set:function(e){switch(this.nodeType){case de:case _e:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),re=function(e,t,i){e["$$"+t]=i}}}catch(e){}t.DocumentType=G,t.DOMException=d,t.DOMImplementation=y,t.Element=B,t.Node=b,t.NodeList=c,t.XMLSerializer=J},function(e,t,i){"use strict";i.d(t,"a",function(){return s});var n=i(5),r=Object(n.k)([73,68,51]),a=function(e,t){void 0===t&&(t=0),e=Object(n.k)(e);var i=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?r+20:r+10},s=function e(t,i){return void 0===i&&(i=0),t=Object(n.k)(t),t.length-i<10||!Object(n.a)(t,r,{offset:i})?i:(i+=a(t,i),e(t,i))}},function(e,t,i){"use strict";i.d(t,"a",function(){return r}),i.d(t,"b",function(){return a}),i.d(t,"c",function(){return s});var n=i(5),r=function(e){var t="",i=e[1]>>>3,r=31&e[1],a=e[2]>>>7,s=(64&e[2])>>6,o=(32&e[2])>>5,l=(16&e[2])>>4,u=(8&e[2])>>3,d=(4&e[2])>>2,c=3&e[2];t+=i+"."+Object(n.g)(r,2,"0"),0===a?t+="M":1===a&&(t+="H");var p;return p=2===i&&s?o?12:10:s?10:8,t+="."+Object(n.g)(p,2,"0"),t+="."+l,t+="."+u+d+c},a=function(e){return""+Object(n.j)(e[1])+Object(n.j)(252&e[2])+Object(n.j)(e[3])},s=function(e){var t="",i=e[1]>>6,r=31&e[1],a=(32&e[1])>>5,s=e.subarray(2,6),o=e.subarray(6,12),l=e[12];1===i?t+="A":2===i?t+="B":3===i&&(t+="C"),t+=r+".";var u=parseInt(Object(n.i)(s).split("").reverse().join(""),2);u>255&&(u=parseInt(Object(n.i)(s),2)),t+=u.toString(16)+".",t+=0===a?"L":"H",t+=l;for(var d="",c=0;c<o.length;c++){var p=o[c];p&&(d&&(d+="."),d+=p.toString(16))}return d&&(t+="."+d),t}},function(e,t,i){var n=i(100);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("2480945a",n,!0,{})},function(e,t,i){var n=i(101);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("43883a3c",n,!0,{})},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},function(e,t,i){"use strict";function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=i(1);e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(r.isURLSearchParams(t))a=t.toString();else{var s=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))}))}),a=s.join("&")}if(a){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,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}},function(e,t,i){"use strict";var n=i(1),r=i(112),a=i(113),s=i(32),o=i(114),l=i(117),u=i(118),d=i(35);e.exports=function(e){return new Promise(function(t,i){function c(){if(v){var n="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null,a=f&&"text"!==f&&"json"!==f?v.response:v.responseText,s={data:a,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};r(t,i,s),v=null}}var p=e.data,h=e.headers,f=e.responseType;n.isFormData(p)&&delete h["Content-Type"];var v=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 y=o(e.baseURL,e.url);if(v.open(e.method.toUpperCase(),s(y,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=c:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(c)},v.onabort=function(){v&&(i(d("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){i(d("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(d(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in v&&n.forEach(h,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete h[t]:v.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),f&&"json"!==f&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){v&&(v.abort(),i(e),v=null)}),p||(p=null),v.send(p)})}},function(e,t,i){"use strict";var n=i(33);e.exports=function(e,t,i,r,a){var s=new Error(e);return n(s,t,i,r,a)}},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";var n=i(1);e.exports=function(e,t){function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function r(r){n.isUndefined(t[r])?n.isUndefined(e[r])||(a[r]=i(void 0,e[r])):a[r]=i(e[r],t[r])}t=t||{};var a={},s=["url","method","data"],o=["headers","auth","proxy","params"],l=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];n.forEach(s,function(e){n.isUndefined(t[e])||(a[e]=i(void 0,t[e]))}),n.forEach(o,r),n.forEach(l,function(r){n.isUndefined(t[r])?n.isUndefined(e[r])||(a[r]=i(void 0,e[r])):a[r]=i(void 0,t[r])}),n.forEach(u,function(n){n in t?a[n]=i(e[n],t[n]):n in e&&(a[n]=i(void 0,e[n]))});var d=s.concat(o).concat(l).concat(u),c=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===d.indexOf(e)});return n.forEach(c,r),a}},function(e,t,i){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,i){e.exports=i.p+"font/iconfont.eot"},function(e,t,i){"use strict";var n=i(41);t.a=n.a},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(42),o=(i.n(s),i(8)),l=i.n(o),u=i(12),d=(i.n(u),i(6));t.a={name:"banner",mixins:[d.a],components:{swiper:s.swiper,swiperSlide:s.swiperSlide},data:function(){return{hasPostList:[],swiperIndex:0,swiperTimer:null,swiperPcStyle:1,option:{disableOnInteraction:!1,centeredSlides:!0,loop:!1,loopPreventsSlide:!0,observer:!0,observeParents:!0,observeSlideChildren:!0},swiperId:Math.floor(1e4*Math.random()),bannerHeight:"100%",bannerBgHeight:null}},watch:{pageDataObj:{handler:function(){this.pageDataObj&&this.pageDataObj.list&&this.pageDataObj.list.length>0&&this.getProportion()},deep:!0,immediate:!0}},mounted:function(){var e=this;window.addEventListener("scroll",function(){e.handleScroll()}),this.handleScroll()},methods:{exposurePost:function(e){this.$emit("exposurePost",e)},handleScroll:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs["swiper-main"+e.swiperId],i&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&(u=e.$refs["hotSport"+e.swiperIndex])&&u[0]&&u[0].swiperInitPost());case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},swiperAutoplay:function(){this.pageDataObj.list[this.swiper.realIndex].videoId&&this.$refs["hotSport"+this.swiper.realIndex][0].playVideo(),this.changeSwiper()},stopOtherVideo:function(){},stopSwiperAuto:function(){this.swiper&&this.swiper.autoplay.stop()},startSwiperAuto:function(){this.swiper&&this.swiper.autoplay.start()},getProportion:function(e){var t=this;this.$nextTick(function(){var e=t.$refs.swiperSection.clientWidth,i=0;if(t.pageDataObj.list.forEach(function(t){t.height*e/t.width>i&&(i=t.height*e/t.width)}),t.pageDataObj.bgStyle&&1===t.pageDataObj.bgStyle.status&&t.pageDataObj.bgStyle.picList.length>0&&t.pageDataObj.bgStyle.picList[0].height){var n=t.pageDataObj.bgStyle.picList[0].height*e/t.pageDataObj.bgStyle.picList[0].width;t.bannerBgHeight=n+"px",i=i>n?i:n}t.bannerHeight=i>0?i+"px":"100%",t.updateSwiper()})},updateSwiper:function(){var e=this;if(this.pageDataObj&&this.pageDataObj.list&&this.pageDataObj.list.length>0){var t=this;this.$nextTick(function(){e.swiper&&(e.swiper.destroy(!0,!0),e.swiper=null),e.option.autoplay=!!e.pageDataObj.autoPlay&&(e.pageDataObj.list.length>1&&{delay:1e3*e.pageDataObj.interval,disableOnInteraction:!1}),"pc"===e.curSystem?(e.option.navigation={prevEl:".swiper-main"+e.swiperId+" .swiper-button-left",nextEl:".swiper-main"+e.swiperId+" .swiper-button-right"},e.option.pagination={el:".swiper-pagination",clickable:!0}):(2===e.pageDataObj.styleType&&(e.option.slidesPerView=1.8,e.option.spaceBetween="10%",e.option.loopAdditionalSlides=1,e.option.loopedSlides=3,e.option.slidePrevClass="swiper-opacity",e.option.slideNextClass="swiper-opacity"),2!==e.pageDataObj.styleType&&(e.option.pagination={el:".swiper-main"+e.swiperId+" .swiper-pagination",type:"bullets",renderBullet:function(e,i){return'<span class="'+i+' swiper-pagination-bullet-mob" style="width: '+100/t.pageDataObj.list.length+'%">'+(e+1)+"</span>"}})),e.option.on={autoplay:function(){t.swiperAutoplay()},slideChange:function(){t.changeSwiper(),t.swiper.realIndex&&(t.isStart=!0),t.isStart&&(t.swiperIndex=t.swiper.realIndex,t.handleScroll())}},e.swiper=new l.a(".swiper-container"+e.swiperId,e.option),e.swiper.slideTo(1,0,!1),e.stopOtherVideo()})}else this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)},changeSwiper:function(){var e=this;this.$nextTick(function(){0===e.swiper.activeIndex&&e.swiper.slideTo(e.pageDataObj.list.length-2,0,!1),e.swiper.activeIndex===e.pageDataObj.list.length-1&&e.swiper.slideTo(1,0,!1)})}}}},function(e,t,i){(function(e){var n,r,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(o,l){"object"==s(t)&&"object"==s(e)?e.exports=l(i(8)):(r=[i(135)],n=l,void 0!==(a="function"==typeof n?n.apply(t,r):n)&&(e.exports=a))}(0,function(e){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(t,i){t.exports=e},function(e,t){e.exports=function(e,t,i,n,r,a){var o,l=e=e||{},u=s(e.default);"object"!==u&&"function"!==u||(o=e,l=e.default);var d="function"==typeof l?l.options:l;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId=r);var c;if(a?(c=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):n&&(c=n),c){var p=d.functional,h=p?d.render:d.beforeCreate;p?(d._injectStyles=c,d.render=function(e,t){return c.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,c):[c]}return{esModule:o,exports:l,options:d}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i.n(n),a=i(8),s=i(1),o=s(r.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),r=i.n(n),a=i(7),s=i(1),o=s(r.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,i){"use strict";function n(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=i(0),a=n(r),s=i(2),o=n(s),l=i(3),u=n(l),d=window.Swiper||a.default,c=u.default,p=o.default,h=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:d,swiper:c,swiperSlide:p,install:h};t.default=f,t.Swiper=d,t.swiper=c,t.swiperSlide=p,t.install=h},function(e,t,i){"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,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n),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 i=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}return i},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(i){e.swiper.on(i,function(){t.$emit.apply(t,[i].concat(Array.prototype.slice.call(arguments))),t.$emit.apply(t,[i.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))})})}}}},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"swiper-container"},[e._t("parallax-bg"),e._v(" "),i("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:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.slideClass},[e._t("default")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a}])})}).call(t,i(21)(e))},function(e,t,i){"use strict";function n(e){i(140)}var r=i(44),a=i(142),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-fcad914e",null);t.a=l.exports},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(6),o=i(22),l=i(29),u=(i.n(l),i(30));i.n(u);t.a={name:"cmsVideo",mixins:[s.a],components:{videoJs:o.a},data:function(){return{isDataPost:!1,comTitleWidth:0,videoHeight:0,swiperTimer:null}},mounted:function(){var e=this;this.checkDomChange(),window.addEventListener("scroll",function(){e.handleScroll()}),this.handleScroll()},methods:{exposurePost:function(e){this.$emit("exposurePost",e)},dataPost:function(){this.isDataPost||(this.$emit("exposurePost",{dataset:this.pageDataObj,type:"video"}),this.isDataPost=!0)},handleScroll:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs.videoRef,i&&!e.pageDataObj.isVideoHasHot&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&e.dataPost());case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},checkDomChange:function(){var e=this;this.comTitleWidth>=0&&this.$nextTick(function(){e.comTitleWidth=e.$refs.videoRef?e.$refs.videoRef.clientWidth:""})},getVideoHeight:function(){var e=this;if(1!==this.pageDataObj.isVideoHasHot){var t=this,i=t.pageDataObj;this.$nextTick(function(){t.myPlayer=Object(o.a)("my-video_"+e.pageDataObj.uniqueId,{controls:!i.hasOwnProperty("controls")||!i.controls,muted:!i.hasOwnProperty("mute")||i.mute,reload:"auto",loop:i.loop,autoPlay:i.autoPlay,sources:[{src:i.videoUrl,type:"video/mp4"}],poster:i.coverPic},function(){i.autoPlay&&this.play()})})}var n=this.$refs.videoRef?this.$refs.videoRef.clientWidth:"";this.comTitleWidth>0&&(this.videoHeight=n*this.pageDataObj.height/this.pageDataObj.width)}},beforeDestroy:function(){this.myPlayer&&this.myPlayer.dispose()}}},function(e,t,i){"use strict";var n=i(46);t.a=n.a},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(6),o=i(14),l=i(42),u=(i.n(l),i(8)),d=i.n(u),c=i(12);i.n(c);t.a={name:"cmsProduct",mixins:[s.a],components:{swiper:l.swiper,swiperSlide:l.swiperSlide},data:function(){return{readyPostList:[],hasPostList:[],swiperIndex:0,swiperTimer:null,swiperOption:{slidesPerView:2},service:new o.a,goodsList:[],showNavigation:!1,productMoreHeight:0,swiperId:Math.round(1e3*Math.random()),option:{observer:!0,observeParents:!0,observeSlideChildren:!0},moreHeight:100,tiemID:""}},mounted:function(){var e=this;window.addEventListener("scroll",function(){e.handleScroll()}),this.handleScroll()},watch:{pageDataObj:{handler:function(){var e=this;this.pageDataObj&&this.pageDataObj.productShowList&&this.pageDataObj.productShowList.length>0?this.$nextTick(function(){if(e.swiper)"pc"===e.curSystem?(e.swiper.params.slidesPerView=e.pageDataObj.lineShowNum+.1,e.swiper.params.slidesPerGroup=e.pageDataObj.lineShowNum):e.swiper.params.slidesPerView=2.1,e.swiper.update();else{"pc"===e.curSystem?(e.option.slidesPerView=e.pageDataObj.lineShowNum+.1,e.option.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},e.option.slidesPerGroup=e.pageDataObj.lineShowNum):(e.option.slidesPerView=2.1,e.option.scrollbar={el:".swiper-scrollbar",draggable:!0});var t=e;e.option.on={slideChange:function(i){if(e.swiper.realIndex&&(t.isStart=!0),t.isStart){t.swiperIndex=t.swiper.snapIndex;var n="pc"===t.curSystem?t.pageDataObj&&t.pageDataObj.lineShowNum?t.pageDataObj.lineShowNum:0:2,r=n*(t.swiperIndex+1)>t.pageDataObj.productShowList.length?t.pageDataObj.productShowList.length:n*(t.swiperIndex+1),a=t.pageDataObj.productShowList.map(function(e,t){return e.position=t,e});a=a.slice(r-n,r),t.readyPostList=JSON.parse(JSON.stringify(a)),t.dataPost(t.readyPostList)}}},e.swiper=new d.a(".swiper-containerProduct"+e.swiperId,e.option)}}):this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)},deep:!0,immediate:!0}},computed:{},methods:{dataPost:function(e){var t=this;if(e.length>0){var i=this.$refs["swiperList"+this.swiperId];if(i){var n=document.documentElement.clientHeight,r=i.getBoundingClientRect();n-(r.top||0)-(r.height||0)>=0&&e.forEach(function(e){t.hasPostList.find(function(t){return e.position===t.position})||(t.$emit("exposurePost",{dataset:e,type:"productList"}),t.hasPostList.push(e))})}}},handleScroll:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l,u,d,c;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs["swiperList"+e.swiperId],i&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&(u="pc"===e.curSystem?e.pageDataObj&&e.pageDataObj.lineShowNum?e.pageDataObj.lineShowNum:0:2,d=u*(e.swiperIndex+1)>e.pageDataObj.productShowList.length?e.pageDataObj.productShowList.length:u*(e.swiperIndex+1),c=e.pageDataObj.productShowList.map(function(e,t){return e.position=t,e}),c=c.slice(d-u,d),e.readyPostList=JSON.parse(JSON.stringify(c)),e.dataPost(e.readyPostList)));case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},swiperHight:function(){clearTimeout(this.tiemID);var e=this;this.tiemID=setTimeout(function(){e.moreHeight=e.swiper?e.swiper.height:100},500)},getGoodsInfo:function(){if(this.pageDataObj.productShowList&&this.pageDataObj.productShowList.length>=0)return void(this.goodsList=this.pageDataObj.productShowList.map(function(e,t){return e.position=t,e}));var e={};switch(this.pageDataObj.goodsType){case 1:e={pageNum:1,pageSize:this.pageDataObj.goodsCodeList.length,sortRuleId:"",filterRuleList:[],itemCodeList:this.pageDataObj.goodsCodeList};break;case 2:e={pageNum:1,pageSize:this.pageDataObj.goodsShowNum,sortRuleId:this.pageDataObj.goodsSortType,filterRuleList:[],categoryParam:{categoryGroupCode:this.pageDataObj.categoryGroupCode,categoryCodeList:[this.pageDataObj.goodsCategoryId]}};break;case 3:e={pageNum:1,pageSize:this.pageDataObj.goodsShowNum,sortField:this.pageDataObj.goodsSortType}}this.getGoodsList(e)},getGoodsList:function(e){var t=this;this.service[3===this.pageDataObj.goodsType?"getSortProductInfo":"getProductInfo"](this.envUrl,e).then(function(e){e&&(t.goodsList=e.list.map(function(e,t){return e.position=t,e}))})},changeOption:function(){}}}},function(e,t,i){"use strict";var n=i(150);t.a={name:"cmsBusiness",mixins:[n.a],data:function(){return{decorationList:[]}},methods:{getDecorationList:function(){},jumpLink:function(e){}}}},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(6),o=i(11);t.a={name:"picText",mixins:[s.a],data:function(){return{isDataPost:!1,swiperTimer:null,background:{},hasReport:!1}},watch:{pageDataObj:{handler:function(e){var t=this;if(e.bgStyle){var i={1:{backgroundImage:"url('"+(this.pageDataObj.bgStyle.picList&&this.pageDataObj.bgStyle.picList.length>0?this.pageDataObj.bgStyle.picList[0].resourcePath||"":"")+"')",backgroundSize:"100%",backgroundRepeat:"no-repeat",backgroundPosition:"center"},2:{backgroundColor:this.pageDataObj.bgStyle.bgColor}};this.background=i[this.pageDataObj.bgStyle.type],this.isReportCms&&this.$nextTick(function(){var e=void 0;window.addEventListener("scroll",function(){t.isFixed&&(t.isFixed=!1),e&&clearTimeout(e),e=setTimeout(function(){t.handleScroll()},200)}),t.handleScroll()})}},deep:!0,immediate:!0}},mounted:function(){var e=this;window.addEventListener("scroll",function(){e.handleScrollGio()}),this.handleScrollGio()},methods:{dataPost:function(){this.isDataPost||(this.$emit("exposurePost",{dataset:this.pageDataObj,type:"picText"}),this.isDataPost=!0)},handleScrollGio:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs[e.pageDataObj.uniqueId],i&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&e.dataPost());case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},handleScroll:function(){if(!this.hasReport){var e=this.$refs[""+this.pageDataObj.uniqueId].getBoundingClientRect();e.top<=window.innerHeight||e.bottom>0?(this.isFixed=!0,this.hasReport=!0,Object(o.b)({uniqueId:this.pageDataObj.uniqueId,uniqueName:this.pageDataObj.uniqueName,componentMethodType:0,popData:{brand:1===this.pathType?"defaultPath":this.brand},materialId:"",materialName:"",refererPagePath:this.refererPagePath,componentType:6,brand:this.brand,event:"bannerShow"},this.envUrl)):this.isFixed=!1}}}}},function(e,t,i){"use strict";function n(e){i(151)}var r=i(50),a=i(154),s=i(3),o=n,l=s(r.a,a.a,!1,o,null,null);t.a=l.exports},function(e,t,i){"use strict";var n=i(14),r=i(11);t.a={props:{envUrl:{type:String,default:"https://mpsit40.ibaiqiu.com/"},language:{type:String,default:""}},watch:{language:{handler:function(e){this.getInfo()},deep:!0,immediate:!0}},data:function(){return{service:new n.a}},mounted:function(){this.getInfo()},methods:{navigatePage:function(e){if(e){Object.assign(e.content,{brand:1===e.pathType?"defaultPath":e.brand});Object(r.c)(e.content);1===e.tabType?window.location.href=e.path:window.open(e.path)}},getInfo:function(){var e=this;this.service.getNavigate({url:this.envUrl+"service-zuul/decoration/selectTerminalDecorationPageListByTerminalCode",language:this.language}).then(function(t){var i=JSON.parse(t.find(function(e){return"cmsNav"===e.pageCode}).pageConfig)||[];e.$emit("getNavigateData",i)})}}}},function(e,t,i){"use strict";var n=i(6);t.a={name:"selfComponents",mixins:[n.a]}},function(e,t,i){"use strict";var n=i(48);t.a=n.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(54),r=i(132),a=i(43),s=i(143),o=i(147),l=i(157),u=i(161),d=i(49);i.d(t,"picNav",function(){return n.a}),i.d(t,"banner",function(){return r.a}),i.d(t,"cmsProduct",function(){return s.a}),i.d(t,"cmsVideo",function(){return a.a}),i.d(t,"cmsBusiness",function(){return o.a}),i.d(t,"selfComponents",function(){return l.a}),i.d(t,"picText",function(){return u.a}),i.d(t,"cmsNavigate",function(){return d.a});var c=[n.a,r.a,a.a,s.a,o.a,l.a,u.a,d.a],p=function e(t){e.installed||c.map(function(e){return t.component(e.name,e)})};t.default={install:p}},function(e,t,i){"use strict";function n(e){i(55)}var r=i(17),a=i(131),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-abf9a682",null);t.a=l.exports},function(e,t,i){var n=i(56);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("c0ac7070",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".warp-two[data-v-abf9a682]{width:100%;display:flex;flex-wrap:wrap}.warp-two-pc[data-v-abf9a682]{width:49%}.warp-two-pc[data-v-abf9a682]:nth-of-type(2n){margin-left:2%}.warp-two-mob[data-v-abf9a682]{width:100%}.warp-title[data-v-abf9a682]{padding:60px 0 20px;text-align:left;font-size:20px}.swiper[data-v-abf9a682]{position:relative}.swiper[data-v-abf9a682] .swiper-wrapper{cursor:pointer}[data-v-abf9a682] .swiper-container-horizontal>.swiper-scrollbar{width:30%;left:40%;height:3px;position:relative;margin-top:20px}.cursor-pointer[data-v-abf9a682]{cursor:pointer}.load-image-d[data-v-abf9a682]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.load-image[data-v-abf9a682]{width:100px;height:100px}.swiper-container[data-v-abf9a682]{position:relative;width:100%}.swiper-container .swiper-slide[data-v-abf9a682]{color:#000;font-size:16px;text-align:center}.swiper-pagination[data-v-abf9a682]{text-align:center;width:100%;position:relative;height:3px;position:absolute;bottom:20px}.swiper-pagination[data-v-abf9a682] .swiper-pagination-bullet{width:30px;height:2px;border-radius:0;background:#fff;opacity:.48;margin:0 4px}.swiper-pagination[data-v-abf9a682] .swiper-pagination-bullet-active{background:#fff;opacity:1}.swiper-button-next[data-v-abf9a682],.swiper-button-prev[data-v-abf9a682]{width:35px;height:35px;border-radius:100%;background-size:10px;color:#fff;text-align:center;line-height:35px;background:rgba(0,0,0,.1)}.swiper-button-next[data-v-abf9a682]:hover,.swiper-button-prev[data-v-abf9a682]:hover{background:rgba(0,0,0,.3)}.swiper-slide[data-v-abf9a682]{background-repeat:no-repeat;background-size:cover;background-position:50%;background-color:#eee}.bqCmsIconfont[data-v-abf9a682]{font-family:bqCmsIconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""])},function(e,t,i){"use strict";function n(e,t){for(var i=[],n={},r=0;r<t.length;r++){var a=t[r],s=a[0],o=a[1],l=a[2],u=a[3],d={id:e+":"+r,css:o,media:l,sourceMap:u};n[s]?n[s].parts.push(d):i.push(n[s]={id:s,parts:[d]})}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translateZ(0);transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;-o-transition-property:transform,height;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:50%;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23007aff'/%3E%3C/svg%3E\");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23007aff'/%3E%3C/svg%3E\");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z'/%3E%3C/svg%3E\")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:opacity .3s;-o-transition:.3s opacity;transition:opacity .3s;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);-ms-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);-ms-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:top .2s,-webkit-transform .2s;transition:top .2s,-webkit-transform .2s;-o-transition:.2s transform,.2s top;transition:transform .2s,top .2s;transition:transform .2s,top .2s,-webkit-transform .2s}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:left .2s,-webkit-transform .2s;transition:left .2s,-webkit-transform .2s;-o-transition:.2s transform,.2s left;transition:transform .2s,left .2s;transition:transform .2s,left .2s,-webkit-transform .2s}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:right .2s,-webkit-transform .2s;transition:right .2s,-webkit-transform .2s;-o-transition:.2s transform,.2s right;transition:transform .2s,right .2s;transition:transform .2s,right .2s,-webkit-transform .2s}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:hsla(0,0%,100%,.25)}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0,0,0,.25)}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12) infinite;animation:swiper-preloader-spin 1s steps(12) infinite}.swiper-lazy-preloader:after{display:block;content:\"\";width:100%;height:100%;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%236c6c6c' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%23fff' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\")}@-webkit-keyframes swiper-preloader-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes swiper-preloader-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}",""])},function(e,t,i){"use strict";function n(e){i(60)}var r=i(19),a=i(62),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-05f772ff",null);t.a=l.exports},function(e,t,i){var n=i(61);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("0d671438",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".com-title[data-v-05f772ff]{width:100%}.com-title-data[data-v-05f772ff]{display:flex;align-items:center;justify-content:center}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"resize",rawName:"v-resize",value:e.resize,expression:"resize"}],staticClass:"com-title com-title-data"},[i("div",{staticClass:"com-title-data",style:{width:e.topWidth},attrs:{id:"resize"}},[i("div",{style:{width:e.componentWidth}},[e._t("default")],2)])])},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(64)}var r=i(20),a=i(124),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-8279d9c6",null);t.a=l.exports},function(e,t,i){var n=i(65);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("11b189ab",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".hot-main[data-v-8279d9c6]{width:100%;height:100%;position:relative;overflow:hidden;font-size:0}.video-ani[data-v-8279d9c6]{animation:optionsShow-data-v-8279d9c6 2s linear forwards}@keyframes optionsShow-data-v-8279d9c6{0%{opacity:0}to{opacity:1}}.hot-img[data-v-8279d9c6],.video-js[data-v-8279d9c6]{width:100%;height:100%}.hot-click[data-v-8279d9c6]{position:absolute;text-align:left;z-index:100;cursor:pointer}.hot-click-img[data-v-8279d9c6]{position:relative;max-width:100%;height:100%}.default-img[data-v-8279d9c6]{position:absolute;opacity:1}.hover-box[data-v-8279d9c6]{position:relative;height:100%;width:100%}.hover-img[data-v-8279d9c6]{position:absolute;opacity:0;height:0;bottom:0;-webkit-transition:height .3s ease;transition:height .3s ease}.hover-img-trans[data-v-8279d9c6]{opacity:1}.load-image-d[data-v-8279d9c6]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.load-image[data-v-8279d9c6]{width:100px;height:100px}.video-pc[data-v-8279d9c6]{width:100%}.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-8279d9c6]:active,.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-8279d9c6]:focus,[data-v-8279d9c6] .video-js:hover .vjs-big-play-button{background-color:rgba(43,51,63,.7)}.mask-hot[data-v-8279d9c6]{position:absolute;width:100%;height:100%;bottom:0;left:0;background:hsla(0,0%,100%,.3);opacity:0;z-index:99}.mask-hot[data-v-8279d9c6]:hover{opacity:1}.hide-controls[data-v-8279d9c6] .vjs-control-bar{display:none}",""])},function(e,t,i){var n=function(){return this}()||Function("return this")(),r=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=r&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=i(67),r)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t,i){(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(i){"use strict";function n(e,t,i,n){var r=t&&t.prototype instanceof a?t:a,s=Object.create(r.prototype),o=new f(n||[]);return s._invoke=d(e,i,o),s}function r(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}function a(){}function s(){}function o(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function i(n,a,s,o){var l=r(e[n],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===(void 0===d?"undefined":t(d))&&b.call(d,"__await")?Promise.resolve(d.__await).then(function(e){i("next",e,s,o)},function(e){i("throw",e,s,o)}):Promise.resolve(d).then(function(e){u.value=e,s(u)},o)}o(l.arg)}function n(e,t){function n(){return new Promise(function(n,r){i(e,t,n,r)})}return a=a?a.then(n,n):n()}var a;this._invoke=n}function d(e,t,i){var n=E;return function(a,s){if(n===j)throw new Error("Generator is already running");if(n===O){if("throw"===a)throw s;return m()}for(i.method=a,i.arg=s;;){var o=i.delegate;if(o){var l=c(o,i);if(l){if(l===P)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===E)throw n=O,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=j;var u=r(e,t,i);if("normal"===u.type){if(n=i.done?O:C,u.arg===P)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(n=O,i.method="throw",i.arg=u.arg)}}}function c(e,t){var i=e.iterator[t.method];if(i===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,c(e,t),"throw"===t.method))return P;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var n=r(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,P;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,P):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,P)}function p(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 h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function v(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i<e.length;)if(b.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=g,t.done=!0,t};return n.next=n}}return{next:m}}function m(){return{value:g,done:!0}}var g,y=Object.prototype,b=y.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},w=_.iterator||"@@iterator",T=_.asyncIterator||"@@asyncIterator",S=_.toStringTag||"@@toStringTag",k="object"===t(e),x=i.regeneratorRuntime;if(x)return void(k&&(e.exports=x));x=i.regeneratorRuntime=k?e.exports:{},x.wrap=n;var E="suspendedStart",C="suspendedYield",j="executing",O="completed",P={},I={};I[w]=function(){return this};var A=Object.getPrototypeOf,D=A&&A(A(v([])));D&&D!==y&&b.call(D,w)&&(I=D);var L=o.prototype=a.prototype=Object.create(I);s.prototype=L.constructor=o,o.constructor=s,o[S]=s.displayName="GeneratorFunction",x.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},x.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(L),e},x.awrap=function(e){return{__await:e}},l(u.prototype),u.prototype[T]=function(){return this},x.AsyncIterator=u,x.async=function(e,t,i,r){var a=new u(n(e,t,i,r));return x.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},l(L),L[S]="Generator",L[w]=function(){return this},L.toString=function(){return"[object Generator]"},x.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},x.values=v,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},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){function t(t,n){return a.type="throw",a.arg=e,i.next=t,n&&(i.method="next",i.arg=g),!!n}if(this.done)throw e;for(var i=this,n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=b.call(r,"catchLoc"),o=b.call(r,"finallyLoc");if(s&&o){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&b.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,P):this.complete(a)},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),P},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),h(i),P}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;h(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:v(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=g),P}}}(function(){return this}()||Function("return this")())}).call(t,i(21)(e))},function(e,t){},function(e,t,i){"use strict";function n(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function r(e,t,i){var n=e;return c(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=d({},t,{uri:e}),n.callback=i,n}function a(e,t,i){return t=r(e,t,i),s(t)}function s(e){function t(){4!==h.readyState||a.responseInterceptorsStorage.getIsEnabled()||setTimeout(l,0)}function i(){var e=void 0;if(e=h.response?h.response:h.responseText||o(h),S)try{e=JSON.parse(e)}catch(e){}return e}function r(t){if(clearTimeout(g),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,!m&&a.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry())return void(e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=h,s(e)},e.retry.getCurrentFuzzedDelay()));if(e.requestType&&a.responseInterceptorsStorage.getIsEnabled()){var i={headers:k.headers||{},body:k.body,responseUrl:h.responseURL,responseType:h.responseType},n=a.responseInterceptorsStorage.execute(e.requestType,i);k.body=n.body,k.headers=n.headers}return p(t,k)}function l(){if(!m){var t;clearTimeout(g),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var n=k,r=null;if(0!==t?(n={body:i(),statusCode:t,method:b,headers:{},url:y,rawRequest:h},h.getAllResponseHeaders&&(n.headers=f(h.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),e.requestType&&a.responseInterceptorsStorage.getIsEnabled()){var s={headers:n.headers||{},body:n.body,responseUrl:h.responseURL,responseType:h.responseType},o=a.responseInterceptorsStorage.execute(e.requestType,s);n.body=o.body,n.headers=o.headers}return p(r,n,n.body)}}if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&a.requestInterceptorsStorage.getIsEnabled()){var u={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},d=a.requestInterceptorsStorage.execute(e.requestType,u);e.uri=d.uri,e.headers=d.headers,e.body=d.body,e.metadata=d.metadata,e.retry=d.retry,e.timeout=d.timeout}var c=!1,p=function(t,i,n){c||(c=!0,e.callback(t,i,n))},h=e.xhr||null;h||(h=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var v,m,g,y=h.url=e.uri||e.url,b=h.method=e.method||"GET",_=e.body||e.data,w=h.headers=e.headers||{},T=!!e.sync,S=!1,k={body:void 0,headers:{},statusCode:0,method:b,url:y,rawRequest:h};if("json"in e&&!1!==e.json&&(S=!0,w.accept||w.Accept||(w.Accept="application/json"),"GET"!==b&&"HEAD"!==b&&(w["content-type"]||w["Content-Type"]||(w["Content-Type"]="application/json"),_=JSON.stringify(!0===e.json?_:e.json))),h.onreadystatechange=t,h.onload=l,h.onerror=r,h.onprogress=function(){},h.onabort=function(){m=!0,clearTimeout(e.retryTimeout)},h.ontimeout=r,h.open(b,y,!T,e.username,e.password),T||(h.withCredentials=!!e.withCredentials),!T&&e.timeout>0&&(g=setTimeout(function(){if(!m){m=!0,h.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}},e.timeout)),h.setRequestHeader)for(v in w)w.hasOwnProperty(v)&&h.setRequestHeader(v,w[v]);else if(e.headers&&!n(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(_||null),h}function o(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}function l(){}var u=i(4),d=i(13),c=i(70),p=i(71),h=i(72);a.httpHandler=i(73),a.requestInterceptorsStorage=new p,a.responseInterceptorsStorage=new p,a.retryManager=new h;/**
|
|
5
|
+
* @license
|
|
6
|
+
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
|
|
7
|
+
* Copyright (c) 2014 David Björklund
|
|
8
|
+
* Available under the MIT license
|
|
9
|
+
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
|
|
10
|
+
*/
|
|
11
|
+
var f=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]}),t):t};e.exports=a,e.exports.default=a,a.XMLHttpRequest=u.XMLHttpRequest||l,a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:u.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,i,n){return i=r(t,i,n),i.method=e.toUpperCase(),s(i)}})},function(e,t){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)}e.exports=i;var n=Object.prototype.toString},function(e,t,i){"use strict";function n(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=r(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var s=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},t.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var i=this.typeToInterceptorsMap_.get(e);return!i.has(t)&&(i.add(t),!0)},t.removeInterceptor=function(e,t){var i=this.typeToInterceptorsMap_.get(e);return!(!i||!i.has(t))&&(i.delete(t),!0)},t.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},t.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},t.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},t.execute=function(e,t){for(var i,r=this.getForType(e),a=n(r);!(i=a()).done;){var s=i.value;try{t=s(t)}catch(e){}}return t},e}();e.exports=s},function(e,t,i){"use strict";var n=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(e){this.maxAttempts_=e},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(e){this.delayFactor_=e},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(e){this.fuzzFactor_=e},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(e){this.initialDelay_=e},t.createRetry=function(e){var t=void 0===e?{}:e,i=t.maxAttempts,n=t.delayFactor,a=t.fuzzFactor,s=t.initialDelay;return new r({maxAttempts:i||this.maxAttempts_,delayFactor:n||this.delayFactor_,fuzzFactor:a||this.fuzzFactor_,initialDelay:s||this.initialDelay_})},e}(),r=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();e.exports=n},function(e,t,i){"use strict";function n(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),n=i[0],r=i[1];return"charset"===n.trim()?r.trim():e},"utf-8")}var r=i(4),a=function(e,t){return void 0===t&&(t=!1),function(i,a,s){if(i)return void e(i);if(a.statusCode>=400&&a.statusCode<=599){var o=s;if(t)if(r.TextDecoder){var l=n(a.headers&&a.headers["content-type"]);try{o=new TextDecoder(l).decode(s)}catch(e){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));return void e({cause:o})}e(null,s)}};e.exports=a},function(e,t,i){var n=i(4),r=e.exports={WebVTT:i(75),VTTCue:i(76),VTTRegion:i(77)};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},function(e,t,i){function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function a(){this.values=y(null)}function s(e,t,i,n){var r=n?e.split(n):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length){var o=s[0].trim(),l=s[1].trim();t(o,l)}}}function o(e,t,i){function o(){var t=r(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+u);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}var u=e;if(l(),t.startTime=o(),l(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+u);e=e.substr(3),l(),t.endTime=o(),l(),function(e,t){var n=new a;s(e,function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){n.set(e,i[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];n.integer(e,s),n.percent(e,s)&&n.set("snapToLines",!1),n.alt(e,s,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),n.percent(e,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}function l(e,t){for(var i,n=e.document.createElement("div"),a=n,s=[];null!==(i=function(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return function(e){return t=t.substr(e.length),e}(e[1]?e[1]:e[2])}());)if("<"!==i[0])a.appendChild(e.document.createTextNode(function(e){return b.innerHTML=e,e=b.textContent,b.textContent="",e}(i)));else{if("/"===i[1]){s.length&&s[s.length-1]===i.substr(2).replace(">","")&&(s.pop(),a=a.parentNode);continue}var o,l=r(i.substr(1,i.length-2));if(l){o=e.document.createProcessingInstruction("timestamp",l),a.appendChild(o);continue}var u=i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!u)continue;if(!(o=function(t,i){var n=_[t];if(!n)return null;var r=e.document.createElement(n),a=T[t];return a&&i&&(r[a]=i.trim()),r}(u[1],u[3])))continue;if(!function(e,t){return!S[t.localName]||S[t.localName]===e.localName}(a,o))continue;if(u[2]){var d=u[2].split(".");d.forEach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(w.hasOwnProperty(i)){var n=t?"background-color":"color",r=w[i];o.style[n]=r}}),o.className=d.join(" ")}s.push(u[1]),a.appendChild(o),a=o}return n}function u(e){for(var t=0;t<k.length;t++){var i=k[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function d(e){function t(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function i(e){if(!e||!e.length)return null;var n=e.pop(),r=n.textContent||n.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):r}return"ruby"===n.tagName?i(e):n.childNodes?(t(e,n),i(e)):void 0}var n,r=[],a="";if(!e||!e.childNodes)return"ltr";for(t(r,e);a=i(r);)for(var s=0;s<a.length;s++)if(n=a.charCodeAt(s),u(n))return"rtl";return"ltr"}function c(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,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}function p(){}function h(e,t,i){p.call(this),this.cue=t,this.cueDiv=l(e,t.text);var n={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(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:d(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function f(e){var t,i,n,r;if(e.div){i=e.div.offsetHeight,n=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||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function v(e,t,i,n){var r=new f(t),a=t.cue,s=c(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,d=u*Math.round(s),p=i[l]+u,h=o[0];Math.abs(d)>p&&(d=d<0?-1:1,d*=Math.ceil(p/u)*u),s<0&&(d+=""===a.vertical?i.height:i.width,o=o.reverse()),r.move(h,d)}else{var v=r.lineHeight/i.height*100;switch(a.lineAlign){case"center":s-=v/2;break;case"end":s-=v}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new f(t)}var m=function(e,t){for(var r,a=new f(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(n);)e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);s>l&&(r=new f(e),s=l),e=new f(a)}return r||a}(r,o);t.move(m.toCSSCompatValues(i))}function m(){}var g=i(23),y=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}}();n.prototype=y(Error.prototype),n.prototype.constructor=n,n.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,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var b=g.createElement&&g.createElement("textarea"),_={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},w={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)"},T={v:"title",lang:"lang"},S={rt:"ruby"},k=[[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]];p.prototype.applyStyles=function(e,t){t=t||this.div;for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},p.prototype.formatStyle=function(e,t){return 0===e?0:e+t},h.prototype=y(p.prototype),h.prototype.constructor=h,f.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}},f.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},f.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},f.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},f.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}},f.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},f.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}},f.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e,{left:e.left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},m.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},m.convertCueToDOMTree=function(e,t){return e&&t?l(e,t):null};m.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],a=f.getSimpleBoxPosition(n),s=Math.round(.05*a.height*100)/100,o={font:s+"px sans-serif"};!function(){for(var i,s,l=0;l<t.length;l++)s=t[l],i=new h(e,s,o),n.appendChild(i.div),v(e,i,a,r),s.displayState=i.div,r.push(f.getSimpleBoxPosition(i))}()}else for(var l=0;l<t.length;l++)n.appendChild(t[l].displayState)},m.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},m.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){function t(){for(var e=u.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,u.buffer=e.substr(t),i}function i(e){var t=new a;if(s(e,function(e,i){switch(e){case"id":t.set(e,i);break;case"width":t.percent(e,i);break;case"lines":t.integer(e,i);break;case"regionanchor":case"viewportanchor":var n=i.split(",");if(2!==n.length)break;var r=new a;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;t.set(e+"X",r.get("x")),t.set(e+"Y",r.get("y"));break;case"scroll":t.alt(e,i,["up"])}},/=/,/\s/),t.has("id")){var i=new(u.vttjs.VTTRegion||u.window.VTTRegion);i.width=t.get("width",100),i.lines=t.get("lines",3),i.regionAnchorX=t.get("regionanchorX",0),i.regionAnchorY=t.get("regionanchorY",100),i.viewportAnchorX=t.get("viewportanchorX",0),i.viewportAnchorY=t.get("viewportanchorY",100),i.scroll=t.get("scroll",""),u.onregion&&u.onregion(i),u.regionList.push({id:t.get("id"),region:i})}}function l(e){var t=new a;s(e,function(e,i){switch(e){case"MPEGT":t.integer(e+"S",i);break;case"LOCA":t.set(e+"L",r(i))}},/[^\d]:/,/,/),u.ontimestampmap&&u.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}var u=this;e&&(u.buffer+=u.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===u.state){if(!/\r\n|\n/.test(u.buffer))return this;d=t();var c=d.match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new n(n.Errors.BadSignature);u.state="HEADER"}for(var p=!1;u.buffer;){if(!/\r\n|\n/.test(u.buffer))return this;switch(p?p=!1:d=t(),u.state){case"HEADER":/:/.test(d)?function(e){e.match(/X-TIMESTAMP-MAP/)?s(e,function(e,t){switch(e){case"X-TIMESTAMP-MAP":l(t)}},/=/):s(e,function(e,t){switch(e){case"Region":i(t)}},/:/)}(d):d||(u.state="ID");continue;case"NOTE":d||(u.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){u.state="NOTE";break}if(!d)continue;u.cue=new(u.vttjs.VTTCue||u.window.VTTCue)(0,0,"");try{u.cue.align="center"}catch(e){u.cue.align="middle"}if(u.state="CUE",-1===d.indexOf("--\x3e")){u.cue.id=d;continue}case"CUE":try{o(d,u.cue,u.regionList)}catch(e){u.reportOrThrowError(e),u.cue=null,u.state="BADCUE";continue}u.state="CUETEXT";continue;case"CUETEXT":var h=-1!==d.indexOf("--\x3e");if(!d||h&&(p=!0)){u.oncue&&u.oncue(u.cue),u.cue=null,u.state="ID";continue}u.cue.text&&(u.cue.text+="\n"),u.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(u.state="ID");continue}}}catch(e){u.reportOrThrowError(e),"CUETEXT"===u.state&&u.cue&&u.oncue&&u.oncue(u.cue),u.cue=null,u.state="INITIAL"===u.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 n(n.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=m},function(e,t){function i(e){return"string"==typeof e&&(!!s[e.toLowerCase()]&&e.toLowerCase())}function n(e){return"string"==typeof e&&(!!o[e.toLowerCase()]&&e.toLowerCase())}function r(e,t,r){this.hasBeenReset=!1;var s="",o=!1,l=e,u=t,d=r,c=null,p="",h=!0,f="auto",v="start",m="auto",g="auto",y=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return 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 d},set:function(e){d=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return p},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");p=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&e!==a)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=n(e);t?(v=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=n(e);t?(g=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=n(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}var a="auto",s={"":1,lr:1,rl:1},o={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=r},function(e,t){function i(e){return"string"==typeof e&&(!!a[e.toLowerCase()]&&e.toLowerCase())}function n(e){return"number"==typeof e&&e>=0&&e<=100}function r(){var e=100,t=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(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(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(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}}})}var a={"":!0,up:!0};e.exports=r},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 a(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)}i.d(t,"a",function(){return w});var s=i(79),o=i(13),l=i.n(o),u=i(25),d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),c=function(e){function t(){n(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.buffer="",e}return a(t,e),d(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}(s.a),p=String.fromCharCode(9),h=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={};return t[1]&&(i.length=parseInt(t[1],10)),t[2]&&(i.offset=parseInt(t[2],10)),i},f=function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},v=function(e){var t={};if(!e)return t;for(var i=e.split(f()),n=i.length,r=void 0;n--;)""!==i[n]&&(r=/([^=]*)=(.*)/.exec(i[n]).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"),t[r[0]]=r[1]);return t},m=function(e){var t=e.split("x"),i={};return t[0]&&(i.width=parseInt(t[0],10)),t[1]&&(i.height=parseInt(t[1],10)),i},g=function(e){function t(){n(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.customParsers=[],e.tagMappers=[],e}return a(t,e),d(t,[{key:"push",value:function(e){var t=this,i=void 0,n=void 0;if(e=e.trim(),0!==e.length){if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});this.tagMappers.reduce(function(t,i){var n=i(e);return n===e?t:t.concat([n])},[e]).forEach(function(e){for(var r=0;r<t.customParsers.length;r++)if(t.customParsers[r].call(t,e))return;if(0!==e.indexOf("#EXT"))return void t.trigger("data",{type:"comment",text:e.slice(1)});if(e=e.replace("\r",""),i=/^#EXTM3U/.exec(e))return void t.trigger("data",{type:"tag",tagType:"m3u"});if(i=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},i[1]&&(n.duration=parseFloat(i[1])),i[2]&&(n.title=i[2]),void t.trigger("data",n);if(i=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},i[1]&&(n.duration=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},i[1]&&(n.version=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},i[1]&&(n.number=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},i[1]&&(n.number=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},i[1]&&(n.playlistType=i[1]),void t.trigger("data",n);if(i=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e))return n=l()(h(i[1]),{type:"tag",tagType:"byterange"}),void t.trigger("data",n);if(i=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},i[1]&&(n.allowed=!/NO/.test(i[1])),void t.trigger("data",n);if(i=/^#EXT-X-MAP:(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},i[1]){var a=v(i[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=h(a.BYTERANGE))}return void t.trigger("data",n)}if(i=/^#EXT-X-STREAM-INF:(.*)$/.exec(e))return n={type:"tag",tagType:"stream-inf"},i[1]&&(n.attributes=v(i[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=m(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),void t.trigger("data",n);if(i=/^#EXT-X-MEDIA:(.*)$/.exec(e))return n={type:"tag",tagType:"media"},i[1]&&(n.attributes=v(i[1])),void t.trigger("data",n);if(i=/^#EXT-X-ENDLIST/.exec(e))return void t.trigger("data",{type:"tag",tagType:"endlist"});if(i=/^#EXT-X-DISCONTINUITY/.exec(e))return void t.trigger("data",{type:"tag",tagType:"discontinuity"});if(i=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},i[1]&&(n.dateTimeString=i[1],n.dateTimeObject=new Date(i[1])),void t.trigger("data",n);if(i=/^#EXT-X-KEY:(.*)$/.exec(e))return n={type:"tag",tagType:"key"},i[1]&&(n.attributes=v(i[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 t.trigger("data",n);if(i=/^#EXT-X-START:(.*)$/.exec(e))return n={type:"tag",tagType:"start"},i[1]&&(n.attributes=v(i[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void t.trigger("data",n);if(i=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},i[1]?n.data=i[1]:n.data="",void t.trigger("data",n);if(i=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},i[1]?n.data=i[1]:n.data="",void t.trigger("data",n);if(i=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},i[1]?n.data=i[1]:n.data="",void t.trigger("data",n);if((i=/^#EXT-X-SKIP:(.*)$/.exec(e))&&i[1])return n={type:"tag",tagType:"skip"},n.attributes=v(i[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(p)),void t.trigger("data",n);if((i=/^#EXT-X-PART:(.*)$/.exec(e))&&i[1])return n={type:"tag",tagType:"part"},n.attributes=v(i[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=h(n.attributes.BYTERANGE)),void t.trigger("data",n);if((i=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&i[1])return n={type:"tag",tagType:"server-control"},n.attributes=v(i[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 t.trigger("data",n);if((i=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&i[1])return n={type:"tag",tagType:"part-inf"},n.attributes=v(i[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void t.trigger("data",n);if((i=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&i[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=v(i[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 t.trigger("data",n);if((i=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&i[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=v(i[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void t.trigger("data",n);if((i=/^#EXT-X-DATERANGE:(.*)$/.exec(e))&&i[1]){n={type:"tag",tagType:"daterange"},n.attributes=v(i[1]),["ID","CLASS"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))});var s=/^X-([A-Z]+-)+[A-Z]+$/;for(var o in n.attributes)if(s.test(o)){var u=/[0-9A-Fa-f]{6}/g.test(n.attributes[o]),d=/^\d+(\.\d+)?$/.test(n.attributes[o]);n.attributes[o]=u?n.attributes[o].toString(16):d?parseFloat(n.attributes[o]):String(n.attributes[o])}return void t.trigger("data",n)}return(i=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e))?void t.trigger("data",{type:"tag",tagType:"independent-segments"}):(i=/^#EXT-X-I-FRAMES-ONLY/.exec(e))?void t.trigger("data",{type:"tag",tagType:"i-frames-only"}):(i=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e))?(n={type:"tag",tagType:"content-steering"},n.attributes=v(i[1]),void t.trigger("data",n)):(i=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e))?(n={type:"tag",tagType:"i-frame-playlist"},n.attributes=v(i[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=m(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),void t.trigger("data",n)):(i=/^#EXT-X-DEFINE:(.*)$/.exec(e))?(n={type:"tag",tagType:"define"},n.attributes=v(i[1]),void t.trigger("data",n)):void t.trigger("data",{type:"tag",data:e.slice(4)})})}}},{key:"addParser",value:function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:a}),!0})}},{key:"addTagMapper",value:function(e){var t=e.expression,i=e.map,n=function(e){return t.test(e)?i(e):e};this.tagMappers.push(n)}}]),t}(s.a),y=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},b=function(e){var t={};return Object.keys(e).forEach(function(i){t[y(i)]=e[i]}),t},_=function(e){var t=e.serverControl,i=e.targetDuration,n=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=i&&3*i,l=n&&2*n;i&&!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),n&&!t.hasOwnProperty(s)&&(t[s]=3*n,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})),n&&t[s]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+l+")."}),t[s]=l)}},w=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));i.lineStream=new c,i.parseStream=new g,i.lineStream.pipe(i.parseStream),i.mainDefinitions=e.mainDefinitions||{},i.params=new URL(e.uri,"https://a.com").searchParams,i.lastProgramDateTime=null;var a=i,s=[],o={},d=void 0,p=void 0,h=!1,f=function(){},v={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},m=0;i.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};var y=0,w=0,T={};return i.on("end",function(){o.uri||!o.parts&&!o.preloadHints||(!o.map&&d&&(o.map=d),!o.key&&p&&(o.key=p),o.timeline||"number"!=typeof m||(o.timeline=m),i.manifest.preloadSegment=o)}),i.parseStream.on("data",function(e){var t=void 0,i=void 0;if(a.manifest.definitions)for(var n in a.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace("{$"+n+"}",a.manifest.definitions[n])),e.attributes)for(var r in e.attributes)"string"==typeof e.attributes[r]&&(e.attributes[r]=e.attributes[r].replace("{$"+n+"}",a.manifest.definitions[n]));({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&&(o.byterange=t,t.length=e.length,"offset"in e||(e.offset=y)),"offset"in e&&(o.byterange=t,t.offset=e.offset),y=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.title&&(o.title=e.title),e.duration>0&&(o.duration=e.duration),0===e.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(!e.attributes)return void this.trigger("warn",{message:"ignoring key declaration without attribute list"});if("NONE"===e.attributes.METHOD)return void(p=null);if(!e.attributes.URI)return void this.trigger("warn",{message:"ignoring key declaration without 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("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].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(u.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"}),p={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(p.iv=e.attributes.IV)},"media-sequence":function(){if(!isFinite(e.number))return void this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});this.manifest.mediaSequence=e.number},"discontinuity-sequence":function(){if(!isFinite(e.number))return void this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});this.manifest.discontinuitySequence=e.number,m=e.number},"playlist-type":function(){if(!/VOD|EVENT/.test(e.playlistType))return void this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});this.manifest.playlistType=e.playlistType},map:function(){d={},e.uri&&(d.uri=e.uri),e.byterange&&(d.byterange=e.byterange),p&&(d.key=p)},"stream-inf":function(){if(this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||v,!e.attributes)return void this.trigger("warn",{message:"ignoring empty stream-inf attributes"});o.attributes||(o.attributes={}),l()(o.attributes,e.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||v,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],i={default:/yes/i.test(e.attributes.DEFAULT)},i.default?i.autoselect=!0:i.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(i.language=e.attributes.LANGUAGE),e.attributes.URI&&(i.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(i.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(i.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(i.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=i},discontinuity:function(){m+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),o.dateTimeString=e.dateTimeString,o.dateTimeObject=e.dateTimeObject;var t=this.lastProgramDateTime;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(function(e,t){return t.programDateTime=e-1e3*t.duration,t.programDateTime},this.lastProgramDateTime)},targetduration:function(){if(!isFinite(e.duration)||e.duration<0)return void this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});this.manifest.targetDuration=e.duration,_.call(this,this.manifest)},start:function(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"]))return void this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out":function(){o.cueOut=e.data},"cue-out-cont":function(){o.cueOutCont=e.data},"cue-in":function(){o.cueIn=e.data},skip:function(){this.manifest.skip=b(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;h=!0;var i=this.manifest.segments.length,n=b(e.attributes);o.parts=o.parts||[],o.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=w),w=n.byterange.offset+n.byterange.length);var r=o.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+i,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,i){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=b(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,i=b(e.attributes),n=i.type&&"PART"===i.type;o.preloadHints=o.preloadHints||[],o.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=n?w:0,n&&(w=i.byterange.offset+i.byterange.length)));var r=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),i.type)for(var a=0;a<o.preloadHints.length-1;a++){var s=o.preloadHints[a];s.type&&(s.type===i.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+i.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=b(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var i=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];h&&n.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+i,e.attributes,n)},"part-inf":function(){this.manifest.partInf=b(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)},daterange:function(){this.manifest.dateRanges.push(b(e.attributes));var t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_("#EXT-X-DATERANGE #"+t,e.attributes,["ID","START-DATE"]);var i=this.manifest.dateRanges[t];i.endDate&&i.startDate&&new Date(i.endDate)<new Date(i.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),i.duration&&i.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),i.plannedDuration&&i.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});var n=!!i.endOnNext;if(n&&!i.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),n&&(i.duration||i.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),i.duration&&i.endDate){var r=i.startDate,a=r.getTime()+1e3*i.duration;this.manifest.dateRanges[t].endDate=new Date(a)}if(T[i.id]){for(var s in T[i.id])if(i[s]&&JSON.stringify(T[i.id][s])!==JSON.stringify(i[s])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}var o=this.manifest.dateRanges.findIndex(function(e){return e.id===i.id});this.manifest.dateRanges[o]=l()(this.manifest.dateRanges[o],i),T[i.id]=l()(T[i.id],i),this.manifest.dateRanges.pop()}else T[i.id]=i},"independent-segments":function(){this.manifest.independentSegments=!0},"i-frames-only":function(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering":function(){this.manifest.contentSteering=b(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define:function(){var t=this;this.manifest.definitions=this.manifest.definitions||{};var i=function(e,i){if(e in t.manifest.definitions)return void t.trigger("error",{message:"EXT-X-DEFINE: Duplicate name "+e});t.manifest.definitions[e]=i};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});var n=this.params.get(e.attributes.QUERYPARAM);return n?void i(e.attributes.QUERYPARAM,decodeURIComponent(n)):void this.trigger("error",{message:"EXT-X-DEFINE: No query param "+e.attributes.QUERYPARAM})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void i(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:"EXT-X-DEFINE: No value for "+e.attributes.NAME}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void i(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:"EXT-X-DEFINE: No value "+e.attributes.IMPORT+" to import, or IMPORT used on main playlist"}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist":function(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:m}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}})[e.tagType]||f).call(a)},uri:function(){o.uri=e.uri,s.push(o),!this.manifest.targetDuration||"duration"in o||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),p&&(o.key=p),o.timeline=m,d&&(o.map=d),w=0,null!==this.lastProgramDateTime&&(o.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*o.duration),o={}},comment:function(){},custom:function(){e.segment?(o.custom=o.custom||{},o.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(a)}),i}return a(t,e),d(t,[{key:"requiredCompatibilityversion",value:function(e,t){(e<t||!e)&&this.trigger("warn",{message:"manifest must be at least version "+t})}},{key:"warnOnMissingAttributes_",value:function(e,t,i){var n=[];i.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+n.join(", ")})}},{key:"push",value:function(e){this.lineStream.push(e)}},{key:"end",value:function(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}},{key:"addParser",value:function(e){this.parseStream.addParser(e)}},{key:"addTagMapper",value:function(e){this.parseStream.addTagMapper(e)}}]),t}(s.a)},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=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 i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].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}()},function(e,t,i){"use strict";(function(e){function n(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=a.prototype):(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,i){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return s(this,e,t,i)}function s(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,i,n):"string"==typeof t?d(e,t,i):h(e,t)}function o(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 l(e,t,i,n){return o(t),t<=0?r(e,t):void 0!==i?"string"==typeof n?r(e,t).fill(i,n):r(e,t).fill(i):r(e,t)}function u(e,t){if(o(t),e=r(e,t<0?0:0|f(t)),!a.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function d(e,t,i){if("string"==typeof i&&""!==i||(i="utf8"),!a.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(t,i);e=r(e,n);var s=e.write(t,i);return s!==n&&(e=e.slice(0,s)),e}function c(e,t){var i=t.length<0?0:0|f(t.length);e=r(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function p(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n),a.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=a.prototype):e=c(e,t),e}function h(e,t){if(a.isBuffer(t)){var i=0|f(t.length);return e=r(e,i),0===e.length?e:(t.copy(e,0,0,i),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||$(t.length)?r(e,0):c(e,t);if("Buffer"===t.type&&Q(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),a.alloc(+e)}function m(e,t){if(a.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 i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return X(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,i);case"utf8":case"utf-8":return j(this,t,i);case"ascii":return P(this,t,i);case"latin1":case"binary":return I(this,t,i);case"base64":return C(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function b(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:_(e,t,i,n,r);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):_(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function _(e,t,i,n,r){function a(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,i/=2}var u;if(r){var d=-1;for(u=i;u<o;u++)if(a(e,u)===a(t,-1===d?0:u-d)){if(-1===d&&(d=u),u-d+1===l)return d*s}else-1!==d&&(u-=u-d),d=-1}else for(i+l>o&&(i=o-l),u=i;u>=0;u--){for(var c=!0,p=0;p<l;p++)if(a(e,u+p)!==a(t,p)){c=!1;break}if(c)return u}return-1}function w(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[i+s]=o}return s}function T(e,t,i,n){return Y(H(t,e.length-i),e,i,n)}function S(e,t,i,n){return Y(G(t),e,i,n)}function k(e,t,i,n){return S(e,t,i,n)}function x(e,t,i,n){return Y(X(t),e,i,n)}function E(e,t,i,n){return Y(W(t,e.length-i),e,i,n)}function C(e,t,i){return 0===t&&i===e.length?K.fromByteArray(e):K.fromByteArray(e.slice(t,i))}function j(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var a=e[r],s=null,o=a>239?4:a>223?3:a>191?2:1;if(r+o<=i){var l,u,d,c;switch(o){case 1:a<128&&(s=a);break;case 2:l=e[r+1],128==(192&l)&&(c=(31&a)<<6|63&l)>127&&(s=c);break;case 3:l=e[r+1],u=e[r+2],128==(192&l)&&128==(192&u)&&(c=(15&a)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:l=e[r+1],u=e[r+2],d=e[r+3],128==(192&l)&&128==(192&u)&&128==(192&d)&&(c=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&d)>65535&&c<1114112&&(s=c)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),r+=o}return O(n)}function O(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=Z));return i}function P(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function I(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function A(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var r="",a=t;a<i;++a)r+=V(e[a]);return r}function D(e,t,i){for(var n=e.slice(t,i),r="",a=0;a<n.length;a+=2)r+=String.fromCharCode(n[a]+256*n[a+1]);return r}function L(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,i,n,r,s){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function N(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-i,2);r<a;++r)e[i+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function R(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-i,4);r<a;++r)e[i+r]=t>>>8*(n?r:3-r)&255}function U(e,t,i,n,r,a){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function B(e,t,i,n,r){return r||U(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,i,n,23,4),i+4}function z(e,t,i,n,r){return r||U(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,i,n,52,8),i+8}function F(e){if(e=q(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var i,n=e.length,r=null,a=[],s=0;s<n;++s){if((i=e.charCodeAt(s))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&a.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;a.push(i)}else if(i<2048){if((t-=2)<0)break;a.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;a.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return a}function G(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}function W(e,t){for(var i,n,r,a=[],s=0;s<e.length&&!((t-=2)<0);++s)i=e.charCodeAt(s),n=i>>8,r=i%256,a.push(r),a.push(n);return a}function X(e){return K.toByteArray(F(e))}function Y(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function $(e){return e!==e}/*!
|
|
12
|
+
* The buffer module from node.js, for the browser.
|
|
13
|
+
*
|
|
14
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
15
|
+
* @license MIT
|
|
16
|
+
*/
|
|
17
|
+
var K=i(81),J=i(82),Q=i(83);t.Buffer=a,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,i){return s(null,e,t,i)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,i){return l(null,e,t,i)},a.allocUnsafe=function(e){return u(null,e)},a.allocUnsafeSlow=function(e){return u(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,r=0,s=Math.min(i,n);r<s;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},a.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}},a.concat=function(e,t){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=a.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var s=e[i];if(!a.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,r),r+=s.length}return n},a.byteLength=m,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):g.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,i,n,r){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,r>>>=0,this===e)return 0;for(var s=r-n,o=i-t,l=Math.min(s,o),u=this.slice(n,r),d=e.slice(t,i),c=0;c<l;++c)if(u[c]!==d[c]){s=u[c],o=d[c];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},a.prototype.indexOf=function(e,t,i){return b(this,e,t,i,!0)},a.prototype.lastIndexOf=function(e,t,i){return b(this,e,t,i,!1)},a.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,e,t,i);case"utf8":case"utf-8":return T(this,e,t,i);case"ascii":return S(this,e,t,i);case"latin1":case"binary":return k(this,e,t,i);case"base64":return x(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;a.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);var n;if(a.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=a.prototype;else{var r=t-e;n=new a(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+e]}return n},a.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||L(e,t,this.length);for(var n=this[e],r=1,a=0;++a<t&&(r*=256);)n+=this[e+a]*r;return n},a.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||L(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},a.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||L(e,t,this.length);for(var n=this[e],r=1,a=0;++a<t&&(r*=256);)n+=this[e+a]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||L(e,t,this.length);for(var n=t,r=1,a=this[e+--n];n>0&&(r*=256);)a+=this[e+--n]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),J.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),J.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),J.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),J.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){M(this,e,t,i,Math.pow(2,8*i)-1,0)}var r=1,a=0;for(this[t]=255&e;++a<i&&(r*=256);)this[t+a]=e/r&255;return t+i},a.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){M(this,e,t,i,Math.pow(2,8*i)-1,0)}var r=i-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+i},a.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}var a=0,s=1,o=0;for(this[t]=255&e;++a<i&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+i},a.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}var a=i-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+i},a.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,i){return B(this,e,t,!0,i)},a.prototype.writeFloatBE=function(e,t,i){return B(this,e,t,!1,i)},a.prototype.writeDoubleLE=function(e,t,i){return z(this,e,t,!0,i)},a.prototype.writeDoubleBE=function(e,t,i){return z(this,e,t,!1,i)},a.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var r,s=n-i;if(this===e&&i<t&&t<n)for(r=s-1;r>=0;--r)e[r+t]=this[r+i];else if(s<1e3||!a.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s},a.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<i;++s)this[s]=e;else{var o=a.isBuffer(e)?e:H(new a(e,n).toString()),l=o.length;for(s=0;s<i-t;++s)this[s+t]=o[s%l]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,i(9))},function(e,t,i){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function r(e){var t=n(e),i=t[0],r=t[1];return 3*(i+r)/4-r}function a(e,t,i){return 3*(t+i)/4-i}function s(e){var t,i,r=n(e),s=r[0],o=r[1],l=new p(a(e,s,o)),u=0,d=o>0?s-4:s;for(i=0;i<d;i+=4)t=c[e.charCodeAt(i)]<<18|c[e.charCodeAt(i+1)]<<12|c[e.charCodeAt(i+2)]<<6|c[e.charCodeAt(i+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===o&&(t=c[e.charCodeAt(i)]<<2|c[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===o&&(t=c[e.charCodeAt(i)]<<10|c[e.charCodeAt(i+1)]<<4|c[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function o(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}function l(e,t,i){for(var n,r=[],a=t;a<i;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(o(n));return r.join("")}function u(e){for(var t,i=e.length,n=i%3,r=[],a=0,s=i-n;a<s;a+=16383)r.push(l(e,a,a+16383>s?s:a+16383));return 1===n?(t=e[i-1],r.push(d[t>>2]+d[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],r.push(d[t>>10]+d[t>>4&63]+d[t<<2&63]+"=")),r.join("")}t.byteLength=r,t.toByteArray=s,t.fromByteArray=u;for(var d=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,v=h.length;f<v;++f)d[f]=h[f],c[h.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
18
|
+
t.read=function(e,t,i,n,r){var a,s,o=8*r-n-1,l=(1<<o)-1,u=l>>1,d=-7,c=i?r-1:0,p=i?-1:1,h=e[t+c];for(c+=p,a=h&(1<<-d)-1,h>>=-d,d+=o;d>0;a=256*a+e[t+c],c+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=n;d>0;s=256*s+e[t+c],c+=p,d-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),a-=u}return(h?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,i,n,r,a){var s,o,l,u=8*a-r-1,d=(1<<u)-1,c=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,f=n?1:-1,v=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=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+c>=1?p/l:p*Math.pow(2,1-c),t*l>=2&&(s++,l/=2),s+c>=d?(o=0,s=d):s+c>=1?(o=(t*l-1)*Math.pow(2,r),s+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;e[i+h]=255&o,h+=f,o/=256,r-=8);for(s=s<<r|o,u+=r;u>0;e[i+h]=255&s,h+=f,s/=256,u-=8);e[i+h-f]|=128*v}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){"use strict";i.d(t,"i",function(){return l}),i.d(t,"h",function(){return u}),i.d(t,"d",function(){return d}),i.d(t,"f",function(){return c}),i.d(t,"e",function(){return h}),i.d(t,"c",function(){return f}),i.d(t,"g",function(){return v}),i.d(t,"a",function(){return m}),i.d(t,"b",function(){return g});var n=i(4),r=i.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},s=["video","audio","text"],o=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}):e},u=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(e){e=e.trim();var t;s.forEach(function(n){var r=a[n].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=n;var s=e.substring(0,r[1].length),o=e.replace(s,"");i.push({type:s,details:o,mediaType:n})}}),t||i.push({type:e,details:"",mediaType:"unknown"})}),i},d=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return u(r.playlists[0].attributes.CODECS)}return null},c=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},p=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())},h=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return l(e.trim())}),i="video";1===t.length&&c(t[0])?i="audio":1===t.length&&p(t[0])&&(i="application");var n="mp4";return t.every(function(e){return a.mp4.test(e)})?n="mp4":t.every(function(e){return a.webm.test(e)})?n="webm":t.every(function(e){return a.ogg.test(e)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},f=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),r.a.MediaSource&&r.a.MediaSource.isTypeSupported&&r.a.MediaSource.isTypeSupported(h(e))||t&&r.a.ManagedMediaSource&&r.a.ManagedMediaSource.isTypeSupported&&r.a.ManagedMediaSource.isTypeSupported(h(e))||!1},v=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<o.length;t++){if(a["muxer"+o[t]].test(e))return!0}return!1})},m="mp4a.40.2",g="avc1.4d400d"},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return n.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}i.d(t,"a",function(){return O}),i.d(t,"b",function(){return R}),i.d(t,"c",function(){return Ie}),i.d(t,"d",function(){return Ae});var a=i(24),s=i(4),o=i.n(s),l=i(87),u=i(25),d=i(88),c=(i.n(d),function(){function e(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(e){return!!e&&"object"===(void 0===e?"undefined":p(e))},f=function e(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.reduce(function(t,i){return"object"!==(void 0===i?"undefined":p(i))?t:(Object.keys(i).forEach(function(n){Array.isArray(t[n])&&Array.isArray(i[n])?t[n]=t[n].concat(i[n]):h(t[n])&&h(i[n])?t[n]=e(t[n],i[n]):t[n]=i[n]}),t)},{})},v=function(e){return Object.keys(e).map(function(t){return e[t]})},m=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i},g=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},y=function(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t},b=function(e,t){return e.reduce(function(e,i,n){return i[t]&&e.push(n),e},[])},_=function(e,t){return v(e.reduce(function(e,i){return i.forEach(function(i){e[t(i)]=i}),e},{}))},w={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",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"},T=function(e){var t=e.baseUrl,i=void 0===t?"":t,n=e.source,r=void 0===n?"":n,s=e.range,l=void 0===s?"":s,u=e.indexRange,d=void 0===u?"":u,c={uri:r,resolvedUri:Object(a.a)(i||"",r)};if(l||d){var p=l||d,h=p.split("-"),f=o.a.BigInt?o.a.BigInt(h[0]):parseInt(h[0],10),v=o.a.BigInt?o.a.BigInt(h[1]):parseInt(h[1],10);f<Number.MAX_SAFE_INTEGER&&"bigint"==typeof f&&(f=Number(f)),v<Number.MAX_SAFE_INTEGER&&"bigint"==typeof v&&(v=Number(v));var m=void 0;m="bigint"==typeof v||"bigint"==typeof f?o.a.BigInt(v)-o.a.BigInt(f)+o.a.BigInt(1):v-f+1,"bigint"==typeof m&&m<Number.MAX_SAFE_INTEGER&&(m=Number(m)),c.byterange={length:m,offset:f}}return c},S=function(e){var t=void 0;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?o.a.BigInt(e.offset)+o.a.BigInt(e.length)-o.a.BigInt(1):e.offset+e.length-1,e.offset+"-"+t},k=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},x={static:function(e){var t=e.duration,i=e.timescale,n=void 0===i?1:i,r=e.sourceDuration,a=e.periodDuration,s=k(e.endNumber),o=t/n;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,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.periodStart,l=void 0===o?0:o,u=e.minimumUpdatePeriod,d=void 0===u?0:u,c=e.timeShiftBufferDepth,p=void 0===c?1/0:c,h=k(e.endNumber),f=(t+i)/1e3,v=n+l,m=f+d,g=m-v,y=Math.ceil(g*a/s),b=Math.floor((f-v-p)*a/s),_=Math.floor((f-v)*a/s);return{start:Math.max(0,b),end:"number"==typeof h?h:Math.min(y,_)}}},E=function(e){return function(t){var i=e.duration,n=e.timescale,r=void 0===n?1:n,a=e.periodStart,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:i/r,timeline:a,time:t*i}}},C=function(e){var t=e.type,i=e.duration,n=e.timescale,r=void 0===n?1:n,a=e.periodDuration,s=e.sourceDuration,o=x[t](e),l=o.start,u=o.end,d=m(l,u).map(E(e));if("static"===t){var c=d.length-1,p="number"==typeof a?a:s;d[c].duration=p-i/r*c}return d},j=function(e){var t=e.baseUrl,i=e.initialization,n=void 0===i?{}:i,r=e.sourceDuration,a=e.indexRange,s=void 0===a?"":a,o=e.periodStart,l=e.presentationTime,u=e.number,d=void 0===u?0:u,c=e.duration;if(!t)throw new Error(w.NO_BASE_URL);var p=T({baseUrl:t,source:n.sourceURL,range:n.range}),h=T({baseUrl:t,source:t,indexRange:s});if(h.map=p,c){var f=C(e);f.length&&(h.duration=f[0].duration,h.timeline=f[0].timeline)}else r&&(h.duration=r,h.timeline=o);return h.presentationTime=l||o,h.number=d,[h]},O=function(e,t,i){var n=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,l=s.offset+s.length,u=t.timescale,d=t.references.filter(function(e){return 1!==e.referenceType}),c=[],p=e.endList?"static":"dynamic",h=e.sidx.timeline,f=h,v=e.mediaSequence||0,m=void 0;m="bigint"==typeof t.firstOffset?o.a.BigInt(l)+t.firstOffset:l+t.firstOffset;for(var g=0;g<d.length;g++){var y=t.references[g],b=y.referencedSize,_=y.subsegmentDuration,w=void 0;w="bigint"==typeof m?m+o.a.BigInt(b)-o.a.BigInt(1):m+b-1;var T=m+"-"+w,S={baseUrl:i,timescale:u,timeline:a,periodStart:h,presentationTime:f,number:v,duration:_,sourceDuration:r,indexRange:T,type:p},k=j(S)[0];n&&(k.map=n),c.push(k),m+="bigint"==typeof m?o.a.BigInt(b):b,f+=_/u,v++}return e.segments=c,e},P=["AUDIO","SUBTITLES"],I=function(e){return _(e,function(e){return e.timeline}).sort(function(e,t){return e.timeline>t.timeline?1:-1})},A=function(e,t){for(var i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null},D=function(e){var t=[];return Object(l.a)(e,P,function(e,i,n,r){t=t.concat(e.playlists||[])}),t},L=function(e){var t=e.playlist,i=e.mediaSequence;t.mediaSequence=i,t.segments.forEach(function(e,i){e.number=t.mediaSequence+i})},M=function(e){var t=e.oldPlaylists,i=e.newPlaylists,n=e.timelineStarts;i.forEach(function(e){e.discontinuitySequence=n.findIndex(function(t){return t.timeline===e.timeline});var i=A(t,e.attributes.NAME);if(i&&!e.sidx){var r=e.segments[0],a=i.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<1/60});if(-1===a)return L({playlist:e,mediaSequence:i.mediaSequence+i.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!i.segments.length&&e.timeline>i.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),L({playlist:e,mediaSequence:i.segments[a].number})}})},N=function(e){var t=e.oldManifest,i=e.newManifest,n=t.playlists.concat(D(t)),r=i.playlists.concat(D(i));return i.timelineStarts=I([t.timelineStarts,i.timelineStarts]),M({oldPlaylists:n,newPlaylists:r,timelineStarts:i.timelineStarts}),i},R=function(e){return e&&e.uri+"-"+S(e.byterange)},U=function(e){var t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),i=[];return Object.values(t).forEach(function(e){var t=v(e.reduce(function(e,t){var i=t.attributes.id+(t.attributes.lang||"");if(e[i]){if(t.segments){var n;t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,r(t.segments))}t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)}else e[i]=t,e[i].attributes.timelineStarts=[];return e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));i=i.concat(t)}),i.map(function(e){return e.discontinuityStarts=b(e.segments||[],"discontinuity"),e})},B=function(e,t){var i=R(e.sidx),n=i&&t[i]&&t[i].sidx;return n&&O(e,n,e.sidx.resolvedUri),e},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object.keys(t).length)return e;for(var i in e)e[i]=B(e[i],t);return e},F=function(e,t){var i=e.attributes,r=e.segments,a=e.sidx,s=e.mediaSequence,o=e.discontinuitySequence,l=e.discontinuityStarts,u={attributes:n({NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},"PROGRAM-ID",1),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:i.baseUrl||"",targetDuration:i.duration,discontinuitySequence:o,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:s,segments:r};return i.contentProtection&&(u.contentProtection=i.contentProtection),i.serviceLocation&&(u.attributes.serviceLocation=i.serviceLocation),a&&(u.sidx=a),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u},q=function(e){var t=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,s=e.discontinuitySequence;void 0===i&&(i=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);var o=n({NAME:t.id,BANDWIDTH:t.bandwidth},"PROGRAM-ID",1);t.codecs&&(o.CODECS=t.codecs);var l={attributes:o,uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:a,discontinuitySequence:s,mediaSequence:r,segments:i};return t.serviceLocation&&(l.attributes.serviceLocation=t.serviceLocation),l},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=void 0,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=B(F(r,i),t);return e[o].playlists.push(u),void 0===n&&"main"===a&&(n=r,n.default=!0),e},{});if(!n){r[Object.keys(r)[0]].default=!0}return r},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(function(e,i){var n=i.attributes.label||i.attributes.lang||"text",r=i.attributes.lang||"und";return e[n]||(e[n]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(B(q(i),t)),e},{})},G=function(e){return e.reduce(function(e,t){return t?(t.forEach(function(t){var i=t.channel,n=t.language;e[n]={autoselect:!1,default:!1,instreamId:i,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e):e},{})},W=function(e){var t=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,s={attributes:n({NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth},"PROGRAM-ID",1),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:a,timelineStarts:t.timelineStarts,segments:i};return t.frameRate&&(s.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(s.contentProtection=t.contentProtection),t.serviceLocation&&(s.attributes.serviceLocation=t.serviceLocation),r&&(s.sidx=r),s},X=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},Y=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},$=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},K=function(e,t){e.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})})},J=function(e){return e?Object.keys(e).reduce(function(t,i){var n=e[i];return t.concat(n.playlists)},[]):[]},Q=function(e){var t,i=e.dashPlaylists,r=e.locations,a=e.contentSteering,s=e.sidxMapping,o=void 0===s?{}:s,l=e.previousManifest,u=e.eventStream;if(!i.length)return{};var d=i[0].attributes,c=d.sourceDuration,p=d.type,h=d.suggestedPresentationDelay,f=d.minimumUpdatePeriod,v=U(i.filter(X)).map(W),m=U(i.filter(Y)),g=U(i.filter($)),y=i.map(function(e){return e.attributes.captionServices}).filter(Boolean),b={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},n(t,"CLOSED-CAPTIONS",{}),n(t,"SUBTITLES",{}),t),uri:"",duration:c,playlists:z(v,o)};f>=0&&(b.minimumUpdatePeriod=1e3*f),r&&(b.locations=r),a&&(b.contentSteering=a),"dynamic"===p&&(b.suggestedPresentationDelay=h),u&&u.length>0&&(b.eventStream=u);var _=0===b.playlists.length,w=m.length?V(m,o,_):null,T=g.length?H(g,o):null,S=v.concat(J(w),J(T)),k=S.map(function(e){return e.timelineStarts});return b.timelineStarts=I(k),K(S,b.timelineStarts),w&&(b.mediaGroups.AUDIO.audio=w),T&&(b.mediaGroups.SUBTITLES.subs=T),y.length&&(b.mediaGroups["CLOSED-CAPTIONS"].cc=G(y)),l?N({oldManifest:l,newManifest:b}):b},Z=function(e,t,i){var n=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,l=e.periodStart,u=void 0===l?0:l,d=e.minimumUpdatePeriod,c=void 0===d?0:d,p=(n+r)/1e3,h=a+u,f=p+c,v=f-h;return Math.ceil((v*o-t)/i)},ee=function(e,t){for(var i=e.type,n=e.minimumUpdatePeriod,r=void 0===n?0:n,a=e.media,s=void 0===a?"":a,o=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,d=e.startNumber,c=void 0===d?1:d,p=e.periodStart,h=[],f=-1,v=0;v<t.length;v++){var m=t[v],g=m.d,y=m.r||0,b=m.t||0;f<0&&(f=b),b&&b>f&&(f=b);var _=void 0;if(y<0){var w=v+1;_=w===t.length?"dynamic"===i&&r>0&&s.indexOf("$Number$")>0?Z(e,f,g):(o*u-f)/g:(t[w].t-f)/g}else _=y+1;for(var T=c+h.length+_,S=c+h.length;S<T;)h.push({number:S,duration:g/u,time:f,timeline:p}),f+=g,S++}return h},te=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ie=function(e){return function(t,i,n,r){if("$$"===t)return"$";if(void 0===e[i])return t;var a=""+e[i];return"RepresentationID"===i?a:(r=n?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}},ne=function(e,t){return e.replace(te,ie(t))},re=function(e,t){return e.duration||t?e.duration?C(e):ee(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]},ae=function(e,t){var i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,r=void 0===n?{sourceURL:"",range:""}:n,s=T({baseUrl:e.baseUrl,source:ne(r.sourceURL,i),range:r.range});return re(e,t).map(function(t){i.Number=t.number,i.Time=t.time;var n=ne(e.media||"",i),r=e.timescale||1,o=e.presentationTimeOffset||0,l=e.periodStart+(t.time-o)/r;return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:Object(a.a)(e.baseUrl||"",n),map:s,number:t.number,presentationTime:l}})},se=function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=T({baseUrl:i,source:r.sourceURL,range:r.range}),s=T({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s},oe=function(e,t){var i=e.duration,n=e.segmentUrls,r=void 0===n?[]:n,a=e.periodStart;if(!i&&!t||i&&t)throw new Error(w.SEGMENT_TIME_UNSPECIFIED);var s=r.map(function(t){return se(e,t)}),o=void 0;return i&&(o=C(e)),t&&(o=ee(e,t)),o.map(function(t,i){if(s[i]){var n=s[i],r=e.timescale||1,o=e.presentationTimeOffset||0;return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=a+(t.time-o)/r,n}}).filter(function(e){return e})},le=function(e){var t=e.attributes,i=e.segmentInfo,n=void 0,r=void 0;i.template?(r=ae,n=f(t,i.template)):i.base?(r=j,n=f(t,i.base)):i.list&&(r=oe,n=f(t,i.list));var a={attributes:t};if(!r)return a;var s=r(n,i.segmentTimeline);if(n.duration){var o=n,l=o.duration,u=o.timescale,d=void 0===u?1:u;n.duration=l/d}else s.length?n.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):n.duration=0;return a.attributes=n,a.segments=s,i.base&&n.indexRange&&(a.sidx=s[0],a.segments=[]),a},ue=function(e){return e.map(le)},de=function(e,t){return y(e.childNodes).filter(function(e){return e.tagName===t})},ce=function(e){return e.textContent.trim()},pe=function(e){return parseFloat(e.split("/").reduce(function(e,t){return e/t}))},he=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,i=t.exec(e);if(!i)return 0;var n=i.slice(1),r=c(n,6),a=r[0],s=r[1],o=r[2],l=r[3],u=r[4],d=r[5];return 31536e3*parseFloat(a||0)+2592e3*parseFloat(s||0)+86400*parseFloat(o||0)+3600*parseFloat(l||0)+60*parseFloat(u||0)+parseFloat(d||0)},fe=function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)},ve={mediaPresentationDuration:function(e){return he(e)},availabilityStartTime:function(e){return fe(e)/1e3},minimumUpdatePeriod:function(e){return he(e)},suggestedPresentationDelay:function(e){return he(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return he(e)},start:function(e){return he(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return pe(e)},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)?he(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},presentationTime:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},me=function(e){return e&&e.attributes?y(e.attributes).reduce(function(e,t){var i=ve[t.name]||ve.DEFAULT;return e[t.name]=i(t.value),e},{}):{}},ge={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},ye=function(e,t){return t.length?g(e.map(function(e){return t.map(function(t){var i=ce(t),n=Object(a.a)(e.baseUrl,i),r=f(me(t),{baseUrl:n});return n!==i&&!r.serviceLocation&&e.serviceLocation&&(r.serviceLocation=e.serviceLocation),r})})):e},be=function(e){var t=de(e,"SegmentTemplate")[0],i=de(e,"SegmentList")[0],n=i&&de(i,"SegmentURL").map(function(e){return f({tag:"SegmentURL"},me(e))}),r=de(e,"SegmentBase")[0],a=i||t,s=a&&de(a,"SegmentTimeline")[0],o=i||r||t,l=o&&de(o,"Initialization")[0],u=t&&me(t);u&&l?u.initialization=l&&me(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var d={template:u,segmentTimeline:s&&de(s,"S").map(function(e){return me(e)}),list:i&&f(me(i),{segmentUrls:n,initialization:me(l)}),base:r&&f(me(r),{initialization:me(l)})};return Object.keys(d).forEach(function(e){d[e]||delete d[e]}),d},_e=function(e,t,i){return function(n){var r=de(n,"BaseURL"),a=ye(t,r),s=f(e,me(n)),o=be(n);return a.map(function(e){return{segmentInfo:f(i,o),attributes:f(s,e)}})}},we=function(e){return e.reduce(function(e,t){var i=me(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());var n=ge[i.schemeIdUri];if(n){e[n]={attributes:i};var r=de(t,"cenc:pssh")[0];if(r){var a=ce(r);e[n].pssh=a&&Object(u.a)(a)}}return e},{})},Te=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){return("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t=void 0,i=void 0;if(i=e,/^CC\d=/.test(e)){var n=e.split("="),r=c(n,2);t=r[0],i=r[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:i}})}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){return("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var i=e.split("="),n=c(i,2),r=n[0],a=n[1],s=void 0===a?"":a;t.channel=r,t.language=e,s.split(",").forEach(function(e){var i=e.split(":"),n=c(i,2),r=n[0],a=n[1];"lang"===r?t.language=a:"er"===r?t.easyReader=Number(a):"war"===r?t.aspectRatio=Number(a):"3D"===r&&(t["3D"]=Number(a))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})}},Se=function(e){return g(de(e.node,"EventStream").map(function(t){var i=me(t),n=i.schemeIdUri;return de(t,"Event").map(function(t){var r=me(t),a=r.presentationTime||0,s=i.timescale||1,o=r.duration||0,l=a/s+e.attributes.start;return{schemeIdUri:n,value:i.value,id:r.id,start:l,end:l+o/s,messageData:ce(t)||r.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})}))},ke=function(e,t,i){return function(n){var r=me(n),a=ye(t,de(n,"BaseURL")),s=de(n,"Role")[0],o={role:me(s)},l=f(e,r,o),u=de(n,"Accessibility")[0],d=Te(me(u));d&&(l=f(l,{captionServices:d}));var c=de(n,"Label")[0];if(c&&c.childNodes.length){var p=c.childNodes[0].nodeValue.trim();l=f(l,{label:p})}var h=we(de(n,"ContentProtection"));Object.keys(h).length&&(l=f(l,{contentProtection:h}));var v=be(n),m=de(n,"Representation"),y=f(i,v);return g(m.map(_e(l,a,y)))}},xe=function(e,t){return function(i,n){var r=ye(t,de(i.node,"BaseURL")),a=f(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(a.periodDuration=i.attributes.duration);var s=de(i.node,"AdaptationSet"),o=be(i.node);return g(s.map(ke(a,r,o)))}},Ee=function(e,t){if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;var i=f({serverURL:ce(e[0])},me(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},Ce=function(e){var t=e.attributes,i=e.priorPeriodAttributes,n=e.mpdType;return"number"==typeof t.start?t.start:i&&"number"==typeof i.start&&"number"==typeof i.duration?i.start+i.duration:i||"static"!==n?null:0},je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.manifestUri,n=void 0===i?"":i,r=t.NOW,a=void 0===r?Date.now():r,s=t.clientOffset,o=void 0===s?0:s,l=t.eventHandler,u=void 0===l?function(){}:l,d=de(e,"Period");if(!d.length)throw new Error(w.INVALID_NUMBER_OF_PERIOD);var c=de(e,"Location"),p=me(e),h=ye([{baseUrl:n}],de(e,"BaseURL")),f=de(e,"ContentSteering");p.type=p.type||"static",p.sourceDuration=p.mediaPresentationDuration||0,p.NOW=a,p.clientOffset=o,c.length&&(p.locations=c.map(ce));var v=[];return d.forEach(function(e,t){var i=me(e),n=v[t-1];i.start=Ce({attributes:i,priorPeriodAttributes:n?n.attributes:null,mpdType:p.type}),v.push({node:e,attributes:i})}),{locations:p.locations,contentSteeringInfo:Ee(f,u),representationInfo:g(v.map(xe(p,h))),eventStream:g(v.map(Se))}},Oe=function(e){if(""===e)throw new Error(w.DASH_EMPTY_MANIFEST);var t=new d.DOMParser,i=void 0,n=void 0;try{i=t.parseFromString(e,"application/xml"),n=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(w.DASH_INVALID_XML);return n},Pe=function(e){var t=de(e,"UTCTiming")[0];if(!t)return null;var i=me(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.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":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.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(w.UNSUPPORTED_UTC_TIMING_SCHEME)}return i},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=je(Oe(e),t),n=ue(i.representationInfo);return Q({dashPlaylists:n,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})},Ae=function(e){return Pe(Oe(e))}},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=function(e,t,i){t.forEach(function(t){for(var n in e.mediaGroups[t])for(var r in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][r];i(a,t,n,r)}})}},function(e,t,i){var n=i(26);t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=i(89).DOMParser},function(e,t,i){function n(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function r(e){this.options=e||{locator:{}}}function a(e,t,i){function n(t){var n=e[t];!n&&a&&(n=2==e.length?function(i){e(t,i)}:e),r[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+l(i))}||function(){}}if(!e){if(t instanceof s)return t;e=t}var r={},a=e instanceof Function;return i=i||{},n("warning"),n("error"),n("fatalError"),r}function s(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function l(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function u(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function d(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}var c=i(10),p=i(26),h=i(90),f=i(91),v=p.DOMImplementation,m=c.NAMESPACE,g=f.ParseError,y=f.XMLReader;r.prototype.parseFromString=function(e,t){var i=this.options,r=new y,o=i.domBuilder||new s,l=i.errorHandler,u=i.locator,d=i.xmlns||{},c=/\/x?html?$/.test(t),p=c?h.HTML_ENTITIES:h.XML_ENTITIES;u&&o.setDocumentLocator(u),r.errorHandler=a(l,o,u),r.domBuilder=i.domBuilder||o,c&&(d[""]=m.HTML),d.xml=d.xml||m.XML;var f=i.normalizeLineEndings||n;return e&&"string"==typeof e?r.parse(f(e),d,p):r.errorHandler.error("invalid doc source"),o.doc},s.prototype={startDocument:function(){this.doc=(new v).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,a=r.createElementNS(e,i||t),s=n.length;d(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var l=0;l<s;l++){var e=n.getURI(l),u=n.getValue(l),i=n.getQName(l),c=r.createAttributeNS(e,i);this.locator&&o(n.getLocator(l),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(e,t,i){var n=this.currentElement;n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,i),d(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=u.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&o(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=u.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&o(this.locator,n),d(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var n=this.doc.implementation;if(n&&n.createDocumentType){var r=n.createDocumentType(e,t,i);this.locator&&o(this.locator,r),d(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,l(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,l(this.locator))},fatalError:function(e){throw new g(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){s.prototype[e]=function(){return null}}),t.__DOMHandler=s,t.normalizeLineEndings=n,t.DOMParser=r},function(e,t,i){"use strict";var n=i(10).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES},function(e,t,i){function n(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,n)}function r(){}function a(e,t,i,r,a){function c(e){if(e>65535){e-=65536;var t=55296+(e>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}function v(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?c(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function g(t){if(t>x){var i=e.substring(x,t).replace(/&#?\w+;/g,v);T&&y(x),r.characters(i,0,t-x),x=t}}function y(t,i){for(;t>=_&&(i=w.exec(e));)b=i.index,_=b+i[0].length,T.lineNumber++;T.columnNumber=t-b+1}for(var b=0,_=0,w=/.*(?:\r\n?|\n)|.*$/g,T=r.locator,S=[{currentNSMap:t}],k={},x=0;;){try{var E=e.indexOf("<",x);if(E<0){if(!e.substr(x).match(/^\s*$/)){var C=r.doc,j=C.createTextNode(e.substr(x));C.appendChild(j),r.currentElement=j}return}switch(E>x&&g(E),e.charAt(E+1)){case"/":var O=e.indexOf(">",E+3),P=e.substring(E+2,O).replace(/[ \t\n\r]+$/g,""),I=S.pop();O<0?(P=e.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+P+" is not complete:"+I.tagName),O=E+1+P.length):P.match(/\s</)&&(P=P.replace(/[\s<].*/,""),a.error("end tag name: "+P+" maybe not complete"),O=E+1+P.length);var A=I.localNSMap,D=I.tagName==P;if(D||I.tagName&&I.tagName.toLowerCase()==P.toLowerCase()){if(r.endElement(I.uri,I.localName,P),A)for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&r.endPrefixMapping(L);D||a.fatalError("end tag name: "+P+" is not match the current start tagName:"+I.tagName)}else S.push(I);O++;break;case"?":T&&y(E),O=h(e,E,r);break;case"!":T&&y(E),O=p(e,E,r,a);break;default:T&&y(E);var M=new f,N=S[S.length-1].currentNSMap,O=o(e,E,M,N,v,a),R=M.length;if(!M.closed&&d(e,O,M.tagName,k)&&(M.closed=!0,i.nbsp||a.warning("unclosed xml attribute")),T&&R){for(var U=s(T,{}),B=0;B<R;B++){var z=M[B];y(z.offset),z.locator=s(T,{})}r.locator=U,l(M,r,N)&&S.push(M),r.locator=T}else l(M,r,N)&&S.push(M);m.isHTML(M.uri)&&!M.closed?O=u(e,O,M.tagName,v,r):O++}}catch(e){if(e instanceof n)throw e;a.error("element parse error: "+e),O=-1}O>x?x=O:g(Math.max(E,x)+1)}}function s(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function o(e,t,i,n,r,a){function s(e,t,n){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),n)}for(var o,l,u=++t,d=_;;){var c=e.charAt(u);switch(c){case"=":if(d===w)o=e.slice(t,u),d=S;else{if(d!==T)throw new Error("attribute equal must after attrName");d=S}break;case"'":case'"':if(d===S||d===w){if(d===w&&(a.warning('attribute value must after "="'),o=e.slice(t,u)),t=u+1,!((u=e.indexOf(c,t))>0))throw new Error("attribute value no end '"+c+"' match");l=e.slice(t,u),s(o,l,t-1),d=x}else{if(d!=k)throw new Error('attribute value must after "="');l=e.slice(t,u),s(o,l,t),a.warning('attribute "'+o+'" missed start quot('+c+")!!"),t=u+1,d=x}break;case"/":switch(d){case _:i.setTagName(e.slice(t,u));case x:case E:case C:d=C,i.closed=!0;case k:case w:break;case T:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),d==_&&i.setTagName(e.slice(t,u)),u;case">":switch(d){case _:i.setTagName(e.slice(t,u));case x:case E:case C:break;case k:case w:l=e.slice(t,u),"/"===l.slice(-1)&&(i.closed=!0,l=l.slice(0,-1));case T:d===T&&(l=o),d==k?(a.warning('attribute "'+l+'" missed quot(")!'),s(o,l,t)):(m.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),s(l,l,t));break;case S:throw new Error("attribute value missed!!")}return u;case"":c=" ";default:if(c<=" ")switch(d){case _:i.setTagName(e.slice(t,u)),d=E;break;case w:o=e.slice(t,u),d=T;break;case k:var l=e.slice(t,u);a.warning('attribute "'+l+'" missed quot(")!!'),s(o,l,t);case x:d=E}else switch(d){case T:i.tagName;m.isHTML(n[""])&&o.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),s(o,o,t),t=u,d=w;break;case x:a.warning('attribute space is required"'+o+'"!!');case E:d=w,t=u;break;case S:d=k,t=u;break;case C:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function l(e,t,i){for(var n=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,l=s.value,u=o.indexOf(":");if(u>0)var d=s.prefix=o.slice(0,u),p=o.slice(u+1),h="xmlns"===d&&p;else p=o,d=null,h="xmlns"===o&&"";s.localName=p,!1!==h&&(null==r&&(r={},c(i,i={})),i[h]=r[h]=l,s.uri=m.XMLNS,t.startPrefixMapping(h,l))}for(var a=e.length;a--;){s=e[a];var d=s.prefix;d&&("xml"===d&&(s.uri=m.XML),"xmlns"!==d&&(s.uri=i[d||""]))}var u=n.indexOf(":");u>0?(d=e.prefix=n.slice(0,u),p=e.localName=n.slice(u+1)):(d=null,p=e.localName=n);var f=e.uri=i[d||""];if(t.startElement(f,p,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(f,p,n),r)for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&t.endPrefixMapping(d)}function u(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var a=e.indexOf("</"+i+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(i)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,n),r.characters(s,0,s.length),a)}return t+1}function d(e,t,i,n){var r=n[i];return null==r&&(r=e.lastIndexOf("</"+i+">"),r<t&&(r=e.lastIndexOf("</"+i)),n[i]=r),r<t}function c(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function p(e,t,i,n){switch(e.charAt(t+2)){case"-":if("-"===e.charAt(t+3)){var r=e.indexOf("--\x3e",t+4);return r>t?(i.comment(e,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}var a=v(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],l=!1,u=!1;s>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],u=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var d=a[s-1];return i.startDTD(o,l,u),i.endDTD(),d.index+d[0].length}}return-1}function h(e,t,i){var n=e.indexOf("?>",t);if(n){var r=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return i.processingInstruction(r[1],r[2]),n+2}return-1}return-1}function f(){this.attributeNames={}}function v(e,t){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);i=r.exec(e);)if(n.push(i),i[1])return n}var m=i(10).NAMESPACE,g=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=new RegExp("[\\-\\.0-9"+g.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),b=new RegExp("^"+g.source+y.source+"*(?::"+g.source+y.source+"*)?$"),_=0,w=1,T=2,S=3,k=4,x=5,E=6,C=7;n.prototype=new Error,n.prototype.name=n.name,r.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),c(t,t={}),a(e,t,i,n,this.errorHandler),n.endDocument()}},f.prototype={setTagName:function(e){if(!b.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!b.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},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=r,t.ParseError=n},function(e,t,i){var n=i(93).getUint64,r=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=n(e.subarray(r)),i.firstOffset=n(e.subarray(r+8)),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=r},function(e,t){var i=Math.pow(2,32),n=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*i+n.getUint32(4)};e.exports={getUint64:n,MAX_UINT32:i}},function(e,t,i){"use strict";i.d(t,"a",function(){return p}),i.d(t,"b",function(){return h});var n=i(5),r=i(95),a=i(97),s=i(27),o=i(98),l={webm:Object(n.k)([119,101,98,109]),matroska:Object(n.k)([109,97,116,114,111,115,107,97]),flac:Object(n.k)([102,76,97,67]),ogg:Object(n.k)([79,103,103,83]),ac3:Object(n.k)([11,119]),riff:Object(n.k)([82,73,70,70]),avi:Object(n.k)([65,86,73]),wav:Object(n.k)([87,65,86,69]),"3gp":Object(n.k)([102,116,121,112,51,103]),mp4:Object(n.k)([102,116,121,112]),fmp4:Object(n.k)([115,116,121,112]),mov:Object(n.k)([102,116,121,112,113,116]),moov:Object(n.k)([109,111,111,118]),moof:Object(n.k)([109,111,111,102])},u={aac:function(e){var t=Object(s.a)(e);return Object(n.a)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(s.a)(e);return Object(n.a)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Object(a.b)(e,[a.a.EBML,a.a.DocType])[0];return Object(n.a)(t,l.webm)},mkv:function(e){var t=Object(a.b)(e,[a.a.EBML,a.a.DocType])[0];return Object(n.a)(t,l.matroska)},mp4:function(e){return!u["3gp"](e)&&!u.mov(e)&&(!(!Object(n.a)(e,l.mp4,{offset:4})&&!Object(n.a)(e,l.fmp4,{offset:4}))||(!(!Object(n.a)(e,l.moof,{offset:4})&&!Object(n.a)(e,l.moov,{offset:4}))||void 0))},mov:function(e){return Object(n.a)(e,l.mov,{offset:4})},"3gp":function(e){return Object(n.a)(e,l["3gp"],{offset:4})},ac3:function(e){var t=Object(s.a)(e);return Object(n.a)(e,l.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Object(s.a)(e);return Object(n.a)(e,l.flac,{offset:t})},ogg:function(e){return Object(n.a)(e,l.ogg)},avi:function(e){return Object(n.a)(e,l.riff)&&Object(n.a)(e,l.avi,{offset:8})},wav:function(e){return Object(n.a)(e,l.riff)&&Object(n.a)(e,l.wav,{offset:8})},h264:function(e){return Object(o.a)(e,7,3).length},h265:function(e){return Object(o.b)(e,[32,33],3).length}},d=Object.keys(u).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);d.forEach(function(e){var t=u[e];u[e]=function(e){return t(Object(n.k)(e))}});var c=u,p=function(e){e=Object(n.k)(e);for(var t=0;t<d.length;t++){var i=d[t];if(c[i](e))return i}return""},h=function(e){return Object(r.a)(e,["moof"]).length>0}},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n,r=i(5),a=(i(28),i(96),function(e){return"string"==typeof e?Object(r.h)(e):e}),s=function(e){return Array.isArray(e)?e.map(function(e){return a(e)}):[a(e)]},o=function(e){e=Object(r.k)(e);for(var t=[],i=0;e.length>i;){var a=e[i],s=0,o=0;o++;var l=e[o];for(o++;128&l;)s=(127&l)<<7,l=e[o],o++;s+=127&l;for(var u=0;u<n.length;u++){var d=n[u],c=d.id,p=d.parser;if(a===c){t.push(p(e.subarray(o,o+s)));break}}i+=s+o}return t};n=[{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 i=e[t.size];t.url=Object(r.c)(e.subarray(t.size+1,t.size+1+i)),t.size+=i}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=o(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:o(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var l=function e(t,i,n){void 0===n&&(n=!1),i=s(i),t=Object(r.k)(t);var a=[];if(!i.length)return a;for(var o=0;o<t.length;){var l=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,u=t.subarray(o+4,o+8);if(0===l)break;var d=o+l;if(d>t.length){if(n)break;d=t.length}var c=t.subarray(o+8,d);Object(r.a)(u,i[0])&&(1===i.length?a.push(c):a.push.apply(a,e(c,i.slice(1),n))),o=d}return a}},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint8(0),n=0!==i,r={version:i,channels:t.getUint8(1),preSkip:t.getUint16(2,n),sampleRate:t.getUint32(4,n),outputGain:t.getUint16(8,n),channelMappingFamily:t.getUint8(10)};if(r.channelMappingFamily>0&&e.length>10){r.streamCount=t.getUint8(11),r.twoChannelStreamCount=t.getUint8(12),r.channelMapping=[];for(var a=0;a<r.channels;a++)r.channelMapping.push(t.getUint8(13+a))}return r})},function(e,t,i){"use strict";i.d(t,"a",function(){return r}),i.d(t,"b",function(){return c});var n=i(5),r=(i(28),{EBML:Object(n.k)([26,69,223,163]),DocType:Object(n.k)([66,130]),Segment:Object(n.k)([24,83,128,103]),SegmentInfo:Object(n.k)([21,73,169,102]),Tracks:Object(n.k)([22,84,174,107]),Track:Object(n.k)([174]),TrackNumber:Object(n.k)([215]),DefaultDuration:Object(n.k)([35,227,131]),TrackEntry:Object(n.k)([174]),TrackType:Object(n.k)([131]),FlagDefault:Object(n.k)([136]),CodecID:Object(n.k)([134]),CodecPrivate:Object(n.k)([99,162]),VideoTrack:Object(n.k)([224]),AudioTrack:Object(n.k)([225]),Cluster:Object(n.k)([31,67,182,117]),Timestamp:Object(n.k)([231]),TimestampScale:Object(n.k)([42,215,177]),BlockGroup:Object(n.k)([160]),BlockDuration:Object(n.k)([155]),Block:Object(n.k)([161]),SimpleBlock:Object(n.k)([163])}),a=[128,64,32,16,8,4,2,1],s=function(e){for(var t=1,i=0;i<a.length&&!(e&a[i]);i++)t++;return t},o=function(e,t,i,r){void 0===i&&(i=!0),void 0===r&&(r=!1);var o=s(e[t]),l=e.subarray(t,t+o);return i&&(l=Array.prototype.slice.call(e,t,t+o),l[0]^=a[o-1]),{length:o,value:Object(n.b)(l,{signed:r}),bytes:l}},l=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?Object(n.f)(t):t},u=function(e){return Array.isArray(e)?e.map(function(e){return l(e)}):[l(e)]},d=function e(t,i,r){if(r>=i.length)return i.length;var a=o(i,r,!1);if(Object(n.a)(t.bytes,a.bytes))return r;var s=o(i,r+a.length);return e(t,i,r+s.length+s.value+a.length)},c=function e(t,i){i=u(i),t=Object(n.k)(t);var r=[];if(!i.length)return r;for(var a=0;a<t.length;){var s=o(t,a,!1),l=o(t,a+s.length),c=a+s.length+l.length;127===l.value&&(l.value=d(s,t,c),l.value!==t.length&&(l.value-=c));var p=c+l.value>t.length?t.length:c+l.value,h=t.subarray(c,p);Object(n.a)(i[0],s.bytes)&&(1===i.length?r.push(h):r=r.concat(e(h,i.slice(1))));a+=s.length+l.length+h.length}return r}},function(e,t,i){"use strict";i.d(t,"a",function(){return u}),i.d(t,"b",function(){return d});var n=i(5),r=Object(n.k)([0,0,0,1]),a=Object(n.k)([0,0,1]),s=Object(n.k)([0,0,3]),o=function(e){for(var t=[],i=1;i<e.length-2;)Object(n.a)(e.subarray(i,i+3),s)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var r=e.length-t.length,a=new Uint8Array(r),o=0;for(i=0;i<r;o++,i++)o===t[0]&&(o++,t.shift()),a[i]=e[o];return a},l=function(e,t,i,s){void 0===s&&(s=1/0),e=Object(n.k)(e),i=[].concat(i);for(var l,u=0,d=0;u<e.length&&(d<s||l);){var c=void 0;if(Object(n.a)(e.subarray(u),r)?c=4:Object(n.a)(e.subarray(u),a)&&(c=3),c){if(d++,l)return o(e.subarray(l,u));var p=void 0;"h264"===t?p=31&e[u+c]:"h265"===t&&(p=e[u+c]>>1&63),-1!==i.indexOf(p)&&(l=u+c),u+=c+("h264"===t?1:2)}else u++}return e.subarray(0,0)},u=function(e,t,i){return l(e,"h264",t,i)},d=function(e,t,i){return l(e,"h265",t,i)}},function(e,t){var i,n,r,a,s,o,l;i=function(e){return 9e4*e},n=function(e,t){return e*t},r=function(e){return e/9e4},a=function(e,t){return e/t},s=function(e,t){return i(a(e,t))},o=function(e,t){return n(r(e),t)},l=function(e,t,i){return r(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o,metadataTsToSeconds:l}},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,'.vjs-svg-icon{display:inline-block;background-repeat:no-repeat;background-position:50%;fill:currentColor;height:1.8em;width:1.8em}.vjs-svg-icon:before{content:none!important}.vjs-control:focus .vjs-svg-icon,.vjs-svg-icon:hover{filter:drop-shadow(0 0 .25em #fff)}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABTsAAsAAAAAIpAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV32Y21hcAAAAYQAAAEJAAAD5p42+VxnbHlmAAACkAAADtIAABckI4l972hlYWQAABFkAAAAKwAAADYsvIjpaGhlYQAAEZAAAAAdAAAAJA+RCL1obXR4AAARsAAAABcAAAC8Q2YAAGxvY2EAABHIAAAAYAAAAGB7CIGGbWF4cAAAEigAAAAfAAAAIAFAAI9uYW1lAAASSAAAASUAAAIK1cf1oHBvc3QAABNwAAABfAAAAnXdFqh1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGR7yDiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGPHcRdyA4RZgQRADaGCyYAAHic7dPXbcMwAEXRK1vuvffem749XAbKV3bjBA6fXsaIgMMLEWoQJaAEFKNnlELyQ4K27zib5PNF6vl8yld+TKr5kH0+cUw0xv00Hwvx2DResUyFKrV4XoMmLdp06NKjz4AhI8ZMmDJjzoIlK9Zs2LJjz4EjJ85cuHLjziPe/0UWL17mf2tqKLz/9jK9f8tXpGCoRdPKhtS0RqFkWvVQNtSKoVYNtWaoddPXEBqG2jQ9XWgZattQO4baNdSeofYNdWCoQ0MdGerYUCeGOjXUmaHODXVhqEtDXRnq2lA3hro11J2h7g31YKhHQz0Z6tlQL4Z6NdSbod4N9WGoT9MfHF6GmhnZLxyDcRMAAAB4nJ1YC1hU17U+a5/HMA4iA3NmVBDmoQwP5TFnHlFeA4gYiUFRQINoSCBAyK3G2yi+0aipYtFcHYo2xsb4NiY3+VrNxSaX5uvt495ozNdoYoxmem2/L8HGpLc+InB279pnhlGr5mvL4eyz99nrrL32eu1/DQcc/okdYgdHOA6MQKp4r9gx0EcMHMezOalVasW5BM7NcXoSb9fFgE6KtSSBxWz1FYDPG+vMBGcKb9cebu2VS5s2aaTkCvRSf6C7Y+Ppibm5E09v7IDs2/3uZQtbD0zIyppwoHXh/93ukmyYgdePNRp65p5v+3v/9otQl2O7wP34cT88p8Md2YxpYLQZoRcy6FlSBRnwnGAe6BPMSCZo+7NJVqS0cE4uHendzhSnbPH6TDqL1+Nme5LZXkCHnGyoH0kne30WH+gswhm3q+pt/mTas9NLS64GnjmSlTPw0wVQT/ewRaBgxtydy3cuUB9/6SW+vb5yRvr+t0eOfPKJZ/9t3+4tL7xj32Xd3thCxi+ge6ifdsAN+l5+wi5HQ/cCoeull1AszS7CUfEcJzK7sKWJAdJhCd0sPM4+EY7QDm5ov08hXRQXE5bf6PV5Q5+IjW7X7Nku92Ask4l2hCRRD6TPqISiCJeQna3SCFwrhrNzXHzo4yFevBwxpzxk8WCIIfkvVEKVy32SbT8n68gzgaslpaiO2zIGIyuSb7RNf9HSuN26y/7OC1tgEmpiyA6aD4qcgTOiLThwGG0eB694FI8NHLLN6OBlRVaMxNAFS4JdXUG6mW8PwpKuYLCLXKGbu8iwYNdgO06Sn3Th+/vyZAxs8Ro30DjHe9gy8Fywi24OMm7Qyzh3MTZVOMYhLBnoC+J79lpTUyQmorjhnMwlcQ5uPEYGpDjsOkkH49BjQLQBqs3jFtFdJNlksYmoQFDArLh8Xh+Qd6Ghcsb6FUuehDi+U/lqD71K/qiegeV1imcwjl7ExwiSrf4BZyCujV6cVcFo6VX+G9IcPyFjJnUufbU/jzrL1X99as36reXl8K32nFaOr+E8jWJEcJ55DpMVfSMe95/AJaOsGBH2GJCNpiRQbK4C8BjdmQA22QY2j03Em13i2YHqtNLU1NI04Yj2HJgA6fQc6VPNpA/D+Ryks554NnVy2mB72uRUfPLsqR4N0LOBQKArwJYO+5W2fgZX8oC1HR6HjNaQTVIG2FPwnTcXXGZZfNB7TE6pTKZUwaw91XWLAoFFGcnB5PHjsckgBjbWutrL+0h5Y1xw3DRGDumsnXb3MJwXrJIN5U7m0rgJ3yG5w4he5ckFG4pmNEkOm0/xOO4r4yL87wqtQM+hiJIVp+6iG2wPBKD35ElGkDx+UfC2v1mFG1o+M3AjNFty8biKMXwzyxnZLds8wYD2BxmCPHAldPOeLsy/0BugftYhVYFAhO8SqQ0j3oK7dHJZnI/jxmUS4onlxskSF8thmvNZjIrRZwEPxr0lBuLRuz3oy/FOHCsxwOPYh2M+e9u3J5pgPYz9gp6G7C9m0A11F9ddqKMfV+4sbq45/YspOysXvT+3pdFdYNg2fHbW8Dz301MqDVuGrz0Fuh0YMW8mddrpqzST7rV9BcvqPoNvadRndWp0p8HvbiqrFj5yFQ/vNFSXDpxpLEFWp+DcrF3FT1afWshFcmCfeAMjEvO65i0Y6XijQfSRPWx3TV/Df7Km3E1l+kLt56s/rwVzuRusNMhudznkwdLaS+QNdeal2jDPP4l9qHc98vTYZOSkxzD+njBWVWjFPKgipx6DkWvXQiW8OYcewVHE5yukinDMcfGgc0opDltYKDxIGBedkzc6jSfE7tlvESCDFUw0Hx0opS+U0lHCxNottbNWSxX9zZVvEhKWUSyBpaXwBc2a98M6UqPeXAs/GDon8Ax7hsthO8cM5HU7Ad0UvRR9lHmtyQKZ4MAe814X5h9MSUkQmhf96eVJ6p90OjIiqSIjvykvr2l5U55O/fPQKD+jIomYpNyGJQ25uQ2kIikRfAmuBHCPsWqkSDEqgZ5KDI2sifS/R43MbZg0idFHbCPNxXxZws1ACVE6hAhOdJwRkJLFBLPZpRGYJ50pko6XzMkgmSx40ljik6AQcKhFnLcQE6rF7PXFe1Ocoj0T3AXgSgJTDIhHRfHlYZKuSzc6uievOJGXY+i5GJkkTp7UM3y0LqATDbtFcbdBxO7o4T25JYlEjoH0uynUh8rapkxp62QN70svSF+hT4gGPlovlmcm/ComLi7mV4kTykV9NFWjE/QrwgQ4uIcAP0rQF4VZYRP2o3PhHHzfPMJj9Ir+uzKUlrH49ntT18AVvj1sc3YGjUT/Mt2Dxawa8ArcA7bCQIpvfwAYu22vEG/No/5RvPdA7g+AelLrPwzy+LtkLPhnpIxH14m4EYq8eeMHbPEPNm6G7Nv9B4jcFPZ8bJj0SEjP3MPgQdKTqqEoy2v6G32P/Y6dxOv04AxnoAeq+GILvUavtYCBXm+BaIhuodcfrN5B/V2EYMCPh+SxavjGyPwV0x4CJgUPGT0mQaODGBACIJZGsMXwAD0LGXx7l3CdAcKMIKI+f5CepWeD0BvyU/GcdBxPF8SwejC6LGZmAURFdsSWKR5HyHld2kbdIZO1Ixx+bnnzU7n5+blPNV9jnUDWhP2tC68tbN3PVIldsQPxSAcSpjOav7Q05uXn5zW2LLvDXn9B6syscPy9iDLEMmSrJz6nYuWMipukjM0AH8JkGS+XFyMRkzSCH7KD/hwm172SAyZYumHlefr5AddrtA0O0TnwaVZxcRY9Bfukn9Gf05N1r9DV9MoBsJ1f+ZrqUvtPHizJAntWybv7hmqLt6QLuK6ZS9Fqi1jO5rDoWPZXXII5Tgajg53cIXCjDCGIcYrRIY2n6+mXOa/W0bdhau3ryiEYe2FV/5oeaIYK/5w5frCyll6/cYO8DiNhw6t1MBWmznt91QX62UF1N7l0eHBZTRGpKaqpKVIPF9UcIzmReud9TSY75+K899GHbBu6wjoR7RKKZVYiYxSPf5/2wJT5e3NAhmUbVn5KLx1Ujg0+BGvpAIh0DezInTkzF37KVocxrKU3r1+XLtAe2lO3l66kfQfB/unKY+q8N375Ru8bc4pJXfEcESU95q+p8ZNZRTWH1d9FzvUdYXk5rLkcdkEisoKKVHQW/b3GEx6tPaYcoJfOr9wAbSBnv1IHpep0OExr4LPMkpJM+j7sly7UHkOzXjoAZljHCGiyegtNlwljM0v+c19ET9Pvst09a2Mtgcf5/ZSzYO5h1156+eyydfAsxGa9XAuF6vzjh6CssLq6ECysperXX0sX5h5ZdpZe3guxsGIPEtHk/aqXX1hVqP5HYVVVISkrrNqvXorIc+5Ou91Hnr/LcD2afi6eX7UBloOcs7cOpqgGaNfs1g7bNbs9z6wASaylN69d0/TFTIz6Ws8+oGV3mE2612wRTHKcVUbhjKadebloMc+dyXgMVtVK6BwMB/+mVW09igdRBWaRtNQX59d/VD//xdQ0TCiYNj1KT9sq6Wdu5WTbqk3qDXyDaLa1fv621LS01G3z61sD6lH8lAxDLicV921s6Bf92JOYvzNYCL1khbqBXEFUzC521N5NyzNaQIWhjyFyDoBIVrAjmv2UEaLlI+c6zw1jmVIPLLLZZUTj6GxGHW+mq1tgHXR2D85p4Q934+jLbtjVLcyCdS10NVzpHqxp4Q/hK7WopY/NRGx9HGsPGdFjOjcpjBnGYMVqY/4eqT5khWEHWUup2A/pTw7pdWgsWft7ETUERL96nRg0HNFPmCYba6pylECaExX89A9WLUOVB4oKLu/o1oqSYHCgLzBUlAz8hNFDRpeSU1XT+LRmDUgPaKbYdHDn9suF/tu13nHJij0N97LfS0QmqONuyONk7zvUI6Qa0pF9f2+oABL92AT6e0U//z9YqAiWtJLU1JK0gS+1aacwamiNqK067u9ZQ8f1d4qLodMzz3uL89Z68V/Hnr++hXWUuHgw8dfi972PeTyPefu3aNNucemQ74qFuIaJnVkOu4Q+yjuwmmC1FqZpl1i4uzoPxjkpPf3Xv545tl26Rr+dOvUd+omqJzch9dOeU7f10Y64nMcKK137DccIZq2WdXtdZjbEoLSzHwiMtrjYLDxpHQW8gjMX6XFYAE2zSWVD04EGYSs9MbO6sEo20BMEAB4mpvSypsKjZ4Stgzb+c3A9/MQT2+vrBy+qvyFxLUtLlSRF/Ri2wjfZ2dus2Q8lXx4608/jnqK5OOap6NY2PSjYYnECCjiEeLJll/pbmqfeIK+ps3+MxrlEhqmTPipVP7kqlF4VhpEb6r+Q7YOJg38kJ9SHBf3NBl6+9YchfbUjb5ahLSzUM3kPHmwFAsZ5rpai0S7E5xWzZ1j+fW7zsUWP2g5NXTw52ySCTrgG0+lbw60l2Y/CB185CoA8NK+tbRKxfjy6pm5hzQRRR+cMqv1Jbiw6STivtEvt3DRcy0QEh92JlUGo2PG4tSKHl00YD6xc8CK+YPYyy3io2lN8BcSjKRzrIV6ypOAobqxViJPaT9M9Hy5szY33mp7OX/Zu89L/7Ww5vqY2Y8b0pKgoiUhG5cPDPzq8qTV/WkzUOIvXVVA96kmjcBrr3HrYC/Wn+fYP6Z7T1rqy3zknbvqma/FvVk96fNXGkuaXrdHW5JGSxZT/2I/O73v+yNWafMdzc5NdxYurHs6h86e01sLKLz9EBrg+x36rxAaED7hRnAMx7Vzu+9wabh3zG8XLQjx0ablUJzmxdErxYT3kzQSd0SSafVqF5PXgpp0OyYJ1EyNHpGUZmvK575ySzd85JSqF7IBzSAbMM04+MbE58xF3/njXOGecSaermlw2y9PsSQdytLJVr8t+wg+rR8cZYoeNxVIzNdk3Bngi8U5LAlgTFoQnzJCa5EsCgYhCaGL+qPj7TdhG31p9tej3R04N//PXxNwJvyUqwaJqRPJY98TJ5TPndmflRAkAhBfe46sfKW5wizSge08Xb7Ca/GUVs55trngkKkrUS2WPzKttaaqq+idmahugkY+W6fN0I6i3gPt/x88U4wAAeJxjYGRgYADiGU9YXsXz23xl4GZnAIFH7fO+IdMc/WBxDgYmEAUASbMKwAB4nGNgZGBgZwABjj4Ghv//OfoZGBlQgT4ARicDZAAAAHicY2BgYGAfxJijD8Fmu4EqBwCSpgKpAAAAAAAADgBoAH4AzADgAQIBQgFsAZgB7gIuAooC0AL8A2IDjAOoA+AEMASwBNoFCAVaBcAGCAYuBnAGrAb2B04HigfSCCoIcAiGCJwIyAkkCVYJiAmsCfIKIApWCsQLknicY2BkYGDQZ2hmYGcAASYg5gJCBob/YD4DABqrAdAAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2ReVPbMBDF/ULi2EkDBFqO3gdHLxUzDB9IkdexBllydRD49ihO3Ckz7B/a31utZnafkkGyiXnyclxhgB0MMUKKMTLkmGCKV5hhF3vYxxwHOMRrvMERjnGCU7zFO7zHB3zEJ3zGF3zFN5zhHBe4xHf8wE/8wm8w/MEVimTYKv44XR9MSCsUjVoeHE3vjQoNsSZ4mmxZmVWPjSz7jlou6/0qKOWEJdKMtCe793/hQfqxa6XWZHMXFl56RS4TvPXSaDeoy0zUUZB109KstDK8lHo5q6Qi1hcOnqkImubPS6aqRq7mlnaEWabub4iYblba3SRmgldS0+FWdhNtt04F14JUaqkl7tcpOpJtErvNt3Bd9HRT5JWxK25Ldjvp6br4hzfFiIdSmlzTg2fSUzNrLd1LE1ynxq4OVaVoKLjzJ60UPtj1RKzHzsbjly6inVnFBS2MucviPncU7Rr7lfTxRepDs1A2j3ZHRc7PuzFYSfE3ZOd4kjwBy227hA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\F101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\F102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\F103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\F104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\F105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\F106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\F107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\F108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\F109"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\F10A"}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\F10B"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\F10C"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\F10D"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\F10E"}.vjs-icon-downloading{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-downloading:before{content:"\\F10F"}.vjs-icon-file-download{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download:before{content:"\\F110"}.vjs-icon-file-download-done{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download-done:before{content:"\\F111"}.vjs-icon-file-download-off{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download-off:before{content:"\\F112"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\F113"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\F114"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\F115"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\F116"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\F117"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\F118"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\F119"}.vjs-icon-repeat{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-repeat:before{content:"\\F11A"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\F11B"}.video-js .vjs-skip-backward-5 .vjs-icon-placeholder,.vjs-icon-replay-5{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-backward-5 .vjs-icon-placeholder:before,.vjs-icon-replay-5:before{content:"\\F11C"}.video-js .vjs-skip-backward-10 .vjs-icon-placeholder,.vjs-icon-replay-10{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-backward-10 .vjs-icon-placeholder:before,.vjs-icon-replay-10:before{content:"\\F11D"}.video-js .vjs-skip-backward-30 .vjs-icon-placeholder,.vjs-icon-replay-30{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-backward-30 .vjs-icon-placeholder:before,.vjs-icon-replay-30:before{content:"\\F11E"}.video-js .vjs-skip-forward-5 .vjs-icon-placeholder,.vjs-icon-forward-5{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-forward-5 .vjs-icon-placeholder:before,.vjs-icon-forward-5:before{content:"\\F11F"}.video-js .vjs-skip-forward-10 .vjs-icon-placeholder,.vjs-icon-forward-10{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-forward-10 .vjs-icon-placeholder:before,.vjs-icon-forward-10:before{content:"\\F120"}.video-js .vjs-skip-forward-30 .vjs-icon-placeholder,.vjs-icon-forward-30{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-forward-30 .vjs-icon-placeholder:before,.vjs-icon-forward-30:before{content:"\\F121"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\F122"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\F123"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\F124"}.vjs-icon-shuffle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-shuffle:before{content:"\\F125"}.vjs-icon-cast{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cast:before{content:"\\F126"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\F127"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\F128"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\F129"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\F12A"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\F12B"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\F12C"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\F12D"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\F12E"}.video-js{display:inline-block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-1-1,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode),.video-js .vjs-tech{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window,body.vjs-pip-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen,body.vjs-pip-window .video-js{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs),body.vjs-pip-window .video-js{width:100%!important;height:100%!important;padding-top:0!important;display:block}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-pip-container .vjs-pip-text{position:absolute;bottom:10%;font-size:2em;background-color:rgba(0,0,0,.7);padding:.5em;text-align:center;width:100%}.vjs-layout-small.vjs-pip-container .vjs-pip-text,.vjs-layout-tiny.vjs-pip-container .vjs-pip-text,.vjs-layout-x-small.vjs-pip-container .vjs-pip-text{bottom:0;font-size:1.4em}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:50%;left:50%;padding:0;margin-top:-.81666em;margin-left:-1.5em;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-button .vjs-svg-icon{width:1em;height:1em;position:absolute;top:50%;left:50%;line-height:1;transform:translate(-50%,-50%)}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause:not(.vjs-seeking,.vjs-scrubbing,.vjs-error) .vjs-big-play-button{display:block}.video-js button{background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.video-js.vjs-spatial-navigation-enabled .vjs-button:focus{outline:.0625em solid #fff;box-shadow:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{display:flex;justify-content:center;list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu li.vjs-selected:hover .vjs-svg-icon,.vjs-menu li.vjs-selected .vjs-svg-icon,.vjs-menu li.vjs-selected:focus .vjs-svg-icon,.vjs-menu li.vjs-selected:hover .vjs-svg-icon{fill:#000}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:none}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-pip-window .vjs-menu-button-popup .vjs-menu{left:unset;right:1em}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js.vjs-spatial-navigation-enabled .vjs-control-bar{gap:1px}.video-js:not(.vjs-controls-disabled,.vjs-using-native-controls,.vjs-error) .vjs-control-bar.vjs-lock-showing{display:flex!important}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible;pointer-events:auto}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.vjs-button>.vjs-svg-icon{display:inline-block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder,.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;line-height:.35em;z-index:1}.vjs-svg-icons-enabled .vjs-play-progress:before{content:none!important}.vjs-play-progress .vjs-svg-icon{position:absolute;top:-.35em;right:-.4em;width:.9em;height:.9em;pointer-events:none;line-height:.15em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip,.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.video-js .vjs-progress-control:hover .vjs-mouse-display,.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js.vjs-spatial-navigation-enabled .vjs-slider:focus{outline:.0625em solid #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-svg-icons-enabled .vjs-volume-level:before{content:none}.vjs-volume-level .vjs-svg-icon{position:absolute;width:.9em;height:.9em;pointer-events:none;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{line-height:.35em;right:-.5em}.vjs-slider-horizontal .vjs-volume-level .vjs-svg-icon{right:-.3em;transform:translateY(-50%)}.vjs-slider-vertical .vjs-volume-level .vjs-svg-icon{top:-.55em;transform:translateX(-50%)}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster,.vjs-pip-container.vjs-has-started .vjs-poster{display:block}.vjs-poster img{width:100%;height:100%;object-fit:contain}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-svg-icons-enabled .vjs-seek-to-live-control{line-height:0}.vjs-seek-to-live-control .vjs-svg-icon{width:1em;height:1em;pointer-events:none;fill:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-svg-icon{fill:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-live .vjs-time-divider{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-normalise-time-controls:not(.vjs-live) .vjs-time-control{display:flex}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.vjs-error .vjs-text-track-display{display:none}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js.vjs-force-center-align-cues .vjs-text-track-cue{text-align:center!important;width:80%!important}@supports not (inset:10px){.video-js .vjs-text-track-display>div{top:0;right:0;bottom:0;left:0}}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control,.vjs-pip-window .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control,.vjs-pip-window .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:.85;text-align:left;border:.6em solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:5em;height:5em;border-radius:50%;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:flex;justify-content:center;align-items:center;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-error .vjs-loading-spinner{display:none}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-svg-icon{width:1.5em;height:1.5em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\F10C";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder,.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before,.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\F12E";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-spatial-navigation-enabled .vjs-modal-dialog.vjs-text-track-settings{height:80%}.vjs-error .vjs-text-track-settings{display:none}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-text-track-settings select{font-size:inherit}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:10px;border:none}.vjs-text-track-settings fieldset span{display:inline-block;padding:0 .6em .8em}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;font-weight:700;font-size:1.2em}.vjs-text-track-settings .vjs-label{margin:0 .5em .5em 0}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}.vjs-title-bar{background:rgba(0,0,0,.9);background:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.7) 60%,transparent);font-size:1.2em;line-height:1.5;transition:opacity .1s;padding:.666em 1.333em 4em;pointer-events:none;position:absolute;top:0;width:100%}.vjs-error .vjs-title-bar{display:none}.vjs-title-bar-description,.vjs-title-bar-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vjs-title-bar-title{font-weight:700;margin-bottom:.333em}.vjs-playing.vjs-user-inactive .vjs-title-bar{opacity:0;transition:opacity 1s}.video-js .vjs-skip-backward-5,.video-js .vjs-skip-backward-10,.video-js .vjs-skip-backward-30,.video-js .vjs-skip-forward-5,.video-js .vjs-skip-forward-10,.video-js .vjs-skip-forward-30{cursor:pointer}.video-js .vjs-transient-button{position:absolute;height:3em;display:flex;align-items:center;justify-content:center;background-color:rgba(50,50,50,.5);cursor:pointer;opacity:1;transition:opacity 1s}.video-js:not(.vjs-has-started) .vjs-transient-button{display:none}.video-js.not-hover .vjs-transient-button:not(.force-display),.video-js.vjs-user-inactive .vjs-transient-button:not(.force-display){opacity:0}.video-js .vjs-transient-button span{padding:0 .5em}.video-js .vjs-transient-button.vjs-left{left:1em}.video-js .vjs-transient-button.vjs-right{right:1em}.video-js .vjs-transient-button.vjs-top{top:1em}.video-js .vjs-transient-button.vjs-near-top{top:4em}.video-js .vjs-transient-button.vjs-bottom{bottom:4em}.video-js .vjs-transient-button:hover{background-color:rgba(50,50,50,.9)}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible),.video-js :focus:not(:focus-visible){outline:none}',""])},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".vjs-custom-skin>.video-js{width:100%;font-family:PingFang SC,Helvetica Neue,Hiragino Sans GB,Segoe UI,Microsoft YaHei,\\\\5FAE\\8F6F\\96C5\\9ED1,sans-serif}.video-js.vjs-no-flex .vjs-menu-button-inline,.vjs-custom-skin>.video-js .vjs-menu-button-inline.vjs-slider-active,.vjs-custom-skin>.video-js .vjs-menu-button-inline:focus,.vjs-custom-skin>.video-js .vjs-menu-button-inline:hover{width:10em}.vjs-custom-skin>.video-js .vjs-controls-disabled .vjs-big-play-button{display:none!important}.vjs-custom-skin>.video-js .vjs-control{width:3em}.vjs-custom-skin>.video-js .vjs-control.vjs-live-control{width:auto;padding-left:.5em;letter-spacing:.1em}.vjs-custom-skin>.video-js .vjs-menu-button-inline:before{width:1.5em}.vjs-menu-button-inline .vjs-menu{left:3em}.vjs-custom-skin>.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button{display:none!important}.vjs-custom-skin>.video-js .vjs-mouse-display:after,.vjs-custom-skin>.video-js .vjs-play-progress:after{padding:0 .4em .3em}.video-js.vjs-ended .vjs-loading-spinner{display:none}.video-js.vjs-ended .vjs-big-play-button{display:block!important}.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.vjs-custom-skin>.video-js .vjs-big-play-button{display:block}.vjs-custom-skin>.video-js .vjs-big-play-button{top:50%;left:50%;margin-left:-1.5em;margin-top:-1em;background-color:rgba(0,0,0,.45);font-size:3.5em;height:2em!important;line-height:2em!important;margin-top:-1em!important}.video-js:hover .vjs-big-play-button,.vjs-custom-skin>.video-js .vjs-big-play-button:active,.vjs-custom-skin>.video-js .vjs-big-play-button:focus{background-color:rgba(36,131,213,.9)}.vjs-custom-skin>.video-js .vjs-loading-spinner{border-color:rgba(36,131,213,.8)}.vjs-custom-skin>.video-js .vjs-control-bar2{background-color:#000}.vjs-custom-skin>.video-js .vjs-control-bar{color:#fff;font-size:14px}.vjs-custom-skin>.video-js .vjs-play-progress,.vjs-custom-skin>.video-js .vjs-volume-level{background-color:#2483d5}.vjs-custom-skin>.video-js .vjs-play-progress:before{top:-.3em}.vjs-custom-skin>.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.3em}.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:0}.vjs-custom-skin>.video-js .vjs-menu li{padding:0;line-height:2em;font-size:1.1em;font-family:PingFang SC,Helvetica Neue,Hiragino Sans GB,Segoe UI,Microsoft YaHei,\\\\5FAE\\8F6F\\96C5\\9ED1,sans-serif}.vjs-custom-skin>.video-js .vjs-mouse-display:after,.vjs-custom-skin>.video-js .vjs-play-progress:after,.vjs-custom-skin>.video-js .vjs-time-tooltip{border-radius:0;font-size:1em;padding:0;width:3em;height:1.5em;line-height:1.5em;top:-3em}.vjs-custom-skin>.video-js .vjs-menu-button-popup .vjs-menu{width:5em;left:-1em}.vjs-custom-skin>.video-js .vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:0}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-play-control{order:0}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-time-control{min-width:1em;padding:0;margin:0 .1em;text-align:center;display:block;order:1}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-playback-rate .vjs-playback-rate-value{font-size:1.2em;line-height:2.4}.vjs-custom-skin>.video-js .vjs-progress-control.vjs-control{order:2}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-volume-menu-button{order:3}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-resolution-button{order:4}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-resolution-button .vjs-resolution-button-label{display:block;line-height:3em}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-playback-rate{order:5}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-fullscreen-control{order:6}",""])},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n={defaultPath:{1:"/productDetail/",2:"/productList",9:"/articleList/",10:"/articleDetail/"}}},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){if(200===e.status){var t=e.data;return"0"===t.errorCode?t.data:e.data}}i.d(t,"a",function(){return f});var o=i(7),l=i.n(o),u=i(104),d=i.n(u),c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),p={json:"application/json;",form:"application/x-www-form-urlencoded;",html:"text/html;",file:"multipart/form-data",excel:"msexcel",xml:"application/xml",javascript:"application/x-javascript;charset=utf-8"},h={lang:"Accept-Language",contentType:"Content-Type"};d.a.interceptors.response.use(s,function(e){return e.message,Promise.reject(e)});var f=function(){function e(){a(this,e)}return c(e,null,[{key:"call",value:function(){function e(e){return t.apply(this,arguments)}var t=r(l.a.mark(function e(t){var i,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.method,o=void 0===s?"get":s,u=a.headers,c=void 0===u?{}:u,p=a.body,h=void 0===p?null:p,f=a.responseType,v=void 0===f?null:f;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t,n={method:o,url:i,responseType:v||"json",headers:c},"get"===o?n.params=h:n.data=h,e.next=5,d()(n).catch(function(e){e.response?console.error(e.response.status,e.response.data):e.request?console.error(e.request):console.error("Error",e.message?e.message:"")});case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}},e,this)}));return e}()},{key:"get",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.mask,r=void 0===n||n,a=i.external,s=void 0!==a&&a,o=i.headers,l=void 0===o?{}:o;return e.call(t,{headers:l,external:s,mask:r})}},{key:"postBody",value:function(t,i){var r=i.body,a=void 0===r?{}:r,s=i.module,o=void 0===s?"":s,l=i.method,u=void 0===l?"post":l,d=i.mask,c=void 0===d||d,f=i.postData,v=void 0===f||f,m=i.external,g=void 0!==m&&m,y=i.headers,b=void 0===y?{}:y,_=i.compat;return e.call(t,{module:o,method:u,headers:Object.assign(b,n({},h.contentType,p.json)),body:a,postData:v,external:g,mask:c,compat:_})}}]),e}()},function(e,t,i){e.exports=i(105)},function(e,t,i){"use strict";function n(e){var t=new s(e),i=a(s.prototype.request,t);return r.extend(i,s.prototype,t),r.extend(i,t),i}var r=i(1),a=i(31),s=i(106),o=i(37),l=i(15),u=n(l);u.Axios=s,u.create=function(e){return n(o(u.defaults,e))},u.Cancel=i(38),u.CancelToken=i(121),u.isCancel=i(36),u.all=function(e){return Promise.all(e)},u.spread=i(122),u.isAxiosError=i(123),e.exports=u,e.exports.default=u},function(e,t,i){"use strict";function n(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var r=i(1),a=i(32),s=i(107),o=i(108),l=i(37),u=i(119),d=u.validators;n.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=l(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&&u.assertOptions(t,{silentJSONParsing:d.transitional(d.boolean,"1.0.0"),forcedJSONParsing:d.transitional(d.boolean,"1.0.0"),clarifyTimeoutError:d.transitional(d.boolean,"1.0.0")},!1);var i=[],n=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,i.unshift(t.fulfilled,t.rejected))});var r=[];this.interceptors.response.forEach(function(e){r.push(e.fulfilled,e.rejected)});var a;if(!n){var s=[o,void 0];for(Array.prototype.unshift.apply(s,i),s=s.concat(r),a=Promise.resolve(e);s.length;)a=a.then(s.shift(),s.shift());return a}for(var c=e;i.length;){var p=i.shift(),h=i.shift();try{c=p(c)}catch(e){h(e);break}}try{a=o(c)}catch(e){return Promise.reject(e)}for(;r.length;)a=a.then(r.shift(),r.shift());return a},n.prototype.getUri=function(e){return e=l(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){n.prototype[e]=function(t,i){return this.request(l(i||{},{method:e,url:t,data:(i||{}).data}))}}),r.forEach(["post","put","patch"],function(e){n.prototype[e]=function(t,i,n){return this.request(l(n||{},{method:e,url:t,data:i}))}}),e.exports=n},function(e,t,i){"use strict";function n(){this.handlers=[]}var r=i(1);n.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},function(e,t,i){"use strict";function n(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var r=i(1),a=i(109),s=i(36),o=i(15);e.exports=function(e){return n(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return n(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(n(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,i){"use strict";var n=i(1),r=i(15);e.exports=function(e,t,i){var a=this||r;return n.forEach(i,function(i){e=i.call(a,e,t)}),e}},function(e,t){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(d===setTimeout)return setTimeout(e,0);if((d===i||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function a(e){if(c===clearTimeout)return clearTimeout(e);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function s(){v&&h&&(v=!1,h.length?f=h.concat(f):m=-1,f.length&&o())}function o(){if(!v){var e=r(s);v=!0;for(var t=f.length;t;){for(h=f,f=[];++m<t;)h&&h[m].run();m=-1,t=f.length}h=null,v=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var d,c,p=e.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:i}catch(e){d=i}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(e){c=n}}();var h,f=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];f.push(new l(e,t)),1!==f.length||v||r(o)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,i){"use strict";var n=i(1);e.exports=function(e,t){n.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})}},function(e,t,i){"use strict";var n=i(35);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";var n=i(1);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,i,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.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(){}}}()},function(e,t,i){"use strict";var n=i(115),r=i(116);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,i){"use strict";var n=i(1),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,i,a,s={};return e?(n.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}}),s):s}},function(e,t,i){"use strict";var n=i(1);e.exports=n.isStandardBrowserEnv()?function(){function e(e){var t=e;return i&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var t,i=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return t=e(window.location.href),function(i){var r=n.isString(i)?e(i):i;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},function(e,t,i){"use strict";function n(e,t){for(var i=t?t.split("."):u,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}function r(e,t,i){if("object"!==(void 0===e?"undefined":a(e)))throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var s=n[r],o=t[s];if(o){var l=e[s],u=void 0===l||o(l,s,e);if(!0!==u)throw new TypeError("option "+s+" must be "+u)}else if(!0!==i)throw Error("Unknown option "+s)}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=i(120),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(i){return(void 0===i?"undefined":a(i))===e||"a"+(t<1?"n ":" ")+e}});var l={},u=s.version.split(".");o.transitional=function(e,t,i){function r(e,t){return"[Axios v"+s.version+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}var a=t&&n(t);return function(i,n,s){if(!1===e)throw new Error(r(n," has been removed in "+t));return a&&!l[n]&&(l[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={isOlderVersion:n,assertOptions:r,validators:o}},function(e,t){e.exports={_from:"axios@^0.21.1",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"},_requiredBy:["/"],_resolved:"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.1",_where:"C:\\Users\\Lemon.Ge\\Desktop\\bq-cms1",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,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"}},function(e,t,i){"use strict";function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var i=this;e(function(e){i.reason||(i.reason=new r(e),t(i.reason))})}var r=i(38);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n(function(t){e=t}),cancel:e}},e.exports=n},function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return"object"===(void 0===e?"undefined":n(e))&&!0===e.isAxiosError}},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"hotMain",class:["hot-main","hot-main"+e.uniqueId,""+(!e.showVideo&&"video-ani")]},[e._l(e.pageData.popList,function(t,n){return i("div",{key:n,ref:""+e.uniqueId+n,refInFor:!0,staticClass:"hot-click",style:{width:t.width*e.proportion/e.clientWidth*100+"%",height:t.height*e.proportion/e.clientHeight*100+"%",top:t.top*e.proportion/e.clientHeight*100+"%",left:t.left*e.proportion/e.clientWidth*100+"%"},on:{click:function(i){return e.clickHot(t)}}},[t.showImgStyle&&t.showImgStyle.defaultImgList.length>0?i("div",{staticClass:"hot-click-img"},[i("div",{staticClass:"default-img",on:{mouseover:function(i){return e.mouseIndex(t,n)}}},[i("img",{attrs:{src:t.showImgStyle.defaultImgList[n].resourcePath,alt:t.showImgStyle.defaultImgList[n].resourceName}})]),e._v(" "),i("div",{staticClass:"default-img",style:{width:t.showImgStyle.hoverImgList[n].width+"px",height:n===e.hoverIndex?t.showImgStyle.hoverImgList[n].height+"px":"0px"}},[i("div",{staticClass:"hover-box"},[i("img",{class:["hover-img",n===e.hoverIndex&&"hover-img-trans"],style:{width:t.showImgStyle.hoverImgList[n].width+"px",height:n===e.hoverIndex?t.showImgStyle.hoverImgList[n].height+"px":"0px"},attrs:{src:t.showImgStyle.hoverImgList[n].resourcePath,alt:t.showImgStyle.defaultImgList[n].resourceName},on:{mouseout:function(i){return e.mouseOutIndex(t,n)}}})])])]):e._e()])}),e._v(" "),e.pageData.type&&2===e.pageData.type?[e.pageData.videoUrl?i("video",{ref:"videoPlay",class:["video-js","vjs-default-skin","vjs-big-play-centered"],attrs:{cjdofd:"fffffffffffff",id:"my-video"+e.pageData.uniqueId,autoplay:e.pageData.autoPlay,loop:e.pageData.loop,controls:!e.pageData.hasOwnProperty("controls")||!e.pageData.controls,"x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","x5-video-player-fullscreen":"false","webkit-playsinline":"true",playsinline:"true",name:"viewport"},domProps:{muted:!e.pageData.hasOwnProperty("mute")||e.pageData.mute}}):i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]:[e.pageData.pic?[i("img",{staticClass:"hot-img",attrs:{src:e.pageData.pic,alt:e.pageData.picList[0].resourceName}}),e._v(" "),e.showShadow?e._e():i("div",{staticClass:"mask-hot"})]:i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){var n=i(126);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("22c5ceac",n,!0,{})},function(e,t,i){var n=i(127);t=e.exports=i(0)(!1),t.push([e.i,"@font-face{font-family:bqCmsIconfont;src:url("+n(i(39))+");src:url("+n(i(39))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAADOIAAsAAAAAXNwAADM1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACNSgqBlUz4bwE2AiQDgnQLgTwABCAFhGcHiT8bAE11hhxsHAAs877NIipW8SjqtOQEZ///1+TGEJEtUKveHuVEqSc8G7aDgle5K0xhQXB7GyabHZaNRVuYTLw0ysywox+YS6MUK+h1i6rNJZwyfrWXYllRCzc6ChUbZh90VyzsmHAWEkZ+uE83ysT2QJcdNfvzHGmSHveQpGhCVav/5Uzv7L/vW3iEhvAYjZAgzBcSBbJaKCTx4CFu/qtNnXcBBjr2ANLP8PezfUt2/iKTVbSivEcNTSm+ciKO2YQyab8g6qX6SQkPj2PtbbczSFoK0SoJGlGja9OPSaJbDFcaYpEAWNRpQQE7ViNTWrsEcFyDc9+G57f5fy4qAoKUIiIoFRZhoyKlYiEIVoO6Mmrb3+zJqq2t3abubzrXLvupz7d28bYXC128WnvpLCNwITqkiqLh3py7b5362P4s0kpaXmixAmned2lJyaKUZcnOpLQwFGjTLqa8DJIVum6ws8jzY//av7I9ULrtsEPlCZfB8N59Xf7TAzbAAMH/HhAA+I8Mh9qAuv0I4IHnclqAifY+AN3RWmDR0rlEAk04K80yiywADbArVbMVPlKOlFOmPfzQORSVXVTuyr0DFPYAUgSoBJIKED+B/ECQ/yNCeseYAfID8BGQPpCOpGPoYihDrFy7aOpUxbp3ad0EtNENfuCgqWar7w5fxrQauDH/5VLXnRFTxNFN9x7Gpst2eSNRcChtoGzz7xBAqWmb4vCP0THGOuxvMmW864C/2bBOSzP010Zm6AXFeW77tPTDGnzE29gC38PPhz/6EiJHlCo576XrxZF5v9/5Om1RqL3ymNv6DuB+BAkYGO+xNq6aB2H+RorH40wp993kdALaVTPln1EValRcv2qJVmuThjTsaB/x5QIBQ+dgnya90Y9f5t0K2nWrbv/w6y2Q/7ZNrSYzGl2ydeowZdqESfcWq83ucLrcOr3BaNKwHMrkCqVKzRcKRGIJx6Yt61bNWbNi2YJ5DWrUq1NtVpVKPXr16Tdg0JBhI0aN6bKkVYtyzcqUKlEhMpkkVzQWf3iLCLWcnC4HZNNi8g4BhG4IgjYIBrUQBpogEsxA7Bg9rQK4hJbAOLQaOqFN0AEdhCloEKahIZiAhmESmoR76Ak8QE/hEXoGT9BzeIZ+hRfoBbxCL+EN+i10R/o7wBX0B1xDf8IN9ApuoddwB72BC+gttENTcAhNwxH0Do6h93ACfYBT6COcQX/BOfQ3bEP/wC70L+xA/8Ee9An2oc9wAH2BDegrbELfYAv6DuvQD1iFZmAODmANDsEKHAbLcDtYgNvDPNwBGuBwqIE7Qj0cAXVwJFTDUTALd4IqOBoq4STogbtBL5wMfXB36IdTYADuAYNwKgzBaTAM94QRuBeMwukwBmfEmFImwBKcFdO5lA3QAudAOZwb06spD6AMzodSuABK4IehAn4EIvwoGPwYZPDjkOAnIIefhCL4CBTDT0GAn15jEcCH/+AXhLEbmoeArj3gtfEhDNewkakoYVIcJ1GMTakAUXhN8vVewEybEkHJ+jix9XMgsqx8krRxJile2ielpcamXFBHoISykVBre+wYpVy2dcJgJJgBEfgSalZDhPBf7LJFAJJ7rVkDIBHWEReJBy9HMfrTDZUE8EiURwxDgNqLXq+tS6oxrf5Hj6dRBGAYUCmNf9lGB1AilADNfLkSZR+ecgSJCKo2cb4BcFZhVAw9pKBEAlGcZcatAaYdZq2clRIKSwNWbTcFs3aGqE6RCsPgqirYYcJc1BBRSItpWbb692pjNQZn+IqquzIPazFIL+o8WmHrTgKW4JynGo9MNEs62XrROX37sptbnapiLN2QZci4q1nOSq+1r4x9BqZrt8YnGZGiim1xuB5zMfry3fOMRwyNiTBBQA/hMA771ipb3bhNbfVX1WoPNN++NDFBJJLkigalqLr55kxl9RpKzAbEtLV/ELKHU6sO1iczfz0CbYYADZmL525ZN86sazl3+rp58yy3oggaDkPT90F2QTB6L4LIDbMGzDP/Q9/UwtXiq2KOB58tB28BJDW9jkP1jAay+Cka3Ztg7yIS9yIr+CywYz77/J6ItPDzFaiJHbdZKl+8Vc4a56wz+umsFQR6DwbkFZSLco1FehBGYQ42elF/mxcOWf5H5bZ/5iWMZ84mhXl9LcN6awPku1kTserrPA+08lMiAztNs3jgUXXmhxN8yVw1RBRj7AcYybO3JmuoXKnLIJbMFWP1sVc5JCvw7Oo/vCUGLIzFlFUH6EqLNS4gFJQJJ/My61GbZWi1gCcK1AzmjSJfBHPtF/OmQVldv861a6Fd4fsz19E2cWAXu5jUBpz9uBAuRPfWlNsGRXMcZLPk4cLrM2HIQE0HIb26JMPSZjxNPsP5UkoAH4u7vWtYt97g9teKYxLWWheLLjWQC5dKpI7SxlKFa2QfWvHwIS9OhEm1xcRMXZMH0uzI8cvpCblP308n7RPWKTXjHdswVDzQONlfO39x5d/Dq5cuLP/3UPZxpGpxddnK96DPjeGx/BLyuJJTqZHWtGVIwtCIIi4/H74/aF6e049csa4dM45e/Y+mCc5HNCE4y2BA8Ai0WVy3lrZhWB3Ja+bSlVmLeuRceJ3Fk+HHoSxSsT7EWPmVnasfRPHJv6IvxKSGIZommLbySPTMAQVa5g1e7qx+C1AlNqSK6PNankCB6bcBiyQk8JFBeqlSrzNq4yftsldU/n5Urh6Fhl3LBtkt41hXXaa5y7+YiuOoOZKzDOv1EsusfBryZESWFKegQlZkHM296L/rMzluUbsdjLvKGIiXoPrT7J64Jk4JqGrWWEH27jHIZ28i2bG0uWLGj+5amdmvLScO3sK6c3qLJCpvDXqClF4+SfSwi30lAqu23Q6UXHzpAg+wqhRD22w5dGMhiWQJoKLGqV++fYRtrBzrXcU6P61PNZG9qeEOWYI4kE9ZJ/TjX9cD1YTb+dKndaAmmX+4XVYlJ6k4FVmqgkh9tG2pxdAbCg/088x3YufuXV/w3doXjwLBJ8RjpqbytTcBlqxlBuSklWkk/4VpRugpZ0WxZQVCbFOIyU2CMA0TFdmqTaZzJOiu0VQ4+wskJ9vYjbiU810XlbmN6kVxYSZVGb2/ERp8u5J8HBERYHMWIgwyHpZGn6w+V+zQENvk4iWU7M08QcvnpzcPDn7r6hx5biiR/NNbtOY7ef3I3F/j3Vpa8Iw2rjVOHk9/yr/wDh7ogpOOFNslQEw7NCZ2MmXnNZ/u0Hb/zsVB0Xan1tNM2y2AYnynLzz0WFbV6c7axxTlatiRpfxRkQ2CtidwwYmLaBMjUI3MX8xxA5bkYsg73Z5rxkvJSkf50uIsXBDlhI3h4ogXvQRK8eP+5qlgS54ubDr63OHe2Qw+HZvuRN2W39IBCbfpHOjgtWeqb+nN48mT2xSn4yi80jsbvVJN8Uq8lKZEFbF8p53IJ8qp6uKaYsf/hIXJbaSNTQWeB0lfF5Bv3+enmy+ef/virvmXyvjT7sXe2edcxYD4OngFXhyxKIBj2dy3P+YojX/XuGp13Y4ErMMjYdt6fVtaQtPinzvwiAnaZsJC+8psqHdhcpxsqPTXpHlM28dMYjoQFUvHKqJ3amn85tn6jHH8iguBfvq6BvS65UHM/KgJi3Y1QFkMyLhuhGQSOpZWlot/NzC8NuSVlVdd9oOwRNYoJIRrtH3xcaH3CACfgXR60oBuJMl5pATBJxiz7hl3zdv6Hd5Gsj+7nU9QumVQXEnRQENUPqrEg0q5rRMmK3qiVJwB//K+Mhf3bwZWu4uRwKw/kWl3tShE1mdiNdLqXoKd4gnwuJ+3DYj7kqGW2GRFrnRIp/XEfGBF26vdLsTvRHV+/P3juCAmFRkmdWYAsutcpUy4biiN5EIO2CcvAvhYsrrvv6mdutWL5C5EvodpoQCLM6x3AHcbhbUyb4VgDFr4AWA8osGZYC2mACn3oXsGZMJhvehCdO5WFHR61xIDj3pxWwSPDcrSoeUEh7ySxPbaUjsQ1VW7M9vSBzqo0cVZY2YBmXVVWZpT+vT8hwtdM0avtx0mINAZeGIWe7arkBgXjitcZOqqxP7wm23n1pkbrzX7ZvTFcYSgXDXL84xGA8mSvpy1rhzJJM9dnqsLjRlxyceuzWWRAWjDRPcgOyNZ9MC//SIpG5ISNSqaIAX5IHIls1LQM/J/LITUtLLPWjfWcb12vNGhPVqpGbb7a2TEvLn+fj73ys/Gm0+9Z98OSdLNPmkqN7d1KSvrZ4xztzp/N6p6r3CzRIg82aEU4vNRxE6bdpYTcK2rdqurkBuDiDBeywYPeKnxSkDfJnKlnhzxin6C/xha4jA38nuLuz3Vg7Sl2NOKKLBlOIh0bge6RWoilL41K8lithVFY5RbmhmG44aDLLLT0j0mUvdHw1HGHMJkzrZVMcrGnJLM01GmPfp5Sy9gjI7SJ1ZMDXXcdWG3KRuqaBkTwj6PbO3nuDr9+Rg+04HsqXZ8dhzBNU9DyHeRVj9IdncwnV2D+nd804MWdAWGckAPQtPvybVLUGTjrQiygrNO0WwuzEBWi7OLWrI/Zo/4ECUKnblhRecKUU2z5mM48yA+u5jVYiZYR0W9giKBIDvo7UDS+5CacaxRBA+X7jND+eN/36d5WQRvrj9gRVLk3IbD7Ov+aBKmkcdGq1LEl9wkZ/cJ5TBEkfR98Ab+0PYtSZkpioYQmaMV4rEY4tNBPdwAnOCg6KUB7gmcfCw/ogXNcYouDbhl5yQ3nYKrRuLS9kVoCKnxYTN9p2YmsImEa+cl8YXpNqmXuj3I2xYgJkzHmNoG790AkV5i8idTgVJYtVPV7sXdEhl/7rBPofMHch6x1HddM5MLIgIjreXUeYPJUqWgHttQVBxS+lE+vZ3I5ulD1Far2299cW9EkMl5EgCRfZGbigYNOTbH+dPBvtYdPOblOTlihu87hWKVXulIIh+UKfj04XXDlxYozmS8lrFA7RlcypNctjHciitBttFV6VRLJjWlocD6SWQlbpipcSIL1sMkaSQetdYzBV7LjdOd9ffqifeuJGiZwlqijEm3V7eri9tF1A3vds9Cc6G/xt5txgndm8jKNqWibFtIKuG2StdMbqV6vW53UXVTqWufPIpPYdITdD7BDXIJ5c5pkE/31AYd2TlWrbvSuG15a/pRcKS+n9RhBKv6zO2gqwLP5ZAosYR1GNrSgr4vHqvOwnWkTlVH7EtDEBnJKrG6uAa7nJmM4X1vQ2WBYywAYT5HYtUUTRU6iE0lKW7Y02qbkEgwrttUNkevCsNREJ5Z4RYYk6StrmguzkWSBJq0KR5rtqvCNXMTeWZHw9frFCA862W6Mp9NTH76Y3rvF5Nnj187Jz7PkKaZLc8bfV8Ow3E6inCPXPczECwbBYTcQObalAvXotSWhGG1dYksPBRdKgazqtqFaeKjqBuq2tpjyOuDthZrAl/b6lO4YvdbB8UYHj1CgNCPhX3kKB3npvcIzI9yzLqzjmOtt/fnekg+OgYLsymMfO8V3iYEDOiUbkFVHWJMag8XV61QpHirC7PZzp4vz0zy70//EX9nedYt2zb5S0pUV5TBMccxXDX706hN6cCPrpqqqtcCHmzOpWt9fU0c6EWLtncvGnHFF/iR4HRfWm5RNPgemLWnJTD2kSfvCBoUataMhdt6zVQ0Js2GoQrNMTyLDz9r2cf6hwoLKDGvg4hN2rTFzVuL0DTUTPFgHvFJpOhpZEW2lNkh18liQduBWLuvZyo9Ea/FayKpRItXupS9jU0z6w+YJMNwUyLg1KbvXVFKjQRu4PUoy9KSoDaiTYl2etbwmkry2kOTvrmAeC2/cbKewNqdmV3TEZjCUENCsJ0aVx1/kagEW/QGdmJLEklQlDnzEdNttfrJFUwfe8iv/7+vpDiKVlBdTU4wu6dZqjp+VgvL00y3cwNzyxTExeXINllq79eXcfhVm15hPE1JlbCPnknCuqrHV5twVXxTs+r5WqmhKIan8uI4o3GHyTI4CHnFpMrHekrFJXZb4sZMQqeEG6x8tQljlYbJfy69xlUojoQLlB2H7atFMyaVyLu6G6VVo7KnnpUZNpNOUmFiJfzwJ6mVZxyUSwIRk6NbtBIpoTUNXgCiZ0pDx8bg03yOHAtO3EDre+6GOdQnLheb53ZIIuNLPjLKOr6/N9B0rLDmjAaruPYJ1ym1T80eULJGGL7NIKZcxlZHwi77IDYCC7Q7DIYNesBaPwy0RqeDt2z8HOs7XLvVe2zMpGIUPwvGViNMT1gpKKMx+IiJK5hkSYlEJE0UZYDinwMjLDcUkGpx9aEyiQbRzB40NatYUL41V6k7XSf9slc/jTLoeKpIH7v1yjMDEtSAz/vT6ixvpB/wo8qRGmN+XDbjyslNylkNvn19ZdhEd1WhzvZvA6OOxIa1uLySKs8zSsZaBr/06Pz6kFdx7P4utzHldT3NamaX1jC6hWeNxOZFn0RW8Br1G6YSJdKc9d0MRc92j7X70lKSkCsKw9FVccSj7bPGqqeBtspUh5B/cGn62cTn41W8mDcc7C2qrmtHnWL7Y/XEgfUHNkRvrG6vptw6AfvWBVvsWHHNwW63Wicytn/jdH5zfX/vHOg/q5D/rdBVSpJbm4tBJ6WjOF0zHUefPfBcs2fp6UN8fwzWFOZ+K/BGcmFTISPS1qc89Oh3kAzKMo7JjET8nUQO6swCO7Dy9WWQNNMaaNWo3C8e+RWmdUsJ+Gu0itCUwPYlq6rodlUPayesSZdNtE/tYEzm6hidSxmHeg/6F+5+FWlGRzFXgO68XEkiicclaeXqz23Wp6OG+KQ2ODDL+Z/LWOZcWxXshyTGRp2CtpHAyBXbPvKVKR1pe/WTf1m391qAMyEyfo4cwh4ZwiD+3UUWHBH56uzXf5Y2/3rFOeJSHmEMYzNi6zYwG3FIo9yWhWGO7kazZhadBhibtzhqYTZAgfnj2C02dwDLoWssoLgfefA2Ki4a65UDN5E050D3gLv8IsMmkd009rLqDYiUHHKVg99ZuPTsnuahLV8SdZuXUbQB8izWeozmQaxVb3LEWpt/eu3jgw/8N9oB7aF6Jx4OaKpmI/Ytntt5In3Lkp/4++9Yr/vpPHb470WN8QxfFx5m1wSGiJC8/wzyriE5J95Ug7BzMkIHHkuwEbydf2SGDNmiCEsJzoROwhdRND+GH8A4nJWaJX6Q+gCULHFznftC92Ku68PPS93LuctG5EXyUEuEW3iotUheZ09jDXeLCLXUJ5zFDloe14uvY9The0ESV8NR/qvk90TxFVy2kqvR9+KtTKv2bAVxVK2Hiv3/8uC7ij68lWXF78LVsepwfYq7f+3ATDYCExNDLiTnqbbCMxCwNGQTjxMgc7rriQkEnUPPqV86y7vaj7U0VXBnLIn1QSvdwIgl99P7+OizrJfNqQf7LnAcX8XBVPNlE2TixGslJpSedm65yrM9zaHVIaOl6W1oCYsOU79g5pixjX//Czo0PMhKfXpgwNlMQLeLmG+VF4WGFsmtHwmCOX+r/KPmUB9VksPL5K5cyc3k5Yw6OPgNZ3JzeKNMxaV0a7iwTkORV8gpmnqh3AresNwtFKosWBsoi3SvPZWpqRQLxUMtaCFv3zudaK4jlBL/sS1vguPnE8yLv6cjZBGW4v71l0XoxDaY8ctwprsCO8E32F67vYtgUN89rSYfE+huSNUX64PnhVY1LwyYK52VlWROnpsnb4hsXdeptkW1ymaxqJFULfo4O2JKOB09SxEaVuiXEqfy5ajHWhVmb50wGnwqS0cMIALIiH2OcYguRwtqEuUJt2Vx7Ef8h+inro5xjh1wzCrEY6Sn0zsK8ecIV1o/RgCZbl0x+mY7pDKh/Q5pCDSiD7ES+RihGkA9deovWscnHdvgXYh/Ef0IAMXclNh5CHibHWKQzOi6Tlqn0YDCSJ0xzipnpCFZYi0atnR3Uvt6mnOAwq4RhIVkh9zmbsvI3LlTS8W7244d6yDbysvbKa0G5KPSLntVQYiqUYeFrluPHp58yX/xJCtzMoKfOHn4SG0PDhvn8Gl68dBh67un0z++Tz99N/39B7hddO9wnSTdJE25hBXfdqWgP08JptLSbkvepAddo18j3X3d8Qe4kCgx+vsbiwiSiuKyBqNYzPakjcnHaHLfQ0ei16U0GkndLOS9P+oU7cR9jyKSOo32dOm62NyVo+PEjohZO1c3F8TqLjOqhS722Drg/3Oxod3AieHrshaFVvnnZWRotfmqmnTZqq1pshrzrNVmZPjnhVYtyuLruDHtBr1WzeienOzuY6qYb8fhWJXg+YL8cItiVk2EON8UGCBM4zPjvDbmq0gkMwWuboqo+b9m4ZYF+StjfeZsPwiafpgm9HsWmfYS2vHf8O2EXrwNz0vp431bxMKzlocfvj4JCd6+ILRxfPnqTs++tSurarVnZ11VRU3fqBrTD0L0hn9o1EEaE3ETfxPBpKgp/+CfOybyFuEWkkkbRH9McRCv28Z3VtCjAuekamuyd2GqUGOHm6U1Euik84jXN4t03eExlNUOWrMdpQMTetTbRJZUufTiRadNryAL4aNMxvlnJWhzLFImBQSaM1011jja1TjH3dEAMNeCyGYcfYoeITFQOTkvuQFn2AdPRnaddbkT4KcLOc3klqcz+YLBBakovR0DRvAFlsAHY+n+OqDflLkfaLHXP2jqkbgLvyYIsyVRTmPE8C0ranEWfEuZKkjKeMvYIs+nTzIWMCbp+fJH7QJcLS4/uRaPmb9gUMD3uL4/YP91jzWrC2BOg67JrW0b4AgPiQgnjMu1+YQCW/KeFVuKcRbclFyxGLp98b/2llp1z2gtqTaQUbU5fffyo9Sj88ggpQH0m8JqqneqH9RP3r378qVblX2Ija1rb7+l19dx4Fa9rf12Wb++rQ1MNJgFBr6Gp1pOx/g7DeSNp+JrDMKmknSZWSIxS9NLF4PFpeudKDGbJekyIBXdpZ1Dh6LPAZW4sa7shA/cDqC4HJnkrT/uboG0rqy+TGWsXId2yCtoKZbIOFyUPdw1ZEldWW3ppkQSHCCjOQuglOYCRzh6Xf5eqL504Rxj/jo03LGgOUUdEBCEdHDkBlf/8Xg5TK8/wfzmzjvotLPSqHw42iEi2QOnUK7mwWjfr+UOR3LscwwvSu1W4ODwyEU7KVmMivUrN62Y+yvrD93Zv6kg/IJKp4OgNXM+FCVlZSUmgQuSC7iSEisWG3potdA4PTY2HRVVsa6uPRp/VIrRlptrGxkfG7D9848NhCckPV29yhwbx10Qj4OqKmZpydv7Gg2Te0gtJSVMX13MvXuZnp49W3bvtv32m23OXGZ9fb0jrONjP40yuwPMrtJUSaqZCRLTJ08OS1FSNWp4R6lTc44EJdFIMf3xQ48cah0CnQC06Fu6fG+lrTv9oOcBz45V2j6s00t42ZyMFcszuNm8nwj6t7R8OTeDl/0ljhoEkstRTONZp1e7UvUXVoYMxYmXLiODvBNPFu/5leDu0Vs8pnVmU+jE+/HBeTpQuObaFM/6M5p3ZoSIMWr3yMZwMC6FyKcJkshuK4AGiYHLeuoEY0O4GpsbmL63Rgrp5sWH3CfQQbq2+gr9xtyrPiJ2aeJ5wYrzUdadr9BAYNjgiEFJrpf8Sry2oe0FoVKgp7g9R5lrhFH/uM1HOq1aDrepOds/kut7pBhM9ArgmOTe6AlPUhHHqq0biyK/zTv/+bRrybVFNz2v1miDHbAAWZXAdbntKnO97fJ8uzr4FP7uKxkB97xcivVPDNMZ7L1RmBjgzJz9OYsBGIIHKWQV6jBMTHIL4qf9/upyjkQPqCNQwJAzxX2Ojx37EDNn6BxMNqIVXbn9rFsu+ivYDIrMzJ1C5gDBRjDhowADA0zhzvhfzHgby4Y39zX0g0a8DS8UmLwOs2k/7iSVrOgPzViHbi+pCikMzs0NLgz5nSAYuI//9/dc6p5bzFuPJ9PiJsvGuvn16ynmqbLv5oIZu/HxTmICMY64vZNTWZngEkcwaDhER92rQ0LnuA7rHBNLKSTnk/NcX7e+yD1PAeAQPZhHzjfHxGJPsPDReC3aM1N8E318EjN9khK9s0QsIZsgFfRPDKDF4Sfdm2dh7DGzNr/xMI2YsUeYAqJYtcRBfKK2mlBdVq1I1FvHTkd1f50nPYCG+ax7mTMN4xks6y5vpzxhw+8wdOV6ETo357AsghjNjJb8ghZvYhQUVNr8+5z6ehWxmJdrCraag7m5xGIVSEkxm8wDv2yccE1oDZhNmVsVA2uLL3w3MCswUeb0Az9z5G/yEloemTn/cMrSxxMSCYcWCPVrnkMlZmc7/cDlajhZDAzILKlm93T3UYJgRBkNktMpbRQDGBqqVPPJR62QVGb80UOTSkHo4IBcWpIR0+2hN73xL2Ph2f1sPGsxypjbvi6hn6BelHEx09a4Ldm/VIcWBOXlBRWE/ungMHCbqk0T/Y39gr6mLeAOi7hKzmr7+I+rJjPsRxRNb3T49hJMIu21WvUM0mL2aZFKkk1dN7phAghBykS/qf+swF3JJDVpgMLdvmkUng9IWg2ocBG7VIDwZBGoYg5ws1h8eXxu1OFhCneoaIibMgAGUoT9mDMAhL+Y49ZBQz8LzzKjnGLKqsFdSV7wttaYjijWh+WC/AcZPrLALPGqIYGKz1Ml89QqnsFB5mSeSsXnm/Cjs53bKN5DE6AGMjsRDX2O1riegMq65k3CXX9vtcHUiBxBou+YIGEMxy/KyUCJ71uY7I9L/eCAq/YCGV0rTKLDWejhUFLoMNp3ujT4RJLeeU+rl/kdEBtFTAwOfK2phzbiwOeHfhG+Dpf+wQ8waLgh5jm88Qz7hTzG7j2sa+SEb8lGykacV8cT2Hu7GPkL9oVZz+ALMSIFU1bKftI8yPpQ7nrDhXWmvs/mmQv2frn549QZlsuNlWX4Jfh0KMNfOvip3GWEP8I7xT/ld35vIB1uBR+eJ4RtFhY2PszkuD68JE1mEq8+Y2mjnFZiMknSpKPTmiVikyxt1CQ2m8VpMqvXEHMNZLZMSDt77J0p3Sco/Br+kqwmBIxIGB0jNMcKhbEi+ryLTGhkCwkfiGGCbabgwJzcoIqcILVVOMuJLYJyKoO9Rbo4URrA29NFrisJeQtpMlcR8RRyDnIAMRfP8Ck6vFQ5eKa5uT24Mq/h36rFsoV7t0QLWqpI8/Iq4dWnzVZxlcM8fVWhX2/riQvbXS/yT46lygO3xTg4DAb50y/cSS6DX9nf+9JKZxzU94J+NcpcW9tvdrlNtMTGWlzMS9osxEnd2l85Qk7zbf918hd4HR8pkLCaJ+69PKJn41jXWTj2tcmrwlDOumhCJ+EasYNwndBB/GeomXNnz+6ztwaNdiqRkZZ2zRwyistRKDjx//TGc5Hu5ZsIHvtvBD7c7+FE1uze4Nd6KYD8GpX2L0Q4cXP/iVdwkrgopFBYkOHWOiYmqkSGamrnf74VRDDXE8JdORAMSto8ZxX2IHbrnIRNsrAIAEM4WnlcpZLL28kra66SF3xofeJmADsIg/RojQFrJHmUZScoOyn7uil5UtRxpyeuT5yOo6Zdp2M21TQY6snqCXQfZbl8KTXV6noVWUpLLa61d+/6aKdAg9dznpm3i2fixfGKeb2oSZdJVG8/7cDlxXHJD+4SK1FwuM9Rk8TJoMWoKdT/c0AXTr25jJpEXSAEpAecWArpV1RrSYSNrcc15NsYyRq+irfxxnZuzgVUPLZL47g77+KruUX7RGpVZaXKxqCy0hasVNr+SFWVQJQF5dplEtZtU35uSsHn2KHuwG7NRSNvEm+vybSPwc+YiETkJPE2UkifTCbE4dPtY2fpdIjGM8SvTfHI3VCMU+MX5pkmE/o4y/FaUlNz5K48Z9ej/8VjzXgrQE66TDVaoQxcDqHhkA/NhteRxC8A5buFMIl7wy7+qD2aoksujc31zxTpv/7+vZh4m2HxxsU7awLyJVmx2akVKbH365prNWQaFcu8NaRZMdkRyU0N5brCXxWisFV8Eimfv5Tj3a4euvAD3/cjQq/LFWeIkl//8V01eGGG+n5E6qVaflQ0+3NUjEATqInQNzUWrM5fgTQZtcWwO/hag6aYeJZ4CmVK1tbAbjOKDdHdYFSkIieRr1CDXG/UK+TtjaWFg9TO1rwKUkvqHkrOrAx8kjPiLgn1mHgL5fyisQCXhQM16qR0YvpWnP5+aFK2Nnvr9PfvJ2XNy9o6AJJzQP4aypVtEb86LTH0zu5J/fT+T+jPhyQHl02mK6BNKP70KrRIw3n1SSxoQ7778+eoYm4Zr8YwWJ75AUmRb/s08wq80tSSMNT8dDO4fs3grWCeBzuTNvHmwhe9/kvLy9oTv9ElmO7uRJf2Pn1d/XmlJIZnv4imYETQFR7lrca2PVuRPXmt0rZjZUR7l5KrHH55JDuG5b1YrvBSYvUeP2+1kW11dfVLcYciQIGNDLnX10MUr11tgG7XeLDjHei31EXIcGFApsDvC6EcMkiVO8PPKQEtv8z7Fxg+mvpctz0jhLP5FmHb1FnqvuLQkPhlhDp+HUHXc64ppDCCrFDSKSlVmnCfHqpuj4sz09mFuLaCWXHVmaDYwNi5McJx4cAfIRE/P7txaL3EfrDOKbDkyEQxYcqxM0/uuI/kFSG6y0sC0XuXdNjb48cgHBsH4cdhdjt58Fp7YX2MOlSJXsB3qB9sJx7h7Y677IDVKyA9AGwG7kVdNydkm7elSQYonX0TN1W/19qsAr91cU4BuxoZ16ZXMA77eMfFefsIaoZ3nO8wcUi/ZdDw1Fy+SqiGkgkEN/KVap6Gt5s5EI+vDKrU3Nz/r0h5ponS5jpo8WZCAFYdZzAgBgj7EXq+Piyb5HgCd8IxSY/YTxgQFBwNcQYTwQTAwVEwnjM+CrZHMJozNgbmcdSchyrdO93D6dh3sepHuQfmMNDdJpz8SJW+WWNU69TrRqeD1b0wnZPKbmtjp3LSrxAEc8Op7HTOFcZTwSFuuxtImEV6R3LxJN5wKXe5QXzXwGVQMU8riDM8vN+LcLQjUR3z6bWOXBiJZm+6H4w4iQyUVRF+BCELRIzgBB8D6OHDg49qkCcd/3DDuoG4Wi35RTJQ6eNVocMdZVaZnf8PvD4YINSoq4KNhJPchot5D5Dv/0doS0heU7EVP8cg3cH+VU6bX6AlVniAOUeAIRt5xCGTFaxQJx/cLGHINNZFlPU5sbEJ8Y2nhIWCbNpecn3dz/0nXk089Da8Ruspnef/tC2r6stM3w1XgoHfczayMZq1hBwoEkerI61i6ixhBSEhBWGWaYJgzt8SNq1lZKg+r775Uu6iHTMh4SJ1fTQ1rUtuQuv7ZbTLCyB3UW4Vd/71YEeVWwrL24v86973JUvMrlRfqqt5Sdq+96PUbntPJ8YGEg8c+ZxcfpAYCI9lr758gHvgrwR2LAirakRmQgne8SJRrI8uTXx9V75lZn/Br/L6b+DcKPjteuWJ4e0zKn/XdXG6b7xPbIJQ753j/zEJpfRmHNu8TxWpjPzmxFB6J6FgTch8aPfaqIiTV587EO7nZty4v/EqrgowsA7N0PrXH7dDesV2FVSlVM1VhpN//rd/88kKe7e9B3v+mSCHZxRXKtUQArUGsmuz4xopjY5rgegl76JeqAoqRM6b31R2Ii+e4xPlo0pSe7sfdzbBi3bzPg0rs/6n0opy7zC33DSRJVW2AFnrocQ/e8+j1lYkbHwV7aVjOOHwxo5lCQKy8LO56SuWZXJ1on7KdAyR7KEuQQGcZwdtD63DE/0y9/W0/69ryQI8zCFFkTFzVqbqpNIN+s8j9gbjBjMypvujPaOfjy1y1n4oxMKwmtGpIjHTUJp7kxUrxo3DUDjhccag3IRhzWhVnVgu2P/XqyYc4P1wTIfUPhhxEwlD3ECwlqvsv8IIQLi20wu0s3fGHdjt5GOpOlG0QBAt0h0gCAbuZaQqqv3T0/2rFanvRWZh/OLY2MUdBLV3xD/ZwL+OwXkAap6HPrsa8YP4HeGMIXoa0P39Yt1aR2AOFY2bhOSYZxKDOCQqpzxIGVbqrU3YXoENyZEFpgZQShrTTVQlu3ZIhQvJ9QvU5wcmW09IUM42Jfvz2pKzTyM7G0RiaF+iK4eweR55VOABhr/tG3Vra0trP91MH2n2cCSS+1vB0O9loY+0aIGTDGtQcznXT++TmOCj9ztNus/vx1efq1iUvu3ACZv3+TJWcK7eL4Ex++n3nRMEbUiuX+AECwtDe94VhwkmGWZ5r7WFfL109dool78tp29BOPz3ykH0DPcKYlBwfqHqER6yh3Bwewi5wz0hij6jmxPl7Q5B9jA7GAxAEF5BkKhyOwhsNoYkrodbPQWLSyWUNMbZsYosrJQW4KmhqfZiWYuj1Vy//XIVX+EiysmLoqg94rMTuXEcb4VPVKJaVX2MWrow7FwQ9IdviLg49gSxn9fHtXoM3Mh06eR1cUe4fSCg9y3/LQVtsX+qqFWRSZOkji1YNTYGK97S4zpFcm13fWZfC2amn9vpzjINYjWeXp1oMYaOEaPtzUVjjx4CJsbnSqiAfotu6jJ5do+DXYdY17EFBww1K1yCVVtFlmpVQmiU87uW/PKjo6rRODO40DhnxVlNMKdHX3nA8OM6pHp2/Hlf7Wrzf5JxEpzEnlx14DFefGvNwZP0k2CVllpHPSoiQ+HxhVOnVasBmFfOCmbNq5CGqObW8oKlc8tlISYstY5m00B7k4HxY/FxDS8VnM5GXSJHES+le5KWY16Hmqk+CQrOy7iGwLhwucUiX2iVh1nCBX+8PFD66NhlDYkdYQmTW6b3rfSujcrzM/glJfkY/M8TFPNNunvO+SXjtzfJ1+CXH1zCONO5CwK4mx9L7U4Bul1CVsWvz6F5WTdDtsO6eDPnVt+Bby1pS7UJDUm8yTWw9TEBV8b2RdQMDomyW1z9ljsn3CXfX+lywV8EFaIg49PZO0JSjlyf6tJTKUxjUQdeIUlKalihlTdEBSgjLBUha6tCoqxRwhdRVcvKEhe6wABALHw5oSlBtO5pnhvnr96edacPrTV0AlcPWedFIJ11ddMOoGt1vSW4JcTjPxx5qNmwxeP1fg+0x/5XHo8z0jo9Oiv5mPpAMz70iHKWOKMloIepVKQqoT4+VkhTvyYgiJgwwFWxK9jfm7cietCA/B694sfDB4tb6sigvH352uq6z+coXreAiQ852BHviYfLi7YvbXeDYVC1LeWz3PZzjOxF9qpZnVYTiHepzF5aAvXFBfrbe9yAX76W4eSJZg9jr5JRT5CaYQ3yKQoEHaqaF8yK4vhzo1jB8zCAjMVcxHiRcawg9PHvPwicgmcvjezjJLMgoxNwxzkBI9oL3YdqihMuaUphJRuXe1L7pyGwzgmvyAvw1s/yknjNkiFobRSNx6iHlvLgtPYaNA5e69DmUAsfdahr+LY6lPkQKPuNko0LKAHUMA+xCW51WGBekFkneYd8fKBGskb6+FCRH/I0vAEEDQYYkgzLt6Rs+Wd5crhhy6c3/4WlVvz1iiHR0NvTvbw7OfHT1Cej/GXctukSPk1/Sqrr+m/K8DYD+/ybZ5rh9aAtusplwwoO7e16uiOg1NoVAjeInEZ+T/4XW3+18UY0OQzrhiBsgGCQGqTGpPuHOhNnH6vJh1eBrH5VIC8BjSCVuxL2KO10VJ+Z0N5dUfY7RyllqyAw455v9Nf7+ur9jRcIgoG7/cJ7k5/Rz8Hgn7/JqBWoeTy1QLuHoJia59E90ocx3GeeyTTPJ/ack3pd5Wb0I6dDga+M0+32slp2SRk7J3591lDwufTfJ5i992R0CmVvsCJN+860kXNNTyj2aixk3LgaYiN20T0bc10LMXEnQ7/bjJixo5foT/YFsoR8XckJKaAONwdCBwosO3vRPreJa8rpSWZjGonKxPP1vZJsrMNGqq4zbYLQQvveYfvhHJYwYCAiG6FfbIAouzwrBdsm73aXSzbJoYIJoDaCZPsgADi/7IyFQCgapsm/iJsgdN7OigxtKTDfhteN8UeoPS/Mx9ZeGjn1C08yyDS5SHrQy+mBcNBV0hOXEaCDNK8/wMy9GG2kvJQgm/geCEPDuSMR6wZVbDWJoGykoY7rNE6CpjLNtKUT0Ubu8MTWi+1P0zdb7Csdjnc43Dqld5H5YuTi3u6/Wfc0khrObZenk/VqnIu3ucmHUl2gcU3r5E2C3Lq0tP/ApVBKNx+Xa+/duvJL5f+WETzP+iP9XwriRqwb/EUvAIrFW49FHsVB/hFDw9fDexjHDPgod0Qfzcj9bz1YcISmY7X+zkz+aD40bJ7i+AbhJL/1ylkpbNqfk1IsOlIHbQmPGfccGeDHQOrD/wEV/HjCUnUqeFBJf62/IlJnTX0sJsJLOCrSFjbFerls4mg4KTMbzhXbCJcac7D6MnW+kITCcjDoWyMcVPsRjir9DJtqn1w28Xc4aeThXLX/4VKPCbPBZQbTFKHyCBFl2cwlCXaKXQxv7y/UyYLPmvMPfSDMKmtf//T8n+jQV+ESBn2NUZXKc1f+eF4/tJbL3nOLIl5MjP3To5+F830R3N189QgRZdnM/n5JsFPHH+kX7xfqZMFbcv+yPhDc/rK+fLbgforO6nB7xBwGfY1CVSWiF9jFkR/fKlqV5bLny7Uo4sWU0PunR3F8qgoqXt4f6RoIEbk7wlOVD4Qoalq2w+lye7w+vx9sdkobm3Xo73znq7V6o9lqd7q9/mA4Gk+ms/liuVpvtrv94Xg6X663++P5EghFYolUJlcoVWqNVqc3GE1mi9Vm90/Oy+Zye7wjFIQpgVswf4GewGU2zeQySYuhzNKY6mxEt1Ae2GkJ2Ry10kMw4HRPbiJoCTaZ0eyvVe9HJFepoiFwBjiPCa2+0egRnKxNm5mC4SRg4DZ5i43voDp4rBT7EbysGp4wjKy9S/1KZSLR7AEj9dgmGEy/BV8sz/p2yIShhc6OIykSEIldZWHGLCbSWEhAQoy2XRJjO8xFTnUumQy2iaTZEx2s60u2ihgiKMrCHmq88K6DvuoJYXZtacBX3t4zyCqcuhY/DNRXwvOYpNxRQoQGAlbX/SrfihQid+irgH4gkX7eVpOKsWPZzJxMov8J3AmE4OQiA2j44EmRBU6HWH3xBD7NKyZgCU6De+5QkgBLrQyGfESqL3EtgRSYxPVqfgau2xIjOGHQ6esmiiXmla+zlhS63WKoYc4lrlMuED//qQiGJgIuWgLNqT7i18yO21UJ7ueT+1T1Zl6wjeDRvUGri8UISgfKVBpLOSJpozx0M1hIYJkibB8CziRYb46zm618JywHfBbkhcVVMBCMm2gCix7zHiy94DY50oy8lW08SoOkKadAMl9ykirdAB9ieU8JzU6vDfCYGC8VqeP1dikHk3CJtA4IXpiKXR7DjszpnrFYeN5dakwSCnqp/cgy7laOCp3FxdBj4BQSj1leVxZraeuxQxfOcrr3T7QWEuEF5V0i7RSDGEmp3qQC/S6vgyImouVCW0vBUGblBgAAAA==") format("woff2"),url('+n(i(128))+') format("woff"),url('+n(i(129))+') format("truetype"),url('+n(i(130))+'#iconfont) format("svg")}.iconfont{font-family:bqCmsIconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.iconxuanze:before{content:"\\E7BC"}.iconkapian:before{content:"\\E7B5"}.iconluyin:before{content:"\\E7B6"}.icondizhi:before{content:"\\E7B7"}.iconliwu1:before{content:"\\E7B8"}.iconwenzi:before{content:"\\E7B9"}.iconsongda:before{content:"\\E7BA"}.iconyuyin:before{content:"\\E7BB"}.iconshangpinxiajia:before{content:"\\E729"}.iconxuanzhong1:before{content:"\\E728"}.iconweixuanzhong1:before{content:"\\E727"}.iconbianhao:before{content:"\\E725"}.icontupian:before{content:"\\E7B4"}.icongerenxinxi:before{content:"\\E70C"}.iconyishoucang:before{content:"\\E70B"}.iconweishoucang:before{content:"\\E709"}.iconshare-forward-box-fill:before{content:"\\E706"}.iconup:before{content:"\\E602"}.iconfenxiang:before{content:"\\E708"}.iconliwu:before{content:"\\E707"}.iconjuxingxuankuang:before{content:"\\E705"}.iconv:before{content:"\\E624"}.iconchizi:before{content:"\\E60D"}.iconnotification-line:before{content:"\\E726"}.icontuige:before{content:"\\E724"}.icondingzhi:before{content:"\\E723"}.iconzuojiantou1:before{content:"\\E601"}.icondouyin:before{content:"\\E6EC"}.icontuiguangma:before{content:"\\E696"}.iconicon-test:before{content:"\\E68F"}.icondingdan:before{content:"\\E721"}.iconzuojiantou:before{content:"\\E600"}.iconmap-pin-line:before{content:"\\E716"}.iconlive-line:before{content:"\\E717"}.iconroad-map-line:before{content:"\\E718"}.iconvip-crown-line:before{content:"\\E719"}.icondatabase-2-line:before{content:"\\E71A"}.iconcustomer-service-line:before{content:"\\E71B"}.icongift-2-line:before{content:"\\E71C"}.iconyouhuiquan:before{content:"\\E71D"}.iconaccount-box-line:before{content:"\\E71E"}.iconfile-list-3-line:before{content:"\\E71F"}.iconyiliaodangan_medical-files:before{content:"\\E720"}.iconwenhao:before{content:"\\E686"}.icondaifahuo1:before{content:"\\E6B1"}.iconyifahuo2:before{content:"\\E6B3"}.iconyiwancheng2:before{content:"\\E6AF"}.icondaifukuan1:before{content:"\\E6B0"}.iconjifen:before{content:"\\E616"}.iconzhibozhong2x:before{content:"\\E70A"}.iconshouqi:before{content:"\\E6FF"}.iconshixiao:before{content:"\\E704"}.iconjiagou1:before{content:"\\E703"}.iconyoujiantou-copy:before{content:"\\E7BD"}.iconyoujiantou-copy1:before{content:"\\E722"}.iconyoujiantou:before{content:"\\E702"}.icontarendaifu1:before{content:"\\E701"}.iconzhankai:before{content:"\\E6FE"}.iconfuzhi:before{content:"\\E700"}.iconjiagou:before{content:"\\E6FD"}.iconxiajiantou:before{content:"\\E6FA"}.icondaohang:before{content:"\\E6FB"}.icondianhua:before{content:"\\E6FC"}.iconxuanzhong:before{content:"\\E6F4"}.iconweixuanzhong:before{content:"\\E6F6"}.iconclose_circle:before{content:"\\E6F5"}.iconshaixuan:before{content:"\\E6F7"}.iconweigouxuan:before{content:"\\E6F8"}.iconlike:before{content:"\\E6F9"}.iconweixinzhifu:before{content:"\\E6ED"}.iconlikebeifen:before{content:"\\E6EE"}.iconshengchenghaibao:before{content:"\\E6EF"}.iconzhifuchenggong:before{content:"\\E6F0"}.iconhaowuquan:before{content:"\\E6F1"}.iconweixin1:before{content:"\\E6F2"}.iconzhifushibai:before{content:"\\E6F3"}.iconsearch-on:before{content:"\\E6EB"}.iconweixin:before{content:"\\E673"}.iconshouyexuanzhong:before{content:"\\E6E6"}.icongouwudaixuanzhong:before{content:"\\E6E7"}.iconwodexuanzhong:before{content:"\\E6E8"}.iconfenleixuanzhong:before{content:"\\E6E9"}.iconsousuoxuanzhong:before{content:"\\E6EA"}.iconbianji:before{content:"\\E6DD"}.iconremensousuo:before{content:"\\E6DE"}.iconxiaoxi:before{content:"\\E6DF"}.icondaifukuan:before{content:"\\E6E0"}.iconshanchu:before{content:"\\E6E1"}.iconfanhuidingbu:before{content:"\\E6E2"}.iconerweima:before{content:"\\E6E3"}.icontuijian:before{content:"\\E6E4"}.iconlishisousuo:before{content:"\\E6E5"}',""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,i){e.exports=i.p+"font/iconfont.woff"},function(e,t,i){e.exports=i.p+"font/iconfont.ttf"},function(e,t,i){e.exports=i.p+"iconfont.svg?0ba37ced18273e6a5d1f3d2ee895650b"},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[1===e.pageDataObj.styleType?e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n},[t.fontStyle&&t.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:t.fontStyle&&t.fontStyle.fontWeight?"bolder":"",textAlign:t.fontStyle&&t.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(t.fontStyle&&t.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"cursor-pointer"},[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)])}):e._e(),e._v(" "),2===e.pageDataObj.styleType?[e.isPC?i("div",{staticClass:"warp-two"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n,staticClass:"warp-two-pc"},[t.fontStyle&&t.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:t.fontStyle&&t.fontStyle.fontWeight?"bolder":"",textAlign:t.fontStyle&&t.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(t.fontStyle&&t.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"cursor-pointer"},[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)])}),0):i("div",{staticClass:"warp-two"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n,staticClass:"warp-two-mob"},[t.fontStyle&&t.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:t.fontStyle&&t.fontStyle.fontWeight?"bolder":"",textAlign:t.fontStyle&&t.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(t.fontStyle&&t.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)])}),0)]:e._e(),e._v(" "),3===e.pageDataObj.styleType?[i("div",{staticClass:"warp-three"},[e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.fontWeight?"bolder":"",textAlign:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",[i("div",{staticClass:"swiper"},[i("div",{class:["swiper-containerpic"+e.swiperId,"swiper-container"]},[i("div",{staticClass:"swiper-wrapper"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n,staticClass:"swiper-slide"},[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)}),0),e._v(" "),"pc"===e.curSystem&&e.pageDataObj.list.length>4?i("div",{staticClass:"swiper-button-prev swiper-button-prevp"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"===e.curSystem&&e.pageDataObj.list.length>4?i("div",{staticClass:"swiper-button-next swiper-button-nextp"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"!==e.curSystem?i("div",{staticClass:"swiper-scrollbar"}):e._e()])])])])]:e._e(),e._v(" "),e.pageDataObj.styleType?e._e():[i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(133)}var r=i(40),a=i(139),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-57f19105",null);t.a=l.exports},function(e,t,i){var n=i(134);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("6df43a7c",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".swiper[data-v-57f19105]{width:100%;position:relative;display:flex;align-items:center;justify-content:center}.swiper[data-v-57f19105] .swiper-pagination-bullets .swiper-pagination-bullet{width:50px;height:2px;border-radius:0;background:#b5b5b5;opacity:.48;margin:0 4px;font-size:0}.swiper[data-v-57f19105] .swiper-pagination-bullets .swiper-pagination-bullet:first-child,.swiper[data-v-57f19105] .swiper-pagination-bullets .swiper-pagination-bullet:last-child{display:none}.swiper[data-v-57f19105] .swiper-pagination-bullets .swiper-pagination-bullet-active{background:#fff;opacity:1}.swiper .swiper-bg[data-v-57f19105]{position:absolute;width:100%;top:0;left:0;z-index:-1}.swiper .swiper-bg-img[data-v-57f19105]{width:100%;height:100%;z-index:-1}.swiper-container[data-v-57f19105],.swiper-main[data-v-57f19105]{width:100%;height:100%;position:relative}.swiper-container .swiper-slide[data-v-57f19105]{color:#000;font-size:16px;text-align:center;display:flex;align-items:center}.swiper-slide-two[data-v-57f19105]{width:50%}.swiper-opacity[data-v-57f19105]{opacity:.5;transition:all .3s}.swiper-pagination[data-v-57f19105]{text-align:center;width:100%;height:3px;position:absolute;bottom:33px}.position-left[data-v-57f19105]{left:10px}.position-right[data-v-57f19105]{right:10px}.swiper-navigation[data-v-57f19105]{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;width:35px;height:35px;border-radius:100%;background-size:10px;color:#fff;text-align:center;line-height:35px;background:rgba(0,0,0,.1);z-index:99;cursor:pointer}.swiper-navigation[data-v-57f19105]:hover{background:rgba(0,0,0,.3)}.swiper-slide[data-v-57f19105]{background-repeat:no-repeat;background-size:cover;background-position:50%;background-color:#eee;transform:translateZ(0);overflow:hidden}.swiper-pagination-bullets-mob[data-v-57f19105]{display:flex;bottom:0}[data-v-57f19105] .swiper-pagination-bullets-mob .swiper-pagination-bullet-active{background:#44403f!important}[data-v-57f19105] .swiper-pagination-bullet-mob{margin:0!important}.bqCmsIconfont[data-v-57f19105]{font-family:bqCmsIconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""])},function(e,t,i){"use strict";function n(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 r(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)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(){var e=this,t=void 0,i=void 0,n=e.$el;t=void 0!==e.params.width?e.params.width:n[0].clientWidth,i=void 0!==e.params.height?e.params.height:n[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),i=i-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),ae.extend(e,{width:t,height:i,size:e.isHorizontal()?t:i}))}function o(){var e=this,t=e.params,i=e.$wrapperEl,n=e.size,r=e.rtlTranslate,a=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=i.children("."+e.params.slideClass),u=s?e.virtual.slides.length:l.length,d=[],c=[],p=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var v=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,y=-h,b=0,_=0;if(void 0!==n){"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*n),e.virtualSize=-g,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var w=void 0;t.slidesPerColumn>1&&(w=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(w=Math.max(w,t.slidesPerView*t.slidesPerColumn)));for(var T=void 0,S=t.slidesPerColumn,k=w/S,x=Math.floor(u/t.slidesPerColumn),E=0;E<u;E+=1){T=0;var C=l.eq(E);if(t.slidesPerColumn>1){var j=void 0,O=void 0,P=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)O=Math.floor(E/S),P=E-O*S,(O>x||O===x&&P===S-1)&&(P+=1)>=S&&(P=0,O+=1);else{var I=Math.floor(E/t.slidesPerGroup);P=Math.floor(E/t.slidesPerView)-I*t.slidesPerColumn,O=E-P*t.slidesPerView-I*t.slidesPerView}j=O+P*w/S,C.css({"-webkit-box-ordinal-group":j,"-moz-box-ordinal-group":j,"-ms-flex-order":j,"-webkit-order":j,order:j})}else P=Math.floor(E/k),O=E-P*k;C.css("margin-"+(e.isHorizontal()?"top":"left"),0!==P&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",O).attr("data-swiper-row",P)}if("none"!==C.css("display")){if("auto"===t.slidesPerView){var A=te.b.getComputedStyle(C[0],null),D=C[0].style.transform,L=C[0].style.webkitTransform;if(D&&(C[0].style.transform="none"),L&&(C[0].style.webkitTransform="none"),t.roundLengths)T=e.isHorizontal()?C.outerWidth(!0):C.outerHeight(!0);else if(e.isHorizontal()){var M=parseFloat(A.getPropertyValue("width")),N=parseFloat(A.getPropertyValue("padding-left")),R=parseFloat(A.getPropertyValue("padding-right")),U=parseFloat(A.getPropertyValue("margin-left")),B=parseFloat(A.getPropertyValue("margin-right")),z=A.getPropertyValue("box-sizing");T=z&&"border-box"===z&&!oe.isIE?M+U+B:M+N+R+U+B}else{var F=parseFloat(A.getPropertyValue("height")),q=parseFloat(A.getPropertyValue("padding-top")),V=parseFloat(A.getPropertyValue("padding-bottom")),H=parseFloat(A.getPropertyValue("margin-top")),G=parseFloat(A.getPropertyValue("margin-bottom")),W=A.getPropertyValue("box-sizing");T=W&&"border-box"===W&&!oe.isIE?F+H+G:F+q+V+H+G}D&&(C[0].style.transform=D),L&&(C[0].style.webkitTransform=L),t.roundLengths&&(T=Math.floor(T))}else T=(n-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(T=Math.floor(T)),l[E]&&(e.isHorizontal()?l[E].style.width=T+"px":l[E].style.height=T+"px");l[E]&&(l[E].swiperSlideSize=T),p.push(T),t.centeredSlides?(y=y+T/2+b/2+g,0===b&&0!==E&&(y=y-n/2-g),0===E&&(y=y-n/2-g),Math.abs(y)<.001&&(y=0),t.roundLengths&&(y=Math.floor(y)),_%t.slidesPerGroup==0&&d.push(y),c.push(y)):(t.roundLengths&&(y=Math.floor(y)),_%t.slidesPerGroup==0&&d.push(y),c.push(y),y=y+T+g),e.virtualSize+=T+g,b=T,_+=1}}e.virtualSize=Math.max(e.virtualSize,n)+f;var X=void 0;if(r&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),se.flexbox&&!t.setWrapperSize||(e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(T+t.spaceBetween)*w,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){X=[];for(var Y=0;Y<d.length;Y+=1){var $=d[Y];t.roundLengths&&($=Math.floor($)),d[Y]<e.virtualSize+d[0]&&X.push($)}d=X}if(!t.centeredSlides){X=[];for(var K=0;K<d.length;K+=1){var J=d[K];t.roundLengths&&(J=Math.floor(J)),d[K]<=e.virtualSize-n&&X.push(J)}d=X,Math.floor(e.virtualSize-n)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-n)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?r?l.css({marginLeft:g+"px"}):l.css({marginRight:g+"px"}):l.css({marginBottom:g+"px"})),t.centerInsufficientSlides){var Q=0;if(p.forEach(function(e){Q+=e+(t.spaceBetween?t.spaceBetween:0)}),(Q-=t.spaceBetween)<n){var Z=(n-Q)/2;d.forEach(function(e,t){d[t]=e-Z}),c.forEach(function(e,t){c[t]=e+Z})}}ae.extend(e,{slides:l,snapGrid:d,slidesGrid:c,slidesSizesGrid:p}),u!==o&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),c.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function l(e){var t=this,i=[],n=0,r=void 0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){var a=t.activeIndex+r;if(a>t.slides.length)break;i.push(t.slides.eq(a)[0])}else i.push(t.slides.eq(t.activeIndex)[0]);for(r=0;r<i.length;r+=1)if(void 0!==i[r]){var s=i[r].offsetHeight;n=s>n?s:n}n&&t.$wrapperEl.css("height",n+"px")}function u(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,i=t.params,n=t.slides,r=t.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();var a=-e;r&&(a=e),n.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<n.length;s+=1){var o=n[s],l=(a+(i.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility){var u=-(a-o.swiperSlideOffset),d=u+t.slidesSizesGrid[s];(u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s),n.eq(s).addClass(i.slideVisibleClass))}o.progress=r?-l:l}t.visibleSlides=Object(ee.a)(t.visibleSlides)}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,i=t.params,n=t.maxTranslate()-t.minTranslate(),r=t.progress,a=t.isBeginning,s=t.isEnd,o=a,l=s;0===n?(r=0,a=!0,s=!0):(r=(e-t.minTranslate())/n,a=r<=0,s=r>=1),ae.extend(t,{progress:r,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.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 p(){var e=this,t=e.slides,i=e.params,n=e.$wrapperEl,r=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass);var o=void 0;o=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=o.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));var u=o.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===u.length&&(u=t.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function h(e){var t=this,i=t.rtlTranslate?t.translate:-t.translate,n=t.slidesGrid,r=t.snapGrid,a=t.params,s=t.activeIndex,o=t.realIndex,l=t.snapIndex,u=e,d=void 0;if(void 0===u){for(var c=0;c<n.length;c+=1)void 0!==n[c+1]?i>=n[c]&&i<n[c+1]-(n[c+1]-n[c])/2?u=c:i>=n[c]&&i<n[c+1]&&(u=c+1):i>=n[c]&&(u=c);a.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(d=r.indexOf(i)>=0?r.indexOf(i):Math.floor(u/a.slidesPerGroup),d>=r.length&&(d=r.length-1),u===s)return void(d!==l&&(t.snapIndex=d,t.emit("snapIndexChange")));var p=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);ae.extend(t,{snapIndex:d,realIndex:p,previousIndex:s,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==p&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function f(e){var t=this,i=t.params,n=Object(ee.a)(e.target).closest("."+i.slideClass)[0],r=!1;if(n)for(var a=0;a<t.slides.length;a+=1)t.slides[a]===n&&(r=!0);if(!n||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(Object(ee.a)(n).attr("data-swiper-slide-index"),10):t.clickedIndex=Object(ee.a)(n).index(),i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,i=t.params,n=t.rtlTranslate,r=t.translate,a=t.$wrapperEl;if(i.virtualTranslate)return n?-r:r;var s=ae.getTranslate(a[0],e);return n&&(s=-s),s||0}function m(e,t){var i=this,n=i.rtlTranslate,r=i.params,a=i.$wrapperEl,s=i.progress,o=0,l=0;i.isHorizontal()?o=n?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.virtualTranslate||(se.transforms3d?a.transform("translate3d("+o+"px, "+l+"px, 0px)"):a.transform("translate("+o+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l;var u=void 0,d=i.maxTranslate()-i.minTranslate();u=0===d?0:(e-i.minTranslate())/d,u!==s&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function g(){return-this.snapGrid[0]}function y(){return-this.snapGrid[this.snapGrid.length-1]}function b(e,t){var i=this;i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function _(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments[1],i=this,n=i.activeIndex,r=i.params,a=i.previousIndex;r.autoHeight&&i.updateAutoHeight();var s=t;if(s||(s=n>a?"next":n<a?"prev":"reset"),i.emit("transitionStart"),e&&n!==a){if("reset"===s)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===s?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}function w(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments[1],i=this,n=i.activeIndex,r=i.previousIndex;i.animating=!1,i.setTransition(0);var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),i.emit("transitionEnd"),e&&n!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments[3],r=this,a=e;a<0&&(a=0);var s=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,c=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(a/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(d||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var h=-o[p];if(r.updateProgress(h),s.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*h)>=Math.floor(100*l[f])&&(a=f);if(r.initialized&&a!==d){if(!r.allowSlideNext&&h<r.translate&&h<r.minTranslate())return!1;if(!r.allowSlidePrev&&h>r.translate&&h>r.maxTranslate()&&(d||0)!==a)return!1}var v=void 0;return v=a>d?"next":a<d?"prev":"reset",c&&-h===r.translate||!c&&h===r.translate?(r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(h),"reset"!==v&&(r.transitionStart(i,v),r.transitionEnd(i,v)),!1):(0!==t&&se.transition?(r.setTransition(t),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),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(i,v))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.transitionEnd(i,v)),!0)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments[3],r=this,a=e;return r.params.loop&&(a+=r.loopedSlides),r.slideTo(a,t,i,n)}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this,r=n.params,a=n.animating;return r.loop?!a&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)}function x(){function e(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments[2],r=this,a=r.params,s=r.animating,o=r.snapGrid,l=r.slidesGrid,u=r.rtlTranslate;if(a.loop){if(s)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var d=u?r.translate:-r.translate,c=e(d),p=o.map(function(t){return e(t)}),h=(l.map(function(t){return e(t)}),o[p.indexOf(c)],o[p.indexOf(c)-1]),f=void 0;return void 0!==h&&(f=l.indexOf(h))<0&&(f=r.activeIndex-1),r.slideTo(f,t,i,n)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this;return n.slideTo(n.activeIndex,e,t,i)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this,r=n.activeIndex,a=Math.floor(r/n.params.slidesPerGroup);if(a<n.snapGrid.length-1){var s=n.rtlTranslate?n.translate:-n.translate,o=n.snapGrid[a];s-o>(n.snapGrid[a+1]-o)/2&&(r=n.params.slidesPerGroup)}return n.slideTo(r,e,t,i)}function j(){var e=this,t=e.params,i=e.$wrapperEl,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView,r=e.clickedIndex,a=void 0;if(t.loop){if(e.animating)return;a=parseInt(Object(ee.a)(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-n/2||r>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),r=i.children("."+t.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.'+t.slideDuplicateClass+")").eq(0).index(),ae.nextTick(function(){e.slideTo(r)})):e.slideTo(r):r>e.slides.length-n?(e.loopFix(),r=i.children("."+t.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.'+t.slideDuplicateClass+")").eq(0).index(),ae.nextTick(function(){e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}function O(){var e=this,t=e.params,i=e.$wrapperEl;i.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var n=i.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var r=t.slidesPerGroup-n.length%t.slidesPerGroup;if(r!==t.slidesPerGroup){for(var a=0;a<r;a+=1){var s=Object(ee.a)(te.a.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);i.append(s)}n=i.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=n.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>n.length&&(e.loopedSlides=n.length);var o=[],l=[];n.each(function(t,i){var r=Object(ee.a)(i);t<e.loopedSlides&&l.push(i),t<n.length&&t>=n.length-e.loopedSlides&&o.push(i),r.attr("data-swiper-slide-index",t)});for(var u=0;u<l.length;u+=1)i.append(Object(ee.a)(l[u].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var d=o.length-1;d>=0;d-=1)i.prepend(Object(ee.a)(o[d].cloneNode(!0)).addClass(t.slideDuplicateClass))}function P(){var e=this,t=e.params,i=e.activeIndex,n=e.slides,r=e.loopedSlides,a=e.allowSlidePrev,s=e.allowSlideNext,o=e.snapGrid,l=e.rtlTranslate,u=void 0;e.allowSlidePrev=!0,e.allowSlideNext=!0;var d=-o[i],c=d-e.getTranslate();if(i<r){u=n.length-3*r+i,u+=r;e.slideTo(u,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}else if("auto"===t.slidesPerView&&i>=2*r||i>=n.length-r){u=-n.length+i+r,u+=r;var p=e.slideTo(u,0,!1,!0);p&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=a,e.allowSlideNext=s}function I(){var e=this,t=e.$wrapperEl,i=e.params,n=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}function A(e){var t=this;if(!(se.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var i=t.el;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"}}function D(){var e=this;se.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}function L(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"===(void 0===e?"undefined":ne(e))&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&se.observer||t.update()}function M(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var a=r+1;if("object"===(void 0===e?"undefined":ne(e))&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&n.prepend(e[s]);a=r+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&se.observer||t.update(),t.slideTo(a,0,!1)}function N(e,t){var i=this,n=i.$wrapperEl,r=i.params,a=i.activeIndex,s=a;r.loop&&(s-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+r.slideClass));var o=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=o)return void i.appendSlide(t);for(var l=s>e?s+1:s,u=[],d=o-1;d>=e;d-=1){var c=i.slides.eq(d);c.remove(),u.unshift(c)}if("object"===(void 0===t?"undefined":ne(t))&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&n.append(t[p]);l=s>e?s+t.length:s}else n.append(t);for(var h=0;h<u.length;h+=1)n.append(u[h]);r.loop&&i.loopCreate(),r.observer&&se.observer||i.update(),r.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function R(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex,a=r;i.loop&&(a-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var s=a,o=void 0;if("object"===(void 0===e?"undefined":ne(e))&&"length"in e){for(var l=0;l<e.length;l+=1)o=e[l],t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1);s=Math.max(s,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1),s=Math.max(s,0);i.loop&&t.loopCreate(),i.observer&&se.observer||t.update(),i.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)}function U(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function B(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches;if(!t.animating||!n.preventInteractionOnTransition){var a=e;if(a.originalEvent&&(a=a.originalEvent),i.isTouchEvent="touchstart"===a.type,(i.isTouchEvent||!("which"in a)||3!==a.which)&&!(!i.isTouchEvent&&"button"in a&&a.button>0||i.isTouched&&i.isMoved)){if(n.noSwiping&&Object(ee.a)(a.target).closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])return void(t.allowClick=!0);if(!n.swipeHandler||Object(ee.a)(a).closest(n.swipeHandler)[0]){r.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,r.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var s=r.currentX,o=r.currentY,l=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,u=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!l||!(s<=u||s>=te.b.screen.width-u)){if(ae.extend(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=s,r.startY=o,i.touchStartTime=ae.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==a.type){var d=!0;Object(ee.a)(a.target).is(i.formElements)&&(d=!1),te.a.activeElement&&Object(ee.a)(te.a.activeElement).is(i.formElements)&&te.a.activeElement!==a.target&&te.a.activeElement.blur();var c=d&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||c)&&a.preventDefault()}t.emit("touchStart",a)}}}}}function z(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,a=t.rtlTranslate,s=e;if(s.originalEvent&&(s=s.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&t.emit("touchMoveOpposite",s));if(!i.isTouchEvent||"mousemove"!==s.type){var o="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,l="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return r.startX=o,void(r.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(i.isTouched&&(ae.extend(r,{startX:o,startY:l,currentX:o,currentY:l}),i.touchStartTime=ae.now()));if(i.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(t.isVertical()){if(l<r.startY&&t.translate<=t.maxTranslate()||l>r.startY&&t.translate>=t.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(o<r.startX&&t.translate<=t.maxTranslate()||o>r.startX&&t.translate>=t.minTranslate())return;if(i.isTouchEvent&&te.a.activeElement&&s.target===te.a.activeElement&&Object(ee.a)(s.target).is(i.formElements))return i.isMoved=!0,void(t.allowClick=!1);if(i.allowTouchCallbacks&&t.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){r.currentX=o,r.currentY=l;var u=r.currentX-r.startX,d=r.currentY-r.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(d,2))<t.params.threshold)){if(void 0===i.isScrolling){var c=void 0;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:u*u+d*d>=25&&(c=180*Math.atan2(Math.abs(d),Math.abs(u))/Math.PI,i.isScrolling=t.isHorizontal()?c>n.touchAngle:90-c>n.touchAngle)}if(i.isScrolling&&t.emit("touchMoveOpposite",s),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(i.startMoving){t.allowClick=!1,s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation(),i.isMoved||(n.loop&&t.loopFix(),i.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!n.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),i.isMoved=!0;var p=t.isHorizontal()?u:d;r.diff=p,p*=n.touchRatio,a&&(p=-p),t.swipeDirection=p>0?"prev":"next",i.currentTranslate=p+i.startTranslate;var h=!0,f=n.resistanceRatio;if(n.touchReleaseOnEdges&&(f=0),p>0&&i.currentTranslate>t.minTranslate()?(h=!1,n.resistance&&(i.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+i.startTranslate+p,f))):p<0&&i.currentTranslate<t.maxTranslate()&&(h=!1,n.resistance&&(i.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-i.startTranslate-p,f))),h&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.threshold>0){if(!(Math.abs(p)>n.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),n.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[t.isHorizontal()?"currentX":"currentY"],time:ae.now()})),t.updateProgress(i.currentTranslate),t.setTranslate(i.currentTranslate))}}}}}function F(e){var t=this,i=t.touchEventsData,n=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),i.allowTouchCallbacks&&t.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=ae.now(),c=d-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),c<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=ae.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),c<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",u))),i.lastClickTime=ae.now(),ae.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;var p=void 0;if(p=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var h=i.velocities.pop(),f=i.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(m>150||ae.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var g=1e3*n.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var _=!1,w=void 0,T=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio,S=void 0;if(b<t.maxTranslate())n.freeModeMomentumBounce?(b+t.maxTranslate()<-T&&(b=t.maxTranslate()-T),w=t.maxTranslate(),_=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(b>t.minTranslate())n.freeModeMomentumBounce?(b-t.minTranslate()>T&&(b=t.minTranslate()+T),w=t.minTranslate(),_=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(n.freeModeSticky){for(var k=void 0,x=0;x<l.length;x+=1)if(l[x]>-b){k=x;break}b=Math.abs(l[k]-b)<Math.abs(l[k-1]-b)||"next"===t.swipeDirection?l[k]:l[k-1],b=-b}if(S&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&_?(t.updateProgress(w),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(w),s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(b),t.setTransition(g),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(n.freeModeSticky)return void t.slideToClosest();return void((!n.freeModeMomentum||c>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var E=0,C=t.slidesSizesGrid[0],j=0;j<o.length;j+=n.slidesPerGroup)void 0!==o[j+n.slidesPerGroup]?p>=o[j]&&p<o[j+n.slidesPerGroup]&&(E=j,C=o[j+n.slidesPerGroup]-o[j]):p>=o[j]&&(E=j,C=o[o.length-1]-o[o.length-2]);var O=(p-o[E])/C;if(c>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(O>=n.longSwipesRatio?t.slideTo(E+n.slidesPerGroup):t.slideTo(E)),"prev"===t.swipeDirection&&(O>1-n.longSwipesRatio?t.slideTo(E+n.slidesPerGroup):t.slideTo(E))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(E+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(E)}}function q(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=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=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function V(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function H(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl;e.onTouchStart=B.bind(e),e.onTouchMove=z.bind(e),e.onTouchEnd=F.bind(e),e.onClick=V.bind(e);var a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(se.touch||!se.pointerEvents&&!se.prefixedPointerEvents){if(se.touch){var o=!("touchstart"!==i.start||!se.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(i.start,e.onTouchStart,o),a.addEventListener(i.move,e.onTouchMove,se.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!me.ios&&!me.android||t.simulateTouch&&!se.touch&&me.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),te.a.addEventListener("mousemove",e.onTouchMove,s),te.a.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(i.start,e.onTouchStart,!1),te.a.addEventListener(i.move,e.onTouchMove,s),te.a.addEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(me.ios||me.android?"resize orientationchange observerUpdate":"resize observerUpdate",q,!0)}function G(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl,a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(se.touch||!se.pointerEvents&&!se.prefixedPointerEvents){if(se.touch){var o=!("onTouchStart"!==i.start||!se.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(i.start,e.onTouchStart,o),a.removeEventListener(i.move,e.onTouchMove,s),a.removeEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!me.ios&&!me.android||t.simulateTouch&&!se.touch&&me.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),te.a.removeEventListener("mousemove",e.onTouchMove,s),te.a.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(i.start,e.onTouchStart,!1),te.a.removeEventListener(i.move,e.onTouchMove,s),te.a.removeEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(me.ios||me.android?"resize orientationchange observerUpdate":"resize observerUpdate",q)}function W(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides,r=void 0===n?0:n,a=e.params,s=a.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var o=e.getBreakpoint(s);if(o&&e.currentBreakpoint!==o){var l=o in s?s[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});var u=l||e.originalParams,d=u.direction&&u.direction!==a.direction,c=a.loop&&(u.slidesPerView!==a.slidesPerView||d);d&&i&&e.changeDirection(),ae.extend(e.params,u),ae.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,c&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}}function X(e){var t=this;if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var a=n[r];t.params.breakpointsInverse?a<=te.b.innerWidth&&(i=a):a>=te.b.innerWidth&&!i&&(i=a)}return i||"max"}}function Y(){var e=this,t=e.classNames,i=e.params,n=e.rtl,r=e.$el,a=[];a.push("initialized"),a.push(i.direction),i.freeMode&&a.push("free-mode"),se.flexbox||a.push("no-flexbox"),i.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),i.slidesPerColumn>1&&a.push("multirow"),me.android&&a.push("android"),me.ios&&a.push("ios"),(oe.isIE||oe.isEdge)&&(se.pointerEvents||se.prefixedPointerEvents)&&a.push("wp8-"+i.direction),a.forEach(function(e){t.push(i.containerModifierClass+e)}),r.addClass(t.join(" "))}function $(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}function K(e,t,i,n,r,a){function s(){a&&a()}var o=void 0;e.complete&&r?s():t?(o=new te.b.Image,o.onload=s,o.onerror=s,n&&(o.sizes=n),i&&(o.srcset=i),t&&(o.src=t)):s()}function J(){function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}function Q(){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())}function Z(){var e="onwheel"in te.a;if(!e){var t=te.a.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&te.a.implementation&&te.a.implementation.hasFeature&&!0!==te.a.implementation.hasFeature("","")&&(e=te.a.implementation.hasFeature("Events.wheel","3.0")),e}Object.defineProperty(t,"__esModule",{value:!0});var ee=i(136),te=i(138),ie=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),ne="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},re={addClass:ee.c,removeClass:ee.E,hasClass:ee.m,toggleClass:ee.H,attr:ee.e,removeAttr:ee.D,data:ee.i,transform:ee.I,transition:ee.J,on:ee.u,off:ee.s,trigger:ee.L,transitionEnd:ee.K,outerWidth:ee.w,outerHeight:ee.v,offset:ee.t,css:ee.h,each:ee.j,html:ee.n,text:ee.G,is:ee.p,index:ee.o,eq:ee.k,append:ee.d,prepend:ee.z,next:ee.q,nextAll:ee.r,prev:ee.A,prevAll:ee.B,parent:ee.x,parents:ee.y,closest:ee.g,find:ee.l,children:ee.f,remove:ee.C,add:ee.b,styles:ee.F};Object.keys(re).forEach(function(e){ee.a.fn[e]=ee.a.fn[e]||re[e]});var ae={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=void 0,n=void 0,r=void 0,a=te.b.getComputedStyle(e,null);return te.b.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new te.b.WebKitCSSMatrix("none"===n?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(n=te.b.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=te.b.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(e){var t={},i=e||te.b.location.href,n=void 0,r=void 0,a=void 0,s=void 0;if("string"==typeof i&&i.length)for(i=i.indexOf("?")>-1?i.replace(/\S*\?/,""):"",r=i.split("&").filter(function(e){return""!==e}),s=r.length,n=0;n<s;n+=1)a=r[n].replace(/#\S+/g,"").split("="),t[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return t},isObject:function(e){return"object"===(void 0===e?"undefined":ne(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var i=arguments.length<=t?void 0:arguments[t];if(void 0!==i&&null!==i)for(var n=Object.keys(Object(i)),r=0,a=n.length;r<a;r+=1){var s=n[r],o=Object.getOwnPropertyDescriptor(i,s);void 0!==o&&o.enumerable&&(ae.isObject(e[s])&&ae.isObject(i[s])?ae.extend(e[s],i[s]):!ae.isObject(e[s])&&ae.isObject(i[s])?(e[s]={},ae.extend(e[s],i[s])):e[s]=i[s])}}return e}},se=function(){var e=te.a.createElement("div");return{touch:te.b.Modernizr&&!0===te.b.Modernizr.touch||function(){return!!(te.b.navigator.maxTouchPoints>0||"ontouchstart"in te.b||te.b.DocumentTouch&&te.a instanceof te.b.DocumentTouch)}(),pointerEvents:!!(te.b.navigator.pointerEnabled||te.b.PointerEvent||"maxTouchPoints"in te.b.navigator&&te.b.navigator.maxTouchPoints>0),prefixedPointerEvents:!!te.b.navigator.msPointerEnabled,transition:function(){var t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:te.b.Modernizr&&!0===te.b.Modernizr.csstransforms3d||function(){var t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<i.length;n+=1)if(i[n]in t)return!0;return!1}(),observer:function(){return"MutationObserver"in te.b||"WebkitMutationObserver"in te.b}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});te.b.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in te.b}()}}(),oe=function(){return{isIE:!!te.b.navigator.userAgent.match(/Trident/g)||!!te.b.navigator.userAgent.match(/MSIE/g),isEdge:!!te.b.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=te.b.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(te.b.navigator.userAgent)}}(),le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e);var i=this;i.params=t,i.eventsListeners={},i.params&&i.params.on&&Object.keys(i.params.on).forEach(function(e){i.on(e,i.params.on[e])})}return ie(e,[{key:"on",value:function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n}},{key:"once",value:function(e,t,i){function n(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];t.apply(r,a),r.off(e,n),n.f7proxy&&delete n.f7proxy}var r=this;return"function"!=typeof t?r:(n.f7proxy=t,r.on(e,n,i))}},{key:"off",value:function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach(function(n,r){(n===t||n.f7proxy&&n.f7proxy===t)&&i.eventsListeners[e].splice(r,1)})}),i):i}},{key:"emit",value:function(){var e=this;if(!e.eventsListeners)return e;for(var t=void 0,i=void 0,n=void 0,r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),n=e):(t=a[0].events,i=a[0].data,n=a[0].context||e),(Array.isArray(t)?t:t.split(" ")).forEach(function(t){if(e.eventsListeners&&e.eventsListeners[t]){var r=[];e.eventsListeners[t].forEach(function(e){r.push(e)}),r.forEach(function(e){e.apply(n,i)})}}),e}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&ae.extend(e,n.params)})}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})}}],[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var i=e.name||Object.keys(t.prototype.modules).length+"_"+ae.now();if(t.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(function(i){t.prototype[i]=e.proto[i]}),e.static&&Object.keys(e.static).forEach(function(i){t[i]=e.static[i]}),e.install){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.install.apply(t,r)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach(function(e){return t.installModule(e)}),t;for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return t.installModule.apply(t,[e].concat(n))}},{key:"components",set:function(e){var t=this;t.use&&t.use(e)}}]),e}(),ue={updateSize:s,updateSlides:o,updateAutoHeight:l,updateSlidesOffset:u,updateSlidesProgress:d,updateProgress:c,updateSlidesClasses:p,updateActiveIndex:h,updateClickedSlide:f},de={getTranslate:v,setTranslate:m,minTranslate:g,maxTranslate:y},ce={setTransition:b,transitionStart:_,transitionEnd:w},pe={slideTo:T,slideToLoop:S,slideNext:k,slidePrev:x,slideReset:E,slideToClosest:C,slideToClickedSlide:j},he={loopCreate:O,loopFix:P,loopDestroy:I},fe={setGrabCursor:A,unsetGrabCursor:D},ve={appendSlide:L,prependSlide:M,addSlide:N,removeSlide:R,removeAllSlides:U},me=function(){var e=te.b.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:te.b.cordova||te.b.phonegap,phonegap:te.b.cordova||te.b.phonegap},i=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(t.os="windows",t.osVersion=i[2],t.windows=!0),n&&!i&&(t.os="android",t.osVersion=n[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||s||a)&&(t.os="ios",t.ios=!0),s&&!a&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),r&&(t.osVersion=r[2].replace(/_/g,"."),t.ipad=!0),a&&(t.osVersion=a[3]?a[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||r||a)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=te.a.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(a||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=te.b.devicePixelRatio||1,t}(),ge={attachEvents:H,detachEvents:G},ye={setBreakpoint:W,getBreakpoint:X},be={addClasses:Y,removeClasses:$},_e={loadImage:K,preloadImages:J},we={checkOverflow:Q},Te={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},Se={update:ue,translate:de,transition:ce,slide:pe,loop:he,grabCursor:fe,manipulation:ve,events:ge,breakpoints:ye,checkOverflow:we,classes:be,images:_e},ke={},xe=function(e){function t(){var e;a(this,t);for(var i=void 0,r=void 0,s=arguments.length,o=Array(s),l=0;l<s;l++)o[l]=arguments[l];1===o.length&&o[0].constructor&&o[0].constructor===Object?r=o[0]:(i=o[0],r=o[1]),r||(r={}),r=ae.extend({},r),i&&!r.el&&(r.el=i);var u=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));Object.keys(Se).forEach(function(e){Object.keys(Se[e]).forEach(function(i){t.prototype[i]||(t.prototype[i]=Se[e][i])})});var d=u;void 0===d.modules&&(d.modules={}),Object.keys(d.modules).forEach(function(e){var t=d.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!==(void 0===n?"undefined":ne(n))||null===n)return;if(!(i in r&&"enabled"in n))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!==ne(r[i])||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}});var c=ae.extend({},Te);d.useModulesParams(c),d.params=ae.extend({},c,ke,r),d.originalParams=ae.extend({},d.params),d.passedParams=ae.extend({},r),d.$=ee.a;var p=Object(ee.a)(d.params.el);if(!(i=p[0])){var h;return h=void 0,n(u,h)}if(p.length>1){var f,v=[];return p.each(function(e,i){var n=ae.extend({},r,{el:i});v.push(new t(n))}),f=v,n(u,f)}i.swiper=d,p.data("swiper",d);var m=p.children("."+d.params.wrapperClass);return ae.extend(d,{$el:p,el:i,$wrapperEl:m,wrapperEl:m[0],classNames:[],slides:Object(ee.a)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===d.params.direction},isVertical:function(){return"vertical"===d.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===p.css("direction"),rtlTranslate:"horizontal"===d.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===p.css("direction")),wrongRTL:"-webkit-box"===m.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return se.pointerEvents?t=["pointerdown","pointermove","pointerup"]:se.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),d.touchEventsTouch={start:e[0],move:e[1],end:e[2]},d.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},se.touch||!d.params.simulateTouch?d.touchEventsTouch:d.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:ae.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.useModules(),d.params.init&&d.init(),e=d,n(u,e)}return r(t,e),ie(t,[{key:"slidesPerViewDynamic",value:function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,r=e.size,a=e.activeIndex,s=1;if(t.centeredSlides){for(var o=i[a].swiperSlideSize,l=void 0,u=a+1;u<i.length;u+=1)i[u]&&!l&&(o+=i[u].swiperSlideSize,s+=1,o>r&&(l=!0));for(var d=a-1;d>=0;d-=1)i[d]&&!l&&(o+=i[d].swiperSlideSize,s+=1,o>r&&(l=!0))}else for(var c=a+1;c<i.length;c+=1)n[c]-n[a]<r&&(s+=1);return s}},{key:"update",value:function(){function e(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var i=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e?i:(i.$el.removeClass(""+i.params.containerModifierClass+n+" wp8-"+n).addClass(""+i.params.containerModifierClass+e),(oe.isIE||oe.isEdge)&&(se.pointerEvents||se.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+e),i.params.direction=e,i.slides.each(function(t,i){"vertical"===e?i.style.width="":i.style.height=""}),i.emit("changeDirection"),t&&i.update(),i)}},{key:"init",value: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"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params,r=i.$el,a=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(e){i.off(e)}),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),ae.deleteProps(i)),i.destroyed=!0,null)}}],[{key:"extendDefaults",value:function(e){ae.extend(ke,e)}},{key:"extendedDefaults",get:function(){return ke}},{key:"defaults",get:function(){return Te}},{key:"Class",get:function(){return le}},{key:"$",get:function(){return ee.a}}]),t}(le),Ee={name:"device",proto:{device:me},static:{device:me}},Ce={name:"support",proto:{support:se},static:{support:se}},je={name:"browser",proto:{browser:oe},static:{browser:oe}},Oe={name:"resize",create:function(){var e=this;ae.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;te.b.addEventListener("resize",e.resize.resizeHandler),te.b.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;te.b.removeEventListener("resize",e.resize.resizeHandler),te.b.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},Pe={func:te.b.MutationObserver||te.b.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,n=Pe.func,r=new n(function(e){if(1===e.length)return void i.emit("observerUpdate",e[0]);var t=function(){i.emit("observerUpdate",e[0])};te.b.requestAnimationFrame?te.b.requestAnimationFrame(t):te.b.setTimeout(t,0)});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(r)},init:function(){var e=this;if(se.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);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=[]}},Ie={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;ae.extend(e,{observer:{init:Pe.init.bind(e),attach:Pe.attach.bind(e),destroy:Pe.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Ae={update:function(e){function t(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,n=i.params,r=n.slidesPerView,a=n.slidesPerGroup,s=n.centeredSlides,o=i.params.virtual,l=o.addSlidesBefore,u=o.addSlidesAfter,d=i.virtual,c=d.from,p=d.to,h=d.slides,f=d.slidesGrid,v=d.renderSlide,m=d.offset;i.updateActiveIndex();var g=i.activeIndex||0,y=void 0;y=i.rtlTranslate?"right":i.isHorizontal()?"left":"top";var b=void 0,_=void 0;s?(b=Math.floor(r/2)+a+l,_=Math.floor(r/2)+a+u):(b=r+(a-1)+l,_=a+u);var w=Math.max((g||0)-_,0),T=Math.min((g||0)+b,h.length-1),S=(i.slidesGrid[w]||0)-(i.slidesGrid[0]||0);if(ae.extend(i.virtual,{from:w,to:T,offset:S,slidesGrid:i.slidesGrid}),c===w&&p===T&&!e)return i.slidesGrid!==f&&S!==m&&i.slides.css(y,S+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:S,from:w,to:T,slides:function(){for(var e=[],t=w;t<=T;t+=1)e.push(h[t]);return e}()}),void t();var k=[],x=[];if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var E=c;E<=p;E+=1)(E<w||E>T)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+E+'"]').remove();for(var C=0;C<h.length;C+=1)C>=w&&C<=T&&(void 0===p||e?x.push(C):(C>p&&x.push(C),C<c&&k.push(C)));x.forEach(function(e){i.$wrapperEl.append(v(h[e],e))}),k.sort(function(e,t){return t-e}).forEach(function(e){i.$wrapperEl.prepend(v(h[e],e))}),i.$wrapperEl.children(".swiper-slide").css(y,S+"px"),t()},renderSlide:function(e,t){var i=this,n=i.params.virtual;if(n.cache&&i.virtual.cache[t])return i.virtual.cache[t];var r=n.renderSlide?Object(ee.a)(n.renderSlide.call(i,e,t)):Object(ee.a)('<div class="'+i.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(i.virtual.cache[t]=r),r},appendSlide:function(e){var t=this;if("object"===(void 0===e?"undefined":ne(e))&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,i=t.activeIndex,n=i+1,r=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);n=i+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(n,0)},removeSlide:function(e){var t=this;if(void 0!==e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)t.virtual.slides.splice(e[n],1),t.params.virtual.cache&&delete t.virtual.cache[e[n]],e[n]<i&&(i-=1),i=Math.max(i,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<i&&(i-=1),i=Math.max(i,0);t.virtual.update(!0),t.slideTo(i,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},De={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;ae.extend(e,{virtual:{update:Ae.update.bind(e),appendSlide:Ae.appendSlide.bind(e),prependSlide:Ae.prependSlide.bind(e),removeSlide:Ae.removeSlide.bind(e),removeAllSlides:Ae.removeAllSlides.bind(e),renderSlide:Ae.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};ae.extend(e.params,t),ae.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},Le={handle:function(e){var t=this,i=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r||34===r))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||te.a.activeElement&&te.a.activeElement.nodeName&&("input"===te.a.activeElement.nodeName.toLowerCase()||"textarea"===te.a.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var a=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var s=te.b.innerWidth,o=te.b.innerHeight,l=t.$el.offset();i&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<u.length;d+=1){var c=u[d];c[0]>=0&&c[0]<=s&&c[1]>=0&&c[1]<=o&&(a=!0)}if(!a)return}t.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||i)&&(33!==r&&37!==r||!i)||t.slideNext(),(33!==r&&37!==r||i)&&(34!==r&&39!==r||!i)||t.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||t.slideNext(),33!==r&&38!==r||t.slidePrev()),t.emit("keyPress",r)}},enable:function(){var e=this;e.keyboard.enabled||(Object(ee.a)(te.a).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(Object(ee.a)(te.a).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},Me={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;ae.extend(e,{keyboard:{enabled:!1,enable:Le.enable.bind(e),disable:Le.disable.bind(e),handle:Le.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()}}},Ne={lastScrollTime:ae.now(),event:function(){return te.b.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Z()?"wheel":"mousewheel"}(),normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var r=0,a=i.rtlTranslate?-1:1,s=Ne.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===r)return!0;if(n.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var o=i.getTranslate()+r*n.sensitivity,l=i.isBeginning,u=i.isEnd;if(o>=i.minTranslate()&&(o=i.minTranslate()),o<=i.maxTranslate()&&(o=i.maxTranslate()),i.setTransition(0),i.setTranslate(o),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=ae.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),o===i.minTranslate()||o===i.maxTranslate())return!0}else{if(ae.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",t);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",t);i.mousewheel.lastScrollTime=(new te.b.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var e=this;if(!Ne.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Object(ee.a)(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Ne.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!Ne.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Object(ee.a)(e.params.mousewheel.eventsTarged)),t.off(Ne.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},Re={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;ae.extend(e,{mousewheel:{enabled:!1,enable:Ne.enable.bind(e),disable:Ne.disable.bind(e),handle:Ne.handle.bind(e),handleMouseEnter:Ne.handleMouseEnter.bind(e),handleMouseLeave:Ne.handleMouseLeave.bind(e),lastScrollTime:ae.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()}}},Ue={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=i.$nextEl,r=i.$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)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[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=this,t=e.params.navigation;if(t.nextEl||t.prevEl){var i=void 0,n=void 0;t.nextEl&&(i=Object(ee.a)(t.nextEl),e.params.uniqueNavElements&&"string"==typeof t.nextEl&&i.length>1&&1===e.$el.find(t.nextEl).length&&(i=e.$el.find(t.nextEl))),t.prevEl&&(n=Object(ee.a)(t.prevEl),e.params.uniqueNavElements&&"string"==typeof t.prevEl&&n.length>1&&1===e.$el.find(t.prevEl).length&&(n=e.$el.find(t.prevEl))),i&&i.length>0&&i.on("click",e.navigation.onNextClick),n&&n.length>0&&n.on("click",e.navigation.onPrevClick),ae.extend(e.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]})}},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,n=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}},Be={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;ae.extend(e,{navigation:{init:Ue.init.bind(e),update:Ue.update.bind(e),destroy:Ue.destroy.bind(e),onNextClick:Ue.onNextClick.bind(e),onPrevClick:Ue.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t=this,i=t.navigation,n=i.$nextEl,r=i.$prevEl;if(t.params.navigation.hideOnClick&&!Object(ee.a)(e.target).is(r)&&!Object(ee.a)(e.target).is(n)){var a=void 0;n?a=n.hasClass(t.params.navigation.hiddenClass):r&&(a=r.hasClass(t.params.navigation.hiddenClass)),!0===a?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}}},ze={update:function(){var e=this,t=e.rtl,i=e.params.pagination;if(i.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,r=e.pagination.$el,a=void 0,s=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(a=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),a>n-1-2*e.loopedSlides&&(a-=n-2*e.loopedSlides),a>s-1&&(a-=s),a<0&&"bullets"!==e.params.paginationType&&(a=s+a)):a=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var o=e.pagination.bullets,l=void 0,u=void 0,d=void 0;if(i.dynamicBullets&&(e.pagination.bulletSize=o.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=a-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=a-e.pagination.dynamicBulletIndex,u=l+(Math.min(o.length,i.dynamicMainBullets)-1),d=(u+l)/2),o.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),r.length>1)o.each(function(e,t){var n=Object(ee.a)(t),r=n.index();r===a&&n.addClass(i.bulletActiveClass),i.dynamicBullets&&(r>=l&&r<=u&&n.addClass(i.bulletActiveClass+"-main"),r===l&&n.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),r===u&&n.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else{if(o.eq(a).addClass(i.bulletActiveClass),i.dynamicBullets){for(var c=o.eq(l),p=o.eq(u),h=l;h<=u;h+=1)o.eq(h).addClass(i.bulletActiveClass+"-main");c.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),p.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}if(i.dynamicBullets){var f=Math.min(o.length,i.dynamicMainBullets+4),v=(e.pagination.bulletSize*f-e.pagination.bulletSize)/2-d*e.pagination.bulletSize,m=t?"right":"left";o.css(e.isHorizontal()?m:"top",v+"px")}}if("fraction"===i.type&&(r.find("."+i.currentClass).text(i.formatFractionCurrent(a+1)),r.find("."+i.totalClass).text(i.formatFractionTotal(s))),"progressbar"===i.type){var g=void 0;g=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var y=(a+1)/s,b=1,_=1;"horizontal"===g?b=y:_=y,r.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+_+")").transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(r.html(i.renderCustom(e,a+1,s)),e.emit("paginationRender",e,r[0])):e.emit("paginationUpdate",e,r[0]),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](i.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 i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,r="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((i-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+">";n.html(r),e.pagination.bullets=n.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>',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.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 i=Object(ee.a)(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&1===e.$el.find(t.el).length&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,function(t){t.preventDefault();var i=Object(ee.a)(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)}),ae.extend(e.pagination,{$el:i,el:i[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 i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass)}}},Fe={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;ae.extend(e,{pagination:{init:ze.init.bind(e),render:ze.render.bind(e),update:ze.update.bind(e),destroy:ze.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?e.pagination.update():void 0===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(){this.pagination.destroy()},click:function(e){var t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!Object(ee.a)(e.target).hasClass(t.params.pagination.bulletClass)){!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},qe={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,r=t.dragSize,a=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,u=r,d=(a-r)*n;i?(d=-d,d>0?(u=r-d,d=0):-d+r>a&&(u=a+d)):d<0?(u=r+d,d=0):d+r>a&&(u=a-d),e.isHorizontal()?(se.transforms3d?s.transform("translate3d("+d+"px, 0, 0)"):s.transform("translateX("+d+"px)"),s[0].style.width=u+"px"):(se.transforms3d?s.transform("translate3d(0px, "+d+"px, 0)"):s.transform("translateY("+d+"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,i=t.$dragEl,n=t.$el;i[0].style.width="",i[0].style.height="";var r=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,a=e.size/e.virtualSize,s=a*(r/e.size),o=void 0;o="auto"===e.params.scrollbar.dragSize?r*a:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=o+"px":i[0].style.height=o+"px",n[0].style.display=a>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),ae.extend(t,{trackSize:r,divider:a,moveDivider:s,dragSize:o}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.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=this,i=t.scrollbar,n=t.rtlTranslate,r=i.$el,a=i.dragSize,s=i.trackSize,o=i.dragStartPos,l=void 0;l=(i.getPointerPosition(e)-r.offset()[t.isHorizontal()?"left":"top"]-(null!==o?o:a/2))/(s-a),l=Math.max(Math.min(l,1),0),n&&(l=1-l);var u=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*l;t.updateProgress(u),t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=t.$wrapperEl,a=n.$el,s=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),i.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,n=t.$wrapperEl,r=i.$el,a=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),n.transition(0),r.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=n.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=ae.nextTick(function(){r.css("opacity",0),r.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!se.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!se.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};se.touch?(s.addEventListener(i.start,e.scrollbar.onDragStart,o),s.addEventListener(i.move,e.scrollbar.onDragMove,o),s.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.addEventListener(n.start,e.scrollbar.onDragStart,o),te.a.addEventListener(n.move,e.scrollbar.onDragMove,o),te.a.addEventListener(n.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!se.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!se.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};se.touch?(s.removeEventListener(i.start,e.scrollbar.onDragStart,o),s.removeEventListener(i.move,e.scrollbar.onDragMove,o),s.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.removeEventListener(n.start,e.scrollbar.onDragStart,o),te.a.removeEventListener(n.move,e.scrollbar.onDragMove,o),te.a.removeEventListener(n.end,e.scrollbar.onDragEnd,l))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.$el,n=e.params.scrollbar,r=Object(ee.a)(n.el);e.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===i.find(n.el).length&&(r=i.find(n.el));var a=r.find("."+e.params.scrollbar.dragClass);0===a.length&&(a=Object(ee.a)('<div class="'+e.params.scrollbar.dragClass+'"></div>'),r.append(a)),ae.extend(t,{$el:r,el:r[0],$dragEl:a,dragEl:a[0]}),n.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},Ve={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;ae.extend(e,{scrollbar:{init:qe.init.bind(e),destroy:qe.destroy.bind(e),updateSize:qe.updateSize.bind(e),setTranslate:qe.setTranslate.bind(e),setTransition:qe.setTransition.bind(e),enableDraggable:qe.enableDraggable.bind(e),disableDraggable:qe.disableDraggable.bind(e),setDragPosition:qe.setDragPosition.bind(e),getPointerPosition:qe.getPointerPosition.bind(e),onDragStart:qe.onDragStart.bind(e),onDragMove:qe.onDragMove.bind(e),onDragEnd:qe.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(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},He={setTransform:function(e,t){var i=this,n=i.rtl,r=Object(ee.a)(e),a=n?-1:1,s=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),d=r.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):i.isHorizontal()?(o=s,l="0"):(l=s,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*a+"%":o*t*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",void 0!==d&&null!==d){var c=d-(d-1)*(1-Math.abs(t));r[0].style.opacity=c}if(void 0===u||null===u)r.transform("translate3d("+o+", "+l+", 0px)");else{var p=u-(u-1)*(1-Math.abs(t));r.transform("translate3d("+o+", "+l+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,n=e.progress,r=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,i){e.parallax.setTransform(i,n)}),i.each(function(t,i){var a=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(t/2)-n*(r.length-1)),a=Math.min(Math.max(a,-1),1),Object(ee.a)(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,i){e.parallax.setTransform(i,a)})})},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed;this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,i){var n=Object(ee.a)(i),r=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),n.transition(r)})}},Ge={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;ae.extend(e,{parallax:{setTransform:He.setTransform.bind(e),setTranslate:He.setTranslate.bind(e),setTransition:He.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)}}},We={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!se.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=We.getDistanceBetweenTouches(e)}if(!(r.$slideEl&&r.$slideEl.length||(r.$slideEl=Object(ee.a)(e.target).closest(".swiper-slide"),0===r.$slideEl.length&&(r.$slideEl=t.slides.eq(t.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==r.$imageWrapEl.length)))return void(r.$imageEl=void 0);r.$imageEl.transition(0),t.zoom.isScaling=!0},onGestureChange:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!se.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=We.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(se.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!se.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!me.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,n=i.gesture,r=i.image;n.$imageEl&&0!==n.$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,i=t.zoom,n=i.gesture,r=i.image,a=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=ae.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=ae.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*i.scale,o=r.height*i.scale;if(!(s<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(n.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&&!i.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(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,n=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var a=300,s=300,o=r.x*a,l=n.currentX+o,u=r.y*s,d=n.currentY+u;0!==r.x&&(a=Math.abs((l-n.currentX)/r.x)),0!==r.y&&(s=Math.abs((d-n.currentY)/r.y));var c=Math.max(a,s);n.currentX=l,n.currentY=d;var p=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(i.slideWidth/2-p/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),i.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl.transform("translate3d(0,0,0) scale(1)"),i.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,i.$slideEl=void 0,i.$imageEl=void 0,i.$imageWrapEl=void 0)},toggle:function(e){var t=this,i=t.zoom;i.scale&&1!==i.scale?i.out():i.in(e)},in:function(e){var t=this,i=t.zoom,n=t.params.zoom,r=i.gesture,a=i.image;if(r.$slideEl||(r.$slideEl=t.clickedSlide?Object(ee.a)(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length){r.$slideEl.addClass(""+n.zoomedSlideClass);var s=void 0,o=void 0,l=void 0,u=void 0,d=void 0,c=void 0,p=void 0,h=void 0,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0,_=void 0,w=void 0,T=void 0,S=void 0;void 0===a.touchesStart.x&&e?(s="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,o="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(s=a.touchesStart.x,o=a.touchesStart.y),i.scale=r.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,i.currentScale=r.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,e?(T=r.$slideEl[0].offsetWidth,S=r.$slideEl[0].offsetHeight,l=r.$slideEl.offset().left,u=r.$slideEl.offset().top,d=l+T/2-s,c=u+S/2-o,f=r.$imageEl[0].offsetWidth,v=r.$imageEl[0].offsetHeight,m=f*i.scale,g=v*i.scale,y=Math.min(T/2-m/2,0),b=Math.min(S/2-g/2,0),_=-y,w=-b,p=d*i.scale,h=c*i.scale,p<y&&(p=y),p>_&&(p=_),h<b&&(h=b),h>w&&(h=w)):(p=0,h=0),r.$imageWrapEl.transition(300).transform("translate3d("+p+"px, "+h+"px,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+i.scale+")")}},out:function(){var e=this,t=e.zoom,i=e.params.zoom,n=t.gesture;n.$slideEl||(n.$slideEl=e.clickedSlide?Object(ee.a)(e.clickedSlide):e.slides.eq(e.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+i.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(t.scale=1,t.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+i.zoomedSlideClass),n.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!se.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};se.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),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 i=!("touchstart"!==e.touchEvents.start||!se.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};se.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Xe={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(i){t[i]=We[i].bind(e)}),ae.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var n=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,n,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.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()}}},Ye={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled,a=r?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),s=a.find("."+n.elementClass+":not(."+n.loadedClass+"):not(."+n.loadingClass+")");!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||(s=s.add(a[0])),0!==s.length&&s.each(function(e,r){var s=Object(ee.a)(r);s.addClass(n.loadingClass);var o=s.attr("data-background"),l=s.attr("data-src"),u=s.attr("data-srcset"),d=s.attr("data-sizes");i.loadImage(s[0],l||o,u,d,!1,function(){if(void 0!==i&&null!==i&&i&&(!i||i.params)&&!i.destroyed){if(o?(s.css("background-image",'url("'+o+'")'),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),d&&(s.attr("sizes",d),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(n.loadedClass).removeClass(n.loadingClass),a.find("."+n.preloaderClass).remove(),i.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasClass(i.params.slideDuplicateClass)){var r=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(r.index(),!1)}else{var c=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(c.index(),!1)}}i.emit("lazyImageReady",a[0],s[0])}}),i.emit("lazyImageLoad",a[0],s[0])})}},load:function(){function e(e){if(o){if(n.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(a[e])return!0;return!1}function t(e){return o?Object(ee.a)(e).attr("data-swiper-slide-index"):Object(ee.a)(e).index()}var i=this,n=i.$wrapperEl,r=i.params,a=i.slides,s=i.activeIndex,o=i.virtual&&r.virtual.enabled,l=r.lazy,u=r.slidesPerView;if("auto"===u&&(u=0),i.lazy.initialImageLoaded||(i.lazy.initialImageLoaded=!0),i.params.watchSlidesVisibility)n.children("."+r.slideVisibleClass).each(function(e,t){var n=o?Object(ee.a)(t).attr("data-swiper-slide-index"):Object(ee.a)(t).index();i.lazy.loadInSlide(n)});else if(u>1)for(var d=s;d<s+u;d+=1)e(d)&&i.lazy.loadInSlide(d);else i.lazy.loadInSlide(s);if(l.loadPrevNext)if(u>1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){for(var c=l.loadPrevNextAmount,p=u,h=Math.min(s+p+Math.max(c,p),a.length),f=Math.max(s-Math.max(p,c),0),v=s+u;v<h;v+=1)e(v)&&i.lazy.loadInSlide(v);for(var m=f;m<s;m+=1)e(m)&&i.lazy.loadInSlide(m)}else{var g=n.children("."+r.slideNextClass);g.length>0&&i.lazy.loadInSlide(t(g));var y=n.children("."+r.slidePrevClass);y.length>0&&i.lazy.loadInSlide(t(y))}}},$e={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;ae.extend(e,{lazy:{initialImageLoaded:!1,load:Ye.load.bind(e),loadInSlide:Ye.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()}}},Ke={LinearSpline:function(e,t){var i=function(){var e=void 0,t=void 0,i=void 0;return function(n,r){for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var n=void 0,r=void 0;return this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Ke.LinearSpline(t.slidesGrid,e.slidesGrid):new Ke.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(e){var t=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(e),s=-n.controller.spline.interpolate(-t)),s&&"container"!==n.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),s=(t-n.minTranslate())*a+e.minTranslate()),n.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,n),e.updateActiveIndex(),e.updateSlidesClasses()}var n=this,r=n.controller.control,a=void 0,s=void 0;if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof xe&&i(r[o]);else r instanceof xe&&t!==r&&i(r)},setTransition:function(e,t){function i(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&ae.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var n=this,r=n.controller.control,a=void 0;if(Array.isArray(r))for(a=0;a<r.length;a+=1)r[a]!==t&&r[a]instanceof xe&&i(r[a]);else r instanceof xe&&t!==r&&i(r)}},Je={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;ae.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Ke.getInterpolateFunction.bind(e),setTranslate:Ke.setTranslate.bind(e),setTransition:Ke.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 i=this;i.controller.control&&i.controller.setTranslate(e,t)},setTransition:function(e,t){var i=this;i.controller.control&&i.controller.setTransition(e,t)}}},Qe={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,i=t.params.a11y;if(13===e.keyCode){var n=Object(ee.a)(e.target);t.navigation&&t.navigation.$nextEl&&n.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(i.lastSlideMessage):t.a11y.notify(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&n.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(i.firstSlideMessage):t.a11y.notify(i.prevSlideMessage)),t.pagination&&n.is("."+t.params.pagination.bulletClass)&&n[0].click()}},notify:function(e){var t=this,i=t.a11y.liveRegion;0!==i.length&&(i.html(""),i.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&i.length>0&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(i))}},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(i,n){var r=Object(ee.a)(n);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/{{index}}/,r.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t=e.params.a11y,i=void 0,n=void 0;e.navigation&&e.navigation.$nextEl&&(i=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.nextSlideMessage),i.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.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=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t=void 0,i=void 0;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),i&&i.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},Ze={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;ae.extend(e,{a11y:{liveRegion:Object(ee.a)('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Qe).forEach(function(t){e.a11y[t]=Qe[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()}}},et={init:function(){var e=this;if(e.params.history){if(!te.b.history||!te.b.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=et.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||te.b.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||te.b.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=et.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=te.b.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var n=i.slides.eq(t),r=et.slugify(n.attr("data-history"));te.b.location.pathname.includes(e)||(r=e+"/"+r);var a=te.b.history.state;a&&a.value===r||(i.params.history.replaceState?te.b.history.replaceState({value:r},null,r):te.b.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var r=0,a=n.slides.length;r<a;r+=1){var s=n.slides.eq(r),o=et.slugify(s.attr("data-history"));if(o===t&&!s.hasClass(n.params.slideDuplicateClass)){var l=s.index();n.slideTo(l,e,i)}}else n.slideTo(0,e,i)}},tt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;ae.extend(e,{history:{init:et.init.bind(e),setHistory:et.setHistory.bind(e),setHistoryPopState:et.setHistoryPopState.bind(e),scrollToSlide:et.scrollToSlide.bind(e),destroy:et.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)}}},it={onHashCange:function(){var e=this,t=te.a.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&te.b.history&&te.b.history.replaceState)te.b.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");te.a.location.hash=i||""}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=te.a.location.hash.replace("#","");if(t)for(var i=0,n=e.slides.length;i<n;i+=1){var r=e.slides.eq(i),a=r.attr("data-hash")||r.attr("data-history");if(a===t&&!r.hasClass(e.params.slideDuplicateClass)){var s=r.index();e.slideTo(s,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&Object(ee.a)(te.b).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&Object(ee.a)(te.b).off("hashchange",e.hashNavigation.onHashCange)}},nt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;ae.extend(e,{hashNavigation:{initialized:!1,init:it.init.bind(e),destroy:it.destroy.bind(e),setHash:it.setHash.bind(e),onHashCange:it.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()}}},rt={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=ae.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"))},i)},start:function(){var e=this;return void 0===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&&(void 0!==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())))}},at={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;ae.extend(e,{autoplay:{running:!1,paused:!1,run:rt.run.bind(e),start:rt.start.bind(e),stop:rt.stop.bind(e),pause:rt.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 i=this;i.autoplay.running&&(t||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(e):i.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()}}},st={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),r=n[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(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d("+a+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.transitionEnd(function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)n.trigger(e[i])}})}}},ot={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;ae.extend(e,{fadeEffect:{setTranslate:st.setTranslate.bind(e),setTransition:st.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};ae.extend(e.params,t),ae.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)}}},lt={setTranslate:function(){var e=this,t=e.$el,i=e.$wrapperEl,n=e.slides,r=e.width,a=e.height,s=e.rtlTranslate,o=e.size,l=e.params.cubeEffect,u=e.isHorizontal(),d=e.virtual&&e.params.virtual.enabled,c=0,p=void 0;l.shadow&&(u?(p=i.find(".swiper-cube-shadow"),0===p.length&&(p=Object(ee.a)('<div class="swiper-cube-shadow"></div>'),i.append(p)),p.css({height:r+"px"})):(p=t.find(".swiper-cube-shadow"),0===p.length&&(p=Object(ee.a)('<div class="swiper-cube-shadow"></div>'),t.append(p))));for(var h=0;h<n.length;h+=1){var f=n.eq(h),v=h;d&&(v=parseInt(f.attr("data-swiper-slide-index"),10));var m=90*v,g=Math.floor(m/360);s&&(m=-m,g=Math.floor(-m/360));var y=Math.max(Math.min(f[0].progress,1),-1),b=0,_=0,w=0;v%4==0?(b=4*-g*o,w=0):(v-1)%4==0?(b=0,w=4*-g*o):(v-2)%4==0?(b=o+4*g*o,w=o):(v-3)%4==0&&(b=-o,w=3*o+4*o*g),s&&(b=-b),u||(_=b,b=0);var T="rotateX("+(u?0:-m)+"deg) rotateY("+(u?m:0)+"deg) translate3d("+b+"px, "+_+"px, "+w+"px)";if(y<=1&&y>-1&&(c=90*v+90*y,s&&(c=90*-v-90*y)),f.transform(T),l.slideShadows){var S=u?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),k=u?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=Object(ee.a)('<div class="swiper-slide-shadow-'+(u?"left":"top")+'"></div>'),f.append(S)),0===k.length&&(k=Object(ee.a)('<div class="swiper-slide-shadow-'+(u?"right":"bottom")+'"></div>'),f.append(k)),S.length&&(S[0].style.opacity=Math.max(-y,0)),k.length&&(k[0].style.opacity=Math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+o/2+"px","-moz-transform-origin":"50% 50% -"+o/2+"px","-ms-transform-origin":"50% 50% -"+o/2+"px","transform-origin":"50% 50% -"+o/2+"px"}),l.shadow)if(u)p.transform("translate3d(0px, "+(r/2+l.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+l.shadowScale+")");else{var x=Math.abs(c)-90*Math.floor(Math.abs(c)/90),E=1.5-(Math.sin(2*x*Math.PI/360)/2+Math.cos(2*x*Math.PI/360)/2),C=l.shadowScale,j=l.shadowScale/E,O=l.shadowOffset;p.transform("scale3d("+C+", 1, "+j+") translate3d(0px, "+(a/2+O)+"px, "+-a/2/j+"px) rotateX(-90deg)")}var P=oe.isSafari||oe.isUiWebView?-o/2:0;i.transform("translate3d(0px,0,"+P+"px) rotateX("+(e.isHorizontal()?0:c)+"deg) rotateY("+(e.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el;t.slides.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()&&i.find(".swiper-cube-shadow").transition(e)}},ut={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;ae.extend(e,{cubeEffect:{setTranslate:lt.setTranslate.bind(e),setTransition:lt.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};ae.extend(e.params,t),ae.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)}}},dt={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,n=0;n<t.length;n+=1){var r=t.eq(n),a=r[0].progress;e.params.flipEffect.limitRotation&&(a=Math.max(Math.min(r[0].progress,1),-1));var s=r[0].swiperSlideOffset,o=-180*a,l=o,u=0,d=-s,c=0;if(e.isHorizontal()?i&&(l=-l):(c=d,d=0,u=-l,l=0),r[0].style.zIndex=-Math.abs(Math.round(a))+t.length,e.params.flipEffect.slideShadows){var p=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===p.length&&(p=Object(ee.a)('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),r.append(p)),0===h.length&&(h=Object(ee.a)('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),p.length&&(p[0].style.opacity=Math.max(-a,0)),h.length&&(h[0].style.opacity=Math.max(a,0))}r.transform("translate3d("+d+"px, "+c+"px, 0px) rotateX("+u+"deg) rotateY("+l+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=t.activeIndex,r=t.$wrapperEl;if(i.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;i.eq(n).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},ct={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;ae.extend(e,{flipEffect:{setTranslate:dt.setTranslate.bind(e),setTransition:dt.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};ae.extend(e.params,t),ae.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)}}},pt={setTranslate:function(){for(var e=this,t=e.width,i=e.height,n=e.slides,r=e.$wrapperEl,a=e.slidesSizesGrid,s=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,u=o?t/2-l:i/2-l,d=o?s.rotate:-s.rotate,c=s.depth,p=0,h=n.length;p<h;p+=1){var f=n.eq(p),v=a[p],m=f[0].swiperSlideOffset,g=(u-m-v/2)/v*s.modifier,y=o?d*g:0,b=o?0:d*g,_=-c*Math.abs(g),w=o?0:s.stretch*g,T=o?s.stretch*g:0;Math.abs(T)<.001&&(T=0),Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0);var S="translate3d("+T+"px,"+w+"px,"+_+"px) rotateX("+b+"deg) rotateY("+y+"deg)";if(f.transform(S),f[0].style.zIndex=1-Math.abs(Math.round(g)),s.slideShadows){var k=o?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),x=o?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===k.length&&(k=Object(ee.a)('<div class="swiper-slide-shadow-'+(o?"left":"top")+'"></div>'),f.append(k)),0===x.length&&(x=Object(ee.a)('<div class="swiper-slide-shadow-'+(o?"right":"bottom")+'"></div>'),f.append(x)),k.length&&(k[0].style.opacity=g>0?g:0),x.length&&(x[0].style.opacity=-g>0?-g:0)}}if(se.pointerEvents||se.prefixedPointerEvents){r[0].style.perspectiveOrigin=u+"px 50%"}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ht={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;ae.extend(e,{coverflowEffect:{setTranslate:pt.setTranslate.bind(e),setTransition:pt.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)}}},ft={init:function(){var e=this,t=e.params.thumbs,i=e.constructor;t.swiper instanceof i?(e.thumbs.swiper=t.swiper,ae.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),ae.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):ae.isObject(t.swiper)&&(e.thumbs.swiper=new i(ae.extend({},t.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 i=t.clickedIndex,n=t.clickedSlide;if(!(n&&Object(ee.a)(n).hasClass(e.params.thumbs.slideThumbActiveClass)||void 0===i||null===i)){var r=void 0;if(r=t.params.loop?parseInt(Object(ee.a)(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){var a=e.activeIndex;e.slides.eq(a).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,a=e.activeIndex);var s=e.slides.eq(a).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),o=e.slides.eq(a).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r=void 0===s?o:void 0===o?s:o-a<a-s?o:s}e.slideTo(r)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;if(t.realIndex!==i.realIndex){var r=i.activeIndex,a=void 0;if(i.params.loop){i.slides.eq(r).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,r=i.activeIndex);var s=i.slides.eq(r).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(r).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();a=void 0===s?o:void 0===o?s:o-r==r-s?r:o-r<r-s?o:s}else a=t.realIndex;i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>r?a-Math.floor(n/2)+1:a+Math.floor(n/2)-1:a>r&&(a=a-n+1),i.slideTo(a,e?0:void 0))}var l=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),i.slides.removeClass(u),i.params.loop||i.params.virtual)for(var d=0;d<l;d+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+d)+'"]').addClass(u);else for(var c=0;c<l;c+=1)i.slides.eq(t.realIndex+c).addClass(u)}}},vt={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;ae.extend(e,{thumbs:{swiper:null,init:ft.init.bind(e),update:ft.update.bind(e),onThumbClick:ft.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.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,i=t.thumbs.swiper;i&&i.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}},mt=[Ee,Ce,je,Oe,Ie,De,Me,Re,Be,Fe,Ve,Ge,Xe,$e,Je,Ze,tt,nt,at,ot,ut,ct,ht,vt];void 0===xe.use&&(xe.use=xe.Class.use,xe.installModule=xe.Class.installModule),xe.use(mt),t.default=xe},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var i=[],n=0;if(e&&!t&&e instanceof H)return e;if(e)if("string"==typeof e){var r=void 0,a=void 0,s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var o="div";for(0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select"),a=V.a.createElement(o),a.innerHTML=s,n=0;n<a.childNodes.length;n+=1)i.push(a.childNodes[n])}else for(r=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||V.a).querySelectorAll(e.trim()):[V.a.getElementById(e.trim().split("#")[1])],n=0;n<r.length;n+=1)r[n]&&i.push(r[n])}else if(e.nodeType||e===V.b||e===V.a)i.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)i.push(e[n]);return new H(i)}function a(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function s(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this}function o(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this}function l(e){return!!this[0]&&this[0].classList.contains(e)}function u(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this}function d(e,t){if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(var n in e)this[i][n]=e[n],this[i].setAttribute(n,e[n]);return this}if(this[0])return this[0].getAttribute(e)}function c(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function p(e,t){var i=void 0;{if(void 0!==t){for(var n=0;n<this.length;n+=1)i=this[n],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);if(r)return r;return}}}function h(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function f(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this}function v(){function e(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),r(t).is(o))l.apply(t,i);else for(var n=r(t).parents(),a=0;a<n.length;a+=1)r(n[a]).is(o)&&l.apply(n[a],i)}}function t(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=n[0],o=n[1],l=n[2],u=n[3];"function"==typeof n[1]&&(s=n[0],l=n[1],u=n[2],o=void 0),u||(u=!1);for(var d=s.split(" "),c=void 0,p=0;p<this.length;p+=1){var h=this[p];if(o)for(c=0;c<d.length;c+=1){var f=d[c];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:l,proxyListener:e}),h.addEventListener(f,e,u)}else for(c=0;c<d.length;c+=1){var v=d[c];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[v]||(h.dom7Listeners[v]=[]),h.dom7Listeners[v].push({listener:l,proxyListener:t}),h.addEventListener(v,t,u)}}return this}function m(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[0],r=t[1],a=t[2],s=t[3];"function"==typeof t[1]&&(n=t[0],a=t[1],s=t[2],r=void 0),s||(s=!1);for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],d=0;d<this.length;d+=1){var c=this[d],p=void 0;if(!r&&c.dom7Listeners?p=c.dom7Listeners[u]:r&&c.dom7LiveListeners&&(p=c.dom7LiveListeners[u]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];a&&f.listener===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a||(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1))}}return this}function g(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var n=t[0].split(" "),r=t[1],a=0;a<n.length;a+=1)for(var s=n[a],o=0;o<this.length;o+=1){var l=this[o],u=void 0;try{u=new V.b.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0})}catch(e){u=V.a.createEvent("Event"),u.initEvent(s,!0,!0),u.detail=r}l.dom7EventData=t.filter(function(e,t){return t>0}),l.dispatchEvent(u),l.dom7EventData=[],delete l.dom7EventData}return this}function y(e){function t(a){if(a.target===this)for(e.call(this,a),r=0;r<i.length;r+=1)n.off(i[r],t)}var i=["webkitTransitionEnd","transitionend"],n=this,r=void 0;if(e)for(r=0;r<i.length;r+=1)n.on(i[r],t);return this}function b(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 _(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 w(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),i=V.a.body,n=e.clientTop||i.clientTop||0,r=e.clientLeft||i.clientLeft||0,a=e===V.b?V.b.scrollY:e.scrollTop,s=e===V.b?V.b.scrollX:e.scrollLeft;return{top:t.top+a-n,left:t.left+s-r}}return null}function T(){return this[0]?V.b.getComputedStyle(this[0],null):{}}function S(e,t){var i=void 0;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return V.b.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]=t;return this}return this}function k(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 x(e){if(void 0===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 E(e){if(void 0===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 C(e){var t=this[0],i=void 0,n=void 0;if(!t||void 0===e)return!1;if("string"==typeof e){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(i=r(e),n=0;n<i.length;n+=1)if(i[n]===t)return!0;return!1}if(e===V.a)return t===V.a;if(e===V.b)return t===V.b;if(e.nodeType||e instanceof H){for(i=e.nodeType?[e]:e,n=0;n<i.length;n+=1)if(i[n]===t)return!0;return!1}return!1}function j(){var e=this[0],t=void 0;if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}}function O(e){if(void 0===e)return this;var t=this.length,i=void 0;return e>t-1?new H([]):e<0?(i=t+e,new H(i<0?[]:[this[i]])):new H([this[e]])}function P(){for(var e=void 0,t=0;t<arguments.length;t+=1){e=arguments.length<=t?void 0:arguments[t];for(var i=0;i<this.length;i+=1)if("string"==typeof e){var n=V.a.createElement("div");for(n.innerHTML=e;n.firstChild;)this[i].appendChild(n.firstChild)}else if(e instanceof H)for(var r=0;r<e.length;r+=1)this[i].appendChild(e[r]);else this[i].appendChild(e)}return this}function I(e){var t=void 0,i=void 0;for(t=0;t<this.length;t+=1)if("string"==typeof e){var n=V.a.createElement("div");for(n.innerHTML=e,i=n.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof H)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function A(e){return new H(this.length>0?e?this[0].nextElementSibling&&r(this[0].nextElementSibling).is(e)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function D(e){var t=[],i=this[0];if(!i)return new H([]);for(;i.nextElementSibling;){var n=i.nextElementSibling;e?r(n).is(e)&&t.push(n):t.push(n),i=n}return new H(t)}function L(e){if(this.length>0){var t=this[0];return new H(e?t.previousElementSibling&&r(t.previousElementSibling).is(e)?[t.previousElementSibling]:[]:t.previousElementSibling?[t.previousElementSibling]:[])}return new H([])}function M(e){var t=[],i=this[0];if(!i)return new H([]);for(;i.previousElementSibling;){var n=i.previousElementSibling;e?r(n).is(e)&&t.push(n):t.push(n),i=n}return new H(t)}function N(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?r(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return r(a(t))}function R(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)e?r(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return r(a(t))}function U(e){var t=this;return void 0===e?new H([]):(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 n=this[i].querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return new H(t)}function z(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].childNodes,s=0;s<n.length;s+=1)e?1===n[s].nodeType&&r(n[s]).is(e)&&t.push(n[s]):1===n[s].nodeType&&t.push(n[s]);return new H(a(t))}function F(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function q(){for(var e=this,t=void 0,i=void 0,n=arguments.length,a=Array(n),s=0;s<n;s++)a[s]=arguments[s];for(t=0;t<a.length;t+=1){var o=r(a[t]);for(i=0;i<o.length;i+=1)e[e.length]=o[i],e.length+=1}return e}i.d(t,"a",function(){return r}),i.d(t,"c",function(){return s}),i.d(t,"E",function(){return o}),i.d(t,"m",function(){return l}),i.d(t,"H",function(){return u}),i.d(t,"e",function(){return d}),i.d(t,"D",function(){return c}),i.d(t,"i",function(){return p}),i.d(t,"I",function(){return h}),i.d(t,"J",function(){return f}),i.d(t,"u",function(){return v}),i.d(t,"s",function(){return m}),i.d(t,"L",function(){return g}),i.d(t,"K",function(){return y}),i.d(t,"w",function(){return b}),i.d(t,"v",function(){return _}),i.d(t,"t",function(){return w}),i.d(t,"F",function(){return T}),i.d(t,"h",function(){return S}),i.d(t,"j",function(){return k}),i.d(t,"n",function(){return x}),i.d(t,"G",function(){return E}),i.d(t,"p",function(){return C}),i.d(t,"o",function(){return j}),i.d(t,"k",function(){return O}),i.d(t,"d",function(){return P}),i.d(t,"z",function(){return I}),i.d(t,"q",function(){return A}),i.d(t,"r",function(){return D}),i.d(t,"A",function(){return L}),i.d(t,"B",function(){return M}),i.d(t,"x",function(){return N}),i.d(t,"y",function(){return R}),i.d(t,"g",function(){return U}),i.d(t,"l",function(){return B}),i.d(t,"f",function(){return z}),i.d(t,"C",function(){return F}),i.d(t,"b",function(){return q});var V=i(137),H=function e(t){n(this,e);for(var i=this,r=0;r<t.length;r+=1)i[r]=t[r];return i.length=t.length,this};r.fn=H.prototype,r.Class=H,r.Dom7=H;"resize scroll".split(" ")},function(e,t,i){"use strict";function n(e){return null!==e&&"object"===(void 0===e?"undefined":a(e))&&"constructor"in e&&e.constructor===Object}function r(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(i){void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0&&r(e[i],t[i])})}i.d(t,"a",function(){return s}),i.d(t,"b",function(){return l});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="undefined"!=typeof document?document:{},o={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[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};r(s,o);var l="undefined"!=typeof window?window:{};r(l,{document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}})},function(e,t,i){"use strict";i.d(t,"b",function(){return r}),i.d(t,"a",function(){return n});var n="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,r="undefined"==typeof window?{document:n,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},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[i("section",{ref:"swiperSection",staticClass:"swiper",style:{height:e.bannerHeight}},[e.pageDataObj.bgStyle&&1===e.pageDataObj.bgStyle.status&&e.pageDataObj.bgStyle.picList[0].height?i("div",{staticClass:"swiper-bg",style:{height:e.bannerBgHeight}},[i("img",{staticClass:"swiper-bg-img",attrs:{src:e.pageDataObj.bgStyle.picList[0].resourcePath,alt:e.pageDataObj.bgStyle.picList[0].resourceName}})]):e._e(),e._v(" "),i("div",{ref:"swiper-main"+e.swiperId,class:["swiper-main","swiper-main"+e.swiperId]},[i("div",{class:["swiper-container"+e.swiperId,"swiper-container"]},[i("div",{staticClass:"swiper-wrapper"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:t.id,class:["swiper-slide",2===e.pageDataObj.styleType&&"mobile"===e.curSystem&&"swiper-slide-two"]},[i("hot-sport",{ref:"hotSport"+n,refInFor:!0,attrs:{"page-data":t,"cur-System":e.curSystem,showShadow:!0,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:1,isSwiper:!0},on:{clickUrl:e.navigatorPage,stopSwiperAuto:e.stopSwiperAuto,startSwiperAuto:e.startSwiperAuto,exposurePost:e.exposurePost}})],1)}),0),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-left"},[e._t("swiper-left-nav",function(){return[i("div",{staticClass:"swiper-navigation position-left"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])])]})],2):e._e(),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-right"},[e._t("swiper-right-nav",function(){return[i("div",{staticClass:"swiper-navigation position-right"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])])]})],2):e._e()]),e._v(" "),i("div",{class:["mobile"===e.curSystem&&"swiper-pagination-bullets-mob","swiper-pagination"]})])])])},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){var n=i(141);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("7c7a97d6",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".video-pc[data-v-fcad914e]{width:100%;height:100%}.video-mob[data-v-fcad914e]{width:100%;font-size:0;animation:optionsShow-data-v-fcad914e 1s linear forwards}@keyframes optionsShow-data-v-fcad914e{0%{opacity:0}to{opacity:1}}.video-js[data-v-fcad914e]{width:100%;height:100%}.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-fcad914e]:active,.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-fcad914e]:focus,[data-v-fcad914e] .video-js:hover .vjs-big-play-button{background-color:rgba(43,51,63,.7)}.load-image-d[data-v-fcad914e]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.load-image[data-v-fcad914e]{width:100px;height:100px}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{ref:"comTitle",attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[e.isPC?[i("div",{ref:"videoRef",style:{width:"100%",fontSize:0,height:e.videoHeight+"px"}},[1===e.pageDataObj.isVideoHasHot?[i("hot-sport",{attrs:{"page-data":e.pageDataObj,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:3},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})]:[e.pageDataObj.videoUrl?i("video",{ref:"videoPlay",staticClass:"video-js vjs-default-skin vjs-big-play-centered",attrs:{id:"my-video_"+e.pageDataObj.uniqueId,autoplay:e.pageDataObj.autoPlay,loop:e.pageDataObj.loop,controls:!e.pageDataObj.hasOwnProperty("controls")||!e.pageDataObj.controls,"x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","x5-video-player-fullscreen":"false","webkit-playsinline":"true",playsinline:"true",name:"viewport"},domProps:{muted:!e.pageDataObj.hasOwnProperty("mute")||e.pageDataObj.mute}}):i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)]:e._e(),e._v(" "),e.isPC?e._e():[i("div",{ref:"videoRef",staticClass:"video-mob",style:{height:e.videoHeight+"px"}},[1===e.pageDataObj.isVideoHasHot?[i("hot-sport",{attrs:{"page-data":e.pageDataObj,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:3,"cur-system":e.curSystem},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})]:[e.pageDataObj.videoUrl?i("video",{ref:"videoPlay",staticClass:"video-js vjs-default-skin vjs-big-play-centered",attrs:{autoplay:e.pageDataObj.autoPlay,loop:e.pageDataObj.loop,controls:!e.pageDataObj.hasOwnProperty("controls")||!e.pageDataObj.controls,id:"my-video_"+e.pageDataObj.uniqueId,"x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","x5-video-player-fullscreen":"false","webkit-playsinline":"true",playsinline:"true",name:"viewport"},domProps:{muted:!e.pageDataObj.hasOwnProperty("mute")||e.pageDataObj.mute}}):i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)]],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(144)}var r=i(45),a=i(146),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-1717324f",null);t.a=l.exports},function(e,t,i){var n=i(145);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("1dab30d5",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".product-img[data-v-1717324f]{width:100%}.warp-title[data-v-1717324f]{font-size:20px;padding:10px 0;color:#333;text-align:left}.swiper[data-v-1717324f]{width:100%}.swiper[data-v-1717324f] .swiper-wrapper{cursor:pointer}.swiper-container[data-v-1717324f]{position:relative;height:100%;overflow:hidden}.swiper-container .swiper-slide[data-v-1717324f]{color:#000;font-size:16px}.swiper-pagination[data-v-1717324f]{text-align:center;width:100%;height:3px;position:absolute;bottom:33px}.swiper-button-next[data-v-1717324f],.swiper-button-prev[data-v-1717324f]{width:35px;height:35px;border-radius:100%;background-size:10px;color:#fff;text-align:center;line-height:35px;background:rgba(0,0,0,.1)}.swiper-button-next[data-v-1717324f]:hover,.swiper-button-prev[data-v-1717324f]:hover{background:rgba(0,0,0,.3)}.swiper-button-next.swiper-button-disabled[data-v-1717324f],.swiper-button-prev.swiper-button-disabled[data-v-1717324f]{pointer-events:auto;background:rgba(0,0,0,.1)}.swiper-slide[data-v-1717324f]{background-repeat:no-repeat;background-size:cover;background-position:50%}.bqCmsIconfont[data-v-1717324f]{font-family:bqCmsIconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.product-info[data-v-1717324f]{font-size:14px;color:#333;overflow:hidden;font-weight:400;padding-top:15px;text-align:left}.product-name[data-v-1717324f]{line-height:30px;padding-bottom:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-price[data-v-1717324f]{font-size:16px}.price-light[data-v-1717324f]{color:#c41230;font-weight:600}.price-dark[data-v-1717324f]{color:#000;font-weight:600}.price-standard[data-v-1717324f]{text-decoration:line-through;color:#949494;margin-left:4px;font-size:14px}.warp-two-pc[data-v-1717324f]{width:100%;display:flex;flex-wrap:wrap}.pb-15[data-v-1717324f]{padding-bottom:15px}.cursor-pointer[data-v-1717324f]{cursor:pointer}.load-image-d[data-v-1717324f]{width:100%;height:300px;display:flex;align-items:center;justify-content:center}.load-image[data-v-1717324f]{width:100px;height:100px}.load-product[data-v-1717324f]{display:flex;align-items:center;justify-content:center;background-color:#f5f5f5;margin-right:10px}.product-more[data-v-1717324f]{height:100%;display:flex;align-items:center;justify-content:center}[data-v-1717324f] .swiper-container-horizontal>.swiper-scrollbar{width:30%;left:40%;height:3px;position:relative;margin-top:20px}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[1===e.pageDataObj.styleType?[i("div",{staticClass:"product-warp",style:{padding:"0 "+e.pageDataObj.pageSpacing+"px"}},[e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.fontWeight?"bolder":"",fontSize:e.isPC?"20px":"16px",textAlign:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.align}},[e._v("\n "+e._s(e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",{ref:"swiperList"+e.swiperId,staticClass:"product-slide"},[i("div",{staticClass:"swiper"},[i("div",{class:["swiper-containerProduct"+e.swiperId,"swiper-container"],style:{width:"calc(100% + "+e.pageDataObj.itemSpacing+"px)"}},[i("div",{ref:"swiperWrapper",staticClass:"swiper-wrapper"},[e._l(e.pageDataObj.productShowList,function(t,n){return[(n+1<=e.pageDataObj.goodsType===1?e.pageDataObj.productShowList.length:e.pageDataObj.goodsInfo.showNum)?i("div",{key:n,staticClass:"swiper-slide"},[i("div",{ref:"lastSwiper",refInFor:!0},[i("div",{staticClass:"cursor-pointer",style:{marginRight:e.pageDataObj.itemSpacing+"px"}},[e._t("cmsProductSlot",function(){return[i("div",[i("img",{staticClass:"product-img",attrs:{src:t.mainPicUrl,alt:t.name}})]),e._v(" "),i("div",{staticClass:"product-info"},[i("div",{staticClass:"product-name"},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),i("div",{staticClass:"product-price"},[i("span",{class:t.salesPrice!=t.standardPrice?"price-light":"price-dark"},[e._v("¥"+e._s(t.salesPrice))]),e._v(" "),t.salesPrice!=t.standardPrice?i("span",{staticClass:"price-standard"},[e._v("¥"+e._s(t.standardPrice))]):e._e()])])]},{data:t})],2)])]):e._e()]}),e._v(" "),e.pageDataObj.goodsInfo&&e.pageDataObj.goodsInfo.isShowMore?i("div",{staticClass:"swiper-slide"},[i("div",{style:{width:"100%",height:e.moreHeight+"px"}},[e._t("cmsProductMoreSlot",function(){return[i("div",[e._v("查看更多")])]},{data:e.pageDataObj.goodsInfo})],2)]):e._e()],2),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-prev"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-next"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"!==e.curSystem?i("div",{staticClass:"swiper-scrollbar"}):e._e()])])])])]:e._e(),e._v(" "),!e.pageDataObj.styleType||e.pageDataObj.productShowList.length<=0?[i("div",{staticClass:"load-image-d"},e._l(e.pageDataObj.lineShowNum,function(t,n){return i("div",{key:n,staticClass:"load-product",style:{width:"calc(100% / "+e.pageDataObj.lineShowNum+")",height:"100%"}},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])}),0)]:e._e()],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(148)}var r=i(47),a=i(156),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-2d293b2e",null);t.a=l.exports},function(e,t,i){var n=i(149);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("cd1f0610",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".dec-bus-container[data-v-2d293b2e]{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%}.dec-components[data-v-2d293b2e]{width:100%}",""])},function(e,t,i){"use strict";var n=i(41),r=i(46),a=i(43),s=i(18),o=i(48),l=i(49),u=i(155);t.a={components:{banner:n.a,cmsVideo:a.a,cmsProduct:r.a,picNav:s.a,picText:o.a,cmsNavigate:l.a},props:{maxWidthMobile:{type:Number},curSystem:{type:String},envUrl:{type:String,default:"https://mpsit40.ibaiqiu.com/"}},methods:{getComponent:function(e){var t=u.a.find(function(t){return t.componentCode===e});if(t)return t.components}}}},function(e,t,i){var n=i(152);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(16)("6ee2034b",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,"",""])},function(e,t){e.exports=function(e,t){for(var i=[],n={},r=0;r<t.length;r++){var a=t[r],s=a[0],o=a[1],l=a[2],u=a[3],d={id:e+":"+r,css:o,media:l,sourceMap:u};n[s]?n[s].parts.push(d):i.push(n[s]={id:s,parts:[d]})}return i}},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=[{componentCode:"2",components:"banner"},{componentCode:"3",components:"cmsVideo"},{componentCode:"4",components:"picNav"},{componentCode:"5",components:"cmsProduct"},{componentCode:"6",components:"selfComponents"},{componentCode:"7",components:"picText"},{componentCode:"8",components:"cmsNavigate"}]},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dec-bus-container"},e._l(e.decorationList,function(t){return i("div",{key:t.id,staticClass:"dec-components"},[i(e.getComponent(t.componentCode),{tag:"component",attrs:{"page-data":JSON.parse(t.attributeJson),"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"env-url":e.envUrl}},["5"===t.componentCode?[e._t("product",null,{data:JSON.parse(t.attributeJson)})]:e._e(),e._v(" "),"6"===t.componentCode?[e._t("self",null,{data:JSON.parse(t.attributeJson)})]:e._e()],2)],1)}),0)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(158)}var r=i(51),a=i(160),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-09ca10a0",null);t.a=l.exports},function(e,t,i){var n=i(159);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(16)("cee7bed2",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,"",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("com-title",{attrs:{"warp-width":e.pageDataObj.width,"warp-height":e.pageDataObj.height,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem},on:{checkIsMobile:e.checkIsMobile}},[e._t("default")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(162),i(164)}var r=i(52),a=i(166),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-2f374c98",null);t.a=l.exports},function(e,t,i){var n=i(163);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("07084c4a",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,"",""])},function(e,t,i){var n=i(165);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(16)("5f7e7f47",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".edit-text table{border-top:1px solid #ccc;border-left:1px solid #ccc}.edit-text table th{border-bottom:2px solid #ccc;text-align:center;background-color:#f1f1f1}.edit-text table td,table th{border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:3px 5px;min-height:30px;height:30px}.edit-text img{max-width:100%;display:initial}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[i("div",{ref:""+e.pageDataObj.uniqueId,style:e.background},[5===e.pageDataObj.styleType?[i("div",{staticClass:"edit-text",domProps:{innerHTML:e._s(e.pageDataObj.content)}})]:e._e()],2)])},r=[],a={render:n,staticRenderFns:r};t.a=a}])});
|
|
19
|
+
//# sourceMappingURL=bq-cms-decoration.min.js.map
|