diff --git a/dist/gzipped/viewer.min.css b/dist/gzipped/viewer.min.css index 2a223d0..0b26bd1 100644 Binary files a/dist/gzipped/viewer.min.css and b/dist/gzipped/viewer.min.css differ diff --git a/dist/gzipped/viewer.min.js b/dist/gzipped/viewer.min.js index b04e20c..8d32d4f 100644 Binary files a/dist/gzipped/viewer.min.js and b/dist/gzipped/viewer.min.js differ diff --git a/dist/viewer.js b/dist/viewer.js index 5304277..e0345fd 100644 --- a/dist/viewer.js +++ b/dist/viewer.js @@ -8937,6 +8937,9 @@ this["amp"]["templates"]["mobileNormalView"] = Handlebars.template({"1":function } else { items = data[setInfo.name].items; } + + self.enrichAssets(items); + resolve(items); }, function () { @@ -9300,6 +9303,23 @@ this["amp"]["templates"]["mobileNormalView"] = Handlebars.template({"1":function } }; + Viewer.prototype.enrichAssets = function (assets) { + for (var i = 0; i < assets.length; i++) { + var asset = assets[i]; + + // Rewrite webm videos to use SEO url with .webm extension, + // as some versions of Safari need this. + if (asset.media) { + for (var i = 0; i < asset.media.length; i++) { + var media = asset.media[i]; + if (media.format === 'webm') { + media.src = media.src + '/' + media.profile + '.webm'; + } + } + } + } + } + Viewer.prototype.destroyAmpWidgets = function () { var self = this; self.tags.length = 0; diff --git a/dist/viewer.min.js b/dist/viewer.min.js index da469bb..e7b7ab8 100644 --- a/dist/viewer.min.js +++ b/dist/viewer.min.js @@ -1 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).videojs=t()}}(function(){return function r(s,a,l){function c(n,t){if(!a[n]){if(!s[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(u)return u(n,!0);var o=new Error("Cannot find module '"+n+"'");throw o.code="MODULE_NOT_FOUND",o}var i=a[n]={exports:{}};s[n][0].call(i.exports,function(t){var e=s[n][1][t];return c(e||t)},i,i.exports,r,s,a,l)}return a[n].exports}for(var u="function"==typeof require&&require,t=0;t'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this,t,e));return n.updateShowing(),n.on(n.player(),"durationchange",n.updateShowing),n}s.default.registerComponent("LiveDisplay",l),n.default=l},{5:5,81:81}],11:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(2)),s=o(t(5)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.buildCSSClass=function(){return"vjs-mute-control "+i.prototype.buildCSSClass.call(this)},c.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},c.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;o<4;o++)a.removeElClass(this.el_,"vjs-vol-"+o);a.addElClass(this.el_,"vjs-vol-"+e)},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"volumechange",n.update),t.tech_&&!1===t.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(t,"loadstart",function(){this.update(),!1===t.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),n}l.prototype.controlText_="Mute",s.default.registerComponent("MuteToggle",l),n.default=l},{2:2,5:5,81:81}],12:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(2)),s=o(t(5)),a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,i=r.default),l.prototype.buildCSSClass=function(){return"vjs-play-control "+i.prototype.buildCSSClass.call(this)},l.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},l.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},l.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},l);function l(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"play",n.handlePlay),n.on(t,"pause",n.handlePause),n}a.prototype.controlText_="Play",s.default.registerComponent("PlayToggle",a),n.default=a},{2:2,5:5}],13:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(47)),s=o(t(49)),a=o(t(14)),l=o(t(5)),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),u=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(p,i=r.default),p.prototype.createEl=function(){var t=i.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},p.prototype.buildCSSClass=function(){return"vjs-playback-rate "+i.prototype.buildCSSClass.call(this)},p.prototype.createMenu=function(){var t=new s.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;0<=n;n--)t.addChild(new a.default(this.player(),{rate:e[n]+"x"}));return t},p.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},p.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),n=e[0],o=0;ot){n=e[o];break}this.player().playbackRate(n)},p.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},p.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0'+this.localize("Loaded")+": 0%"})},l.prototype.update=function(){function t(t,e){var n=t/e||0;return 100*(1<=n?1:n)+"%"}var e=this.player_.buffered(),n=this.player_.duration(),o=this.player_.bufferedEnd(),i=this.partEls_;this.el_.style.width=t(o,n);for(var r=0;re.length;c--)this.el_.removeChild(i[c-1]);i.length=e.length},l);function l(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this,t,e));return n.partEls_=[],n.on(t,"progress",n.update),n}s.default.registerComponent("LoadProgressBar",a),n.default=a},{5:5,81:81}],16:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r,s=i(t(5)),a=o(t(81)),l=o(t(83)),c=i(t(84)),u=i(t(100)),p=i(t(80)),h=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(d,r=s.default),d.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},d.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,o=t.pageX-a.findElPosition(this.el().parentNode).left;this.update(n,o)},d.prototype.update=function(t,e){var n=c.default(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var o=e-this.clampPosition_(e)+1,i=parseFloat(p.default(this.tooltip,"width"))/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(i-o)+"px"}},d.prototype.calculateDistance=function(t){return a.getPointerPosition(this.el().parentNode,t).x},d.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat(p.default(this.player().el(),"width")),n=parseFloat(p.default(this.tooltip,"width"))/2,o=t;return t'+this.localize("Progress")+": 0%"})},c.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",a.default(t,this.player_.duration()))},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.updateDataAttr(),n.on(t,"timeupdate",n.updateDataAttr),t.ready(s.bind(n,n.updateDataAttr)),e.playerOptions&&e.playerOptions.controlBar&&e.playerOptions.controlBar.progressControl&&e.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=e.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&n.addClass("vjs-keep-tooltips-inside"),n}r.default.registerComponent("PlayProgressBar",l),n.default=l},{5:5,83:83,84:84}],18:[function(t,e,n){"use strict";n.__esModule=!0;var o,i=t(5),r=(o=i)&&o.__esModule?o:{default:o};t(19),t(16);var s,a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,s=r.default),l.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,s.apply(this,arguments))}a.prototype.options_={children:["seekBar"]},r.default.registerComponent("ProgressControl",a),n.default=a},{16:16,19:19,5:5}],19:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=o(t(57)),r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),a=o(t(84)),l=o(t(80));t(15),t(17),t(20);var c,u=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(p,c=i.default),p.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},p.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat(l.default(this.player().el(),"width")),e=parseFloat(l.default(this.tooltipProgressBar.tooltip,"width")),n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(t-e/2)+"px",n.minWidth=Math.ceil(e/2)+"px",n.right="-"+e/2+"px"}},p.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",a.default(e,this.player_.duration()))},p.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return 1<=t?1:t},p.prototype.handleMouseDown=function(t){c.prototype.handleMouseDown.call(this,t),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},p.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},p.prototype.handleMouseUp=function(t){c.prototype.handleMouseUp.call(this,t),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},p.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},p.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},p);function p(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,c.call(this,t,e));return n.on(t,"timeupdate",n.updateProgress),n.on(t,"ended",n.updateProgress),t.ready(s.bind(n,n.updateProgress)),e.playerOptions&&e.playerOptions.controlBar&&e.playerOptions.controlBar.progressControl&&e.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=e.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&(n.tooltipProgressBar=n.addChild("TooltipProgressBar")),n}u.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},u.prototype.playerEvent="timeupdate",r.default.registerComponent("SeekBar",u),n.default=u},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),a=o(t(84)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.createEl=function(){var t=i.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'
\n '+this.localize("Progress")+": 0%"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},c.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=a.default(t,this.player_.duration());this.el_.setAttribute("data-current-time",e),this.tooltip.innerHTML=e},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.updateDataAttr(),n.on(t,"timeupdate",n.updateDataAttr),t.ready(s.bind(n,n.updateDataAttr)),n}r.default.registerComponent("TooltipProgressBar",l),n.default=l},{5:5,83:83,84:84}],21:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(22)),s=o(t(5)),a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,i=r.default),l.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+i.prototype.buildCSSClass.call(this)},l.prototype.createEl=function(){var t=i.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.apply(this,arguments))}s.default.registerComponent("CustomControlSpacer",a),n.default=a},{22:22,5:5}],22:[function(t,e,n){"use strict";n.__esModule=!0;var o,i,r=t(5),s=(i=r)&&i.__esModule?i:{default:i},a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,o=s.default),l.prototype.buildCSSClass=function(){return"vjs-spacer "+o.prototype.buildCSSClass.call(this)},l.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.apply(this,arguments))}s.default.registerComponent("Spacer",a),n.default=a},{5:5}],23:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(31)),s=o(t(5)),a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,i=r.default),l.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},l);function l(t,e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,l),e.track={player:t,kind:e.kind,label:e.kind+" settings",selectable:!1,default:!1,mode:"disabled"},e.selectable=!1;var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.addClass("vjs-texttrack-settings"),n.controlText(", opens "+e.kind+" settings dialog"),n}s.default.registerComponent("CaptionSettingsMenuItem",a),n.default=a},{31:31,5:5}],24:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(30)),s=o(t(5)),a=o(t(23)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.buildCSSClass=function(){return"vjs-captions-button "+i.prototype.buildCSSClass.call(this)},c.prototype.update=function(){var t=2;i.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1),this.items&&this.items.length>t?this.show():this.hide()},c.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new a.default(this.player_,{kind:this.kind_})),i.prototype.createItems.call(this,t)},c);function c(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e,n));return o.el_.setAttribute("aria-label","Captions Menu"),o}l.prototype.kind_="captions",l.prototype.controlText_="Captions",s.default.registerComponent("CaptionsButton",l),n.default=l},{23:23,30:30,5:5}],25:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(30)),s=o(t(5)),a=o(t(31)),f=o(t(26)),m=o(t(49)),v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),y=o(t(91)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.buildCSSClass=function(){return"vjs-chapters-button "+i.prototype.buildCSSClass.call(this)},c.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var n=0;nCurrent Time 0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),n=a.default(t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML=''+e+" "+n)},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"timeupdate",n.updateContent),n}r.default.registerComponent("CurrentTimeDisplay",l),n.default=l},{5:5,81:81,84:84}],33:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),a=o(t(84)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.createEl=function(){var t=i.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),n=a.default(t);this.contentEl_.innerHTML=''+e+" "+n}},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"durationchange",n.updateContent),n.on(t,"timeupdate",n.updateContent),n.on(t,"loadedmetadata",n.updateContent),n}r.default.registerComponent("DurationDisplay",l),n.default=l},{5:5,81:81,84:84}],34:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),a=o(t(84)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.createEl=function(){var t=i.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=a.default(this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML=''+t+" -"+e)}},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"timeupdate",n.updateContent),n.on(t,"durationchange",n.updateContent),n}r.default.registerComponent("RemainingTimeDisplay",l),n.default=l},{5:5,81:81,84:84}],35:[function(t,e,n){"use strict";n.__esModule=!0;var o,i,r=t(5),s=(i=r)&&i.__esModule?i:{default:i},a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,o=s.default),l.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.apply(this,arguments))}s.default.registerComponent("TimeDivider",a),n.default=a},{5:5}],36:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}n.__esModule=!0;var s,i=o(t(47)),a=o(t(5)),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),c=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(u,s=i.default),u);function u(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=e.tracks,o=r(this,s.call(this,t,e));if(o.items.length<=1&&o.hide(),!n)return r(o);var i=l.bind(o,o.update);return n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),o.player_.on("dispose",function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i)}),o}a.default.registerComponent("TrackButton",c),n.default=c},{47:47,5:5,83:83}],37:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=o(t(57)),r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83));t(39);var a,l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,a=i.default),c.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},c.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},c.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},c.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},c.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},c.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},c.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,a.call(this,t,e));return n.on(t,"volumechange",n.updateARIAAttributes),t.ready(s.bind(n,n.updateARIAAttributes)),n}l.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},l.prototype.playerEvent="volumechange",r.default.registerComponent("VolumeBar",l),n.default=l},{39:39,5:5,57:57,83:83}],38:[function(t,e,n){"use strict";n.__esModule=!0;var o,i=t(5),r=(o=i)&&o.__esModule?o:{default:o};t(37);var s,a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,s=r.default),l.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},l);function l(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,s.call(this,t,e));return t.tech_&&!1===t.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(t,"loadstart",function(){!1===t.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),n}a.prototype.options_={children:["volumeBar"]},r.default.registerComponent("VolumeControl",a),n.default=a},{37:37,5:5}],39:[function(t,e,n){"use strict";n.__esModule=!0;var o,i,r=t(5),s=(i=r)&&i.__esModule?i:{default:i},a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,o=s.default),l.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.apply(this,arguments))}s.default.registerComponent("VolumeLevel",a),n.default=a},{5:5}],40:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),s=o(t(5)),a=o(t(54)),l=o(t(53)),c=o(t(11)),u=o(t(37)),p=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(h,i=l.default),h.prototype.buildCSSClass=function(){var t;return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+i.prototype.buildCSSClass.call(this)+" "+t},h.prototype.createPopup=function(){var t=new a.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},h.prototype.handleClick=function(){c.default.prototype.handleClick.call(this),i.prototype.handleClick.call(this)},h.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],r.bind(this,this.handleMouseDown))},h.prototype.handleMouseDown=function(t){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},h.prototype.handleMouseUp=function(t){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},h);function h(t){function e(){t.tech_&&!1===t.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var n=1=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())},h);function h(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.focusedChild_=-1,n.on("keydown",n.handleKeyPress),n}a.default.registerComponent("Menu",p),n.default=p},{5:5,81:81,82:82,83:83}],50:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var i,r,s=o(t(81)),a=o(t(83)),l=t(5),c=(r=l)&&r.__esModule?r:{default:r},u="vjs-modal-dialog",p=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(h,i=c.default),h.prototype.createEl=function(){return i.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},h.prototype.buildCSSClass=function(){return u+" vjs-hidden "+i.prototype.buildCSSClass.call(this)},h.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},h.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},h.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},h.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},h.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},h.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},h.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var o=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=o,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},h.prototype.fill=function(){return this.fillWith(this.content())},h.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,o=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),s.insertContent(e,t),this.trigger("modalfill"),o?n.insertBefore(e,o):n.appendChild(e),this},h.prototype.empty=function(){return this.trigger("beforemodalempty"),s.emptyEl(this.contentEl()),this.trigger("modalempty"),this},h.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},h);function h(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=s.createEl("div",{className:u+"-content"},{role:"document"}),n.descEl_=s.createEl("p",{className:u+"-description vjs-offscreen",id:n.el().getAttribute("aria-describedby")}),s.textContent(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}p.prototype.options_={temporary:!0},c.default.registerComponent("ModalDialog",p),n.default=p},{5:5,81:81,83:83}],51:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=i(t(5)),r=i(t(94)),l=i(t(95)),a=o(t(82)),h=o(t(81)),c=o(t(83)),u=o(t(85)),p=o(t(78)),d=i(t(86)),f=i(t(91)),m=t(90),v=t(79),y=o(t(89)),g=i(t(44)),_=i(t(46)),b=i(t(147)),w=i(t(138)),x=i(t(87)),T=i(t(69)),C=i(t(50)),E=i(t(62)),k=i(t(63)),S=i(t(76));t(61),t(59),t(55),t(68),t(45),t(1),t(4),t(8),t(41),t(71),t(60);var O,P=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],j=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(M,O=s.default),M.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),M.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(),O.prototype.dispose.call(this)},M.prototype.createEl=function(){var e=this.el_=O.prototype.createEl.call(this,"div"),t=this.tag;t.removeAttribute("width"),t.removeAttribute("height");var n=h.getElAttributes(t);if(Object.getOwnPropertyNames(n).forEach(function(t){"class"===t?e.className=n[t]:e.setAttribute(t,n[t])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused"),!0!==l.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=y.createStyleElement("vjs-styles-dimensions");var o=h.$(".vjs-styles-defaults"),i=h.$("head");i.insertBefore(this.styleEl_,o?o.nextSibling:i.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var r=t.getElementsByTagName("a"),s=0;se.start(0)?t:e.start(0))'}),o=f.default({data:t,width:"100%",height:"100%"},o),Object.getOwnPropertyNames(o).forEach(function(t){s+=t+'="'+o[t]+'" '}),'"+r+""},p.default(v),h.default.registerComponent("Flash",v),a.default.registerTech("Flash",v),n.default=v},{138:138,5:5,58:58,62:62,81:81,90:90,92:92,95:95}],60:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var u,r,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=((r=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],r),a=i(t(62)),l=i(t(5)),c=o(t(81)),h=o(t(92)),d=o(t(83)),f=i(t(86)),m=i(t(148)),v=o(t(78)),y=i(t(94)),g=i(t(95)),_=i(t(138)),b=i(t(87)),w=i(t(91)),x=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(T,u=a.default),T.prototype.dispose=function(){var o=this;["audio","video","text"].forEach(function(t){var e=w.default(t),n=o.el_[t+"Tracks"];n&&n.removeEventListener&&(n.removeEventListener("change",o["handle"+e+"TrackChange_"]),n.removeEventListener("addtrack",o["handle"+e+"TrackAdd_"]),n.removeEventListener("removetrack",o["handle"+e+"TrackRemove_"])),n&&o.off("loadstart",o["removeOld"+e+"Tracks_"])}),T.disposeMediaElement(this.el_),u.prototype.dispose.call(this)},T.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM){if(t){var e=t.cloneNode(!0);t.parentNode.insertBefore(e,t),T.disposeMediaElement(t),t=e}else{t=y.default.createElement("video");var n=this.options_.tag&&c.getElAttributes(this.options_.tag),o=b.default({},n);v.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete o.controls,c.setElAttributes(t,_.default(o,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}for(var i=["autoplay","preload","loop","muted"],r=i.length-1;0<=r;r--){var s=i[r],a={};void 0!==this.options_[s]&&(a[s]=this.options_[s]),c.setElAttributes(t,a)}return t},T.prototype.handleLateInit_=function(t){var o=this;if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=function(){function t(){e=!0}var e=!1;function n(){e||this.trigger("loadstart")}return o.on("loadstart",t),o.on("loadedmetadata",n),o.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",n),e||this.trigger("loadstart")}),{v:void 0}}();if("object"===(void 0===e?"undefined":s(e)))return e.v}var n=["loadstart"];n.push("loadedmetadata"),2<=t.readyState&&n.push("loadeddata"),3<=t.readyState&&n.push("canplay"),4<=t.readyState&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},T.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e select",id:"captions-background-color-%s",label:"Color",options:[d,_,g,v,f,b,y,m]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[w,x,T]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[_,d,g,v,f,b,y,m]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[w,x]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[T,x,w]}};C.windowColor.options=C.backgroundColor.options;var E,k=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(S,E=a.default),S.prototype.createElSelect_=function(t){var e=this,n=C[t],o=n.id.replace("%s",this.id_);return[l.createEl("label",{className:"vjs-label",textContent:n.label},{for:o}),l.createEl("select",{id:o},void 0,n.options.map(function(t){return l.createEl("option",{textContent:e.localize(t[1]),value:t[0]})}))]},S.prototype.createElFgColor_=function(){var t=l.createEl("legend",{textContent:this.localize("Text")}),e=this.createElSelect_("color"),n=l.createEl("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return l.createEl("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(e,n))},S.prototype.createElBgColor_=function(){var t=l.createEl("legend",{textContent:this.localize("Background")}),e=this.createElSelect_("backgroundColor"),n=l.createEl("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return l.createEl("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(e,n))},S.prototype.createElWinColor_=function(){var t=l.createEl("legend",{textContent:this.localize("Window")}),e=this.createElSelect_("windowColor"),n=l.createEl("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return l.createEl("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(e,n))},S.prototype.createElColors_=function(){return l.createEl("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},S.prototype.createElFont_=function(){var t=l.createEl("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),e=l.createEl("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),n=l.createEl("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return l.createEl("div",{className:"vjs-tracksettings-font"},void 0,[t,e,n])},S.prototype.createElControls_=function(){var t=l.createEl("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),e=l.createEl("button",{className:"vjs-done-button",textContent:"Done"});return l.createEl("div",{className:"vjs-tracksettings-controls"},void 0,[t,e])},S.prototype.createEl=function(){var t=l.createEl("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),e=l.createEl("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),n=l.createEl("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),o=l.createEl("div",void 0,{role:"document"},[e,n,t]);return l.createEl("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":e.id,"aria-describedby":n.id},o)},S.prototype.getValues=function(){var i=this;return u.reduce(C,function(t,e,n){var o=function(t,e){return r(t.options[t.options.selectedIndex].value,e)}(i.$(e.selector),e.parser);return void 0!==o&&(t[n]=o),t},{})},S.prototype.setValues=function(n){var o=this;u.each(C,function(t,e){!function(t,e,n){if(e)for(var o=0;o=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(c=!1,e.length!==this.activeCues_.length)c=!0;else for(var r=0;r',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),a.default.body.appendChild(i));for(var r={},s=0;sx',t=e.firstChild.href}return t},n.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},n.isCrossOrigin=function(t){var e=i.default.location,n=r(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},{94:94,95:95}],93:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function r(t,n,e){var o=void 0;if(n=n||{},"string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),r.getPlayers()[t])return n&&T.default.warn('Player "'+t+'" is already initialised. Options will not be applied.'),e&&r.getPlayers()[t].ready(e),r.getPlayers()[t];o=C.getEl(t)}else o=t;if(!o||!o.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(o.player||f.default.players[o.playerId])return o.player||f.default.players[o.playerId];r.hooks("beforesetup").forEach(function(t){var e=t(o,v.default(n));return!e||"object"!==(void 0===e?"undefined":s(e))||Array.isArray(e)?void r.log.error("please return an object in beforesetup hooks"):void(n=v.default(n,e))});var i=new f.default(o,n,e);return r.hooks("setup").forEach(function(t){return t(i)}),i}n.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(t(95)),l=i(t(94)),c=o(t(56)),u=o(t(89)),p=i(t(5)),h=i(t(42)),d=o(t(82)),f=i(t(51)),m=i(t(52)),v=i(t(87)),y=o(t(83)),g=i(t(72)),_=i(t(64)),b=i(t(77)),w=t(90),x=i(t(84)),T=i(t(86)),C=o(t(81)),E=o(t(78)),k=o(t(92)),S=i(t(80)),O=i(t(43)),P=i(t(133)),j=i(t(149)),M=i(t(62));if("undefined"==typeof HTMLVideoElement&&a.default.document&&a.default.document.createElement&&(l.default.createElement("video"),l.default.createElement("audio"),l.default.createElement("track")),r.hooks_={},r.hooks=function(t,e){return r.hooks_[t]=r.hooks_[t]||[],e&&(r.hooks_[t]=r.hooks_[t].concat(e)),r.hooks_[t]},r.hook=function(t,e){r.hooks(t,e)},r.removeHook=function(t,e){var n=r.hooks(t).indexOf(e);return!(n<=-1||(r.hooks_[t]=r.hooks_[t].slice(),r.hooks_[t].splice(n,1),0))},!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var A=C.$(".vjs-styles-defaults");if(!A){A=u.createStyleElement("vjs-styles-defaults");var I=C.$("head");I&&I.insertBefore(A,I.firstChild),u.setTextContent(A,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}c.autoSetupTimeout(1,r),r.VERSION="5.13.2",r.options=f.default.prototype.options_,r.getPlayers=function(){return f.default.players},r.players=f.default.players,r.getComponent=p.default.getComponent,r.registerComponent=function(t,e){M.default.isTech(e)&&T.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),p.default.registerComponent.call(p.default,t,e)},r.getTech=M.default.getTech,r.registerTech=M.default.registerTech,r.browser=E,r.TOUCH_ENABLED=E.TOUCH_ENABLED,r.extend=O.default,r.mergeOptions=v.default,r.bind=y.bind,r.plugin=m.default,r.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),P.default(r.options.languages,((n={})[t]=e,n))[t]},r.log=T.default,r.createTimeRange=r.createTimeRanges=w.createTimeRanges,r.formatTime=x.default,r.parseUrl=k.parseUrl,r.isCrossOrigin=k.isCrossOrigin,r.EventTarget=h.default,r.on=d.on,r.one=d.one,r.off=d.off,r.trigger=d.trigger,r.xhr=j.default,r.TextTrack=g.default,r.AudioTrack=_.default,r.VideoTrack=b.default,r.isEl=C.isEl,r.isTextNode=C.isTextNode,r.createEl=C.createEl,r.hasClass=C.hasElClass,r.addClass=C.addElClass,r.removeClass=C.removeElClass,r.toggleClass=C.toggleElClass,r.setAttributes=C.setElAttributes,r.getAttributes=C.getElAttributes,r.emptyEl=C.emptyEl,r.appendContent=C.appendContent,r.insertContent=C.insertContent,r.computedStyle=S.default,"object"===(void 0===n?"undefined":s(n))&&"object"===(void 0===e?"undefined":s(e))&&(e.exports=r),n.default=r},{133:133,149:149,42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,89:89,90:90,92:92,94:94,95:95}],94:[function(i,r,t){(function(t){var e=void 0!==t?t:"undefined"!=typeof window?window:{},n=i(96);if("undefined"!=typeof document)r.exports=document;else{var o=e["__GLOBAL_DOCUMENT_CACHE@4"];o=o||(e["__GLOBAL_DOCUMENT_CACHE@4"]=n),r.exports=o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{96:96}],95:[function(t,e,n){(function(t){"undefined"!=typeof window?e.exports=window:void 0!==t?e.exports=t:"undefined"!=typeof self?e.exports=self:e.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],96:[function(t,e,n){},{}],97:[function(t,e,n){var o=t(113)(Date,"now")||function(){return(new Date).getTime()};e.exports=o},{113:113}],98:[function(t,e,n){var g=t(126),_=t(97),b=Math.max;e.exports=function(o,i,t){function e(t,e){e&&clearTimeout(e),l=h=d=void 0,t&&(f=_(),c=o.apply(p,a),h||l||(a=p=void 0))}function r(){var t=i-(_()-u);t<=0||i]+>?)?/);return t=e[1]?e[1]:e[2],n=n.substr(t.length),t}function e(t){return g[t]}function o(t){for(;h=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(h[0],e);return t}function i(t,e){var n=_[t];if(!n)return null;var o=r.document.createElement(n);o.localName=n;var i=b[t];return i&&e&&(o[i]=e.trim()),o}for(var s,a=r.document.createElement("div"),l=a,c=[];null!==(s=t());)if("<"!==s[0])l.appendChild(r.document.createTextNode(o(s)));else{if("/"===s[1]){c.length&&c[c.length-1]===s.substr(2).replace(">","")&&(c.pop(),l=l.parentNode);continue}var u,p=m(s.substr(1,s.length-2));if(p){u=r.document.createProcessingInstruction("timestamp",p),l.appendChild(u);continue}var h=s.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(u=i(h[1],h[3])))continue;if(d=l,w[(f=u).localName]&&w[f.localName]!==d.localName)continue;h[2]&&(u.className=h[2].substr(1).replace("."," ")),c.push(h[1]),l.appendChild(u),l=u}var d,f;return a}function d(){}function f(t,e,n){var o=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)";o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),d.call(this),this.cue=e,this.cueDiv=h(t,e.text);var s={color:i,backgroundColor:r,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};o||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(s.direction=function(t){function i(t,e){for(var n=e.childNodes.length-1;0<=n;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?o[t.length=0]:n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}var e,n=[],o="";if(!t||!t.childNodes)return"ltr";for(i(n,t);o=r(n);)for(var s=0;sp&&(u=u<0?-1:1,u*=Math.ceil(p/c)*c),i<0&&(u+=""===o.vertical?a.height:a.width,r=r.reverse()),n.move(h,u)}else{var d=n.lineHeight/a.height*100;switch(o.lineAlign){case"middle":i-=d/2;break;case"end":i-=d}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(i,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(i,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(i,"%")})}r=["+y","-x","+x","-y"],n=new v(e)}var f=function(t,e){for(var n,o=new v(t),i=1,r=0;r","‎":"‎","‏":"‏"," ":" "},_={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},b={v:"title",lang:"lang"},w={rt:"ruby"},x=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];d.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},d.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(f.prototype=n(d.prototype)).constructor=f,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||o,height:t.height||e,bottom:t.bottom||o+(t.height||e),width:t.width||n}},e.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},e.convertCueToDOMTree=function(t,e){return t&&e?h(t,e):null};e.processCues=function(o,i,t){if(!o||!i||!t)return null;for(;t.firstChild;)t.removeChild(t.firstChild);var r=o.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",t.appendChild(r),function(t){for(var e=0;e>>0;if(0==o)return-1;var i=0;if(1t.height?"w="+amp.conf.default_size:"h="+amp.conf.default_size}}(),c=[{shortName:"cs",fullName:"grayscale",val:"gray"},{shortName:"dpi",fullName:"dpi",type:"number"},{shortName:"dpiFilter",fullName:"dpiFilter",type:"string"},{shortName:"resize",fullName:"resize",type:"boolean"},{shortName:"filter",fullName:"filter",type:"string"},{shortName:"upscale",fullName:"upscale",type:"boolean"},{shortName:"bg",fullName:"background",type:"string"},{shortName:"qlt",fullName:"quality",type:"number"},{shortName:"cm",fullName:"compositeMode",type:"string"},{shortName:"cs",fullName:"colourSpace",type:"string"},{shortName:"maxW",fullName:"maxWidth",type:"number"},{shortName:"maxH",fullName:"maxHeight",type:"number"},{shortName:"template",fullName:"template",type:"array"},{shortName:"w",fullName:"width",type:"number"},{shortName:"h",fullName:"height",type:"number"},{shortName:"fmt",fullName:"format",type:"string"},{shortName:"unsharp",fullName:"sharpen",type:"string"},{shortName:"crop",fullName:"crop",type:"string"},{shortName:"pcrop",fullName:"preCrop",type:"string"},{shortName:"img404",fullName:"missingImage",type:"string"},{shortName:"sm",fullName:"scaleMode",type:"string"},{shortName:"strip",fullName:"strip",type:"boolean"},{shortName:"orig",fullName:"original",type:"boolean"}],f=function(t,e,n,o){for(var i in t)if(t.hasOwnProperty(i))if(null!=t[i]&&"object"==typeof t[i]){if(("img"==t[i].type||"set"==t[i].type||"video"==t[i].type)&&n&&n.exclude){for(var r=!1,s=0;se.length){if(!this.options.loop)return t;for(;t>e.length;)t-=e.length}else if(t<1){if(!this.options.loop)return t;for(;t<1;)t+=e.length}return t},play:function(){var t=this;clearInterval(this.interval),this.interval=setInterval(function(){t.next()},this.options.delay),this._track("play",null)},pause:function(){clearInterval(this.interval),this._track("pause",null)},next:function(){this.goTo(this._index+1)},prev:function(){this.goTo(this._index-1)},redraw:function(){this._calcSize()},_calcSize:function(){var t;if(this.options.responsive&&this.options.width&&this.options.height&&"auto"!=this.options.width&&"auto"!=this.options.height)this.options.parentSize?(t=Math.round(this.element.parent().width()),(r=Math.round(t*(this.options.height/this.options.width)))>this.element.parent().height()&&(r=this.element.parent().height(),t=Math.round(r*(this.options.width/this.options.height))),this.element.width(t)):(t=Math.round(this.element.width()),r=Math.round(t*(this.options.height/this.options.width))),this.element.height(r),this.options.center&&(this.element.css("margin-left",this.element.parent().width()/2-t/2+"px"),this.element.css("margin-top",this.element.parent().height()/2-r/2+"px"));else{if(this.options.width&&"auto"!=this.options.width)this.element.width(this.options.width);else if("auto"==this.options.width){for(var e=0,n=0;nthis.count){if(!this.options.loop)return;for(;t>this.count;)t-=this.count;this._track("looped","forwards")}else if(t<1){if(!this.options.loop)return;for(;t<1;)t+=this.count;this._track("looped","backwards")}n||this._animate(t)}},_exeBinds:function(t,e){if(this._boundArray)for(var n=0;nthis.count){if(!this.options.loop)return this.count;for(;t>this.count;)t-=this.count}else if(t<1){if(!this.options.loop)return 1;for(;t<1;)t+=this.count}return t},bind:function(t){this._boundArray||(this._boundArray=[]),this._boundArray.push(t)},canPrev:function(){return this.options.loop||1"),this._container=this.element.children().eq(0),this._containerPos=0,this._children=this.element.children().eq(0).children(),this.count=this._children.length,this._checkCSS3(),this._index=Math.max(1,Math.min(this.options.start,this.count)),this._selectedIndex=this._index,this._children.addClass("amp-slide"),this._calcSize(),this._chooseLayoutManager(),this._children.eq(this._index-1).addClass(this.options.states.selected),this.options.onActivate.goTo||this.options.onActivate.select)for(var e=0;ethis._index;var e=0,n=0;this._index=Math.min(this._index,this.count);for(var o=this._index;o!=t;)o>this.count?o=1:(o++,e++);for(o=this._index;o!=t;)o<1?o=this.count:(o--,n++);return!!(this.options.preferForward&&1this.count?i=1:i+o<1?i=this.count:i+=o;return i},_loopCount:function(t,e,n){n=Math.min(n,this.count);for(var o=t?1:-1,i=e,r=0;i!=n;)r++,i+o>this.count?i=1:i+o<1?i=this.count:i+=o;return r},_resetPos:function(t){this._canCSS3.transform&&this._canCSS3.transition?t.css(this._canCSS3.transform,""):"horz"==this.options.dir?t.css("left",""):t.css("top","")},_removeStates:function(){this._children.removeClass(this.options.states.visible),this._children.removeClass(this.options.states.partiallyVisible)},_setState:function(t,e){switch(e){case"visible":t.addClass(this.options.states.visible),t.addClass(this.options.states.seen),this.callChildMethod(t,"visible",!0);break;case"invisible":t.removeClass(this.options.states.visible),this.callChildMethod(t,"visible",!1);break;case"partial":t.addClass(this.options.states.partiallyVisible),this.callChildMethod(t,"visible",!1)}},_posElm:function(t,e,n,o){this._elms[n]||(this._elms[n]=0);var i=o?this._elms[n]+e:e;this._canCSS3.transform&&this._canCSS3.transition?this._canCSS3.can3D?"horz"==this.options.dir?t.css(this._canCSS3.transform,"translate3d("+i+"px,0,0)"):t.css(this._canCSS3.transform,"translate3d(0,"+i+"px,0)"):"horz"==this.options.dir?t.css(this._canCSS3.transform,"translate("+i+"px,0)"):t.css(this._canCSS3.transform,"translate(0,"+i+"px)"):"horz"==this.options.dir?t.css("left",i+"px"):t.css("top",i+"px"),this._elms[n]=i},_preloadNext:function(){if(this.options.preloadNext){var t=this._visible+(this._index-1),e=this._loopIndex(!0,t,1),n=this._children.eq(e-1);this.callChildMethod(n,"preload",!0)}},_measureElements:function(t,e,n){for(var o=0,i=(this.options.dir,0);ithis.count&&(r=1),r<1&&(r=this.count),o+=this._measureElement(r-1)}return t?0-o:o},_moveElements:function(t,e,n){var o=this._container,i=this;if(this._containerPos==t)return i._canCSS3.transform&&i._canCSS3.transitionDuration&&(o.css(i._canCSS3.transitionTimingFunction,""),o.css(i._canCSS3.transitionDuration,"")),void(e&&e());if(this._containerPos=t,i.options.animationStartCallback(),n)if(i._canCSS3.transform&&i._canCSS3.transitionDuration){s=i._canCSS3.can3D?"horz"==i.options.dir?"translate3d("+t+"px,0,0)":"translate3d(0, "+t+"px,0)":"horz"==i.options.dir?"translateX("+t+"px)":"translateY("+t+"px";o.css(i._canCSS3.transform,s),o.css(i._canCSS3.transitionTimingFunction,i.options.easing),o.css(i._canCSS3.transitionDuration,i.options.animDuration+"ms"),o.off().on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){o.css(i._canCSS3.transitionTimingFunction,""),o.css(i._canCSS3.transitionDuration,""),e&&e(),i.options.animationEndCallback()})}else{var r={};"horz"==i.options.dir?r.left=t+"px":r.top=t+"px",o.animate(r,i.options.animDuration,"swing",function(){e&&e(),i.options.animationEndCallback()})}else{if(i._canCSS3.transform&&i._canCSS3.transitionDuration){var s=i._canCSS3.can3D?"horz"==i.options.dir?"translate3d("+t+"px,0,0)":"translate3d(0, "+t+"px,0)":"horz"==i.options.dir?"translateX("+t+"px)":"translateY("+t+"px";o.css(i._canCSS3.transform,s)}else"horz"==i.options.dir?o.css("left",t+"px"):o.css("top",t+"px");e&&e()}},_measureElement:function(t){var e,n="horz"==this.options.dir,o=this._children.eq(t),i=o[0].getBoundingClientRect().height;return o.css("display","block"),n?e=o.outerWidth(!0):(e=o.outerHeight(!0),i&&e-i<=1&&(e=i),i||(e=o.outerHeight(!0)-1)),o.css("display",""),e},_elmSize:function(){return"horz"==this.options.dir?this.element.width():this.element.height()},_animate:function(t){var e=this;this._animating=!0,this._layoutManager.focus(t,!0,function(){e._setIndex(t)})},_setIndex:function(t){this._index=t,this._track("change",{index:this._index,canNext:this.canNext(),canPrev:this.canPrev(),visible:this._visible,count:this.count}),this._animating=!1,this._preloadNext(),this._onFinish()},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"carousel",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-carousel"),this._removeEmptyAttributeHelper(this.element);var t=this._children;t.removeClass("amp-slide"),t.removeClass(this.options.states.visible),t.removeClass(this.options.states.partiallyVisible),t.removeClass(this.options.states.selected),t.removeClass(this.options.states.seen);for(var e=0;eMath.abs(i)?this.moveDir="horz":this.moveDir=l.options.dir),l.options.dir!=this.moveDir)return!0;var r="horz"==l.options.dir?e:n;return l._moveElements(r,null,!1),l.options.loop&&this.checkDuplicate(r),l.options.dir!=this.moveDir&&void 0},n.checkDuplicate=function(t){t-this.metrics[this.lastOne-1].size<0-(this.allSize-l._elmSize())&&this.duplicateSlide(!0),0-t-this.metrics[0].size<=0-this.duplicationOffsets.leftSize&&this.duplicateSlide(!1)},n.duplicateSlide=function(t){if(t){var e=l._numToIndex(l._index-1+l.count+this.duplicationOffsets.right+1)-1,n=l._children.eq(e).clone();l._container.append(n);var o="horz"==l.options.dir?n.width():n.height(),i=this.allSize;l._posElm(n,i,this.count+this.duplicated.length),this.duplicated.push(n),this.duplicationOffsets.right++,this.duplicationOffsets.rightSize+=o,this.lastOne=e+1,this.allSize+=o}else e=l._numToIndex(l._index-1-this.duplicationOffsets.left)-1,n=l._children.eq(e).clone(),l._container.append(n),o="horz"==l.options.dir?n.width():n.height(),i=0-this.duplicationOffsets.leftSize-o,l._posElm(n,i,this.count+this.duplicated.length),this.duplicated.push(n),this.duplicationOffsets.left++,this.duplicationOffsets.leftSize+=o},n.stop=function(t){if(l._movedCounter=0,r(window).off("touchmove",r.proxy(this.move,this)),r(window).off("touchcancel",r.proxy(this.stop,this)),r(window).off("touchend",r.proxy(this.stop,this)),r(window).off("mouseup",r.proxy(this.stop,this)),this.moveDir=null,this.moved&&!this.changed){if(l.preventStop)return void(l.preventStop=!1);var e=this.findNearest(),n=e.index+1;if(n==l._index){var o=this.startPos-l._containerPos;return Math.abs(o)>=l.options.gesture.distance?0=l.count;)r-=l.count;var s=l._children.eq(r),a=l._measureElement(r);a+e<=l._elmSize()?l._setState(s,"visible"):e=a.options.gesture.distance)if(o<0){if(a.canNext())return void a.next()}else if(a.canPrev())return void a.prev();this.transform(),this.changed=!0}},n.modify=function(){var t,e,n;for(this.xOffset=a._container.width()/2-a._children.eq(0).width()/2,this.yOffset=a._container.height()/2-a._children.eq(0).height()/2,this.panelSize=this.isHorizontal?a._children.eq(0).width():a._children.eq(0).height(),this.rotateFn=this.isHorizontal?"rotateY":"rotateX",this.theta=360/this.panelCount,this.radius=Math.round(this.panelSize/2/Math.tan(Math.PI/this.panelCount)),delete this.styles,delete this.angles,this.styles=[],this.angles=[],n=0;n')),this.element.hide(),this.options.insertAfter?this.options.insertAfter.prepend(this.loading):this.element.parent().append(this.loading),this.element.attr("src",""),this.element.attr("src",t),e&&(this.element.attr("srcset",""),this.element.attr("srcset",e))},visible:function(t){if(t&&t!=this._visible&&"visible"==this.options.preload){if(this.loaded||this.loading)return;this.newLoad()}this._visible=t},load:function(t){this.loaded||this.loading||this.newLoad()},preload:function(){this.element.parent().hasClass("amp-spin")||this.newLoad()},loaded:!1,_loaded:function(){this._loadedHistory.push(this.element.attr("src")),this._track("loaded",!0),this.loaded=!0,this.loading&&this.loading.remove(),this.element.show()},_failLoad:function(){this.options.errImg?this.element.attr("src",this.options.errImg):window.amp&&.conf&&.conf.err_img&&this.element.attr("src",amp.conf.err_img)},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"image",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-image"),this.loading&&this.loading.remove(),this.element.css("display",""),this._removeEmptyAttributeHelper(this.element)},_removeEmptyAttributeHelper:function(t,e){for(var n=e||["class","style"],o=0,i=n.length;o'),this.parent=this.element.parent(),this.parent.prepend(this.loading),this.element.wrap('
'),this.overflow=this.element.parent(),this.wrapper=f('
'),this.imgs=[];var e=0;do{var n=f('');n.css(m),this.wrapper.append(n),this.imgs.push(n),e++}while(e<(this._cycle&&this._cycle.len));if(this.options.responsive&&this.element.css({height:"auto",width:"100%",maxWidth:"100%"}),this.options.target){this.mark=this.options.map?{name:"map",inner:"inner"}:{name:"box",inner:"wrapper"};try{this[this.mark.name]=f("body").find(this.options.target)}catch(t){this[this.mark.name]=!1}this[this.mark.name]&&0'),"map"==this.mark.name?(this[this.mark.name].addClass("amp-zoom-map"),this[this.mark.inner]=f('
'),this[this.mark.inner].append(f('')),this[this.mark.inner].append(this.lens)):(this[this.mark.name].addClass("amp-zoom-container"),this.parent.append(this.lens))),this[this.mark.inner].hide(),this[this.mark.name].append(this[this.mark.inner]),this[this.mark.inner].addClass(this.options.states.inactive),this[this.mark.inner][0].relatedUUID=this.uuid):this[this.mark.name]=!1}this.box||(this.overflow.append(this.wrapper),this.canHideEl=!!f.amp.ampImage),this.target=this.imgs[0],this._setZoomCursor(this.parent),this.parent.addClass(this.options.states.inactive),"created"!=this.options.preload.image&&!this.element[0].src||this._loadImage(),"created"==this.options.preload.zoomed&&this._loadZoomed()},_onImageLoad:function(){if(!this._imageLoaded){this._track("loaded",!0),this._imageLoaded=!0,this._imageLoading=!1,this._originalImage=this._getNaturalSize(this.element[0].src);var t,r=this;this._calcSize(),this.options.responsive&&f(window).bind("resize",(t=r,function(){return t.zoomed&&t.zoom(!1),t._calcSize()})),this.moved=!1,this.canTouch=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),this.zoomBy=1,this.pos={start:{x:0,y:0},last:{x:0,y:0},cur:{x:0,y:0}};function e(){function n(t){return r.moved=!0}function o(t){return i(),!0}var i=function(t){if(r.pos.cur=r.pos.last,r.mousedown=!1,r.parent.off(r.canTouch?"touchmove":"mousemove",f.proxy(n,r)),r.canTouch||r.parent.off("mouseleave",f.proxy(o,r)),r.parent.off(r.canTouch?"touchend":"mouseup",f.proxy(i,r)),!r.moved)return r.toggle(t)};r.parent.on(r.canTouch?"touchstart":"mousedown",f.proxy(function(t){r.zoomed&&(t.stopPropagation(),t.preventDefault()),r.mousedown=!0;var e=r._getEvent(t);r.pos.start={x:e.pageX,y:e.pageY},setTimeout(function(){r.parent.on(r.canTouch?"touchmove":"mousemove",f.proxy(n,r)),r.parent.on(r.canTouch?"touchend":"mouseup",f.proxy(i,r))},1),r.canTouch||r.parent.on("mouseleave",f.proxy(o,r)),r.moved=!1;t.timeStamp;return r.startTouchEvent=t,!0},r))}if(this.canTouch){if("disable"==this.options.activate.touch)return!1;if("doubleTap"==this.options.activate.touch){this._lastEvent="";var n=function(t){r.parent.on("touchend touchcancel",f.proxy(o,r)),this.startTouchEvent=t;t=this._getEvent(t);r.pos.start={x:t.pageX,y:t.pageY},t.timeStamp=(new Date).getTime();var e=t.timeStamp-(this._lastEvent&&this._lastEvent.timeStamp)||0,n=20i.w&&(r.lw=i.w-r.dl),r.lh+r.dt>i.h&&(r.lh=i.h-r.dt),t.width(r.lw),t.height(r.lh),r.lwh=r.lw/2,r.lhh=r.lh/2,r.dlh=r.dl/2,r.dth=r.dt/2,r},_loadZoomed:function(){if(!this._imageLoaded)return"none"!=this.options.preload.zoomed&&(this._loadZoomedPromise=!0),void this._loadImage();if(!this._zoomLoaded&&!this._zoomLoading){var n=this;this._zoomLoading=!0,this._zoomLoaded=!1,this._toLoadCount=this.imgs.length,this._zoomLoadedCount=0,this._track("startPreload");function o(t){n._zoomLoadedCount++,n._zoomLoadedCount==n._toLoadCount&&(n._zoomLoaded=!0,n._zoomLoading=!1,n.loading.hide(),n._track("preloaded"),n._calcSize())}f.each(this.imgs,function(t,e){e.on("load",o),e[0].src=n._getUrl(n.options.zoom[t])})}},_checkLoaded:function(t){var e=this,n=!1;this._zoomLoading||this._loadZoomed(),clearInterval(this.interval),this.interval=setInterval(function(){e._zoomLoaded?(clearInterval(e.interval),e.zoom(e.zoomed,t,!0)):e._zoomLoading&&!n&&(e.canHideEl&&e.element.css({opacity:0}),n=!0)},50)},_pinchZoomStart:function(t){var e=this;this.zoomed=!0,this.options.fade?this.target.animate({opacity:1}):this.target.css({opacity:1}),this.target.show();var n={pw:this.overflow.width(),ph:this.overflow.height(),po:this.parent.offset(),mw:0,mh:0,lens:null};return n.tw=1*n.pw,n.th=1*n.ph,this.wrapper.css({width:this.overflow.width(),height:this.overflow.height()}),this.map&&(n.mw=this.map.width(),n.mh=n.mw*(this.element.height()/this.element.width()),n.mo=this.map.offset(),this.inner.height(n.mh),this.map.show(),this.lens&&(n.lens=this._makeLens(this.lens,n.mw,n.mh,1,{w:n.mw,h:n.mh})),this._mapEnd=function(t){e.inner.off("touchmove",f.proxy(e._mapMove,e)),e.inner.off("touchend",f.proxy(e._mapEnd,e))},this._mapMove=function(t){t.preventDefault(),t.stopPropagation(),e._mouseMove(e._getEvent(t),n.pw,n.ph,n.tw,n.th,e.map.offset(),null,null,n.mw,n.mh,n.lens,!0)},this._mapStart=function(t){t.preventDefault(),t.stopPropagation(),e._mouseMove(e._getEvent(t),n.pw,n.ph,n.tw,n.th,e.map.offset(),null,null,n.mw,n.mh,n.lens,!0),this.inner.on("touchmove",f.proxy(e._mapMove,e)),this.inner.on("touchend",f.proxy(e._mapEnd,e))},this.inner.on("touchstart",f.proxy(this._mapStart,this)),this.inner.removeClass(this.options.states.inactive).addClass(this.options.states.active),this.inner.show(),this.lens&&this.lens.show()),this._parentMove=function(t){return e.hasPinchEnded?!!(t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&1!=t.originalEvent.touches.length)||(t.preventDefault(),1!==this.zoomBy&&t.stopPropagation(),void e._mouseMove(e._getEvent(t),n.pw,n.ph,n.tw,n.th,n.po,null,null,n.mw,n.mh,n.lens)):(t.stopPropagation(),!0)},this.parent.on("touchmove",f.proxy(this._parentMove,this)),n},_pinchZoom:function(t,e,n,o){e==this.maxZoom?this._track("maxZoom",{domEvent:t,scale:e,center:n}):1==e&&this._track("minZoom",{domEvent:t,scale:e,center:n}),o.tw=o.pw*e,o.th=o.ph*e,this.zoomBy=e,this.wrapper.css({width:o.tw,height:o.th}),this.lens&&(o.lens=this._makeLens(this.lens,o.mw,o.mh,e,{w:o.mw,h:o.mh})),this._mouseMove({currentTarget:t.currentTarget,pageX:n.x,pageY:n.y},o.pw,o.ph,o.tw,o.th,o.po,null,null,o.mw,o.mh,o.lens)},_mouseMove:function(t,e,n,o,i,r,s,a,l,c,u,p){var h,d,f,m,v,y=s?o-e+(e-s):o-e,g=a?i-n+(n-a):i-n;if(this.init&&this.options.pan){if(!(this.mousedown||this.canTouch||p))return void(this.panning=!1);if(this.pinching)f=(h=(this.startPos.x+(this.pos.start.x-r.left))/this.startZoom)/e*y,m=(d=(this.startPos.y+(this.pos.start.y-r.top))/this.startZoom)/n*g;else{this.panning=!0;var _=this.pos.start.x-t.pageX,b=this.pos.start.y-t.pageY;h=((f=_+this.pos.cur.x)+e/2)/(o/e),d=((m=b+this.pos.cur.y)+n/2)/(i/n)}}else this.init=!0,this.panning=!1,f=(h=t.pageX-r.left)/e*y,m=(d=t.pageY-r.top)/n*g,this.pos.cur.x=this.pos.last.x||f,this.pos.cur.y=this.pos.last.y||m;if(this.lens){if(this.box){this.box[0].lastChild.relatedUUID!=this.uuid&&(this.box.append(this.wrapper),this.wrapper.show().siblings().hide());var w=e,x=n,T=h-u.lwh-u.dlh,C=d-u.lhh-u.dth;f=(T+u.dlh)*this.zoomBy-u.lw/e,m=(C+u.dth)*this.zoomBy-u.lh/n,h=(v=this._setBounds(h,d,e,n,0,0)).x,d=v.y}else if(p){this.panning&&(h=t.pageX-r.left,d=t.pageY-r.top);w=l,x=c,T=h-u.lwh-u.dlh,C=d-u.lhh-u.dth;f=((T+u.dlh)*this.zoomBy-u.lw/e)*e/l,m=((C+u.dth)*this.zoomBy-u.lh/n)*n/c,this.pos.cur={x:f,y:m}}else if(this.map){if(this.map[0].lastChild.relatedUUID!=this.uuid&&(this.map.append(this.inner),this.inner.show().siblings().hide()),this.panning){T=h/(e/l)-u.lwh-u.dth;C=d/(n/c)-u.lhh-u.dth}else{var E=h/(e/u.lw),k=d/(n/u.lh),T=h/(e/l)-E-u.dlh;C=d/(n/c)-k-u.dth}T=(v=this._setBounds(T,C,l-u.lw-u.dl,c-u.lh-u.dt,0,0)).x,C=v.y}(this.box||p)&&(h+u.lwh+u.dlh>=w&&(T=w-u.lw-u.dl),d+u.lhh+u.dth>=x&&(C=x-u.lh-u.dt),h-u.lwh-u.dlh<=0&&(T=0),d-u.lhh-u.dth<=0&&(C=0)),this.lens.css({top:C+"px",left:T+"px"})}f=(v=this._setBounds(f,m,y,g,0,0)).x,m=v.y,this.pos.last={x:f,y:m},this.lastPos={x:f,y:m},this.oldTarget&&this.oldTarget.css({top:-m+"px",left:-f+"px"}),this.target.css({top:-m+"px",left:-f+"px"}),this._track("move",{domEvent:t,pos:{x:h/e,y:d/n}})},_calcSize:function(){var t;if(this.options.responsive&&this.options.width&&this.options.height&&"auto"!=this.options.width&&"auto"!=this.options.height?(t=this.element.width()*(this.options.height/this.options.width),this.parent.height(t),this.overflow.height(t),0!=this.element.height()&&t>this.element.height()&&this.overflow.height(this.element.height())):(this.options.width&&this.parent.width(this.options.width),this.options.height&&this.parent.height(this.options.height)),this.map){var e=this.map.width()*(this.element.height()/this.element.width());this.inner.height(e)}},_getUrl:function(t){if(this.options.url)return this.options.url;var e=this.element.attr("src")||this.element.attr("data-amp-src");if(e){var n=this._cycle?t||1:this.options.zoom;e=this._cleanUrl(e);var o=this.options.transforms;if(this._cycle)o=o[f.inArray(t,this.options.zoom)];return e=o?this._setTransforms(e,o):e,e=this._setWidth(e,{h:this._originalImage.height*n,w:this._originalImage.width*n})}},_getWidth:function(t){if(window.amp&&.di)return amp.di.width(t);if(!(t=t.split("?"))[1])return!1;for(var e=t[1].split("&"),n=0;n'),this._imageLoading=!0;var t=this.element[0].src||this.element.attr("data-amp-src");this.element.on("load",f.proxy(this._onImageLoad,this)),this.element[0].src="",this.element[0].src=t}},_getNaturalSize:function(t){return{width:this.element[0].naturalWidth,height:this.element[0].naturalHeight}},_setTransforms:function(t,e){return-1==t.indexOf("?")?t+"?"+e:t+"&"+e},_setBounds:function(t,e,n,o,i,r){return n<=t&&(t=n),o<=e&&(e=o),t<=i&&(t=i),e<=r&&(e=r),{x:t,y:e}},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"zoom",t,e)},_setCursor:function(t,e){return"string"!=typeof t&&(t="auto"),t.indexOf("zoom")<0?(e.css("cursor",t),!1):!document.documentMode&&("undefined"!=typeof InstallTrigger&&e.css("cursor","-moz-"+t),void(window.chrome&&e.css("cursor","-webkit-"+t)))},_setZoomCursor:function(t){var e=this.options.zoom;e.length?e.indexOf(this.zoomBy)===e.length-1?this._setCursor(this.options.cursor.active,t):this._setCursor(this.options.cursor.inactive,t):1');this.$parent.append(o),this.zoomArea=new a(this.element,this.$parent,t,this.options.transforms,this.options),n.onload=function(){o.remove(),i(e.zoomArea)}}},this))},this))},getImageSize:function(){return new Promise(s.proxy(function(t,e){this.element[0].naturalWidth&&this.element[0].naturalHeight?t({x:this.element[0].naturalWidth,y:this.element[0].naturalHeight}):this.element[0].width&&this.element[0].height&&t({x:this.element[0].width,y:this.element[0].height}),this.element.on("load",s.proxy(function(){this.element[0].naturalWidth&&this.element[0].naturalHeight?t({x:this.element[0].naturalWidth,y:this.element[0].naturalHeight}):this.element[0].width&&this.element[0].height&&t({x:this.element[0].width,y:this.element[0].height})},this)),this.element.on("error",s.proxy(function(){e({error:!0})},this))},this))},_invalidateParentSize:function(){this.parentSize={x:this.$parent.width(),y:this.$parent.height()}},state:function(){return{scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}},zoomInFull:function(t){this.setScale(this.options.scaleMax),this._track("zoomedInFull",{domEvent:t,scale:this.options.scaleMax,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep})},zoomIn:function(e){var n=this;if(!n.zoomArea)return n._setupZoomArea().then(function(t){t&&n.zoomIn(e)}),!1;if((this.options.scaleSteps||1==this.scale)&&(e&&e.preventDefault(),(this.options.activation.inGesture||!this.gestureDetect.detected)&&(!n.zoomArea||!n.zoomArea.animating))){this.scale==this.options.scaleMax&&this.options.events.zoomIn&&(n.zoomArea.$container.off(this.options.events.zoomIn,this.zoomIn),n.isZoomIn=!1);var t=this.scale;this.options.scaleSteps?(this.scale+=this.options.scaleStep,this.scale=Math.min(this.scale,this.options.scaleMax)):this.scale=this.options.scaleMax,t!=this.scale&&(this._track("zoomedIn",{domEvent:e,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}),this.setScale(this.scale).then(function(){setTimeout(s.proxy(function(){!n.isMoveOn&&n.options.events.move&&(n.zoomArea.$container.on(this.options.events.move,s.proxy(n._setPos,n)),n.isMoveOn=!0),n.options.scaleProcess?n.options.scaleSteps&&n.scale!=n.options.scaleMax?n.isZoomIn||(n.zoomArea.$container.on(this.options.events.zoomIn,s.proxy(n.zoomIn,n)),n.isZoomIn=!0):n.zoomArea.$container.on(n.options.events.zoomOut,s.proxy(n.zoomOut,n)):n.options.scaleSteps||n.zoomArea.$container.on(n.options.events.zoomOut,s.proxy(n.zoomOut,n))},n),500)}))}},zoomInClick:function(t){if(this.options.activation.inGesture||!this.gestureDetect.detected){var e=this.scale;this.scale+=this.options.scaleStep,this.scale=Math.min(this.scale,this.options.scaleMax),e!=this.scale&&(this._track("zoomedIn",{domEvent:t,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}),this.setScale(this.scale),setTimeout(s.proxy(function(){self.zoomArea.$container.on(this.options.events.move,s.proxy(this._setPos,this))},this),1))}},setScale:function(t){return this.scale=t,this._setupZoomArea().then(s.proxy(function(t){t&&(t.setScale(this.scale),this._invalidateParentSize())},this))},_setPos:function(t){"touchmove"===t.type&&(this._touchmove=!0),this._track("settingPos",{domEvent:t});var e=t?this._getPercentagePos(t):{x:.5,y:.5};this.zoomArea.setPosition(e.x,e.y)},zoomOut:function(t){if(this.zoomArea.allowClone=!1,this._touchmove)return!1;if(!this.zoomArea||!this.zoomArea.animating){var e=this.scale;this.options.scaleSteps?(this.scale-=this.options.scaleStep,this.scale=Math.max(this.scale,1)):this.scale=1,e!=this.scale&&(1==this.scale&&(this.options.events.move&&(this.zoomArea.$container.off(this.options.events.move,this._setPos),this.isMoveOn=!1),this.options.events.zoomOut&&this.zoomArea.$container.off(this.options.events.zoomOut,this.zoomOut)),this.zoomArea.setScale(this.scale),this._track("zoomedOut",{domEvent:t,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}))}},zoomOutFull:function(t){this.zoomArea&&(this.options.events.move&&self.zoomArea.$container.off(this.options.events.move,this._setPos),this.options.events.zoomOut&&self.zoomArea.$container.off(this.options.events.zoomOut,this.zoomOut),this.scale=1,this.zoomArea.setScale(1),this._track("zoomedOutFull",{domEvent:t,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}))},_convertEvent:function(t){return t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&(t.preventDefault(),t=t.originalEvent.touches[0]),t},_getPercentagePos:function(t){t=this._convertEvent(t);var e=this.$parent.offset();return{x:(t.pageX-e.left)/this.parentSize.x,y:(t.pageY-e.top)/this.parentSize.y}},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"zoom",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-zoom"),this._removeEmptyAttributeHelper(this.element)},_removeEmptyAttributeHelper:function(t,e){for(var n=e||["class","style"],o=0,i=n.length;othis.threshold&&(this.cbIn(),this.start=e),n<0-this.threshold&&(this.cbOut(),this.start=e)},e.prototype.remove=function(){this.end()},e.prototype.end=function(t){s(document).off("mousemove touchmove",this.move),s(document).off("mouseup touchend",this.end)},e.prototype.getFingers=function(t){return t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches),t};var n=function(t,e,n){this.multiFinger(e)||(e=this.convertEvent(e),this.start={x:e.pageX,y:e.pageY},this.zoomArea=t.zoomArea,this.cb=n,this.element=t.element,this.zoomArea.newSize||(this.zoomArea.newSize={x:this.zoomArea.$source.width(),y:this.zoomArea.$source.height()}),this.currentPixPos=this.zoomArea.getPixPos(),s(document).on("mousemove touchmove",s.proxy(this.move,this)),s(document).on("mouseup touchend",s.proxy(this.end,this)))};n.prototype.move=function(t){t.preventDefault();var e=(t=this.convertEvent(t)).pageX-this.start.x,n=t.pageY-this.start.y,o=this.zoomArea.getPercentFromPos(this.currentPixPos.x+e,this.currentPixPos.y+n);this.cb(o.x,o.y)},n.prototype.end=function(t){s(document).off("mousemove touchmove",this.move),s(document).off("mouseup touchend",this.end)},n.prototype.remove=function(){this.end()},n.prototype.multiFinger=function(t){return t.originalEvent&&t.originalEvent.touches&&1'),this.$preloader=new Image,s(this.$preloader).on("load",function(){t._preloaderImgLoaded=!0,t.allowClone&&!t.animating&&t.updateImageSrc(!0)}),this.$zoomed=s(''),this.$zoomedClone=s(''),this.$container.append(this.$zoomedClone),this.$container.append(this.$zoomed),this.$area.append(this.$container),this.$container.css({position:"absolute",top:0,left:0,bottom:0,right:0})},a.prototype.invalidatePosition=function(){this.setPosition(this.posPercentageX,this.posPercentageY)},a.prototype.setPosition=function(t,e){this.animating||(this.$zoomed.width()<=this.$area.width()&&(t=.5),this.$zoomed.height()<=this.$area.height()&&(e=.5),this.posPercentageX=t,this.posPercentageY=e,t=Math.min(1,Math.max(0,t)),e=Math.min(1,Math.max(0,e)),this.$zoomed.css("left",0-(this.$zoomed.width()-this.$area.width())*t+"px"),this.$zoomed.css("top",0-(this.$zoomed.height()-this.$area.height())*e+"px"),this.$zoomedClone.css("left",0-(this.$zoomed.width()-this.$area.width())*t+"px"),this.$zoomedClone.css("top",0-(this.$zoomed.height()-this.$area.height())*e+"px"))},a.prototype.getPixPos=function(t,e){return null==t&&null==e&&(t=this.posPercentageX,e=this.posPercentageY),t=Math.min(1,Math.max(0,t)),e=Math.min(1,Math.max(0,e)),{x:0-(this.newSize.x-this.$area.width())*t,y:0-(this.newSize.y-this.$area.height())*e}},a.prototype.getPercentFromPos=function(t,e){return{x:0-t/(this.newSize.x-this.$area.width()),y:0-e/(this.newSize.y-this.$area.height())}},a.prototype.animate=function(t,e,n){this.animating=!0,t.x<=this.$area.width()&&(e.x=this.getPixPos(.5,.5).x),t.y<=this.$area.height()&&(e.y=this.getPixPos(.5,.5).y);var o={width:t.x,height:t.y,left:e.x+"px",top:e.y+"px"};this.$zoomed.animate(o,500),this.$zoomedClone.animate(o,500),setTimeout(s.proxy(function(){n&&n(),this.animating=!1},this),this.isFF?1e3:600)},a.prototype.updateImageSrc=function(t){if(!t||!this.allowClone||!this._preloaderImgLoaded)return!1;this.setImage()},a.prototype.setScale=function(t,e){var n=this,o=t>this.scale;t!=this.scale&&(this.allowClone=o,n._preloaderImgLoaded=!1,tthis.scale&&(this.$zoomed.width(this.$source.width()),this.$zoomed.height(this.$source.height()),this.$zoomedClone.width(this.$source.width()),this.$zoomedClone.height(this.$source.height())),this.setPosition(.5,.5),this.show()),1==t?this.animate(this.newSize,this.getPixPos(),function(){n.hide(),n.updateImageSrc(!1)}):this.animate(this.newSize,this.getPixPos(),function(){n.updateImageSrc(o)}),this.scale=t,this.invalidateImageURL({x:this.originalSize.x*t,y:this.originalSize.y*t}))},a.prototype.show=function(){this.invalidatePosition(),s(window).off("resize",this.invalidatePosition),s(window).on("resize",s.proxy(this.invalidatePosition,this)),this.$container.show()},a.prototype.hide=function(){this.$container.hide(),s(window).off("resize",this.invalidatePosition)},a.prototype.invalidateImageURL=function(t){var e="";this.transforms&&this.transforms.length&&(e=this.transforms+"&");var n=this.initialSrc.split("?")[0]+"?"+e+"w="+t.x+"&h="+t.y;0!=t.x&&0!=t.y||(n=""),this.$preloader=new Image,this._preloaderImgLoaded=!0,this.$preloader.setAttribute("src",n)},a.prototype.setImage=function(){var t,e=this,n=e.$zoomed.attr("src");if(e._allowChangeClone&&e.$zoomedClone.attr("src",n),e.$preloader.complete&&e.$preloader.naturalWidth&&0'),this.element.append(this.pre)):"window"==this.options.preloadType&&(this.progressIndicator=u('
'),this.progressIndicator.find(".amp-progress-message").html(this.options.progressMessage||"Loading..."),this.progressIndicator.progress=n.progressIndicator.find(".amp-progress-bar"),this.progressIndicator.visible=!0,this.element.append(this.progressIndicator))));function e(t){if(n.loadedCount++,n.loadedCount>=n.toLoadCount&&!n._loaded)n._unsetLoadEvents(n.imgs),n._loaded=!0,n.pre&&n.pre.remove(),n.options.play.onLoad&&n.playRepeat(n.options.play.repeat),n._loading=!1,n.progressIndicator&&(n.progressIndicator.visible=!1,n.progressIndicator.remove()),n._track("preloaded");else{var e=n.loadedCount/n.toLoadCount*100;n.pre&&(n.pre.css("width",100-e+"%"),n.pre.css("left",e+"%")),n.progressIndicator&&n.progressIndicator.visible&&n.progressIndicator.progress.css("width",e+"%")}}t?(this.first=!0,this.toLoadCount-=1,this._callImageMethod(u(this.imgs[t-1]),e)):this._callImageMethod(this.imgs,e)}},_unsetLoadEvents:function(t){if(t)for(var e=0,n=t.length;eMath.abs(c)?this.moveDir="horz":this.moveDir=this.options.orientation,this._mouseMoveInfo.push(u),2t?this._track("looped","forwards"):this._track("looped","backwards"))},_endDrag:function(o,t,e,n,i){"horz"==this.moveDir&&(o.preventDefault(),o.stopPropagation()),this.moveDir=null;var r=this;if(!this._ended)if(this._started=!1,this._ended=!0,this._track("endMove",{domEvent:o}),this.$document.off(this.options.events.end,this._ubind),this.$document.off(this.options.events.move,this._mbind),clearInterval(this._timer),this._setCursor(this.options.cursor.inactive),this.element.removeClass(this.options.states.active).addClass(this.options.states.inactive),this.options.momentum&&2==this._mouseMoveInfo.length){var s=this._mouseMoveInfo,a=s[1].e.timeStamp-s[0].e.timeStamp,l="horz"==this.options.orientation?s[1].mx-s[0].mx:s[1].my-s[0].my;if(0==l||0==a)return;var c=l/a,u=this.options.friction,p="horz"==this.options.orientation?s[1].mx-e:s[1].my-n,h=0;if(Math.abs(p)e.length){if(!this.options.loop)return;t=1}else if(t<1){if(!this.options.loop)return;t=e.length}},_direction:function(t){for(var e=0,n=0,o=t;o!=this._index;)o>this._count?o=0:o++,e++;for(o=t;o!=this._index;)o<1?o=this._count:o--,n++;return nthis._count?i=1:i+o<1?i=this._count:i+=o;return i},_loopCount:function(t,e,n){for(var o=t?1:-1,i=e,r=0;i!=n;)r++,i+o>this._count?i=1:i+o<1?i=this._count:i+=o;return r},_animate:function(t){var e=this.element,n=e.children("li").eq(this._index-1),o=e.children("li").eq(t-1);this._index!=t&&(o.addClass(this.options.states.selected+" "+this.options.states.seen),this.isWebkit?(o.css("display","block"),n.css("display","none")):(o.css("zIndex",1),n.css("zIndex",-1)),n.removeClass(this.options.states.selected),this._setIndex(t),this._setIndex(t,!0))},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"spin",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-spin"),this.element.removeClass(this.options.states.active),this.element.removeClass(this.options.states.inactive),this.element.css("cursor",""),this.element.find(".amp-progress").remove(),this.element.find(".amp-loading").remove(),this._removeEmptyAttributeHelper(this.element);var t=this.element.children();t.removeClass("amp-frame"),t.removeClass(this.options.states.selected),t.removeClass(this.options.states.seen),t.css("display","");for(var e=0,n=t.length;e= 2.0.0-beta.1",7:">= 4.0.0"};var c="[object Object]";function u(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},s.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(t,e){if(i.toString.call(t)===c){if(e)throw new r.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(i.toString.call(t)===c)i.extend(this.partials,t);else{if(void 0===e)throw new r.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(i.toString.call(t)===c){if(e)throw new r.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]}};var p=l.default.log;e.log=p,e.createFrame=i.createFrame,e.logger=l.default},function(t,e){"use strict";e.__esModule=!0,e.extend=s,e.indexOf=function(t,e){for(var n=0,o=t.length;n":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,i=/[&<>"'`=]/;function r(t){return n[t]}function s(t){for(var e=1;e= 4.0.0"],main:function(t,e,n,o,i){var r,s=t.lambda,a=t.escapeExpression;return'
  • \n
    \n \n
    \n
  • \n'},useData:!0})),Handlebars.registerPartial("main-container-list-spin-3d",this.amp.templates["main-container-list-spin-3d"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a;return'
  • \n
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=e?e.set:e)?a.items:a,{name:"each",hash:{},fn:t.program(2,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n
  • \n"},2:function(t,e,n,o,i,r,s){var a,l,c=null!=e?e:t.nullContext||{},u=n.helperMissing,p="function",h=t.escapeExpression,d=t.lambda;return'
  • \n \n
  • \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
  • \n
    \n
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=e?e.spin:e)?a.set:a)?a.items:a,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n
  • \n\n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("main-container-list-spin",this.amp.templates["main-container-list-spin"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a,l,c=null!=e?e:t.nullContext||{},u=n.helperMissing,p="function",h=t.escapeExpression,d=t.lambda;return'
  • \n \n
  • \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
  • \n
    \n
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=e?e.spin:e)?a.set:a)?a.items:a,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n
  • \n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("main-container-list-video",this.amp.templates["main-container-list-video"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a,l,c=null!=e?e:t.nullContext||{},u=n.helperMissing,p="function",h=t.escapeExpression,d=t.lambda;return' \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a,l=t.lambda,c=t.escapeExpression;return'
  • \n
    \n \n
    \n
  • \n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("main-container-list",this.amp.templates["main-container-list"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.set:e,{name:"if",hash:{},fn:t.program(2,i,0,r,s),inverse:t.program(7,i,0,r,s),data:i}))?a:""},2:function(t,e,n,o,i,r,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=(a=null!=e?e.set:e)?a.items:a)?a[0]:a)?a.set:a,{name:"if",hash:{},fn:t.program(3,i,0,r,s),inverse:t.program(5,i,0,r,s),data:i}))?a:""},3:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-spin-3d",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],spin:e},data:i}))+"\n"},5:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-spin",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],spin:e},data:i}))+"\n"},7:function(t,e,n,o,i,r,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.media:e,{name:"if",hash:{},fn:t.program(8,i,0,r,s),inverse:t.program(10,i,0,r,s),data:i}))?a:""},8:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-video",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],video:e},data:i}))+"\n"},10:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-image",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],image:e},data:i}))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("nav-container-list-item",this.amp.templates["nav-container-list-item"]=Handlebars.template({1:function(t,e,n,o,i){var r;return'
    \n \n
    \n'},2:function(t,e,n,o,i){return"spin-3d"},4:function(t,e,n,o,i){return"spin"},6:function(t,e,n,o,i){return'
    \n \n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=t.lambda,l=t.escapeExpression;return"
  • \n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.item:e)?r.set:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.item:e)?r.media:r,{name:"if",hash:{},fn:t.program(6,i,0),inverse:t.noop,data:i}))?r:"")+' \n
    \n
  • \n'},useData:!0})),Handlebars.registerPartial("nav-container-list",this.amp.templates["nav-container-list"]=Handlebars.template({1:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"nav-container-list-item",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],item:e},data:i}))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n"},useData:!0,useDepths:!0})),this.amp.templates.desktopFullView=Handlebars.template({compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=n.helperMissing,l=t.escapeExpression,c=t.lambda;return'
    \n
    \n '+l((n.renderPartial||e&&e.renderPartial||a).call(s,"main-container-list",{name:"renderPartial",hash:{locale:null!=e?e.locale:e,templates:null!=e?e.templates:e,items:null!=e?e.items:e},data:i}))+'\n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n'},useData:!0}),this.amp.templates.desktopNormalView=Handlebars.template({1:function(t,e,n,o,i){var r;return"amp-"+t.escapeExpression("function"==typeof(r=null!=(r=n.view||(null!=e?e.view:e))?r:n.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"view",hash:{},data:i}):r)+"-view"},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=n.helperMissing,l=t.escapeExpression,c=t.lambda;return'
    \n
    \n '+l((n.renderPartial||e&&e.renderPartial||a).call(s,"main-container-list",{name:"renderPartial",hash:{locale:null!=e?e.locale:e,templates:null!=e?e.templates:e,items:null!=e?e.items:e},data:i}))+'\n
    \n Click to zoom\n \n
    \n
    \n
    \n
    \n \n
    \n'},useData:!0}),this.amp.templates.mobileNormalView=Handlebars.template({1:function(t,e,n,o,i){var r;return"mobile-"+t.escapeExpression("function"==typeof(r=null!=(r=n.view||(null!=e?e.view:e))?r:n.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"view",hash:{},data:i}):r)+"-view"},3:function(t,e,n,o,i){return'
    \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=t.escapeExpression,l=t.lambda;return'
    \n
    \n '+a((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(s,"main-container-list",{name:"renderPartial",hash:{locale:null!=e?e.locale:e,templates:null!=e?e.templates:e,items:null!=e?e.items:e},data:i}))+'\n
    \n
    \n \n \n
    \n
    \n \n
    \n'},useData:!0}),function(){"use strict";Handlebars.registerHelper("renderPartial",function(t,e){if(!t)return console.error("No partial name given."),"";var n=Handlebars.partials[t];return n?new Handlebars.SafeString(n(e.hash)):(console.error("Couldnt find the compiled partial: "+t),"")})}(window),function(t){Array.prototype.map||(Array.prototype.map=function(t,e){var n,o,i;if(null==this)throw new TypeError(" this is null or not defined");var r=Object(this),s=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(e&&(n=e),o=Array(s),i=0;io&&!(n=e[o](t));o++);return n}function c(t){return!(!t||void 0===t||null==t)}function u(t){var e="";return c(t=t||{})&&c(t.major)&&(e+=t.major,c(t.minor)&&(e+="."+t.minor,c(t.patch)&&(e+="."+t.patch))),e}function p(t){var e=u(t=t||{});return e=e&&" "+e,t&&c(t.family)?t.family+e:""}var h=forEach=function(t,e,n){if(null!=t)if(s&&t.forEach===s)t.forEach(e,n);else if(t.length===+t.length)for(var o=0,i=t.length;o'),e.deviceWidth=o.innerWidth,e.controller(),e.tags=[],e.IE=e.isIE()}var i="Amplience Viewer";t.prototype.controller=function(){var e=this;amp.init({client_id:e.settings.client,di_basepath:e.settings.imageBasePath,cache_window:e.settings.cacheWindow}),window.ecommBridge&&e.settings.ecommBridge&&this.bridgeConnector.initAll(),e.applyImgTemplates(),d(e.settings.target).append(e.wrapper);var t=e.initSetData();e.getSet(t).then(function(t){e.assets=t,e.renderInitialView()}).catch(function(t){console.warn(t,i+" unable to get set list.")})},t.prototype.initSetData=function(){var t=this.bridgeConnector.page;return null!==t&&this.settings.ecommBridge?t.mediaList&&t.mediaList.constructor===Array&&0 > li:eq("+r+") img").ampZoomInline(n.mainContainerZoomInline)}},t.prototype.destroyAmpWidgets=function(){for(var t=this.tags.length=0;t img").on("ampzoominlinezoomedin ampzoominlinezoomedinfull ampzoominlinezoomedout ampzoominlinezoomedoutfull",function(t,e){o.checkZoomIcons(),o.toggleZoomScrolling(d(this).parent().find(".amp-zoomed"))}).on("ampzoominlinezoomedin ampzoominlinezoomedinfull",function(t,e){o.lastZoomDir="In"}).on("ampzoominlinezoomedout ampzoominlinezoomedoutfull",function(t,e){o.lastZoomDir="Out"}),o.mainContainerList.find(".video").on("ampvideofullscreenchange",function(t,e){2!==d(t.target).ampVideo("state")&&e.player&&e.player.isFullscreen_&&setTimeout(function(){d(t.target).ampVideo("play")},1e3)})},t.prototype.checkMainContainerNavArrows=function(){if(!this.settings.ampConfigs.mainContainerCarousel.loop){var t=this.currentAssetIndex;this.wrapper.find(".main-container > .amp-js-nav").removeClass("disabled"),0===t&&this.wrapper.find(".main-container-prev").addClass("disabled"),t===this.assets.length-1&&this.wrapper.find(".main-container-next").addClass("disabled")}},t.prototype.checkNavContainerNavArrows=function(){if(!this.settings.ampConfigs.mainContainerCarousel.loop){this.wrapper.find(".nav-container > .amp-js-nav").removeClass("disabled");var t=this.getNavigationVisibleSlidesInfo();t.isFirst&&this.wrapper.find(".nav-container-prev").addClass("disabled"),t.isLast&&this.wrapper.find(".nav-container-next").addClass("disabled")}},t.prototype.checkView=function(){var t=this;t.isMobile()&&t.currentView!==t.views.mobileNormalView?t.renderView(t.views.mobileNormalView):t.isMobile()||t.currentView!==t.views.mobileNormalView||t.renderView(t.views.desktopNormalView)},t.prototype.getAmpConfigs=function(){var t=this,e=t.settings.ampConfigs;switch(t.currentView){case t.views.desktopNormalView:t.settings.view||t.isPortraitView||(e.navContainerCarousel.width=t.settings.ampConfigs.navElementsCount.forDesktop,e.navContainerCarousel.gesture.enabled=!0);break;case t.views.desktopFullView:e.navContainerCarousel.width=t.settings.ampConfigs.navElementsCount.forDesktopFull;break;case t.views.mobileNormalView:var n=t.wrapper.width(),o=t.assets.length*e.navElementsWidthPxMobile,i=2*parseFloat(t.wrapper.find(".nav-container").css("padding-left"),10);n .amp-js-nav");if(t.settings.view&&t.isPortraitView&&t.currentView===t.views.desktopNormalView)return n.find(".amp-slide.amp-visible").length===t.assets.length?(o.css({display:"none"}),n.addClass("amp-without-thumbs")):(o.css({display:"block"}),n.removeClass("amp-without-thumbs"),t.checkNavContainerNavArrowsStyle()),!1;t.assets.length<=e.navContainerCarousel.width?o.css({display:"none"}):o.css({display:"block"});var i=o.width(),r=100/e.navContainerCarousel.width,s=e.navContainerCarousel.width*e.navElementsWidthPx+4*i;t.currentView===t.views.mobileNormalView&&(t.assets.length<=e.navContainerCarousel.width?n.css("padding",0):(t.checkNavContainerNavArrowsStyle(),n.css("padding","")));var a=e.navContainerCarousel.width*e.navElementsWidthPxMobile+2*parseFloat(n.css("padding-left"),10);n.css({"max-width":t.currentView===t.views.mobileNormalView?a:s});var l=t.currentView!==t.views.mobileNormalView?"calc("+r+"% - 20px)":e.navElementsWidthPxMobile+"px";t.navContainerList.find(".amp-slide").css("width",l)},t.prototype.getNavigationVisibleSlidesInfo=function(){for(var t=this.navContainerList.find(".amp-slide"),e=t.length,n=0;n=t.length-o}},t.prototype.getMainVisibleSlidesInfo=function(){for(var t=this.mainContainerList.find(".amp-slide"),e=t.length,n=0;n=t.length-o}},t.prototype.zoomIn=function(){var t=this.getZoomSlide();0 > li:eq("+t+") .amp-zoom")},t.prototype.toggleZoomScrolling=function(t){var n=this,e=this.getZoomSlide().ampZoomInline("state");d.each(n._preventElements,function(t,e){e.off("touchmove",n._prevent)}),n._preventElements=[],n._preventElements.push(t),1===e.scale?t.off("touchmove",n._prevent):t.on("touchmove",n._prevent)},t.prototype.checkZoomIcons=function(){var n=this,t=n.getZoomSlide(),e=t.ampZoomInline("state");switch(n.currentView){case n.views.desktopFullView:var o=n.wrapper.find(".panel .plus"),i=n.wrapper.find(".panel .minus");o.add(i).removeClass("disabled"),0'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this,t,e));return n.updateShowing(),n.on(n.player(),"durationchange",n.updateShowing),n}s.default.registerComponent("LiveDisplay",l),n.default=l},{5:5,81:81}],11:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(2)),s=o(t(5)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.buildCSSClass=function(){return"vjs-mute-control "+i.prototype.buildCSSClass.call(this)},c.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},c.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;o<4;o++)a.removeElClass(this.el_,"vjs-vol-"+o);a.addElClass(this.el_,"vjs-vol-"+e)},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"volumechange",n.update),t.tech_&&!1===t.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(t,"loadstart",function(){this.update(),!1===t.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),n}l.prototype.controlText_="Mute",s.default.registerComponent("MuteToggle",l),n.default=l},{2:2,5:5,81:81}],12:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(2)),s=o(t(5)),a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,i=r.default),l.prototype.buildCSSClass=function(){return"vjs-play-control "+i.prototype.buildCSSClass.call(this)},l.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},l.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},l.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},l);function l(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"play",n.handlePlay),n.on(t,"pause",n.handlePause),n}a.prototype.controlText_="Play",s.default.registerComponent("PlayToggle",a),n.default=a},{2:2,5:5}],13:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(47)),s=o(t(49)),a=o(t(14)),l=o(t(5)),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),u=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(p,i=r.default),p.prototype.createEl=function(){var t=i.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},p.prototype.buildCSSClass=function(){return"vjs-playback-rate "+i.prototype.buildCSSClass.call(this)},p.prototype.createMenu=function(){var t=new s.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;0<=n;n--)t.addChild(new a.default(this.player(),{rate:e[n]+"x"}));return t},p.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},p.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),n=e[0],o=0;ot){n=e[o];break}this.player().playbackRate(n)},p.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},p.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0'+this.localize("Loaded")+": 0%"})},l.prototype.update=function(){function t(t,e){var n=t/e||0;return 100*(1<=n?1:n)+"%"}var e=this.player_.buffered(),n=this.player_.duration(),o=this.player_.bufferedEnd(),i=this.partEls_;this.el_.style.width=t(o,n);for(var r=0;re.length;c--)this.el_.removeChild(i[c-1]);i.length=e.length},l);function l(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this,t,e));return n.partEls_=[],n.on(t,"progress",n.update),n}s.default.registerComponent("LoadProgressBar",a),n.default=a},{5:5,81:81}],16:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r,s=i(t(5)),a=o(t(81)),l=o(t(83)),c=i(t(84)),u=i(t(100)),p=i(t(80)),h=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(d,r=s.default),d.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},d.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,o=t.pageX-a.findElPosition(this.el().parentNode).left;this.update(n,o)},d.prototype.update=function(t,e){var n=c.default(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var o=e-this.clampPosition_(e)+1,i=parseFloat(p.default(this.tooltip,"width"))/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(i-o)+"px"}},d.prototype.calculateDistance=function(t){return a.getPointerPosition(this.el().parentNode,t).x},d.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat(p.default(this.player().el(),"width")),n=parseFloat(p.default(this.tooltip,"width"))/2,o=t;return t'+this.localize("Progress")+": 0%"})},c.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",a.default(t,this.player_.duration()))},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.updateDataAttr(),n.on(t,"timeupdate",n.updateDataAttr),t.ready(s.bind(n,n.updateDataAttr)),e.playerOptions&&e.playerOptions.controlBar&&e.playerOptions.controlBar.progressControl&&e.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=e.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&n.addClass("vjs-keep-tooltips-inside"),n}r.default.registerComponent("PlayProgressBar",l),n.default=l},{5:5,83:83,84:84}],18:[function(t,e,n){"use strict";n.__esModule=!0;var o,i=t(5),r=(o=i)&&o.__esModule?o:{default:o};t(19),t(16);var s,a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,s=r.default),l.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,s.apply(this,arguments))}a.prototype.options_={children:["seekBar"]},r.default.registerComponent("ProgressControl",a),n.default=a},{16:16,19:19,5:5}],19:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=o(t(57)),r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),a=o(t(84)),l=o(t(80));t(15),t(17),t(20);var c,u=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(p,c=i.default),p.prototype.createEl=function(){return c.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},p.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat(l.default(this.player().el(),"width")),e=parseFloat(l.default(this.tooltipProgressBar.tooltip,"width")),n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(t-e/2)+"px",n.minWidth=Math.ceil(e/2)+"px",n.right="-"+e/2+"px"}},p.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",a.default(e,this.player_.duration()))},p.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return 1<=t?1:t},p.prototype.handleMouseDown=function(t){c.prototype.handleMouseDown.call(this,t),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},p.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},p.prototype.handleMouseUp=function(t){c.prototype.handleMouseUp.call(this,t),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},p.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},p.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},p);function p(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,c.call(this,t,e));return n.on(t,"timeupdate",n.updateProgress),n.on(t,"ended",n.updateProgress),t.ready(s.bind(n,n.updateProgress)),e.playerOptions&&e.playerOptions.controlBar&&e.playerOptions.controlBar.progressControl&&e.playerOptions.controlBar.progressControl.keepTooltipsInside&&(n.keepTooltipsInside=e.playerOptions.controlBar.progressControl.keepTooltipsInside),n.keepTooltipsInside&&(n.tooltipProgressBar=n.addChild("TooltipProgressBar")),n}u.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},u.prototype.playerEvent="timeupdate",r.default.registerComponent("SeekBar",u),n.default=u},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),a=o(t(84)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.createEl=function(){var t=i.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'
    \n '+this.localize("Progress")+": 0%"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},c.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=a.default(t,this.player_.duration());this.el_.setAttribute("data-current-time",e),this.tooltip.innerHTML=e},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.updateDataAttr(),n.on(t,"timeupdate",n.updateDataAttr),t.ready(s.bind(n,n.updateDataAttr)),n}r.default.registerComponent("TooltipProgressBar",l),n.default=l},{5:5,83:83,84:84}],21:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(22)),s=o(t(5)),a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,i=r.default),l.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+i.prototype.buildCSSClass.call(this)},l.prototype.createEl=function(){var t=i.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.apply(this,arguments))}s.default.registerComponent("CustomControlSpacer",a),n.default=a},{22:22,5:5}],22:[function(t,e,n){"use strict";n.__esModule=!0;var o,i,r=t(5),s=(i=r)&&i.__esModule?i:{default:i},a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,o=s.default),l.prototype.buildCSSClass=function(){return"vjs-spacer "+o.prototype.buildCSSClass.call(this)},l.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.apply(this,arguments))}s.default.registerComponent("Spacer",a),n.default=a},{5:5}],23:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(31)),s=o(t(5)),a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,i=r.default),l.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},l);function l(t,e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,l),e.track={player:t,kind:e.kind,label:e.kind+" settings",selectable:!1,default:!1,mode:"disabled"},e.selectable=!1;var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.addClass("vjs-texttrack-settings"),n.controlText(", opens "+e.kind+" settings dialog"),n}s.default.registerComponent("CaptionSettingsMenuItem",a),n.default=a},{31:31,5:5}],24:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(30)),s=o(t(5)),a=o(t(23)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.buildCSSClass=function(){return"vjs-captions-button "+i.prototype.buildCSSClass.call(this)},c.prototype.update=function(){var t=2;i.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(t=1),this.items&&this.items.length>t?this.show():this.hide()},c.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||t.push(new a.default(this.player_,{kind:this.kind_})),i.prototype.createItems.call(this,t)},c);function c(t,e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e,n));return o.el_.setAttribute("aria-label","Captions Menu"),o}l.prototype.kind_="captions",l.prototype.controlText_="Captions",s.default.registerComponent("CaptionsButton",l),n.default=l},{23:23,30:30,5:5}],25:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(30)),s=o(t(5)),a=o(t(31)),f=o(t(26)),m=o(t(49)),v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),y=o(t(91)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.buildCSSClass=function(){return"vjs-chapters-button "+i.prototype.buildCSSClass.call(this)},c.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var n=0;nCurrent Time 0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),n=a.default(t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML=''+e+" "+n)},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"timeupdate",n.updateContent),n}r.default.registerComponent("CurrentTimeDisplay",l),n.default=l},{5:5,81:81,84:84}],33:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),a=o(t(84)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.createEl=function(){var t=i.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),n=a.default(t);this.contentEl_.innerHTML=''+e+" "+n}},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"durationchange",n.updateContent),n.on(t,"timeupdate",n.updateContent),n.on(t,"loadedmetadata",n.updateContent),n}r.default.registerComponent("DurationDisplay",l),n.default=l},{5:5,81:81,84:84}],34:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(81)),a=o(t(84)),l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,i=r.default),c.prototype.createEl=function(){var t=i.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},c.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=a.default(this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML=''+t+" -"+e)}},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.on(t,"timeupdate",n.updateContent),n.on(t,"durationchange",n.updateContent),n}r.default.registerComponent("RemainingTimeDisplay",l),n.default=l},{5:5,81:81,84:84}],35:[function(t,e,n){"use strict";n.__esModule=!0;var o,i,r=t(5),s=(i=r)&&i.__esModule?i:{default:i},a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,o=s.default),l.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
    /
    "})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.apply(this,arguments))}s.default.registerComponent("TimeDivider",a),n.default=a},{5:5}],36:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}n.__esModule=!0;var s,i=o(t(47)),a=o(t(5)),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),c=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(u,s=i.default),u);function u(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var n=e.tracks,o=r(this,s.call(this,t,e));if(o.items.length<=1&&o.hide(),!n)return r(o);var i=l.bind(o,o.update);return n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),o.player_.on("dispose",function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i)}),o}a.default.registerComponent("TrackButton",c),n.default=c},{47:47,5:5,83:83}],37:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=o(t(57)),r=o(t(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83));t(39);var a,l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,a=i.default),c.prototype.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},c.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},c.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},c.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},c.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},c.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},c.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},c);function c(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,a.call(this,t,e));return n.on(t,"volumechange",n.updateARIAAttributes),t.ready(s.bind(n,n.updateARIAAttributes)),n}l.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},l.prototype.playerEvent="volumechange",r.default.registerComponent("VolumeBar",l),n.default=l},{39:39,5:5,57:57,83:83}],38:[function(t,e,n){"use strict";n.__esModule=!0;var o,i=t(5),r=(o=i)&&o.__esModule?o:{default:o};t(37);var s,a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,s=r.default),l.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},l);function l(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,s.call(this,t,e));return t.tech_&&!1===t.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(t,"loadstart",function(){!1===t.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),n}a.prototype.options_={children:["volumeBar"]},r.default.registerComponent("VolumeControl",a),n.default=a},{37:37,5:5}],39:[function(t,e,n){"use strict";n.__esModule=!0;var o,i,r=t(5),s=(i=r)&&i.__esModule?i:{default:i},a=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(l,o=s.default),l.prototype.createEl=function(){return o.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.apply(this,arguments))}s.default.registerComponent("VolumeLevel",a),n.default=a},{5:5}],40:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t(83)),s=o(t(5)),a=o(t(54)),l=o(t(53)),c=o(t(11)),u=o(t(37)),p=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(h,i=l.default),h.prototype.buildCSSClass=function(){var t;return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+i.prototype.buildCSSClass.call(this)+" "+t},h.prototype.createPopup=function(){var t=new a.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},h.prototype.handleClick=function(){c.default.prototype.handleClick.call(this),i.prototype.handleClick.call(this)},h.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],r.bind(this,this.handleMouseDown))},h.prototype.handleMouseDown=function(t){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},h.prototype.handleMouseUp=function(t){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},h);function h(t){function e(){t.tech_&&!1===t.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var n=1=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())},h);function h(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.focusedChild_=-1,n.on("keydown",n.handleKeyPress),n}a.default.registerComponent("Menu",p),n.default=p},{5:5,81:81,82:82,83:83}],50:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var i,r,s=o(t(81)),a=o(t(83)),l=t(5),c=(r=l)&&r.__esModule?r:{default:r},u="vjs-modal-dialog",p=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(h,i=c.default),h.prototype.createEl=function(){return i.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},h.prototype.buildCSSClass=function(){return u+" vjs-hidden "+i.prototype.buildCSSClass.call(this)},h.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},h.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},h.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},h.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},h.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},h.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},h.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var o=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=o,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},h.prototype.fill=function(){return this.fillWith(this.content())},h.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,o=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),s.insertContent(e,t),this.trigger("modalfill"),o?n.insertBefore(e,o):n.appendChild(e),this},h.prototype.empty=function(){return this.trigger("beforemodalempty"),s.emptyEl(this.contentEl()),this.trigger("modalempty"),this},h.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},h);function h(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this,t,e));return n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=s.createEl("div",{className:u+"-content"},{role:"document"}),n.descEl_=s.createEl("p",{className:u+"-description vjs-offscreen",id:n.el().getAttribute("aria-describedby")}),s.textContent(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}p.prototype.options_={temporary:!0},c.default.registerComponent("ModalDialog",p),n.default=p},{5:5,81:81,83:83}],51:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=i(t(5)),r=i(t(94)),l=i(t(95)),a=o(t(82)),h=o(t(81)),c=o(t(83)),u=o(t(85)),p=o(t(78)),d=i(t(86)),f=i(t(91)),m=t(90),v=t(79),y=o(t(89)),g=i(t(44)),_=i(t(46)),b=i(t(147)),w=i(t(138)),x=i(t(87)),T=i(t(69)),C=i(t(50)),E=i(t(62)),k=i(t(63)),S=i(t(76));t(61),t(59),t(55),t(68),t(45),t(1),t(4),t(8),t(41),t(71),t(60);var O,P=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],j=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(M,O=s.default),M.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),M.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(),O.prototype.dispose.call(this)},M.prototype.createEl=function(){var e=this.el_=O.prototype.createEl.call(this,"div"),t=this.tag;t.removeAttribute("width"),t.removeAttribute("height");var n=h.getElAttributes(t);if(Object.getOwnPropertyNames(n).forEach(function(t){"class"===t?e.className=n[t]:e.setAttribute(t,n[t])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused"),!0!==l.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=y.createStyleElement("vjs-styles-dimensions");var o=h.$(".vjs-styles-defaults"),i=h.$("head");i.insertBefore(this.styleEl_,o?o.nextSibling:i.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var r=t.getElementsByTagName("a"),s=0;se.start(0)?t:e.start(0))'}),o=f.default({data:t,width:"100%",height:"100%"},o),Object.getOwnPropertyNames(o).forEach(function(t){s+=t+'="'+o[t]+'" '}),'"+r+""},p.default(v),h.default.registerComponent("Flash",v),a.default.registerTech("Flash",v),n.default=v},{138:138,5:5,58:58,62:62,81:81,90:90,92:92,95:95}],60:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var u,r,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=((r=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],r),a=i(t(62)),l=i(t(5)),c=o(t(81)),h=o(t(92)),d=o(t(83)),f=i(t(86)),m=i(t(148)),v=o(t(78)),y=i(t(94)),g=i(t(95)),_=i(t(138)),b=i(t(87)),w=i(t(91)),x=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(T,u=a.default),T.prototype.dispose=function(){var o=this;["audio","video","text"].forEach(function(t){var e=w.default(t),n=o.el_[t+"Tracks"];n&&n.removeEventListener&&(n.removeEventListener("change",o["handle"+e+"TrackChange_"]),n.removeEventListener("addtrack",o["handle"+e+"TrackAdd_"]),n.removeEventListener("removetrack",o["handle"+e+"TrackRemove_"])),n&&o.off("loadstart",o["removeOld"+e+"Tracks_"])}),T.disposeMediaElement(this.el_),u.prototype.dispose.call(this)},T.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM){if(t){var e=t.cloneNode(!0);t.parentNode.insertBefore(e,t),T.disposeMediaElement(t),t=e}else{t=y.default.createElement("video");var n=this.options_.tag&&c.getElAttributes(this.options_.tag),o=b.default({},n);v.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete o.controls,c.setElAttributes(t,_.default(o,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}for(var i=["autoplay","preload","loop","muted"],r=i.length-1;0<=r;r--){var s=i[r],a={};void 0!==this.options_[s]&&(a[s]=this.options_[s]),c.setElAttributes(t,a)}return t},T.prototype.handleLateInit_=function(t){var o=this;if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=function(){function t(){e=!0}var e=!1;function n(){e||this.trigger("loadstart")}return o.on("loadstart",t),o.on("loadedmetadata",n),o.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",n),e||this.trigger("loadstart")}),{v:void 0}}();if("object"===(void 0===e?"undefined":s(e)))return e.v}var n=["loadstart"];n.push("loadedmetadata"),2<=t.readyState&&n.push("loadeddata"),3<=t.readyState&&n.push("canplay"),4<=t.readyState&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(t){this.trigger(t)},this)})}},T.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e select",id:"captions-background-color-%s",label:"Color",options:[d,_,g,v,f,b,y,m]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[w,x,T]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[_,d,g,v,f,b,y,m]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[w,x]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[T,x,w]}};C.windowColor.options=C.backgroundColor.options;var E,k=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(S,E=a.default),S.prototype.createElSelect_=function(t){var e=this,n=C[t],o=n.id.replace("%s",this.id_);return[l.createEl("label",{className:"vjs-label",textContent:n.label},{for:o}),l.createEl("select",{id:o},void 0,n.options.map(function(t){return l.createEl("option",{textContent:e.localize(t[1]),value:t[0]})}))]},S.prototype.createElFgColor_=function(){var t=l.createEl("legend",{textContent:this.localize("Text")}),e=this.createElSelect_("color"),n=l.createEl("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return l.createEl("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(e,n))},S.prototype.createElBgColor_=function(){var t=l.createEl("legend",{textContent:this.localize("Background")}),e=this.createElSelect_("backgroundColor"),n=l.createEl("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return l.createEl("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(e,n))},S.prototype.createElWinColor_=function(){var t=l.createEl("legend",{textContent:this.localize("Window")}),e=this.createElSelect_("windowColor"),n=l.createEl("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return l.createEl("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(e,n))},S.prototype.createElColors_=function(){return l.createEl("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},S.prototype.createElFont_=function(){var t=l.createEl("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),e=l.createEl("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),n=l.createEl("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return l.createEl("div",{className:"vjs-tracksettings-font"},void 0,[t,e,n])},S.prototype.createElControls_=function(){var t=l.createEl("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),e=l.createEl("button",{className:"vjs-done-button",textContent:"Done"});return l.createEl("div",{className:"vjs-tracksettings-controls"},void 0,[t,e])},S.prototype.createEl=function(){var t=l.createEl("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),e=l.createEl("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),n=l.createEl("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),o=l.createEl("div",void 0,{role:"document"},[e,n,t]);return l.createEl("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":e.id,"aria-describedby":n.id},o)},S.prototype.getValues=function(){var i=this;return u.reduce(C,function(t,e,n){var o=function(t,e){return r(t.options[t.options.selectedIndex].value,e)}(i.$(e.selector),e.parser);return void 0!==o&&(t[n]=o),t},{})},S.prototype.setValues=function(n){var o=this;u.each(C,function(t,e){!function(t,e,n){if(e)for(var o=0;o=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(c=!1,e.length!==this.activeCues_.length)c=!0;else for(var r=0;r',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),a.default.body.appendChild(i));for(var r={},s=0;sx',t=e.firstChild.href}return t},n.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},n.isCrossOrigin=function(t){var e=i.default.location,n=r(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},{94:94,95:95}],93:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function r(t,n,e){var o=void 0;if(n=n||{},"string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),r.getPlayers()[t])return n&&T.default.warn('Player "'+t+'" is already initialised. Options will not be applied.'),e&&r.getPlayers()[t].ready(e),r.getPlayers()[t];o=C.getEl(t)}else o=t;if(!o||!o.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(o.player||f.default.players[o.playerId])return o.player||f.default.players[o.playerId];r.hooks("beforesetup").forEach(function(t){var e=t(o,v.default(n));return!e||"object"!==(void 0===e?"undefined":s(e))||Array.isArray(e)?void r.log.error("please return an object in beforesetup hooks"):void(n=v.default(n,e))});var i=new f.default(o,n,e);return r.hooks("setup").forEach(function(t){return t(i)}),i}n.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(t(95)),l=i(t(94)),c=o(t(56)),u=o(t(89)),p=i(t(5)),h=i(t(42)),d=o(t(82)),f=i(t(51)),m=i(t(52)),v=i(t(87)),y=o(t(83)),g=i(t(72)),_=i(t(64)),b=i(t(77)),w=t(90),x=i(t(84)),T=i(t(86)),C=o(t(81)),E=o(t(78)),k=o(t(92)),S=i(t(80)),O=i(t(43)),P=i(t(133)),j=i(t(149)),M=i(t(62));if("undefined"==typeof HTMLVideoElement&&a.default.document&&a.default.document.createElement&&(l.default.createElement("video"),l.default.createElement("audio"),l.default.createElement("track")),r.hooks_={},r.hooks=function(t,e){return r.hooks_[t]=r.hooks_[t]||[],e&&(r.hooks_[t]=r.hooks_[t].concat(e)),r.hooks_[t]},r.hook=function(t,e){r.hooks(t,e)},r.removeHook=function(t,e){var n=r.hooks(t).indexOf(e);return!(n<=-1||(r.hooks_[t]=r.hooks_[t].slice(),r.hooks_[t].splice(n,1),0))},!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var A=C.$(".vjs-styles-defaults");if(!A){A=u.createStyleElement("vjs-styles-defaults");var I=C.$("head");I&&I.insertBefore(A,I.firstChild),u.setTextContent(A,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}c.autoSetupTimeout(1,r),r.VERSION="5.13.2",r.options=f.default.prototype.options_,r.getPlayers=function(){return f.default.players},r.players=f.default.players,r.getComponent=p.default.getComponent,r.registerComponent=function(t,e){M.default.isTech(e)&&T.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),p.default.registerComponent.call(p.default,t,e)},r.getTech=M.default.getTech,r.registerTech=M.default.registerTech,r.browser=E,r.TOUCH_ENABLED=E.TOUCH_ENABLED,r.extend=O.default,r.mergeOptions=v.default,r.bind=y.bind,r.plugin=m.default,r.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),P.default(r.options.languages,((n={})[t]=e,n))[t]},r.log=T.default,r.createTimeRange=r.createTimeRanges=w.createTimeRanges,r.formatTime=x.default,r.parseUrl=k.parseUrl,r.isCrossOrigin=k.isCrossOrigin,r.EventTarget=h.default,r.on=d.on,r.one=d.one,r.off=d.off,r.trigger=d.trigger,r.xhr=j.default,r.TextTrack=g.default,r.AudioTrack=_.default,r.VideoTrack=b.default,r.isEl=C.isEl,r.isTextNode=C.isTextNode,r.createEl=C.createEl,r.hasClass=C.hasElClass,r.addClass=C.addElClass,r.removeClass=C.removeElClass,r.toggleClass=C.toggleElClass,r.setAttributes=C.setElAttributes,r.getAttributes=C.getElAttributes,r.emptyEl=C.emptyEl,r.appendContent=C.appendContent,r.insertContent=C.insertContent,r.computedStyle=S.default,"object"===(void 0===n?"undefined":s(n))&&"object"===(void 0===e?"undefined":s(e))&&(e.exports=r),n.default=r},{133:133,149:149,42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,89:89,90:90,92:92,94:94,95:95}],94:[function(i,r,t){(function(t){var e=void 0!==t?t:"undefined"!=typeof window?window:{},n=i(96);if("undefined"!=typeof document)r.exports=document;else{var o=e["__GLOBAL_DOCUMENT_CACHE@4"];o=o||(e["__GLOBAL_DOCUMENT_CACHE@4"]=n),r.exports=o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{96:96}],95:[function(t,e,n){(function(t){"undefined"!=typeof window?e.exports=window:void 0!==t?e.exports=t:"undefined"!=typeof self?e.exports=self:e.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],96:[function(t,e,n){},{}],97:[function(t,e,n){var o=t(113)(Date,"now")||function(){return(new Date).getTime()};e.exports=o},{113:113}],98:[function(t,e,n){var g=t(126),_=t(97),b=Math.max;e.exports=function(o,i,t){function e(t,e){e&&clearTimeout(e),l=h=d=void 0,t&&(f=_(),c=o.apply(p,a),h||l||(a=p=void 0))}function r(){var t=i-(_()-u);t<=0||i]+>?)?/);return t=e[1]?e[1]:e[2],n=n.substr(t.length),t}function e(t){return g[t]}function o(t){for(;h=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(h[0],e);return t}function i(t,e){var n=_[t];if(!n)return null;var o=r.document.createElement(n);o.localName=n;var i=b[t];return i&&e&&(o[i]=e.trim()),o}for(var s,a=r.document.createElement("div"),l=a,c=[];null!==(s=t());)if("<"!==s[0])l.appendChild(r.document.createTextNode(o(s)));else{if("/"===s[1]){c.length&&c[c.length-1]===s.substr(2).replace(">","")&&(c.pop(),l=l.parentNode);continue}var u,p=m(s.substr(1,s.length-2));if(p){u=r.document.createProcessingInstruction("timestamp",p),l.appendChild(u);continue}var h=s.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(u=i(h[1],h[3])))continue;if(d=l,w[(f=u).localName]&&w[f.localName]!==d.localName)continue;h[2]&&(u.className=h[2].substr(1).replace("."," ")),c.push(h[1]),l.appendChild(u),l=u}var d,f;return a}function d(){}function f(t,e,n){var o=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)";o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),d.call(this),this.cue=e,this.cueDiv=h(t,e.text);var s={color:i,backgroundColor:r,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};o||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(s.direction=function(t){function i(t,e){for(var n=e.childNodes.length-1;0<=n;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?o[t.length=0]:n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}var e,n=[],o="";if(!t||!t.childNodes)return"ltr";for(i(n,t);o=r(n);)for(var s=0;sp&&(u=u<0?-1:1,u*=Math.ceil(p/c)*c),i<0&&(u+=""===o.vertical?a.height:a.width,r=r.reverse()),n.move(h,u)}else{var d=n.lineHeight/a.height*100;switch(o.lineAlign){case"middle":i-=d/2;break;case"end":i-=d}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(i,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(i,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(i,"%")})}r=["+y","-x","+x","-y"],n=new v(e)}var f=function(t,e){for(var n,o=new v(t),i=1,r=0;r","‎":"‎","‏":"‏"," ":" "},_={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},b={v:"title",lang:"lang"},w={rt:"ruby"},x=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];d.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},d.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(f.prototype=n(d.prototype)).constructor=f,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||o,height:t.height||e,bottom:t.bottom||o+(t.height||e),width:t.width||n}},e.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},e.convertCueToDOMTree=function(t,e){return t&&e?h(t,e):null};e.processCues=function(o,i,t){if(!o||!i||!t)return null;for(;t.firstChild;)t.removeChild(t.firstChild);var r=o.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",t.appendChild(r),function(t){for(var e=0;e>>0;if(0==o)return-1;var i=0;if(1t.height?"w="+amp.conf.default_size:"h="+amp.conf.default_size}}(),c=[{shortName:"cs",fullName:"grayscale",val:"gray"},{shortName:"dpi",fullName:"dpi",type:"number"},{shortName:"dpiFilter",fullName:"dpiFilter",type:"string"},{shortName:"resize",fullName:"resize",type:"boolean"},{shortName:"filter",fullName:"filter",type:"string"},{shortName:"upscale",fullName:"upscale",type:"boolean"},{shortName:"bg",fullName:"background",type:"string"},{shortName:"qlt",fullName:"quality",type:"number"},{shortName:"cm",fullName:"compositeMode",type:"string"},{shortName:"cs",fullName:"colourSpace",type:"string"},{shortName:"maxW",fullName:"maxWidth",type:"number"},{shortName:"maxH",fullName:"maxHeight",type:"number"},{shortName:"template",fullName:"template",type:"array"},{shortName:"w",fullName:"width",type:"number"},{shortName:"h",fullName:"height",type:"number"},{shortName:"fmt",fullName:"format",type:"string"},{shortName:"unsharp",fullName:"sharpen",type:"string"},{shortName:"crop",fullName:"crop",type:"string"},{shortName:"pcrop",fullName:"preCrop",type:"string"},{shortName:"img404",fullName:"missingImage",type:"string"},{shortName:"sm",fullName:"scaleMode",type:"string"},{shortName:"strip",fullName:"strip",type:"boolean"},{shortName:"orig",fullName:"original",type:"boolean"}],f=function(t,e,n,o){for(var i in t)if(t.hasOwnProperty(i))if(null!=t[i]&&"object"==typeof t[i]){if(("img"==t[i].type||"set"==t[i].type||"video"==t[i].type)&&n&&n.exclude){for(var r=!1,s=0;se.length){if(!this.options.loop)return t;for(;t>e.length;)t-=e.length}else if(t<1){if(!this.options.loop)return t;for(;t<1;)t+=e.length}return t},play:function(){var t=this;clearInterval(this.interval),this.interval=setInterval(function(){t.next()},this.options.delay),this._track("play",null)},pause:function(){clearInterval(this.interval),this._track("pause",null)},next:function(){this.goTo(this._index+1)},prev:function(){this.goTo(this._index-1)},redraw:function(){this._calcSize()},_calcSize:function(){var t;if(this.options.responsive&&this.options.width&&this.options.height&&"auto"!=this.options.width&&"auto"!=this.options.height)this.options.parentSize?(t=Math.round(this.element.parent().width()),(r=Math.round(t*(this.options.height/this.options.width)))>this.element.parent().height()&&(r=this.element.parent().height(),t=Math.round(r*(this.options.width/this.options.height))),this.element.width(t)):(t=Math.round(this.element.width()),r=Math.round(t*(this.options.height/this.options.width))),this.element.height(r),this.options.center&&(this.element.css("margin-left",this.element.parent().width()/2-t/2+"px"),this.element.css("margin-top",this.element.parent().height()/2-r/2+"px"));else{if(this.options.width&&"auto"!=this.options.width)this.element.width(this.options.width);else if("auto"==this.options.width){for(var e=0,n=0;nthis.count){if(!this.options.loop)return;for(;t>this.count;)t-=this.count;this._track("looped","forwards")}else if(t<1){if(!this.options.loop)return;for(;t<1;)t+=this.count;this._track("looped","backwards")}n||this._animate(t)}},_exeBinds:function(t,e){if(this._boundArray)for(var n=0;nthis.count){if(!this.options.loop)return this.count;for(;t>this.count;)t-=this.count}else if(t<1){if(!this.options.loop)return 1;for(;t<1;)t+=this.count}return t},bind:function(t){this._boundArray||(this._boundArray=[]),this._boundArray.push(t)},canPrev:function(){return this.options.loop||1"),this._container=this.element.children().eq(0),this._containerPos=0,this._children=this.element.children().eq(0).children(),this.count=this._children.length,this._checkCSS3(),this._index=Math.max(1,Math.min(this.options.start,this.count)),this._selectedIndex=this._index,this._children.addClass("amp-slide"),this._calcSize(),this._chooseLayoutManager(),this._children.eq(this._index-1).addClass(this.options.states.selected),this.options.onActivate.goTo||this.options.onActivate.select)for(var e=0;ethis._index;var e=0,n=0;this._index=Math.min(this._index,this.count);for(var o=this._index;o!=t;)o>this.count?o=1:(o++,e++);for(o=this._index;o!=t;)o<1?o=this.count:(o--,n++);return!!(this.options.preferForward&&1this.count?i=1:i+o<1?i=this.count:i+=o;return i},_loopCount:function(t,e,n){n=Math.min(n,this.count);for(var o=t?1:-1,i=e,r=0;i!=n;)r++,i+o>this.count?i=1:i+o<1?i=this.count:i+=o;return r},_resetPos:function(t){this._canCSS3.transform&&this._canCSS3.transition?t.css(this._canCSS3.transform,""):"horz"==this.options.dir?t.css("left",""):t.css("top","")},_removeStates:function(){this._children.removeClass(this.options.states.visible),this._children.removeClass(this.options.states.partiallyVisible)},_setState:function(t,e){switch(e){case"visible":t.addClass(this.options.states.visible),t.addClass(this.options.states.seen),this.callChildMethod(t,"visible",!0);break;case"invisible":t.removeClass(this.options.states.visible),this.callChildMethod(t,"visible",!1);break;case"partial":t.addClass(this.options.states.partiallyVisible),this.callChildMethod(t,"visible",!1)}},_posElm:function(t,e,n,o){this._elms[n]||(this._elms[n]=0);var i=o?this._elms[n]+e:e;this._canCSS3.transform&&this._canCSS3.transition?this._canCSS3.can3D?"horz"==this.options.dir?t.css(this._canCSS3.transform,"translate3d("+i+"px,0,0)"):t.css(this._canCSS3.transform,"translate3d(0,"+i+"px,0)"):"horz"==this.options.dir?t.css(this._canCSS3.transform,"translate("+i+"px,0)"):t.css(this._canCSS3.transform,"translate(0,"+i+"px)"):"horz"==this.options.dir?t.css("left",i+"px"):t.css("top",i+"px"),this._elms[n]=i},_preloadNext:function(){if(this.options.preloadNext){var t=this._visible+(this._index-1),e=this._loopIndex(!0,t,1),n=this._children.eq(e-1);this.callChildMethod(n,"preload",!0)}},_measureElements:function(t,e,n){for(var o=0,i=(this.options.dir,0);ithis.count&&(r=1),r<1&&(r=this.count),o+=this._measureElement(r-1)}return t?0-o:o},_moveElements:function(t,e,n){var o=this._container,i=this;if(this._containerPos==t)return i._canCSS3.transform&&i._canCSS3.transitionDuration&&(o.css(i._canCSS3.transitionTimingFunction,""),o.css(i._canCSS3.transitionDuration,"")),void(e&&e());if(this._containerPos=t,i.options.animationStartCallback(),n)if(i._canCSS3.transform&&i._canCSS3.transitionDuration){s=i._canCSS3.can3D?"horz"==i.options.dir?"translate3d("+t+"px,0,0)":"translate3d(0, "+t+"px,0)":"horz"==i.options.dir?"translateX("+t+"px)":"translateY("+t+"px";o.css(i._canCSS3.transform,s),o.css(i._canCSS3.transitionTimingFunction,i.options.easing),o.css(i._canCSS3.transitionDuration,i.options.animDuration+"ms"),o.off().on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){o.css(i._canCSS3.transitionTimingFunction,""),o.css(i._canCSS3.transitionDuration,""),e&&e(),i.options.animationEndCallback()})}else{var r={};"horz"==i.options.dir?r.left=t+"px":r.top=t+"px",o.animate(r,i.options.animDuration,"swing",function(){e&&e(),i.options.animationEndCallback()})}else{if(i._canCSS3.transform&&i._canCSS3.transitionDuration){var s=i._canCSS3.can3D?"horz"==i.options.dir?"translate3d("+t+"px,0,0)":"translate3d(0, "+t+"px,0)":"horz"==i.options.dir?"translateX("+t+"px)":"translateY("+t+"px";o.css(i._canCSS3.transform,s)}else"horz"==i.options.dir?o.css("left",t+"px"):o.css("top",t+"px");e&&e()}},_measureElement:function(t){var e,n="horz"==this.options.dir,o=this._children.eq(t),i=o[0].getBoundingClientRect().height;return o.css("display","block"),n?e=o.outerWidth(!0):(e=o.outerHeight(!0),i&&e-i<=1&&(e=i),i||(e=o.outerHeight(!0)-1)),o.css("display",""),e},_elmSize:function(){return"horz"==this.options.dir?this.element.width():this.element.height()},_animate:function(t){var e=this;this._animating=!0,this._layoutManager.focus(t,!0,function(){e._setIndex(t)})},_setIndex:function(t){this._index=t,this._track("change",{index:this._index,canNext:this.canNext(),canPrev:this.canPrev(),visible:this._visible,count:this.count}),this._animating=!1,this._preloadNext(),this._onFinish()},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"carousel",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-carousel"),this._removeEmptyAttributeHelper(this.element);var t=this._children;t.removeClass("amp-slide"),t.removeClass(this.options.states.visible),t.removeClass(this.options.states.partiallyVisible),t.removeClass(this.options.states.selected),t.removeClass(this.options.states.seen);for(var e=0;eMath.abs(i)?this.moveDir="horz":this.moveDir=l.options.dir),l.options.dir!=this.moveDir)return!0;var r="horz"==l.options.dir?e:n;return l._moveElements(r,null,!1),l.options.loop&&this.checkDuplicate(r),l.options.dir!=this.moveDir&&void 0},n.checkDuplicate=function(t){t-this.metrics[this.lastOne-1].size<0-(this.allSize-l._elmSize())&&this.duplicateSlide(!0),0-t-this.metrics[0].size<=0-this.duplicationOffsets.leftSize&&this.duplicateSlide(!1)},n.duplicateSlide=function(t){if(t){var e=l._numToIndex(l._index-1+l.count+this.duplicationOffsets.right+1)-1,n=l._children.eq(e).clone();l._container.append(n);var o="horz"==l.options.dir?n.width():n.height(),i=this.allSize;l._posElm(n,i,this.count+this.duplicated.length),this.duplicated.push(n),this.duplicationOffsets.right++,this.duplicationOffsets.rightSize+=o,this.lastOne=e+1,this.allSize+=o}else e=l._numToIndex(l._index-1-this.duplicationOffsets.left)-1,n=l._children.eq(e).clone(),l._container.append(n),o="horz"==l.options.dir?n.width():n.height(),i=0-this.duplicationOffsets.leftSize-o,l._posElm(n,i,this.count+this.duplicated.length),this.duplicated.push(n),this.duplicationOffsets.left++,this.duplicationOffsets.leftSize+=o},n.stop=function(t){if(l._movedCounter=0,r(window).off("touchmove",r.proxy(this.move,this)),r(window).off("touchcancel",r.proxy(this.stop,this)),r(window).off("touchend",r.proxy(this.stop,this)),r(window).off("mouseup",r.proxy(this.stop,this)),this.moveDir=null,this.moved&&!this.changed){if(l.preventStop)return void(l.preventStop=!1);var e=this.findNearest(),n=e.index+1;if(n==l._index){var o=this.startPos-l._containerPos;return Math.abs(o)>=l.options.gesture.distance?0=l.count;)r-=l.count;var s=l._children.eq(r),a=l._measureElement(r);a+e<=l._elmSize()?l._setState(s,"visible"):e=a.options.gesture.distance)if(o<0){if(a.canNext())return void a.next()}else if(a.canPrev())return void a.prev();this.transform(),this.changed=!0}},n.modify=function(){var t,e,n;for(this.xOffset=a._container.width()/2-a._children.eq(0).width()/2,this.yOffset=a._container.height()/2-a._children.eq(0).height()/2,this.panelSize=this.isHorizontal?a._children.eq(0).width():a._children.eq(0).height(),this.rotateFn=this.isHorizontal?"rotateY":"rotateX",this.theta=360/this.panelCount,this.radius=Math.round(this.panelSize/2/Math.tan(Math.PI/this.panelCount)),delete this.styles,delete this.angles,this.styles=[],this.angles=[],n=0;n')),this.element.hide(),this.options.insertAfter?this.options.insertAfter.prepend(this.loading):this.element.parent().append(this.loading),this.element.attr("src",""),this.element.attr("src",t),e&&(this.element.attr("srcset",""),this.element.attr("srcset",e))},visible:function(t){if(t&&t!=this._visible&&"visible"==this.options.preload){if(this.loaded||this.loading)return;this.newLoad()}this._visible=t},load:function(t){this.loaded||this.loading||this.newLoad()},preload:function(){this.element.parent().hasClass("amp-spin")||this.newLoad()},loaded:!1,_loaded:function(){this._loadedHistory.push(this.element.attr("src")),this._track("loaded",!0),this.loaded=!0,this.loading&&this.loading.remove(),this.element.show()},_failLoad:function(){this.options.errImg?this.element.attr("src",this.options.errImg):window.amp&&.conf&&.conf.err_img&&this.element.attr("src",amp.conf.err_img)},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"image",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-image"),this.loading&&this.loading.remove(),this.element.css("display",""),this._removeEmptyAttributeHelper(this.element)},_removeEmptyAttributeHelper:function(t,e){for(var n=e||["class","style"],o=0,i=n.length;o'),this.parent=this.element.parent(),this.parent.prepend(this.loading),this.element.wrap('
    '),this.overflow=this.element.parent(),this.wrapper=f('
    '),this.imgs=[];var e=0;do{var n=f('');n.css(m),this.wrapper.append(n),this.imgs.push(n),e++}while(e<(this._cycle&&this._cycle.len));if(this.options.responsive&&this.element.css({height:"auto",width:"100%",maxWidth:"100%"}),this.options.target){this.mark=this.options.map?{name:"map",inner:"inner"}:{name:"box",inner:"wrapper"};try{this[this.mark.name]=f("body").find(this.options.target)}catch(t){this[this.mark.name]=!1}this[this.mark.name]&&0'),"map"==this.mark.name?(this[this.mark.name].addClass("amp-zoom-map"),this[this.mark.inner]=f('
    '),this[this.mark.inner].append(f('')),this[this.mark.inner].append(this.lens)):(this[this.mark.name].addClass("amp-zoom-container"),this.parent.append(this.lens))),this[this.mark.inner].hide(),this[this.mark.name].append(this[this.mark.inner]),this[this.mark.inner].addClass(this.options.states.inactive),this[this.mark.inner][0].relatedUUID=this.uuid):this[this.mark.name]=!1}this.box||(this.overflow.append(this.wrapper),this.canHideEl=!!f.amp.ampImage),this.target=this.imgs[0],this._setZoomCursor(this.parent),this.parent.addClass(this.options.states.inactive),"created"!=this.options.preload.image&&!this.element[0].src||this._loadImage(),"created"==this.options.preload.zoomed&&this._loadZoomed()},_onImageLoad:function(){if(!this._imageLoaded){this._track("loaded",!0),this._imageLoaded=!0,this._imageLoading=!1,this._originalImage=this._getNaturalSize(this.element[0].src);var t,r=this;this._calcSize(),this.options.responsive&&f(window).bind("resize",(t=r,function(){return t.zoomed&&t.zoom(!1),t._calcSize()})),this.moved=!1,this.canTouch=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),this.zoomBy=1,this.pos={start:{x:0,y:0},last:{x:0,y:0},cur:{x:0,y:0}};function e(){function n(t){return r.moved=!0}function o(t){return i(),!0}var i=function(t){if(r.pos.cur=r.pos.last,r.mousedown=!1,r.parent.off(r.canTouch?"touchmove":"mousemove",f.proxy(n,r)),r.canTouch||r.parent.off("mouseleave",f.proxy(o,r)),r.parent.off(r.canTouch?"touchend":"mouseup",f.proxy(i,r)),!r.moved)return r.toggle(t)};r.parent.on(r.canTouch?"touchstart":"mousedown",f.proxy(function(t){r.zoomed&&(t.stopPropagation(),t.preventDefault()),r.mousedown=!0;var e=r._getEvent(t);r.pos.start={x:e.pageX,y:e.pageY},setTimeout(function(){r.parent.on(r.canTouch?"touchmove":"mousemove",f.proxy(n,r)),r.parent.on(r.canTouch?"touchend":"mouseup",f.proxy(i,r))},1),r.canTouch||r.parent.on("mouseleave",f.proxy(o,r)),r.moved=!1;t.timeStamp;return r.startTouchEvent=t,!0},r))}if(this.canTouch){if("disable"==this.options.activate.touch)return!1;if("doubleTap"==this.options.activate.touch){this._lastEvent="";var n=function(t){r.parent.on("touchend touchcancel",f.proxy(o,r)),this.startTouchEvent=t;t=this._getEvent(t);r.pos.start={x:t.pageX,y:t.pageY},t.timeStamp=(new Date).getTime();var e=t.timeStamp-(this._lastEvent&&this._lastEvent.timeStamp)||0,n=20i.w&&(r.lw=i.w-r.dl),r.lh+r.dt>i.h&&(r.lh=i.h-r.dt),t.width(r.lw),t.height(r.lh),r.lwh=r.lw/2,r.lhh=r.lh/2,r.dlh=r.dl/2,r.dth=r.dt/2,r},_loadZoomed:function(){if(!this._imageLoaded)return"none"!=this.options.preload.zoomed&&(this._loadZoomedPromise=!0),void this._loadImage();if(!this._zoomLoaded&&!this._zoomLoading){var n=this;this._zoomLoading=!0,this._zoomLoaded=!1,this._toLoadCount=this.imgs.length,this._zoomLoadedCount=0,this._track("startPreload");function o(t){n._zoomLoadedCount++,n._zoomLoadedCount==n._toLoadCount&&(n._zoomLoaded=!0,n._zoomLoading=!1,n.loading.hide(),n._track("preloaded"),n._calcSize())}f.each(this.imgs,function(t,e){e.on("load",o),e[0].src=n._getUrl(n.options.zoom[t])})}},_checkLoaded:function(t){var e=this,n=!1;this._zoomLoading||this._loadZoomed(),clearInterval(this.interval),this.interval=setInterval(function(){e._zoomLoaded?(clearInterval(e.interval),e.zoom(e.zoomed,t,!0)):e._zoomLoading&&!n&&(e.canHideEl&&e.element.css({opacity:0}),n=!0)},50)},_pinchZoomStart:function(t){var e=this;this.zoomed=!0,this.options.fade?this.target.animate({opacity:1}):this.target.css({opacity:1}),this.target.show();var n={pw:this.overflow.width(),ph:this.overflow.height(),po:this.parent.offset(),mw:0,mh:0,lens:null};return n.tw=1*n.pw,n.th=1*n.ph,this.wrapper.css({width:this.overflow.width(),height:this.overflow.height()}),this.map&&(n.mw=this.map.width(),n.mh=n.mw*(this.element.height()/this.element.width()),n.mo=this.map.offset(),this.inner.height(n.mh),this.map.show(),this.lens&&(n.lens=this._makeLens(this.lens,n.mw,n.mh,1,{w:n.mw,h:n.mh})),this._mapEnd=function(t){e.inner.off("touchmove",f.proxy(e._mapMove,e)),e.inner.off("touchend",f.proxy(e._mapEnd,e))},this._mapMove=function(t){t.preventDefault(),t.stopPropagation(),e._mouseMove(e._getEvent(t),n.pw,n.ph,n.tw,n.th,e.map.offset(),null,null,n.mw,n.mh,n.lens,!0)},this._mapStart=function(t){t.preventDefault(),t.stopPropagation(),e._mouseMove(e._getEvent(t),n.pw,n.ph,n.tw,n.th,e.map.offset(),null,null,n.mw,n.mh,n.lens,!0),this.inner.on("touchmove",f.proxy(e._mapMove,e)),this.inner.on("touchend",f.proxy(e._mapEnd,e))},this.inner.on("touchstart",f.proxy(this._mapStart,this)),this.inner.removeClass(this.options.states.inactive).addClass(this.options.states.active),this.inner.show(),this.lens&&this.lens.show()),this._parentMove=function(t){return e.hasPinchEnded?!!(t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&1!=t.originalEvent.touches.length)||(t.preventDefault(),1!==this.zoomBy&&t.stopPropagation(),void e._mouseMove(e._getEvent(t),n.pw,n.ph,n.tw,n.th,n.po,null,null,n.mw,n.mh,n.lens)):(t.stopPropagation(),!0)},this.parent.on("touchmove",f.proxy(this._parentMove,this)),n},_pinchZoom:function(t,e,n,o){e==this.maxZoom?this._track("maxZoom",{domEvent:t,scale:e,center:n}):1==e&&this._track("minZoom",{domEvent:t,scale:e,center:n}),o.tw=o.pw*e,o.th=o.ph*e,this.zoomBy=e,this.wrapper.css({width:o.tw,height:o.th}),this.lens&&(o.lens=this._makeLens(this.lens,o.mw,o.mh,e,{w:o.mw,h:o.mh})),this._mouseMove({currentTarget:t.currentTarget,pageX:n.x,pageY:n.y},o.pw,o.ph,o.tw,o.th,o.po,null,null,o.mw,o.mh,o.lens)},_mouseMove:function(t,e,n,o,i,r,s,a,l,c,u,p){var h,d,f,m,v,y=s?o-e+(e-s):o-e,g=a?i-n+(n-a):i-n;if(this.init&&this.options.pan){if(!(this.mousedown||this.canTouch||p))return void(this.panning=!1);if(this.pinching)f=(h=(this.startPos.x+(this.pos.start.x-r.left))/this.startZoom)/e*y,m=(d=(this.startPos.y+(this.pos.start.y-r.top))/this.startZoom)/n*g;else{this.panning=!0;var _=this.pos.start.x-t.pageX,b=this.pos.start.y-t.pageY;h=((f=_+this.pos.cur.x)+e/2)/(o/e),d=((m=b+this.pos.cur.y)+n/2)/(i/n)}}else this.init=!0,this.panning=!1,f=(h=t.pageX-r.left)/e*y,m=(d=t.pageY-r.top)/n*g,this.pos.cur.x=this.pos.last.x||f,this.pos.cur.y=this.pos.last.y||m;if(this.lens){if(this.box){this.box[0].lastChild.relatedUUID!=this.uuid&&(this.box.append(this.wrapper),this.wrapper.show().siblings().hide());var w=e,x=n,T=h-u.lwh-u.dlh,C=d-u.lhh-u.dth;f=(T+u.dlh)*this.zoomBy-u.lw/e,m=(C+u.dth)*this.zoomBy-u.lh/n,h=(v=this._setBounds(h,d,e,n,0,0)).x,d=v.y}else if(p){this.panning&&(h=t.pageX-r.left,d=t.pageY-r.top);w=l,x=c,T=h-u.lwh-u.dlh,C=d-u.lhh-u.dth;f=((T+u.dlh)*this.zoomBy-u.lw/e)*e/l,m=((C+u.dth)*this.zoomBy-u.lh/n)*n/c,this.pos.cur={x:f,y:m}}else if(this.map){if(this.map[0].lastChild.relatedUUID!=this.uuid&&(this.map.append(this.inner),this.inner.show().siblings().hide()),this.panning){T=h/(e/l)-u.lwh-u.dth;C=d/(n/c)-u.lhh-u.dth}else{var E=h/(e/u.lw),k=d/(n/u.lh),T=h/(e/l)-E-u.dlh;C=d/(n/c)-k-u.dth}T=(v=this._setBounds(T,C,l-u.lw-u.dl,c-u.lh-u.dt,0,0)).x,C=v.y}(this.box||p)&&(h+u.lwh+u.dlh>=w&&(T=w-u.lw-u.dl),d+u.lhh+u.dth>=x&&(C=x-u.lh-u.dt),h-u.lwh-u.dlh<=0&&(T=0),d-u.lhh-u.dth<=0&&(C=0)),this.lens.css({top:C+"px",left:T+"px"})}f=(v=this._setBounds(f,m,y,g,0,0)).x,m=v.y,this.pos.last={x:f,y:m},this.lastPos={x:f,y:m},this.oldTarget&&this.oldTarget.css({top:-m+"px",left:-f+"px"}),this.target.css({top:-m+"px",left:-f+"px"}),this._track("move",{domEvent:t,pos:{x:h/e,y:d/n}})},_calcSize:function(){var t;if(this.options.responsive&&this.options.width&&this.options.height&&"auto"!=this.options.width&&"auto"!=this.options.height?(t=this.element.width()*(this.options.height/this.options.width),this.parent.height(t),this.overflow.height(t),0!=this.element.height()&&t>this.element.height()&&this.overflow.height(this.element.height())):(this.options.width&&this.parent.width(this.options.width),this.options.height&&this.parent.height(this.options.height)),this.map){var e=this.map.width()*(this.element.height()/this.element.width());this.inner.height(e)}},_getUrl:function(t){if(this.options.url)return this.options.url;var e=this.element.attr("src")||this.element.attr("data-amp-src");if(e){var n=this._cycle?t||1:this.options.zoom;e=this._cleanUrl(e);var o=this.options.transforms;if(this._cycle)o=o[f.inArray(t,this.options.zoom)];return e=o?this._setTransforms(e,o):e,e=this._setWidth(e,{h:this._originalImage.height*n,w:this._originalImage.width*n})}},_getWidth:function(t){if(window.amp&&.di)return amp.di.width(t);if(!(t=t.split("?"))[1])return!1;for(var e=t[1].split("&"),n=0;n'),this._imageLoading=!0;var t=this.element[0].src||this.element.attr("data-amp-src");this.element.on("load",f.proxy(this._onImageLoad,this)),this.element[0].src="",this.element[0].src=t}},_getNaturalSize:function(t){return{width:this.element[0].naturalWidth,height:this.element[0].naturalHeight}},_setTransforms:function(t,e){return-1==t.indexOf("?")?t+"?"+e:t+"&"+e},_setBounds:function(t,e,n,o,i,r){return n<=t&&(t=n),o<=e&&(e=o),t<=i&&(t=i),e<=r&&(e=r),{x:t,y:e}},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"zoom",t,e)},_setCursor:function(t,e){return"string"!=typeof t&&(t="auto"),t.indexOf("zoom")<0?(e.css("cursor",t),!1):!document.documentMode&&("undefined"!=typeof InstallTrigger&&e.css("cursor","-moz-"+t),void(window.chrome&&e.css("cursor","-webkit-"+t)))},_setZoomCursor:function(t){var e=this.options.zoom;e.length?e.indexOf(this.zoomBy)===e.length-1?this._setCursor(this.options.cursor.active,t):this._setCursor(this.options.cursor.inactive,t):1');this.$parent.append(o),this.zoomArea=new a(this.element,this.$parent,t,this.options.transforms,this.options),n.onload=function(){o.remove(),i(e.zoomArea)}}},this))},this))},getImageSize:function(){return new Promise(s.proxy(function(t,e){this.element[0].naturalWidth&&this.element[0].naturalHeight?t({x:this.element[0].naturalWidth,y:this.element[0].naturalHeight}):this.element[0].width&&this.element[0].height&&t({x:this.element[0].width,y:this.element[0].height}),this.element.on("load",s.proxy(function(){this.element[0].naturalWidth&&this.element[0].naturalHeight?t({x:this.element[0].naturalWidth,y:this.element[0].naturalHeight}):this.element[0].width&&this.element[0].height&&t({x:this.element[0].width,y:this.element[0].height})},this)),this.element.on("error",s.proxy(function(){e({error:!0})},this))},this))},_invalidateParentSize:function(){this.parentSize={x:this.$parent.width(),y:this.$parent.height()}},state:function(){return{scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}},zoomInFull:function(t){this.setScale(this.options.scaleMax),this._track("zoomedInFull",{domEvent:t,scale:this.options.scaleMax,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep})},zoomIn:function(e){var n=this;if(!n.zoomArea)return n._setupZoomArea().then(function(t){t&&n.zoomIn(e)}),!1;if((this.options.scaleSteps||1==this.scale)&&(e&&e.preventDefault(),(this.options.activation.inGesture||!this.gestureDetect.detected)&&(!n.zoomArea||!n.zoomArea.animating))){this.scale==this.options.scaleMax&&this.options.events.zoomIn&&(n.zoomArea.$container.off(this.options.events.zoomIn,this.zoomIn),n.isZoomIn=!1);var t=this.scale;this.options.scaleSteps?(this.scale+=this.options.scaleStep,this.scale=Math.min(this.scale,this.options.scaleMax)):this.scale=this.options.scaleMax,t!=this.scale&&(this._track("zoomedIn",{domEvent:e,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}),this.setScale(this.scale).then(function(){setTimeout(s.proxy(function(){!n.isMoveOn&&n.options.events.move&&(n.zoomArea.$container.on(this.options.events.move,s.proxy(n._setPos,n)),n.isMoveOn=!0),n.options.scaleProcess?n.options.scaleSteps&&n.scale!=n.options.scaleMax?n.isZoomIn||(n.zoomArea.$container.on(this.options.events.zoomIn,s.proxy(n.zoomIn,n)),n.isZoomIn=!0):n.zoomArea.$container.on(n.options.events.zoomOut,s.proxy(n.zoomOut,n)):n.options.scaleSteps||n.zoomArea.$container.on(n.options.events.zoomOut,s.proxy(n.zoomOut,n))},n),500)}))}},zoomInClick:function(t){if(this.options.activation.inGesture||!this.gestureDetect.detected){var e=this.scale;this.scale+=this.options.scaleStep,this.scale=Math.min(this.scale,this.options.scaleMax),e!=this.scale&&(this._track("zoomedIn",{domEvent:t,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}),this.setScale(this.scale),setTimeout(s.proxy(function(){self.zoomArea.$container.on(this.options.events.move,s.proxy(this._setPos,this))},this),1))}},setScale:function(t){return this.scale=t,this._setupZoomArea().then(s.proxy(function(t){t&&(t.setScale(this.scale),this._invalidateParentSize())},this))},_setPos:function(t){"touchmove"===t.type&&(this._touchmove=!0),this._track("settingPos",{domEvent:t});var e=t?this._getPercentagePos(t):{x:.5,y:.5};this.zoomArea.setPosition(e.x,e.y)},zoomOut:function(t){if(this.zoomArea.allowClone=!1,this._touchmove)return!1;if(!this.zoomArea||!this.zoomArea.animating){var e=this.scale;this.options.scaleSteps?(this.scale-=this.options.scaleStep,this.scale=Math.max(this.scale,1)):this.scale=1,e!=this.scale&&(1==this.scale&&(this.options.events.move&&(this.zoomArea.$container.off(this.options.events.move,this._setPos),this.isMoveOn=!1),this.options.events.zoomOut&&this.zoomArea.$container.off(this.options.events.zoomOut,this.zoomOut)),this.zoomArea.setScale(this.scale),this._track("zoomedOut",{domEvent:t,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}))}},zoomOutFull:function(t){this.zoomArea&&(this.options.events.move&&self.zoomArea.$container.off(this.options.events.move,this._setPos),this.options.events.zoomOut&&self.zoomArea.$container.off(this.options.events.zoomOut,this.zoomOut),this.scale=1,this.zoomArea.setScale(1),this._track("zoomedOutFull",{domEvent:t,scale:this.scale,scaleMax:this.options.scaleMax,scaleStep:this.options.scaleStep}))},_convertEvent:function(t){return t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&(t.preventDefault(),t=t.originalEvent.touches[0]),t},_getPercentagePos:function(t){t=this._convertEvent(t);var e=this.$parent.offset();return{x:(t.pageX-e.left)/this.parentSize.x,y:(t.pageY-e.top)/this.parentSize.y}},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"zoom",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-zoom"),this._removeEmptyAttributeHelper(this.element)},_removeEmptyAttributeHelper:function(t,e){for(var n=e||["class","style"],o=0,i=n.length;othis.threshold&&(this.cbIn(),this.start=e),n<0-this.threshold&&(this.cbOut(),this.start=e)},e.prototype.remove=function(){this.end()},e.prototype.end=function(t){s(document).off("mousemove touchmove",this.move),s(document).off("mouseup touchend",this.end)},e.prototype.getFingers=function(t){return t.originalEvent&&t.originalEvent.touches&&(t=t.originalEvent.touches),t};var n=function(t,e,n){this.multiFinger(e)||(e=this.convertEvent(e),this.start={x:e.pageX,y:e.pageY},this.zoomArea=t.zoomArea,this.cb=n,this.element=t.element,this.zoomArea.newSize||(this.zoomArea.newSize={x:this.zoomArea.$source.width(),y:this.zoomArea.$source.height()}),this.currentPixPos=this.zoomArea.getPixPos(),s(document).on("mousemove touchmove",s.proxy(this.move,this)),s(document).on("mouseup touchend",s.proxy(this.end,this)))};n.prototype.move=function(t){t.preventDefault();var e=(t=this.convertEvent(t)).pageX-this.start.x,n=t.pageY-this.start.y,o=this.zoomArea.getPercentFromPos(this.currentPixPos.x+e,this.currentPixPos.y+n);this.cb(o.x,o.y)},n.prototype.end=function(t){s(document).off("mousemove touchmove",this.move),s(document).off("mouseup touchend",this.end)},n.prototype.remove=function(){this.end()},n.prototype.multiFinger=function(t){return t.originalEvent&&t.originalEvent.touches&&1'),this.$preloader=new Image,s(this.$preloader).on("load",function(){t._preloaderImgLoaded=!0,t.allowClone&&!t.animating&&t.updateImageSrc(!0)}),this.$zoomed=s(''),this.$zoomedClone=s(''),this.$container.append(this.$zoomedClone),this.$container.append(this.$zoomed),this.$area.append(this.$container),this.$container.css({position:"absolute",top:0,left:0,bottom:0,right:0})},a.prototype.invalidatePosition=function(){this.setPosition(this.posPercentageX,this.posPercentageY)},a.prototype.setPosition=function(t,e){this.animating||(this.$zoomed.width()<=this.$area.width()&&(t=.5),this.$zoomed.height()<=this.$area.height()&&(e=.5),this.posPercentageX=t,this.posPercentageY=e,t=Math.min(1,Math.max(0,t)),e=Math.min(1,Math.max(0,e)),this.$zoomed.css("left",0-(this.$zoomed.width()-this.$area.width())*t+"px"),this.$zoomed.css("top",0-(this.$zoomed.height()-this.$area.height())*e+"px"),this.$zoomedClone.css("left",0-(this.$zoomed.width()-this.$area.width())*t+"px"),this.$zoomedClone.css("top",0-(this.$zoomed.height()-this.$area.height())*e+"px"))},a.prototype.getPixPos=function(t,e){return null==t&&null==e&&(t=this.posPercentageX,e=this.posPercentageY),t=Math.min(1,Math.max(0,t)),e=Math.min(1,Math.max(0,e)),{x:0-(this.newSize.x-this.$area.width())*t,y:0-(this.newSize.y-this.$area.height())*e}},a.prototype.getPercentFromPos=function(t,e){return{x:0-t/(this.newSize.x-this.$area.width()),y:0-e/(this.newSize.y-this.$area.height())}},a.prototype.animate=function(t,e,n){this.animating=!0,t.x<=this.$area.width()&&(e.x=this.getPixPos(.5,.5).x),t.y<=this.$area.height()&&(e.y=this.getPixPos(.5,.5).y);var o={width:t.x,height:t.y,left:e.x+"px",top:e.y+"px"};this.$zoomed.animate(o,500),this.$zoomedClone.animate(o,500),setTimeout(s.proxy(function(){n&&n(),this.animating=!1},this),this.isFF?1e3:600)},a.prototype.updateImageSrc=function(t){if(!t||!this.allowClone||!this._preloaderImgLoaded)return!1;this.setImage()},a.prototype.setScale=function(t,e){var n=this,o=t>this.scale;t!=this.scale&&(this.allowClone=o,n._preloaderImgLoaded=!1,tthis.scale&&(this.$zoomed.width(this.$source.width()),this.$zoomed.height(this.$source.height()),this.$zoomedClone.width(this.$source.width()),this.$zoomedClone.height(this.$source.height())),this.setPosition(.5,.5),this.show()),1==t?this.animate(this.newSize,this.getPixPos(),function(){n.hide(),n.updateImageSrc(!1)}):this.animate(this.newSize,this.getPixPos(),function(){n.updateImageSrc(o)}),this.scale=t,this.invalidateImageURL({x:this.originalSize.x*t,y:this.originalSize.y*t}))},a.prototype.show=function(){this.invalidatePosition(),s(window).off("resize",this.invalidatePosition),s(window).on("resize",s.proxy(this.invalidatePosition,this)),this.$container.show()},a.prototype.hide=function(){this.$container.hide(),s(window).off("resize",this.invalidatePosition)},a.prototype.invalidateImageURL=function(t){var e="";this.transforms&&this.transforms.length&&(e=this.transforms+"&");var n=this.initialSrc.split("?")[0]+"?"+e+"w="+t.x+"&h="+t.y;0!=t.x&&0!=t.y||(n=""),this.$preloader=new Image,this._preloaderImgLoaded=!0,this.$preloader.setAttribute("src",n)},a.prototype.setImage=function(){var t,e=this,n=e.$zoomed.attr("src");if(e._allowChangeClone&&e.$zoomedClone.attr("src",n),e.$preloader.complete&&e.$preloader.naturalWidth&&0'),this.element.append(this.pre)):"window"==this.options.preloadType&&(this.progressIndicator=u('
    '),this.progressIndicator.find(".amp-progress-message").html(this.options.progressMessage||"Loading..."),this.progressIndicator.progress=n.progressIndicator.find(".amp-progress-bar"),this.progressIndicator.visible=!0,this.element.append(this.progressIndicator))));function e(t){if(n.loadedCount++,n.loadedCount>=n.toLoadCount&&!n._loaded)n._unsetLoadEvents(n.imgs),n._loaded=!0,n.pre&&n.pre.remove(),n.options.play.onLoad&&n.playRepeat(n.options.play.repeat),n._loading=!1,n.progressIndicator&&(n.progressIndicator.visible=!1,n.progressIndicator.remove()),n._track("preloaded");else{var e=n.loadedCount/n.toLoadCount*100;n.pre&&(n.pre.css("width",100-e+"%"),n.pre.css("left",e+"%")),n.progressIndicator&&n.progressIndicator.visible&&n.progressIndicator.progress.css("width",e+"%")}}t?(this.first=!0,this.toLoadCount-=1,this._callImageMethod(u(this.imgs[t-1]),e)):this._callImageMethod(this.imgs,e)}},_unsetLoadEvents:function(t){if(t)for(var e=0,n=t.length;eMath.abs(c)?this.moveDir="horz":this.moveDir=this.options.orientation,this._mouseMoveInfo.push(u),2t?this._track("looped","forwards"):this._track("looped","backwards"))},_endDrag:function(o,t,e,n,i){"horz"==this.moveDir&&(o.preventDefault(),o.stopPropagation()),this.moveDir=null;var r=this;if(!this._ended)if(this._started=!1,this._ended=!0,this._track("endMove",{domEvent:o}),this.$document.off(this.options.events.end,this._ubind),this.$document.off(this.options.events.move,this._mbind),clearInterval(this._timer),this._setCursor(this.options.cursor.inactive),this.element.removeClass(this.options.states.active).addClass(this.options.states.inactive),this.options.momentum&&2==this._mouseMoveInfo.length){var s=this._mouseMoveInfo,a=s[1].e.timeStamp-s[0].e.timeStamp,l="horz"==this.options.orientation?s[1].mx-s[0].mx:s[1].my-s[0].my;if(0==l||0==a)return;var c=l/a,u=this.options.friction,p="horz"==this.options.orientation?s[1].mx-e:s[1].my-n,h=0;if(Math.abs(p)e.length){if(!this.options.loop)return;t=1}else if(t<1){if(!this.options.loop)return;t=e.length}},_direction:function(t){for(var e=0,n=0,o=t;o!=this._index;)o>this._count?o=0:o++,e++;for(o=t;o!=this._index;)o<1?o=this._count:o--,n++;return nthis._count?i=1:i+o<1?i=this._count:i+=o;return i},_loopCount:function(t,e,n){for(var o=t?1:-1,i=e,r=0;i!=n;)r++,i+o>this._count?i=1:i+o<1?i=this._count:i+=o;return r},_animate:function(t){var e=this.element,n=e.children("li").eq(this._index-1),o=e.children("li").eq(t-1);this._index!=t&&(o.addClass(this.options.states.selected+" "+this.options.states.seen),this.isWebkit?(o.css("display","block"),n.css("display","none")):(o.css("zIndex",1),n.css("zIndex",-1)),n.removeClass(this.options.states.selected),this._setIndex(t),this._setIndex(t,!0))},_track:function(t,e){this._trigger(t,null,e),window.amp&&.stats&&.stats.event&&.stats.event(this.element,"spin",t,e)},_destroy:function(){this.element.removeClass("amp"),this.element.removeClass("amp-spin"),this.element.removeClass(this.options.states.active),this.element.removeClass(this.options.states.inactive),this.element.css("cursor",""),this.element.find(".amp-progress").remove(),this.element.find(".amp-loading").remove(),this._removeEmptyAttributeHelper(this.element);var t=this.element.children();t.removeClass("amp-frame"),t.removeClass(this.options.states.selected),t.removeClass(this.options.states.seen),t.css("display","");for(var e=0,n=t.length;e= 2.0.0-beta.1",7:">= 4.0.0"};var c="[object Object]";function u(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},s.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(t,e){if(i.toString.call(t)===c){if(e)throw new r.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(i.toString.call(t)===c)i.extend(this.partials,t);else{if(void 0===e)throw new r.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(i.toString.call(t)===c){if(e)throw new r.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]}};var p=l.default.log;e.log=p,e.createFrame=i.createFrame,e.logger=l.default},function(t,e){"use strict";e.__esModule=!0,e.extend=s,e.indexOf=function(t,e){for(var n=0,o=t.length;n":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,i=/[&<>"'`=]/;function r(t){return n[t]}function s(t){for(var e=1;e= 4.0.0"],main:function(t,e,n,o,i){var r,s=t.lambda,a=t.escapeExpression;return'
  • \n
    \n \n
    \n
  • \n'},useData:!0})),Handlebars.registerPartial("main-container-list-spin-3d",this.amp.templates["main-container-list-spin-3d"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a;return'
  • \n
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=e?e.set:e)?a.items:a,{name:"each",hash:{},fn:t.program(2,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n
  • \n"},2:function(t,e,n,o,i,r,s){var a,l,c=null!=e?e:t.nullContext||{},u=n.helperMissing,p="function",h=t.escapeExpression,d=t.lambda;return'
  • \n \n
  • \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
  • \n
    \n
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=e?e.spin:e)?a.set:a)?a.items:a,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n
  • \n\n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("main-container-list-spin",this.amp.templates["main-container-list-spin"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a,l,c=null!=e?e:t.nullContext||{},u=n.helperMissing,p="function",h=t.escapeExpression,d=t.lambda;return'
  • \n \n
  • \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
  • \n
    \n
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=e?e.spin:e)?a.set:a)?a.items:a,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n
  • \n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("main-container-list-video",this.amp.templates["main-container-list-video"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a,l,c=null!=e?e:t.nullContext||{},u=n.helperMissing,p="function",h=t.escapeExpression,d=t.lambda;return' \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a,l=t.lambda,c=t.escapeExpression;return'
  • \n
    \n \n
    \n
  • \n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("main-container-list",this.amp.templates["main-container-list"]=Handlebars.template({1:function(t,e,n,o,i,r,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.set:e,{name:"if",hash:{},fn:t.program(2,i,0,r,s),inverse:t.program(7,i,0,r,s),data:i}))?a:""},2:function(t,e,n,o,i,r,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=(a=null!=(a=null!=(a=null!=e?e.set:e)?a.items:a)?a[0]:a)?a.set:a,{name:"if",hash:{},fn:t.program(3,i,0,r,s),inverse:t.program(5,i,0,r,s),data:i}))?a:""},3:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-spin-3d",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],spin:e},data:i}))+"\n"},5:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-spin",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],spin:e},data:i}))+"\n"},7:function(t,e,n,o,i,r,s){var a;return null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.media:e,{name:"if",hash:{},fn:t.program(8,i,0,r,s),inverse:t.program(10,i,0,r,s),data:i}))?a:""},8:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-video",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],video:e},data:i}))+"\n"},10:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"main-container-list-image",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],image:e},data:i}))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n"},useData:!0,useDepths:!0})),Handlebars.registerPartial("nav-container-list-item",this.amp.templates["nav-container-list-item"]=Handlebars.template({1:function(t,e,n,o,i){var r;return'
    \n \n
    \n'},2:function(t,e,n,o,i){return"spin-3d"},4:function(t,e,n,o,i){return"spin"},6:function(t,e,n,o,i){return'
    \n \n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=t.lambda,l=t.escapeExpression;return"
  • \n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.item:e)?r.set:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=n.if.call(s,null!=(r=null!=e?e.item:e)?r.media:r,{name:"if",hash:{},fn:t.program(6,i,0),inverse:t.noop,data:i}))?r:"")+' \n
    \n
  • \n'},useData:!0})),Handlebars.registerPartial("nav-container-list",this.amp.templates["nav-container-list"]=Handlebars.template({1:function(t,e,n,o,i,r,s){return" "+t.escapeExpression((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(null!=e?e:t.nullContext||{},"nav-container-list-item",{name:"renderPartial",hash:{locale:null!=s[1]?s[1].locale:s[1],templates:null!=s[1]?s[1].templates:s[1],item:e},data:i}))+"\n"},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i,r,s){var a;return'
      \n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"each",hash:{},fn:t.program(1,i,0,r,s),inverse:t.noop,data:i}))?a:"")+"
    \n"},useData:!0,useDepths:!0})),this.amp.templates.desktopFullView=Handlebars.template({compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=n.helperMissing,l=t.escapeExpression,c=t.lambda;return'
    \n
    \n '+l((n.renderPartial||e&&e.renderPartial||a).call(s,"main-container-list",{name:"renderPartial",hash:{locale:null!=e?e.locale:e,templates:null!=e?e.templates:e,items:null!=e?e.items:e},data:i}))+'\n
    \n
    \n \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n'},useData:!0}),this.amp.templates.desktopNormalView=Handlebars.template({1:function(t,e,n,o,i){var r;return"amp-"+t.escapeExpression("function"==typeof(r=null!=(r=n.view||(null!=e?e.view:e))?r:n.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"view",hash:{},data:i}):r)+"-view"},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=n.helperMissing,l=t.escapeExpression,c=t.lambda;return'
    \n
    \n '+l((n.renderPartial||e&&e.renderPartial||a).call(s,"main-container-list",{name:"renderPartial",hash:{locale:null!=e?e.locale:e,templates:null!=e?e.templates:e,items:null!=e?e.items:e},data:i}))+'\n
    \n Click to zoom\n \n
    \n
    \n
    \n
    \n \n
    \n'},useData:!0}),this.amp.templates.mobileNormalView=Handlebars.template({1:function(t,e,n,o,i){var r;return"mobile-"+t.escapeExpression("function"==typeof(r=null!=(r=n.view||(null!=e?e.view:e))?r:n.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"view",hash:{},data:i}):r)+"-view"},3:function(t,e,n,o,i){return'
    \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(t,e,n,o,i){var r,s=null!=e?e:t.nullContext||{},a=t.escapeExpression,l=t.lambda;return'
    \n
    \n '+a((n.renderPartial||e&&e.renderPartial||n.helperMissing).call(s,"main-container-list",{name:"renderPartial",hash:{locale:null!=e?e.locale:e,templates:null!=e?e.templates:e,items:null!=e?e.items:e},data:i}))+'\n
    \n
    \n \n \n
    \n
    \n \n
    \n'},useData:!0}),function(){"use strict";Handlebars.registerHelper("renderPartial",function(t,e){if(!t)return console.error("No partial name given."),"";var n=Handlebars.partials[t];return n?new Handlebars.SafeString(n(e.hash)):(console.error("Couldnt find the compiled partial: "+t),"")})}(window),function(t){Array.prototype.map||(Array.prototype.map=function(t,e){var n,o,i;if(null==this)throw new TypeError(" this is null or not defined");var r=Object(this),s=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(e&&(n=e),o=Array(s),i=0;io&&!(n=e[o](t));o++);return n}function c(t){return!(!t||void 0===t||null==t)}function u(t){var e="";return c(t=t||{})&&c(t.major)&&(e+=t.major,c(t.minor)&&(e+="."+t.minor,c(t.patch)&&(e+="."+t.patch))),e}function p(t){var e=u(t=t||{});return e=e&&" "+e,t&&c(t.family)?t.family+e:""}var h=forEach=function(t,e,n){if(null!=t)if(s&&t.forEach===s)t.forEach(e,n);else if(t.length===+t.length)for(var o=0,i=t.length;o'),e.deviceWidth=o.innerWidth,e.controller(),e.tags=[],e.IE=e.isIE()}var i="Amplience Viewer";t.prototype.controller=function(){var e=this;amp.init({client_id:e.settings.client,di_basepath:e.settings.imageBasePath,cache_window:e.settings.cacheWindow}),window.ecommBridge&&e.settings.ecommBridge&&this.bridgeConnector.initAll(),e.applyImgTemplates(),d(e.settings.target).append(e.wrapper);var t=e.initSetData();e.getSet(t).then(function(t){e.assets=t,e.renderInitialView()}).catch(function(t){console.warn(t,i+" unable to get set list.")})},t.prototype.initSetData=function(){var t=this.bridgeConnector.page;return null!==t&&this.settings.ecommBridge?t.mediaList&&t.mediaList.constructor===Array&&0 > li:eq("+r+") img").ampZoomInline(n.mainContainerZoomInline)}},t.prototype.enrichAssets=function(t){for(var e=0;e img").on("ampzoominlinezoomedin ampzoominlinezoomedinfull ampzoominlinezoomedout ampzoominlinezoomedoutfull",function(t,e){o.checkZoomIcons(),o.toggleZoomScrolling(d(this).parent().find(".amp-zoomed"))}).on("ampzoominlinezoomedin ampzoominlinezoomedinfull",function(t,e){o.lastZoomDir="In"}).on("ampzoominlinezoomedout ampzoominlinezoomedoutfull",function(t,e){o.lastZoomDir="Out"}),o.mainContainerList.find(".video").on("ampvideofullscreenchange",function(t,e){2!==d(t.target).ampVideo("state")&&e.player&&e.player.isFullscreen_&&setTimeout(function(){d(t.target).ampVideo("play")},1e3)})},t.prototype.checkMainContainerNavArrows=function(){if(!this.settings.ampConfigs.mainContainerCarousel.loop){var t=this.currentAssetIndex;this.wrapper.find(".main-container > .amp-js-nav").removeClass("disabled"),0===t&&this.wrapper.find(".main-container-prev").addClass("disabled"),t===this.assets.length-1&&this.wrapper.find(".main-container-next").addClass("disabled")}},t.prototype.checkNavContainerNavArrows=function(){if(!this.settings.ampConfigs.mainContainerCarousel.loop){this.wrapper.find(".nav-container > .amp-js-nav").removeClass("disabled");var t=this.getNavigationVisibleSlidesInfo();t.isFirst&&this.wrapper.find(".nav-container-prev").addClass("disabled"),t.isLast&&this.wrapper.find(".nav-container-next").addClass("disabled")}},t.prototype.checkView=function(){var t=this;t.isMobile()&&t.currentView!==t.views.mobileNormalView?t.renderView(t.views.mobileNormalView):t.isMobile()||t.currentView!==t.views.mobileNormalView||t.renderView(t.views.desktopNormalView)},t.prototype.getAmpConfigs=function(){var t=this,e=t.settings.ampConfigs;switch(t.currentView){case t.views.desktopNormalView:t.settings.view||t.isPortraitView||(e.navContainerCarousel.width=t.settings.ampConfigs.navElementsCount.forDesktop,e.navContainerCarousel.gesture.enabled=!0);break;case t.views.desktopFullView:e.navContainerCarousel.width=t.settings.ampConfigs.navElementsCount.forDesktopFull;break;case t.views.mobileNormalView:var n=t.wrapper.width(),o=t.assets.length*e.navElementsWidthPxMobile,i=2*parseFloat(t.wrapper.find(".nav-container").css("padding-left"),10);n .amp-js-nav");if(t.settings.view&&t.isPortraitView&&t.currentView===t.views.desktopNormalView)return n.find(".amp-slide.amp-visible").length===t.assets.length?(o.css({display:"none"}),n.addClass("amp-without-thumbs")):(o.css({display:"block"}),n.removeClass("amp-without-thumbs"),t.checkNavContainerNavArrowsStyle()),!1;t.assets.length<=e.navContainerCarousel.width?o.css({display:"none"}):o.css({display:"block"});var i=o.width(),r=100/e.navContainerCarousel.width,s=e.navContainerCarousel.width*e.navElementsWidthPx+4*i;t.currentView===t.views.mobileNormalView&&(t.assets.length<=e.navContainerCarousel.width?n.css("padding",0):(t.checkNavContainerNavArrowsStyle(),n.css("padding","")));var a=e.navContainerCarousel.width*e.navElementsWidthPxMobile+2*parseFloat(n.css("padding-left"),10);n.css({"max-width":t.currentView===t.views.mobileNormalView?a:s});var l=t.currentView!==t.views.mobileNormalView?"calc("+r+"% - 20px)":e.navElementsWidthPxMobile+"px";t.navContainerList.find(".amp-slide").css("width",l)},t.prototype.getNavigationVisibleSlidesInfo=function(){for(var t=this.navContainerList.find(".amp-slide"),e=t.length,n=0;n=t.length-o}},t.prototype.getMainVisibleSlidesInfo=function(){for(var t=this.mainContainerList.find(".amp-slide"),e=t.length,n=0;n=t.length-o}},t.prototype.zoomIn=function(){var t=this.getZoomSlide();0 > li:eq("+t+") .amp-zoom")},t.prototype.toggleZoomScrolling=function(t){var n=this,e=this.getZoomSlide().ampZoomInline("state");d.each(n._preventElements,function(t,e){e.off("touchmove",n._prevent)}),n._preventElements=[],n._preventElements.push(t),1===e.scale?t.off("touchmove",n._prevent):t.on("touchmove",n._prevent)},t.prototype.checkZoomIcons=function(){var n=this,t=n.getZoomSlide(),e=t.ampZoomInline("state");switch(n.currentView){case n.views.desktopFullView:var o=n.wrapper.find(".panel .plus"),i=n.wrapper.find(".panel .minus");o.add(i).removeClass("disabled"),0