- ID scansione:
- 4d605c2f-812d-4bf6-ae25-4b42b94e0831Fatto
- URL inviato:
- https://km.support.apple.com/etc/designs/support/publish/commons-sk7.min.js
- Report terminato:
Link · 0 trovati
I link in uscita identificati dalla pagina
Variabili JavaScript · 3 trovate
Le variabili JavaScript globali caricate sull'oggetto finestra di una pagina sono variabili dichiarate all'esterno delle funzioni e accessibili da qualsiasi punto del codice nell'ambito corrente
Nome | Tipo |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
Messaggi di log della console · 0 trovati
Messaggi registrati nella console Web
HTML
Il corpo HTML non elaborato della pagina
<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! For license information please see nn.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NN=t():e.NN=t()}(this,(function(){return function(){var e={806:function(e,t,n){e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}function r(e){U=e}function a(e){J=e}function o(){return function(){return process.nextTick(l)}}function i(){return void 0!==B?function(){B(l)}:u()}function c(){var e=0,t=new W(l),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function s(){var e=new MessageChannel;return e.port1.onmessage=l,function(){return e.port2.postMessage(0)}}function u(){var e=setTimeout;return function(){return e(l,1)}}function l(){for(var e=0;e<V;e+=2)(0,Q[e])(Q[e+1]),Q[e]=void 0,Q[e+1]=void 0;V=0}function p(){try{var e=Function("return this")().require("vertx");return B=e.runOnLoop||e.runOnContext,i()}catch(e){return u()}}function d(e,t){var n=this,r=new this.constructor(f);void 0===r[Y]&&x(r);var a=n._state;if(a){var o=arguments[a-1];J((function(){return P(a,r,o,n._result)}))}else O(n,r,e,t);return r}function h(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(f);return _(n,e),n}function f(){}function g(){return new TypeError("You cannot resolve a promise with itself")}function m(){return new TypeError("A promises callback cannot return that same promise.")}function v(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function y(e,t,n){J((function(e){var r=!1,a=v(n,t,(function(n){r||(r=!0,t!==n?_(e,n):S(e,n))}),(function(t){r||(r=!0,k(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&a&&(r=!0,k(e,a))}),e)}function w(e,t){t._state===Z?S(e,t._result):t._state===ee?k(e,t._result):O(t,void 0,(function(t){return _(e,t)}),(function(t){return k(e,t)}))}function b(e,n,r){n.constructor===e.constructor&&r===d&&n.constructor.resolve===h?w(e,n):void 0===r?S(e,n):t(r)?y(e,n,r):S(e,n)}function _(t,n){if(t===n)k(t,g());else if(e(n)){var r=void 0;try{r=n.then}catch(e){return void k(t,e)}b(t,n,r)}else S(t,n)}function T(e){e._onerror&&e._onerror(e._result),E(e)}function S(e,t){e._state===X&&(e._result=t,e._state=Z,0!==e._subscribers.length&&J(E,e))}function k(e,t){e._state===X&&(e._state=ee,e._result=t,J(T,e))}function O(e,t,n,r){var a=e._subscribers,o=a.length;e._onerror=null,a[o]=t,a[o+Z]=n,a[o+ee]=r,0===o&&e._state&&J(E,e)}function E(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,a=void 0,o=e._result,i=0;i<t.length;i+=3)r=t[i],a=t[i+n],r?P(n,r,a,o):a(o);e._subscribers.length=0}}function P(e,n,r,a){var o=t(r),i=void 0,c=void 0,s=!0;if(o){try{i=r(a)}catch(e){s=!1,c=e}if(n===i)return void k(n,m())}else i=a;n._state!==X||(o&&s?_(n,i):!1===s?k(n,c):e===Z?S(n,i):e===ee&&k(n,i))}function A(e,t){try{t((function(t){_(e,t)}),(function(t){k(e,t)}))}catch(t){k(e,t)}}function L(){return te++}function x(e){e[Y]=te++,e._state=void 0,e._result=void 0,e._subscribers=[]}function D(){return new Error("Array Methods must be provided an Array")}function N(e){return new ne(this,e).promise}function C(e){var t=this;return new t(R(e)?function(n,r){for(var a=e.length,o=0;o<a;o++)t.resolve(e[o]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function j(e){var t=new this(f);return k(t,e),t}function I(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=re}var M=void 0;M=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var R=M,V=0,B=void 0,U=void 0,J=function(e,t){Q[V]=e,Q[V+1]=t,2===(V+=2)&&(U?U(l):G())},F="undefined"!=typeof window?window:void 0,$=F||{},W=$.MutationObserver||$.WebKitMutationObserver,z="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),K="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Q=new Array(1e3),G=void 0;G=z?o():W?c():K?s():void 0===F?p():u();var Y=Math.random().toString(36).substring(2),X=void 0,Z=1,ee=2,te=0,ne=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(f),this.promise[Y]||x(this.promise),R(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&S(this.promise,this._result))):k(this.promise,D())}return e.prototype._enumerate=function(e){for(var t=0;this._state===X&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===h){var a=void 0,o=void 0,i=!1;try{a=e.then}catch(e){i=!0,o=e}if(a===d&&e._state!==X)this._settledAt(e._state,t,e._result);else if("function"!=typeof a)this._remaining--,this._result[t]=e;else if(n===re){var c=new n(f);i?k(c,o):b(c,e,a),this._willSettleAt(c,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===X&&(this._remaining--,e===ee?k(r,n):this._result[t]=n),0===this._remaining&&S(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(Z,t,e)}),(function(e){return n._settledAt(ee,t,e)}))},e}(),re=function(){function e(t){this[Y]=L(),this._result=this._state=void 0,this._subscribers=[],f!==t&&("function"!=typeof t&&I(),this instanceof e?A(this,t):q())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();return re.prototype.then=d,re.all=N,re.race=C,re.resolve=h,re.reject=j,re._setScheduler=r,re._setAsap=a,re._asap=J,re.polyfill=H,re.Promise=re,re}()},633:function(e,t,n){var r=n(738).default;function a(){"use strict";e.exports=a=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),i=new C(r||[]);return c(o,"_invoke",{value:L(e,n,i)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var g="suspendedStart",m="suspendedYield",v="executing",y="completed",w={};function b(){}function _(){}function T(){}var S={};d(S,u,(function(){return this}));var k=Object.getPrototypeOf,O=k&&k(k(j([])));O&&O!==o&&i.call(O,u)&&(S=O);var E=T.prototype=b.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(a,o,c,s){var u=f(e[a],e,o);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(p).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,s)}))}s(u.arg)}var a;c(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}})}function L(e,n,r){var a=g;return function(o,i){if(a===v)throw Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:t,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var s=x(c,r);if(s){if(s===w)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===g)throw a=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var u=f(e,n,r);if("normal"===u.type){if(a=r.done?y:m,u.arg===w)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a=y,r.method="throw",r.arg=u.arg)}}}function x(e,n){var r=n.method,a=e.iterator[r];if(a===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),w;var o=f(a,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,w;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,w):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return _.prototype=T,c(E,"constructor",{value:T,configurable:!0}),c(T,"constructor",{value:_,configurable:!0}),_.displayName=d(T,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,d(e,p,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},P(A.prototype),d(A.prototype,l,(function(){return this})),n.AsyncIterator=A,n.async=function(e,t,r,a,o){void 0===o&&(o=Promise);var i=new A(h(e,t,r,a),o);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(E),d(E,p,"Generator"),d(E,u,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=j,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,a){return c.type="throw",c.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,w):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),w}},n}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},756:function(e,t,n){var r=n(633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},823:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultWindow:function(){return d},useCookies:function(){return h}});var r=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var n={},r=(t||{}).decode||c,a=0;for(;a<e.length;){var o=e.indexOf("=",a);if(-1===o)break;var i=e.indexOf(";",a);if(-1===i)i=e.length;else if(i<o){a=e.lastIndexOf(";",o-1)+1;continue}var s=e.slice(a,o).trim();if(void 0===n[s]){var l=e.slice(o+1,i).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),n[s]=u(l,r)}a=i+1}return n},a=function(e,t,n){var r=n||{},a=r.encode||s;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!i.test(c))throw new TypeError("argument val is invalid");var u=e+"="+c;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(r.domain){if(!i.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!i.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){var p=r.expires;if(!function(e){return"[object Date]"===o.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+p.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");r.partitioned&&(u+="; Partitioned");if(r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u},o=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function c(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function s(e){return encodeURIComponent(e)}function u(e,t){try{return t(e)}catch(t){return e}}function l(e,t={}){const n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class p{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=r(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?r(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:l(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),l(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=l(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const r="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=a(e,r,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=a(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const d=window;function h(e,t={}){const{timeout:n=36e5}=t,r=new p(null,{path:"/",maxAge:n});function a(e){return"object"==typeof e?{...e}:Array.isArray(e)?[...e]:e}function o(t){const o=(new Date).getTime()+n,i={value:a(t),expiry:o};r.set(e,i,{domain:".apple.com",maxAge:n})}return{clear:()=>r.remove(e,{domain:".apple.com"}),reset:()=>o({}),get:function(){const t=r.get(e);if(!t)return null;const n={...t};return(new Date).getTime()>n.expiry?(r.remove(e),null):n},set:o}}},380:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultWindow:function(){return r},useStorage:function(){return a}});const r=window;function a(e,t={}){const{timeout:n=36e5}=t,a=r?.localStorage;function o(e){let t=e;return"object"==typeof e&&(t={...e}),Array.isArray(e)&&(t=[...e]),t}function i(t){const r=(new Date).getTime()+n,i={value:o(t),expiry:r};a.setItem(e,JSON.stringify(i))}return{clear:()=>a.clear(),reset:()=>i({}),get:function(){const t=a.getItem(e);if(!t)return null;const n=JSON.parse(t);return(new Date).getTime()>n.expiry?(a.removeItem(e),null):n},set:i}}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,n||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t,n,r,a,o,i){try{var c=e[o](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){c(o,r,a,i,s,"next",e)}function s(e){c(o,r,a,i,s,"throw",e)}i(void 0)}))}}n.r(r),n.d(r,{default:function(){return Yt}});var u=n(756),l=n.n(u);const p=function(){const e=new URLSearchParams(window.location.search),t=Object.fromEntries(e.entries()),n=Object.keys(t).some((e=>["log","showNeighborLogs"].includes(e)));n&&localStorage.setItem("neighbor-log",n);const r=localStorage.getItem("neighbor-log");return n||r}()||!1;function d(...e){p&&console.info("%cNN:","color: violet",...e)}function h(e,t){console.warn("::: No handler specified for addMarcomMenuEvents(). :::\n")}function f(e,t,n=!1,r="simple link"){const a={dest_url:e,link_text:t,type:r};try{if(n&&!a.link_text&&a.dest_url){const e=a.dest_url.split("/");e[e.length-1]?a.link_text=e[e.length-1]:a.link_text=e[e.length-2]}window._applemd&&(window._applemd={...window._applemd,component:a}),d("component:",a)}catch{}return a}function g(e,t){const n=Array.from(document.querySelectorAll("#ac-globalnav a")).filter((e=>"search"!==e.id));d(`legacy menu found ${n.length} items\n`),n.forEach((n=>function(e,t,n){const r=e.getAttribute("data-analytics-title"),a=e.getAttribute("href");e.addEventListener("mousedown",(e=>{try{d(`clicked: ${r}\n`),f(a,r,!0),t(e,n)}catch(e){console.warn("Failed to attach event",e)}}))}(n,e,t)))}function m(e,t){const n=document.querySelector("#globalnav-list");d("found globalnav-list",!!n),n.addEventListener("mousedown",(n=>{const r=n.target,a=r&&r.classList.contains("globalnav-submenu-link"),o=document.querySelector(".ac-bag-flyout-container");if(d("isFlyOutMenu",a),a){const a=r.parentElement.parentElement.parentElement.querySelector("h2").innerHTML.toLowerCase().replace("&amp;","&"),o=document.querySelector("div.globalnav-item-flyout-open > ul > li:nth-child(1) > a").getAttribute("data-analytics-title"),i=r.href,c=`${r.getAttribute("data-analytics-title").trim().toLowerCase()}::${a}(${o})`;d(`clicked: ${c}\n`),f(i,c,!1),e(n,t)}else o&&(d("found shopping bag",!!o),function(e,t,n){const r=function(e){let t=e.target;if(!t.parentElement.parentElement.classList.contains("ac-bag-flyout-content-isempty")){for(;!t.getAttribute("data-analytics-title")&&!t.getAttribute("data-autom");)t=t.parentElement;"ac-gn-bagview"===t.getAttribute("data-autom")&&(t=null)}return t}(e);if(r){const a=r.getAttribute("data-analytics-title")||"",o=r.getAttribute("data-autom")||"";let i=`${(a||o).trim().toLowerCase()}::my profile(shopping bag)`,c="simple link";"sign-in"===o?i=i.replace("my profile","your bag is empty"):a&&"review bag"===a.toLowerCase()||r&&r.classList.contains("ac-gn-bagview-bagitem-link")?(i=i.replace("my profile","bag"),c="button"):r.parentElement.parentElement.classList.contains("ac-bag-flyout-content-isempty")&&(i="shop now::your bag is empty(shopping bag)"),d(`clicked: ${i}\n`),f(r.href,i,!1,c),t(e,n)}}(n,e,t))}));const r=Array.from(document.querySelectorAll(".globalnav-link")).filter((e=>"search"!==e.id));d(`fly out static menu for ${r.length} items\n`),r.forEach((n=>function(e,t,n){e&&e.addEventListener("mousedown",(e=>{const r=e.currentTarget;let a=r.getAttribute("data-analytics-title");r.classList.contains("globalnav-link-bag")&&(a="shopping bag");try{d(`clicked: ${a}\n`),f(r.href,a.trim().toLowerCase(),!1),t(e,n)}catch(e){console.warn("Failed to attach event",e)}}))}(n,e,t)))}const v="_document_mousedown_listener_added",y="_document_keyup_listener_added";function w(e,t="marcom-menu-listener"){const n=!!e.getAttribute(t);return d(`has ${t} listener`,n),n}function b(e){window._applemd=window._applemd||{},window._applemd={...window._applemd,search:e},d("setAppleMd:",e)}function _(e,t){if(d(`setAppleMdSearch ${t}`),e){const n=e.textContent.trim().toLowerCase(),r=e.getAttribute("href").toLowerCase(),a=window._satellite&&window._satellite.getVar("FN:Get_Link_Dest_Platform")(r),o=e.getAttribute("data-index");return{location:"globalnav_support",link_type:t,dest_url:r,link_text:n,link_index:Number.parseInt(o),dest_platform:a}}return{}}function T(e){const t=document.getElementById("globalnav");let n=e.target,r=!1,a={};try{n.classList.contains("ac-gn-searchresults-link")&&!n.classList.contains("ac-gn-searchresults-link-suggestions")?(a=_(n,"quicklink"),r=!0):n.classList.contains("ac-gn-searchresults-link-suggestions")&&(a=_(n,"suggested search"),r=!0),t&&(n=function(e){let t=e;if(document.getElementById("globalnav").contains(e))for(;"A"!==t.tagName;)t=t.parentElement;return t}(n));const e=n.parentElement.parentElement.parentElement,o=e.getAttribute("data-analytics-region")||e.getAttribute("data-analytics-title")||e.parentElement.parentElement.getAttribute("data-analytics-title")||e.parentElement.parentElement.getAttribute("data-analytics-region");n.getAttribute("data-section").includes("quicklink")||o.includes("defaultlinks")||o.includes("suggested links")?(a=_(n,"quicklink"),r=!0):(o.includes("suggested search")||o.includes("suggestions search"))&&(a=_(n,"suggested search"),r=!0),b(a)}catch{}return{linkFound:r,search:a}}function S(e=h,t={}){const n=function(){let e=document.getElementsByClassName("ac-gn-searchview-content")[0];return e||(e=document.querySelector("button.globalnav-searchfield-submit")||document.getElementById("ac-gn-searchform-submit")),e}();w(n,"search-button-listener")||n.addEventListener("mousedown",(n=>{const r=(document.getElementById("ac-gn-searchform-input")||document.querySelector("input.globalnav-searchfield-input")).value.trim().toLowerCase();if(r){b({location:"globalnav_support",link_type:"user",link_text:r,dest_url:"https://support.apple.com/kb/index",dest_platform:window._satellite&&window._satellite.getVar("FN:Get_Link_Dest_Platform")("https://support.apple.com/kb/index")}),e(n,t)}}))}function k(e=h,t={},n=!1){const r=n||window.location.search.indexOf("log")>0;r&&console.info("%c** addMarcomSearchEvents"+(r?" [log enabled] **":" --"),"color: violet;");try{d("isLegacyMenu",!!document.querySelectorAll("ul.ac-gn-header").length),function(e=h,t={}){const n=document.getElementById("globalnav-menubutton-link-search")||document.getElementById("ac-gn-link-search");w(n,"search-icon-listener")||n.addEventListener("mousedown",(n=>{const r="internal search";d(`fired: ${r}`),b({name:"click-mag-glass",link_type:"acs",link_text:r}),e(n,t),setTimeout((()=>{b({})}),200)}))}(e,t);const n=!!window._analytics[v];d("hasDocumentEvent",n),n||(window._analytics[v]=!0,document.addEventListener("mousedown",(n=>{const{linkFound:r,search:a}=T(n);r&&(d("fired document mousedown event"),e(n,t,a))})));const r=!!window._analytics[y];d("hasKeyUpEvent",r),r||(window._analytics[y]=!0,document.addEventListener("keyup",(()=>{d("fired document keyup event"),b({});T({target:document.getElementsByClassName("ac-gn-searchresults-link current")[0]||document.querySelector('a[data-focus-method="key"]')})}))),function(e=h,t={}){const n=document.querySelector("input.globalnav-searchfield-input");w(n,"searchfield-input-listener")||n.addEventListener("keydown",(n=>{d("fired searchfield-input-listener\n");const r=document.querySelector("button.globalnav-searchfield-submit")||document.getElementById("ac-gn-searchform-submit"),a=document.querySelector("input.globalnav-searchfield-input"),o=n.target.classList.contains("ac-gn-searchresults-link"),i=n.target===a;if("Enter"===n.key&&(o||n.target===r||i)){let r=document.getElementById("ac-gn-searchform-input")||n.target;const a="https://support.apple.com/kb/index";r=r.value.trim().toLowerCase(),b({}),window._applemd.search.link_type||b({location:"globalnav_support",link_type:"user",link_text:r,dest_url:a,dest_platform:window._satellite&&window._satellite.getVar("FN:Get_Link_Dest_Platform")("https://support.apple.com/kb/index")}),(r||"user"!==window._applemd.search.link_type)&&e(n,t)}}))}(e,t),S(e,t)}catch{}}function O(e,...t){return[...t].map((t=>t.replace(/\[([^\[\]]*)\]/g,".$1.").split(".").filter((e=>""!==e)).reduce(((e,t)=>e&&e[t]),e)))}window._analytics=window._analytics||{};const E={name:"Matching rule patterns",notes:["Rules are applied in sequencial order for each host, so more specific rules should be listed first.","Patterns are regular expressions, so you can use any valid regular expression syntax.","Patterns are case sensitive, so you may need to use the case insensitive flag: /pattern/i","Patterns are applied to the url object target specified, supported targets are: pathname, searchParams, and hostname","When dataSource is specified, the value return will be the computed value obtained from the specified override object in the configuration (typically _applemd object)","When override is specified, upon finding a match for the pattern, the returned value will the arbitrary value given"],hosts:[{hostname:"local.apple.com",notes:"For local testing purposes only",rules:[{name:"Deep links",pattern:"[\\?\\&](?:CALLER|caller)=([^\\&]+)",target:"search",description:"Match deep links."},{name:"Home Page",pattern:"(https:+[^\\s]+local\\.apple\\.com:3003(?:\\/?|\\?)$|cid=gn-ols-home-hp-tab)",matchOverride:"/",target:"href",description:"When matching the pattern, return the matchOverride value"},{name:"Search",pattern:"[\\?\\&](?:Q|q)=([^\\&]+)",target:"searchParams",matchPrepend:"q=",description:"Match any path that contains a query string parameter named q and save the value entered."},{name:"Content Id From Guide Routes",pattern:"\\/guide\\/",target:"pathname",dataSource:"_applemd.page.friendly_content.article_id",description:"Match a path that includes */guide/* and and save the value contained in the dataSource specified."},{name:"Content Id From Guide Routes",pattern:"\\/guide\\/",target:"pathname",dataSource:"_applemd.component.search.docID",description:"Match a path that includes */guide/* and and save the value contained in the dataSource specified."},{name:"Product Selection Page",pattern:"(\\/(?:products|PRODUCTS|topics|TOPICS)(\\/?)$)",target:"pathname",dataSource:"_applemd.product.list",description:"match a path that includes /products or /topics and matches the value contained in the dataSource specified."},{name:"Product Selection Page (No match)",pattern:"(\\/(?:nomatchoverride)(\\/?)$)",target:"pathname",dataSource:"_applemd.product.no.match",description:"match a path that includes /products or /topics and matches the value contained in the dataSource specified."},{name:"Locale selector)",pattern:"(\\/(?:localeselector)(\\/?)$)",target:"pathname",matchOverride:"/kb/locale selector",description:"match localeselector and override it with arbitrary"},{name:"Flyout search)",pattern:"[\\?\\&](?:FLYOUTSEARCH|flyoutsearch)=([^\\&]+)",target:"pathname",matchOverride:"/flyoutsearch",description:"match flyoutsearch and override it with its link label"},{name:"HT",pattern:"/(?:HT|ht)\\d+",matchPrepend:"/kb",target:"pathname",description:"match any path that includes /HT* (case insensitive)"},{name:"Full Path",pattern:"/(.+)",target:"pathname",description:"match full path"},{name:"Host local.apple.com",pattern:"local.apple.com",target:"hostname",description:"When matching the pattern, return the matchOverride value"}]},{hostname:"support.apple.com",rules:[{name:"Search",pattern:"[\\?\\&](?:q|query)=([^\\&]+)",target:"searchParams",matchPrepend:"q=",description:"Match any path that contains a query string parameter named q and save the value entered."},{name:"Keywords: downloads, manuals, spects",pattern:"(\\/(?:downloads|manuals|specs|iphone|find-my|mac)(\\/?)$)",target:"pathname",description:"match any path that ends in / + downloads, manuals, specs"},{name:"Content Id From Guide Routes",pattern:"\\/guide\\/",target:"pathname",dataSource:"_applemd.page.friendly_content.article_id",description:"Match a path that includes */guide/* and and save the value contained in the dataSource specified."},{name:"Flyout search)",pattern:"[\\?\\&](?:FLYOUTSEARCH|flyoutsearch)=([^\\&]+)",target:"pathname",matchOverride:"/flyoutsearch",description:"match flyoutsearch and override it with its link label"},{name:"Locale selector)",pattern:"(\\/(?:localeselector)(\\/?)$)",target:"pathname",matchOverride:"/kb/locale selector",description:"match localeselector and override it with arbitrary"},{name:"KB/DL",pattern:"/(?:kb|KB)/(?:DL|dl)\\d+",target:"pathname",description:"match any path that includes /kb/KB* (case insensitive)"},{name:"KB/SP",pattern:"/(?:kb|KB)/(?:SP|sp)\\d+",target:"pathname",description:"match any path that includes /kb/SP* (case insensitive)"},{name:"HT",pattern:"/(?:HT|ht)\\d+",target:"pathname",matchPrepend:"/kb",description:"match any path that includes /HT* (case insensitive)"},{name:"Full Path",pattern:"/(.+)",target:"pathname",description:"match full path"},{name:"Bonsai Home Page",pattern:"(https:+[^\\s]+support\\.apple\\.com(?:\\/?|\\?)$|cid=gn-ols-home-hp-tab)",matchOverride:"/",target:"href",description:"When matching the pattern, return the matchOverride value"},{name:"Product Selection Page",pattern:"support.apple.com",target:"hostname"}]},{hostname:"manuals.info.apple.com",rules:[{name:"Manuals/d+/MA*",pattern:"/(?:manuals|MANUALS)/\\d+/MA\\d+",target:"pathname",description:"match any path that includes /manuals/d+/MA* (case insensitive)"}]},{hostname:"getsupport.apple.com",notes:"getsupport logging is handled by tracking app:action instead of rules",rules:[]},{hostname:"discussions.apple.com",rules:[{name:"thread",pattern:"/thread/\\d+",target:"pathname",description:"match any path that includes /kb/KB*"},{name:"Full Path",pattern:"/(.+)",target:"pathname",description:"match full path"}]},{hostname:"mysupport.apple.com",rules:[{name:"mysupport.apple.com",pattern:"mysupport.apple.com",target:"hostname"},{name:"Full Path",pattern:"/(.+)",target:"pathname",description:"match full path"}]}]};function P(e,t=!1){let n={found:!1,match:"",error:"",dataSource:""};const r=t,a=function(e){let t;if(!e)throw new Error("\nError: a valid url string is required for matchRule().\n");try{t=new URL(e)}catch(t){throw new Error(`\nError: ${e} is not a valid url.\n`)}return t}(e),o=E.hosts.find((e=>e.hostname===a.hostname));if(!o){const e=`Warn: no host rules found for ${a.hostname}`;return r&&console.warn(e),n.error=e,n}const i=o.rules.some((e=>{if(e.pattern){if(e.target){const r=new RegExp(e.pattern);let o="";switch(e.target){case"href":o=r.exec(a.href)?.[0];break;case"pathname":default:o=r.exec(a.pathname)?.[0];break;case"hostname":o=r.exec(a.hostname)?.[0];break;case"searchParams":o=a.searchParams.get("q")||a.searchParams.get("query")||"";break;case"search":o=a.search}return o&&(n={found:!0,match:(t=o,t.replace(/\/$/,"")),...e.dataSource&&{dataSource:e.dataSource},...e.matchOverride&&{matchOverride:e.matchOverride},...e.matchPrepend&&{matchPrepend:e.matchPrepend},target:e.target,error:""}),Boolean(o)}return n.error=`Error: no target found for rule ${e.name}`,!1}return n.error=`Error: no pattern found for rule ${e.name}`,!1;var t}));if(!i){let t="NN Warn: there is no rule defined for url";document.location.hostname.includes("getsupport")?(t="NN: getsupport exception",r&&console.info(`%c${t} ${e}.`,"color: darkviolet;")):r&&console.warn(`${t} ${e}. Using url value instead.`),n={...n,error:t,match:e}}return n}function A(e,t="",n,r=!1){let a="";const o=r;if(n&&e?.dataSource&&e?.dataSource.length&&"/localeselector"===e.match||(o&&e.match.length&&!e.matchOverride&&console.info(`%cNN: Found match in rule "${e.match}"`,"color: darkviolet;"),o&&e.matchOverride&&console.info(`%cNN: Found arbitrary override "${e.matchOverride}"`,"color: darkviolet;"),a=e.matchOverride?e.matchOverride:e.matchPrepend?`${e.matchPrepend}${e.match}`:e.match),e.found){if("/localeselector"===e.match){const t=O(n,"_applemd.page.locale")[0];return a=`${e.matchOverride} (${t})`,o&&e.matchOverride&&console.info(`%cNN: Found arbitrary locale selector override "${a}"`,"color: darkviolet;"),a}if(e.dataSource?.length){if(!n)throw new Error("Error: override object is required when dataSource is provided.");if("_applemd.product.list"===e.dataSource){const r=O(n,e.dataSource)[0];if(r){a=`gs-prod-${(Array.isArray(r)?r[0]:r).split("::")[0]}`.toLowerCase()}else{a=t;const n=`NN Warn: no override found for dataSource ${e.dataSource}`;o&&console.info(`%c${n}. Using url value instead.`,"color: darkorange;")}}else a=O(n,e.dataSource)[0],a=a?a.toLowerCase():document.location.pathname;if(a&&o&&console.info(`%cNN: Overriding match with "${a}"`,"color: darkviolet;"),!a){a=t;const n=`NN Warn: no override found for dataSource ${e.dataSource}`;o&&console.info(`%c${n}. Using url value instead.`,"color: darkorange;"),e.error=n}}}else{a=t;const e=`NN Warn: no rule found for dataSource ${t}`;o&&console.warn(`${e}. Using url value instead.`)}const i=O(n,"_applemd.page.content_type")[0];return i&&"404"===i&&(a="/404"),a}function L(e){const t=document.location.hostname;if("appReload"===e.eventName&&e.deepLinkQueryString)return function(e){const t=new URLSearchParams(e);return Array.from(t.entries()).reduce(((e,[t,n])=>{switch(t){case"caller":e.push(`gs-caller-${n.toLowerCase()}`);break;case"SG":case"PGF":e.push(`gs-prod-${n.toLowerCase()}`);break;case"category_id":e.push(`gs-cat-${n.toLowerCase()}`);break;case"symptom_id":e.push(`gs-symptom-${n.toLowerCase()}`)}return e}),[])}(e.deepLinkQueryString);if("viewCountries"===e.eventName)return document.location.href.toLowerCase().replace("https://","");if("viewLobby"!==e.eventName||(e.internalReferURL||"").includes("idms.apple.com")){if("viewProducts"===e.eventName){return(document.location.href||`${t}/products`).toLowerCase().replace("https://","")}if("viewCategories"===e.eventName){return`gs-prod-${e.productID.split("::")[0].toLowerCase()}`}if("chooseCategory"===e.eventName)return`gs-cat-${e.categoryID.toLowerCase()}`;if("chooseSymptom"===e.eventName)return`gs-sym-${e.symptomID.toLowerCase()}`;if("viewSolutions"===e.eventName)return`${t}/solutions`;if("viewSupportActivity"===e.eventName)return`${t}/activity`;if(["tapViewCaseDetails","viewCaseDetails"].includes(e.eventName))return`${t}/caselookup/details`;if(["viewChat","viewSolutionConfirmation","viewSignInSerialNumber","viewC2CandSCB","chooseSolution","viewCaseDetails","submitManualSerial","viewScheduleCallBack"].includes(e.eventName)){const t=e.solutionSelectedType||e.caseType||"";return t.length&&Array.isArray(t.split("::"))?`/gs/${t.split("::").toString().replace(",","/")}`:""}return["referral","selectSignInBody-solutions-redirect","selectSignInBody-solutions-redirect-blank"].includes(e.eventName&&e.internalDestinationPageName)?e.internalDestinationPageName:""}return(e.internalReferURL||document.location.href||t).toLowerCase().replace("https://","")}const x=window.document;async function D(e={}){const{storageKey:t="nn-user-journey",storageType:r="cookie",startingJourneyEntryString:a="no-referrer",storageTimeout:o=78e4,storageMaxEntries:i=12,overrides:c={},logging:s=!0}=e;let u;if(s&&console.info(`%cNN: Track User Journey [${r}]`,"color: darkviolet;"),"cookie"===r)await Promise.resolve().then(n.bind(n,823)).then((({useCookies:e})=>{u=e(t,{timeout:o})}));else{if("localStorage"!==r)throw new Error('Error: storageType must be either "cookie" or "localStorage"');await Promise.resolve().then(n.bind(n,380)).then((({useStorage:e})=>{u=e(t,{timeout:o})}))}return{logJourneyStep:function(e){const t=u.get(),n=x.referrer.length?x.referrer:a,r=e.overrides||c,o=P(e.to,s);if(s&&console.info("%cNN: Rule Data","color: darkviolet;"),s&&console.info(o),!e.to.includes("getsupport")||e.stepString)if(t&&t?.value.journey){let c=[],l=e.to;const p=e.to;l=e.stepString?e.stepString:A(o,p,r,s);const d=t.value.journey.lastPath===l;if(!d){c=d?t.value.journey.stitchPath:[...t.value.journey.stitchPath,...n.length&&n!==a&&!n.includes(".apple.com")?[n]:[],...x.referrer&&a===n?[n]:[],l];c.length>i&&c.shift();const r={os:e.os,device:e.device,journey:{lastPath:l,stitchPath:c}};s&&console.info("%cNN: stitchPath","color: darkviolet;"),s&&console.info(c),u.set(r)}}else{const t=e.to;let a=t;a=e.stepString?e.stepString:A(o,t,r,s);const i={os:e.os,device:e.device,journey:{lastPath:a,stitchPath:[n,a]}};s&&console.info("%cNN: stitchPath","color: darkviolet;"),s&&console.info(i.journey.stitchPath),u.set(i)}},setJourneyStepForGetSupport:L,storage:u}}var N,C,j,I,q,H=-1,M=function(e){addEventListener("pageshow",(function(t){t.persisted&&(H=t.timeStamp,e(t))}),!0)},R=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},V=function(){var e=R();return e&&e.activationStart||0},B=function(e,t){var n=R(),r="navigate";return H>=0?r="back-forward-cache":n&&(document.prerendering||V()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},U=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},J=function(e,t,n,r){var a,o;return function(i){t.value>=0&&(i||r)&&((o=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},F=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},$=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},W=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},z=-1,K=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Q=function(e){"hidden"===document.visibilityState&&z>-1&&(z="visibilitychange"===e.type?e.timeStamp:0,Y())},G=function(){addEventListener("visibilitychange",Q,!0),addEventListener("prerenderingchange",Q,!0)},Y=function(){removeEventListener("visibilitychange",Q,!0),removeEventListener("prerenderingchange",Q,!0)},X=function(){return z<0&&(z=K(),G(),M((function(){setTimeout((function(){z=K(),G()}),0)}))),{get firstHiddenTime(){return z}}},Z=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},ee=[1800,3e3],te=function(e,t){t=t||{},Z((function(){var n,r=X(),a=B("FCP"),o=U("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(a.value=Math.max(e.startTime-V(),0),a.entries.push(e),n(!0)))}))}));o&&(n=J(e,a,ee,t.reportAllChanges),M((function(r){a=B("FCP"),n=J(e,a,ee,t.reportAllChanges),F((function(){a.value=performance.now()-r.timeStamp,n(!0)}))})))}))},ne=[.1,.25],re={passive:!0,capture:!0},ae=new Date,oe=function(e,t){N||(N=t,C=e,j=new Date,se(removeEventListener),ie())},ie=function(){if(C>=0&&C<j-ae){var e={entryType:"first-input",name:N.type,target:N.target,cancelable:N.cancelable,startTime:N.timeStamp,processingStart:N.timeStamp+C};I.forEach((function(t){t(e)})),I=[]}},ce=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){oe(e,t),a()},r=function(){a()},a=function(){removeEventListener("pointerup",n,re),removeEventListener("pointercancel",r,re)};addEventListener("pointerup",n,re),addEventListener("pointercancel",r,re)}(t,e):oe(t,e)}},se=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ce,re)}))},ue=[100,300],le=[2500,4e3],pe={},de=[800,1800],he=function e(t){document.prerendering?Z((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},fe=function(e,t){t=t||{};var n=B("TTFB"),r=J(e,n,de,t.reportAllChanges);he((function(){var a=R();if(a){var o=a.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-V(),0),n.entries=[a],r(!0),M((function(){n=B("TTFB",0),(r=J(e,n,de,t.reportAllChanges))(!0)}))}}))},ge=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},me=function(e){if("loading"===document.readyState)return"loading";var t=ge();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},ve=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},ye=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,a=r.id?"#"+r.id:ve(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+a.length>(t||100)-1)return n||a;if(n=n?a+">"+n:a,r.id)break;e=r.parentNode}}catch(e){}return n},we=-1,be=function(){return we},_e=function(e){addEventListener("pageshow",(function(t){t.persisted&&(we=t.timeStamp,e(t))}),!0)},Te=function(){var e=ge();return e&&e.activationStart||0},Se=function(e,t){var n=ge(),r="navigate";return be()>=0?r="back-forward-cache":n&&(document.prerendering||Te()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ke=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Oe=function(e,t,n,r){var a,o;return function(i){t.value>=0&&(i||r)&&((o=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},Ee=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Pe=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Ae=(new Date,0),Le=1/0,xe=0,De=function(e){e.forEach((function(e){e.interactionId&&(Le=Math.min(Le,e.interactionId),xe=Math.max(xe,e.interactionId),Ae=xe?(xe-Le)/7+1:0)}))},Ne=function(){return q?Ae:performance.interactionCount||0},Ce=[200,500],je=0,Ie=function(){return Ne()-je},qe=[],He={},Me=function(e){var t=qe[qe.length-1],n=He[e.interactionId];if(n||qe.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};He[r.id]=r,qe.push(r)}qe.sort((function(e,t){return t.latency-e.latency})),qe.splice(10).forEach((function(e){delete He[e.id]}))}},Re=function(e,t){t=t||{},Pe((function(){var n;"interactionCount"in performance||q||(q=ke("event",De,{type:"event",buffered:!0,durationThreshold:0}));var r,a=Se("INP"),o=function(e){e.forEach((function(e){e.interactionId&&Me(e),"first-input"===e.entryType&&!qe.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Me(e)}));var t,n=(t=Math.min(qe.length-1,Math.floor(Ie()/50)),qe[t]);n&&n.latency!==a.value&&(a.value=n.latency,a.entries=n.entries,r())},i=ke("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=Oe(e,a,Ce,t.reportAllChanges),i&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&i.observe({type:"first-input",buffered:!0}),Ee((function(){o(i.takeRecords()),a.value<0&&Ie()>0&&(a.value=0,a.entries=[]),r(!0)})),_e((function(){qe=[],je=Ne(),a=Se("INP"),r=Oe(e,a,Ce,t.reportAllChanges)})))}))};function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function Ue(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Je="nn-clientId",Fe="nn-data",$e={systemDomLoaded:"system:dom-content-loaded",systemLoad:"system:load",systemUnfocus:"system:unfocus",systemFocus:"system:focus",systemUnload:"system:unload",systemPagehide:"system:page-hide",systemVisibilitychangeVisible:"system:visibility-change-visible",systemVisibilitychangeHidden:"system:visibility-change-hidden",systemEvent:"system:event",systemPerformance:"system:performance",systemWebVitals:"system:cwv",systemPreceding:"system:preceding",appLoad:"app:load",appUnload:"app:unload",appEvent:"app:event",appSurvey:"app:survey",appMarcomSearch:"app:marcom-search"},We={DOMContentLoaded:["trackDomContentLoaded","systemDomLoaded"],load:["trackLoad","systemLoad"],focus:["trackFocus","systemFocus"],blur:["trackUnfocus","systemUnfocus"],unload:["trackUnload","systemUnload"],pagehide:["trackPagehide","systemPagehide"]},ze=window.navigator&&window.navigator.sendBeacon&&"function"==typeof window.navigator.sendBeacon,Ke={source:{value:null,allowOverwrite:!0,type:"string"},endpoint:{value:null,allowOverwrite:!0,type:"string"},appDataSchemaVersion:{value:null,allowOverwrite:!0,type:"string"},clientId:{value:!0,allowOverwrite:!0,type:"boolean"},highEntropyUserSystemValues:{value:["architecture","bitness","model","mobile","platform","platformVersion","fullVersionList"],allowOverwrite:!0,type:"array"},platform:{value:!0,allowOverwrite:!0,type:"boolean"},externalClientId:{value:!0,allowOverwrite:!0,type:"boolean"},batching:{value:ze,allowOverwrite:!0,type:"boolean",modifier:function(e){return!(!e||!ze)}},batchingInterval:{value:1e4,allowOverwrite:!0,type:"number"},batchingInterruptionEvents:{value:["blur","unload","load","pagehide","visibilitychangeVisible","visibilitychangeHidden"],allowOverwrite:!0,type:"array"},clientIdRotationPeriod:{value:432e5,allowOverwrite:!0,type:"number"},dictionary:{value:null,allowOverwrite:!0,type:"object"},timezoneName:{value:!0,allowOverwrite:!0,type:"boolean"},timezoneOffset:{value:!0,allowOverwrite:!1,type:"boolean"},timestampOffset:{value:!1,allowOverwrite:!0,type:"boolean"},timestampOffsetEndpoint:{value:null,allowOverwrite:!0,type:"string"},trackDomContentLoaded:{value:!0,allowOverwrite:!0,type:"boolean"},trackLoad:{value:!0,allowOverwrite:!0,type:"boolean"},trackFocus:{value:!0,allowOverwrite:!0,type:"boolean"},trackUnfocus:{value:!0,allowOverwrite:!0,type:"boolean"},trackPagehide:{value:!0,allowOverwrite:!0,type:"boolean"},trackUnload:{value:!0,allowOverwrite:!0,type:"boolean"},trackVisibilitychangeVisible:{value:!0,allowOverwrite:!0,type:"boolean"},trackVisibilitychangeHidden:{value:!0,allowOverwrite:!0,type:"boolean"},trackViewportChanges:{value:!0,allowOverwrite:!0,type:"boolean"},trackScrollDepth:{value:!0,allowOverwrite:!0,type:"boolean"},trackTimeOnPage:{value:!0,allowOverwrite:!0,type:"boolean"},analyticsExemptionSiteEnabled:{value:!0,allowOverwrite:!0,type:"boolean"},analyticsExemptionSiteKeyword:{value:"exempted",allowOverwrite:!0,type:"string"},analyticsExemptionSiteMetadataName:{value:"analytics:s-runmode",allowOverwrite:!0,type:"string"},trackCWV:{value:!0,allowOverwrite:!0,type:"boolean"},CWVOptions:{value:{inp:{details:!1,minThreshold:200,throttlingPercentage:0}},allowOverwrite:!0,type:"object"},trackSurvey:{value:!1,allowOverwrite:!0,type:"boolean"},trackMarcomSearch:{value:!1,allowOverwrite:!0,type:"boolean"},trackUserJourney:{value:!0,allowOverwrite:!0,type:"boolean"},lateReporting:{value:!0,allowOverwrite:!0,type:"boolean"},inactivityClientIdRotationInterval:{value:18e5,allowOverwrite:!0,type:"number"},reportThrottledPerformanceDataTypes:{value:[$e.systemLoad],allowOverwrite:!0,type:"array",modifier:function(e){var t=[];return e.forEach((function(e){Object.keys($e).map((function(e){return $e[e]})).indexOf(e)>=0&&t.indexOf(e)<0&&t.push(e)})),t}},performanceDataThrottlingPercentage:{value:10,allowOverwrite:!0,type:"number",modifier:function(e){return e<0?0:e>100?100:e}},reportThrottledWebVitalDataTypes:{value:[$e.systemDomLoaded,$e.systemLoad,$e.systemUnfocus,$e.systemFocus,$e.systemUnload,$e.systemPagehide,$e.systemVisibilitychangeVisible,$e.systemVisibilitychangeHidden,$e.systemEvent,$e.appLoad,$e.appUnload,$e.appEvent],allowOverwrite:!0,type:"array",modifier:function(e){var t=[];return e.forEach((function(e){Object.keys($e).map((function(e){return $e[e]})).indexOf(e)>=0&&t.indexOf(e)<0&&t.push(e)})),t}},webVitalDataThrottlingPercentage:{value:100,allowOverwrite:!0,type:"number",modifier:function(e){return e<0?0:e>100?100:e}},trackCookie:{value:!1,allowOverwrite:!0,type:"boolean"},cookieName:{value:"nn_la",allowOverwrite:!0,type:"string"},cookieDomain:{value:".apple.com",allowOverwrite:!0,type:"string"},cookieExpire:{value:864e5,allowOverwrite:!0,type:"number"},urlValidator:{value:null,allowOverwrite:!0,type:"function"},_getValues:function(){var e=this,t={};return Object.keys(this).filter((function(e){return"_getValues"!==e})).forEach((function(n){t[n]=e[n].value})),t}},Qe=function(){return Ue((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"DEFAULT";Ve(this,e),this.namespace=t,this.shouldLog=!1}),[{key:"checkLogStatus",value:function(){var e=new URLSearchParams(window.location.search),t=Object.fromEntries(e.entries()),n=Object.keys(t).some((function(e){return["log","showNeighborLogs"].includes(e)}));n&&localStorage.setItem("neighbor-log",n);var r=localStorage.getItem("neighbor-log");this.shouldLog=n||r,this.shouldLog=n}},{key:"shouldLog",value:function(){return this.shouldLog}},{key:"log",value:function(){if(this.checkLogStatus(),this.shouldLog){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).info.apply(e,["%c".concat(this.namespace,":"),"color: gray;"].concat(n))}}},{key:"colorLog",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blue",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.checkLogStatus(),this.shouldLog){var r=n?["color: orange","background: lightyellow","font-size: 12px","border: 1px dashed orange","padding: 5px"]:["color: ".concat(t||"blue"),"font-size: 12px"];console.info("%c".concat(this.namespace,": ").concat(e),r.join(";"))}}},{key:"error",value:function(e){this.colorLog(e,"red")}},{key:"info",value:function(e){this.colorLog(e,"gray")}},{key:"warn",value:function(e){this.colorLog(e,"orange")}},{key:"blue",value:function(e){this.colorLog(e,"blue")}}])}(),Ge=new Qe("NN"),Ye=Ge.shouldLog,Xe=Ge;function Ze(e){var t=e.cwv,n=e.config;!function(e,t){t=t||{},te(W((function(){var n,r=B("CLS",0),a=0,o=[],i=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=o[0],n=o[o.length-1];a&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>r.value&&(r.value=a,r.entries=o,n())},c=U("layout-shift",i);c&&(n=J(e,r,ne,t.reportAllChanges),$((function(){i(c.takeRecords()),n(!0)})),M((function(){a=0,r=B("CLS",0),n=J(e,r,ne,t.reportAllChanges),F((function(){return n()}))})),setTimeout(n,0))})))}((function(e){t.cls=e.value})),function(e,t){t=t||{},Z((function(){var n,r=X(),a=B("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),n(!0))},i=function(e){e.forEach(o)},c=U("first-input",i);n=J(e,a,ue,t.reportAllChanges),c&&$(W((function(){i(c.takeRecords()),c.disconnect()}))),c&&M((function(){var r;a=B("FID"),n=J(e,a,ue,t.reportAllChanges),I=[],C=-1,N=null,se(addEventListener),r=o,I.push(r),ie()}))}))}((function(e){t.fid=e.value})),function(e,t){t=t||{},Z((function(){var n,r=X(),a=B("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(a.value=Math.max(t.startTime-V(),0),a.entries=[t],n())},i=U("largest-contentful-paint",o);if(i){n=J(e,a,le,t.reportAllChanges);var c=W((function(){pe[a.id]||(o(i.takeRecords()),i.disconnect(),pe[a.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(c,0)}),!0)})),$(c),M((function(r){a=B("LCP"),n=J(e,a,le,t.reportAllChanges),F((function(){a.value=performance.now()-r.timeStamp,pe[a.id]=!0,n(!0)}))}))}}))}((function(e){t.lcp=e.value})),te((function(e){t.fcp=e.value})),fe((function(e){t.ttfb=e.value})),function(e,t){Re((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0],n=e.entries.find((function(e){return e.target}));e.attribution={eventTarget:ye(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:me(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){if(Xe.log("inp detail:",e),n.CWVOptions.inp.details){n.CWVOptions.inp.minThreshold||(n.CWVOptions.inp.minThreshold=200);var r=(a=n.CWVOptions.inp.throttlingPercentage,!!(100*Math.random()<=a&&a>=0));e.delta>n.CWVOptions.inp.minThreshold||r?t.inp=e:t.inp=e.value}else t.inp=e.value;var a}))}var et=n(806);function tt(t){t="string"!=typeof t?JSON.stringify(t):t;try{t=JSON.parse(t)}catch(e){return!1}return"object"===e(t)&&null!==t}var nt=function(){return Ue((function e(t){var n=t.key,r=t.readOldData,a=t.batching,o=t.maxDataSize,i=void 0===o?6e4:o;Ve(this,e),this._key=n,this._batching=a,this._readOldData=r,this._rawStore=[],this._chunkedStore=[],this._nonBeacon_HTTPOnly_BackupStore=[],this._maxDataSize=i,this.types={BeaconCHUNK:"chunk",HTTPall:"all"},this.queueTypes={RAW:"raw",CHUNKED:"chunked",HTTPONLY:"httponly",TIMESTAMP:"timestamp"},r&&this._readLocalStorage()}),[{key:"queueName",value:function(e){switch(e){case this.queueTypes.RAW:return"".concat(this._key,"-raw");case this.queueTypes.CHUNKED:return"".concat(this._key,"-chunked");case this.queueTypes.HTTPONLY:return"".concat(this._key,"-httponly");case this.queueTypes.TIMESTAMP:return"".concat(this._key,"-timestamp");default:return"".concat(this._key,"-raw")}}},{key:"_readLocalStorage",value:function(){var e=localStorage.getItem(this.queueName(this.queueTypes.RAW));this._batching&&e&&e.length>2&&(this._rawStore=JSON.parse(e));var t=localStorage.getItem(this.queueName(this.queueTypes.CHUNKED));this._batching&&t&&t.length>2&&(this._chunkedStore=JSON.parse(t));var n=localStorage.getItem(this.queueName(this.queueTypes.HTTPONLY));!this._batching&&n&&n.length>2&&(this._nonBeacon_HTTPOnly_BackupStore=JSON.parse(n))}},{key:"_updateLocalStorageByConvertingRawToChunked",value:function(){var e=JSON.stringify(this._bundleAllRawToChunks()),t=JSON.stringify(this._rawStore);try{localStorage.setItem(this.queueName(this.queueTypes.RAW),t),localStorage.setItem(this.queueName(this.queueTypes.CHUNKED),e)}catch(e){console.error("Local storage in not avaliable. Most likely Safari Private Mode.",e)}}},{key:"_updateHTTPOnlyBackupLocalStorage",value:function(){var e=JSON.stringify(this._nonBeacon_HTTPOnly_BackupStore);try{localStorage.setItem(this.queueName(this.queueTypes.HTTPONLY),e)}catch(e){console.error("Local storage in not avaliable. Most likely Safari Private Mode.",e)}}},{key:"_updateLocalStorageByAddingTimestamp",value:function(){var e=(new Date).getTime();try{localStorage.setItem(this.queueName(this.queueTypes.TIMESTAMP),e)}catch(e){console.error("Local storage in not avaliable. Most likely Safari Private Mode.",e)}}},{key:"Beaconlength",get:function(){return this._rawStore.length+this._chunkedStore.length}},{key:"HTTPlength",get:function(){return this._nonBeacon_HTTPOnly_BackupStore.length}},{key:"add",value:function(e){this._updateLocalStorageByAddingTimestamp(),this._rawStore.push(e),this._updateLocalStorageByConvertingRawToChunked()}},{key:"removeBeacon",value:function(){this._chunkedStore.shift(),this._updateLocalStorageByConvertingRawToChunked()}},{key:"flushHTTP",value:function(){this._nonBeacon_HTTPOnly_BackupStore=[],this._updateLocalStorageByConvertingRawToChunked(),this._updateHTTPOnlyBackupLocalStorage()}},{key:"_extractSingleChunkFromRawStore",value:function(){for(var e=[],t=0;JSON.stringify(e).length<this._maxDataSize&&t<this._rawStore.length;)e.push(this._rawStore[t]),t++;JSON.stringify(e).length>this._maxDataSize&&(e.pop(),t--);for(var n=0;n<t;n++)this._rawStore.shift();return e}},{key:"_bundleAllRawToChunks",value:function(){for(;JSON.stringify(this._rawStore).length>this._maxDataSize;)this._chunkedStore.push(this._extractSingleChunkFromRawStore());return this._chunkedStore}},{key:"peek",value:function(e){switch(e){case this.types.HTTPall:var t=this._chunkedStore,n=this._extractSingleChunkFromRawStore();return n.length&&t.push(n),this._chunkedStore=[],t.length?(this._nonBeacon_HTTPOnly_BackupStore=t.reduce((function(e,t){return e.concat(t)}),[]),this._updateHTTPOnlyBackupLocalStorage(),this._nonBeacon_HTTPOnly_BackupStore):t;case this.types.BeaconCHUNK:if(0===this._chunkedStore.length){var r=this._extractSingleChunkFromRawStore();return r.length?(this._chunkedStore.push(r),this._chunkedStore[0]):[]}return this._chunkedStore[0];default:return[]}}},{key:"getAllData",value:function(){var e=this._chunkedStore,t=this._extractSingleChunkFromRawStore();t.length&&e.push(t),this._chunkedStore=[];var n=e.reduce((function(e,t){return e.concat(t)}),[]);return e.length&&(this._nonBeacon_HTTPOnly_BackupStore.length?this._nonBeacon_HTTPOnly_BackupStore=this._nonBeacon_HTTPOnly_BackupStore.concat(n):this._nonBeacon_HTTPOnly_BackupStore=n,this._updateHTTPOnlyBackupLocalStorage()),n}},{key:"getChunkData",value:function(){if(0===this._chunkedStore.length){var e=this._extractSingleChunkFromRawStore();return e.length?(this._chunkedStore.push(e),this._chunkedStore[0]):[]}return this._chunkedStore[0]}}])}();function rt(e,t){return new Promise((function(n,r){var a=new XMLHttpRequest;a.open("POST",e,!0),a.setRequestHeader("Content-Type","text/plain"),a.setRequestHeader("x-apple-osk",t.source),a.send(JSON.stringify(t)),a.onload=function(){if(200===a.status)try{var e=JSON.parse(a.response);n(e)}catch(e){r(e)}else r(a.Error)}}))}function at(){return"undefined"!=typeof localStorage&&"function"==typeof localStorage.getItem}function ot(){return"undefined"!=typeof localStorage&&"function"==typeof localStorage.setItem}function it(e){var t=(new Date).getTime();"undefined"!=typeof performance&&"function"==typeof performance.now&&(t+=performance.now());var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=Math.random();if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){var r=new Uint32Array(2);crypto.getRandomValues(r),n=parseFloat("".concat(r[0]).concat(r[1]))/1e20}var a=(t+16*n)%16|0;return t=Math.floor(t/16),("x"===e?a:3&a|8).toString(16)}));return e&&(n=n.concat("-",e)),n}function ct(e,t,n){var r=n.highEntropyUserSystemValues.includes(e),a="".concat(r&&t&&t[e]?t[e]:"");return(a=a.length?" ".concat(a,";"):"").toUpperCase()}function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=function(){var e={browserVendor:navigator.vendor,cookieEnabled:navigator.cookieEnabled,doNotTrack:navigator.doNotTrack,languages:navigator.languages,connection:navigator.connection||navigator.mozConnection||navigator.webkitConnection,screenWidth:window.innerWidth,screenHeight:window.innerHeight};return Xe.log("Technical data collected",e),e},pt=function(){var t,n=(t={},window.performance?("function"==typeof window.performance.getEntriesByType&&Array.isArray(window.performance.getEntriesByType("navigation"))&&window.performance.getEntriesByType("navigation").length>0?t.page=window.performance.getEntriesByType("navigation")[0]:"object"===e(window.performance.timing)&&(t.page=window.performance.timing),"function"==typeof window.performance.getEntriesByType&&(t.resources=window.performance.getEntriesByType("resource"),t.paint=window.performance.getEntriesByType("paint")),t):t);return Xe.log("Performance data collected",n),n};var dt=function(e){var t=e.config,n=e.state;if(t.trackScrollDepth){var r,a,o=(r=document.body,a=document.documentElement,Math.max(r.scrollHeight,r.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight));n.documentHeight=o,Xe.log("Document height updated",n.documentHeight),o<=window.innerHeight&&(n.maxYScroll=window.innerHeight,Xe.log("Document height <= window height, scroll depth set to window height"))}};function ht(t){var n=t.config,r=t.key,a={};return r&&"object"===e(n.dictionary)&&"object"===e(n.dictionary[r])?(a=ut({},n.dictionary[r]),Xe.log("Retrived dictionary data",a)):Xe.log("Dictionary or data for given key is not found",r),a}function ft(){var e=(new Date).getTime();return Xe.log("Timestamp updated",e),e}function gt(e){if(!e.config.platform)return null;var t="";try{t=window.devicePixelRatio>=2?"".concat(navigator.platform," 2x"):navigator.platform}catch(e){}return t}function mt(e){if(!e.config.externalClientId)return null;try{for(var t=null,n=["s_vi","s_fid"],r=0;null===t&&r<n.length;){var a=new RegExp("".concat(n[r],"=([^s;]+)")),o=document.cookie.match(a);o&&o[1]?t=o[1]:r++}return null===t&&Xe.log("No Omniture user id found."),Xe.log("externalClientId updated",t),t}catch(e){return Xe.log("Error occur while trying to find Omniture id.",e),null}}function vt(e){var t=e.config;if(!t.clientId)return null;if(at()&&localStorage.getItem(Je)){var n=localStorage.getItem(Je),r=n.split("-")||[],a=(new Date).getTime(),o=t.clientIdRotationPeriod&&a-r[r.length-1]>t.clientIdRotationPeriod;if(Xe.log("Retrived clientId from the local storage",n),!o)return n}var i=it((new Date).getTime().toString());return Xe.log("New clientId is generated",i),ot()&&(localStorage.setItem(Je,i),Xe.log("ClientId saved to local storage",i)),i}function yt(e){return window.location.search.indexOf("".concat(e,"="))>=0}function wt(e){var t=window.location.search,n="",r="".concat(e,"=");return t&&t.length&&t.indexOf(r)>=0&&(n=(t.split(r)[1]||"").split("&")[0],Xe.log("".concat(e," query parameter captured"),n)),n}function bt(e){return document.cookie.split(";").find((function(t){return t.trim().startsWith("".concat(e,"="))}))}function _t(e,t){bt(e)&&(document.cookie="".concat(e,"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(t))}function Tt(e){var t=e.config,n=e.eventType,r=e.spec,a=void 0===r?{}:r,o=e.state;if(!n)return Xe.error('"eventType" is not specified in gatherData function.'),null;var i={timestamp:!0,url:!0,referrer:!0,eventId:!0,externalClientId:!0,platform:!0,performance:!1,scrollDepth:!0,timeOnPage:!0,webVitals:!1,cid:yt("cid"),caller:yt("caller")};(function(e){var t=e.config,n=e.itemType;return n===$e.systemPerformance||!!(100*Math.random()<=t.performanceDataThrottlingPercentage&&t.reportThrottledPerformanceDataTypes.indexOf(n)>=0)})({itemType:n,config:t})&&(i.performance=!0),function(e){var t=e.config,n=e.itemType;return n===$e.systemWebVitals||!!(100*Math.random()<=t.webVitalDataThrottlingPercentage&&t.reportThrottledWebVitalDataTypes.indexOf(n)>=0)}({itemType:n,config:t})&&(i.webVitals=!0);var c,s,u={type:n,clientTimestamp:null,url:null,referrer:null,scrollDepth:null,timeOnPage:null,performance:{},cwv:{}};(i=Object.assign(i,a)).timestamp&&(u.clientTimestamp=t.timestampOffset?ft()+o.clientTimestampOffset:ft()),i.url&&(u.url=(c=window.location.href,Xe.log("Page url updated",c),c)),i.referrer&&(u.referrer=(s=document.referrer,Xe.log("Page referrer updated",s),s)),i.performance&&(u.performance=pt()),i.webVitals&&(u.cwv=o.cwv||{}),i.scrollDepth&&(dt({config:t,state:o}),u.scrollDepth=function(e){var t=e.config,n=e.state;if(!t.trackScrollDepth)return null;var r=n.documentHeight>0?n.maxYScroll/n.documentHeight:0;return Xe.log("Scroll depth updated",r),parseFloat("".concat(r))}({config:t,state:o})),i.timeOnPage&&(u.timeOnPage=function(e){var t=e.config,n=e.state;if(!t.trackTimeOnPage)return null;var r=(new Date).getTime()-n.startTime;return Xe.log("Time spent on the page updated",r),r}({config:t,state:o})),i.eventId&&(u.eventId=it()),(i.cid||i.caller)&&(u.page=ut(ut(ut({},u.page),i.cid&&{cid:wt("cid")}),i.caller&&{caller:wt("caller")}));var l=function(e){var t=e.config,n=e.state,r=(bt(t.trackUserJourneyConfig.storageKey)||"").split("=")[1],a={device:"",os:"",path:[]};if(r&&tt(unescape(r))){var o=JSON.parse(unescape(r));o.value&&o.value.journey&&(a={device:o.value.device.trim()?o.value.device.trim():n.highEntropyValues.device.trim(),os:o.value.os.trim()?o.value.os.trim():n.highEntropyValues.os.trim(),path:o.value.journey.stitchPath})}return a}({config:t,state:o});return u.page=ut(ut({},u.page),l&&Array.isArray(l.path)&&l.path.length&&{stitch_path:l}),Xe.log("Data prepared",u),u}function St(t){var n=function t(n,r,a){var o={},i=r;return void 0!==a&&""!==a&&(i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?"".concat(a,"[").concat(r,"]"):"".concat(a,".").concat(r)),"object"!==e(n)||Array.isArray(n)||null===n?(o[i]=n,o):(Object.keys(n).forEach((function(e){var r=Array.isArray(n),a=t(n[e],e,i,r);o=function(e){var t={};return e.forEach((function(e){Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t}([o,a])})),o)};return Array.isArray(t)?t.map((function(e){return n(e)})):n(t)}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et=function(e){var t=e.config,n=e.data,r=e.state,a=e.spec,o=void 0===a?{}:a,i=n,c={timestampOffset:t.timestampOffset,timezoneOffset:!0,timezoneName:!0,clientId:!0,externalClientId:!0,platform:!0,techData:!0,viewId:!0,trackSurvey:t.trackSurvey};return c=Object.assign(c,o),t.source?(i={source:t.source,batch:{clientId:vt({config:t}),msgId:it(),externalClientId:mt({config:t}),platform:gt({config:t}),batchClientTimestamp:c.timestampOffset?(new Date).getTime()+r.clientTimestampOffset:(new Date).getTime(),libraryVersion:"1.4.2",appDataSchemaVersion:t.appDataSchemaVersion||"1.0.0"},events:St(JSON.parse(JSON.stringify(n)))},c.timestampOffset&&(i.batch.clientTimestampOffset=r.clientTimestampOffset),c.viewId&&(i.batch.viewId=r.viewId),c.timezoneOffset&&(i.batch.clientTimezoneOffset=function(e){if(!e.config.timezoneOffset)return null;var t=(new Date).getTimezoneOffset();return Xe.log("Timezone offset updated",t),t}({config:t})),c.timezoneName&&(i.batch.clientTimezoneName=function(e){if(!e.config.timezoneName)return null;try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;return Xe.log("Timezone name updated",t),t}catch(e){return Xe.log("Unable to get timezone name.",e),null}}({config:t})),c.techData&&(i.batch=Ot(Ot({},i.batch),lt())),c.lateReporting&&(i.batch.lateReporting=!0),c.trackSurvey&&Object.prototype.hasOwnProperty.call(r,"surveyTracking")&&(i.batch.surveyTracking=r.surveyTracking),i.batch.userAgent=r.highEntropyValues.userAgent?r.highEntropyValues.userAgent:r.userAgent,Xe.blue(i.batch.userAgent),i):(window.console&&console.error("Required fields `source` missing."),!1)};function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=function(){return Ue((function e(t){var n=t.config,r=t.state;Ve(this,e),this._config=n,this._state=r,this._queue=new nt({key:Fe,readOldData:n.lateReporting,batching:n.batching})}),[{key:"_debuggerHook",value:function(e){if("yup"===(window.location.search.split("showNeighborLogs=")[1]||"").split("&")[0])if(Array.isArray(window._neighborHistoryLog)){for(;window._neighborHistoryLog.length>=20;)window._neighborHistoryLog.shift();window._neighborHistoryLog.push(e)}else window._neighborHistoryLog=[],window._neighborHistoryLog.push(e);else if(Array.isArray(window._neighborHistoryLog)){for(;window._neighborHistoryLog.length>=5;)window._neighborHistoryLog.shift();window._neighborHistoryLog.push(e)}else window._neighborHistoryLog=[],window._neighborHistoryLog.push(e)}},{key:"_sendThroughHTTP",value:function(e){var t=this;if(!e||!e.data||0!==e.data.length){var n=0;this._config.timestampOffset&&(n=(new Date).getTime()),rt(this._config.endpoint,e).then((function(r){if(Xe.log("Data sent to server using http req",e),t._debuggerHook(e),t._config.timestampOffset){var a=(new Date).getTime();t._state.clientTimestampOffset=Math.floor(r.offSet-(a-n)/2)}Object.prototype.hasOwnProperty.call(r,"config")&&(t._config=At(At({},t._config),r.config)),t._config.batching&&t._queue.removeBeacon(),t._queue.flushHTTP(),t._queue.HTTPlength>0&&t._sendThroughHTTP(Et({data:t._queue.peek(t._queue.types.HTTPall),config:t._config,state:t._state}))}))}}},{key:"_sendThroughBeacon",value:function(e){e&&e.data&&0===e.data.length||(navigator.sendBeacon(this._config.endpoint,JSON.stringify(e))?(this._debuggerHook(e),Xe.log("Data sent to server using beacon",e),this._queue.removeBeacon(),this._queue.Beaconlength>0&&this._sendThroughBeacon(Et({data:this._queue.peek(this._queue.types.BeaconCHUNK),config:this._config,state:this._state}))):this._sendThroughHTTP(e))}},{key:"_debug",value:function(){return this._queue}},{key:"postDataToNetwork",value:function(e){var t=e.state,n=void 0===t?this._state:t;0!==this._queue.length&&(this._config.batching?this._sendThroughBeacon(Et({data:this._queue.getChunkData(),config:this._config,state:n})):this._sendThroughHTTP(Et({data:this._queue.getAllData(),config:this._config,state:n})))}},{key:"postLateReportingDataToNetwork",value:function(){if(0!==this._queue.length)if(this._config.batching){var e=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW)),t=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.CHUNKED));(t&&t.length>2||e&&e.length>2)&&this._sendThroughBeacon(Et({data:this._queue.getChunkData(),config:this._config,state:this._state,spec:{lateReporting:!0}}))}else{var n=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.HTTPONLY));n&&n.length>2&&this._sendThroughHTTP(Et({data:this._queue._nonBeacon_HTTPOnly_BackupStore,config:this._config,state:this._state,spec:{lateReporting:!0}}))}}},{key:"resetTimer",value:function(e){var t=this,n=e.timer,r=e.state;return clearTimeout(n),n=setTimeout((function(){t.postDataToNetwork({state:r})}),this._config.batchingInterval)}},{key:"resetTimerWhenRawDataExist",value:function(e){var t=e.timer,n=e.state,r=null,a=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));return a&&JSON.parse(a).length>0?r=this.resetTimer({timer:t,state:n}):clearTimeout(t),r}},{key:"gatherDataAndPushToQueue",value:function(e){var t=e.eventType,n=e.extraData,r=e.state;if(!this._config.urlValidator||this._config.urlValidator()){var a=Tt({config:this._config,eventType:t,state:r});if(a){if(Object.keys(r.page).length>0&&(a.page=At(At({},a.page),r.page)),[$e.systemEvent,$e.appEvent].indexOf(t)>=0&&(a.component=At({},n),Xe.log("Component property has been added to data",JSON.stringify(a.component))),at()&&ot()&&localStorage.getItem("".concat(Fe,"-timestamp"))){var o=localStorage.getItem("".concat(Fe,"-timestamp")),i=(new Date).getTime();if(i-o>this._config.inactivityClientIdRotationInterval){var c=it(i.toString());localStorage.setItem(Je,c),Xe.log("ClientId saved to local storage",c)}}this._queue.add(At({},a)),Xe.log("Data added to the queue",JSON.stringify(At({},a)))}else Xe.error("Unable to prepare data")}else Xe.log("urlValidator found. URL is disabled.")}},{key:"gatherDataAndSetCookie",value:function(e){var t=e.eventType,n=e.extraData,r=e.state;if(!this._config.urlValidator||this._config.urlValidator()){var a=Tt({config:this._config,eventType:t,state:r});if(a){Object.keys(r.page).length>0&&(a.page=At(At({},a.page),r.page)),[$e.systemEvent,$e.appEvent].indexOf(t)>=0&&(a.component=At({},n),Xe.log("Component property has been added to data",a));var o=Et({data:[a],config:this._config,state:this._state}),i=JSON.stringify(o),c=new Date;c.setTime(c.getTime()+this._config.cookieExpire),document.cookie="".concat(this._config.cookieName,"=").concat(escape(i),";expires=").concat(c.toGMTString(),";path=/;domain=").concat(this._config.cookieDomain),Xe.log("Data is set to the cookie","".concat(this._config.cookieName,"=").concat(i))}else Xe.log("Unable to prepare data")}else Xe.log("urlValidator found. URL is disabled.")}},{key:"postCookieDataToNetwork",value:function(e){var t=e.payload;this._sendThroughHTTP(t)}},{key:"gatherDataAndPostToNetwork",value:function(e){var t=e.eventType,n=e.extraData,r=e.flushData,a=void 0!==r&&r,o=e.state;this.gatherDataAndPushToQueue({eventType:t,extraData:n,state:o}),this._config.batching&&!a||this.postDataToNetwork({state:o})}},{key:"gatherDataAndResetTimer",value:function(e){var t=e.eventType,n=e.extraData,r=e.state,a=e.timer,o=null;if(this._config.batching){var i=this._config.batchingInterruptionEvents.filter((function(e){return"string"==typeof e})),c=this._config.batchingInterruptionEvents.filter((function(e){return function(e){return e instanceof Object&&e.constructor===Object}(e)}));switch(t){case"app:load":case"app:unload":if(this._config.batchingInterruptionEvents.some((function(e){return"app:load"===e||"app:unload"===e}))){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,state:r});var s=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));s&&JSON.parse(s).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,eventType:t}),o=this.resetTimer({timer:a,state:r});break;case"app:event":if(i.indexOf("app:event")>=0||c.filter((function(e){return"app:event"===e.type})).some((function(e){return function(e,t){var n=St(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return!!(Object.prototype.hasOwnProperty.call(e,"type")&&e.type===t&&Array.isArray(e.fields)&&e.fields.some((function(e){return!!(Object.prototype.hasOwnProperty.call(e,"path")&&Object.prototype.hasOwnProperty.call(e,"value")&&Object.prototype.hasOwnProperty.call(n,"".concat(e.path))&&n["".concat(e.path)]===e.value)})))}(e,"app:event",n)}))){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,extraData:n,state:r});var u=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));u&&JSON.parse(u).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,extraData:n,eventType:t}),o=this.resetTimer({timer:a,state:r});break;case"system:performance":if(this._config.batchingInterruptionEvents.indexOf("system:performance")>=0){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,state:r});var l=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));l&&JSON.parse(l).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,eventType:t}),o=this.resetTimer({timer:a,state:r});break;case"system:cwv":if(this._config.batchingInterruptionEvents.indexOf("system:cwv")>=0){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,state:r});var p=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));p&&JSON.parse(p).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,eventType:t}),o=this.resetTimer({timer:a,state:r});break;case"app:survey":if(this._config.batchingInterruptionEvents.indexOf("app:survey")>=0){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,state:r});var d=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));d&&JSON.parse(d).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,eventType:t}),o=this.resetTimer({timer:a,state:r});break;case"app:marcom-search":if(this._config.batchingInterruptionEvents.indexOf("app:marcom-search")>=0){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,state:r});var h=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));h&&JSON.parse(h).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,eventType:t}),o=this.resetTimer({timer:a,state:r});break;case"system:preceding":if(this._config.batchingInterruptionEvents.indexOf("system:preceding")>=0){this.gatherDataAndPostToNetwork({eventType:t,flushData:!0,state:r});var f=localStorage.getItem(this._queue.queueName(this._queue.queueTypes.RAW));f&&JSON.parse(f).length>0?o=this.resetTimer({timer:a,state:r}):clearTimeout(a)}else this.gatherDataAndPushToQueue({state:r,eventType:t}),o=this.resetTimer({timer:a,state:r})}}else n?this.gatherDataAndPostToNetwork({state:r,extraData:n,eventType:t}):this.gatherDataAndPostToNetwork({state:r,eventType:t});return o}},{key:"action",value:function(t){var n=t.actionData,r=t.dictionaryKey,a=void 0===r?null:r,o=t.timer,i=t.state;if(!i.initialized)return null;var c=null;if(n&&"object"===e(n)){Xe.log("App marcom action received",n,a);var s={};a&&(s=ht(a)),c=this.gatherDataAndResetTimer({eventType:$e.appEvent,state:i,extraData:Object.assign(s,n),timer:o}),Xe.log("Marcom action data collection success",JSON.stringify(Object.assign(s,n)))}else Xe.log("Marcom action data should be an object",n);return c}}])}();function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(t,n,r){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return Object.keys(t).forEach((function(o){if(o.startsWith("_")||void 0===n[o])r.error("".concat(o," is not a valid config prop."));else if(!0===n[o].allowOverwrite){var i,c,s,u=(i=t[o],c=n[o].type,s=function(t,n){return"array"===n?Array.isArray(t):e(t)===n},"string"==typeof c?s(i,c):!!Array.isArray(c)&&c.some((function(e){return s(e)})));if(u){if("function"==typeof n[o].validator)if(!n[o].validator(t[o]))return void r.log("".concat(o," config prop has not passed custom property validation check. Validator: ").concat(n[o].validator,"."));var l=function(t,n){return"object"===e(t)?JSON.stringify(t)===JSON.stringify(n):"function"!=typeof t&&t===n}(t[o],n[o].value);if(l)r.info("".concat(o," config prop is the same as current config."));else{if("function"==typeof n[o].modifier){var p=n[o].modifier(t[o]);r.info("".concat(o," user config prop value has been modified by modifier. New value: ").concat(p,". Old value: ").concat(JSON.stringify(a[o]),".")),t[o]=p}r.info("".concat(o," config prop updated to: ").concat(t[o],". Old value: ").concat(JSON.stringify(a[o]),"."),"gray"),a[o]={value:t[o]}}}else r.error("".concat(o," config prop has invalid type. It should be type: ").concat(n[o].type,"."))}else r.log("".concat(o," config prop is read-only."))})),a}var Nt,Ct="1.4.2";function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qt,Ht=null,Mt={},Rt={cls:0,fid:0,lcp:0,fcp:0,ttfb:0,inp:0};"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},writable:!0,configurable:!0}),"function"!=typeof Promise&&(0,et.polyfill)();var Vt={storageKey:"nn-user-journey",storageType:"cookie",startingJourneyEntryString:"no-referrer",storageTimeout:78e4,storageEntriesMax:12,logJourneyUrlPath:!1,logging:Ye};function Bt(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=s((function(e){var t=e.to,n=e.from,r=e.stepString;return l().mark((function e(){var a,o,i,c,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D(Vt);case 2:a=e.sent,o=Mt.highEntropyValues,i=o.os,c=o.device,s=It(It({from:n,to:t,overrides:{_applemd:window._applemd}},r&&{stepString:r}),{},{os:i,device:c}),a.logJourneyStep(s);case 6:case"end":return e.stop()}}),e)}))()}))).apply(this,arguments)}function Jt(e){return Ft.apply(this,arguments)}function Ft(){return(Ft=s((function(e){var t=e.to,n=e.from,r=e.eventeywa;return l().mark((function e(){var a,o,i,c,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D(Vt);case 2:a=e.sent,o=Mt.highEntropyValues,i=o.os,c=o.device,s=a.setJourneyStepForGetSupport(r),(Array.isArray(s)?s:[s]).forEach((function(e){var r={from:n,to:t,overrides:{_applemd:window._applemd},os:i,device:c,stepString:e};a.logJourneyStep(r)}));case 7:case"end":return e.stop()}}),e)}))()}))).apply(this,arguments)}function $t(){var e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:"",t={documentHeight:0,maxYScroll:0,startTime:(new Date).getTime(),appLoadHasBeenReported:!1,initialized:!1,page:{},msgId:it(),viewId:it(),clientTimestampOffset:0,userAgent:navigator.userAgent,highEntropyValues:{userAgent:navigator.userAgent,device:e,os:""}};Mt=Object.prototype.hasOwnProperty.call(Mt,"cwv")?It({cwv:Rt},t):It({},t),Bt({from:document.referrer,to:document.location.href}),Xe.log("Reset state",Mt)}function Wt(e){var t=e.cfg,n=e.innerState;clearTimeout(Ht),Ht=setTimeout((function(){qt.postDataToNetwork({state:n})}),t.batchingInterval)}function zt(e){var t=e.cfg,n=e.innerState;t.batching?Wt({cfg:t,innerState:n}):qt.postDataToNetwork({state:n})}function Kt(e){try{!function(e=h,t={},n=!1){const r=n||window.location.search.indexOf("log")>0;r&&console.info("%c** addMarcomMenuEvents"+(r?" [log enabled] **":" --"),"color: violet;");try{const n=document.querySelectorAll("ul.ac-gn-header").length;d("isLegacyMenu",!!n),n?g(e,t):m(e,t)}catch{}}((function(){Ht=qt.action({actionData:{component:window._applemd.component},timer:Ht,state:Mt}),e.trackUserJourney&&window._applemd.component&&window._applemd.component.dest_url&&Bt({from:document.location.href,to:window._applemd.component.dest_url})}),{},Ye)}catch(e){Xe.log("marcom link tracking failed",e)}}var Qt=function(){if(Mt.initialized){var e=document.querySelectorAll("[data-analytics-question-id]");if(e.length>0){var t={survey_p2:"acs:survey",survey_v108:"acs:survey"},n="ss";e.forEach((function(e,r){var a=e.getAttribute("data-analytics-question-id");switch(a){case"sat":for(var o=!0,i=e.getElementsByTagName("input"),c=0;c<i.length;c++)if(i[c].checked){var s=i[c].getAttribute("data-analytics-res-id");t.survey_p2+="::1=".concat(s),t.survey_v108+="::q1".concat(n,"n_").concat(a,"=r").concat(c+1,"_").concat(s),o=!1}o&&(t.survey_p2+="::1=null",t.survey_v108+="::q1".concat(n,"n_").concat(a,"=null"));break;case"whysat":for(var u=!0,l=e.getElementsByTagName("input"),p=0;p<l.length;p++){var d=l[p].getAttribute("data-analytics-res-id");l[p].checked&&(t.survey_v28?(t.survey_v28+=",".concat(l[p].getAttribute("data-analytics-res-id")),t.survey_v108+=",r".concat(p+1,"_").concat(d)):(t.survey_v28="acs:survey::1whysat=".concat(l[p].getAttribute("data-analytics-res-id")),t.survey_v108+="::q2".concat("ms","n_").concat(a,"=r").concat(p+1,"_").concat(d)),u=!1)}u&&(t.survey_v28="acs:survey::1whysat=null",t.survey_v108+="::q2".concat("ms","n_").concat(a,"=null"));break;case"prod":for(var h=!0,f=e.getElementsByTagName("input"),g=0;g<f.length;g++)if(f[g].checked){var m=f[g].getAttribute("data-analytics-res-id");t.survey_p2+="::2=".concat(m),t.survey_v108+="::q3".concat(n,"n_").concat(a,"=r").concat(g+1,"_").concat(m),h=!1}h&&(t.survey_p2+="::2=null",t.survey_v108+="::q3".concat(n,"n_").concat(a,"=null"));break;case"reas":for(var v=!0,y=e.getElementsByTagName("input"),w=0;w<y.length;w++)if(y[w].checked){var b=y[w].getAttribute("data-analytics-res-id");t.survey_p2+="::3=".concat(b),t.survey_v108+="::q4".concat(n,"n_").concat(a,"=r").concat(w+1,"_").concat(b),v=!1}v&&(t.survey_p2+="::3=null",t.survey_v108+="::q4".concat(n,"n_").concat(a,"=null"));break;case"intent":for(var _=!0,T=e.getElementsByTagName("input"),S=0;S<T.length;S++)if(T[S].checked){var k=T[S].getAttribute("data-analytics-res-id");t.survey_p2+="::4=".concat(k),t.survey_v108+="::q5".concat(n,"n_").concat(a,"=r").concat(S+1,"_").concat(k),_=!1}_&&(t.survey_p2+="::4=null",t.survey_v108+="::q5".concat(n,"n_").concat(a,"=null"));break;case"refer":for(var O=!0,E=e.getElementsByTagName("input"),P=0;P<E.length;P++)if(E[P].checked){var A=E[P].getAttribute("data-analytics-res-id");t.survey_p2+="::5=".concat(A),t.survey_v108+="::q6".concat(n,"n_").concat(a,"=r").concat(P+1,"_").concat(A),O=!1}O&&(t.survey_p2+="::5=null",t.survey_v108+="::q6".concat(n,"n_").concat(a,"=null"));break;default:Xe.log("Question do not match")}})),Mt.surveyTracking=It({},t),Ht=qt.gatherDataAndResetTimer({eventType:$e.appSurvey,state:Mt,timer:Ht})}}};function Gt(e){var t=e.cfg;t.lateReporting&&qt.postLateReportingDataToNetwork(),t.trackCookie&&(window.addEventListener("DOMContentLoaded",(function(){var e=(bt(t.cookieName)||"").split("=")[1];e&&tt(unescape(e))&&qt.postCookieDataToNetwork({payload:JSON.parse(unescape(e))}),_t(t.cookieName,t.cookieDomain)})),window.addEventListener("load",(function(){var e=(bt(t.cookieName)||"").split("=")[1];e&&tt(unescape(e))&&qt.postCookieDataToNetwork({payload:JSON.parse(unescape(e))}),_t(t.cookieName,t.cookieDomain)})));if(["DOMContentLoaded","load","focus","blur","unload","pagehide","visibilitychange"].forEach((function(e){if("visibilitychange"!==e){var n=a(We[e],2),r=n[0],o=n[1];t[r]&&(t.batching?t.batchingInterruptionEvents.indexOf(e)>=0?window.addEventListener(e,(function(){if(qt.gatherDataAndPushToQueue({state:Mt,eventType:$e[o]}),qt.postDataToNetwork({state:Mt}),Ht){var e=localStorage.getItem("".concat(Fe,"-raw"));e&&JSON.parse(e).length>0?Wt({cfg:t,innerState:Mt}):clearTimeout(Ht)}})):window.addEventListener(e,(function(){qt.gatherDataAndPushToQueue({state:Mt,eventType:$e[o]}),Wt({cfg:t,innerState:Mt})})):window.addEventListener(e,(function(){qt.gatherDataAndPostToNetwork({state:Mt,eventType:$e[o]})})))}else{var i=t.trackVisibilitychangeVisible,c=t.trackVisibilitychangeHidden,s=t.batchingInterruptionEvents.indexOf("visibilitychangeVisible")>=0,u=t.batchingInterruptionEvents.indexOf("visibilitychangeHidden")>=0;(i||c)&&(t.batching?s||u?window.addEventListener(e,(function(){if(i&&"visible"===document.visibilityState)if(s){if(qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemVisibilitychangeVisible}),qt.postDataToNetwork({state:Mt}),Ht){var e=localStorage.getItem("".concat(Fe,"-raw"));e&&JSON.parse(e).length>0?Wt({cfg:t,innerState:Mt}):clearTimeout(Ht)}}else qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemVisibilitychangeVisible}),Wt({cfg:t,innerState:Mt});else if(c&&"hidden"===document.visibilityState)if(u){if(qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemVisibilitychangeHidden}),qt.postDataToNetwork({state:Mt}),Ht){var n=localStorage.getItem("".concat(Fe,"-raw"));n&&JSON.parse(n).length>0?Wt({cfg:t,innerState:Mt}):clearTimeout(Ht)}}else qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemVisibilitychangeHidden}),Wt({cfg:t,innerState:Mt})})):window.addEventListener(e,(function(){i&&"visible"===document.visibilityState?(qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemVisibilitychangeVisible}),Wt({cfg:t,innerState:Mt})):c&&"hidden"===document.visibilityState&&(qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemVisibilitychangeHidden}),Wt({cfg:t,innerState:Mt}))})):window.addEventListener(e,(function(){i&&"visible"===document.visibilityState?qt.gatherDataAndPostToNetwork({state:Mt,eventType:$e.systemVisibilitychangeVisible}):c&&"hidden"===document.visibilityState&&qt.gatherDataAndPostToNetwork({state:Mt,eventType:$e.systemVisibilitychangeHidden})})))}})),function(e){var t=e.cfg;window.addEventListener("unhandledrejection",(function(e){var n,r,a;e&&(r=e.type||"",a=e.reason||"",n=e.target.location?e.target.location.href:""),qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemEvent,extraData:{name:"Error",message:a,url:n,error:r}}),Xe.log("Unhandled Promise Rejection Error registered"),zt({cfg:t,innerState:Mt})})),window.addEventListener("error",(function(e){var n,r,a,o,i;if(e){if(e.constructor===Event&&e.target.nodeName){switch(e.target.nodeName){case"IMG":o="IMG Resource Error";break;case"LINK":o="CSS Resource Error";break;case"SCRIPT":o="JS Resource Error"}i=e.target.src||"",n=e.target.outerHTML||""}else i=e.filename||"",o=e.error&&"function"==typeof e.error.toString?e.error.toString():"",n=e.message||"";r=e.lineno||0,a=e.colno||0}qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemEvent,extraData:{name:"Error",message:n,url:i,lineno:r,colno:a,error:o}}),Xe.log("Error registered"),zt({cfg:t,innerState:Mt})}),!0),Xe.log("Errors tracking started")}({cfg:t}),{cfg:t}.cfg.trackScrollDepth&&1!==Mt.maxYScroll&&(window.addEventListener("scroll",(function(){var e=window.scrollY+window.innerHeight;e>Mt.maxYScroll&&(Mt.maxYScroll=e)})),Xe.log("Scroll tracking started")),function(e){var t=e.cfg;t.trackViewportChanges&&(window.addEventListener("resize",(function(){qt.gatherDataAndPushToQueue({state:Mt,eventType:$e.systemEvent,extraData:{name:"Viewport changed",width:window.innerWidth,height:window.innerHeight}}),Xe.log("Viewport changed"),zt({cfg:t,innerState:Mt})})),Xe.log("Viewport change tracking started"))}({cfg:t}),t.trackMarcomSearch&&(!function(e){window.nn_analytics=window.nn_analytics||{};try{k((function(t,n,r){Ht=qt.action({actionData:{search:window._applemd.search},timer:Ht,state:Mt}),e.trackUserJourney&&r&&r.link_text&&Bt({from:document.referrer,to:r.dest_url,stepString:"q=".concat(r.link_text)})}),{},Ye)}catch(e){Xe.log("marcom link tracking failed",e)}}(t),Kt(t)),t.trackUserJourney){Array.from(document.querySelectorAll("a")).reduce((function(e,t){return function(e){try{var t=e||location.href,n=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/i.exec(t),r=!0,a=null;return null!==n&&(a=n[4]),e&&(r=!a||/(support|getsupport|discussions|checkcoverage|supportprofile|checkrepair|discussionsjapan|selfsolve|chatsupport|idmsa|iknow.corp|gather.corp|tips|communities|supportform|sendfiles|agreements|cctechchatwebapi|uptodate)[^\.]*(\.corp)?\.apple\.com/i.test(a)||/translate.googleusercontent.com/i.test(a)||/apple.com\/.*support/i.test(t)),!r}catch(e){}return!0}(t.href)&&e.push(t),e}),[]).forEach((function(e){e.href&&e.addEventListener("click",(function(){Xe.log("External link ".concat(e.href)),Bt({from:document.referrer,to:e.href})}))}));["load"].forEach((function(e){window.addEventListener(e,(function(){Bt({from:document.referrer,to:document.location.href})}))}))}t.trackSurvey&&window.addEventListener("submit",Qt),Mt.initialized=!0,Xe.log("intializing state to true")}var Yt={version:Ct,q:function(){return{state:Mt,queueManager:qt}},init:function(e){if(Xe.blue("version: ".concat(Ct)),Xe.log("configData: ",e),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){var n=t>0?0|t:0;return this.substring(n,n+e.length)===e}}),(Nt=Dt(e,Ke,Xe)._getValues()).trackUserJourneyConfig=Vt,Xe.warn("Configuration updated. Final config:"),Xe.log(Nt),Nt.analyticsExemptionSiteEnabled){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"analytics:s-runmode",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"exempt",n=document.getElementsByTagName("meta"),r=!1;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=o.getAttribute("name"),c=o.getAttribute("content");i===e&&c&&c.toLowerCase()===t&&(r=!0)}return r}(Nt.analyticsExemptionSiteMetadataName,Nt.analyticsExemptionSiteKeyword);if(t)return void Xe.warn("This site has been marked as exempted. Neighbor will not track events!")}Nt.endpoint||window.console&&console.error("Required parameter `endpoint` is not configured. Initialization has been terminated."),Nt.source||window.console&&console.error("Required parameter `source` is not configured. Initialization has been terminated."),$t(),function(e){var t=e.config,n=e.defaultKeys,r=new Promise((function(e){setTimeout(s(l().mark((function r(){var a,o,i,c,s,u,p,d,h;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!navigator.userAgentData||!navigator.userAgentData.getHighEntropyValues||"function"!=typeof navigator.userAgentData.getHighEntropyValues){r.next=17;break}return t.highEntropyUserSystemValues&&Array.isArray(t.highEntropyUserSystemValues)&&t.highEntropyUserSystemValues.length||(Xe.warn("highEntropyUserSystemValues configuration is invalid! It must be an array of at least one of these items ".concat(JSON.stringify(n))),e(navigator.userAgent)),r.next=4,navigator.userAgentData.getHighEntropyValues(t.highEntropyUserSystemValues);case 4:a=r.sent,o=t.highEntropyUserSystemValues.includes("fullVersionList"),i=o?a.fullVersionList.map((function(e){return"".concat(e.brand," v=").concat(e.version)})).join("; "):"",c=ct("platform",a,t),s=ct("platformVersion",a,t),u=(u=ct("mobile",a,t)).length?" Mobile:".concat(u.toLowerCase()):"",p=ct("architecture",a,t),d=ct("bitness",a,t),h="".concat(i).concat(c).concat(s).concat(p).concat(d).concat(u),e({userAgent:h,device:"".concat(c).concat(p).concat(d),os:"".concat(s).concat(u)}),r.next=18;break;case 17:e({userAgent:navigator.userAgent,device:"",os:""});case 18:case"end":return r.stop()}}),r)}))),0)}));return r}({config:Nt,defaultKeys:Ke.highEntropyUserSystemValues.value}).then((function(e){var t=e.userAgent,n=e.os,r=e.device;Mt.highEntropyValues={userAgent:t.trim(),os:n.trim(),device:r.trim()}})),qt=new Lt({config:Nt,state:Mt}),Nt.timestampOffset&&function(e){var t=e.state,n=e.config;if(n.timestampOffsetEndpoint){var r=(new Date).getTime(),a=r;rt(n.timestampOffsetEndpoint,{clientTimestamp:r}).then((function(e){var n=(new Date).getTime();t.clientTimestampOffset=Math.floor(e.offSet-(n-a)/2)}))}}({state:Mt,config:Nt}),Nt.CWVOptions&&Nt.CWVOptions.inp||(Nt.CWVOptions={inp:{details:!1,minThreshold:200,throttlingPercentage:0}}),(Nt.trackCWV||Nt.CWVOptions.inp.details)&&(Nt.trackCWV=!0,Mt.cwv=Rt,Ze({cwv:Rt,config:Nt})),Gt({cfg:Nt})},load:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Xe.log("Load call: ",Mt),Mt.initialized){var r=(bt(Nt.cookieName)||"").split("=")[1];if(r&&tt(unescape(r))&&qt.postCookieDataToNetwork({payload:JSON.parse(unescape(r))}),_t(Nt.cookieName,Nt.cookieDomain),t&&"object"===e(t)){Xe.log("App load received",t,n);var a=t.eventeywa||{};if(Nt.trackUserJourney){var o={from:document.referrer,to:document.location.href,eventeywa:a};document.location.hostname.includes("getsupport")?Jt(o).then((function(){i()})):Bt(o).then((function(){i()}))}else i()}else Xe.log("Page data should be an object",t)}function i(){Mt.appLoadHasBeenReported&&(Ht=qt.gatherDataAndResetTimer({eventType:$e.appUnload,state:Mt,timer:Ht}),$t(),Mt.initialized=!0);var e={};n&&(e=ht(n)),Mt.appLoadHasBeenReported=!0,Mt.page=It(It({},e),t),Ht=qt.gatherDataAndResetTimer({eventType:$e.appLoad,state:Mt,timer:Ht})}},action:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;function r(e){Ht=qt.gatherDataAndResetTimer({eventType:$e.appEvent,state:Mt,extraData:Object.assign(e,t),timer:Ht})}if(Mt.initialized)if(t&&"object"===e(t)){Xe.log("App action received",t,n);var a={};if(n&&(a=ht(n)),Nt.trackUserJourney){if(t.search&&t.search.link_text&&"internal search"!==t.search.link_text)Bt({from:document.referrer,to:document.location.href,stepString:"q=".concat(t.search.link_text)}).then((function(){r(a)}));if(document.location.hostname.includes("getsupport")){var o=t.eventeywa||{};if("appReload"===o.eventName&&document.location.search&&document.location.search.includes("caller=")&&(o.deepLinkQueryString=document.location.search),["appReload","chooseCategory","chooseSolution","chooseSymptom","referral","selectSignInBody-solutions-redirect","submitManualSerial","tapViewCaseDetails","viewCaseDetails","viewSupportActivity","viewSymptom"].includes(o.eventName))Jt({from:document.referrer,to:document.location.href,eventeywa:o}).then((function(){r(a)}))}else{Bt({from:document.referrer,to:document.location.href}).then((function(){r(a)}))}}}else Xe.log("Action data should be an object",t)},lastAction:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Mt.initialized&&Nt.trackCookie)if(t&&"object"===e(t)){Xe.log("App last action received",t,n);var r={};n&&(r=ht(n)),qt.gatherDataAndSetCookie({eventType:$e.appEvent,state:Mt,extraData:It(It({},Object.assign(r,t)),{},{name:"Preceding Action"})})}else Xe.log("Action data should be an object",t)},performance:function(){Mt.initialized&&(Ht=qt.gatherDataAndResetTimer({eventType:$e.systemPerformance,state:Mt,timer:Ht}))},cwv:function(){Mt.initialized&&(Object.prototype.hasOwnProperty.call(Mt,"cwv")||(Mt.cwv=Rt),Ht=qt.gatherDataAndResetTimer({eventType:$e.systemWebVitals,state:Mt,timer:Ht}))},marcomSearch:function(){Mt.initialized&&(Ht=qt.gatherDataAndResetTimer({eventType:$e.appMarcomSearch,state:Mt,timer:Ht}))}}}(),r}()}));
/* e8409ff9e33cfea6611d1056e51fe38f78c81f09 ../../main.js
91695b59562c9daa0809ad46fcb34895f3df1ade ../../main.js.map
*/
!function t(e,i,n){function r(o,a){if(!i[o]){if(!e[o]){var c="function"==typeof require&&require;if(!a&&c)return c(o,!0);if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=i[o]={exports:{}};e[o][0].call(u.exports,(function(t){return r(e[o][1][t]||t)}),u,u.exports,t,e,i,n)}return i[o].exports}for(var s="function"==typeof require&&require,o=0;o<n.length;o++)r(n[o]);return r}({1:[function(t,e,i){e.exports={majorVersionNumber:"3.x"}},{}],2:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=t("./sharedRAFExecutorInstance"),o=t("./sharedRAFEmitterIDGeneratorInstance");function a(t){t=t||{},r.call(this),this.id=o.getNewID(),this.executor=t.executor||s,this._reset(),this._willRun=!1,this._didDestroy=!1}(n=a.prototype=Object.create(r.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},n.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},n.destroy=function(){var t=this.willRun();return this.cancel(),this.executor=null,r.prototype.destroy.call(this),this._didDestroy=!0,t},n.willRun=function(){return this._willRun},n.isRunning=function(){return this._isRunning},n._subscribe=function(){return this.executor.subscribe(this)},n._unsubscribe=function(){return this.executor.unsubscribe(this)},n._onAnimationFrameStart=function(t){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",t))},n._onAnimationFrameEnd=function(t){this._willRun||(this.trigger("stop",t),this._reset())},n._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},e.exports=a},{"./sharedRAFEmitterIDGeneratorInstance":8,"./sharedRAFExecutorInstance":9,"@marcom/ac-event-emitter-micro":122}],3:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-event-emitter-micro/EventEmitterMicro");function s(t){t=t||{},this._reset(),this.updatePhases(),this.eventEmitter=new r,this._willRun=!1,this._totalSubscribeCount=-1;var e=null,i=null;"undefined"!=typeof window?(e=window.requestAnimationFrame,i=window.cancelAnimationFrame):e=i=function(){},this._requestAnimationFrame=e,this._cancelAnimationFrame=i,this._boundOnAnimationFrame=this._onAnimationFrame.bind(this),this._boundOnExternalAnimationFrame=this._onExternalAnimationFrame.bind(this)}(n=s.prototype).frameRequestedPhase="requested",n.startPhase="start",n.runPhases=["update","external","draw"],n.endPhase="end",n.disabledPhase="disabled",n.beforePhaseEventPrefix="before:",n.afterPhaseEventPrefix="after:",n.subscribe=function(t,e){return this._totalSubscribeCount++,this._nextFrameSubscribers[t.id]||(e?this._nextFrameSubscribersOrder.unshift(t.id):this._nextFrameSubscribersOrder.push(t.id),this._nextFrameSubscribers[t.id]=t,this._nextFrameSubscriberArrayLength++,this._nextFrameSubscriberCount++,this._run()),this._totalSubscribeCount},n.subscribeImmediate=function(t,e){return this._totalSubscribeCount++,this._subscribers[t.id]||(e?this._subscribersOrder.splice(this._currentSubscriberIndex+1,0,t.id):this._subscribersOrder.unshift(t.id),this._subscribers[t.id]=t,this._subscriberArrayLength++,this._subscriberCount++),this._totalSubscribeCount},n.unsubscribe=function(t){return!!this._nextFrameSubscribers[t.id]&&(this._nextFrameSubscribers[t.id]=null,this._nextFrameSubscriberCount--,0===this._nextFrameSubscriberCount&&this._cancel(),!0)},n.getSubscribeID=function(){return this._totalSubscribeCount+=1},n.destroy=function(){var t=this._cancel();return this.eventEmitter.destroy(),this.eventEmitter=null,this.phases=null,this._subscribers=null,this._subscribersOrder=null,this._nextFrameSubscribers=null,this._nextFrameSubscribersOrder=null,this._rafData=null,this._boundOnAnimationFrame=null,this._onExternalAnimationFrame=null,t},n.useExternalAnimationFrame=function(t){if("boolean"==typeof t){var e=this._isUsingExternalAnimationFrame;return t&&this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),!this._willRun||t||this._animationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this._isUsingExternalAnimationFrame=t,t?this._boundOnExternalAnimationFrame:e||!1}},n.updatePhases=function(){this.phases||(this.phases=[]),this.phases.length=0,this.phases.push(this.frameRequestedPhase),this.phases.push(this.startPhase),Array.prototype.push.apply(this.phases,this.runPhases),this.phases.push(this.endPhase),this._runPhasesLength=this.runPhases.length,this._phasesLength=this.phases.length},n._run=function(){if(!this._willRun)return this._willRun=!0,0===this.lastFrameTime&&(this.lastFrameTime=performance.now()),this._animationFrameActive=!0,this._isUsingExternalAnimationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this.phase===this.disabledPhase&&(this.phaseIndex=0,this.phase=this.phases[this.phaseIndex]),!0},n._cancel=function(){var t=!1;return this._animationFrameActive&&(this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),this._animationFrameActive=!1,this._willRun=!1,t=!0),this._isRunning||this._reset(),t},n._onAnimationFrame=function(t){for(this._subscribers=this._nextFrameSubscribers,this._subscribersOrder=this._nextFrameSubscribersOrder,this._subscriberArrayLength=this._nextFrameSubscriberArrayLength,this._subscriberCount=this._nextFrameSubscriberCount,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this.phaseIndex=0,this.phase=this.phases[this.phaseIndex],this._isRunning=!0,this._willRun=!1,this._didRequestNextRAF=!1,this._rafData.delta=t-this.lastFrameTime,this.lastFrameTime=t,this._rafData.fps=0,this._rafData.delta>=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=t,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameStart(this._rafData);for(this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._runPhaseIndex=0;this._runPhaseIndex<this._runPhasesLength;this._runPhaseIndex++){for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]].trigger(this.phase,this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase)}for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameEnd(this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._willRun?(this.phaseIndex=0,this.phaseIndex=this.phases[this.phaseIndex]):this._reset()},n._onExternalAnimationFrame=function(t){this._isUsingExternalAnimationFrame&&this._onAnimationFrame(t)},n._reset=function(){this._rafData||(this._rafData={}),this._rafData.time=0,this._rafData.delta=0,this._rafData.fps=0,this._rafData.naturalFps=0,this._rafData.timeNow=0,this._subscribers={},this._subscribersOrder=[],this._currentSubscriberIndex=-1,this._subscriberArrayLength=0,this._subscriberCount=0,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this._didEmitFrameData=!1,this._animationFrame=null,this._animationFrameActive=!1,this._isRunning=!1,this._shouldReset=!1,this.lastFrameTime=0,this._runPhaseIndex=-1,this.phaseIndex=-1,this.phase=this.disabledPhase},e.exports=s},{"@marcom/ac-event-emitter-micro/EventEmitterMicro":123}],4:[function(t,e,i){"use strict";var n=t("./SingleCallRAFEmitter"),r=function(t){this.phase=t,this.rafEmitter=new n,this._cachePhaseIndex(),this.requestAnimationFrame=this.requestAnimationFrame.bind(this),this.cancelAnimationFrame=this.cancelAnimationFrame.bind(this),this._onBeforeRAFExecutorStart=this._onBeforeRAFExecutorStart.bind(this),this._onBeforeRAFExecutorPhase=this._onBeforeRAFExecutorPhase.bind(this),this._onAfterRAFExecutorPhase=this._onAfterRAFExecutorPhase.bind(this),this.rafEmitter.on(this.phase,this._onRAFExecuted.bind(this)),this.rafEmitter.executor.eventEmitter.on("before:start",this._onBeforeRAFExecutorStart),this.rafEmitter.executor.eventEmitter.on("before:"+this.phase,this._onBeforeRAFExecutorPhase),this.rafEmitter.executor.eventEmitter.on("after:"+this.phase,this._onAfterRAFExecutorPhase),this._frameCallbacks=[],this._currentFrameCallbacks=[],this._nextFrameCallbacks=[],this._phaseActive=!1,this._currentFrameID=-1,this._cancelFrameIdx=-1,this._frameCallbackLength=0,this._currentFrameCallbacksLength=0,this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0},s=r.prototype;s.requestAnimationFrame=function(t,e){return!0===e&&this.rafEmitter.executor.phaseIndex>0&&this.rafEmitter.executor.phaseIndex<=this.phaseIndex?this._phaseActive?(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!0),this._frameCallbacks.push(this._currentFrameID,t),this._frameCallbackLength+=2):(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!1),this._currentFrameCallbacks.push(this._currentFrameID,t),this._currentFrameCallbacksLength+=2):(this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,t),this._nextFrameCallbacksLength+=2),this._currentFrameID},s.cancelAnimationFrame=function(t){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(t),this._cancelFrameIdx>-1?this._cancelNextAnimationFrame():(this._cancelFrameIdx=this._currentFrameCallbacks.indexOf(t),this._cancelFrameIdx>-1?this._cancelCurrentAnimationFrame():(this._cancelFrameIdx=this._frameCallbacks.indexOf(t),this._cancelFrameIdx>-1&&this._cancelRunningAnimationFrame()))},s._onRAFExecuted=function(t){for(this._frameCallbackIteration=0;this._frameCallbackIteration<this._frameCallbackLength;this._frameCallbackIteration+=2)this._frameCallbacks[this._frameCallbackIteration+1](t.time,t);this._frameCallbacks.length=0,this._frameCallbackLength=0},s._onBeforeRAFExecutorStart=function(){Array.prototype.push.apply(this._currentFrameCallbacks,this._nextFrameCallbacks.splice(0,this._nextFrameCallbacksLength)),this._currentFrameCallbacksLength=this._nextFrameCallbacksLength,this._nextFrameCallbacks.length=0,this._nextFrameCallbacksLength=0},s._onBeforeRAFExecutorPhase=function(){this._phaseActive=!0,Array.prototype.push.apply(this._frameCallbacks,this._currentFrameCallbacks.splice(0,this._currentFrameCallbacksLength)),this._frameCallbackLength=this._currentFrameCallbacksLength,this._currentFrameCallbacks.length=0,this._currentFrameCallbacksLength=0},s._onAfterRAFExecutorPhase=function(){this._phaseActive=!1},s._cachePhaseIndex=function(){this.phaseIndex=this.rafEmitter.executor.phases.indexOf(this.phase)},s._cancelRunningAnimationFrame=function(){this._frameCallbacks.splice(this._cancelFrameIdx,2),this._frameCallbackLength-=2},s._cancelCurrentAnimationFrame=function(){this._currentFrameCallbacks.splice(this._cancelFrameIdx,2),this._currentFrameCallbacksLength-=2},s._cancelNextAnimationFrame=function(){this._nextFrameCallbacks.splice(this._cancelFrameIdx,2),this._nextFrameCallbacksLength-=2,0===this._nextFrameCallbacksLength&&this.rafEmitter.cancel()},e.exports=r},{"./SingleCallRAFEmitter":6}],5:[function(t,e,i){"use strict";var n=t("./RAFInterface"),r=function(){this.events={}},s=r.prototype;s.requestAnimationFrame=function(t){return this.events[t]||(this.events[t]=new n(t)),this.events[t].requestAnimationFrame},s.cancelAnimationFrame=function(t){return this.events[t]||(this.events[t]=new n(t)),this.events[t].cancelAnimationFrame},e.exports=new r},{"./RAFInterface":4}],6:[function(t,e,i){"use strict";var n=t("./RAFEmitter"),r=function(t){n.call(this,t)};(r.prototype=Object.create(n.prototype))._subscribe=function(){return this.executor.subscribe(this,!0)},e.exports=r},{"./RAFEmitter":2}],7:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.cancelAnimationFrame("update")},{"./RAFInterfaceController":5}],8:[function(t,e,i){"use strict";var n=t("@marcom/ac-shared-instance").SharedInstance,r=t("../.release-info.js").majorVersionNumber,s=function(){this._currentID=0};s.prototype.getNewID=function(){return this._currentID++,"raf:"+this._currentID},e.exports=n.share("@marcom/ac-raf-emitter/sharedRAFEmitterIDGeneratorInstance",r,s)},{"../.release-info.js":1,"@marcom/ac-shared-instance":11}],9:[function(t,e,i){"use strict";var n=t("@marcom/ac-shared-instance").SharedInstance,r=t("../.release-info.js").majorVersionNumber,s=t("./RAFExecutor");e.exports=n.share("@marcom/ac-raf-emitter/sharedRAFExecutorInstance",r,s)},{"../.release-info.js":1,"./RAFExecutor":3,"@marcom/ac-shared-instance":11}],10:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.requestAnimationFrame("update")},{"./RAFInterfaceController":5}],11:[function(t,e,i){"use strict";e.exports={SharedInstance:t("./ac-shared-instance/SharedInstance")}},{"./ac-shared-instance/SharedInstance":12}],12:[function(t,e,i){"use strict";var n,r="undefined"!=typeof window?window:{},s=r.AC,o=(n={},{get:function(t,e){var i=null;return n[t]&&n[t][e]&&(i=n[t][e]),i},set:function(t,e,i){return n[t]||(n[t]={}),n[t][e]="function"==typeof i?new i:i,n[t][e]},share:function(t,e,i){var n=this.get(t,e);return n||(n=this.set(t,e,i)),n},remove:function(t,e){var i=typeof e;if("string"!==i&&"number"!==i)n[t]&&(n[t]=null);else{if(!n[t]||!n[t][e])return;n[t][e]=null}}});s||(s=r.AC={}),s.SharedInstance||(s.SharedInstance=o),e.exports=s.SharedInstance},{}],13:[function(t,e,i){"use strict";t("./utils/vector3FromLatLon");const n=t("@marcom/ac-raf-emitter/update"),r=t("@marcom/ac-raf-emitter/cancelUpdate"),s=t("./controls/PointerControls"),o=t("./controls/OrientationControls"),a=t("@marcom/ac-event-emitter-micro/EventEmitterMicro"),c=t("@marcom/ac-easing/src/ac-easing/createBezier"),l=t("./renderers/SphericalRenderer"),u=t("./utils/simpleTimer"),h=t("./utils/inverseLongitude"),d=t("./controls/ArrowControls"),p=t("./utils/map"),m=t("@marcom/ac-feature/webGLAvailable")(),f=t("./utils/loadScript"),_=t("@marcom/useragent-detect").os.ios,v={slow:80,fast:120},g=c(.25,.1,0,1),y=c(.1,.15,0,1);class b extends a{constructor(t){super(),this.el=t.el,m||setTimeout((()=>{this.trigger("error")})),this._textureSrc=t.src,t.video?this._videoElement=t.video:t.src instanceof HTMLVideoElement?this._videoElement=t.src:this._textureSrc&&(this._textureSrc.endsWith(".mp4")||this._textureSrc.endsWith(".m3u8")||this._textureSrc.endsWith(".webm"))&&(this._videoElement=document.createElement("video")),this._flat=t.flat,this._maxLat=t.maxLat||80,this._pointerControls=new s({el:t.mouseTarget||this.el}),this.arrowControls=new d,this._easing=t.easing||g,this._sineEasing=t.sineEasing||y,this._mapMinValue=void 0!==t.mapMinValue?t.mapMinValue:.001,this._mapMaxValue=t.mapMaxValue||.999,this._rotationDuration=t.rotationDuration||1600,_&&(this._orientationControls=new o),this._panVelocity=Object.assign({},t.panVelocity||v),this._overshootMultiplier=t.overshootMultiplier||1.25,this._oscillationDuration=t.ocillationDuration||1600,this._oscillationDistance=t.ocillationDistance||12,this._bindMethods();const e=window.THREE?Promise.resolve():f(t.threeUrl||"/ac/libs/three/92/three.min.js");this._cachedPos={lat:0,lon:0},e.then((()=>{this._attach(),this.refreshSize()}))}_bindMethods(){this._onPlaying=this._onPlaying.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._videoElement&&(this._videoElement.addEventListener("playing",this._onPlaying),this._videoElement.addEventListener("loadedmetadata",this._onLoadedMetadata))}_attach(){this._distance=50;const t={lat:0,lon:0};this._cachedPos=t,this._pointerControls.position=t,this._orientationControls&&(this._orientationControls.position=t);let e=l;this._renderer=new e({el:this.el,distance:this._distance,src:this._textureSrc,pointerControls:this._pointerControls,videoElement:this._videoElement,useCanvasForVideoTexture:_,maxLat:this._maxLat}),this._renderer.attach(),this._renderer.domElement.classList.add("threesixty-renderer"),this.el.appendChild(this._renderer.domElement),this._animate=this._animate.bind(this),this._animateRAF=n(this._animate)}_animate(){this._update(),this._animateRAF=n(this._animate)}_update(t){if(!window.THREE)return;let e=t;e||(e=this.arrowControls.isActive?this.arrowControls.position:this._pointerControls.isActive?this._pointerControls.position:this._orientationControls?this._orientationControls.position:this._cachedPos);let i=!1;if(this._cachedPos.lat!==e.lat||this._cachedPos.lon!==e.lon)i=!0;else if(this._videoElement&&this._videoElement.paused)return;let n=this._renderer.update(e);this._cachedPos=Object.assign({},n),this._pointerControls.position=n,this.arrowControls.position=n,this._orientationControls&&(this._orientationControls.position=n),i&&this.trigger(b.POSITION_CHANGE)}refreshSize(){this._onResize()}setPos(t,e){this._pointerControls&&(this._pointerControls.position={lat:t,lon:e}),this._orientationControls&&(this._orientationControls.position={lat:t,lon:e}),this._update({lat:t,lon:e})}set src(t){this._updateTexture(t)}async _updateTexture(t){await this._renderer.updateTexture(t),this.trigger("textureChange")}_onResize(){if(!window.THREE||!this._renderer)return;let t,e;t=this.el.clientWidth,e=this.el.clientHeight,r(this._animateRAF),this._pointerControls.setViewerSize(t,e),this._renderer.refreshSize(t,e),this._animate()}_onLoadedMetadata(){this._videoElement.removeEventListener("loadedmetadata",this._onLoadedMetadata),this._onResize()}_onPlaying(){this._videoElement.removeEventListener("playing",this._onPlaying),this._onResize(),this._orientationControls&&this._orientationControls.enable()}requestOrientationControl(){this._orientationControls&&this._orientationControls.requestPermission()}play(){this._orientationControls&&this._orientationControls.requestPermission(),this._videoElement&&this._videoElement.play()}pause(){this._videoElement&&!this._videoElement.paused&&this._videoElement.pause()}sendMouseDown(t){this._pointerControls.sendMouseDown(t)}destroy(){super.destroy()}get position(){return Object.assign({},this._cachedPos)}get isAtOrigin(){return Math.abs(this.position.lat)<=.5&&Math.abs(this.position.lon)<=.5}oscillateLongitude(){this._pointerControls.cancelInertia(),this.arrowControls.cancelInertia();const t=new THREE.Vector2(this.position.lon,this.position.lat),e=this._oscillationDuration,i={time:e,startPosition:Object.assign({},this.position),targetPosition:Object.assign({},this.position)};return this._currentTimer?this._currentTimer.cancel().then((()=>{this._currentTimer=null,this.oscillateLongitude()})):(r(this._animateRAF),this.trigger(b.ROTATION_START,i),new Promise((n=>{this._currentTimer=u(e,(e=>{const n=Math.sin(Math.PI*this._sineEasing.getValue(e)),r=(new THREE.Vector2).copy(t);r.x=t.x-n*this._oscillationDistance,this._tmpCurrentPosition={lat:r.y,lon:r.x},this.trigger(b.ROTATION_UPDATE,{t:e,easedVal:n,startPosition:i.startPosition,currentPosition:{lat:r.y,lon:r.x},targetPosition:i.targetPosition}),this._renderer.positionCamera(r.x,r.y)})),this._currentTimer.promise.then((()=>{this.trigger(b.ROTATION_COMPLETE,i),this.setPos(t.y,t.x),this._animate(),this._currentTimer=null,this._tmpCurrentPosition=null,n()})).catch((()=>{}))})))}get mediaElement(){return this._videoElement}panToPosition(t){return this._respositionCameraToPosition(t)}_respositionCameraToPosition(t,e){if(this._currentTimer)return this._currentTimer.cancel().then((()=>{this._currentTimer=null,this.setPos(this._tmpCurrentPosition.y,this._tmpCurrentPosition.x),this._tmpCurrentPosition=null,this._respositionCameraToPosition(t,e)}));if(this._pointerControls.cancelInertia(),this.arrowControls.cancelInertia(),t.lat===this.position.lat&&t.lon===this.position.lon)return this.trigger(b.ROTATION_START,{time:0,startPosition:Object.assign({},this.position),targetPosition:Object.assign({},this.position)}),this.trigger(b.ROTATION_COMPLETE,{time:1,startPosition:Object.assign({},this.position),targetPosition:Object.assign({},this.position)}),Promise.resolve();e=e?c(e.x1,e.y1,e.x2,e.y2):this._easing;const i=new THREE.Vector2(this.position.lon,this.position.lat),n=new THREE.Vector2(h(t.lon),t.lat);let s=new THREE.Vector2(t.lon,t.lat),o=i.distanceTo(s),a=i.distanceTo(n);a<o&&(o=a,s=n);const l=(new THREE.Vector2).copy(i);r(this._animateRAF);const d=this._rotationDuration,m={time:d,startPosition:Object.assign({},this._cachedPos),targetPosition:Object.assign({},t)};return this.trigger(b.ROTATION_START,m),new Promise((e=>{this._currentTimer=u(d,(t=>{let e;e=1===t?1:p(this._easing.getValue(t),0,1,this._mapMinValue,this._mapMaxValue);const n=l.lerpVectors(i,s,e);this.trigger(b.ROTATION_UPDATE,{t:t,easedVal:e,startPosition:m.startPosition,currentPosition:{lat:n.y,lon:n.x},targetPosition:{lat:s.x,lon:s.y}}),this._tmpCurrentPosition=n,this._renderer.positionCamera(n.x,n.y)})),this._currentTimer.promise.then((()=>{this.trigger(b.ROTATION_COMPLETE,m),this.setPos(t.lat,t.lon),this._animate(),this._currentTimer=null,this._tmpCurrentPosition=null,e()}))})).catch((()=>{}))}}b.ROTATION_START="RotationStart",b.ROTATION_UPDATE="RotationUpdate",b.ROTATION_COMPLETE="RotationComplete",b.POSITION_CHANGE="360PositionChange",e.exports=b},{"./controls/ArrowControls":15,"./controls/OrientationControls":17,"./controls/PointerControls":18,"./renderers/SphericalRenderer":19,"./utils/inverseLongitude":20,"./utils/loadScript":21,"./utils/map":22,"./utils/simpleTimer":24,"./utils/vector3FromLatLon":25,"@marcom/ac-easing/src/ac-easing/createBezier":120,"@marcom/ac-event-emitter-micro/EventEmitterMicro":123,"@marcom/ac-feature/webGLAvailable":132,"@marcom/ac-raf-emitter/cancelUpdate":7,"@marcom/ac-raf-emitter/update":10,"@marcom/useragent-detect":435}],14:[function(t,e,i){"use strict";e.exports=t("./AC360")},{"./AC360":13}],15:[function(t,e,i){"use strict";const n=t("./InertialControls"),r=t("../utils/normalizeLongitude"),s=t("@marcom/ac-raf-emitter/update"),o=t("@marcom/ac-raf-emitter/cancelUpdate"),a={acceleration:{x:.6,y:.6},friction:{x:.95,y:.95},minVelocity:.1,maxVelocity:20};e.exports=class extends n{constructor(t){super(t=Object.assign({},a,t)),this._bindMethods()}_bindMethods(){this.leftArrowDown=this.leftArrowDown.bind(this),this.rightArrowDown=this.rightArrowDown.bind(this),this.downArrowDown=this.downArrowDown.bind(this),this.upArrowDown=this.upArrowDown.bind(this),this.leftArrowUp=this.leftArrowUp.bind(this),this.rightArrowUp=this.rightArrowUp.bind(this),this.downArrowUp=this.downArrowUp.bind(this),this.upArrowUp=this.upArrowUp.bind(this),super._bindMethods()}leftArrowDown(){Math.abs(this._velocity.x-this._horizontalIncrement)<this._maxVelocity?this._velocity.x-=this._horizontalIncrement:this._velocity.x=-this._maxVelocity,this._lon=r(this._lon+this._velocity.x),this._triggerInertia()}rightArrowDown(){Math.abs(this._velocity.x+this._horizontalIncrement)<this._maxVelocity?this._velocity.x+=this._horizontalIncrement:this._velocity.x=this._maxVelocity,this._velocity.x+=this._horizontalIncrement,this._lon=r(this._lon+this._velocity.x),this._triggerInertia()}upArrowDown(t){Math.abs(this._velocity.y-this._verticalIncrement)<this._maxVelocity?this._velocity.y-=this._verticalIncrement:this._velocity.y=-this._maxVelocity,this._lat=this._lat+this._velocity.y,this._triggerInertia()}downArrowDown(){Math.abs(this._velocity.y+this._verticalIncrement)<this._maxVelocity?this._velocity.y+=this._verticalIncrement:this._velocity.y=this._maxVelocity,this._lat=this._lat+this._velocity.y,this._triggerInertia()}leftArrowUp(){this._triggerInertia()}rightArrowUp(){this._triggerInertia()}upArrowUp(){this._triggerInertia()}downArrowUp(){this._triggerInertia()}_triggerInertia(){o(this._inertiaRaf),s(this._updateInertia)}get isActive(){return Math.abs(this._velocity.x)>this._minVelocity||Math.abs(this._velocity.y)>this._minVelocity}}},{"../utils/normalizeLongitude":23,"./InertialControls":16,"@marcom/ac-raf-emitter/cancelUpdate":7,"@marcom/ac-raf-emitter/update":10}],16:[function(t,e,i){"use strict";const n=t("@marcom/ac-raf-emitter/update"),r=t("@marcom/ac-raf-emitter/cancelUpdate"),s=t("../utils/normalizeLongitude");e.exports=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._horizontalFriction=t.friction&&t.friction.x||.5,this._verticalFriction=t.friction&&t.friction.x||.5,this._horizontalIncrement=t.acceleration&&t.acceleration.x||.1,this._verticalIncrement=t.acceleration&&t.acceleration.y||.1,this._minVelocity=t.minVelocity||5,this._maxVelocity=t.maxVelocity||20,this._velocity={x:0,y:0},this._bindMethods()}_bindMethods(){this._updateInertia=this._updateInertia.bind(this)}_updateInertia(){Math.abs(this._velocity.x)>this._minVelocity||Math.abs(this._velocity.y)>this._minVelocity?(this._velocity.x*=this._horizontalFriction,this._velocity.y*=this._verticalFriction,this._lon+=this._velocity.x*this._horizontalIncrement,this._lat+=this._velocity.y*this._verticalIncrement,this._inertiaRaf=n(this._updateInertia)):(this._velocity={x:0,y:0},r(this._inertiaRaf),this._inertiaComplete())}cancelInertia(){this._velocity={x:0,y:0},r(this._inertiaRaf)}_inertiaComplete(){}set position(t){this._lat=t.lat,this._lon=s(t.lon)}get position(){return{lat:this._lat,lon:this._lon}}}},{"../utils/normalizeLongitude":23,"@marcom/ac-raf-emitter/cancelUpdate":7,"@marcom/ac-raf-emitter/update":10}],17:[function(t,e,i){"use strict";const n=t("../utils/normalizeLongitude"),r=t("@marcom/ac-console/log"),s=.02;e.exports=class{constructor(t){this._bindMethods()}_bindMethods(){this._onOrientation=this._onOrientation.bind(this)}_addEventListeners(){window.addEventListener("devicemotion",this._onOrientation,!0)}_removeEventListeners(){window.removeEventListener("devicemotion",this._onOrientation,!0)}_onOrientation(t){window.matchMedia("(orientation: portrait)").matches?(this._lon=n(this._lon-t.rotationRate.beta*s),this._lat=this._lat-t.rotationRate.alpha*s):t.orientation||-90===window.orientation?(this._lon=n(this._lon+t.rotationRate.alpha*s),this._lat=this._lat-t.rotationRate.beta*s):(this._lon=n(this._lon-t.rotationRate.alpha*s),this._lat=this._lat+t.rotationRate.beta*s)}set position(t){this._lat=t.lat,this._lon=n(t.lon)}get position(){return{lat:this._lat,lon:this._lon}}disable(){this._removeEventListeners()}enable(){this.requestPermission().then((()=>{this._addEventListeners()}))}requestPermission(){return this._permissionPromise||("function"!=typeof DeviceMotionEvent.requestPermission?this._permissionPromise=Promise.resolve():(this._permissionPromise=DeviceMotionEvent.requestPermission(),this._permissionPromise.catch((t=>{r("User didn't grant Gyro permission, or request wasn't tied to a user gesture"),this._permissionPromise=null})))),this._permissionPromise}destroy(){this._removeEventListeners()}}},{"../utils/normalizeLongitude":23,"@marcom/ac-console/log":69}],18:[function(t,e,i){"use strict";const n=t("../utils/normalizeLongitude"),r=t("./InertialControls"),s={acceleration:{x:.1,y:.1},friction:{x:.95,y:.95},minVelocity:.5,maxVelocity:20};e.exports=class extends r{constructor(t){super(t=Object.assign({},s,t)),this.el=t.el,this._mouseDown=!1,this._scale=1,this._hasInertia=!1!==t.inertia||t.inertia,this._bindMethods(),this._addEventListeners()}_bindMethods(){this._onMouseMove=this._onMouseMove.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onClick=this._onClick.bind(this),super._bindMethods()}_addEventListeners(){this.el.addEventListener("mousedown",this._onMouseDown),this.el.addEventListener("touchstart",this._onMouseDown,{passive:!1}),this.el.addEventListener("click",this._onClick),this.el.addEventListener("touchmove",this._onTouchMove,{passive:!1})}_removeEventListeners(){this.el.removeEventListener("mousedown",this._onMouseDown),this.el.removeEventListener("touchstart",this._onMouseDown),window.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("mouseup",this._onMouseUp),this.el.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchend",this._onMouseUp)}_onMouseUp(t){window.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("mouseup",this._onMouseUp),document.body.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchend",this._onMouseUp),this._mouseDown&&this._hasInertia&&Date.now()-this._mouseMoveTime<300&&this._updateInertia(),setTimeout((()=>{this._mouseDown||(this._dragging=!1)}),350),this._mouseDown=!1}sendMouseDown(t){this._onMouseDown(t)}_onClick(t){this._dragging||(this._velocity={x:0,y:0},this._mouseDown=!1,this._cachedPosition=t,document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.body.removeEventListener("touchmove",this._onTouchMove),document.body.removeEventListener("touchend",this._onMouseUp))}_onMouseDown(t){this._mouseDownTime=Date.now();let e=t;if(t.touches){if(1!==t.touches.length)return;e=t.touches[0]}this._cachedPosition=t,window.addEventListener("mousemove",this._onMouseMove),window.addEventListener("mouseup",this._onMouseUp),document.body.addEventListener("touchmove",this._onTouchMove,{passive:!1}),document.body.addEventListener("touchend",this._onMouseUp),this._mouseDown=!0,this._lastMouseX=e.clientX,this._lastMouseY=e.clientY,this._lastMouseDownLon=n(this._lon),this._lastMouseDownLat=this._lat}_onTouchMove(t){t.cancelable&&t.preventDefault(),this._onMouseMove(t)}_onMouseMove(t){if(!this._mouseDown)return;this._dragging=!0;let e=t;if(t.touches&&(e=t.touches[0]),this._cachedPosition.clientX===e.clientX&&this._cachedPosition.clientY===e.clientY)return;const i=this._lastMouseX-e.clientX,r=this._lastMouseY-e.clientY,s=i/this._viewerWidth,o=r/this._viewerHeight;if(this._cachedPosition){const t=this._cachedPosition.clientX-e.clientX,i=this._cachedPosition.clientY-e.clientY;this._velocity.x=Math.max(Math.min(t,this._maxVelocity),-this._maxVelocity),this._velocity.y=Math.max(Math.min(i,this._maxVelocity),-this._maxVelocity)}this._lon=n(135*s+this._lastMouseDownLon),this._lat=90*o+this._lastMouseDownLat,this._cachedPosition=e,this._mouseMoveTime=Date.now()}get isActive(){return this._mouseDown||this._hasInertia&&(Math.abs(this._velocity.x)>this._minVelocity||Math.abs(this._velocity.y)>this._minVelocity)}get scale(){return this._scale}setViewerSize(t,e){this._viewerWidth=t,this._viewerHeight=e}destroy(){this._removeEventListeners()}}},{"../utils/normalizeLongitude":23,"./InertialControls":16}],19:[function(t,e,i){"use strict";const n=t("../utils/vector3FromLatLon"),r=t("@marcom/useragent-detect"),s=r.browser.safari&&r.os.osx?"high-performance":"default",o=t("@marcom/ac-raf-emitter/update");t("@marcom/ac-raf-emitter/cancelUpdate");e.exports=class{constructor(t){this.el=t.el,this._distance=t.distance,this._textureSrc=t.src,this._pointerControls=t.pointerControls,this._videoElement=t.videoElement,this._maxLat=t.maxLat,t.useCanvasForVideoTexture&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._videoElement.clientWidth||640,this._canvas.height=this._videoElement.clientHeight||480,this._canvasCtx=this._canvas.getContext("2d"))}attach(){const t=this.el.clientWidth,e=this.el.clientHeight,i=t/e;this._camera=new THREE.PerspectiveCamera(75,i,1,1100),this._camera.target=new THREE.Vector3(0,0,0),this._scene=new THREE.Scene,this._geometry=new THREE.SphereBufferGeometry(500,60,40),this._geometry.scale(-1,1,1),this._texture=this._createTexture(this._textureSrc),this._material=new THREE.MeshBasicMaterial({map:this._texture}),this._mesh=new THREE.Mesh(this._geometry,this._material),this._scene.add(this._mesh),this._renderer=new THREE.WebGLRenderer({antialias:!1,powerPreference:s}),this._renderer.setPixelRatio(window.devicePixelRatio),this._renderer.setSize(t,e),this._canvas&&this._tick()}_tick(){this._canvasCtx&&this._videoElement&&(this._canvasCtx.drawImage(this._videoElement,0,0,this._canvas.width,this._canvas.height),this._texture.needsUpdate=!0),o((()=>this._tick()))}update(t){const e=t,i=Math.max(-this._maxLat,Math.min(this._maxLat,e.lat)),n=THREE.Math.degToRad(90-i),r=THREE.Math.degToRad(e.lon),s=this._distance*Math.sin(n)*Math.cos(r),o=this._distance*Math.cos(n),a=this._distance*Math.sin(n)*Math.sin(r);return this._camera.zoom=this._pointerControls.scale,this._camera.position.x=s,this._camera.position.y=o,this._camera.position.z=a,this._camera.lookAt(this._camera.target),this._camera.updateProjectionMatrix(),this._renderer.render(this._scene,this._camera),{lat:i,lon:e.lon,x:s,y:o,z:a}}refreshSize(t,e){this._canvas&&(this._canvas.width=THREE.Math.ceilPowerOfTwo(this._videoElement.videoWidth||1),this._canvas.height=THREE.Math.ceilPowerOfTwo(this._videoElement.videoHeight||1)),this._camera.aspect=t/e,this._camera.updateProjectionMatrix(),this._renderer.setSize(t,e),this._renderer.render(this._scene,this._camera)}positionCamera(t,e){const i=n(e,t,this._distance);this._camera.position.copy(i),this._camera.lookAt(this._camera.target),this._camera.updateProjectionMatrix(),this._renderer.render(this._scene,this._camera)}get domElement(){return this._renderer.domElement}_createTexture(t){if(t instanceof HTMLVideoElement){this._videoElement=t,this._videoElement.setAttribute("playsinline","playsinline"),this._videoElement.setAttribute("webkit-playsinline","webkit-playsinline");const e=this._canvas?new THREE.CanvasTexture(this._canvas):new THREE.VideoTexture(this._videoElement);return e.minFilter=THREE.LinearFilter,e.format=THREE.RGBFormat,e}if(t.endsWith(".mp4")||t.endsWith(".m3u8")||t.endsWith(".webm")){this._videoElement||(this._videoElement=document.createElement("video")),this._videoElement.src=t,this._videoElement.loop=!0,this._videoElement.muted=!0,this._videoElement.crossOrigin="anonymous",this._videoElement.setAttribute("webkit-playsinline","webkit-playsinline"),this._videoElement.setAttribute("playsinline","playsinline"),this._videoElement=this._videoElement;const e=this._canvas?new THREE.CanvasTexture(this._canvas):new THREE.VideoTexture(this._videoElement);return e.minFilter=THREE.LinearFilter,e.format=THREE.RGBFormat,e}return(new THREE.TextureLoader).load(t)}async updateTexture(t){return new Promise((e=>{(new THREE.TextureLoader).load(t,(t=>{this._material.map=t,this._material.map.needsUpdate=!0,e()}))}))}}},{"../utils/vector3FromLatLon":25,"@marcom/ac-raf-emitter/cancelUpdate":7,"@marcom/ac-raf-emitter/update":10,"@marcom/useragent-detect":435}],20:[function(t,e,i){"use strict";const n=t("./normalizeLongitude");e.exports=t=>{let e=t;return Math.abs(e)>180?n(e):e>0?-360+e:360+e}},{"./normalizeLongitude":23}],21:[function(t,e,i){"use strict";e.exports=function(t){return new Promise(((e,i)=>{const n=document.createElement("script");n.type="text/javascript",n.src=t,n.onload=e,n.onerror=i;try{document.body.appendChild(n)}catch(t){i(t)}}))}},{}],22:[function(t,e,i){"use strict";e.exports=function(t,e,i,n,r){return n+(r-n)*(t-e)/(i-e)}},{}],23:[function(t,e,i){"use strict";e.exports=t=>{let e=t;return e>180?e=e%180-180:e<=-180&&(e=e%180+180),e}},{}],24:[function(t,e,i){"use strict";const n=t("@marcom/ac-raf-emitter/update");t("@marcom/ac-raf-emitter/cancelUpdate");e.exports=function(t,e){let i,r=0,s=!1,o=new Promise(((i,o)=>{const a=performance.now(),c=()=>{if(s)return void o();const l=(performance.now()-a)/t;l>=1?(e(1),i()):(r=l,e(l),n(c))};n(c)}));return o.catch((()=>{i()})),{promise:o,cancel:()=>(s=!0,new Promise((t=>{i=()=>{t()}})))}}},{"@marcom/ac-raf-emitter/cancelUpdate":7,"@marcom/ac-raf-emitter/update":10}],25:[function(t,e,i){"use strict";e.exports=function(t,e,i){const n=THREE.Math.degToRad(90-t),r=THREE.Math.degToRad(e),s=i*Math.sin(n)*Math.cos(r),o=i*Math.cos(n),a=i*Math.sin(n)*Math.sin(r);return new THREE.Vector3(s,o,a)}},{}],26:[function(t,e,i){"use strict";var n=t("./helpers/TabManager"),r=t("./helpers/hideSiblingElements"),s=t("./helpers/showSiblingElements"),o=function(t,e){e=e||{},this._tabbables=null,this._excludeHidden=e.excludeHidden,this._firstTabbableElement=e.firstFocusElement,this._lastTabbableElement=null,this._relatedTarget=null,this.el=t,this._handleOnFocus=this._handleOnFocus.bind(this)},a=o.prototype;a.start=function(t){this.updateTabbables(),r(this.el,null,this._excludeHidden);let e=document.activeElement;this._firstTabbableElement?this.el.contains(document.activeElement)||t||(this._firstTabbableElement.focus(),e=this._firstTabbableElement):console.warn("this._firstTabbableElement is null, CircularTab needs at least one tabbable element."),this._relatedTarget=e,document.addEventListener("focus",this._handleOnFocus,!0)},a.stop=function(){s(this.el),document.removeEventListener("focus",this._handleOnFocus,!0)},a.updateTabbables=function(){this._tabbables=n.getTabbableElements(this.el,this._excludeHidden),this._firstTabbableElement=this._firstTabbableElement||this._tabbables[0],this._lastTabbableElement=this._tabbables[this._tabbables.length-1]},a._handleOnFocus=function(t){if(this.el.contains(t.target))this._relatedTarget=t.target;else{if(t.preventDefault(),this.updateTabbables(),this._relatedTarget===this._lastTabbableElement||null===this._relatedTarget)return this._firstTabbableElement.focus(),void(this._relatedTarget=this._firstTabbableElement);if(this._relatedTarget===this._firstTabbableElement&&this._lastTabbableElement)return this._lastTabbableElement.focus(),void(this._relatedTarget=this._lastTabbableElement)}},a.destroy=function(){this.stop(),this.el=null,this._tabbables=null,this._firstTabbableElement=null,this._lastTabbableElement=null,this._relatedTarget=null,this._handleOnFocus=null},e.exports=o},{"./helpers/TabManager":27,"./helpers/hideSiblingElements":29,"./helpers/showSiblingElements":32}],27:[function(t,e,i){"use strict";var n=t("./../maps/focusableElement"),r=function(){this.focusableSelectors=n.selectors},s=r.prototype;s.isFocusableElement=function(t,e,i){return!(e&&!this._isDisplayed(t))&&(n.nodeName[t.nodeName]?!t.disabled:!t.contentEditable||(i=i||parseFloat(t.getAttribute("tabindex")),!isNaN(i)))},s.isTabbableElement=function(t,e){if(e&&!this._isDisplayed(t))return!1;var i=t.getAttribute("tabindex");return i=parseFloat(i),isNaN(i)?this.isFocusableElement(t,e,i):i>=0},s._isDisplayed=function(t){var e=t.getBoundingClientRect();return(0!==e.top||0!==e.left||0!==e.width||0!==e.height)&&"hidden"!==window.getComputedStyle(t).visibility},s.getTabbableElements=function(t,e){for(var i=t.querySelectorAll(this.focusableSelectors),n=i.length,r=[],s=0;s<n;s++)this.isTabbableElement(i[s],e)&&r.push(i[s]);return r},s.getFocusableElements=function(t,e){for(var i=t.querySelectorAll(this.focusableSelectors),n=i.length,r=[],s=0;s<n;s++)this.isFocusableElement(i[s],e)&&r.push(i[s]);return r},e.exports=new r},{"./../maps/focusableElement":34}],28:[function(t,e,i){"use strict";var n=t("./../maps/ariaMap"),r=t("./TabManager"),s="data-original-",o="tabindex",a=function(t,e){var i=t.getAttribute(s+e);i||(i=t.getAttribute(e)||"",t.setAttribute(s+e,i))};e.exports=function(t,e){if(r.isFocusableElement(t,e))a(t,o),t.setAttribute(o,"-1");else for(var i=r.getTabbableElements(t,e),s=i.length;s--;)a(i[s],o),i[s].setAttribute(o,"-1");a(t,n.HIDDEN),t.setAttribute(n.HIDDEN,"true")}},{"./../maps/ariaMap":33,"./TabManager":27}],29:[function(t,e,i){"use strict";var n=t("./hide");e.exports=function t(e,i,r){i=i||document.body;for(var s=e,o=e;s=s.previousElementSibling;)n(s,r);for(;o=o.nextElementSibling;)n(o,r);e.parentElement&&e.parentElement!==i&&t(e.parentElement,i,r)}},{"./hide":28}],30:[function(t,e,i){"use strict";e.exports=function(t,e){let i;i=t instanceof NodeList?t:[].concat(t),e=Array.isArray(e)?e:[].concat(e),i.forEach((t=>{e.forEach((e=>{t.removeAttribute(e)}))}))}},{}],31:[function(t,e,i){"use strict";var n=t("./removeAttributes"),r=t("./../maps/ariaMap"),s="data-original-",o="tabindex",a=function(t,e){var i=t.getAttribute(s+e);null!==i&&(""===i?n(t,e):t.setAttribute(e,i),n(t,s+e))};e.exports=function(t){a(t,o),a(t,r.HIDDEN);for(var e=t.querySelectorAll(`[${s+o}]`),i=e.length;i--;)a(e[i],o)}},{"./../maps/ariaMap":33,"./removeAttributes":30}],32:[function(t,e,i){"use strict";var n=t("./show");e.exports=function t(e,i){i=i||document.body;for(var r=e,s=e;r=r.previousElementSibling;)n(r);for(;s=s.nextElementSibling;)n(s);e.parentElement&&e.parentElement!==i&&t(e.parentElement,i)}},{"./show":31}],33:[function(t,e,i){"use strict";e.exports={AUTOCOMPLETE:"aria-autocomplete",CHECKED:"aria-checked",DISABLED:"aria-disabled",EXPANDED:"aria-expanded",HASPOPUP:"aria-haspopup",HIDDEN:"aria-hidden",INVALID:"aria-invalid",LABEL:"aria-label",LEVEL:"aria-level",MULTILINE:"aria-multiline",MULTISELECTABLE:"aria-multiselectable",ORIENTATION:"aria-orientation",PRESSED:"aria-pressed",READONLY:"aria-readonly",REQUIRED:"aria-required",SELECTED:"aria-selected",SORT:"aria-sort",VALUEMAX:"aria-valuemax",VALUEMIN:"aria-valuemin",VALUENOW:"aria-valuenow",VALUETEXT:"aria-valuetext",ATOMIC:"aria-atomic",BUSY:"aria-busy",LIVE:"aria-live",RELEVANT:"aria-relevant",DROPEFFECT:"aria-dropeffect",GRABBED:"aria-grabbed",ACTIVEDESCENDANT:"aria-activedescendant",CONTROLS:"aria-controls",DESCRIBEDBY:"aria-describedby",FLOWTO:"aria-flowto",LABELLEDBY:"aria-labelledby",OWNS:"aria-owns",POSINSET:"aria-posinset",SETSIZE:"aria-setsize"}},{}],34:[function(t,e,i){"use strict";e.exports={selectors:["input","select","textarea","button","optgroup","option","menuitem","fieldset","object","a[href]","[tabindex]","[contenteditable]"].join(","),nodeName:{INPUT:"input",SELECT:"select",TEXTAREA:"textarea",BUTTON:"button",OPTGROUP:"optgroup",OPTION:"option",MENUITEM:"menuitem",FIELDSET:"fieldset",OBJECT:"object",A:"a"}}},{}],35:[function(t,e,i){"use strict";var n=t("./request/factory"),r={complete:function(t,e){},error:function(t,e){},method:"GET",headers:{},success:function(t,e,i){},timeout:5e3},s={ajax:function(t,e){e=function(){for(var t=1;t<arguments.length;t++)for(var e in arguments[t])arguments[t].hasOwnProperty(e)&&(arguments[0][e]=arguments[t][e]);return arguments[0]}({},r,e),"//"===t.substr(0,2)&&(t=window.location.protocol+t);var i=n(t);return i.open(e.method,t),i.setTransportHeaders(e.headers),i.setReadyStateChangeHandlers(e.complete,e.error,e.success),i.setTimeout(e.timeout,e.error,e.complete),i.send(e.data),i},get:function(t,e){return e.method="GET",s.ajax(t,e)},head:function(t,e){return e.method="HEAD",s.ajax(t,e)},post:function(t,e){return e.method="POST",s.ajax(t,e)}};e.exports=s},{"./request/factory":36}],36:[function(t,e,i){"use strict";var n=t("./xmlhttprequest"),r=t("./xdomainrequest"),s=/.*(?=:\/\/)/,o=/^.*:\/\/|\/.+$/g,a=window.XDomainRequest&&document.documentMode<10;e.exports=function(t,e){var i=a&&function(t){return!!t.match(s)&&t.replace(o,"")!==window.location.hostname}(t)?r:n;return new i}},{"./xdomainrequest":38,"./xmlhttprequest":39}],37:[function(t,e,i){"use strict";var n=function(){};n.create=function(){var t=function(){};return t.prototype=n.prototype,new t},n.prototype.open=function(t,e){t=t.toUpperCase(),this.xhr.open(t,e)},n.prototype.send=function(t){this.xhr.send(t)},n.prototype.setTimeout=function(t,e,i){this.xhr.ontimeout=function(){e(this.xhr,this.status),i(this.xhr,this.status)}.bind(this)},n.prototype.setTransportHeaders=function(t){for(var e in t)this.xhr.setRequestHeader(e,t[e])},e.exports=n},{}],38:[function(t,e,i){"use strict";var n=t("./request"),r=t("@marcom/ac-object/toQueryParameters"),s=function(){this.xhr=new XDomainRequest};(s.prototype=n.create()).setReadyStateChangeHandlers=function(t,e,i){this.xhr.onerror=function(){e(this.xhr,this.status),t(this.xhr,this.status)}.bind(this),this.xhr.onload=function(){i(this.xhr.responseText,this.xhr.status,this.xhr),t(this.xhr,this.status)}.bind(this)},s.prototype.send=function(t){t&&"object"==typeof t&&(t=r(t)),this.xhr.send(t)},s.prototype.setTransportHeaders=function(t){},e.exports=s},{"./request":37,"@marcom/ac-object/toQueryParameters":192}],39:[function(t,e,i){"use strict";var n=t("./request"),r=function(){this.xhr=new XMLHttpRequest};(r.prototype=n.create()).setReadyStateChangeHandlers=function(t,e,i){this.xhr.onreadystatechange=function(n){4===this.xhr.readyState&&(clearTimeout(this.timeout),this.xhr.status>=200&&this.xhr.status<300?(i(this.xhr.responseText,this.xhr.status,this.xhr),t(this.xhr,this.status)):(e(this.xhr,this.status),t(this.xhr,this.status)))}.bind(this)},e.exports=r},{"./request":37}],40:[function(t,e,i){"use strict";var n=t("./ac-ajax/Ajax"),r=t("./ac-ajax/Request");e.exports=new n,e.exports.Ajax=n,e.exports.Request=r},{"./ac-ajax/Ajax":41,"./ac-ajax/Request":42}],41:[function(t,e,i){"use strict";var n=t("./Request"),r=t("./XDomain-request"),s=t("./URLParser"),o=function(){};o._Request=n,o.prototype={_defaults:{method:"get",timeout:5e3},_extend:function(){for(var t=1;t<arguments.length;t++)for(var e in arguments[t])arguments[t].hasOwnProperty(e)&&(arguments[0][e]=arguments[t][e]);return arguments[0]},_getOptions:function(t,e){return this._extend({},this._defaults,e,t)},_isCrossDomainRequest:function(t){var e=new s,i=e.parse(window.location.href).origin,n=e.parse(t).origin;return e.destroy(),n!==i},create:function(t){return new n(t)},cors:function(t){return new(window.XDomainRequest&&document.documentMode<10?r:n)(t)},get:function(t){return t=this._getOptions({method:"get"},t),(this._isCrossDomainRequest(t.url)?this.cors(t):this.create(t)).send()},getJSON:function(t){return this.get(t).then((function(t){return JSON.parse(t.responseText)}))},head:function(t){return t=this._getOptions({method:"head"},t),this.create(t).send()},isCrossDomainRequest:function(t){return this._isCrossDomainRequest(t)},post:function(t){return t=this._getOptions({method:"post"},t),this.create(t).send()}},e.exports=o},{"./Request":42,"./URLParser":43,"./XDomain-request":44}],42:[function(t,e,i){"use strict";var n=function(t){this._initialize(t)};n.create=function(){var t=function(){};return t.prototype=n.prototype,new t},n.prototype={_addReadyStateChangeHandler:function(){this.xhr.onreadystatechange=function(t){4===this.xhr.readyState&&(clearTimeout(this._timeout),this.xhr.status>=200&&this.xhr.status<300?this.resolve(this.xhr):this.reject(this.xhr))}.bind(this)},_getPromise:function(){this.promise=new Promise(function(t,e){this.resolve=t,this.reject=e}.bind(this))},_getTransport:function(){return new XMLHttpRequest},_initialize:function(t){var e=this._validateConfiguration(t);if(e)throw e;this._configuration=t;var i=this._configuration.method.toUpperCase();this.xhr=this._getTransport(),this._getPromise(),this.xhr.open(i,this._configuration.url),this._setRequestHeaders(t.headers),this._addReadyStateChangeHandler()},_sendXHR:function(){this.xhr&&(this._configuration&&this._configuration.data?this.xhr.send(this._configuration.data):this.xhr.send())},_setRequestHeaders:function(t){t&&t.forEach((function(t){this.xhr.setRequestHeader(t.name,t.value)}),this)},_setTimeout:function(t){t||(this._configuration&&this._configuration.timeout?t=this._configuration.timeout:(clearTimeout(this._timeout),this._timeout=null)),null!==this._timeout&&clearTimeout(this._timeout),t>0&&(this._timeout=setTimeout(function(){this.xhr.abort(),this.reject()}.bind(this),t))},_timeout:null,_validateConfiguration:function(t){if(!t)return"Must provide a configuration object";var e=[],i=t.headers;if(t.url||e.push("Must provide a url"),t.method||e.push("Must provide a method"),i){if(!Array.isArray(i))return"Must provide an array of headers";this._validateHeaders(i,e)}return e.join(", ")},_validateHeaders:function(t,e){for(var i=0,n=t.length;i<n;i++)if(!t[i].hasOwnProperty("name")||!t[i].hasOwnProperty("value")){e.push("Must provide a name and value key for all headers");break}},promise:null,reject:null,resolve:null,send:function(){return this._setTimeout(),this._sendXHR(),this.promise},xhr:null},e.exports=n},{}],43:[function(t,e,i){"use strict";var n=function(){this.parser=null},r=n.prototype;r.parse=function(t){var e,i,n,r,s;if("string"!=typeof t)throw new TypeError(t+" must be a string");return this.parser||(this.parser=document.createElement("a")),this._qualifyPath(t),n=this.parser.hostname,i=this.parser.protocol,r=this._normalizePort(this.parser),e=this.parser.origin||this._constructOriginString(this.parser,r),s=this.parser.search,{originalPath:t,qualifiedPath:this.parser.href,protocol:i,hostname:n,origin:e,port:r,search:s}},r.destroy=function(){this.parser=null},r._constructOriginString=function(t,e){var i=e?":"+e:"";return t.protocol+"//"+t.hostname+i},r._normalizePort=function(t){return"80"===t.port||"443"===t.port||"0"===t.port?"":t.port},r._qualifyPath=function(t){this.parser.href=t,this.parser.href=this.parser.href},e.exports=n},{}],44:[function(t,e,i){"use strict";var n=t("./Request"),r=function(t){n.apply(this,arguments)};(r.prototype=n.create())._getTransport=function(){return new XDomainRequest},r.prototype._addReadyStateChangeHandler=function(){this.xhr.ontimeout=function(){this.reject(this.xhr)}.bind(this),this.xhr.onerror=function(){this.reject(this.xhr)}.bind(this),this.xhr.onload=function(){this.resolve(this.xhr)}.bind(this)},r.prototype._setTimeout=function(t){t||this._configuration&&this._configuration.timeout&&(t=this._configuration.timeout),t>0&&(this.xhr.timeout=t)},r.prototype._sendXHR=function(){setTimeout(function(){n.prototype._sendXHR.call(this)}.bind(this),0)},e.exports=r},{"./Request":42}],45:[function(t,e,i){"use strict";e.exports={log:t("./ac-console/log")}},{"./ac-console/log":46}],46:[function(t,e,i){"use strict";var n=!!function(){try{return window.localStorage.getItem("f7c9180f-5c45-47b4-8de4-428015f096c0")}catch(t){}}();e.exports=function(){window.console&&void 0!==console.log&&n&&console.log.apply(console,Array.prototype.slice.call(arguments,0))}},{}],47:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.indexOf");var n=t("@marcom/ac-dom-nodes/isNode"),r=t("@marcom/ac-dom-nodes/COMMENT_NODE"),s=t("@marcom/ac-dom-nodes/DOCUMENT_FRAGMENT_NODE"),o=t("@marcom/ac-dom-nodes/DOCUMENT_NODE"),a=t("@marcom/ac-dom-nodes/ELEMENT_NODE"),c=t("@marcom/ac-dom-nodes/TEXT_NODE"),l=function(t,e){return!!n(t)&&("number"==typeof e?t.nodeType===e:-1!==e.indexOf(t.nodeType))},u=[a,o,s],h=[a,c,r];e.exports={parentNode:function(t,e,i,n){if(n=n||"node",(t||e)&&!l(t,u))throw new TypeError(i+": "+n+" must be an Element, Document, or Document Fragment")},childNode:function(t,e,i,n){if(n=n||"node",(t||e)&&!l(t,h))throw new TypeError(i+": "+n+" must be an Element, TextNode, or Comment")},selector:function(t,e,i,n){if(n=n||"selector",(t||e)&&"string"!=typeof t)throw new TypeError(i+": "+n+" must be a string")}}},{"@marcom/ac-dom-nodes/COMMENT_NODE":87,"@marcom/ac-dom-nodes/DOCUMENT_FRAGMENT_NODE":88,"@marcom/ac-dom-nodes/DOCUMENT_NODE":89,"@marcom/ac-dom-nodes/ELEMENT_NODE":90,"@marcom/ac-dom-nodes/TEXT_NODE":91,"@marcom/ac-dom-nodes/isNode":97,"@marcom/ac-polyfills/Array/prototype.indexOf":198}],48:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.slice");var n=t("./internal/validate"),r=t("./shims/querySelectorAll"),s="querySelectorAll"in document;e.exports=function(t,e){return e=e||document,n.parentNode(e,!0,"querySelectorAll","context"),n.selector(t,!0,"querySelectorAll"),s?Array.prototype.slice.call(e.querySelectorAll(t)):r(t,e)}},{"./internal/validate":47,"./shims/querySelectorAll":49,"@marcom/ac-polyfills/Array/prototype.slice":203}],49:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.indexOf");var n=t("@marcom/ac-dom-nodes/isElement"),r=t("@marcom/ac-dom-nodes/isDocumentFragment"),s=t("@marcom/ac-dom-nodes/remove"),o=function(t,e){var i;if(e===document)return!0;for(i=t;(i=i.parentNode)&&n(i);)if(i===e)return!0;return!1},a=function(t){"recalc"in t?t.recalc(!1):document.recalc(!1),window.scrollBy(0,0)};e.exports=function(t,e){var i,n=document.createElement("style"),c="_ac_qsa_"+(Math.random()+"").slice(-6),l=[];for(e=e||document,document[c]=[],r(e)?e.appendChild(n):document.documentElement.firstChild.appendChild(n),n.styleSheet.cssText="*{display:recalc;}"+t+'{ac-qsa:expression(document["'+c+'"] && document["'+c+'"].push(this));}',a(e);document[c].length;)(i=document[c].shift()).style.removeAttribute("ac-qsa"),-1===l.indexOf(i)&&o(i,e)&&l.push(i);return document[c]=null,s(n),a(e),l}},{"@marcom/ac-dom-nodes/isDocumentFragment":95,"@marcom/ac-dom-nodes/isElement":96,"@marcom/ac-dom-nodes/remove":98,"@marcom/ac-polyfills/Array/prototype.indexOf":198}],50:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-object/extend"),s=t("@marcom/ac-object/create"),o=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,a=t("@marcom/ac-dom-traversal/querySelectorAll"),c=t("@marcom/ac-dom-events/addEventListener"),l=t("@marcom/ac-dom-events/removeEventListener"),u=t("@marcom/ac-console");try{n=t("@marcom/ac-analytics")}catch(t){u.log(t.message)}var h={dataAttribute:"analytics-share",interactionEvents:["click"],autoEnable:!0},d=function(t){t=t||{},this.options=r(h,t),o.call(this),this.elements=[],this.eventObserver=null,this.publishShareClick=this.publishShareClick.bind(this),this.options.autoEnable&&this.enable()},p=o.prototype,m=d.prototype=s(p);m.enable=function(){if(!n)return!1;this._createObserver(),this.bindEventListener()},m.disable=function(){if(!n)return!1;this.unbindEventListener()},m.bindEventListener=function(){var t;this.elements=this.populateElements(),t=this.elements.length;for(var e=0;e<t;e++)c(this.elements[e],"click",this.publishShareClick)},m.unbindEventListener=function(){for(var t=this.elements&&this.elements.length?this.elements.length:0,e=0;e<t;e++)l(this.elements[e],"click",this.publishShareClick)},m.populateElements=function(){return a("[data-"+this.options.dataAttribute+"]",this.options.context||document)},m.publishShareClick=function(t){var e=t.currentTarget,i=this.parseDataAttribute(e.getAttribute("data-"+this.options.dataAttribute));if("object"==typeof i){if(!i.title)return console.log("data-"+this.options.dataAttribute+" attribute must have a `title` property"),!1;this.trigger("click",i)}},m.parseDataAttribute=function(t){var e={};try{e=JSON.parse(t)}catch(t){console.log("data-"+this.options.dataAttribute+" must be a valid JSON string")}return e},m.destroy=function(){this.disable(),this.elements=[],this.eventObserver=null,this.publishShareClick=null,this.options=null},m._createObserver=function(){if(!n||!n.observer||!n.observer.Event)return!1;this.eventObserver=new n.observer.Event(this,this.options)},e.exports=d},{"@marcom/ac-analytics":void 0,"@marcom/ac-console":45,"@marcom/ac-dom-events/addEventListener":73,"@marcom/ac-dom-events/removeEventListener":77,"@marcom/ac-dom-traversal/querySelectorAll":48,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-object/create":185,"@marcom/ac-object/extend":187}],51:[function(t,e,i){"use strict";var n=t("./../AnalyticsShare");e.exports=function(t){return new n(t)}},{"./../AnalyticsShare":50}],52:[function(t,e,i){"use strict";var n=t("./ac-browser/BrowserData"),r=/applewebkit/i,s=t("./ac-browser/IE"),o=n.create();o.isWebKit=function(t){var e=t||window.navigator.userAgent;return!!e&&!!r.test(e)},o.lowerCaseUserAgent=navigator.userAgent.toLowerCase(),"IE"===o.name&&(o.IE={documentMode:s.getDocumentMode()}),e.exports=o},{"./ac-browser/BrowserData":53,"./ac-browser/IE":54}],53:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.filter"),t("@marcom/ac-polyfills/Array/prototype.some");var n=t("./data");function r(){}r.prototype={__getBrowserVersion:function(t,e){var i;if(t&&e)return n.browser.filter((function(t){return t.identity===e})).some((function(n){var r=n.versionSearch||e,s=t.indexOf(r);if(s>-1)return i=parseFloat(t.substring(s+r.length+1)),!0})),i},__getName:function(t){return this.__getIdentityStringFromArray(t)},__getIdentity:function(t){return t.string?this.__matchSubString(t):t.prop?t.identity:void 0},__getIdentityStringFromArray:function(t){for(var e,i=0,n=t.length;i<n;i++)if(e=this.__getIdentity(t[i]))return e},__getOS:function(t){return this.__getIdentityStringFromArray(t)},__getOSVersion:function(t,e){if(t&&e){var i=n.os.filter((function(t){return t.identity===e}))[0].versionSearch||e,r=new RegExp(i+" ([\\d_\\.]+)","i"),s=t.match(r);return null!==s?s[1].replace(/_/g,"."):void 0}},__matchSubString:function(t){var e=t.subString;if(e&&(e.test?!!e.test(t.string):t.string.indexOf(e)>-1))return t.identity}},r.create=function(){var t=new r,e={};return e.name=t.__getName(n.browser),e.version=t.__getBrowserVersion(n.versionString,e.name),e.os=t.__getOS(n.os),e.osVersion=t.__getOSVersion(n.versionString,e.os),e},e.exports=r},{"./data":55,"@marcom/ac-polyfills/Array/prototype.filter":196,"@marcom/ac-polyfills/Array/prototype.some":204}],54:[function(t,e,i){"use strict";e.exports={getDocumentMode:function(){var t;return document.documentMode?t=parseInt(document.documentMode,10):(t=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(t=7)),t}}},{}],55:[function(t,e,i){"use strict";e.exports={browser:[{string:window.navigator.userAgent,subString:"Edge",identity:"Edge"},{string:window.navigator.userAgent,subString:/silk/i,identity:"Silk"},{string:window.navigator.userAgent,subString:/(android).*(version\/[0-9+].[0-9+])/i,identity:"Android"},{string:window.navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:window.navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:window.navigator.userAgent,subString:/mobile\/[^\s]*\ssafari\//i,identity:"Safari Mobile",versionSearch:"Version"},{string:window.navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera",versionSearch:"Version"},{string:window.navigator.vendor,subString:"iCab",identity:"iCab"},{string:window.navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:window.navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:window.navigator.vendor,subString:"Camino",identity:"Camino"},{string:window.navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:window.navigator.userAgent,subString:"MSIE",identity:"IE",versionSearch:"MSIE"},{string:window.navigator.userAgent,subString:"Trident",identity:"IE",versionSearch:"rv"},{string:window.navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:window.navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],os:[{string:window.navigator.platform,subString:"Win",identity:"Windows",versionSearch:"Windows NT"},{string:window.navigator.platform,subString:"Mac",identity:"OS X"},{string:window.navigator.userAgent,subString:"iPhone",identity:"iOS",versionSearch:"iPhone OS"},{string:window.navigator.userAgent,subString:"iPad",identity:"iOS",versionSearch:"CPU OS"},{string:window.navigator.userAgent,subString:/android/i,identity:"Android"},{string:window.navigator.platform,subString:"Linux",identity:"Linux"}],versionString:window.navigator.userAgent||window.navigator.appVersion||void 0}},{}],56:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.slice"),t("@marcom/ac-polyfills/Element/prototype.classList");var n=t("./className/add");e.exports=function(){var t,e=Array.prototype.slice.call(arguments),i=e.shift(e);if(i.classList&&i.classList.add)i.classList.add.apply(i.classList,e);else for(t=0;t<e.length;t++)n(i,e[t])}},{"./className/add":58,"@marcom/ac-polyfills/Array/prototype.slice":203,"@marcom/ac-polyfills/Element/prototype.classList":211}],57:[function(t,e,i){"use strict";e.exports={add:t("./className/add"),contains:t("./className/contains"),remove:t("./className/remove")}},{"./className/add":58,"./className/contains":59,"./className/remove":61}],58:[function(t,e,i){"use strict";var n=t("./contains");e.exports=function(t,e){n(t,e)||(t.className+=" "+e)}},{"./contains":59}],59:[function(t,e,i){"use strict";var n=t("./getTokenRegExp");e.exports=function(t,e){return n(e).test(t.className)}},{"./getTokenRegExp":60}],60:[function(t,e,i){"use strict";e.exports=function(t){return new RegExp("(\\s|^)"+t+"(\\s|$)")}},{}],61:[function(t,e,i){"use strict";var n=t("./contains"),r=t("./getTokenRegExp");e.exports=function(t,e){n(t,e)&&(t.className=t.className.replace(r(e),"$1").trim())}},{"./contains":59,"./getTokenRegExp":60}],62:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Element/prototype.classList");var n=t("./className/contains");e.exports=function(t,e){return t.classList&&t.classList.contains?t.classList.contains(e):n(t,e)}},{"./className/contains":59,"@marcom/ac-polyfills/Element/prototype.classList":211}],63:[function(t,e,i){"use strict";e.exports={add:t("./add"),contains:t("./contains"),remove:t("./remove"),toggle:t("./toggle")}},{"./add":56,"./contains":62,"./remove":64,"./toggle":65}],64:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.slice"),t("@marcom/ac-polyfills/Element/prototype.classList");var n=t("./className/remove");e.exports=function(){var t,e=Array.prototype.slice.call(arguments),i=e.shift(e);if(i.classList&&i.classList.remove)i.classList.remove.apply(i.classList,e);else for(t=0;t<e.length;t++)n(i,e[t])}},{"./className/remove":61,"@marcom/ac-polyfills/Array/prototype.slice":203,"@marcom/ac-polyfills/Element/prototype.classList":211}],65:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Element/prototype.classList");var n=t("./className");e.exports=function(t,e,i){var r,s=void 0!==i;return t.classList&&t.classList.toggle?s?t.classList.toggle(e,i):t.classList.toggle(e):((r=s?!!i:!n.contains(t,e))?n.add(t,e):n.remove(t,e),r)}},{"./className":57,"@marcom/ac-polyfills/Element/prototype.classList":211}],66:[function(t,e,i){"use strict";e.exports=function(t){if("function"==typeof t.select){t.select()||t.setSelectionRange(0,t.value.length)}else{var e=document.createRange();e.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}},{}],67:[function(t,e,i){"use strict";var n=!1,r=window||self;try{n=!!r.localStorage.getItem("f7c9180f-5c45-47b4-8de4-428015f096c0")}catch(t){}e.exports=n},{}],68:[function(t,e,i){"use strict";var n=t("../enabled");e.exports=function(t){return function(){if(n&&"object"==typeof window.console&&"function"==typeof console[t])return console[t].apply(console,Array.prototype.slice.call(arguments,0))}}},{"../enabled":67}],69:[function(t,e,i){"use strict";e.exports=t("./internal/expose")("log")},{"./internal/expose":68}],70:[function(t,e,i){"use strict";e.exports={DOMEmitter:t("./ac-dom-emitter/DOMEmitter")}},{"./ac-dom-emitter/DOMEmitter":71}],71:[function(t,e,i){"use strict";var n,r=t("ac-event-emitter").EventEmitter,s=t("./DOMEmitterEvent"),o={addEventListener:t("@marcom/ac-dom-events/addEventListener"),removeEventListener:t("@marcom/ac-dom-events/removeEventListener"),dispatchEvent:t("@marcom/ac-dom-events/dispatchEvent")},a={querySelectorAll:t("@marcom/ac-dom-traversal/querySelectorAll"),matchesSelector:t("@marcom/ac-dom-traversal/matchesSelector")};function c(t){null!==t&&(this.el=t,this._bindings={},this._delegateFuncs={},this._eventEmitter=new r)}(n=c.prototype).on=function(){return this._normalizeArgumentsAndCall(Array.prototype.slice.call(arguments,0),this._on),this},n.once=function(){return this._normalizeArgumentsAndCall(Array.prototype.slice.call(arguments,0),this._once),this},n.off=function(){return this._normalizeArgumentsAndCall(Array.prototype.slice.call(arguments,0),this._off),this},n.has=function(t,e,i,n){var r,s;if("string"==typeof e?(r=e,s=i):(s=e,n=i),r){var o=this._getDelegateFuncBindingIdx(t,r,s,n,!0);return o>-1}return!(!this._eventEmitter||!this._eventEmitter.has.apply(this._eventEmitter,arguments))},n.trigger=function(t,e,i,n){t=this._parseEventNames(t);var r,s,o,a=(t=this._cleanStringData(t)).length;for("string"==typeof e?(r=this._cleanStringData(e),s=i):(s=e,i),o=0;o<a;o++)this._triggerDOMEvents(t[o],s,r);return this},n.emitterTrigger=function(t,e,i){if(!this._eventEmitter)return this;t=this._parseEventNames(t),t=this._cleanStringData(t),e=new s(e,this);var n,r=t.length;for(n=0;n<r;n++)this._eventEmitter.trigger(t[n],e,i);return this},n.propagateTo=function(t,e){return this._eventEmitter.propagateTo(t,e),this},n.stopPropagatingTo=function(t){return this._eventEmitter.stopPropagatingTo(t),this},n.stopImmediatePropagation=function(){return this._eventEmitter.stopImmediatePropagation(),this},n.destroy=function(){var t;for(t in this._triggerInternalEvent("willdestroy"),this.off(),this)this.hasOwnProperty(t)&&(this[t]=null)},n._parseEventNames=function(t){return t?t.split(" "):[t]},n._onListenerEvent=function(t,e){var i=new s(e,this);this._eventEmitter.trigger(t,i,!1)},n._setListener=function(t){this._bindings[t]=this._onListenerEvent.bind(this,t),o.addEventListener(this.el,t,this._bindings[t])},n._removeListener=function(t){o.removeEventListener(this.el,t,this._bindings[t]),this._bindings[t]=null},n._triggerInternalEvent=function(t,e){this.emitterTrigger("dom-emitter:"+t,e)},n._normalizeArgumentsAndCall=function(t,e){var i={};if(0!==t.length){if("string"==typeof t[0]||null===t[0])return t=this._cleanStringData(t),i.events=t[0],"string"==typeof t[1]?(i.delegateQuery=t[1],i.callback=t[2],i.context=t[3]):(i.callback=t[1],i.context=t[2]),void e.call(this,i);var n,r,s=t[0];for(n in s)s.hasOwnProperty(n)&&(i={},r=this._cleanStringData(n.split(":")),i.events=r[0],i.delegateQuery=r[1],i.callback=s[n],i.context=t[1],e.call(this,i))}else e.call(this,i)},n._registerDelegateFunc=function(t,e,i,n,r){var s=this._delegateFunc.bind(this,t,e,i,r);return this._delegateFuncs[e]=this._delegateFuncs[e]||{},this._delegateFuncs[e][t]=this._delegateFuncs[e][t]||[],this._delegateFuncs[e][t].push({func:n,context:r,delegateFunc:s}),s},n._cleanStringData=function(t){var e=!1;"string"==typeof t&&(t=[t],e=!0);var i,n,r,s=[],o=t.length;for(i=0;i<o;i++){if("string"==typeof(n=t[i])){if(""===n||" "===n)continue;for(r=n.length;" "===n[0];)n=n.slice(1,r),r--;for(;" "===n[r-1];)n=n.slice(0,r-1),r--}s.push(n)}return e?s[0]:s},n._unregisterDelegateFunc=function(t,e,i,n){if(this._delegateFuncs[e]&&this._delegateFuncs[e][t]){var r,s=this._getDelegateFuncBindingIdx(t,e,i,n);return s>-1&&(r=this._delegateFuncs[e][t][s].delegateFunc,this._delegateFuncs[e][t].splice(s,1),0===this._delegateFuncs[e][t].length&&(this._delegateFuncs[e][t]=null)),r}},n._unregisterDelegateFuncs=function(t,e){var i;if(this._delegateFuncs[e]&&(null===t||this._delegateFuncs[e][t]))if(null!==t)this._unbindDelegateFunc(t,e);else for(i in this._delegateFuncs[e])this._delegateFuncs[e].hasOwnProperty(i)&&this._unbindDelegateFunc(i,e)},n._unbindDelegateFunc=function(t,e){for(var i,n,r=0;this._delegateFuncs[e][t]&&this._delegateFuncs[e][t][r];)i=this._delegateFuncs[e][t][r],n=this._delegateFuncs[e][t][r].length,this._off({events:t,delegateQuery:e,callback:i.func,context:i.context}),this._delegateFuncs[e][t]&&n===this._delegateFuncs[e][t].length&&r++;i=n=null},n._unregisterDelegateFuncsByEvent=function(t){var e;for(e in this._delegateFuncs)this._delegateFuncs.hasOwnProperty(e)&&this._unregisterDelegateFuncs(t,e)},n._delegateFunc=function(t,e,i,n,r){if(this._targetHasDelegateAncestor(r.target,e)){var s=Array.prototype.slice.call(arguments,0),o=s.slice(4,s.length);n=n||window,"object"==typeof r.detail&&(o[0]=r.detail),i.apply(n,o)}},n._targetHasDelegateAncestor=function(t,e){for(var i=t;i&&i!==this.el&&i!==document.documentElement;){if(a.matchesSelector(i,e))return!0;i=i.parentNode}return!1},n._on=function(t){var e=t.events,i=t.callback,n=t.delegateQuery,r=t.context,s=t.unboundCallback||i;(e=this._parseEventNames(e)).forEach(function(t,e,i,n,r){this.has(r)||this._setListener(r),"string"==typeof n&&(t=this._registerDelegateFunc(r,n,t,e,i)),this._triggerInternalEvent("willon",{evt:r,callback:t,context:i,delegateQuery:n}),this._eventEmitter.on(r,t,i),this._triggerInternalEvent("didon",{evt:r,callback:t,context:i,delegateQuery:n})}.bind(this,i,s,r,n)),e=i=s=n=r=null},n._off=function(t){var e=t.events,i=t.callback,n=t.delegateQuery,r=t.context,s=t.unboundCallback||i;if(void 0!==e)(e=this._parseEventNames(e)).forEach(function(t,e,i,n,r){("string"!=typeof n||"function"!=typeof e||(t=this._unregisterDelegateFunc(r,n,e,i)))&&("string"!=typeof n||void 0!==t?"string"==typeof r&&void 0===t&&(this._unregisterDelegateFuncsByEvent(r),"string"==typeof n)||(this._triggerInternalEvent("willoff",{evt:r,callback:t,context:i,delegateQuery:n}),this._eventEmitter.off(r,t,i),this._triggerInternalEvent("didoff",{evt:r,callback:t,context:i,delegateQuery:n}),this.has(r)||this._removeListener(r)):this._unregisterDelegateFuncs(r,n))}.bind(this,i,s,r,n)),e=i=s=n=r=null;else{var o;for(o in this._eventEmitter.off(),this._bindings)this._bindings.hasOwnProperty(o)&&this._removeListener(o);for(o in this._delegateFuncs)this._delegateFuncs.hasOwnProperty(o)&&(this._delegateFuncs[o]=null)}},n._once=function(t){var e=t.events,i=t.callback,n=t.delegateQuery,r=t.context;(e=this._parseEventNames(e)).forEach(function(t,e,i,n){if("string"==typeof i)return this._handleDelegateOnce(n,t,e,i);this.has(n)||this._setListener(n),this._triggerInternalEvent("willonce",{evt:n,callback:t,context:e,delegateQuery:i}),this._eventEmitter.once.call(this,n,t,e),this._triggerInternalEvent("didonce",{evt:n,callback:t,context:e,delegateQuery:i})}.bind(this,i,r,n)),e=i=n=r=null},n._handleDelegateOnce=function(t,e,i,n){return this._triggerInternalEvent("willonce",{evt:t,callback:e,context:i,delegateQuery:n}),this._on({events:t,context:i,delegateQuery:n,callback:this._getDelegateOnceCallback.bind(this,t,e,i,n),unboundCallback:e}),this._triggerInternalEvent("didonce",{evt:t,callback:e,context:i,delegateQuery:n}),this},n._getDelegateOnceCallback=function(t,e,i,n){var r=Array.prototype.slice.call(arguments,0),s=r.slice(4,r.length);e.apply(i,s),this._off({events:t,delegateQuery:n,callback:e,context:i})},n._getDelegateFuncBindingIdx=function(t,e,i,n,r){var s=-1;if(this._delegateFuncs[e]&&this._delegateFuncs[e][t]){var o,a,c=this._delegateFuncs[e][t].length;for(o=0;o<c;o++)if(a=this._delegateFuncs[e][t][o],r&&void 0===i&&(i=a.func),a.func===i&&a.context===n){s=o;break}}return s},n._triggerDOMEvents=function(t,e,i){var n=[this.el];i&&(n=a.querySelectorAll(i,this.el));var r,s=n.length;for(r=0;r<s;r++)o.dispatchEvent(n[r],t,{bubbles:!0,cancelable:!0,detail:e})},e.exports=c},{"./DOMEmitterEvent":72,"@marcom/ac-dom-events/addEventListener":73,"@marcom/ac-dom-events/dispatchEvent":74,"@marcom/ac-dom-events/removeEventListener":77,"@marcom/ac-dom-traversal/matchesSelector":108,"@marcom/ac-dom-traversal/querySelectorAll":114,"ac-event-emitter":446}],72:[function(t,e,i){"use strict";var n,r={preventDefault:t("@marcom/ac-dom-events/preventDefault"),stopPropagation:t("@marcom/ac-dom-events/stopPropagation"),target:t("@marcom/ac-dom-events/target")},s=function(t,e){this._domEmitter=e,this.originalEvent=t||{},this._originalTarget=r.target(this.originalEvent),this.target=this._originalTarget||this._domEmitter.el,this.currentTarget=this._domEmitter.el,this.timeStamp=this.originalEvent.timeStamp||Date.now(),this._isDOMEvent(this.originalEvent)?"object"==typeof this.originalEvent.detail&&(this.data=this.originalEvent.detail):t&&(this.data=this.originalEvent,this.originalEvent={})};(n=s.prototype).preventDefault=function(){r.preventDefault(this.originalEvent)},n.stopPropagation=function(){r.stopPropagation(this.originalEvent)},n.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this._domEmitter.stopImmediatePropagation()},n._isDOMEvent=function(t){return!!(this._originalTarget||"undefined"!==document.createEvent&&"undefined"!=typeof CustomEvent&&t instanceof CustomEvent)},e.exports=s},{"@marcom/ac-dom-events/preventDefault":76,"@marcom/ac-dom-events/stopPropagation":80,"@marcom/ac-dom-events/target":81}],73:[function(t,e,i){"use strict";var n=t("./utils/addEventListener"),r=t("./shared/getEventType");e.exports=function(t,e,i,s){return e=r(t,e),n(t,e,i,s)}},{"./shared/getEventType":78,"./utils/addEventListener":82}],74:[function(t,e,i){"use strict";var n=t("./utils/dispatchEvent"),r=t("./shared/getEventType");e.exports=function(t,e,i){return e=r(t,e),n(t,e,i)}},{"./shared/getEventType":78,"./utils/dispatchEvent":83}],75:[function(t,e,i){"use strict";e.exports={addEventListener:t("./addEventListener"),dispatchEvent:t("./dispatchEvent"),preventDefault:t("./preventDefault"),removeEventListener:t("./removeEventListener"),stop:t("./stop"),stopPropagation:t("./stopPropagation"),target:t("./target")}},{"./addEventListener":73,"./dispatchEvent":74,"./preventDefault":76,"./removeEventListener":77,"./stop":79,"./stopPropagation":80,"./target":81}],76:[function(t,e,i){"use strict";e.exports=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1}},{}],77:[function(t,e,i){"use strict";var n=t("./utils/removeEventListener"),r=t("./shared/getEventType");e.exports=function(t,e,i,s){return e=r(t,e),n(t,e,i,s)}},{"./shared/getEventType":78,"./utils/removeEventListener":84}],78:[function(t,e,i){"use strict";var n=t("@marcom/ac-prefixer/getEventType");e.exports=function(t,e){var i;return i="tagName"in t?t.tagName:t===window?"window":"document",n(e,i)||e}},{"@marcom/ac-prefixer/getEventType":230}],79:[function(t,e,i){"use strict";var n=t("./stopPropagation"),r=t("./preventDefault");e.exports=function(t){t=t||window.event,n(t),r(t),t.stopped=!0,t.returnValue=!1}},{"./preventDefault":76,"./stopPropagation":80}],80:[function(t,e,i){"use strict";e.exports=function(t){(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0}},{}],81:[function(t,e,i){"use strict";e.exports=function(t){return void 0!==(t=t||window.event).target?t.target:t.srcElement}},{}],82:[function(t,e,i){"use strict";e.exports=function(t,e,i,n){return t.addEventListener?t.addEventListener(e,i,!!n):t.attachEvent("on"+e,i),t}},{}],83:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/CustomEvent"),e.exports=function(t,e,i){var n;return t.dispatchEvent?(n=i?new CustomEvent(e,i):new CustomEvent(e),t.dispatchEvent(n)):(n=document.createEventObject(),i&&"detail"in i&&(n.detail=i.detail),t.fireEvent("on"+e,n)),t}},{"@marcom/ac-polyfills/CustomEvent":205}],84:[function(t,e,i){"use strict";e.exports=function(t,e,i,n){return t.removeEventListener?t.removeEventListener(e,i,!!n):t.detachEvent("on"+e,i),t}},{}],85:[function(t,e,i){"use strict";e.exports=function(t){var e;if((t=t||window)===window){if(e=window.pageXOffset)return e;t=document.documentElement||document.body.parentNode||document.body}return t.scrollLeft}},{}],86:[function(t,e,i){"use strict";e.exports=function(t){var e;if((t=t||window)===window){if(e=window.pageYOffset)return e;t=document.documentElement||document.body.parentNode||document.body}return t.scrollTop}},{}],87:[function(t,e,i){"use strict";e.exports=8},{}],88:[function(t,e,i){"use strict";e.exports=11},{}],89:[function(t,e,i){"use strict";e.exports=9},{}],90:[function(t,e,i){"use strict";e.exports=1},{}],91:[function(t,e,i){"use strict";e.exports=3},{}],92:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.slice"),t("@marcom/ac-polyfills/Array/prototype.filter");var n=t("./internal/isNodeType"),r=t("./ELEMENT_NODE");e.exports=function(t,e){return e=e||r,(t=Array.prototype.slice.call(t)).filter((function(t){return n(t,e)}))}},{"./ELEMENT_NODE":90,"./internal/isNodeType":93,"@marcom/ac-polyfills/Array/prototype.filter":196,"@marcom/ac-polyfills/Array/prototype.slice":203}],93:[function(t,e,i){"use strict";var n=t("../isNode");e.exports=function(t,e){return!!n(t)&&("number"==typeof e?t.nodeType===e:-1!==e.indexOf(t.nodeType))}},{"../isNode":97}],94:[function(t,e,i){"use strict";var n=t("./isNodeType"),r=t("../COMMENT_NODE"),s=t("../DOCUMENT_FRAGMENT_NODE"),o=t("../ELEMENT_NODE"),a=t("../TEXT_NODE"),c=[o,a,r,s],l=[o,a,r],u=[o,s];e.exports={parentNode:function(t,e,i,r){if(r=r||"target",(t||e)&&!n(t,u))throw new TypeError(i+": "+r+" must be an Element, or Document Fragment")},childNode:function(t,e,i,r){if(r=r||"target",(t||e)&&!n(t,l))throw new TypeError(i+": "+r+" must be an Element, TextNode, or Comment")},insertNode:function(t,e,i,r){if(r=r||"node",(t||e)&&!n(t,c))throw new TypeError(i+": "+r+" must be an Element, TextNode, Comment, or Document Fragment")},hasParentNode:function(t,e,i){if(i=i||"target",!t.parentNode)throw new TypeError(e+": "+i+" must have a parentNode")}}},{"../COMMENT_NODE":87,"../DOCUMENT_FRAGMENT_NODE":88,"../ELEMENT_NODE":90,"../TEXT_NODE":91,"./isNodeType":93}],95:[function(t,e,i){"use strict";var n=t("./internal/isNodeType"),r=t("./DOCUMENT_FRAGMENT_NODE");e.exports=function(t){return n(t,r)}},{"./DOCUMENT_FRAGMENT_NODE":88,"./internal/isNodeType":93}],96:[function(t,e,i){"use strict";var n=t("./internal/isNodeType"),r=t("./ELEMENT_NODE");e.exports=function(t){return n(t,r)}},{"./ELEMENT_NODE":90,"./internal/isNodeType":93}],97:[function(t,e,i){"use strict";e.exports=function(t){return!(!t||!t.nodeType)}},{}],98:[function(t,e,i){"use strict";var n=t("./internal/validate");e.exports=function(t){return n.childNode(t,!0,"remove"),t.parentNode?t.parentNode.removeChild(t):t}},{"./internal/validate":94}],99:[function(t,e,i){"use strict";e.exports={ancestor:t("./ancestor"),ancestors:t("./ancestors"),children:t("./children"),filterBySelector:t("./filterBySelector"),firstChild:t("./firstChild"),lastChild:t("./lastChild"),matchesSelector:t("./matchesSelector"),nextSibling:t("./nextSibling"),nextSiblings:t("./nextSiblings"),previousSibling:t("./previousSibling"),previousSiblings:t("./previousSiblings"),querySelector:t("./querySelector"),querySelectorAll:t("./querySelectorAll"),siblings:t("./siblings")}},{"./ancestor":100,"./ancestors":101,"./children":102,"./filterBySelector":103,"./firstChild":104,"./lastChild":107,"./matchesSelector":108,"./nextSibling":109,"./nextSiblings":110,"./previousSibling":111,"./previousSiblings":112,"./querySelector":113,"./querySelectorAll":114,"./siblings":118}],100:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./matchesSelector"),s=t("./internal/validate");e.exports=function(t,e,i){if(s.childNode(t,!0,"ancestors"),s.selector(e,!1,"ancestors"),i&&n(t)&&(!e||r(t,e)))return t;if(t!==document.body)for(;(t=t.parentNode)&&n(t);){if(!e||r(t,e))return t;if(t===document.body)break}return null}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-dom-nodes/isElement":96}],101:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./matchesSelector"),s=t("./internal/validate");e.exports=function(t,e,i){var o=[];if(s.childNode(t,!0,"ancestors"),s.selector(e,!1,"ancestors"),i&&n(t)&&(!e||r(t,e))&&o.push(t),t!==document.body)for(;(t=t.parentNode)&&n(t)&&(e&&!r(t,e)||o.push(t),t!==document.body););return o}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-dom-nodes/isElement":96}],102:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/filterByNodeType"),r=t("./filterBySelector"),s=t("./internal/validate");e.exports=function(t,e){var i;return s.parentNode(t,!0,"children"),s.selector(e,!1,"children"),i=t.children||t.childNodes,i=n(i),e&&(i=r(i,e)),i}},{"./filterBySelector":103,"./internal/validate":106,"@marcom/ac-dom-nodes/filterByNodeType":92}],103:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.slice"),t("@marcom/ac-polyfills/Array/prototype.filter");var n=t("./matchesSelector"),r=t("./internal/validate");e.exports=function(t,e){return r.selector(e,!0,"filterBySelector"),(t=Array.prototype.slice.call(t)).filter((function(t){return n(t,e)}))}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-polyfills/Array/prototype.filter":196,"@marcom/ac-polyfills/Array/prototype.slice":203}],104:[function(t,e,i){"use strict";var n=t("./children"),r=t("./internal/validate");e.exports=function(t,e){var i;return r.parentNode(t,!0,"firstChild"),r.selector(e,!1,"firstChild"),t.firstElementChild&&!e?t.firstElementChild:(i=n(t,e)).length?i[0]:null}},{"./children":102,"./internal/validate":106}],105:[function(t,e,i){"use strict";var n;e.exports=window.Element?(n=Element.prototype).matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector:null},{}],106:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.indexOf");var n=t("@marcom/ac-dom-nodes/isNode"),r=t("@marcom/ac-dom-nodes/COMMENT_NODE"),s=t("@marcom/ac-dom-nodes/DOCUMENT_FRAGMENT_NODE"),o=t("@marcom/ac-dom-nodes/DOCUMENT_NODE"),a=t("@marcom/ac-dom-nodes/ELEMENT_NODE"),c=t("@marcom/ac-dom-nodes/TEXT_NODE"),l=function(t,e){return!!n(t)&&("number"==typeof e?t.nodeType===e:-1!==e.indexOf(t.nodeType))},u=[a,o,s],h=[a,c,r];e.exports={parentNode:function(t,e,i,n){if(n=n||"node",(t||e)&&!l(t,u))throw new TypeError(i+": "+n+" must be an Element, Document, or Document Fragment")},childNode:function(t,e,i,n){if(n=n||"node",(t||e)&&!l(t,h))throw new TypeError(i+": "+n+" must be an Element, TextNode, or Comment")},selector:function(t,e,i,n){if(n=n||"selector",(t||e)&&"string"!=typeof t)throw new TypeError(i+": "+n+" must be a string")}}},{"@marcom/ac-dom-nodes/COMMENT_NODE":87,"@marcom/ac-dom-nodes/DOCUMENT_FRAGMENT_NODE":88,"@marcom/ac-dom-nodes/DOCUMENT_NODE":89,"@marcom/ac-dom-nodes/ELEMENT_NODE":90,"@marcom/ac-dom-nodes/TEXT_NODE":91,"@marcom/ac-dom-nodes/isNode":97,"@marcom/ac-polyfills/Array/prototype.indexOf":198}],107:[function(t,e,i){"use strict";var n=t("./children"),r=t("./internal/validate");e.exports=function(t,e){var i;return r.parentNode(t,!0,"lastChild"),r.selector(e,!1,"lastChild"),t.lastElementChild&&!e?t.lastElementChild:(i=n(t,e)).length?i[i.length-1]:null}},{"./children":102,"./internal/validate":106}],108:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./internal/validate"),s=t("./internal/nativeMatches"),o=t("./shims/matchesSelector");e.exports=function(t,e){return r.selector(e,!0,"matchesSelector"),!!n(t)&&(s?s.call(t,e):o(t,e))}},{"./internal/nativeMatches":105,"./internal/validate":106,"./shims/matchesSelector":115,"@marcom/ac-dom-nodes/isElement":96}],109:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./matchesSelector"),s=t("./internal/validate");e.exports=function(t,e){if(s.childNode(t,!0,"nextSibling"),s.selector(e,!1,"nextSibling"),t.nextElementSibling&&!e)return t.nextElementSibling;for(;t=t.nextSibling;)if(n(t)&&(!e||r(t,e)))return t;return null}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-dom-nodes/isElement":96}],110:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./matchesSelector"),s=t("./internal/validate");e.exports=function(t,e){var i=[];for(s.childNode(t,!0,"nextSiblings"),s.selector(e,!1,"nextSiblings");t=t.nextSibling;)n(t)&&(e&&!r(t,e)||i.push(t));return i}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-dom-nodes/isElement":96}],111:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./matchesSelector"),s=t("./internal/validate");e.exports=function(t,e){if(s.childNode(t,!0,"previousSibling"),s.selector(e,!1,"previousSibling"),t.previousElementSibling&&!e)return t.previousElementSibling;for(;t=t.previousSibling;)if(n(t)&&(!e||r(t,e)))return t;return null}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-dom-nodes/isElement":96}],112:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isElement"),r=t("./matchesSelector"),s=t("./internal/validate");e.exports=function(t,e){var i=[];for(s.childNode(t,!0,"previousSiblings"),s.selector(e,!1,"previousSiblings");t=t.previousSibling;)n(t)&&(e&&!r(t,e)||i.push(t));return i.reverse()}},{"./internal/validate":106,"./matchesSelector":108,"@marcom/ac-dom-nodes/isElement":96}],113:[function(t,e,i){"use strict";var n=t("./internal/validate"),r=t("./shims/querySelector"),s="querySelector"in document;e.exports=function(t,e){return e=e||document,n.parentNode(e,!0,"querySelector","context"),n.selector(t,!0,"querySelector"),s?e.querySelector(t):r(t,e)}},{"./internal/validate":106,"./shims/querySelector":116}],114:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.slice");var n=t("./internal/validate"),r=t("./shims/querySelectorAll"),s="querySelectorAll"in document;e.exports=function(t,e){return e=e||document,n.parentNode(e,!0,"querySelectorAll","context"),n.selector(t,!0,"querySelectorAll"),s?Array.prototype.slice.call(e.querySelectorAll(t)):r(t,e)}},{"./internal/validate":106,"./shims/querySelectorAll":117,"@marcom/ac-polyfills/Array/prototype.slice":203}],115:[function(t,e,i){"use strict";var n=t("../querySelectorAll");e.exports=function(t,e){var i,r=t.parentNode||document,s=n(e,r);for(i=0;i<s.length;i++)if(s[i]===t)return!0;return!1}},{"../querySelectorAll":114}],116:[function(t,e,i){"use strict";var n=t("./querySelectorAll");e.exports=function(t,e){var i=n(t,e);return i.length?i[0]:null}},{"./querySelectorAll":117}],117:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.indexOf");var n=t("@marcom/ac-dom-nodes/isElement"),r=t("@marcom/ac-dom-nodes/isDocumentFragment"),s=t("@marcom/ac-dom-nodes/remove"),o=function(t,e){var i;if(e===document)return!0;for(i=t;(i=i.parentNode)&&n(i);)if(i===e)return!0;return!1},a=function(t){"recalc"in t?t.recalc(!1):document.recalc(!1),window.scrollBy(0,0)};e.exports=function(t,e){var i,n=document.createElement(),c="_ac_qsa_"+(Math.random()+"").slice(-6),l=[];for(e=e||document,document[c]=[],n.innerHTML="x<style>*{display:recalc;}"+t+'{ac-qsa:expression(document["'+c+'"] && document["'+c+'"].push(this));}',n=n.lastChild,r(e)?e.appendChild(n):document.documentElement.firstChild.appendChild(n),a(e);document[c].length;)(i=document[c].shift()).style.removeAttribute("ac-qsa"),-1===l.indexOf(i)&&o(i,e)&&l.push(i);return document[c]=null,s(n),a(e),l}},{"@marcom/ac-dom-nodes/isDocumentFragment":95,"@marcom/ac-dom-nodes/isElement":96,"@marcom/ac-dom-nodes/remove":98,"@marcom/ac-polyfills/Array/prototype.indexOf":198}],118:[function(t,e,i){"use strict";var n=t("./children"),r=t("./internal/validate");e.exports=function(t,e){var i=[];return r.childNode(t,!0,"siblings"),r.selector(e,!1,"siblings"),t.parentNode&&(i=(i=n(t.parentNode,e)).filter((function(e){return e!==t}))),i}},{"./children":102,"./internal/validate":106}],119:[function(t,e,i){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("Ease expects an easing function.");this.easingFunction=t,this.cssString=e||null}n.prototype.getValue=function(t){return this.easingFunction(t,0,1,1)},e.exports=n},{}],120:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.every");var n=t("./Ease"),r=t("./helpers/KeySpline"),s="Bezier curve expects exactly four (4) numbers. Given: ";e.exports=function(t,e,i,o){var a=Array.prototype.slice.call(arguments),c=a.every((function(t){return"number"==typeof t}));if(4!==a.length||!c)throw new TypeError(s+a);var l=new r(t,e,i,o),u=function(t,e,i,n){return l.get(t/n)*i+e},h="cubic-bezier("+a.join(", ")+")";return new n(u,h)}},{"./Ease":119,"./helpers/KeySpline":121,"@marcom/ac-polyfills/Array/prototype.every":195}],121:[function(t,e,i){e.exports=function(t,e,i,n){function r(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function o(t){return 3*t}function a(t,e,i){return((r(e,i)*t+s(e,i))*t+o(e))*t}function c(t,e,i){return 3*r(e,i)*t*t+2*s(e,i)*t+o(e)}this.get=function(r){return t===e&&i===n?r:a(function(e){for(var n=e,r=0;r<4;++r){var s=c(n,t,i);if(0===s)return n;n-=(a(n,t,i)-e)/s}return n}(r),e,n)}}},{}],122:[function(t,e,i){"use strict";e.exports={EventEmitterMicro:t("./ac-event-emitter-micro/EventEmitterMicro")}},{"./ac-event-emitter-micro/EventEmitterMicro":123}],123:[function(t,e,i){"use strict";function n(){this._events={}}var r=n.prototype;r.on=function(t,e){this._events[t]=this._events[t]||[],this._events[t].unshift(e)},r.once=function(t,e){var i=this;this.on(t,(function n(r){i.off(t,n),void 0!==r?e(r):e()}))},r.off=function(t,e){if(this.has(t)){if(1===arguments.length)return this._events[t]=null,void delete this._events[t];var i=this._events[t].indexOf(e);-1!==i&&this._events[t].splice(i,1)}},r.trigger=function(t,e){if(this.has(t))for(var i=this._events[t].length-1;i>=0;i--)void 0!==e?this._events[t][i](e):this._events[t][i]()},r.has=function(t){return t in this._events!=!1&&0!==this._events[t].length},r.destroy=function(){for(var t in this._events)this._events[t]=null;this._events=null},e.exports=n},{}],124:[function(t,e,i){e.exports.EventEmitter=t("./ac-event-emitter/EventEmitter")},{"./ac-event-emitter/EventEmitter":125}],125:[function(t,e,i){"use strict";var n="EventEmitter:propagation",r=function(t){t&&(this.context=t)},s=r.prototype,o=function(){return this.hasOwnProperty("_events")||"object"==typeof this._events||(this._events={}),this._events},a=function(t,e){var i=t[0],n=t[1],r=t[2];if("string"!=typeof i&&"object"!=typeof i||null===i||Array.isArray(i))throw new TypeError("Expecting event name to be a string or object.");if("string"==typeof i&&!n)throw new Error("Expecting a callback function to be provided.");if(n&&"function"!=typeof n){if("object"!=typeof i||"object"!=typeof n)throw new TypeError("Expecting callback to be a function.");r=n}if("object"==typeof i)for(var s in i)e.call(this,s,i[s],r);"string"==typeof i&&(i=i.split(" ")).forEach((function(t){e.call(this,t,n,r)}),this)},c=function(t,e){var i,n,r;if((i=o.call(this)[t])&&0!==i.length)for(i=i.slice(),this._stoppedImmediatePropagation=!1,n=0,r=i.length;n<r&&(!this._stoppedImmediatePropagation&&!e(i[n],n));n++);},l=function(t,e,i){var n=-1;c.call(this,e,(function(t,e){if(t.callback===i)return n=e,!0})),-1!==n&&t[e].splice(n,1)};s.on=function(){var t=o.call(this);return a.call(this,arguments,(function(e,i,n){t[e]=t[e]||(t[e]=[]),t[e].push({callback:i,context:n})})),this},s.once=function(){return a.call(this,arguments,(function(t,e,i){var n=function(r){e.call(i||this,r),this.off(t,n)};this.on(t,n,this)})),this},s.off=function(t,e){var i=o.call(this);if(0===arguments.length)this._events={};else if(!t||"string"!=typeof t&&"object"!=typeof t||Array.isArray(t))throw new TypeError("Expecting event name to be a string or object.");if("object"==typeof t)for(var n in t)l.call(this,i,n,t[n]);if("string"==typeof t){var r=t.split(" ");1===r.length?e?l.call(this,i,t,e):i[t]=[]:r.forEach((function(t){i[t]=[]}))}return this},s.trigger=function(t,e,i){if(!t)throw new Error("trigger method requires an event name");if("string"!=typeof t)throw new TypeError("Expecting event names to be a string.");if(i&&"boolean"!=typeof i)throw new TypeError("Expecting doNotPropagate to be a boolean.");return(t=t.split(" ")).forEach((function(t){c.call(this,t,function(t){t.callback.call(t.context||this.context||this,e)}.bind(this)),i||c.call(this,n,(function(i){var n=t;i.prefix&&(n=i.prefix+n),i.emitter.trigger(n,e)}))}),this),this},s.propagateTo=function(t,e){var i=o.call(this);i[n]||(this._events[n]=[]),i[n].push({emitter:t,prefix:e})},s.stopPropagatingTo=function(t){var e=o.call(this);if(t){var i,r=e[n],s=r.length;for(i=0;i<s;i++)if(r[i].emitter===t){r.splice(i,1);break}}else e[n]=[]},s.stopImmediatePropagation=function(){this._stoppedImmediatePropagation=!0},s.has=function(t,e,i){var n=o.call(this),r=n[t];if(0===arguments.length)return Object.keys(n);if(!r)return!1;if(!e)return r.length>0;for(var s=0,a=r.length;s<a;s++){var c=r[s];if(i&&e&&c.context===i&&c.callback===e)return!0;if(e&&!i&&c.callback===e)return!0}return!1},e.exports=r},{}],126:[function(t,e,i){"use strict";e.exports={getWindow:function(){return window},getDocument:function(){return document},getNavigator:function(){return navigator}}},{}],127:[function(t,e,i){"use strict";var n=t("@marcom/useragent-detect").os,r=t("./touchAvailable").original,s=t("./helpers/globals"),o=t("@marcom/ac-function/once");function a(){var t=s.getWindow();return!r()&&!t.orientation||n.windows}e.exports=o(a),e.exports.original=a},{"./helpers/globals":126,"./touchAvailable":131,"@marcom/ac-function/once":155,"@marcom/useragent-detect":435}],128:[function(t,e,i){"use strict";var n=t("./isDesktop").original,r=t("./isTablet").original,s=t("@marcom/ac-function/once");function o(){return!n()&&!r()}e.exports=s(o),e.exports.original=o},{"./isDesktop":127,"./isTablet":130,"@marcom/ac-function/once":155}],129:[function(t,e,i){"use strict";var n=t("./helpers/globals");e.exports=function(){var t=n.getWindow();return"devicePixelRatio"in t&&t.devicePixelRatio>=1.5}},{"./helpers/globals":126}],130:[function(t,e,i){"use strict";var n=t("./isDesktop").original,r=t("./helpers/globals"),s=t("@marcom/ac-function/once");function o(){var t=r.getWindow(),e=t.screen.width;return t.orientation&&t.screen.height<e&&(e=t.screen.height),!n()&&e>=600}e.exports=s(o),e.exports.original=o},{"./helpers/globals":126,"./isDesktop":127,"@marcom/ac-function/once":155}],131:[function(t,e,i){"use strict";var n=t("./helpers/globals"),r=t("@marcom/ac-function/once");function s(){var t=n.getWindow(),e=n.getDocument(),i=n.getNavigator();return!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch||i.maxTouchPoints>0||i.msMaxTouchPoints>0)}e.exports=r(s),e.exports.original=s},{"./helpers/globals":126,"@marcom/ac-function/once":155}],132:[function(t,e,i){"use strict";var n=t("./helpers/globals"),r=t("@marcom/ac-function/once");function s(){var t=n.getDocument().createElement("canvas");return"function"==typeof t.getContext&&!(!t.getContext("webgl")&&!t.getContext("experimental-webgl"))}e.exports=r(s),e.exports.original=s},{"./helpers/globals":126,"@marcom/ac-function/once":155}],133:[function(t,e,i){e.exports={major:6,minor:7,patch:1,prerelease:null,toString:function(){return"6.7.1 (e05a9a5)"},toArray:function(){return[6,7,1]}}},{}],134:[function(t,e,i){"use strict";var n;e.exports={create:function(){return n||(n=t("./factory/createFilms")),n.apply(this,arguments)}}},{"./factory/createFilms":139}],135:[function(t,e,i){"use strict";var n;try{n=t("@marcom/ac-analytics")}catch(t){}var r=t("@marcom/useragent-detect").browser,s=r.ie||r.edge,o=t("@marcom/ac-video/event-emitter-shim/EventEmitterShim"),a=function(t,e,i){if(i){var n=function(){e.apply(i,arguments)};o.prototype.once.apply(this,[t,n])}else o.prototype.once.apply(this,arguments)};function c(t,e,i){this.player=t,this.sources={},this.currentStubPlayer=null,this.playerType="",this.videoType="",this.options=e,i&&this._bindAnchors(i)}var l=c.prototype;l._bindAnchors=function(t){for(var e=0,i=t.length;e<i;e++)this._bindAnchorForAnalytics(t[e])},l.activate=function(){this._onPlay=this._onPlay.bind(this),this._onEnded=this._onEnded.bind(this),this._onTimeupdate=this._onTimeupdate.bind(this),this._onTexttrackshow=this._onTexttrackshow.bind(this),this._onLoadStart=this._onLoadStart.bind(this),this.setCurrentStubPlayer=this.setCurrentStubPlayer.bind(this),this._onPlayPromiseResolved=this._onPlayPromiseResolved.bind(this),s?this.player.on("playing",this._onPlay):this.player.on("play",this._onPlay),this.player.on("ended",this._onEnded),this.player.on("loadstart",this._onLoadStart),this.player.on("timeupdate",this._onTimeupdate),this.player.on("texttrackshow",this._onTexttrackshow),this.player.on("PlayPromiseResolved",this._onPlayPromiseResolved),this.player.on("durationchange",this.setCurrentStubPlayer)},l.deactivate=function(){s?this.player.off("playing",this._onPlay):this.player.off("play",this._onPlay),this.player.off("ended",this._onEnded),this.player.off("timeupdate",this._onTimeupdate),this.player.off("texttrackshow",this._onTexttrackshow),this.player.off("durationchange",this.setCurrentStubPlayer),this.player.off("PlayPromiseResolved",this._onPlayPromiseResolved)},l._bindAnchorForAnalytics=function(t){var e;if(t){if(this.sources[t.id])return;e=this._createStubPlayer(t),t.getAttribute("data-"+this.options.dataAttribute)||(e.videoId=t.id),this.sources[t.id]={stubPlayer:e,observer:this._createObserver(e)}}},l.addSourceObject=l._bindAnchorForAnalytics,l.setCurrentStubPlayer=function(){var t,e=this.player.el.getAttribute("data-"+this.options.dataAttribute),i=this._getCurrentSourceObject(e);i&&i.stubPlayer&&(this.currentStubPlayer=i.stubPlayer,this.playerType="html5",(t=this.player.getCurrentSrc())&&(this.videoType=t.split(".").pop()))},l.destroy=function(){this.deactivate(),this.player=null,this.sources=null,this.currentStubPlayer=null,this.options=null},l._onPlay=function(){this.setCurrentStubPlayer(),this._started||(this._proxyEvent("play"),this._started=!0)},l._onPlayPromiseResolved=function(){this.setCurrentStubPlayer(),this._proxyEvent("PlayPromiseResolved")},l._onLoadStart=function(){this._started=!1},l._onEnded=function(){this._started=!1,this._proxyEvent("ended")},l._onTimeupdate=function(){this._proxyEvent("timeupdate"),this._started&&0===this.player.getCurrentTime()&&this.player.getPaused()&&(this._started=!1)},l._onTexttrackshow=function(){this._proxyEvent("captions-enabled")},l._getSourceObjectBySrcObjId=function(t){return this.sources[t]||null},l._getCurrentSourceObject=function(t){var e;return t&&(e=this._getSourceObjectBySrcObjId(t)),e},l._createStubPlayer=function(t){var e=new o;return e.once=a,e.el=t,e.VERSION=this.player.VERSION,e},l._getEventData=function(){return{currentTime:this.player.getCurrentTime(),playerType:this.playerType||"html5",videoType:this.videoType||null}},l._createObserver=function(t){var e;return n&&n.observer&&n.observer.Video&&(e=new n.observer.Video(t,{dataAttribute:this.options.dataAttribute})),e},l._proxyEvent=function(t){this.currentStubPlayer&&this.currentStubPlayer.trigger(t,this._getEventData())},e.exports=c},{"@marcom/ac-analytics":void 0,"@marcom/ac-video/event-emitter-shim/EventEmitterShim":310,"@marcom/useragent-detect":435}],136:[function(t,e,i){"use strict";var n=t("../windowload/windowLoad"),r=t("@marcom/useragent-detect"),s=t("@marcom/feature-detect/touchAvailable")(),o=r.os.ios||r.os.android||r.os.osx&&s;e.exports=function(t,e,i,r){const s={click:function(i){i.preventDefault(),e(t)},TriggerAnchor:function(){e(t)}};return Object.keys(s).forEach((e=>{t.addEventListener(e,s[e])})),r&&t.id&&r.createRoute(t.id,(function(){n((function(){e(t,!o)}))})),{detatch:function(){Object.keys(s).forEach((e=>{t.removeEventListener(e,s[e])}))}}}},{"../windowload/windowLoad":145,"@marcom/feature-detect/touchAvailable":430,"@marcom/useragent-detect":435}],137:[function(t,e,i){"use strict";var n=t("@marcom/ac-router").Router,r=t("@marcom/ac-video/player/factory/createShareablePlayer"),s=t("@marcom/ac-video/optimizeVideoUrl"),o=t("@marcom/useragent-detect"),a=t("./bindAnchor"),c=t("./createClickHandler"),l=t("./createModalLink"),u=t("./createHandheldModalLink"),h=t("./createInlineLink"),d="data-films-options",p=t("@marcom/feature-detect/isHandheld")(),m=o.os.ios,f={controls:!0,urlOptimizer:s};e.exports=function(t,e){e=e||{},e=Object.assign({},f,e);let i=!1;var s;t.forEach((function(t){t.hasAttribute(d)&&(!1!==JSON.parse(t.getAttribute(d)).closeOnEnd||e.closeOnEnd||(e.closeOnEnd=!1));-1!==t.href.indexOf(".m3u8")&&(i=!0)})),e.maxWidth||(e.maxWidth=1280),e.hls=void 0!==e.hls?e.hls:i;var o,_=r(e);s=new n({hashChange:!0,pushState:!1});var v=(o=!e.modal||p&&m&&!e.threesixty?e.modal?u(_,document.body,e):h(_,e):l(_,e)).play.bind(o),g=c({player:_,playHandler:v,attr:"data-"+e.dataAttribute});const y=new Map;t.forEach((function(t){y.set(t,a(t,g,v,s))}));const b=function(t,e){t.detatch(),y.delete(e)};return s.start(),{play:function(e){for(var i=0,n=t.length;i<n;i++)t[i].id!==e&&t[i]!==e||v(t[i].href)},player:_,modalVideo:o.modal,destroy:function(){y.forEach(b),o.destroy()}}}},{"./bindAnchor":136,"./createClickHandler":138,"./createHandheldModalLink":140,"./createInlineLink":141,"./createModalLink":142,"@marcom/ac-router":255,"@marcom/ac-video/optimizeVideoUrl":311,"@marcom/ac-video/player/factory/createShareablePlayer":317,"@marcom/feature-detect/isHandheld":427,"@marcom/useragent-detect":435}],138:[function(t,e,i){"use strict";const n=t("@marcom/feature-detect/isRetina");e.exports=function(t){return function(e,i){let r=null;Array.from(document.querySelectorAll(".theme-dark")).find((function(e){return e.contains(t.player.el)}))&&(r=n()?"/ac/ac-video-posterframe/4.0/images/ac_video_poster_dark_960x540_2x.jpg":"/ac/ac-video-posterframe/4.0/images/ac_video_poster_dark_960x540.jpg");const s=e.getAttribute("data-films-options");let o;o=s?JSON.parse(s):null,o&&o.endState&&o.endState.items.forEach((function(t){if(t.url&&0===t.url.indexOf("#")){const e=document.querySelector(t.url);t.onclick=function(){e.dispatchEvent(new CustomEvent("TriggerAnchor"))}}})),o||(o={}),o.poster||(o.poster=r);var a=e.getAttribute("data-films-modal-label")||o&&o.modalLabel||t.player.options.modalLabel||"Video Player";t.player.el.setAttribute(t.attr,e.getAttribute(t.attr)||e.id),t.playHandler(e.href,o,i,a)}}},{"@marcom/feature-detect/isRetina":428}],139:[function(t,e,i){"use strict";const n=t("./bindAnchors"),r=t("../analytics/AnalyticsTranslator"),s={dataAttribute:"analytics-video-id",analytics:!0};t("@marcom/ac-console/log")(`@marcom/ac-films version: ${t("../../../.versionfile").toString()}`),e.exports=function(t,e){e=e||{},e=Object.assign({},s,e);const i=n(t,e);if(e.analytics){new r(i.player,e,t).activate()}return i}},{"../../../.versionfile":133,"../analytics/AnalyticsTranslator":135,"./bindAnchors":137,"@marcom/ac-console/log":69}],140:[function(t,e,i){"use strict";const n="player-fullscreen";e.exports=function(t,e,i){t.el.classList.add("ac-films-handheld-player");return e.appendChild(t.el),{play:function(i,r,s){const o=function(){t.isPictureInPicture()||(t.getPaused()||t.pause(),t.el.classList.remove(n))};t.el.classList.add(n),t.once("ended",o),t.once("exitfullscreen",o);const a=e.getAttribute("data-films-options");a&&(r=Object.assign({},r,JSON.parse(a))),t.load(i,null,0,Object.assign({maxWidth:window.innerWidth},r)),!1!==s&&t.play()},player:t,destroy:function(){t.destroy()}}}},{}],141:[function(t,e,i){"use strict";e.exports=function(t,e){var i=e.targetElement,n=function(e,i){t.load(e,null,0,i),t.play()};return e.playHandler=n,i&&i.appendChild(t.el),{play:n,player:t,destroy:function(){t.destroy()}}}},{}],142:[function(t,e,i){"use strict";var n=t("@marcom/ac-modal").createFullViewportModal,r=t("@marcom/useragent-detect"),s=t("@marcom/feature-detect/touchAvailable")(),o=r.os.ios||r.os.android||r.os.osx&&s,a=t("./link/ModalLink");e.exports=function(t,e){e=e||{};var i=document.createElement("div");i.classList.add("ac-player-container"),o&&i.classList.add("ac-films-modal-mobile"),i.appendChild(t.el);var r=n(i);return r.modalElement.classList.add("ac-modal-video"),new a({player:t,modal:r,closeOnEnd:e.closeOnEnd})}},{"./link/ModalLink":143,"@marcom/ac-modal":179,"@marcom/feature-detect/touchAvailable":430,"@marcom/useragent-detect":435}],143:[function(t,e,i){"use strict";var n=/_([0-9]+)x([0-9]+)/,r="ac-video-cinematic-aspect-ratio",s="ac-video-square-aspect-ratio",o="ac-video-vertical-aspect-ratio",a="ac-video-19x9-aspect-ratio",c="ac-video-9x19-aspect-ratio",l="ac-modal-video-pip",u="pictureinpicture:change",h=t("../../resize/ResizeHandler"),d=t("@marcom/ac-video/utils/urlOptimizer/19X9AssetSizes"),p=function(t){this.modal=t.modal,this.player=t.player,this._resizeHandler=new h({player:this.player,modal:this.modal}),this._closeOnEnd=void 0===t.closeOnEnd||t.closeOnEnd,this._ended=!1,this._pauseTime=0,this._playing=!1,this._initialize()},m=p.prototype;m._initialize=function(){this._bindMethods(),this.player.on("ended",this._onEnded),this.player.on("pause",this._onPaused),this.modal.on("open",this._onOpen),this.player.supportsPictureInPicture()&&this.player.on(u,this._onPipModeChanged)},m._bindMethods=function(){this._onEnded=this._onEnded.bind(this),this._onPipModeChanged=this._onPipModeChanged.bind(this),this._onPaused=this._onPaused.bind(this),this._onModalWillClose=this._onModalWillClose.bind(this),this._onOpen=this._onOpen.bind(this)},m._onOpen=function(){this.player.refreshSize()},m._onPaused=function(){this._pauseTime=Date.now()},m._onEnded=function(){this._ended=!0,!this.player.isPictureInPicture()&&this._closeOnEnd?this.modal.close():this.player.isPictureInPicture()&&(this.player.setPictureInPicture(!1),this.modal.modalElement.classList.remove(l),this._closeOnEnd||(this.modal.open(),this._bindWillClose()))},m._onPipModeChanged=function(){this._ended||(this.player.isPictureInPicture()&&this._isModalOpen()?(this._unBindWillClose(),this.modal.modalElement.classList.add(l),this.modal.close()):this._isModalOpen()||(this.modal.modalElement.classList.remove(l),!this._pauseTime||Date.now()-this._pauseTime>400?(this._bindWillClose(),this.modal.open()):this._resetVideo()))},m._resetVideo=function(){this.player.pause(),this.player.setCurrentTime(0)},m._onModalWillClose=function(){this._unBindWillClose(),this._resetVideo(),this.player.setPictureInPicture(!1),this.modal.modalElement.classList.remove(l)},m._clearAspectRatio=function(){this.player.el.parentElement.classList.remove(r),this.player.el.parentElement.classList.remove(s),this.player.el.parentElement.classList.remove(o),this.player.el.parentElement.classList.remove(a),this.player.el.parentElement.classList.remove(c)},m._set19X9Mode=function(){this.player.el.parentElement.classList.add(a)},m._set9X19Mode=function(){this.player.el.parentElement.classList.add(c)},m._setCinematicMode=function(){this.player.el.parentElement.classList.add(r)},m._setSquareVideo=function(){this.player.el.parentElement.classList.add(s)},m._setVerticalVideo=function(){this.player.el.parentElement.classList.add(o)},m._resetPiPVideo=function(){var t=this.player.getVisibleTextTracks();t.forEach((function(t){t.mode="hidden"})),this._resetVideo(),t.forEach((function(t){t.mode="showing"}))},m.play=function(t,e,i,r){if(this._ended=!1,this._clearAspectRatio(),t.match("-tft-"))this._setCinematicMode();else if(n.test(t)){var s=parseInt(RegExp.$1,10),o=parseInt(RegExp.$2,10);a={width:s,height:o},d.find((function(t){return t.width===a.width&&(t.height=a.height)||t.width===a.height&&(t.height=a.width)}))?o>s?this._set9X19Mode(!0):this._set19X9Mode(!0):o>s?this._setVerticalVideo(!0):o===s&&this._setSquareVideo(!0)}var a;this.modal.modalElement.setAttribute("aria-label",r),this.player.load(t,null,0,Object.assign({},e,{maxWidth:window.innerWidth})),this.player.isPictureInPicture()?this._resetPiPVideo():(this.modal.open(),this._bindWillClose()),!1!==i&&this.player.play()},m._bindWillClose=function(){this.modal.on("willclose",this._onModalWillClose)},m._unBindWillClose=function(){this.modal.off("willclose",this._onModalWillClose)},m._isModalOpen=function(){return document.documentElement.classList.contains("has-modal")},m.destroy=function(){this.player.off("ended",this._onEnded),this.player.off("paused",this._onPaused),this.player.off(u,this._onPipModeChanged),this._unBindWillClose(),this._resizeHandler.destroy(),this.modal.destroy(),this.player.destroy()},e.exports=p},{"../../resize/ResizeHandler":144,"@marcom/ac-video/utils/urlOptimizer/19X9AssetSizes":396}],144:[function(t,e,i){"use strict";var n=/_([0-9]+)x([0-9]+)/,r=t("@marcom/useragent-detect"),s=t("@marcom/feature-detect/touchAvailable")(),o=r.os.ios||r.os.android||r.os.osx&&s;function a(t){this._modal=t.modal,this._player=t.player,this._mediaElement=t.player.getMediaElement(),this._posterEl=this._player.el.querySelector(".ac-video-poster img"),this._playerContainer=this._player.el.parentElement,this._bindMethods(),this._addEventListeners(),this._calcAspectRatio()}var c=a.prototype;c._bindMethods=function(){this._onLoadStart=this._onLoadStart.bind(this),this._onResize=this._onResize.bind(this),this._fullScreenChange=this._fullScreenChange.bind(this),this._calcAspectRatio=this._calcAspectRatio.bind(this),this._addResizeListeners=this._addResizeListeners.bind(this),this._removeResizeListeners=this._removeResizeListeners.bind(this),this._onModalOpen=this._onModalOpen.bind(this)},c._addEventListeners=function(){this._posterEl&&this._posterEl.addEventListener("load",this._calcAspectRatio),this._modal.on("willopen",this._addResizeListeners),this._modal.on("open",this._onModalOpen),this._modal.on("close",this._removeResizeListeners)},c._onModalOpen=function(){this._loadStarted&&(this._onResize(),this._player.el.style.display="",this._player.el.style.opacity="")},c._addResizeListeners=function(){this._mediaElement=this._player.getMediaElement(),this._player.el.style.display="block",this._player.el.style.opacity=0,window.addEventListener("resize",this._onResize),window.addEventListener("orientationchange",this._onResize),this._player.on("loadstart",this._onLoadStart),this._player.on("loadeddata",this._calcAspectRatio),this._player.on("fullscreen:change",this._fullScreenChange),this._player.on("fullscreen:willenter",this._fullScreenChange),this._calcAspectRatio()},c._removeResizeListeners=function(){this._onResize(),window.removeEventListener("resize",this._onResize),window.removeEventListener("orientationchange",this._onResize),this._player.off("loadstart",this._onLoadStart),this._player.off("loadeddata",this._calcAspectRatio),this._player.off("fullscreen:change",this._fullScreenChange)},c._removeEventListeners=function(){this._removeResizeListeners(),this._modal.off("willopen",this._addResizeListeners),this._modal.off("open",this._onModalOpen),this._modal.off("close",this._removeResizeListeners),this._posterEl&&this._posterEl.removeEventListener("load",this._calcAspectRatio)},c._onLoadStart=function(){this._mediaElement=this._player.getMediaElement(),this._loadStarted=!1,requestAnimationFrame(function(){this._loadStarted=!0,this._onModalOpen()}.bind(this)),this._calcAspectRatio()},c._calcAspectRatio=function(){this._aspectRatio=this._player.getMediaWidth()/this._player.getMediaHeight(),(isNaN(this._aspectRatio)||this._aspectRatio<=0)&&this._player.getCurrentSrc()&&n.test(this._player.getCurrentSrc())&&(this._aspectRatio=parseInt(RegExp.$1,10)/parseInt(RegExp.$2,10)),(isNaN(this._aspectRatio)||this._aspectRatio<=0)&&this._posterEl&&(this._aspectRatio=this._posterEl.naturalWidth/this._posterEl.naturalHeight),this._onResize()},c._fullScreenChange=function(t){if(t&&"enter"===t.type)return clearTimeout(this._fullScreenChangeTimeout),void(this._fullScreenChangeTimeout=setTimeout(function(){this._isFullScreen=!0,this._onResize()}.bind(this),60));this._isFullScreen=this._player.isFullscreen(),this._onResize()},c.destroy=function(){clearTimeout(this._fullScreenChangeTimeout),this._removeEventListeners()},c._onResize=function(){var t=this._aspectRatio;if(isNaN(t))return this._mediaElement.style.width="",void(this._mediaElement.style.height="");var e=window.innerWidth,i=window.innerHeight,n=e/i;if(this._mediaElement.readyState<1){var r=parseInt(getComputedStyle(this._playerContainer).maxWidth.replace("px","")),s=r/t,a=o?parseInt(getComputedStyle(this._player.el).maxHeight.replace("px","")):s;let n=parseInt(getComputedStyle(this._player.el).margin.replace("px",""));(s>i||a&&s>a)&&(r=(a||i)*t-2*n,s=Math.min(r/t,i)),(r>e||r>s*t)&&(r=(s=Math.min(e/t,i))*t),n&&(s=(r-=2*n)/t),this._mediaElement.style.width=r+"px",this._mediaElement.style.height=Math.min(s,i)+"px"}else this._mediaElement.style.width="",this._mediaElement.style.height="";n>t&&!this._isFullScreen?this._playerContainer.parentElement.classList.add("center-horizontal"):this._playerContainer.parentElement.classList.remove("center-horizontal"),this._player.refreshSize()},e.exports=a},{"@marcom/feature-detect/touchAvailable":430,"@marcom/useragent-detect":435}],145:[function(t,e,i){"use strict";var n=!1;window.addEventListener("load",(function(){n=!0})),e.exports=function(t){n?t():window.addEventListener("load",t)}},{}],146:[function(t,e,i){"use strict";var n=t("./internal/CheckboxMenu"),r={className:"footer"};function s(t,e){e=Object.assign({},r,e),this.el=t,this._selectors={wrapper:"."+e.className,directory:e.directorySelector||"."+e.className+"-directory",mini:e.miniSelector||"."+e.className+"-mini"},this._initializeDirectory(),this._initializeLangLink()}var o=s.prototype;o._initializeDirectory=function(){if(this._directory=this.el.querySelector(this._selectors.directory),this._directory)for(var t,e,i,r=this._directory.querySelectorAll(this._selectors.directory+"-column-section-state"),s=0;s<r.length;s++)e=(t=r[s].nextElementSibling).querySelector(this._selectors.directory+"-column-section-anchor-open"),i=t.querySelector(this._selectors.directory+"-column-section-anchor-close"),n.create(r[s],e,i)},o._initializeLangLink=function(){var t,e,i;this._langLink=this.el.querySelector(this._selectors.mini+"-locale-lang"),this._langLink&&(t=window.location.pathname,e=this._langLink.getAttribute("data-locale-current"),i=this._langLink.pathname,-1!==t.indexOf(e)&&("/"!==(t=t.replace(e,i)).charAt(0)&&(t="/"+t),this._langLink.href=t))},e.exports=s},{"./internal/CheckboxMenu":147}],147:[function(t,e,i){"use strict";function n(t,e,i){this.el=t,this.anchorOpen=e,this.anchorClose=i,this._lastOpen=this.el.checked,this.el.addEventListener("change",this.update.bind(this)),this.anchorOpen.addEventListener("click",this._anchorOpenClick.bind(this)),this.anchorClose.addEventListener("click",this._anchorCloseClick.bind(this)),window.location.hash==="#"+t.id&&(window.location.hash="")}n.create=function(t,e,i){return new n(t,e,i)};var r=n.prototype;r.update=function(){var t=this.isOpen();t!==this._lastOpen&&(this._lastOpen=t)},r.isOpen=function(){return this.el.checked},r.toggle=function(){this.isOpen()?this.close():this.open()},r.open=function(){this.el.checked||(this.el.checked=!0,this.update())},r.close=function(){this.el.checked&&(this.el.checked=!1,this.update())},r._anchorOpenClick=function(t){t.preventDefault(),this.open(),this.anchorClose.focus()},r._anchorCloseClick=function(t){t.preventDefault(),this.close(),this.anchorOpen.focus()},e.exports=n},{}],148:[function(t,e,i){"use strict";e.exports=t("./fullscreen")},{"./fullscreen":154}],149:[function(t,e,i){e.exports={STANDARD:"standard",IOS:"ios"}},{}],150:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-events/addEventListener"),r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=t("./../events/types"),o=t("./../consts/modes"),a=new r;function c(t){a.fullscreenElement()?function(t){a.trigger(s.ENTERFULLSCREEN,t)}(t):function(t){a.trigger(s.EXITFULLSCREEN,t)}(t)}n(document,"fullscreenchange",c),a.fullscreenEnabled=function(t){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)},a.fullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement},a.exitFullscreen=function(t){var e;t&&"function"==typeof t.webkitExitFullscreen?t.webkitExitFullscreen():"function"==typeof document.exitFullscreen?e="exitFullscreen":"function"==typeof document.webkitExitFullscreen?e="webkitExitFullscreen":"function"==typeof document.webkitCancelFullScreen?e="webkitCancelFullScreen":"function"==typeof document.mozCancelFullScreen?e="mozCancelFullScreen":"function"==typeof document.msExitFullscreen&&(e="msExitFullscreen"),"function"==typeof document[e]&&document[e].call(document)},a.requestFullscreen=function(t){var e;"function"==typeof t.requestFullscreen?e="requestFullscreen":"function"==typeof t.webkitRequestFullscreen?e="webkitRequestFullscreen":"function"==typeof t.webkitRequestFullScreen?e="webkitRequestFullScreen":"function"==typeof t.mozRequestFullScreen?e="mozRequestFullScreen":"function"==typeof t.msRequestFullscreen&&(e="msRequestFullscreen"),"function"==typeof t[e]&&t[e].call(t)},a.mode=o.STANDARD,e.exports=a},{"./../consts/modes":149,"./../events/types":153,"@marcom/ac-dom-events/addEventListener":73,"@marcom/ac-event-emitter-micro":122}],151:[function(t,e,i){"use strict";var n=t("./ios"),r=t("./desktop");e.exports={create:function(){var t=r;return"webkitEnterFullscreen"in document.createElement("video")&&!("webkitRequestFullScreen"in document.createElement("div"))&&(t=n),t}}},{"./desktop":150,"./ios":152}],152:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-dom-events/addEventListener"),s=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,o=t("./../events/types"),a=t("./../consts/modes");function c(t){u.trigger(o.ENTERFULLSCREEN,t)}function l(t){n=void 0,u.trigger(o.EXITFULLSCREEN,t)}r(document,"webkitbeginfullscreen",c,!0),r(document,"webkitendfullscreen",l,!0);var u=new s;u.fullscreenEnabled=function(t){return!!t.webkitSupportsFullscreen},u.fullscreenElement=function(){return n},u.exitFullscreen=function(t){t&&"function"==typeof t.webkitExitFullscreen&&t.webkitExitFullscreen()},u.requestFullscreen=function(t){"function"==typeof t.webkitEnterFullscreen&&t.webkitEnterFullscreen()},u.mode=a.IOS,e.exports=u},{"./../consts/modes":149,"./../events/types":153,"@marcom/ac-dom-events/addEventListener":73,"@marcom/ac-event-emitter-micro":122}],153:[function(t,e,i){e.exports={ENTERFULLSCREEN:"enterfullscreen",EXITFULLSCREEN:"exitfullscreen"}},{}],154:[function(t,e,i){"use strict";t("@marcom/ac-event-emitter-micro").EventEmitterMicro;var n=t("./delegate/factory"),r=n.create();function s(){throw new Error("Error: Element missing. ac-fullscreen requires an element to be specified")}var o={requestFullscreen:function(t){return t||s(),r.requestFullscreen(t)},fullscreenEnabled:function(t){return t||s(),r.fullscreenEnabled(t)},fullscreenElement:function(){return r.fullscreenElement()},exitFullscreen:function(t){return t||s(),r.exitFullscreen(t)},getMode:function(){return r.mode},on:function(){return r.on.apply(r,arguments)},off:function(){return r.off.apply(r,arguments)},once:function(){return r.once.apply(r,arguments)}};e.exports=o},{"./delegate/factory":151,"@marcom/ac-event-emitter-micro":122}],155:[function(t,e,i){"use strict";e.exports=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}},{}],156:[function(t,e,i){"use strict";e.exports=function(t,e){var i=null;return function(){null===i&&(t.apply(this,arguments),i=setTimeout((function(){i=null}),e))}}},{}],157:[function(t,e,i){"use strict";var n=function(t,e){this._target=t,this._tests={},this.addTests(e)},r=n.prototype;r.addTests=function(t){this._tests=Object.assign(this._tests,t)},r._supports=function(t){return void 0!==this._tests[t]&&("function"==typeof this._tests[t]&&(this._tests[t]=this._tests[t]()),this._tests[t])},r._addClass=function(t,e){e=e||"no-",this._supports(t)?this._target.classList.add(t):this._target.classList.add(e+t)},r.htmlClass=function(){var t;for(t in this._target.classList.remove("no-js"),this._target.classList.add("js"),this._tests)this._tests.hasOwnProperty(t)&&this._addClass(t)},e.exports=n},{}],158:[function(t,e,i){"use strict";var n="touch";function r(t,e){this._target=t||document.body,this._attr=e||"data-focus-method",this._focusMethod=this._lastFocusMethod=!1,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onWindowBlur=this._onWindowBlur.bind(this),this._bindEvents()}var s=r.prototype;s._bindEvents=function(){this._target.addEventListener("keydown",this._onKeyDown,!0),this._target.addEventListener("mousedown",this._onMouseDown,!0),this._target.addEventListener("touchstart",this._onTouchStart,!0),this._target.addEventListener("focus",this._onFocus,!0),this._target.addEventListener("blur",this._onBlur,!0),window.addEventListener("blur",this._onWindowBlur)},s._onKeyDown=function(t){this._focusMethod="key"},s._onMouseDown=function(t){this._focusMethod!==n&&(this._focusMethod="mouse")},s._onTouchStart=function(t){this._focusMethod=n},s._onFocus=function(t){this._focusMethod||(this._focusMethod=this._lastFocusMethod),t.target.setAttribute(this._attr,this._focusMethod),this._lastFocusMethod=this._focusMethod,this._focusMethod=!1},s._onBlur=function(t){t.target.removeAttribute(this._attr)},s._onWindowBlur=function(t){this._focusMethod=!1},e.exports=r},{}],159:[function(t,e,i){"use strict";t("@marcom/ac-polyfills");var n=t("./FeatureDetect"),r=t("./defaultTests");e.exports=new n(document.documentElement,r),e.exports.FeatureDetect=n;var s=t("./FocusManager");document.addEventListener&&document.addEventListener("DOMContentLoaded",(function(){new s}))},{"./FeatureDetect":157,"./FocusManager":158,"./defaultTests":160,"@marcom/ac-polyfills":224}],160:[function(t,e,i){"use strict";var n=t("@marcom/ac-feature/touchAvailable");e.exports={touch:n,"progressive-image":!0}},{"@marcom/ac-feature/touchAvailable":131}],161:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,r=t("@marcom/ac-dom-events/utils/addEventListener"),s=t("@marcom/ac-dom-events/utils/removeEventListener"),o=t("@marcom/ac-object/create"),a=t("@marcom/ac-keyboard/internal/KeyEvent"),c="keydown",l="keyup";function u(){this._keysDown={},this._DOMKeyDown=this._DOMKeyDown.bind(this),this._DOMKeyUp=this._DOMKeyUp.bind(this),r(document,c,this._DOMKeyDown,!0),r(document,l,this._DOMKeyUp,!0),n.call(this)}var h=u.prototype=o(n.prototype);h.onDown=function(t,e){return this.on("keydown:"+t,e)},h.onceDown=function(t,e){return this.once("keydown:"+t,e)},h.offDown=function(t,e){return this.off("keydown:"+t,e)},h.onUp=function(t,e){return this.on("keyup:"+t,e)},h.onceUp=function(t,e){return this.once("keyup:"+t,e)},h.offUp=function(t,e){return this.off("keyup:"+t,e)},h.isDown=function(t){return t+="",this._keysDown[t]||!1},h.isUp=function(t){return!this.isDown(t)},h.destroy=function(){return this._keysDown=null,s(document,c,this._DOMKeyDown),s(document,l,this._DOMKeyUp),n.prototype.destroy.call(this),this},h._DOMKeyDown=function(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyDown(i),this.trigger("keydown:"+i,e)},h._DOMKeyUp=function(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyUp(i),this.trigger("keyup:"+i,e)},h._normalizeKeyboardEvent=function(t){return new a(t)},h._trackKeyUp=function(t){this._keysDown[t]&&(this._keysDown[t]=!1)},h._trackKeyDown=function(t){this._keysDown[t]||(this._keysDown[t]=!0)},e.exports=u},{"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-events/utils/removeEventListener":84,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-keyboard/internal/KeyEvent":163,"@marcom/ac-object/create":185}],162:[function(t,e,i){"use strict";var n=t("./Keyboard");e.exports=new n},{"./Keyboard":161}],163:[function(t,e,i){var n=["keyLocation"];function r(t){var e;for(e in this.originalEvent=t,t)-1===n.indexOf(e)&&"function"!=typeof t[e]&&(this[e]=t[e]);this.location=void 0!==this.originalEvent.location?this.originalEvent.location:this.originalEvent.keyLocation}r.prototype={preventDefault:function(){if("function"==typeof this.originalEvent.preventDefault)return this.originalEvent.preventDefault();this.originalEvent.returnValue=!1},stopPropagation:function(){return this.originalEvent.stopPropagation()}},e.exports=r},{}],164:[function(t,e,i){"use strict";e.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,COMMAND:91,CAPSLOCK:20,ESCAPE:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ASTERISK:106,NUMPAD_PLUS:107,NUMPAD_DASH:109,NUMPAD_DOT:110,NUMPAD_SLASH:111,NUMPAD_EQUALS:187,TICK:192,LEFT_BRACKET:219,RIGHT_BRACKET:221,BACKSLASH:220,SEMICOLON:186,APOSTRAPHE:222,APOSTROPHE:222,SPACEBAR:32,CLEAR:12,COMMA:188,DOT:190,SLASH:191}},{}],165:[function(t,e,i){"use strict";e.exports=Object.freeze({ELEMENT:1,TEXT:3,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11})},{}],166:[function(t,e,i){"use strict";var n=t("./internal/validate");e.exports=function(t,e){return n.insertNode(t,"insertBefore"),n.childNode(e,"insertBefore"),n.hasParentNode(e,"insertBefore"),e.parentNode.insertBefore(t,e)}},{"./internal/validate":167}],167:[function(t,e,i){"use strict";var n=t("../isNodeType"),r=t("../NODE_TYPES"),s=r.COMMENT,o=r.DOCUMENT_FRAGMENT,a=r.ELEMENT,c=r.TEXT,l=[a,c,s,o],u=[a,c,s],h=[a,o];e.exports={parentNode:function(t,e,i){if(i=i||"target",t&&!n(t,h))throw new TypeError(e+": "+i+" must be an Element, or Document Fragment")},childNode:function(t,e,i){if(i=i||"target",t&&!n(t,u))throw new TypeError(e+": "+i+" must be an Element, TextNode, or Comment")},insertNode:function(t,e,i){if(i=i||"node",t&&!n(t,l))throw new TypeError(e+": "+i+" must be an Element, TextNode, Comment, or Document Fragment")},hasParentNode:function(t,e,i){if(i=i||"target",!t.parentNode)throw new TypeError(e+": "+i+" must have a parentNode")}}},{"../NODE_TYPES":165,"../isNodeType":169}],168:[function(t,e,i){"use strict";e.exports=function(t){return!(!t||!t.nodeType)}},{}],169:[function(t,e,i){"use strict";var n=t("./isNode");e.exports=function(t,e){return!!n(t)&&("number"==typeof e?t.nodeType===e:!!Array.isArray(e)&&-1!==e.indexOf(t.nodeType))}},{"./isNode":168}],170:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isNodeType"),r=t("@marcom/dom-traversal/ancestor"),s=t("@marcom/feature-detect/cssPropertyAvailable"),o=t("@marcom/viewport-emitter/ViewportEmitter"),a=t("@marcom/ac-accessibility/CircularTab"),c=t("./internal/CheckboxMenu"),l=t("./internal/SimpleSticky"),u=t("./internal/ClickAway"),h=t("@marcom/ac-dom-nodes/NODE_TYPES").ELEMENT,d={className:"localnav"},p=function(t,e){var i;e=Object.assign({},d,e),this.el=t,i=e.selector||"."+e.className,this._selectors={traySelector:e.traySelector||"."+e.className+"-menu-tray",viewportEmitterID:e.viewportEmitterID||e.className+"-viewport-emitter",curtainID:e.curtainID||e.className+"-curtain",menuStateID:e.menuStateID||e.className+"-menustate",menuOpeningClassName:e.menuOpeningClassName||e.className+"-opening"},this._selectors.clickAwaySelector=i+", #"+this._selectors.curtainID+", #"+this._selectors.menuStateID,this.tray=this.el.querySelector(this._selectors.traySelector),this.stickyEnabled=this._getStickyEnabled(),this._transitionsAvailable=s("transition"),this._viewports=new o(this._selectors.viewportEmitterID),this.stickyEnabled&&(this._sticky=new l(this.el,e)),this.circTab=new a(this.el),this._initializeMenu()};p.create=function(t,e){return new p(t,e)};var m=p.prototype;m._getStickyEnabled=function(){return this.el.hasAttribute("data-sticky")},m._initializeMenu=function(){var t=document.getElementById(this._selectors.menuStateID),e=document.getElementById(this._selectors.menuStateID+"-open"),i=document.getElementById(this._selectors.menuStateID+"-close"),n="onpopstate"in window?"popstate":"beforeunload";t&&e&&i&&(this.menu=new c(t,e,i),this.menu.on("open",this._onMenuOpen.bind(this)),this.menu.on("close",this._onMenuClose.bind(this)),this._viewports.on("change:viewport",this._onViewportChange.bind(this)),window.addEventListener("scroll",this._onScroll.bind(this)),window.addEventListener("touchmove",this._onScroll.bind(this)),window.addEventListener("keydown",this._onKeyDown.bind(this)),this.tray.addEventListener("click",this._onTrayClick.bind(this)),this._closeMenu=this._closeMenu.bind(this),window.addEventListener(n,this._closeMenu),window.addEventListener("orientationchange",this._closeMenu),new u(this._selectors.clickAwaySelector).on("click",this._closeMenu),this._transitionsAvailable&&this.tray.addEventListener("transitionend",this._enableMenuScroll.bind(this)))},m._onMenuOpen=function(){this._menuCollapseOnScroll=null,this.circTab.start(),this.tray.removeAttribute("aria-hidden","false"),this._transitionsAvailable&&this._disableMenuScrollbar()},m._onMenuClose=function(){this.tray.setAttribute("aria-hidden","true"),this.circTab.stop()},m._onScroll=function(t){var e;this.menu.isOpen()&&(null===this._menuCollapseOnScroll&&(this._menuCollapseOnScroll=this.tray.offsetHeight>=this.tray.scrollHeight),this._menuCollapseOnScroll?(this._closeMenu(),this.menu.anchorOpen.focus()):(e=t.target,n(e,h)&&r(e,this._selectors.traySelector,!0)||(t.preventDefault(),this._menuCollapseOnScroll=!0)))},m._onTrayClick=function(t){"href"in t.target&&this._closeMenu()},m._onKeyDown=function(t){!this.menu.isOpen()||"Escape"!==t.code&&27!==t.keyCode||(this._closeMenu(),this.menu.anchorOpen.focus())},m._onViewportChange=function(t){"medium"!==t.to&&"large"!==t.to||this._closeMenu()},m._disableMenuScrollbar=function(){this.el.classList.add(this._selectors.menuOpeningClassName)},m._enableMenuScroll=function(){this.el.classList.remove(this._selectors.menuOpeningClassName)},m._closeMenu=function(){this.menu.close()},m.destroy=function(){},e.exports=p},{"./internal/CheckboxMenu":171,"./internal/ClickAway":172,"./internal/SimpleSticky":173,"@marcom/ac-accessibility/CircularTab":26,"@marcom/ac-dom-nodes/NODE_TYPES":165,"@marcom/ac-dom-nodes/isNodeType":169,"@marcom/dom-traversal/ancestor":419,"@marcom/feature-detect/cssPropertyAvailable":424,"@marcom/viewport-emitter/ViewportEmitter":445}],171:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro/EventEmitterMicro");function r(t,e,i){n.call(this),this.el=t,this.anchorOpen=e,this.anchorClose=i,this._lastOpen=this.el.checked,this.el.addEventListener("change",this.update.bind(this)),this.anchorOpen.addEventListener("click",this._anchorOpenClick.bind(this)),this.anchorClose.addEventListener("click",this._anchorCloseClick.bind(this)),this.anchorOpen.addEventListener("keydown",this._anchorOpenKeyDown.bind(this)),this.anchorClose.addEventListener("keydown",this._anchorCloseKeyDown.bind(this)),window.location.hash==="#"+t.id&&(window.location.hash="")}r.create=function(t,e,i){return new r(t,e,i)};var s=n.prototype,o=r.prototype=Object.create(s);r.prototype.constructor=r,o.update=function(){var t=this.isOpen();t!==this._lastOpen&&(this.trigger(t?"open":"close"),this._lastOpen=t)},o.isOpen=function(){return this.el.checked},o.toggle=function(){this.isOpen()?this.close():this.open()},o.open=function(){this.el.checked||(this.el.checked=!0,this.update())},o.close=function(){this.el.checked&&(this.el.checked=!1,this.update())},o._anchorOpenClick=function(t){t.preventDefault(),this.open(),this.anchorClose.focus()},o._anchorCloseClick=function(t){t.preventDefault(),this.close(),this.anchorOpen.focus()},o._anchorOpenKeyDown=function(t){"Space"!==t.code&&32!==t.keyCode||this._anchorOpenClick(t)},o._anchorCloseKeyDown=function(t){"Space"!==t.code&&32!==t.keyCode||this._anchorCloseClick(t)},e.exports=r},{"@marcom/ac-event-emitter-micro/EventEmitterMicro":123}],172:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro/EventEmitterMicro"),r=t("@marcom/dom-traversal/ancestors");function s(t){n.call(this),this._selector=t,this._touching=!1,document.addEventListener("click",this._onClick.bind(this)),document.addEventListener("touchstart",this._onTouchStart.bind(this)),document.addEventListener("touchend",this._onTouchEnd.bind(this))}var o=n.prototype,a=s.prototype=Object.create(o);s.prototype.constructor=s,a._checkTarget=function(t){var e=t.target;r(e,this._selector,!0).length||this.trigger("click",t)},a._onClick=function(t){this._touching||this._checkTarget(t)},a._onTouchStart=function(t){this._touching=!0,this._checkTarget(t)},a._onTouchEnd=function(){this._touching=!1},e.exports=s},{"@marcom/ac-event-emitter-micro/EventEmitterMicro":123,"@marcom/dom-traversal/ancestors":420}],173:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,r=t("@marcom/feature-detect/cssPropertyAvailable"),s=t("@marcom/ac-dom-nodes/insertBefore"),o=t("@marcom/dom-metrics/getScrollPosition"),a=t("@marcom/useragent-detect"),c=a.browser.edge,l=function(t,e){n.call(this),this.el=t,this.stuck=!1,this._selectors={placeholderID:e.placeholderID||e.className+"-sticky-placeholder",stuckClassName:e.stuckClassName||e.className+"-sticking"},this._createPlaceholder(),this._featureDetection(),this._updatePosition=this._updatePosition.bind(this),this._updatePlaceholderOffset=this._updatePlaceholderOffset.bind(this),window.addEventListener("scroll",this._updatePosition),document.addEventListener("touchmove",this._updatePosition),window.addEventListener("resize",this._updatePlaceholderOffset),window.addEventListener("orientationchange",this._updatePlaceholderOffset),"acStore"in window&&(window.acStore.getStorefront().then(this._updatePlaceholderOffset),window.acStore.on("storefrontChange",this._updatePlaceholderOffset))};l.create=function(t,e){return new l(t,e)};var u=n.prototype,h=l.prototype=Object.create(u);l.prototype.constructor=l,h._featureDetection=function(){var t="css-sticky";r("position","sticky")&&!c||(t="no-"+t),this.el.classList.add(t),this.placeholder.classList.add(t)},h._createPlaceholder=function(){this.placeholder=document.createElement("div"),this.placeholder.id=this._selectors.placeholderID,s(this.placeholder,this.el),this._updatePlaceholderOffset()},h._updatePlaceholderOffset=function(){var t=this.placeholder.offsetTop;(t+=document.documentElement.offsetTop+document.body.offsetTop)!==this._placeholderOffset&&(this._placeholderOffset=t,this._updatePosition())},h._updatePosition=function(){o("y")>this._placeholderOffset?this.stuck||(this.el.classList.add(this._selectors.stuckClassName),this.placeholder.classList.add(this._selectors.stuckClassName),this.stuck=!0,this.trigger("stuck")):this.stuck&&(this.el.classList.remove(this._selectors.stuckClassName),this.placeholder.classList.remove(this._selectors.stuckClassName),this.stuck=!1,this.trigger("unstuck"))},e.exports=l},{"@marcom/ac-dom-nodes/insertBefore":166,"@marcom/ac-event-emitter-micro":122,"@marcom/dom-metrics/getScrollPosition":413,"@marcom/feature-detect/cssPropertyAvailable":424,"@marcom/useragent-detect":435}],174:[function(t,e,i){"use strict";e.exports={Modal:t("./ac-modal-basic/Modal"),Renderer:t("./ac-modal-basic/Renderer"),classNames:t("./ac-modal-basic/classNames"),dataAttributes:t("./ac-modal-basic/dataAttributes")}},{"./ac-modal-basic/Modal":175,"./ac-modal-basic/Renderer":176,"./ac-modal-basic/classNames":177,"./ac-modal-basic/dataAttributes":178}],175:[function(t,e,i){"use strict";var n={addEventListener:t("@marcom/ac-dom-events/addEventListener"),removeEventListener:t("@marcom/ac-dom-events/removeEventListener"),target:t("@marcom/ac-dom-events/target")},r={getScrollX:t("@marcom/ac-dom-metrics/getScrollX"),getScrollY:t("@marcom/ac-dom-metrics/getScrollY")},s={create:t("@marcom/ac-object/create"),defaults:t("@marcom/ac-object/defaults")},o=t("@marcom/ac-keyboard"),a=t("@marcom/ac-keyboard/keyMap"),c=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,l=t("./Renderer"),u={retainScrollPosition:!1};function h(t,e){c.call(this),this.options=s.defaults(u,t),this.renderer=new l(e),this.opened=!1,this._keysToClose=[a.ESCAPE],this._attachedKeysToClose=[],this.close=this.close.bind(this)}var d=h.prototype=s.create(c.prototype);d.open=function(){this.options.retainScrollPosition&&this._saveScrollPosition(),this.opened||(this._attachEvents(),this.trigger("willopen"),this.renderer.open(),this.opened=!0,this.trigger("open"))},d.close=function(t){var e,i;if(this.opened){if(t&&"click"===t.type&&(e=n.target(t),i=this.renderer.options.dataAttributes.close,!e.hasAttribute(i)))return;this.trigger("willclose"),this._removeEvents(),this.renderer.close(),this.options.retainScrollPosition&&this._restoreScrollPosition(),this.opened=!1,this.trigger("close")}},d.render=function(){this.renderer.render()},d.appendContent=function(t,e){this.renderer.appendContent(t,e)},d.removeContent=function(t){this.renderer.removeContent(t)},d.destroy=function(){for(var t in this._removeEvents(),this.renderer.destroy(),this)this.hasOwnProperty(t)&&(this[t]=null)},d.addKeyToClose=function(t){-1===this._keysToClose.indexOf(t)&&(this._keysToClose.push(t),this._bindKeyToClose(t))},d.removeKeyToClose=function(t){var e=this._keysToClose.indexOf(t);-1!==e&&this._keysToClose.splice(e,1),this._releaseKeyToClose(t)},d._bindKeyToClose=function(t){-1===this._attachedKeysToClose.indexOf(t)&&(o.onUp(t,this.close),this._attachedKeysToClose.push(t))},d._releaseKeyToClose=function(t){var e=this._attachedKeysToClose.indexOf(t);-1!==e&&(o.offUp(t,this.close),this._attachedKeysToClose.splice(e,1))},d._removeEvents=function(){this.renderer.modalElement&&n.removeEventListener(this.renderer.modalElement,"click",this.close),this._keysToClose.forEach(this._releaseKeyToClose,this)},d._attachEvents=function(){this.renderer.modalElement&&n.addEventListener(this.renderer.modalElement,"click",this.close),this._keysToClose.forEach(this._bindKeyToClose,this)},d._restoreScrollPosition=function(){window.scrollTo(this._scrollX||0,this._scrollY||0)},d._saveScrollPosition=function(){this._scrollX=r.getScrollX(),this._scrollY=r.getScrollY()},e.exports=h},{"./Renderer":176,"@marcom/ac-dom-events/addEventListener":73,"@marcom/ac-dom-events/removeEventListener":77,"@marcom/ac-dom-events/target":81,"@marcom/ac-dom-metrics/getScrollX":85,"@marcom/ac-dom-metrics/getScrollY":86,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-keyboard":162,"@marcom/ac-keyboard/keyMap":164,"@marcom/ac-object/create":185,"@marcom/ac-object/defaults":186}],176:[function(t,e,i){"use strict";var n={add:t("@marcom/ac-classlist/add"),remove:t("@marcom/ac-classlist/remove")},r={defaults:t("@marcom/ac-object/defaults")},s={remove:t("@marcom/ac-dom-nodes/remove"),isElement:t("@marcom/ac-dom-nodes/isElement")},o={modalElement:null,contentElement:null,closeButton:null,classNames:t("./classNames"),dataAttributes:t("./dataAttributes")},a=function(t){t=t||{},this.options=r.defaults(o,t),this.options.classNames=r.defaults(o.classNames,t.classNames),this.options.dataAttributes=r.defaults(o.dataAttributes,t.dataAttributes),this.modalElement=this.options.modalElement,this.contentElement=this.options.contentElement,this.closeButton=this.options.closeButton},c=a.prototype;c.render=function(){return s.isElement(this.modalElement)||(this.modalElement=this.renderModalElement(this.options.classNames.modalElement)),s.isElement(this.contentElement)||(this.contentElement=this.renderContentElement(this.options.classNames.contentElement)),!1!==this.closeButton&&(s.isElement(this.closeButton)||(this.closeButton=this.renderCloseButton(this.options.classNames.closeButton)),this.modalElement.appendChild(this.closeButton)),this.modalElement.appendChild(this.contentElement),document.body.appendChild(this.modalElement),this.modalElement},c.renderCloseButton=function(t){var e;return t=t||this.options.classNames.closeButton,(e=this._renderElement("button",t)).setAttribute(this.options.dataAttributes.close,""),e},c.renderModalElement=function(t){return t=t||this.options.classNames.modalElement,this._renderElement("div",t)},c.renderContentElement=function(t){return t=t||this.options.classNames.contentElement,this._renderElement("div",t)},c.appendContent=function(t,e){s.isElement(t)&&(void 0===arguments[1]?this.contentElement.appendChild(t):s.isElement(e)&&e.appendChild(t))},c.removeContent=function(t){t?this.modalElement.contains(t)&&s.remove(t):this._emptyContent()},c.open=function(){var t=[document.documentElement].concat(this.options.classNames.documentElement),e=[this.modalElement].concat(this.options.classNames.modalOpen);n.add.apply(null,t),n.add.apply(null,e)},c.close=function(){var t=[document.documentElement].concat(this.options.classNames.documentElement),e=[this.modalElement].concat(this.options.classNames.modalOpen);n.remove.apply(null,t),n.remove.apply(null,e)},c.destroy=function(){var t=[document.documentElement].concat(this.options.classNames.documentElement);for(var e in this.modalElement&&document.body.contains(this.modalElement)&&(this.close(),document.body.removeChild(this.modalElement)),n.remove.apply(null,t),this)this.hasOwnProperty(e)&&(this[e]=null)},c._renderElement=function(t,e){var i=document.createElement(t),r=[i];return e&&(r=r.concat(e)),n.add.apply(null,r),i},c._emptyContent=function(){this.contentElement.innerHTML=""},e.exports=a},{"./classNames":177,"./dataAttributes":178,"@marcom/ac-classlist/add":56,"@marcom/ac-classlist/remove":64,"@marcom/ac-dom-nodes/isElement":96,"@marcom/ac-dom-nodes/remove":98,"@marcom/ac-object/defaults":186}],177:[function(t,e,i){"use strict";e.exports={modalElement:"modal",modalOpen:"modal-open",documentElement:"has-modal",contentElement:"modal-content",closeButton:"modal-close"}},{}],178:[function(t,e,i){"use strict";e.exports={close:"data-modal-close"}},{}],179:[function(t,e,i){"use strict";e.exports={Modal:t("./ac-modal/Modal"),createStandardModal:t("./ac-modal/factory/createStandardModal"),createFullViewportModal:t("./ac-modal/factory/createFullViewportModal")}},{"./ac-modal/Modal":180,"./ac-modal/factory/createFullViewportModal":181,"./ac-modal/factory/createStandardModal":182}],180:[function(t,e,i){"use strict";var n=t("@marcom/ac-modal-basic").Modal,r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=t("@marcom/ac-accessibility/CircularTab");function o(t){r.call(this),this.options=t||{},this._modal=new n(t,this.options.renderer),this.opened=!1,this._render(),this.closeButton=this._modal.renderer.closeButton,this.modalElement=this._modal.renderer.modalElement,this.contentElement=this._modal.renderer.contentElement,this.modalElement.setAttribute("role","dialog"),this.modalElement.setAttribute("aria-label","Modal"),this.modalElement.setAttribute("aria-modal","true"),this.modalElement.setAttribute("tabindex","-1"),this.closeButton.setAttribute("aria-label","Close"),this._circularTab=new s(this.modalElement),this._onWillOpen=this._onWillOpen.bind(this),this._onOpen=this._onOpen.bind(this),this._onWillClose=this._onWillClose.bind(this),this._onClose=this._onClose.bind(this),this._bindEvents()}var a=o.prototype=Object.create(r.prototype);a.open=function(){this._modal.open(),this.opened=this._modal.opened},a.close=function(){this._modal.close()},a.appendContent=function(t){this._modal.appendContent(t)},a.removeContent=function(t){this._modal.removeContent(t)},a.destroy=function(){for(var t in this._releaseEvents(),this._modal.destroy(),this._removeModalFocus(),this._circularTab.destroy(),this._focusObj=null,this)this.hasOwnProperty(t)&&(this[t]=null)},a.addKeyToClose=function(t){this._modal.addKeyToClose(t)},a.removeKeyToClose=function(t){this._modal.removeKeyToClose(t)},a._render=function(){this._modal.render(),this._modal.renderer.modalElement.setAttribute("aria-hidden","true")},a._bindEvents=function(){this._modal.on("willopen",this._onWillOpen),this._modal.on("open",this._onOpen),this._modal.on("willclose",this._onWillClose),this._modal.on("close",this._onClose)},a._releaseEvents=function(){this._modal.off("willopen",this._onWillOpen),this._modal.off("open",this._onOpen),this._modal.off("willclose",this._onWillClose),this._modal.off("close",this._onClose)},a._onWillOpen=function(){this.trigger("willopen")},a._onOpen=function(){this.opened=this._modal.opened,this._giveModalFocus(),this.trigger("open")},a._onWillClose=function(){this.trigger("willclose"),this._removeModalFocus()},a._onClose=function(){this.opened=this._modal.opened,this.trigger("close")},a._giveModalFocus=function(){this.modalElement.removeAttribute("aria-hidden"),this._activeElement=document.activeElement,this._circularTab.start(!0),setTimeout(function(){this.modalElement.focus()}.bind(this),300)},a._removeModalFocus=function(){this._circularTab.stop(),this.modalElement.setAttribute("aria-hidden","true"),this._activeElement&&(this._activeElement.focus(),this._activeElement=null)},e.exports=o},{"@marcom/ac-accessibility/CircularTab":26,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-modal-basic":174}],181:[function(t,e,i){"use strict";var n=t("../Modal"),r=t("@marcom/ac-modal-basic").classNames,s={retainScrollPosition:!0,renderer:{classNames:{documentElement:[r.documentElement].concat("has-modal-full-viewport"),modalElement:[r.modalElement].concat("modal-full-viewport")}}};e.exports=function(t,e){var i=new n(s),r=e||{};return t&&i.appendContent(t),r.removeContainerPadding&&i.modalElement.classList.add("remove-container-padding"),i}},{"../Modal":180,"@marcom/ac-modal-basic":174}],182:[function(t,e,i){"use strict";var n=t("../Modal"),r=t("@marcom/ac-modal-basic").classNames,s=t("@marcom/ac-modal-basic").dataAttributes,o={add:t("@marcom/ac-classlist/add")},a={renderer:{classNames:{documentElement:[r.documentElement].concat("has-modal-standard"),modalElement:[r.modalElement].concat("modal-standard")}}};e.exports=function(t){var e=new n(a);t&&e.appendContent(t);var i=document.createElement("div"),r=document.createElement("div"),c=document.createElement("div"),l=document.createElement("div");return o.add(i,"content-table"),o.add(r,"content-cell"),o.add(c,"content-wrapper"),o.add(l,"content-padding","large-8","medium-10"),e.modalElement.setAttribute(s.close,""),c.setAttribute(s.close,""),r.setAttribute(s.close,""),i.appendChild(r),r.appendChild(c),c.appendChild(l),e.modalElement.appendChild(i),l.appendChild(e.contentElement),l.appendChild(e.closeButton),e}},{"../Modal":180,"@marcom/ac-classlist/add":56,"@marcom/ac-modal-basic":174}],183:[function(t,e,i){"use strict";e.exports={clone:t("./clone"),create:t("./create"),defaults:t("./defaults"),extend:t("./extend"),getPrototypeOf:t("./getPrototypeOf"),isDate:t("./isDate"),isEmpty:t("./isEmpty"),isRegExp:t("./isRegExp"),toQueryParameters:t("./toQueryParameters")}},{"./clone":184,"./create":185,"./defaults":186,"./extend":187,"./getPrototypeOf":188,"./isDate":189,"./isEmpty":190,"./isRegExp":191,"./toQueryParameters":192}],184:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/isArray");var n=t("./extend"),r=Object.prototype.hasOwnProperty,s=function(t,e){var i;for(i in e)r.call(e,i)&&(null===e[i]?t[i]=null:"object"==typeof e[i]?(t[i]=Array.isArray(e[i])?[]:{},s(t[i],e[i])):t[i]=e[i]);return t};e.exports=function(t,e){return e?s({},t):n({},t)}},{"./extend":187,"@marcom/ac-polyfills/Array/isArray":194}],185:[function(t,e,i){"use strict";var n=function(){};e.exports=function(t){if(arguments.length>1)throw new Error("Second argument not supported");if(null===t||"object"!=typeof t)throw new TypeError("Object prototype may only be an Object.");return"function"==typeof Object.create?Object.create(t):(n.prototype=t,new n)}},{}],186:[function(t,e,i){"use strict";var n=t("./extend");e.exports=function(t,e){if("object"!=typeof t)throw new TypeError("defaults: must provide a defaults object");if("object"!=typeof(e=e||{}))throw new TypeError("defaults: options must be a typeof object");return n({},t,e)}},{"./extend":187}],187:[function(t,e,i){"use strict";t("@marcom/ac-polyfills/Array/prototype.forEach");var n=Object.prototype.hasOwnProperty;e.exports=function(){var t,e;return t=arguments.length<2?[{},arguments[0]]:[].slice.call(arguments),e=t.shift(),t.forEach((function(t){if(null!=t)for(var i in t)n.call(t,i)&&(e[i]=t[i])})),e}},{"@marcom/ac-polyfills/Array/prototype.forEach":197}],188:[function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(t){if(Object.getPrototypeOf)return Object.getPrototypeOf(t);if("object"!=typeof t)throw new Error("Requested prototype of a value that is not an object.");if("object"==typeof this.__proto__)return t.__proto__;var e,i=t.constructor;if(n.call(t,"constructor")){if(e=i,!delete t.constructor)return null;i=t.constructor,t.constructor=e}return i?i.prototype:null}},{}],189:[function(t,e,i){"use strict";e.exports=function(t){return"[object Date]"===Object.prototype.toString.call(t)}},{}],190:[function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(t){var e;if("object"!=typeof t)throw new TypeError("ac-base.Object.isEmpty : Invalid parameter - expected object");for(e in t)if(n.call(t,e))return!1;return!0}},{}],191:[function(t,e,i){"use strict";e.exports=function(t){return!!window.RegExp&&t instanceof RegExp}},{}],192:[function(t,e,i){"use strict";var n=t("@marcom/ac-url/joinSearchParams");e.exports=function(t){if("object"!=typeof t)throw new TypeError("toQueryParameters error: argument is not an object");return n(t,!1)}},{"@marcom/ac-url/joinSearchParams":301}],193:[function(t,e,i){"use strict";t("./Array/isArray"),t("./Array/prototype.every"),t("./Array/prototype.filter"),t("./Array/prototype.forEach"),t("./Array/prototype.indexOf"),t("./Array/prototype.lastIndexOf"),t("./Array/prototype.map"),t("./Array/prototype.reduce"),t("./Array/prototype.reduceRight"),t("./Array/prototype.slice"),t("./Array/prototype.some")},{"./Array/isArray":194,"./Array/prototype.every":195,"./Array/prototype.filter":196,"./Array/prototype.forEach":197,"./Array/prototype.indexOf":198,"./Array/prototype.lastIndexOf":199,"./Array/prototype.map":200,"./Array/prototype.reduce":201,"./Array/prototype.reduceRight":202,"./Array/prototype.slice":203,"./Array/prototype.some":204}],194:[function(t,e,i){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)})},{}],195:[function(t,e,i){Array.prototype.every||(Array.prototype.every=function(t,e){var i,n=Object(this),r=n.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(i=0;i<r;i+=1)if(i in n&&!t.call(e,n[i],i,n))return!1;return!0})},{}],196:[function(t,e,i){Array.prototype.filter||(Array.prototype.filter=function(t,e){var i,n=Object(this),r=n.length>>>0,s=[];if("function"!=typeof t)throw new TypeError(t+" is not a function");for(i=0;i<r;i+=1)i in n&&t.call(e,n[i],i,n)&&s.push(n[i]);return s})},{}],197:[function(t,e,i){Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var i,n,r=Object(this);if("function"!=typeof t)throw new TypeError("No function object passed to forEach.");for(i=0;i<this.length;i+=1)n=r[i],t.call(e,n,i,r)})},{}],198:[function(t,e,i){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i=e||0,n=0;if(i<0&&(i=this.length+e-1)<0)throw"Wrapped past beginning of array while looking up a negative start index.";for(n=0;n<this.length;n++)if(this[n]===t)return n;return-1})},{}],199:[function(t,e,i){Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t,e){var i,n=Object(this),r=n.length>>>0;if(e=parseInt(e,10),r<=0)return-1;for(i=(i="number"==typeof e?Math.min(r-1,e):r-1)>=0?i:r-Math.abs(i);i>=0;i-=1)if(i in n&&t===n[i])return i;return-1})},{}],200:[function(t,e,i){Array.prototype.map||(Array.prototype.map=function(t,e){var i,n=Object(this),r=n.length>>>0,s=new Array(r);if("function"!=typeof t)throw new TypeError(t+" is not a function");for(i=0;i<r;i+=1)i in n&&(s[i]=t.call(e,n[i],i,n));return s})},{}],201:[function(t,e,i){Array.prototype.reduce||(Array.prototype.reduce=function(t,e){var i,n=Object(this),r=n.length>>>0,s=0;if("function"!=typeof t)throw new TypeError(t+" is not a function");if(void 0===e){if(!r)throw new TypeError("Reduce of empty array with no initial value");i=n[0],s=1}else i=e;for(;s<r;)s in n&&(i=t.call(void 0,i,n[s],s,n),s+=1);return i})},{}],202:[function(t,e,i){Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t,e){var i,n=Object(this),r=n.length>>>0,s=r-1;if("function"!=typeof t)throw new TypeError(t+" is not a function");if(void 0===e){if(!r)throw new TypeError("Reduce of empty array with no initial value");i=n[r-1],s=r-2}else i=e;for(;s>=0;)s in n&&(i=t.call(void 0,i,n[s],s,n),s-=1);return i})},{}],203:[function(t,e,i){!function(){"use strict";var t=Array.prototype.slice;try{t.call(document.documentElement)}catch(e){Array.prototype.slice=function(e,i){if(i=void 0!==i?i:this.length,"[object Array]"===Object.prototype.toString.call(this))return t.call(this,e,i);var n,r,s=[],o=this.length,a=e||0,c=i||o;if(i<0&&(c=o+i),(r=c-(a=a>=0?a:o+a))>0)if(s=new Array(r),this.charAt)for(n=0;n<r;n++)s[n]=this.charAt(a+n);else for(n=0;n<r;n++)s[n]=this[a+n];return s}}}()},{}],204:[function(t,e,i){Array.prototype.some||(Array.prototype.some=function(t,e){var i,n=Object(this),r=n.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(i=0;i<r;i+=1)if(i in n&&!0===t.call(e,n[i],i,n))return!0;return!1})},{}],205:[function(t,e,i){if(document.createEvent)try{new window.CustomEvent("click")}catch(t){window.CustomEvent=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}return t.prototype=window.Event.prototype,t}()}},{}],206:[function(t,e,i){"use strict";t("./Date/now"),t("./Date/prototype.toISOString"),t("./Date/prototype.toJSON")},{"./Date/now":207,"./Date/prototype.toISOString":208,"./Date/prototype.toJSON":209}],207:[function(t,e,i){Date.now||(Date.now=function(){return(new Date).getTime()})},{}],208:[function(t,e,i){Date.prototype.toISOString||(Date.prototype.toISOString=function(){if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var t,e,i={year:this.getUTCFullYear(),month:this.getUTCMonth()+1,day:this.getUTCDate(),hours:this.getUTCHours(),minutes:this.getUTCMinutes(),seconds:this.getUTCSeconds(),mseconds:(this.getUTCMilliseconds()/1e3).toFixed(3).substr(2,3)};for(t in i)i.hasOwnProperty(t)&&"year"!==t&&"mseconds"!==t&&(i[t]=1===String(i[t]).length?"0"+String(i[t]):String(i[t]));return(i.year<0||i.year>9999)&&(e=i.year<0?"-":"+",i.year=e+String(Math.abs(i.year/1e6)).substr(2,6)),i.year+"-"+i.month+"-"+i.day+"T"+i.hours+":"+i.minutes+":"+i.seconds+"."+i.mseconds+"Z"})},{}],209:[function(t,e,i){Date.prototype.toJSON||(Date.prototype.toJSON=function(t){var e,i=Object(this),n=function(t){var e=typeof t;return!![null,"undefined","boolean","string","number"].some((function(t){return t===e}))};if("number"==typeof(e=function(t){var e;if(n(t))return t;if((e="function"==typeof t.valueOf?t.valueOf():"function"==typeof t.toString?t.toString():null)&&n(e))return e;throw new TypeError(t+" cannot be converted to a primitive")}(i))&&!isFinite(e))return null;if("function"!=typeof i.toISOString)throw new TypeError("toISOString is not callable");return i.toISOString.call(i)})},{}],210:[function(t,e,i){"use strict";t("./Element/prototype.classList")},{"./Element/prototype.classList":211}],211:[function(t,e,i){"document"in self&&("classList"in document.createElement("_")?function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var i,n=arguments.length;for(i=0;i<n;i++)t=arguments[i],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:i.call(this,t)}}t=null}():function(t){"use strict";if("Element"in t){var e="classList",i=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},c=function(t){for(var e=r.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):[],n=0,s=i.length;n<s;n++)this.push(i[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c.prototype=[],u=function(){return new c(this)};if(o.prototype=Error.prototype,l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==a(this,t+="")},l.add=function(){var t,e=arguments,i=0,n=e.length,r=!1;do{t=e[i]+"",-1===a(this,t)&&(this.push(t),r=!0)}while(++i<n);r&&this._updateClassName()},l.remove=function(){var t,e,i=arguments,n=0,r=i.length,s=!1;do{for(t=i[n]+"",e=a(this,t);-1!==e;)this.splice(e,1),s=!0,e=a(this,t)}while(++n<r);s&&this._updateClassName()},l.toggle=function(t,e){t+="";var i=this.contains(t),n=i?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!i},l.toString=function(){return this.join(" ")},n.defineProperty){var h={get:u,enumerable:!0,configurable:!0};try{n.defineProperty(i,e,h)}catch(t){-2146823252===t.number&&(h.enumerable=!1,n.defineProperty(i,e,h))}}else n.prototype.__defineGetter__&&i.__defineGetter__(e,u)}}(self))},{}],212:[function(t,e,i){"use strict";t("./Function/prototype.bind")},{"./Function/prototype.bind":213}],213:[function(t,e,i){Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),i=this,n=function(){},r=function(){return i.apply(this instanceof n&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,r.prototype=new n,r})},{}],214:[function(require,module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return t<10?"0"+t:t}var cx,escapable,gap,indent,meta,rep;function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var i,n,r,s,o,a=gap,c=e[t];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(t)),"function"==typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(c)){for(s=c.length,i=0;i<s;i+=1)o[i]=str(i,c)||"null";return r=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+a+"]":"["+o.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(s=rep.length,i=0;i<s;i+=1)"string"==typeof rep[i]&&(r=str(n=rep[i],c))&&o.push(quote(n)+(gap?": ":":")+r);else for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(r=str(n,c))&&o.push(quote(n)+(gap?": ":":")+r);return r=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+a+"}":"{"+o.join(",")+"}",gap=a,r}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),"function"!=typeof JSON.stringify&&(escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,i){var n;if(gap="",indent="","number"==typeof i)for(n=0;n<i;n+=1)indent+=" ";else"string"==typeof i&&(indent=i);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(text,reviver){var j;function walk(t,e){var i,n,r=t[e];if(r&&"object"==typeof r)for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(void 0!==(n=walk(r,i))?r[i]=n:delete r[i]);return reviver.call(t,e,r)}if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},{}],215:[function(t,e,i){"use strict";t("./Object/assign"),t("./Object/create"),t("./Object/is"),t("./Object/keys")},{"./Object/assign":216,"./Object/create":217,"./Object/is":218,"./Object/keys":219}],216:[function(t,e,i){var n=navigator.userAgent.toLowerCase(),r=(n.indexOf("msie")>-1&&parseInt(n.split("msie")[1]))<9;Object.assign||(Object.keys||(Object.keys=function(t){var e,i=[];if(!t||"function"!=typeof t.hasOwnProperty)throw"Object.keys called on non-object.";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}),!r&&Object.defineProperty?Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){"use strict";if(null==t)throw new TypeError("Cannot convert first argument to object");for(var i,n=Object(t),r=!1,s=1;s<arguments.length;s++){var o=arguments[s];if(null!=o){for(var a=Object.keys(Object(o)),c=0,l=a.length;c<l;c++){var u=a[c];try{var h=Object.getOwnPropertyDescriptor(o,u);void 0!==h&&h.enumerable&&(n[u]=o[u])}catch(t){r||(r=!0,i=t)}}if(r)throw i}}return n}}):Object.assign=function(){for(var t=1;t<arguments.length;t++)for(var e in arguments[t])arguments[t].hasOwnProperty(e)&&(arguments[0][e]=arguments[t][e]);return arguments[0]})},{}],217:[function(t,e,i){if(!Object.create){var n=function(){};Object.create=function(t){if(arguments.length>1)throw new Error("Second argument not supported");if(null===t||"object"!=typeof t)throw new TypeError("Object prototype may only be an Object.");return n.prototype=t,new n}}},{}],218:[function(t,e,i){Object.is||(Object.is=function(t,e){return 0===t&&0===e?1/t==1/e:t!=t?e!=e:t===e})},{}],219:[function(t,e,i){Object.keys||(Object.keys=function(t){var e,i=[];if(!t||"function"!=typeof t.hasOwnProperty)throw"Object.keys called on non-object.";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i})},{}],220:[function(t,e,i){e.exports=t("es6-promise").polyfill()},{"es6-promise":448}],221:[function(t,e,i){"use strict";t("./String/prototype.trim")},{"./String/prototype.trim":222}],222:[function(t,e,i){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})},{}],223:[function(t,e,i){window.XMLHttpRequest=window.XMLHttpRequest||function(){var t;try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){t=!1}}return t}},{}],224:[function(t,e,i){"use strict";t("./Array"),t("./console.log"),t("./CustomEvent"),t("./Date"),t("./Element"),t("./Function"),t("./getComputedStyle"),t("./html5shiv"),t("./JSON"),t("./matchMedia"),t("./Object"),t("./Promise"),t("./requestAnimationFrame"),t("./String"),t("./XMLHttpRequest")},{"./Array":193,"./CustomEvent":205,"./Date":206,"./Element":210,"./Function":212,"./JSON":214,"./Object":215,"./Promise":220,"./String":221,"./XMLHttpRequest":223,"./console.log":225,"./getComputedStyle":226,"./html5shiv":227,"./matchMedia":228,"./requestAnimationFrame":229}],225:[function(t,e,i){!function(t){"use strict";for(var e,i,n={},r=function(){},s="memory".split(","),o="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=s.pop();)t[e]=t[e]||n;for(;i=o.pop();)t[i]=t[i]||r}(this.console=this.console||{})},{}],226:[function(t,e,i){if(!window.getComputedStyle){function n(t,e,i){t.document;var r,s=t.currentStyle[e].match(/(-?[\d\.]+)(%|cm|em|in|mm|pc|pt|)/)||[0,0,""],o=s[1],a=s[2];return i=i?/%|em/.test(a)&&t.parentElement?n(t.parentElement,"fontSize",null):16:i,r="fontSize"==e?i:/width/i.test(e)?t.clientWidth:t.clientHeight,"%"==a?o/100*r:"cm"==a?.3937*o*96:"em"==a?o*i:"in"==a?96*o:"mm"==a?.3937*o*96/10:"pc"==a?12*o*96/72:"pt"==a?96*o/72:o}function r(t,e){var i="border"==e?"Width":"",n=e+"Top"+i,r=e+"Right"+i,s=e+"Bottom"+i,o=e+"Left"+i;t[e]=(t[n]==t[r]&&t[n]==t[s]&&t[n]==t[o]?[t[n]]:t[n]==t[s]&&t[o]==t[r]?[t[n],t[r]]:t[o]==t[r]?[t[n],t[r],t[s]]:[t[n],t[r],t[s],t[o]]).join(" ")}function s(t){var e,i=this,s=t.currentStyle,o=n(t,"fontSize"),a=function(t){return"-"+t.toLowerCase()};for(e in s)if(Array.prototype.push.call(i,"styleFloat"==e?"float":e.replace(/[A-Z]/,a)),"width"==e)i[e]=t.offsetWidth+"px";else if("height"==e)i[e]=t.offsetHeight+"px";else if("styleFloat"==e)i.float=s[e],i.cssFloat=s[e];else if(/margin.|padding.|border.+W/.test(e)&&"auto"!=i[e])i[e]=Math.round(n(t,e,o))+"px";else if(/^outline/.test(e))try{i[e]=s[e]}catch(t){i.outlineColor=s.color,i.outlineStyle=i.outlineStyle||"none",i.outlineWidth=i.outlineWidth||"0px",i.outline=[i.outlineColor,i.outlineWidth,i.outlineStyle].join(" ")}else i[e]=s[e];r(i,"margin"),r(i,"padding"),r(i,"border"),i.fontSize=Math.round(o)+"px"}s.prototype={constructor:s,getPropertyPriority:function(){throw new Error("NotSupportedError: DOM Exception 9")},getPropertyValue:function(t){return this[t.replace(/-\w/g,(function(t){return t[1].toUpperCase()}))]},item:function(t){return this[t]},removeProperty:function(){throw new Error("NoModificationAllowedError: DOM Exception 7")},setProperty:function(){throw new Error("NoModificationAllowedError: DOM Exception 7")},getPropertyCSSValue:function(){throw new Error("NotSupportedError: DOM Exception 9")}},window.getComputedStyle=function(t){return new s(t)}}},{}],227:[function(t,e,i){t("html5shiv/src/html5shiv")},{"html5shiv/src/html5shiv":478}],228:[function(t,e,i){var n,r,s,o,a,c;window.matchMedia=window.matchMedia||(n=document,s=n.documentElement,o=s.firstElementChild||s.firstChild,a=n.createElement("body"),(c=n.createElement("div")).id="mq-test-1",c.style.cssText="position:absolute;top:-100em",a.style.background="none",a.appendChild(c),function(t){return c.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width:42px; }</style>',s.insertBefore(a,o),r=42===c.offsetWidth,s.removeChild(a),{matches:r,media:t}})},{}],229:[function(t,e,i){!function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,i){var n=Date.now(),r=Math.max(0,16-(n-t)),s=window.setTimeout((function(){e(n+r)}),r);return t=n+r,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}()},{}],230:[function(t,e,i){"use strict";var n=t("./utils/eventTypeAvailable"),r=t("./shared/camelCasedEventTypes"),s=t("./shared/windowFallbackEventTypes"),o=t("./shared/prefixHelper"),a={};e.exports=function t(e,i){var c,l,u;if(i=i||"div",e=e.toLowerCase(),i in a||(a[i]={}),e in(l=a[i]))return l[e];if(n(e,i))return l[e]=e;if(e in r)for(u=0;u<r[e].length;u++)if(c=r[e][u],n(c.toLowerCase(),i))return l[e]=c;for(u=0;u<o.evt.length;u++)if(c=o.evt[u]+e,n(c,i))return o.reduce(u),l[e]=c;return"window"!==i&&s.indexOf(e)?l[e]=t(e,"window"):l[e]=!1}},{"./shared/camelCasedEventTypes":233,"./shared/prefixHelper":235,"./shared/windowFallbackEventTypes":238,"./utils/eventTypeAvailable":239}],231:[function(t,e,i){"use strict";var n=t("./shared/stylePropertyCache"),r=t("./shared/getStyleTestElement"),s=t("./utils/toCSS"),o=t("./utils/toDOM"),a=t("./shared/prefixHelper"),c=function(t,e){var i=s(t),r=!1!==e&&s(e);return n[t]=n[e]=n[i]=n[r]={dom:e,css:r},e};e.exports=function(t){var e,i,s,l;if((t+="")in n)return n[t].dom;for(s=r(),i=(t=o(t)).charAt(0).toUpperCase()+t.substring(1),e="filter"===t?["WebkitFilter","filter"]:(t+" "+a.dom.join(i+" ")+i).split(" "),l=0;l<e.length;l++)if(void 0!==s.style[e[l]])return 0!==l&&a.reduce(l-1),c(t,e[l]);return c(t,!1)}},{"./shared/getStyleTestElement":234,"./shared/prefixHelper":235,"./shared/stylePropertyCache":236,"./utils/toCSS":240,"./utils/toDOM":241}],232:[function(t,e,i){"use strict";var n=t("./getStyleProperty"),r=t("./shared/styleValueAvailable"),s=t("./shared/prefixHelper"),o=t("./shared/stylePropertyCache"),a={},c=/(\([^\)]+\))/gi,l=/([^ ,;\(]+(\([^\)]+\))?)/gi;e.exports=function(t,e){var i;return e+="",!!(t=n(t))&&(r(t,e)?e:(i=o[t].css,""!==(e=(e=e.replace(l,(function(e){var n,o,l,u;if("#"===e[0]||!isNaN(e[0]))return e;if(o=e.replace(c,""),(l=i+":"+o)in a)return!1===a[l]?"":e.replace(o,a[l]);for(n=s.css.map((function(t){return t+e})),n=[e].concat(n),u=0;u<n.length;u++)if(r(t,n[u]))return 0!==u&&s.reduce(u-1),a[l]=n[u].replace(c,""),n[u];return a[l]=!1,""}))).trim())&&e))}},{"./getStyleProperty":231,"./shared/prefixHelper":235,"./shared/stylePropertyCache":236,"./shared/styleValueAvailable":237}],233:[function(t,e,i){"use strict";e.exports={transitionend:["webkitTransitionEnd","MSTransitionEnd"],animationstart:["webkitAnimationStart","MSAnimationStart"],animationend:["webkitAnimationEnd","MSAnimationEnd"],animationiteration:["webkitAnimationIteration","MSAnimationIteration"],fullscreenchange:["MSFullscreenChange"],fullscreenerror:["MSFullscreenError"]}},{}],234:[function(t,e,i){"use strict";var n;e.exports=function(){return n?(n.style.cssText="",n.removeAttribute("style")):n=document.createElement("_"),n},e.exports.resetElement=function(){n=null}},{}],235:[function(t,e,i){"use strict";var n=["-webkit-","-moz-","-ms-"],r=["Webkit","Moz","ms"],s=["webkit","moz","ms"],o=function(){this.initialize()},a=o.prototype;a.initialize=function(){this.reduced=!1,this.css=n,this.dom=r,this.evt=s},a.reduce=function(t){this.reduced||(this.reduced=!0,this.css=[this.css[t]],this.dom=[this.dom[t]],this.evt=[this.evt[t]])},e.exports=new o},{}],236:[function(t,e,i){"use strict";e.exports={}},{}],237:[function(t,e,i){"use strict";var n,r,s=t("./stylePropertyCache"),o=t("./getStyleTestElement"),a=!1;e.exports=function(t,e){var i,c;if(function(){var t;if(!a){a=!0,n="CSS"in window&&"supports"in window.CSS,r=!1,t=o();try{t.style.width="invalid"}catch(t){r=!0}}}(),n)return t=s[t].css,CSS.supports(t,e);if(i=(c=o()).style[t],r)try{c.style[t]=e}catch(t){return!1}else c.style[t]=e;return c.style[t]&&c.style[t]!==i},e.exports.resetFlags=function(){a=!1}},{"./getStyleTestElement":234,"./stylePropertyCache":236}],238:[function(t,e,i){"use strict";e.exports=["transitionend","animationstart","animationend","animationiteration"]},{}],239:[function(t,e,i){"use strict";var n={window:window,document:document};e.exports=function(t,e){var i;return t="on"+t,e in n||(n[e]=document.createElement(e)),t in(i=n[e])||"setAttribute"in i&&(i.setAttribute(t,"return;"),"function"==typeof i[t])}},{}],240:[function(t,e,i){"use strict";var n=/^(webkit|moz|ms)/gi;e.exports=function(t){return"cssfloat"===t.toLowerCase()?"float":(n.test(t)&&(t="-"+t),t.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase())}},{}],241:[function(t,e,i){"use strict";var n=/-([a-z])/g;e.exports=function(t){return"float"===t.toLowerCase()?"cssFloat":("Ms"===(t=t.replace(n,(function(t,e){return e.toUpperCase()}))).substr(0,2)&&(t="ms"+t.substring(2)),t)}},{}],242:[function(t,e,i){"use strict";var n=t("@marcom/ac-shared-instance").SharedInstance,r=function(){this._currentID=0};r.prototype.getNewID=function(){return this._currentID++,"raf:"+this._currentID},e.exports=n.share("ac-raf-emitter-id-generator:sharedRAFEmitterIDGeneratorInstance","1.0.3",r)},{"@marcom/ac-shared-instance":261}],243:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=t("@marcom/ac-raf-executor/sharedRAFExecutorInstance"),o=t("@marcom/ac-raf-emitter-id-generator/sharedRAFEmitterIDGeneratorInstance");function a(t){t=t||{},r.call(this),this.id=o.getNewID(),this.executor=t.executor||s,this._reset(),this._willRun=!1,this._didDestroy=!1}(n=a.prototype=Object.create(r.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},n.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},n.destroy=function(){var t=this.willRun();return this.cancel(),this.executor=null,r.prototype.destroy.call(this),this._didDestroy=!0,t},n.willRun=function(){return this._willRun},n.isRunning=function(){return this._isRunning},n._subscribe=function(){return this.executor.subscribe(this)},n._unsubscribe=function(){return this.executor.unsubscribe(this)},n._onAnimationFrameStart=function(t){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",t))},n._onAnimationFrameEnd=function(t){this._willRun||(this.trigger("stop",t),this._reset())},n._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},e.exports=a},{"@marcom/ac-event-emitter-micro":122,"@marcom/ac-raf-emitter-id-generator/sharedRAFEmitterIDGeneratorInstance":242,"@marcom/ac-raf-executor/sharedRAFExecutorInstance":254}],244:[function(t,e,i){"use strict";var n=t("./SingleCallRAFEmitter"),r=function(t){this.rafEmitter=new n,this.rafEmitter.on(t,this._onRAFExecuted.bind(this)),this.requestAnimationFrame=this.requestAnimationFrame.bind(this),this.cancelAnimationFrame=this.cancelAnimationFrame.bind(this),this._frameCallbacks=[],this._nextFrameCallbacks=[],this._currentFrameID=-1,this._cancelFrameIdx=-1,this._frameCallbackLength=0,this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0},s=r.prototype;s.requestAnimationFrame=function(t){return this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,t),this._nextFrameCallbacksLength+=2,this._currentFrameID},s.cancelAnimationFrame=function(t){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(t),-1!==this._cancelFrameIdx&&(this._nextFrameCallbacks.splice(this._cancelFrameIdx,2),this._nextFrameCallbacksLength-=2,0===this._nextFrameCallbacksLength&&this.rafEmitter.cancel())},s._onRAFExecuted=function(t){for(this._frameCallbacks=this._nextFrameCallbacks,this._frameCallbackLength=this._nextFrameCallbacksLength,this._nextFrameCallbacks=[],this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0;this._frameCallbackIteration<this._frameCallbackLength;this._frameCallbackIteration+=2)this._frameCallbacks[this._frameCallbackIteration+1](t.time,t)},e.exports=r},{"./SingleCallRAFEmitter":246}],245:[function(t,e,i){"use strict";var n=t("./RAFInterface"),r=function(){this.events={}},s=r.prototype;s.requestAnimationFrame=function(t){return this.events[t]||(this.events[t]=new n(t)),this.events[t].requestAnimationFrame},s.cancelAnimationFrame=function(t){return this.events[t]||(this.events[t]=new n(t)),this.events[t].cancelAnimationFrame},e.exports=new r},{"./RAFInterface":244}],246:[function(t,e,i){"use strict";var n=t("./RAFEmitter"),r=function(t){n.call(this,t)};(r.prototype=Object.create(n.prototype))._subscribe=function(){return this.executor.subscribe(this,!0)},e.exports=r},{"./RAFEmitter":243}],247:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.cancelAnimationFrame("draw")},{"./RAFInterfaceController":245}],248:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.cancelAnimationFrame("update")},{"./RAFInterfaceController":245}],249:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.requestAnimationFrame("draw")},{"./RAFInterfaceController":245}],250:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.requestAnimationFrame("update")},{"./RAFInterfaceController":245}],251:[function(t,e,i){Date.now||(Date.now=function(){return(new Date).getTime()})},{}],252:[function(t,e,i){t("../Date/now"),function(){if("performance"in window==0&&(window.performance={}),"now"in window.performance==0){var t=Date.now();performance.timing&&performance.timing.navigationStart&&(t=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-t}}}()},{"../Date/now":251}],253:[function(t,e,i){"use strict";var n;function r(t){t=t||{},this._reset(),this._willRun=!1,this._totalSubscribeCount=-1,this._requestAnimationFrame=window.requestAnimationFrame,this._cancelAnimationFrame=window.cancelAnimationFrame,this._boundOnAnimationFrame=this._onAnimationFrame.bind(this),this._boundOnExternalAnimationFrame=this._onExternalAnimationFrame.bind(this)}t("@marcom/ac-polyfills/performance/now"),(n=r.prototype).subscribe=function(t,e){return this._totalSubscribeCount++,this._nextFrameSubscribers[t.id]||(e?this._nextFrameSubscribersOrder.unshift(t.id):this._nextFrameSubscribersOrder.push(t.id),this._nextFrameSubscribers[t.id]=t,this._nextFrameSubscriberArrayLength++,this._nextFrameSubscriberCount++,this._run()),this._totalSubscribeCount},n.unsubscribe=function(t){return!!this._nextFrameSubscribers[t.id]&&(this._nextFrameSubscribers[t.id]=null,this._nextFrameSubscriberCount--,0===this._nextFrameSubscriberCount&&this._cancel(),!0)},n.trigger=function(t,e){var i;for(i=0;i<this._subscriberArrayLength;i++)null!==this._subscribers[this._subscribersOrder[i]]&&!1===this._subscribers[this._subscribersOrder[i]]._didDestroy&&this._subscribers[this._subscribersOrder[i]].trigger(t,e)},n.destroy=function(){var t=this._cancel();return this._subscribers=null,this._subscribersOrder=null,this._nextFrameSubscribers=null,this._nextFrameSubscribersOrder=null,this._rafData=null,this._boundOnAnimationFrame=null,this._onExternalAnimationFrame=null,t},n.useExternalAnimationFrame=function(t){if("boolean"==typeof t){var e=this._isUsingExternalAnimationFrame;return t&&this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),!this._willRun||t||this._animationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this._isUsingExternalAnimationFrame=t,t?this._boundOnExternalAnimationFrame:e||!1}},n._run=function(){if(!this._willRun)return this._willRun=!0,0===this.lastFrameTime&&(this.lastFrameTime=performance.now()),this._animationFrameActive=!0,this._isUsingExternalAnimationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),!0},n._cancel=function(){var t=!1;return this._animationFrameActive&&(this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),this._animationFrameActive=!1,this._willRun=!1,t=!0),this._isRunning||this._reset(),t},n._onSubscribersAnimationFrameStart=function(t){var e;for(e=0;e<this._subscriberArrayLength;e++)null!==this._subscribers[this._subscribersOrder[e]]&&!1===this._subscribers[this._subscribersOrder[e]]._didDestroy&&this._subscribers[this._subscribersOrder[e]]._onAnimationFrameStart(t)},n._onSubscribersAnimationFrameEnd=function(t){var e;for(e=0;e<this._subscriberArrayLength;e++)null!==this._subscribers[this._subscribersOrder[e]]&&!1===this._subscribers[this._subscribersOrder[e]]._didDestroy&&this._subscribers[this._subscribersOrder[e]]._onAnimationFrameEnd(t)},n._onAnimationFrame=function(t){this._subscribers=this._nextFrameSubscribers,this._subscribersOrder=this._nextFrameSubscribersOrder,this._subscriberArrayLength=this._nextFrameSubscriberArrayLength,this._subscriberCount=this._nextFrameSubscriberCount,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this._isRunning=!0,this._willRun=!1,this._didRequestNextRAF=!1,this._rafData.delta=t-this.lastFrameTime,this.lastFrameTime=t,this._rafData.fps=0,this._rafData.delta>=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=t,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this._onSubscribersAnimationFrameStart(this._rafData),this.trigger("update",this._rafData),this.trigger("external",this._rafData),this.trigger("draw",this._rafData),this._onSubscribersAnimationFrameEnd(this._rafData),this._willRun||this._reset()},n._onExternalAnimationFrame=function(t){this._isUsingExternalAnimationFrame&&this._onAnimationFrame(t)},n._reset=function(){this._rafData={time:0,delta:0,fps:0,naturalFps:0,timeNow:0},this._subscribers={},this._subscribersOrder=[],this._subscriberArrayLength=0,this._subscriberCount=0,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this._didEmitFrameData=!1,this._animationFrame=null,this._animationFrameActive=!1,this._isRunning=!1,this._shouldReset=!1,this.lastFrameTime=0},e.exports=r},{"@marcom/ac-polyfills/performance/now":252}],254:[function(t,e,i){"use strict";var n=t("@marcom/ac-shared-instance").SharedInstance,r=t("./RAFExecutor");e.exports=n.share("ac-raf-executor:sharedRAFExecutorInstance","2.0.1",r)},{"./RAFExecutor":253,"@marcom/ac-shared-instance":261}],255:[function(t,e,i){"use strict";e.exports={Router:t("./ac-router/Router"),History:t("./ac-router/History"),Routes:t("@marcom/ac-routes").Routes,Route:t("@marcom/ac-routes").Route}},{"./ac-router/History":256,"./ac-router/Router":257,"@marcom/ac-routes":258}],256:[function(t,e,i){"use strict";var n=t("@marcom/ac-object").create,r=t("@marcom/ac-dom-events"),s=t("@marcom/ac-event-emitter").EventEmitter;function o(t){t=t||{},this.history=window.history,this.rootStripper=/^\/+|\/+$/g,this.root=t.root||"/",this.root=("/"+this.root+"/").replace(this.rootStripper,"/");var e="boolean"!=typeof t.resolveInitialHash||t.resolveInitialHash;this._pushState="boolean"!=typeof t.pushState||t.pushState,this._hashChange=t.hashChange||!1,this._setUpdateVars(e),t.autoStart&&this.start()}var a=o.prototype=n(s.prototype);a._isRoot=function(t){return("/"+t+"/").replace(this.rootStripper,"/")===this.root},a._isPushStateSupported=function(){return this.history&&this.history.pushState},a._isHashChangeSupported=function(){return"onhashchange"in window},a._setUpdateVars=function(t){if(this._pushState&&this._isPushStateSupported())t&&this._hashChange&&-1!==window.location.href.indexOf("#")&&this.history.pushState({},document.title,window.location.href.replace("#","")),this._hashChange=!1;else{if(t&&this._pushState&&this._hashChange&&window.location.href.indexOf("#")<0){window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname,window.location.origin+=window.location.port?":"+window.location.port:"");var e=window.location.href.substr(window.location.origin.length+this.root.length);if(e.length)return void(window.location=window.location.origin+this.root+"#"+e)}this._hashChange&&!this._isHashChangeSupported()&&(this._interval=50,this._iframe=document.createElement('<iframe src="javascript:0" tabindex="-1" style="display:none;">'),this._iframe=document.body.appendChild(this._iframe).contentWindow,this._iframe.document.open().close()),this._pushState=!1}},a._checkUrl=function(){var t=this._iframe.location.hash.substr(1);0===t.length&&(t="/"),this.fragment()!==t&&(window.location.hash="#"+t,this._ignoreHashChange=!1,this._handleHashChange())},a._handlePopState=function(t){this.trigger("popstate",{fragment:this.fragment()})},a._handleHashChange=function(t){this._ignoreHashChange?this._ignoreHashChange=!1:this.trigger("popstate",{fragment:this.fragment()})},a.canUpdate=function(){return this._pushState||this._hashChange},a.start=function(){return this.started||!this._pushState&&!this._hashChange||(this.started=!0,this._pushState?(this._handlePopState=this._handlePopState.bind(this),r.addEventListener(window,"popstate",this._handlePopState)):this._hashChange&&(this._isHashChangeSupported()?(this._handleHashChange=this._handleHashChange.bind(this),r.addEventListener(window,"hashchange",this._handleHashChange)):(this._iframe.location.hash=this.fragment(),this._checkUrl=this._checkUrl.bind(this),this._checkUrlInterval=setInterval(this._checkUrl,this._interval)))),this.started||!1},a.stop=function(){this.started&&(this.started=!1,this._pushState?r.removeEventListener(window,"popstate",this._handlePopState):this._hashChange&&(this._isHashChangeSupported()?r.removeEventListener(window,"hashchange",this._handleHashChange):this._checkUrlInterval&&(clearInterval(this._checkUrlInterval),this._checkUrlInterval=null)))},a.navigate=function(t,e){if(!this.started||!this.canUpdate())return!1;e=e||{};var i=((this._isRoot(t)?"":this.root)+t).replace(/([^:])(\/\/)/g,"$1/");return this._pushState?this.history.pushState(e,document.title,i):this._hashChange&&(this._ignoreHashChange=!0,window.location.hash="#"+t,this._isHashChangeSupported()||(this._iframe.document.open().close(),this._iframe.location.hash="#"+t)),!0},a.fragment=function(){var t="";return this._pushState?t=window.location.pathname.substr(this.root.length):this._hashChange&&(t=window.location.hash.substr(1)),""===t?"/":t},e.exports=o},{"@marcom/ac-dom-events":75,"@marcom/ac-event-emitter":124,"@marcom/ac-object":183}],257:[function(t,e,i){"use strict";var n=t("@marcom/ac-object").create,r=t("@marcom/ac-dom-emitter").DOMEmitter,s=t("./History"),o=(t("@marcom/ac-routes").Route,t("@marcom/ac-routes").Routes);function a(t){t=t||{},this._intercept=t.intercept||"[data-route]",this._interceptAttribute=t.attribute||"href",this._handleTrigger=this._handleTrigger.bind(this),this.intercept(this._intercept),this.history=t.history||new s({root:t.root,autoStart:t.autoStart,pushState:t.pushState,hashChange:t.hashChange,resolveInitialHash:t.resolveInitialHash}),o.call(this,t.routes),t.autoStart&&(this.history.started||this.history.start(),this.start())}var c=a.prototype=n(o.prototype);c._handleTrigger=function(t){if(this.started){var e=t.target.getAttribute(this._interceptAttribute);e&&(/^(http|https):\/\/+/.exec(e)&&"href"===this._interceptAttribute&&(e=e.substr(e.indexOf(this.history.root)+this.history.root.length)||"/"),this.navigate(e)&&t.preventDefault())}},c._handlePopstate=function(t){this.navigate(t.fragment,!0)},c.start=function(){this.started||(this.started=!0,this.history.start(),this._handlePopstate=this._handlePopstate.bind(this),this.history.on("popstate",this._handlePopstate),this.navigate(this.history.fragment(),!0))},c.stop=function(){this.started&&(this.started=!1,this.history.stop(),this.history.off("popstate",this._handlePopstate))},c.navigate=function(t,e){return this.history.fragment()!==t||e?!(t&&!e&&!this.history.navigate(t))&&(this.match(t),!0):this.history.canUpdate()},c.intercept=function(t,e){new r(e||document.body).on("click",t,this._handleTrigger)},e.exports=a},{"./History":256,"@marcom/ac-dom-emitter":70,"@marcom/ac-object":183,"@marcom/ac-routes":258}],258:[function(t,e,i){"use strict";e.exports={Routes:t("./ac-routes/Routes"),Route:t("./ac-routes/Route")}},{"./ac-routes/Route":259,"./ac-routes/Routes":260}],259:[function(t,e,i){"use strict";function n(t,e,i,n,r){if(this.path=t,this.callback=e,this.context=i,this.greedy=n||!1,this.priority=r||0,"number"!=typeof this.priority)throw new Error("Priority must be a Number.");this.identifierPattern="([a-zA-Z0-9\\-\\_]+)",this.tokensRe=new RegExp(":"+this.identifierPattern,"g"),this.matcher=this._createRouteMatcher(t)}var r=n.prototype;r._createRouteMatcher=function(t){if(t&&t.exec)return{pattern:t};if("/"===t)return{pattern:/^\/$/};if("string"!=typeof t)throw new Error("path must be either a string or regex");var e=this._extractRouteTokens(t),i=t.replace(this.tokensRe,this.identifierPattern);return{pattern:new RegExp(i,"g"),routeTokens:e}},r._extractRouteTokens=function(t){var e=t.replace(this.tokensRe,":"+this.identifierPattern),i=new RegExp(e,"g").exec(t);return i=i&&i.length>1?i.slice(1):null},r.match=function(t){this.matcher.pattern.lastIndex=0;var e=this.matcher.pattern.exec(t);if(e){var i=e.length?e.slice(1):[],n=this.callback;if(n&&"function"==typeof n)return n.apply(this.context||this,i),!0}return!1},e.exports=n},{}],260:[function(t,e,i){"use strict";var n=t("./Route");function r(t){this._routes={},t&&this.addRoutes(t)}var s=r.prototype;s._getIndex=function(t,e,i){if(void 0!==this._routes[t])for(var n=this._routes[t].length;--n>-1;)if(this._routes[t][n].callback===e&&this._routes[t][n].context===i)return n;return-1},s.match=function(t){var e,i;for(e in this._routes)for(i=this._routes[e].length;--i>-1&&(!this._routes[e][i].match(t)||!this._routes[e][i].greedy););},s.add=function(t){if(void 0===this._routes[t.path])this._routes[t.path]=[t];else if(!this.get(t.path,t.callback,t.context)){var e,i=this._routes[t.path].length;if(i>0)for(e=0;e<i;++e)if(this._routes[t.path][e].priority>t.priority)return this._routes[t.path].splice(e,0,t),t;this._routes[t.path].push(t)}return t},s.remove=function(t){var e=this._getIndex(t.path,t.callback,t.context);return e>-1&&(this._routes[t.path].splice(e,1),t)},s.get=function(t,e,i){var n=this._getIndex(t,e,i);return n>-1&&this._routes[t][n]},s.createRoute=function(t,e,i,r,s){var o=new n(t,e,i,r,s);return this.add(o),o},s.addRoutes=function(t){if(!(t instanceof Array))throw new Error("routes must be an Array.");var e,i,n=t.length;for(e=0;e<n;++e)(i=t[e])&&"object"==typeof i&&this.add(i)},s.removeRoutes=function(t){if(!(t instanceof Array))throw new Error("routes must be an Array.");var e,i,n=t.length;for(e=0;e<n;++e)(i=t[e])&&"object"==typeof i&&this.remove(i)},s.getRoutes=function(t){return void 0===this._routes[t]?[]:this._routes[t]},e.exports=r},{"./Route":259}],261:[function(t,e,i){"use strict";e.exports={SharedInstance:t("./ac-shared-instance/SharedInstance")}},{"./ac-shared-instance/SharedInstance":262}],262:[function(t,e,i){"use strict";var n,r=window,s=r.AC,o=(n={},{get:function(t,e){var i=null;return n[t]&&n[t][e]&&(i=n[t][e]),i},set:function(t,e,i){return n[t]||(n[t]={}),n[t][e]="function"==typeof i?new i:i,n[t][e]},share:function(t,e,i){var n=this.get(t,e);return n||(n=this.set(t,e,i)),n},remove:function(t,e){var i=typeof e;if("string"!==i&&"number"!==i)n[t]&&(n[t]=null);else{if(!n[t]||!n[t][e])return;n[t][e]=null}}});s||(s=r.AC={}),s.SharedInstance||(s.SharedInstance=o),e.exports=s.SharedInstance},{}],263:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,r=t("@marcom/ac-dom-events/utils/addEventListener"),s=t("@marcom/ac-dom-events/utils/removeEventListener"),o=t("@marcom/ac-object/create"),a=t("./internal/KeyEvent"),c="keydown",l="keyup";function u(t){this._keysDown={},this._DOMKeyDown=this._DOMKeyDown.bind(this),this._DOMKeyUp=this._DOMKeyUp.bind(this),this._context=t||document,r(this._context,c,this._DOMKeyDown,!0),r(this._context,l,this._DOMKeyUp,!0),n.call(this)}var h=u.prototype=o(n.prototype);h.onDown=function(t,e){return this.on("keydown:"+t,e)},h.onceDown=function(t,e){return this.once("keydown:"+t,e)},h.offDown=function(t,e){return this.off("keydown:"+t,e)},h.onUp=function(t,e){return this.on("keyup:"+t,e)},h.onceUp=function(t,e){return this.once("keyup:"+t,e)},h.offUp=function(t,e){return this.off("keyup:"+t,e)},h.isDown=function(t){return t+="",this._keysDown[t]||!1},h.isUp=function(t){return!this.isDown(t)},h.destroy=function(){return s(this._context,c,this._DOMKeyDown,!0),s(this._context,l,this._DOMKeyUp,!0),this._keysDown=null,this._context=null,n.prototype.destroy.call(this),this},h._DOMKeyDown=function(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyDown(i),this.trigger("keydown:"+i,e)},h._DOMKeyUp=function(t){var e=this._normalizeKeyboardEvent(t),i=e.keyCode+="";this._trackKeyUp(i),this.trigger("keyup:"+i,e)},h._normalizeKeyboardEvent=function(t){return new a(t)},h._trackKeyUp=function(t){this._keysDown[t]&&(this._keysDown[t]=!1)},h._trackKeyDown=function(t){this._keysDown[t]||(this._keysDown[t]=!0)},e.exports=u},{"./internal/KeyEvent":264,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-events/utils/removeEventListener":84,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-object/create":185}],264:[function(t,e,i){"use strict";var n=t("./keyCodeMap.js"),r=["keyLocation","keyIdentifier"];function s(t){var e;for(e in this.originalEvent=t,t)-1===r.indexOf(e)&&"function"!=typeof t[e]&&(this[e]=t[e]);this.keyCode||(this.keyCode=this._getKeyCode()),this.location=void 0!==this.originalEvent.location?this.originalEvent.location:this.originalEvent.keyLocation}s.prototype={preventDefault:function(){if("function"==typeof this.originalEvent.preventDefault)return this.originalEvent.preventDefault();this.originalEvent.returnValue=!1},stopPropagation:function(){return this.originalEvent.stopPropagation()},_getKeyCode:function(){return n[this.code]||-1}},e.exports=s},{"./keyCodeMap.js":265}],265:[function(t,e,i){"use strict";e.exports={Backspace:8,Tab:9,Enter:13,NumpadEnter:13,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Delete:46,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,KeyA:65,KeyB:66,KeyC:67,KeyD:68,KeyE:69,KeyF:70,KeyG:71,KeyH:72,KeyI:73,KeyJ:74,KeyK:75,KeyL:76,KeyM:77,KeyN:78,KeyO:79,KeyP:80,KeyQ:81,KeyR:82,KeyS:83,KeyT:84,KeyU:85,KeyV:86,KeyW:87,KeyX:88,KeyY:89,KeyZ:90,Numpad0:96,Numpad1:97,Numpad2:98,Numpad3:99,Numpad4:100,Numpad5:101,Numpad6:102,Numpad7:103,Numpad8:104,Numpad9:105,NumpadMultiply:106,NumpadAdd:107,NumpadSubtract:109,NumpadDecimal:110,NumpadDivide:111,NumpadEqual:187,Backquote:192,BracketLeft:219,BracketRight:221,Backslash:220,Semicolon:186,Quote:222,Space:32,Equal:187,Comma:188,Minus:189,Period:190,Slash:191}},{}],266:[function(t,e,i){"use strict";const n=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,r=t("@marcom/dom-metrics"),s=t("@marcom/ac-keyboard/Keyboard"),o=t("./templates/slider.html"),a={num:37,string:"ArrowLeft"},c=38,l={num:39,string:"ArrowRight"},u={num:40,string:"ArrowDown"},h=[a,l,u,l],d=function(t){if(t.which)return t.which;for(var e=t.key?t.key:t.code,i=0,n=h.length;i<n;i++)if(h[i].string===e)return h[i].num;return-1},p={min:0,max:1,step:1,value:0,orientation:"horizontal",renderedPosition:!1,template:o,keyboardMaxStepPercentage:.05,keyboardStepMultiplier:1.25,containerClass:"ac-slider-container",grabbedClass:"ac-slider-grabbed"},m=Object.keys(p),f=function(t,e){this.options=Object.assign({},p,e),this.model=Object.create(this.options),this.el=t;var i=void 0!==this.options.keyboardContext?this.options.keyboardContext:this.el;null!==i&&(this._keyboard=new s(i),this._keyDown={}),t.classList.add(this.model.containerClass),t.innerHTML=this.model.template,n.call(this),this._initialize()},_=f.prototype=Object.create(n.prototype);_._addGrabClass=function(){this.el.classList.add(this.model.grabbedClass)},_._removeGrabClass=function(){this.el.classList.remove(this.model.grabbedClass)},_._addEventListeners=function(){this._addEventListener(this.el,"mousedown",this._onMouseDown),this._addEventListener(this.el,"touchstart",this._onTouchStart),this._addEventListener(this.el,"mouseover",this._onMouseOver),this._addEventListener(this.el,"mouseleave",this._onMouseLeave),this._keyboard&&("horizontal"===this.model.orientation?(this._keyboard.onDown(l.num,this.stepUp),this._keyboard.onDown(a.num,this.stepDown)):(this._keyboard.onDown(u.num,this.stepDown),this._keyboard.onDown(c,this.stepUp)))},_._addEventListener=function(t,e,i,n){t.addEventListener(e,i,n)},_._bindMethods=function(){this._addGrabClass=this._addGrabClass.bind(this),this._removeGrabClass=this._removeGrabClass.bind(this),this.stepDown=this.stepDown.bind(this),this.stepUp=this.stepUp.bind(this),this._triggerRelease=this._triggerRelease.bind(this),this._preventDefault=this._preventDefault.bind(this),this._onMouseDown=this._bindMethod(this._onMouseDown,this),this._onTouchStart=this._bindMethod(this._onTouchStart,this),this._onMouseOver=this._bindMethod(this._onMouseOver,this),this._onMouseLeave=this._bindMethod(this._onMouseLeave,this),this._onTouchEnd=this._bindMethod(this._onTouchEnd,this),this._onMouseUp=this._bindMethod(this._onMouseUp,this),this._onMouseMove=this._bindMethod(this._onMouseMove,this),this._onTouchMove=this._bindMethod(this._onTouchMove,this)},_._bindMethod=function(t,e){return t.bind(e)},_._correctValueMinMax=function(t,e,i){return t>i&&(t=i),t<e&&(t=e),t},_._calculateStepsToValue=function(t,e){return Math.abs(t-e)},_._calculateMaxSteps=function(t,e){return Math.abs(e-t)},_._calculateStepsEqualToPercentage=function(t,e){return t/100*e},_._calculateNextStepInRange=function(t,e,i,n){var r=this._calculateMaxSteps(e,i),s=this._calculateStepsToValue(t,e),o=e+Math.floor(r/n)*n;return t=Math.min(o,e+Math.round(s/n)*n)},_._dispatchEvent=function(t,e){t.dispatchEvent(new CustomEvent(e))},_.disableUserControls=function(){this._removeEventListeners()},_.enableUserControls=function(){this._addEventListeners()},_._getNextValue=function(t,e,i,n){return t=this._correctValueMinMax(t,e,i),"auto"!==n&&(t=this._calculateNextStepInRange(t,e,i,n)),t},_.getOrientation=function(){return this.model.orientation},_.getValue=function(){return this.model.value},_.getMin=function(){return this.model.min},_.getMax=function(){return this.model.max},_.getStep=function(){return this.model.step},_.getClientXValue=function(t,e){var i=this._getClientXFromEvent(t),n=null!==e?r.getDimensions(e||this.thumbElement):{width:0,height:0},s=r.getDimensions(this.runnableTrackElement),o=(i-this.runnableTrackElement.getBoundingClientRect().left-Math.round(n.width/2))/(s.width-n.width)*100,a=this._calculateMaxSteps(this.getMin(),this.getMax()),c=this._calculateStepsEqualToPercentage(o,a);return this.getMin()+c},_.getClientYValue=function(t){var e=this._getClientYFromEvent(t),i=r.getDimensions(this.thumbElement),n=r.getDimensions(this.runnableTrackElement),s=r.getViewportPosition(this.runnableTrackElement,this.model.renderedPosition),o=(n.height-i.height-(e-s.top-i.height/2))/(n.height-i.height)*100,a=this._calculateMaxSteps(this.model.min,this.model.max),c=this._calculateStepsEqualToPercentage(o,a);return this.model.min+c},_.getClientValue=function(t){return t=t.originalEvent||t,"horizontal"===this.model.orientation?this.getClientXValue(t):this.getClientYValue(t)},_._getClientXFromEvent=function(t){return t.touches?t.touches[0].clientX:t.clientX},_._getClientYFromEvent=function(t){return t.touches?t.touches[0].clientY:t.clientY},_._initialize=function(){this._setNodeReferences(),this.setValue(this.model.value),this._bindMethods(),this._addEventListeners()},_._onMouseLeave=function(){this._preventDocumentMouseUpDispatch=!1},_._onMouseDown=function(t){this._addGrabClass(),this._addEventListener(document,"mouseup",this._onMouseUp),this._addEventListener(document,"mousemove",this._onMouseMove);var e=this.getClientValue(t);this.trigger("grab",this.getValue()),this.setValue(e)},_._onMouseUp=function(){this._removeGrabClass(),this._removeEventListener(document,"mouseup",this._onMouseUp),this._removeEventListener(document,"mousemove",this._onMouseMove),this.trigger("release",this.getValue()),this._preventDocumentMouseUpDispatch||this._dispatchEvent(this.el,"mouseup")},_._onMouseOver=function(){this._preventDocumentMouseUpDispatch=!0},_._onTouchEnd=function(){this._removeGrabClass(),this._removeEventListener(document,"touchend",this._onTouchEnd),this._removeEventListener(document,"touchmove",this._onTouchMove),this.trigger("release",this.getValue()),this._preventDocumentMouseUpDispatch||this._dispatchEvent(this.el,"touchend")},_._onTouchStart=function(t){this._addGrabClass();var e=this.getClientValue(t);this._addEventListener(document,"touchend",this._onTouchEnd),this._addEventListener(document,"touchmove",this._onTouchMove,{passive:!1}),this.trigger("grab",this.getValue()),this.setValue(e)},_._onMouseMove=function(t){var e=this.getClientValue(t);this.setValue(e)},_._onTouchMove=function(t){t.preventDefault&&t.preventDefault();var e=this.getClientValue(t);this.setValue(e)},_._getElementOrientationOffsetValue=function(t,e){return"horizontal"===e?r.getDimensions(t).width:r.getDimensions(t).height},_._getAvailableRunnableTrack=function(t,e){return t-this._getElementOrientationOffsetValue(this.thumbElement,e)},_._getPercentageByValue=function(t,e){return(t=this._calculateStepsToValue(t,this.getMin()))/this._calculateMaxSteps(this.getMin(),this.getMax())*100},_._getPercentageOfRunnableTrack=function(t){var e=this.getOrientation(),i=this._getElementOrientationOffsetValue(this.runnableTrackElement,e),n=this._getAvailableRunnableTrack(i,e);return this._getPercentageByValue(t,this.getMax())/100*n/i*100},_._onChange=function(t){var e=this._getPercentageOfRunnableTrack(t);isNaN(e)||("horizontal"===this.getOrientation()?this.thumbElement.style.left=e+"%":this.thumbElement.style.bottom=e+"%",this.trigger("change",this.getValue()))},_._removeEventListeners=function(){this._removeEventListener(this.el,"mousedown",this._onMouseDown),this._removeEventListener(this.el,"touchstart",this._onTouchStart),this._removeEventListener(this.el,"mouseover",this._onMouseOver),this._removeEventListener(this.el,"mouseleave",this._onMouseLeave),this._removeEventListener(document,"touchend",this._onMouseUp)},_._removeEventListener=function(t,e,i){t.removeEventListener(e,i)},_._setNodeReferences=function(){this.runnableTrackElement=this.el.querySelector(".ac-slider-runnable-track"),this.thumbElement=this.el.querySelector(".ac-slider-thumb")},_.setOrientation=function(t){this._set("orientation",t)},_._triggerRelease=function(t){this._preventDefault(t),this.trigger("release",this.getValue()),this._keyDown[d(t)]=0},_._preventDefault=function(t){t.preventDefault(),t.stopPropagation()},_._step=function(t,e){this._preventDefault(t),this.el.focus();var i=this._keyDown[d(t)]||0;i?Math.abs(this._keyDown[d(t)])<Math.abs(this.model.max*this.model.keyboardMaxStepPercentage)&&(i*=this.model.keyboardStepMultiplier):(this.trigger("grab",this.getValue()),i="auto"!==(i=this.getStep())?i:this._cachedMaxStep,e||(i*=-1),this._keyboard.onceUp(d(t),this._triggerRelease)),this._keyDown[d(t)]=i,this.setValue(this.getValue()+i)},_.stepUp=function(t){this._step(t,!0)},_.stepDown=function(t){this._step(t,!1)},_.setValue=function(t){t=this._getNextValue(t,this.getMin(),this.getMax(),this.getStep()),this._set("value",t),this.el.setAttribute("aria-valuenow",t),this._onChange(t)},_.setMin=function(t){this._set("min",t),this.el.setAttribute("aria-valuemin",t)},_.setMax=function(t){this._set("max",t),this.el.setAttribute("aria-valuemax",t),this._cachedMaxStep=t/100},_.setStep=function(t){this._set("step",t)},_._set=function(t,e){if(m.indexOf(t)>-1&&this.model[t]!==e){var i=this.model[t];this.model[t]=e,this.trigger("change:model:"+t,{previous:i,current:e})}},_._removeEventListeners=function(){this._removeEventListener(this.el,"mousedown",this._onMouseDown),this._removeEventListener(this.el,"touchstart",this._onTouchStart),this._removeEventListener(this.el,"mouseover",this._onMouseOver),this._removeEventListener(this.el,"mouseleave",this._onMouseLeave),this._removeEventListener(this.el,"touchend",this._onTouchEnd),this._removeEventListener(document,"touchend",this._onMouseUp),"horizontal"===this.model.orientation?(this._keyboard.offDown(l.num,this.stepUp),this._keyboard.offDown(a.num,this.stepDown),this._keyboard.offUp(a.num,this._triggerRelease),this._keyboard.offUp(l.num,this._triggerRelease)):(this._keyboard.offDown(u.num,this.stepDown),this._keyboard.offDown(c,this.stepUp),this._keyboard.offUp(u.num,this._triggerRelease),this._keyboard.offUp(c,this._triggerRelease))},_.destroy=function(){this._removeEventListeners(),this._keyboard&&this._keyboard.destroy(),n.prototype.destroy.call(this)},e.exports=f},{"./templates/slider.html":268,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-keyboard/Keyboard":263,"@marcom/dom-metrics":405}],267:[function(t,e,i){"use strict";e.exports.Slider=t("./Slider")},{"./Slider":266}],268:[function(t,e,i){e.exports='<div class="ac-slider-runnable-track">\n\t<div class="ac-slider-thumb"></div>\n</div>'},{}],269:[function(t,e,i){"use strict";e.exports={copy:t("./copyToClipboard")}},{"./copyToClipboard":272}],270:[function(t,e,i){"use strict";var n=t("./select");e.exports=function(t){return n(t),document.execCommand("copy")}},{"./select":273}],271:[function(t,e,i){"use strict";var n=t("./copyElement"),r=document.createElement("input");r.setAttribute("tabindex",-1),r.setAttribute("readonly",!0),r.setAttribute("aria-hidden",!0),r.style.position="fixed",e.exports=function(t){var e=!1;document.body.appendChild(r);try{r.value=t,e=n(r)}catch(t){}return document.body.removeChild(r),e}},{"./copyElement":270}],272:[function(t,e,i){"use strict";var n=t("./copyString"),r=t("./copyElement");e.exports=function(t){return"string"==typeof t?n(t):r(t)}},{"./copyElement":270,"./copyString":271}],273:[function(t,e,i){"use strict";e.exports=function(t){if("function"==typeof t.select){t.select()||t.setSelectionRange(0,t.value.length)}else{var e=document.createRange();e.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}},{}],274:[function(t,e,i){"use strict";e.exports={Link:t("./ac-social/Link"),Dialog:t("./ac-social/Dialog"),Focus:t("./ac-social/Focus"),Debug:t("./ac-social/Debug"),ShareFactory:t("./ac-social/ShareFactory"),AutoSocial:t("./ac-social/AutoSocial")}},{"./ac-social/AutoSocial":275,"./ac-social/Debug":276,"./ac-social/Dialog":277,"./ac-social/Focus":278,"./ac-social/Link":279,"./ac-social/ShareFactory":281}],275:[function(t,e,i){"use strict";var n=t("./ShareFactory");e.exports=function(t){n.autoCreate({context:t})}},{"./ShareFactory":281}],276:[function(t,e,i){"use strict";var n=t("./NetworkActions");function r(){var t;for(t in this.types={},n)n.hasOwnProperty(t)&&(s[t]=t,this.addType(t,n[t].getDialogDebugData.bind(n[t])))}var s=r.prototype;s.create=function(t,e){e=e||{};var i=this.types[t];if(i)return i(e)},s.addType=function(t,e){return this.types[t]=e,this},s.removeType=function(){return this.types[name]=null,this},e.exports=new r},{"./NetworkActions":280}],277:[function(t,e,i){"use strict";var n=t("./NetworkActions");function r(){var t;for(t in this.types={},n)n.hasOwnProperty(t)&&(s[t]=t,this.addType(t,n[t].generateDialog.bind(n[t])))}var s=r.prototype;s.create=function(t,e){e=e||{};var i=this.types[t];if(i)return i(e)},s.addType=function(t,e){return this.types[t]=e,this},s.removeType=function(){return this.types[name]=null,this},e.exports=new r},{"./NetworkActions":280}],278:[function(t,e,i){"use strict";e.exports=function(t){if(window.getSelection){var e=window.getSelection();(i=document.createRange()).selectNodeContents(t),e.removeAllRanges(),e.addRange(i)}else if(t.setSelectionRange)t.setSelectionRange(0,t.value.length);else if(document.body.createTextRange){var i;(i=document.body.createTextRange()).moveToElementText(t),i.select()}}},{}],279:[function(t,e,i){"use strict";var n=t("./NetworkActions"),r=t("./network-actions/DefaultNetworkAction");function s(){var t;for(t in this.types={},n)n.hasOwnProperty(t)&&(o[t]=t,this.addType(t,n[t].generateLink.bind(n[t])))}var o=s.prototype;o.create=function(t,e,i){e=e||{};var n=this.types[t];if(n)return n(e,i)},o.createFromAnchor=function(t){var e,i=t.getAttribute("data-network-action");for(e in n)if(n.hasOwnProperty(e)&&i===n[e].id)return void n[e].enhanceLinkEngagement(t);r.enhanceLinkEngagement(t)},o.addType=function(t,e){return this.types[t]=e,this},o.removeType=function(){return this.types[name]=null,this},e.exports=new s},{"./NetworkActions":280,"./network-actions/DefaultNetworkAction":283}],280:[function(t,e,i){"use strict";var n=t("./network-actions/FacebookShare"),r=t("./network-actions/PinterestShare"),s=t("./network-actions/TumblrShare"),o=t("./network-actions/TwitterFavorite"),a=t("./network-actions/TwitterReply"),c=t("./network-actions/TwitterRetweet"),l=t("./network-actions/TwitterTweet"),u=t("./network-actions/WeiboShare"),h=t("./network-actions/QQWeiboShare"),d=t("./network-actions/QZoneShare"),p=t("./network-actions/RenrenShare"),m=t("./network-actions/EMailShare"),f=t("./network-actions/VKShare"),_=t("./network-actions/LineShare"),v=t("./network-actions/WhatsAppShare");e.exports={FACEBOOK_SHARE:n,PINTEREST_SHARE:r,TUMBLR_SHARE:s,TWITTER_FAVORITE:o,TWITTER_REPLY:a,TWITTER_RETWEET:c,TWITTER_TWEET:l,WEIBO_SHARE:u,QQWEIBO_SHARE:h,QZONE_SHARE:d,RENREN_SHARE:p,EMAIL_SHARE:m,VK_SHARE:f,LINE_SHARE:_,WHATSAPP_SHARE:v}},{"./network-actions/EMailShare":284,"./network-actions/FacebookShare":285,"./network-actions/LineShare":286,"./network-actions/PinterestShare":288,"./network-actions/QQWeiboShare":289,"./network-actions/QZoneShare":290,"./network-actions/RenrenShare":291,"./network-actions/TumblrShare":292,"./network-actions/TwitterFavorite":293,"./network-actions/TwitterReply":294,"./network-actions/TwitterRetweet":295,"./network-actions/TwitterTweet":296,"./network-actions/VKShare":297,"./network-actions/WeiboShare":298,"./network-actions/WhatsAppShare":299}],281:[function(t,e,i){"use strict";var n=t("./Dialog"),r=t("./copy-actions/CopyToClipboard"),s="data-ac-social-url",o="data-ac-social-button",a={facebook:"FACEBOOK_SHARE",pinterest:"PINTEREST_SHARE",tumblr:"TUMBLR_SHARE",twitter:"TWITTER_TWEET",weibo:"WEIBO_SHARE",qqweibo:"QQWEIBO_SHARE",qzone:"QZONE_SHARE",renren:"RENREN_SHARE",email:"EMAIL_SHARE",vk:"VK_SHARE",line:"LINE_SHARE",whatsapp:"WHATSAPP_SHARE"};function c(){this._buttonEvts=[],this._autoCreatedUrlEls=[]}var l=c.prototype;l.autoCreate=function(t){var e=(t=t||{}).context||document.body,i=Array.prototype.slice.call(e.querySelectorAll("[data-ac-social-url]"));0===this._autoCreatedUrlEls.length?this._autoCreatedUrlEls=Array.prototype.slice.call(i):(i=i.filter(this._hasNotBeenAutoCreated.bind(this)),this._autoCreatedUrlEls=this._autoCreatedUrlEls.concat(i)),i.forEach((function(t){var e=t.querySelectorAll("[data-ac-social-button]"),i=t.getAttribute(s);if(!i)throw new Error("Please provide a valid URL to share in your data-ac-social-url attribute");e.forEach(function(t){this._createSocialButton(t,i)}.bind(this))}),this)},l._hasNotBeenAutoCreated=function(t){return-1===this._autoCreatedUrlEls.indexOf(t)},l._createSocialButton=function(t,e){var i=t.getAttribute(o),s=a[i];if(s){var c=n.create.bind(n,n[s],{url:e});this._buttonEvts.push({button:t,callback:c}),t.addEventListener("click",c)}else if("copy"===i)new r(t,e)},l.destroyButtons=function(){this._buttonEvts.forEach(function(t){t.button.removeEventListener("click",t.callback)}.bind(this)),this._buttonEvts=[]},e.exports=new c},{"./Dialog":277,"./copy-actions/CopyToClipboard":282}],282:[function(t,e,i){"use strict";var n=t("@marcom/ac-clipboard"),r="show-notification";function s(t,e){this.el=t,this.el.addEventListener("click",function(){n.copy(e),this._notifyTextCopied()}.bind(this))}s.prototype._notifyTextCopied=function(){var t=this.el.parentNode.querySelector("[data-ac-social-notification]");try{t.classList.add(r),setTimeout((function(){t.classList.remove(r)}),1e3)}catch(t){throw new Error("Please provide a notification message element for the copy to clipboard functionality")}},e.exports=s},{"@marcom/ac-clipboard":269}],283:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return t}),{baseLinkPath:""})},{"./NetworkAction":287}],284:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){var e={url:t.url};return t.title&&(e.subject=t.title),t.description?e.body=t.description+"\r\n\r\n"+t.url:e.body=t.url,e}),{id:"email-share",baseLinkPath:"mailto:",preventDialog:!0})},{"./NetworkAction":287}],285:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{u:t.url}}),{id:"facebook-share",baseLinkPath:"https://www.facebook.com/sharer/sharer.php",dialogDimensions:{width:555,height:368}})},{"./NetworkAction":287}],286:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{url:t.url,text:t.description,from:"line_scheme"}}),{id:"line-share",baseLinkPath:"https://social-plugins.line.me/lineit/share",dialogDimensions:{width:555,height:505}})},{"./NetworkAction":287}],287:[function(t,e,i){"use strict";var n,r=function(t,e){e=e||{},this.baseLinkPath=e.baseLinkPath,e.dialogDimensions&&(this.dialogDimensions=e.dialogDimensions),e.id&&(this.id=e.id),e.preventDialog&&(this.preventDialog=e.preventDialog),this.normalizeData=t};(n=r.prototype).dataAttributeName="network-action",n.id="network-action",n.normalizeData=function(t){return t},n.dialogDimensions={width:500,height:500},n.generateLinkURL=function(t){const e=this.normalizeData(t),i=JSON.parse(JSON.stringify(e)),n=new URLSearchParams(i).toString();let r=this.baseLinkPath;return n.length>0&&(r=r+"?"+n),r},n.generateLink=function(t,e){var i=this.generateLinkURL(t);return(e=e||document.createElement("A")).setAttribute("href",i),e.setAttribute("target","_blank"),e.setAttribute("data-"+this.dataAttributeName,this.id),this.enhanceLinkEngagement(e,i),e},n.generateDialog=function(t){var e=this.generateLinkURL(t);this._triggerDialog(e)},n.enhanceLinkEngagement=function(t,e){e=e||t.getAttribute("href"),t.addEventListener("click",this._onLinkEngaged.bind(this,e))},n.getDialogOptions=function(){var t,e="status=1",i={width:this.dialogDimensions.width,height:this.dialogDimensions.height};for(t in i.top=(window.screen.availHeight-i.height)/2,i.left=(window.screen.availWidth-i.width)/2,i)i.hasOwnProperty(t)&&(e+=", "+t+"="+i[t]);return e},n.getDialogDebugData=function(t){return{data:this.normalizeData(t),dialogUrl:this.generateLinkURL(t)}},n._triggerDialog=function(t){this.preventDialog?window.location.href=t:window.open(t,"_blank",this.getDialogOptions())},n._onLinkEngaged=function(t,e){e.preventDefault(),this._triggerDialog(t)},e.exports=r},{}],288:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){var e={url:t.url,description:t.description};return t.media&&(e.media=t.media),e}),{id:"pinterest-share",baseLinkPath:"http://www.pinterest.com/pin/create/button",dialogDimensions:{width:750,height:450}})},{"./NetworkAction":287}],289:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{url:t.url,title:t.title,pic:t.media}}),{id:"qq-weibo-share",baseLinkPath:"http://v.t.qq.com/share/share.php",dialogDimensions:{width:658,height:506}})},{"./NetworkAction":287}],290:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{url:t.url,title:t.title,pics:t.media,summary:t.description}}),{id:"qzone-share",baseLinkPath:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",dialogDimensions:{width:620,height:645}})},{"./NetworkAction":287}],291:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{url:t.url,title:t.title}}),{id:"renren-share",baseLinkPath:"http://www.connect.renren.com/share/sharer",dialogDimensions:{width:500,height:315}})},{"./NetworkAction":287}],292:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){var e={clickthru:t.url,caption:t.description};return t.media&&(e.source=t.media),e}),{id:"tumblr-share",baseLinkPath:"http://www.tumblr.com/share/photo",dialogDimensions:{width:450,height:432}})},{"./NetworkAction":287}],293:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{tweet_id:t.messageId}}),{id:"twitter-favorite",baseLinkPath:"https://twitter.com/intent/favorite",dialogDimensions:{width:550,height:420}})},{"./NetworkAction":287}],294:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){var e={in_reply_to:t.messageId};return t.hashtags&&(e.hashtags=t.hashtags),e}),{id:"twitter-reply",baseLinkPath:"https://twitter.com/intent/tweet",dialogDimensions:{width:550,height:420}})},{"./NetworkAction":287}],295:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{tweet_id:t.messageId}}),{id:"twitter-retweet",baseLinkPath:"https://twitter.com/intent/retweet",dialogDimensions:{width:550,height:420}})},{"./NetworkAction":287}],296:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){var e={url:t.url,text:t.description};return t.hashtags&&(e.hashtags=t.hashtags),e}),{id:"twitter-tweet",baseLinkPath:"https://twitter.com/intent/tweet",dialogDimensions:{width:550,height:420}})},{"./NetworkAction":287}],297:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{url:t.url,title:t.title,image:t.media}}),{id:"vk-share",baseLinkPath:"http://vk.com/share.php",dialogDimensions:{width:555,height:368}})},{"./NetworkAction":287}],298:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{url:t.url,title:t.title,pic:t.media}}),{id:"weibo-share",baseLinkPath:"http://service.weibo.com/share/share.php",dialogDimensions:{width:650,height:426}})},{"./NetworkAction":287}],299:[function(t,e,i){"use strict";var n=t("./NetworkAction");e.exports=new n((function(t){return{text:t.title+" "+t.url}}),{id:"whatsapp-share",baseLinkPath:"https://api.whatsapp.com/send",dialogDimensions:{width:555,height:505}})},{"./NetworkAction":287}],300:[function(t,e,i){"use strict";e.exports=function(t,e,i){return e?(i=i||/{([^{}]*)}/g,t.replace(i,(function(t,i){var n=e[i];return"string"==typeof n||"number"==typeof n||"boolean"==typeof n?n:t}))):t}},{}],301:[function(t,e,i){"use strict";e.exports=function(t,e){var i="";if(t){var n=Object.keys(t),r=n.length-1;n.forEach((function(e,n){var s=t[e],o=(e=e.trim())+(s=null===(s=s&&"string"==typeof s?s.trim():s)?"":"="+s)+(n===r?"":"&");i=i?i.concat(o):o}))}return i&&!1!==e?"?"+i:i}},{}],302:[function(t,e,i){"use strict";e.exports={major:4,minor:6,patch:3,prerelease:null,toString:function(){return"4.6.3 (1ea4c10)"},toArray:function(){return[4,6,3]}}},{}],303:[function(t,e,i){arguments[4][263][0].apply(i,arguments)},{"./internal/KeyEvent":304,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-events/utils/removeEventListener":84,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-object/create":185,dup:263}],304:[function(t,e,i){arguments[4][264][0].apply(i,arguments)},{"./keyCodeMap.js":305,dup:264}],305:[function(t,e,i){arguments[4][265][0].apply(i,arguments)},{dup:265}],306:[function(t,e,i){"use strict";e.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,COMMAND:91,CAPSLOCK:20,ESCAPE:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ASTERISK:106,NUMPAD_PLUS:107,NUMPAD_DASH:109,NUMPAD_DOT:110,NUMPAD_SLASH:111,NUMPAD_EQUALS:187,TICK:192,LEFT_BRACKET:219,RIGHT_BRACKET:221,BACKSLASH:220,SEMICOLON:186,APOSTRAPHE:222,APOSTROPHE:222,SPACEBAR:32,CLEAR:12,COMMA:188,DOT:190,SLASH:191}},{}],307:[function(t,e,i){"use strict";e.exports=function(t,e){var i=null,n=function(){null===i&&(t.apply(this,arguments),i=setTimeout((function(){i=null}),e))};return n.cancel=function(){clearTimeout(i)},n}},{}],308:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i._chapters=Array.from(t.chapters||[]),i}return 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)}(e,t),n(e,[{key:"addChapter",value:function(t){this._chapters.push(t),this._onChange()}},{key:"removeChapter",value:function(t){for(var e=-1,i=0;i<this._chapters.length;i++)if(this._chapters[i].chapter===t){e=i;break}e>=0&&this._chapters.splice(e,1),this._onChange()}},{key:"_onChange",value:function(){this.trigger("change")}},{key:"getChapterForTime",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<this._chapters.length;i++){var n=this._chapters[i],r=n["start-time"];if(!n.duration||isNaN(n.duration)){if(this._chapters.length>i+1){var s=this._chapters[i+1];if(t>=r-e&&t<s["start-time"]-e)return n}else if(t>=r)return n}else if(r-e<=t&&t<r+n.duration-e)return n}return null}},{key:"clearChapters",value:function(){this._chapters=[],this._onChange()}},{key:"chapters",set:function(t){this._chapters=t,this._onChange()},get:function(){return this._chapters}}]),e}(r);e.exports=s},{"@marcom/ac-event-emitter-micro":122}],309:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._listeners={},this.el=e}return n(t,[{key:"on",value:function(t,e){this._listeners[t]||(this._listeners[t]=[]);var i={originalCb:e,args:[t,function(t){e(t)}].concat(Array.from(arguments).slice(2))};this._listeners[t].push(i),this.el.addEventListener.apply(this.el,i.args)}},{key:"off",value:function(t,e){var i=this._listeners[t]||[],n=-1,r=i.find((function(t){return n++,t.originalCb===e}));if(r){var s=i[n];this.el.removeEventListener.apply(this.el,s.args),i.splice(n,1)}}},{key:"replaceElement",value:function(t){var e=this;Object.keys(this._listeners).forEach((function(i){e._listeners[i].forEach((function(i){e.el.removeEventListener.apply(e.el,i.args),t.addEventListener.apply(t,i.args)}))})),this.el=t}},{key:"once",value:function(t,e){var i=this;this.on(t,(function n(){e(),i.off(t,n)}))}},{key:"trigger",value:function(t,e){var i=new CustomEvent(t,{detail:e});this.el.dispatchEvent(i)}}]),t}();e.exports=r},{}],310:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return 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)}(e,t),n(e,[{key:"once",value:function(t,i,n){if(n){var s=function(){i.apply(n,arguments)};r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"once",this).apply(this,[t,s])}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"once",this).apply(this,arguments)}},{key:"on",value:function(t,i,n){if(arguments.length>2){this._boundListeners||(this._boundListeners={}),this._boundListeners[t]||(this._boundListeners[t]=[]);var s=i.bind(n);return this._boundListeners[t].push([i,n,s]),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"on",this).call(this,t,s)}return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"on",this).apply(this,arguments)}},{key:"off",value:function(t,i,n){if(arguments.length>2)try{for(var s=this._boundListeners[t],o=s.length,a=0;a<o;a++)if(s[a][0]===i&&s[a][1]===n){var c=s.splice(a,1)[0];return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"off",this).call(this,t,c[2])}}catch(t){}return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"off",this).apply(this,arguments)}},{key:"destroy",value:function(){this._boundListeners=void 0,r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("@marcom/ac-event-emitter-micro").EventEmitterMicro);e.exports=s},{"@marcom/ac-event-emitter-micro":122}],311:[function(t,e,i){"use strict";e.exports=t("./utils/urlOptimizer/OptimizeVideoUrl")},{"./utils/urlOptimizer/OptimizeVideoUrl":398}],312:[function(t,e,i){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw s}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r="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},s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var a=t("../ui/localization/LanguageMapping"),c=t("../event-emitter-shim/EventEmitterShim"),l=t("../dom-emitter/DOMEmitterMicro"),u=t("../chapters/ChapterEmitter"),h=t("../utils/Storage"),d=t("../video/VideoFactory").create,p=t("@marcom/useragent-detect"),m=t("@marcom/ac-fullscreen"),f=t("../posterframe/PosterFrameFactory"),_=t("../ui/localization/Localization"),v=t("../ui/error/ErrorView"),g=t("@marcom/ac-raf-emitter/update"),y=t("@marcom/ac-raf-emitter/cancelUpdate"),b=t("@marcom/ac-feature/isRetina")(),w=t("@marcom/ac-feature/isDesktop")()&&!t("@marcom/ac-feature/touchAvailable")(),E=t("@marcom/ac-feature/isHandheld")(),k=p.browser.safari&&p.os.ios,x=p.browser.safari&&p.os.osx,S=p.browser.chrome,T=p.browser.edge,C="user-hover",A="mouse-leave",O="initial-play",L="ac-video-live",P="ac-video-live-dvr",D=t("../ui/DefaultBreakpoints"),F=t("@marcom/ac-console/log"),M=t("./event/EventsToForward"),I=t("./event/ReadyStateChangeEvents"),R=t("../utils/BreakpointDetect"),N=t("../ui/keyboard-control/createKeyboardControl"),j=t("../ui/controls-interaction/createControlsInteraction"),U=t("@marcom/ac-accessibility/helpers/hide"),B=t("@marcom/ac-accessibility/helpers/show"),V=t("../utils/getVersion");F("@marcom/ac-video version: "+V.toString());var H=function(e){function i(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var e=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.__proto__||Object.getPrototypeOf(i)).call(this,t));t=t||{},e.el=t.el||document.createElement("div"),e._elementEmitter=new l(e.el),e.VERSION=V,e.options=t,e._controlsFactory=t.controlsFactory,e._urlOptimizer=t.urlOptimizer,x&&e.el.classList.add("safari-fix-zindex");try{var n=window.top;e._maxWidth=t.maxWidth||Math.min(window.innerWidth,1280)||Math.min(n.innerWidth,1280)}catch(i){e._maxWidth=t.maxWidth||Math.min(window.innerWidth,1280)}return e._lastResize=0,e._lastMouseCoords={},e.el.classList.add("ac-video-player"),e.el.classList.add("idle-state"),e._isLive=t.live,e._isDvr=t.dvr,e._isLive&&e._useLiveMode(t.dvr),e._videoImpl=d(t,e.el),e._isResponsive=t.responsive,e._isResponsive&&(e._breakpointDetect=new R({el:e.el,player:e,breakpoints:D,addClass:!0})),e._supportsInlineVideo=w||!(E&&k),e._cachedPiPMode=e.isPictureInPicture(),e._cachedReadyState=e.getReadyState(),e._cachedVisibleTracksLength=0,e.el.appendChild(e._videoImpl.getRenderElement()),(t.poster||void 0===t.poster)&&(e._initPoster(t.poster),t.autoplay||void 0===t.preload||"none"!==t.preload&&"metadata"!==t.preload&&!1!==t.preload||e._poster.show()),e._bindMethods(),e._addEventListeners(),w&&(e._keyboardControl=N({player:e,threesixty:t.threesixty,keyboardTarget:t.keyboardTarget})),t.controls&&e._initUIComponents(),e._initErrorView(),t.parentElement&&t.parentElement.appendChild(e.el),e._chapterEmitter=new u(t),e.refreshSize=e.refreshSize.bind(e),e._setPersistedUserSettings(),e._refreshSizeTimeout=setTimeout(e.refreshSize,0),window.addEventListener("DOMContentLoaded",e.refreshSize),e}return 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)}(i,e),s(i,[{key:"_bindMethods",value:function(){this._onStart=this._onStart.bind(this),this._onEnded=this._onEnded.bind(this),this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onCaptionsChanged=this._onCaptionsChanged.bind(this),this._onPlay=this._onPlay.bind(this),this._onFullscreenChange=this._onFullscreenChange.bind(this),this._onError=this._onError.bind(this),this._forwardEvent=this._forwardEvent.bind(this),this._onPresentationModeChanged=this._onPresentationModeChanged.bind(this),this._forwardFullScreenChangeEvent=this._forwardNamedEvent.bind(this,"fullscreen:change"),this._forwardEnterFullScreenEvent=this._forwardNamedEvent.bind(this,"enterfullscreen"),this._forwardExitFullScreenEvent=this._forwardNamedEvent.bind(this,"exitfullscreen"),this._onDurationChange=this._onDurationChange.bind(this),this._forwardReadyStateChange=this._forwardReadyStateChange.bind(this),this._showControls=this._showControls.bind(this),this._hideControls=this._hideControls.bind(this),this._raiseControls=this._raiseControls.bind(this),this._lowerControls=this._lowerControls.bind(this),this._onPlayPromiseError=this._onPlayPromiseError.bind(this),this._onPlayPromiseResolved=this._onPlayPromiseResolved.bind(this),this._onChapterChange=this._onChapterChange.bind(this),this._onAudioTrackChange=this._onAudioTrackChange.bind(this),this._onVolumeChange=this._onVolumeChange.bind(this),this.refreshSize=this.refreshSize.bind(this)}},{key:"_addEventListeners",value:function(){for(var t=0,e=M.length;t<e;t++)this._videoImpl.on(M[t],this._forwardEvent);for(t=0,e=I.length;t<e;t++)this._videoImpl.on(I[t],this._forwardReadyStateChange);this._videoImpl.on("timeupdate",this._onTimeUpdate),this._videoImpl.on("webkitpresentationmodechanged",this._onPresentationModeChanged),this._videoImpl.on("durationchange",this._onDurationChange),this._videoImpl.on("addtrack",this._forwardEvent),this._videoImpl.on("change",this._forwardEvent),this._videoImpl.on("removetrack",this._forwardEvent),this._videoImpl.on("addtrack",this._onCaptionsChanged),this._videoImpl.on("change",this._onCaptionsChanged),this._videoImpl.on("removetrack",this._onCaptionsChanged),this._videoImpl.on("loadedmetadata",this.refreshSize),this._videoImpl.on("loadeddata",this.refreshSize),this._videoImpl.on("play",this._onPlay),this._videoImpl.on("AudioTrackChange",this._onAudioTrackChange),this._videoImpl.on("volumechange",this._onVolumeChange),w?(m.on("enterfullscreen",this._forwardEnterFullScreenEvent),m.on("exitfullscreen",this._forwardExitFullScreenEvent),m.on("enterfullscreen",this._forwardFullScreenChangeEvent),m.on("exitfullscreen",this._forwardFullScreenChangeEvent),this.on("fullscreen:change",this._onFullscreenChange)):k&&(this._videoImpl.on("webkitbeginfullscreen",this._forwardEnterFullScreenEvent),this._videoImpl.on("webkitendfullscreen",this._forwardExitFullScreenEvent),this._videoImpl.on("webkitbeginfullscreen",this._forwardFullScreenChangeEvent),this._videoImpl.on("webkitendfullscreen",this._forwardFullScreenChangeEvent),E&&this.on("fullscreen:change",this._onFullscreenChange)),this._chapterEmitter&&this._chapterEmitter.on("change",this._onChapterChange),this._videoImpl.on("PlayPromiseError",this._onPlayPromiseError),this._videoImpl.on("PlayPromiseResolved",this._onPlayPromiseResolved),this._videoImpl.on("error",this._onError)}},{key:"_onPlayPromiseResolved",value:function(){this.trigger("PlayPromiseResolved")}},{key:"_removeEventListeners",value:function(){for(var t=0,e=M.length;t<e;t++)this._videoImpl.off(M[t],this._forwardEvent);for(t=0,e=I.length;t<e;t++)this._videoImpl.off(I[t],this._forwardReadyStateChange);this._videoImpl.off("timeupdate",this._onTimeUpdate),this._videoImpl.off("webkitpresentationmodechanged",this._onPresentationModeChanged),this._videoImpl.off("durationchange",this._onDurationChange),this._videoImpl.off("addtrack",this._forwardEvent),this._videoImpl.off("change",this._forwardEvent),this._videoImpl.off("removetrack",this._forwardEvent),this._videoImpl.off("addtrack",this._onCaptionsChanged),this._videoImpl.off("change",this._onCaptionsChanged),this._videoImpl.off("removetrack",this._onCaptionsChanged),this._videoImpl.off("loadedmetadata",this.refreshSize),this._videoImpl.off("loadeddata",this.refreshSize),this._videoImpl.off("play",this._onPlay),this._videoImpl.off("AudioTrackChange",this._onAudioTrackChange),this._videoImpl.off("volumechange",this._onVolumeChange),w?(m.off("enterfullscreen",this._forwardEnterFullScreenEvent),m.off("exitfullscreen",this._forwardExitFullScreenEvent),m.off("enterfullscreen",this._forwardFullScreenChangeEvent),m.off("exitfullscreen",this._forwardFullScreenChangeEvent)):k&&(this._videoImpl.off("webkitbeginfullscreen",this._forwardEnterFullScreenEvent),this._videoImpl.off("webkitendfullscreen",this._forwardExitFullScreenEvent),this._videoImpl.off("webkitbeginfullscreen",this._forwardFullScreenChangeEvent),this._videoImpl.off("webkitendfullscreen",this._forwardFullScreenChangeEvent),E&&this.off("fullscreen:change",this._onFullscreenChange)),this._chapterEmitter&&this._chapterEmitter.off("change",this._onChapterChange),this._videoImpl.off("PlayPromiseError",this._onPlayPromiseError),this._videoImpl.off("loadedmetadata",this.refreshSize),this._videoImpl.off("loadeddata",this.refreshSize),window.removeEventListener("DOMContentLoaded",this.refreshSize)}},{key:"_forwardReadyStateChange",value:function(){var t=this.getReadyState();(t>this._cachedReadyState||0===t)&&(this._cachedReadyState=t,this.trigger("readystatechange",{readyState:t}))}},{key:"_forwardEvent",value:function(t){F(t.type+" time:"+this.getCurrentTime()),this.trigger(t.type)}},{key:"_forwardNamedEvent",value:function(t){F(t+" time:"+this.getCurrentTime()),this.trigger(t)}},{key:"_onPlayPromiseError",value:function(){F("play() Promise rejected, probably because the browser is blocking autoplay"),this.el.classList.add(O),this._showStartState(),this._started=!1,this._poster.show(),this.once("play",this._onPlay)}},{key:"_onAudioTrackChange",value:function(t){var e=this,i=this.getAudioTracks();if(this._forwardEvent(t),this._storedAudioTrackType&&this._storedAudioTrackLanguage&&i.length>1){var n=i.find((function(t){return t.language===e._storedAudioTrackLanguage&&t.kind===e._storedAudioTrackType}));i.forEach((function(t){return t.enabled=!1})),n&&(n.enabled=!0),this._storedAudioTrackLanguage=null}var r=i.find((function(t){return t.enabled}));r&&(h.setItem(h.AUDIO_TRACK_TYPE,r.kind),h.setItem(h.AUDIO_TRACK_LANGUAGE,r.language))}},{key:"_onCaptionsChanged",value:function(t){var e=this,i=this.getVisibleTextTracks().length;if(!this._cachedVisibleTracksLength&&"none"!==this._storedCCLanguage&&this.getTextTracks().length>0){var n=this.getTextTracks().find((function(t){return t.language===e._storedCCLanguage||a[t.language]===e._storedCCLanguage}));n&&(setTimeout((function(){e.getTextTracks().forEach((function(t){n!==t&&(t.mode="hidden")})),n.mode="showing",setTimeout((function(){0===n.cues.length&&(n.mode="hidden",n.mode="showing")}),1)}),1),this._storedCCLanguage="none")}i>0&&this._cachedVisibleCCTrack!==this.getVisibleTextTracks()[0]?(this.trigger("texttrackshow"),h.setItem(h.CC_LANGUAGE,this.getVisibleTextTracks()[0].language)):0===i&&this._cachedVisibleTracksLength>0&&this.trigger("texttrackhide"),this._cachedVisibleTracksLength=i,this._cachedVisibleCCTrack=i?this.getVisibleTextTracks()[0]:null}},{key:"_onVolumeChange",value:function(t){h.setItem(h.VOLUME_LEVEL,this.getVolume()),h.setItem(h.VOLUME_MUTED,this.getMuted())}},{key:"_onTimeUpdate",value:function(){this.trigger("timeupdate",{currentTime:this.getCurrentTime()})}},{key:"load",value:function(t,e,i,n){if(this._setError(!1),this.refreshSize(),this._started=!1,Array.isArray(t)||(t=[t]),e&&!Array.isArray(e)&&(e=[{src:e}]),this._cachedReadyState=0,n||(n=this.options),this._urlOptimizer){e||(e=t.map(this._urlOptimizer.getCaptionsSource).filter((function(t){return!!t})));var r=this.getVisibleTextTracks();r&&r.length&&e&&e.length&&(e[0].mode="showing");var s=n.maxWidth||this._calcMaxWidth();t=t.map(function(t){return this._urlOptimizer.getVideoSource(t,s,null,{urlOptimizeHls:this.options.urlOptimizeHls})}.bind(this))}var o=n&&n.thumbnails||this._urlOptimizer&&this._urlOptimizer.getThumbnailImageSource(t[0]);this.once("play",this._onPlay),(this.options.autoplay&&w||this.getEnded())&&this.once("loadstart",function(){this.play()}.bind(this)),n||(n=this.options),n&&this._poster&&this.setPoster(n.poster),this._poster&&this._poster.show(),this.controls&&this.controls.sharingModule&&(n.sharing?this.controls.sharingModule.setData(n.sharing):this.controls.sharingModule.setData(null)),void 0!==n.live&&(this._isLive=n.live,this._useLiveMode(n.dvr)),this._hideEndState(),this._setPersistedUserSettings(),this._videoImpl.load(t,e,i),this.controls&&this.controls.overlays?this.controls.overlays.setData(o):this.controls&&this.once("controlsready",function(){this.controls.overlays&&this.controls.overlays.setData(o)}.bind(this)),this.controls&&this.controls.endState?this.controls.endState.setData(n.endState):this.controls&&this.once("controlsready",function(){this.controls.endState&&this.controls.endState.setData(n.endState)}.bind(this))}},{key:"_calcMaxWidth",value:function(){return this.el.parentElement?this.el.parentElement.clientWidth:this._maxWidth}},{key:"_isActiveArea",value:function(t){for(;t!==this.el;){if(t.hasAttribute("data-acv-active-area"))return!0;t=t.parentNode}return!1}},{key:"_onPresentationModeChanged",value:function(t){this._forwardEvent(t);var e=this.isPictureInPicture();this._cachedPiPMode!==e&&(this._cachedPiPMode=e,F("pictureinpicture:change to "+e),this.trigger("pictureinpicture:change"))}},{key:"_onDurationChange",value:function(t){(this._isDvr||this.getDuration()>3600)&&this.el.classList.add("longform"),this.refreshSize()}},{key:"appendTo",value:function(t){t.appendChild(this.el),this.refreshSize()}},{key:"getTextTracks",value:function(){return Array.prototype.slice.call(this._videoImpl.getTextTracks())}},{key:"getAudioTracks",value:function(){return Array.from(this._videoImpl.getAudioTracks())}},{key:"getVisibleTextTracks",value:function(){var t=Array.prototype.slice.call(this._videoImpl.getTextTracks());return t&&t.length&&(t=t.filter((function(t){return"showing"===t.mode}))),t}},{key:"getFullScreenElement",value:function(){return w?this.el:this.getMediaElement()}},{key:"getFullScreenEnabled",value:function(){return m.fullscreenEnabled(this.getFullScreenElement())}},{key:"isFullscreen",value:function(){return w?m.fullscreenElement()===this.getFullScreenElement():this._videoImpl.isFullscreen()}},{key:"requestFullscreen",value:function(){if(!this.isFullscreen()){this.controls&&(this.controls.el.display="none",this._hideControls()),this.trigger("fullscreen:willenter",{type:"enter"}),this._lastResize=Date.now(),y(this._updateFullscreenId);var t=this;this._updateFullscreenId=g((function e(){t.refreshSize(),t._updateFullscreenId=g(e)})),S?setTimeout(function(){this._lastResize=Date.now(),m.requestFullscreen(this.getFullScreenElement())}.bind(this),300):m.requestFullscreen(this.getFullScreenElement())}}},{key:"exitFullscreen",value:function(){this.isFullscreen()&&(this.controls&&(this.controls.el.display="none",this._hideControls()),this.trigger("fullscreen:willexit",{type:"exit"}),S?setTimeout(function(){m.exitFullscreen(this.getFullScreenElement())}.bind(this),300):m.exitFullscreen(this.getFullScreenElement()))}},{key:"_onFullscreenChange",value:function(){this._lastResize=Date.now(),this.controls&&(this.controls.el.display="",this._hideControls()),this._preventUserInteraction=!0,setTimeout(function(){y(this._updateFullscreenId),this._preventUserInteraction=!1,this.refreshSize()}.bind(this),750),this.refreshSize()}},{key:"toggleFullscreen",value:function(){this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()}},{key:"_initUIComponents",value:function(){this._controlsFactory?(this._instantiateDefaultCustomUIControls(),w?this.el.appendChild(this._blockade.el):(this.controls.el.classList.add("mobile"),this.setControls(!0))):this.setControls(!0)}},{key:"_showControls",value:function(){this._controlsVisible=!0,this.el.classList.remove(O),this.el.classList.add(C)}},{key:"_hideControls",value:function(){this._controlsVisible=!1,this.el.classList.remove(C),this.hideCaptionsSelector()}},{key:"_raiseControls",value:function(){this._controlsVisible=!0,this.el.classList.remove(A)}},{key:"_lowerControls",value:function(){this._controlsVisible=!1,this.el.classList.add(A),this.hideCaptionsSelector()}},{key:"_onControlsReady",value:function(){this.options.autoplay&&w||this._showStartState()}},{key:"_showStartState",value:function(){this.controls&&this.controls.el.classList.add("start-state"),this._poster&&this._poster.show(),w||U(this.getMediaElement())}},{key:"_hideStartState",value:function(){this.controls&&this.controls.el.classList.remove("start-state"),this._poster&&this._poster.hide(),w||B(this.getMediaElement())}},{key:"_showEndState",value:function(){this.controls&&(this.controls.mainControlsElement?this.controls.mainControlsElement.contains(document.activeElement)&&setTimeout(function(){this.controls.playButtonElement.focus()}.bind(this)):this.el.contains(document.activeElement)&&!this.controls.sharingModule.el.contains(document.activeElement)&&setTimeout(function(){this.controls.playButtonElement.focus()}.bind(this)),this.controls.el.classList.add("end-state")),this._poster&&this._poster.show(),U(this.getMediaElement())}},{key:"_hideEndState",value:function(){this.controls&&this.controls.el.classList.remove("end-state"),w||B(this.getMediaElement())}},{key:"_createBlockade",value:function(){this._blockade=new l(document.createElement("div")),this._blockade.el.classList.add("ac-video-blockade")}},{key:"_instantiateDefaultCustomUIControls",value:function(){return this.controls=this._controlsFactory.create({player:this,endState:this.options.endState,enableMainControls:w,basePath:this.options.localizationBasePath,forceEnglishLabels:this.options.forceEnglishLabels,template:this.options.template,readyCallback:function(){this._onControlsReady(),this.trigger("controlsready")}.bind(this)}),this.controls.el.parentNode!==this.el&&this.el.appendChild(this.controls.el),this._videoImpl.setControls(!1),this._createBlockade(),this._controlsInteraction=j({player:this,keyboardControl:this._keyboardControl,controlsTimeoutDuration:this.options.controlsTimeoutDuration,showControls:this._showControls,hideControls:this._hideControls,raiseControls:this._raiseControls,lowerControls:this._lowerControls,controlsVisible:function(){return this._controlsVisible}.bind(this),sendMouseDown:this._videoImpl.sendMouseDown,elementEmitter:this._elementEmitter}),this.controls}},{key:"_onPlay",value:function(){this._started||this.once("timeupdate",this._onStart,function(){return this.getCurrentTime()>0&&!this.getPaused()}.bind(this))}},{key:"isCaptionsSelectorShowing",value:function(){return this.controls.el.classList.contains("captions-selector-showing")}},{key:"showCaptionsSelector",value:function(){this.controls.axListSelector.style.maxHeight="min("+(this.el.getBoundingClientRect().height-80)+"px,250px)",this.controls.el.classList.add("captions-selector-showing")}},{key:"hideCaptionsSelector",value:function(){this.controls.el.classList.remove("captions-selector-showing")}},{key:"_onStart",value:function(){this._started=!0,this.el.classList.add(O),this.el.classList.remove("idle-state"),this._poster&&this._poster.hide(),this.controls&&(this._hideStartState(),this._hideEndState()),this.once("ended",this._onEnded)}},{key:"_onEnded",value:function(){this.isFullscreen()&&this.exitFullscreen(),this.controls&&(this._hideStartState(),this._showEndState()),setTimeout(function(){this.once("timeupdate",function(){this.getEnded()?this._onEnded():this._onStart()}.bind(this))}.bind(this),300),this._poster&&this._poster.show(),this._started=!1}},{key:"_initPoster",value:function(t){this._poster=f({player:this,video:this._videoImpl,useNativePoster:!1===this.options.controls,is2x:b,src:t}),this._poster.el&&this.el.appendChild(this._poster.el),this.options.autoplay||this._poster.show()}},{key:"_initErrorView",value:function(){this._errorView=new v,this.el.appendChild(this._errorView.el)}},{key:"_useLiveMode",value:function(e){var i=this;clearInterval(this._captionRemovalInterval),this._isLive?(this.el.classList.add(L),e&&!T?this.el.classList.add(P):x&&(this._captionRemovalInterval=setInterval((function(){t("../utils/removeStateCaptions")(i.getMediaElement())}),1e4))):(this.el.classList.remove(L),this.el.classList.remove(P))}},{key:"once",value:function(t,e,n){if(arguments.length<3||"object"===(void 0===n?"undefined":r(n)))o(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"once",this).apply(this,arguments);else{var s=arguments,a=Array.prototype.slice.call(arguments,2),c=function(){a.every((function(t){return!!t()}))&&(s[1].apply(this,s),this.off(s[0],c))}.bind(this);this.on(s[0],c)}}},{key:"getMediaElement",value:function(){return this._videoImpl.getMediaElement()}},{key:"play",value:function(){var t=this;this.el.classList.remove("idle-state");var e=this._videoImpl.getCurrentTime();F("play called"),!this._videoImpl.getError()||0!==e&&!isNaN(e)?this._videoImpl.play():setTimeout((function(){t._errorView.focus()}),1e3)}},{key:"pause",value:function(){this._videoImpl.pause()}},{key:"seek",value:function(t){this.setCurrentTime.apply(this,arguments)}},{key:"addTextTrack",value:function(t){this._videoImpl.addTextTrack(t)}},{key:"getReadyState",value:function(){return this._videoImpl.getMediaElement().readyState}},{key:"getPreload",value:function(){return this._videoImpl.getPreload()}},{key:"setPoster",value:function(t){this._poster.setSrc(t)}},{key:"getPoster",value:function(){this._poster.getSrc()}},{key:"getVolume",value:function(){return this._videoImpl.getVolume()}},{key:"getMuted",value:function(){return this._videoImpl.getMuted()}},{key:"getCurrentTime",value:function(){return this._videoImpl.getCurrentTime()}},{key:"getDuration",value:function(){return this._videoImpl.getDuration()}},{key:"getPaused",value:function(){return this._videoImpl.getPaused()}},{key:"getEnded",value:function(){return this._videoImpl.getEnded()}},{key:"getBufferedPercentage",value:function(){var t=this.getCurrentTime(),e=this.getDuration();if(isNaN(e)||e===1/0)return 0;var i=this._videoImpl.getBuffered();if(i.length)for(var n=0;n<i.length;n++)if(i.start(n)<=t&&i.end(n)>t)return i.end(n)/e*100;return t/e*100}},{key:"setCurrentTime",value:function(t){return this._videoImpl.setCurrentTime(t)}},{key:"goToLive",value:function(){this._videoImpl.goToLive&&this._videoImpl.goToLive()}},{key:"isDvr",value:function(){return this._isDvr&&!T}},{key:"setVolume",value:function(t){return this.trigger("uservolumechange"),this._videoImpl.setVolume(t)}},{key:"setMuted",value:function(t){this.trigger("uservolumechange"),this._videoImpl.setMuted(t)}},{key:"setSrc",value:function(t){this._videoImpl.setSrc(t)}},{key:"getCurrentSrc",value:function(){return this._videoImpl.getCurrentSrc()}},{key:"setControls",value:function(t){return this._videoImpl.setControls(t)}},{key:"getMediaHeight",value:function(){return this._videoImpl.getMediaElement().videoHeight}},{key:"getMediaWidth",value:function(){return this._videoImpl.getMediaElement().videoWidth}},{key:"supportsPictureInPicture",value:function(){return this._videoImpl.supportsPictureInPicture()}},{key:"isPictureInPicture",value:function(){return this._videoImpl.isPictureInPicture()}},{key:"setPictureInPicture",value:function(t){return this._videoImpl.setPictureInPicture(t)}},{key:"supportsAirPlay",value:function(){return this._videoImpl.supportsAirPlay()}},{key:"isLive",value:function(){return this._isLive}},{key:"refreshSize",value:function(){this._breakpointDetect?this._breakpointDetect.refresh():(this._currentBreakpoint&&this.el.classList.remove(this._currentBreakpoint.name),this._currentBreakpoint=R.getBreakpointFromElement(this.el,D),this.el.classList.add(this._currentBreakpoint.name)),this._videoImpl&&this._videoImpl.refreshSize()}},{key:"_setError",value:function(t){t?this.el.classList.add("media-error"):this.el.classList.remove("media-error")}},{key:"_onError",value:function(t){var e=this._videoImpl.getError();if(this._started)F("ERROR: an error occured during playback, but we'll try to recover. Error code "+(e?e.message:"unknown"));else if(this._setError(!0),this.controls){var i=void 0;if(t.message)i=t.message;else{if(!_.translationReady())return void _.getTranslation({callback:this._onError.bind(this,t),forceEnglishLabels:this.options.forceEnglishLabels});i=_.getTranslation().error}this._poster.show(),this._errorView.setText(i)}}},{key:"_onChapterChange",value:function(t){this.trigger("chapter:change")}},{key:"getChapters",value:function(){return this._chapterEmitter.chapters}},{key:"setChapters",value:function(t){this._chapterEmitter.chapters=t}},{key:"getChapterForTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._chapterEmitter.getChapterForTime(t,e)}},{key:"isStalled",value:function(){return this._videoImpl.isStalled()}},{key:"_setPersistedUserSettings",value:function(){if(w){if(this._storedCCLanguage=h.getItem(h.CC_LANGUAGE),h.hasItem("cc-disabled")&&(this._storedCCLanguage="none"),!this._storedCCLanguage){var t=navigator.language.split("-"),e=n(t,1)[0];this._storedCCLanguage="en"!==e?e:"none"}this._storedAudioTrackType=h.getItem(h.AUDIO_TRACK_TYPE),this._storedAudioTrackLanguage=h.getItem(h.AUDIO_TRACK_LANGUAGE),this._storedVolume=h.getItem(h.VOLUME_LEVEL),this._storedMuted=h.getItem(h.VOLUME_MUTED),null!==this._storedVolume&&this._videoImpl.setVolume(this._storedVolume),"true"===this._storedMuted&&(this._videoImpl.setMuted(!0),this._videoImpl.setVolume(1))}else this._storedCCLanguage="none"}},{key:"destroy",value:function(){this._removeEventListeners(),clearInterval(this._captionRemovalInterval),this.controls&&(this.controls.destroy(),this.controls=null),this._poster&&(this._poster.destroy(),this._poster=null),this._controlsInteraction&&(this._controlsInteraction.destroy(),this._controlsInteraction=null),this._keyboardControl&&this._keyboardControl.destroy(),this.el.innerHTML="",this._breakpointDetect&&this._breakpointDetect.destroy(),this._chapterEmitter&&this._chapterEmitter.destroy(),this._blockade&&(this._blockade=null),this._videoImpl.destroy(),this._videoImpl=null,clearTimeout(this._refreshSizeTimeout),c.prototype.destroy.call(this)}}]),i}(c);H.LOADEDMETADATA=1,H.LOADEDDATA=2,H.CANPLAY=3,H.CANPLAYTHROUGH=4,e.exports=H},{"../chapters/ChapterEmitter":308,"../dom-emitter/DOMEmitterMicro":309,"../event-emitter-shim/EventEmitterShim":310,"../posterframe/PosterFrameFactory":319,"../ui/DefaultBreakpoints":330,"../ui/controls-interaction/createControlsInteraction":352,"../ui/error/ErrorView":363,"../ui/keyboard-control/createKeyboardControl":369,"../ui/localization/LanguageMapping":372,"../ui/localization/Localization":373,"../utils/BreakpointDetect":386,"../utils/Storage":387,"../utils/getVersion":389,"../utils/removeStateCaptions":393,"../video/VideoFactory":404,"./event/EventsToForward":314,"./event/ReadyStateChangeEvents":315,"@marcom/ac-accessibility/helpers/hide":28,"@marcom/ac-accessibility/helpers/show":31,"@marcom/ac-console/log":69,"@marcom/ac-feature/isDesktop":127,"@marcom/ac-feature/isHandheld":128,"@marcom/ac-feature/isRetina":129,"@marcom/ac-feature/touchAvailable":131,"@marcom/ac-fullscreen":148,"@marcom/ac-raf-emitter/cancelUpdate":248,"@marcom/ac-raf-emitter/update":250,"@marcom/useragent-detect":435}],313:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=t("./Player"),o=t("../ui/controls-interaction/createControlsInteraction"),a=t("@marcom/useragent-detect").os,c=a.ios||a.android||!t("@marcom/ac-feature/isDesktop")(),l="threesixty-ui",u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return t.threesixty&&i.el.classList.add("threesixty-video"),i}return 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)}(e,t),n(e,[{key:"play",value:function(){this.get360().requestOrientationControl(),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"play",this).apply(this,arguments)}},{key:"_bindMethods",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_bindMethods",this).call(this),this._showCompass=this._showCompass.bind(this),this._hideCompass=this._hideCompass.bind(this),this.panToOrigin=this.panToOrigin.bind(this)}},{key:"_addEventListeners",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_addEventListeners",this).call(this)}},{key:"_removeEventListeners",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_removeEventListeners",this).call(this),this.controls.compass.removeEventListener("click",this.panToOrigin)}},{key:"_showCompass",value:function(){this.el.classList.add(l)}},{key:"_hideCompass",value:function(){this.el.classList.remove(l)}},{key:"_instantiateDefaultCustomUIControls",value:function(){return this.controls=this._controlsFactory.create({player:this,endState:this.options.endState,threesixty:!0,enableMainControls:!0,basePath:this.options.localizationBasePath,template:this.options.template,readyCallback:function(){this.options.autoplay&&!c||this._showStartState(),this.trigger("controlsready")}.bind(this)}),this.controls.el.parentNode!==this.el&&this.el.appendChild(this.controls.el),this._videoImpl.setControls(!1),this._createBlockade(),this._controlsInteraction=o({player:this,keyboardControl:this._keyboardControl,threesixty:!0,controlsTimeoutDuration:this.options.controlsTimeoutDuration,threesixtyElementsTimeoutDuration:this.options.threesixtyElementsTimeoutDuration,showControls:this._showControls,hideControls:this._hideControls,raiseControls:this._raiseControls,lowerControls:this._lowerControls,showCompass:this._showCompass,hideCompass:this._hideCompass,controlsVisible:function(){return this._controlsVisible}.bind(this),sendMouseDown:this._videoImpl.sendMouseDown,elementEmitter:this._elementEmitter}),this.controls}},{key:"panToOrigin",value:function(){this.get360().panToPosition({lat:0,lon:0})}},{key:"get360",value:function(){return this._videoImpl.get360()}},{key:"getFullScreenElement",value:function(){return this.el}},{key:"getFullScreenEnabled",value:function(){return!c&&r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getFullScreenEnabled",this).call(this)}}]),e}(s);e.exports=u},{"../ui/controls-interaction/createControlsInteraction":352,"./Player":312,"@marcom/ac-feature/isDesktop":127,"@marcom/useragent-detect":435}],314:[function(t,e,i){"use strict";e.exports=["loadstart","progress","suspend","abort","error","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","ended","ratechange","durationchange","volumechange","addtrack","change","removetrack"]},{}],315:[function(t,e,i){"use strict";e.exports=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","waiting","canplay","canplaythrough"]},{}],316:[function(t,e,i){"use strict";var n=t("@marcom/ac-feature/isDesktop")();e.exports=function(e){var i;if(e?arguments.length>1&&(e=Object.assign.apply(null,Array.prototype.slice.apply(arguments))):e={},e.components||(e.components=t("../../ui/DefaultComponents")),void 0===e.controls&&(e.controls=!0),e.controlsImplementation||(e.controlsImplementation=t("../../ui/ControlBar")),e.controlsFactory||(e.controlsFactory=t("../../ui/ControlsFactory")({controlsImplementation:e.controlsImplementation,components:e.components,template:e.controlsTemplate})),(void 0!==e.urlOptimizer&&!0===e.urlOptimizer||"true"===e.urlOptimizer)&&(e.urlOptimizer=t("../../optimizeVideoUrl")),e.sources||e.src?e.sources||(e.sources=e.src?[e.src]:[]):e.sources=[],e.autoplay=void 0!==e.autoplay?e.autoplay:n,e.controlsTimeoutDuration||(e.controlsTimeoutDuration=3e3),e.threesixty){e.threesixtyElementsTimeoutDuration||(e.threesixtyElementsTimeoutDuration=3e3);var r=t("../ThreeSixtyPlayer");i=new r(e)}else{var s=t("../Player");i=new s(e)}var o={};return e.sharing&&(o.sharing=Object.assign({},e.sharing)),e.thumbnails&&(o.thumbnails=Object.assign({},e.thumbnails)),e.endState&&(o.endState=Object.assign({},e.endState)),e.sources&&e.sources.length&&(e.autoplay||!e.preload||"auto"===e.preload||!0===e.preload?i.load(e.sources,e.textTracks,e.startTime,o):i.setSrc(e.sources[0])),i}},{"../../optimizeVideoUrl":311,"../../ui/ControlBar":328,"../../ui/ControlsFactory":329,"../../ui/DefaultComponents":331,"../Player":312,"../ThreeSixtyPlayer":313,"@marcom/ac-feature/isDesktop":127}],317:[function(t,e,i){"use strict";e.exports=t("./createPlayer")},{"./createPlayer":316}],318:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r="ac-video-poster-hide",s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this._defaultSrc=e.src,this._initialize()}return n(t,[{key:"_initialize",value:function(){var t=this.options.src;this.el=this.options.el||document.createElement("div"),this._imgElement=document.createElement("img"),this._imgElement.src=t,this._currentSrc=t,this._imgElement.alt="",this._onLoad=this._onLoad.bind(this),this._imgElement.addEventListener("load",this._onLoad),this.el.appendChild(this._imgElement),this.hide(),this.el.classList.add("ac-video-poster")}},{key:"hide",value:function(){this.el.classList.add(r)}},{key:"show",value:function(){this.el.classList.remove(r)}},{key:"setSrc",value:function(t){var e=t||this._defaultSrc;e!==this._currentSrc&&(this._imgElement.style.display="none",this._imgElement.src=e,this._currentSrc=e)}},{key:"_onLoad",value:function(){this._imgElement.style.display=""}},{key:"getSrc",value:function(){return this._imgElement.src}},{key:"destroy",value:function(){this._imgElement.removeEventListener("load",this._onLoad),this._el=null}}]),t}();e.exports=s},{}],319:[function(t,e,i){"use strict";var n=t("./PosterFrame"),r="/ac/ac-video-posterframe/4.0/images/ac_video_poster_960x540.jpg",s="/ac/ac-video-posterframe/4.0/images/ac_video_poster_960x540_2x.jpg";e.exports=function(t){if(t.src=t.src||(t.is2x?s:r),t.useNativePoster){t.video.setPoster(t.src);var e=!1,i=void 0;return{show:function(){e=!0,i&&(t.video.setPoster(i),i=null)},hide:function(){e=!1},setSrc:function(n){e?n?t.video.setPoster(n):t.video.setPoster(t.src):i=n}}}return new n(t)}},{"./PosterFrame":318}],320:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("@marcom/ac-ajax-xhr"),s=t("@marcom/ac-function/throttle"),o=t("./parseVTT"),a=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._view=e,this._video=i.video,this._refreshTracks=this._refreshTracks.bind(this),this._throttledRefreshCurrentCaption=s(this._refreshCurrentCaption.bind(this,300)),this._addTrackListeners()}return n(t,[{key:"_addTrackListeners",value:function(){this._video.on("addtrack",this._refreshTracks),this._video.on("removetrack",this._refreshTracks),this._video.on("change",this._refreshTracks)}},{key:"_addVideoListeners",value:function(t){if(!t.cues){this._view.setText("");try{r.get(t.src,{complete:function(e){t.cues=o(e.responseText),this._addVideoListeners(t),this._refreshCurrentCaption()}.bind(this),error:function(t){}.bind(this)})}catch(t){}}this._video.on("loadstart",this._refreshTracks),this._video.on("timeupdate",this._throttledRefreshCurrentCaption)}},{key:"_removeVideoListeners",value:function(){this._video.off("loadstart",this._refreshTracks),this._video.off("timeupdate",this._throttledRefreshCurrentCaption)}},{key:"_refreshTracks",value:function(){var t=this._video.getTextTracks();t&&t.length&&(t=t.filter((function(t){return"showing"===t.mode}))),t.length?(this._activeTrack=t[0],this._addVideoListeners(this._activeTrack)):(this._activeTrack=null,this._removeVideoListeners()),this._refreshCurrentCaption()}},{key:"_getCurrentCaptionText",value:function(t){var e=this._activeTrack?this._activeTrack.cues:null;if(!e)return"";if(this._currentCaption&&this._currentCaption.startTime>=t&&this._currentCaption<=t)return this._currentCaption.text;for(var i=0,n=e.length,r=void 0;i<n;){if(e[i].startTime<=t&&e[i].endTime>=t)r=e[i];else if(e[i].startTime>=t)break;i++}return this._currentCaption=r,r?r.text:""}},{key:"_refreshCurrentCaption",value:function(){this._view.setText(this._getCurrentCaptionText(this._video.getCurrentTime()))}},{key:"destroy",value:function(){this._removeVideoListeners()}}]),t}();e.exports=a},{"./parseVTT":327,"@marcom/ac-ajax-xhr":35,"@marcom/ac-function/throttle":156}],321:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=t("../ui/factory/createComponents"),o=t("./TextTracksBehavior"),a=t("../ui/elements/Label"),c=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,l={textTracksPolyfill:{className:"ac-video-player-text-track",view:{classDef:a,options:{}},behavior:{classDef:o}}},u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.container=t.container,i._video=t.video,i._initialize(t),i}return 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)}(e,t),n(e,[{key:"_initialize",value:function(t){this._onTrackChange=this._onTrackChange.bind(this),this.el=document.createElement("div"),this.el.innerHTML=t.template||'<div class="ac-video-player-text-track"></div>',this.el.classList.add("ac-video-player-text-track-container"),this._tracks=t.tracks||[],this._textTrackComponent=s(this.el,l,{video:this._video})}},{key:"_onTrackChange",value:function(){this.trigger("change"),this.el.parentElement||(this._video.getRenderElement().parentElement.appendChild(this.el),this.el.firstElementChild.classList.add("is-visible"))}},{key:"addTrack",value:function(t){this._tracks||(this._tracks=[]);var e=t.mode||"hidden",i=this._onTrackChange;Object.defineProperty(t,"mode",{get:function(){return e},set:function(t){e=t,i()},enumerable:!0,configurable:!0}),this._tracks.push(t),this.trigger("addtrack")}},{key:"clearTracks",value:function(){this._tracks=[],this.trigger("removetrack"),this.trigger("change")}},{key:"getTextTracks",value:function(){return this._tracks}},{key:"trigger",value:function(t,i){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"trigger",this).call(this,t,Object.assign({type:t},i||{}))}},{key:"destroy",value:function(){this._textTrackComponent.destroy(),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(c);e.exports=u},{"../ui/elements/Label":355,"../ui/factory/createComponents":365,"./TextTracksBehavior":320,"@marcom/ac-event-emitter-micro":122}],322:[function(t,e,i){"use strict";var n,r=t("@marcom/useragent-detect");n=r.browser.safari?function(t,e){t.track.mode=e}:function(t,e){t.mode=e};var s=function(t){var e;if(t instanceof HTMLElement)this.el.appendChild(t);else{var i=document.createElement("track");i.src=t.src,i.kind="captions",i.srclang=t.srclang,"en"===i.srclang?i.label=t.label||"English":i.label=t.label||t.srclang&&t.srclang.toUpperCase()||"Unknown CC",r.browser.firefox?(e=this.el.textTracks.length,setTimeout(function(){this.el.appendChild(i),n(this.el.textTracks[e],t.mode||"hidden")}.bind(this),0)):r.os.android?(e=this.el.textTracks.length,this.el.appendChild(i),n(this.el.textTracks[e],t.mode||"hidden")):(this.el.appendChild(i),n(i,t.mode||"hidden")),this.trigger("TextTrackChange")}};e.exports={create:function(t){for(var e=0,i=t?t.length:0;e<i;e++){var n=t[e];s.call(this,n)}},add:s,get:function(){return this.el.textTracks},getEmitter:function(){if(!this._textTracksEmitter){var e=t("../dom-emitter/DOMEmitterMicro");this._textTracksEmitter=new e(this.getTextTracks())}return this._textTracksEmitter},destroy:function(){}}},{"../dom-emitter/DOMEmitterMicro":309,"@marcom/useragent-detect":435}],323:[function(t,e,i){"use strict";var n=t("./TextTracksDOM");e.exports={create:function(t){if(t)if(this._textTracksPolyfill){this._textTracksPolyfill.clearTracks();for(var e=0,i=t.length;e<i;e++)this._textTracksPolyfill.addTrack(t[e])}else this._textTracksPolyfill=new n({video:this,tracks:t,container:this._parentElement})},add:function(t){return this._textTracksPolyfill.addTrack(t)},get:function(){return this._textTracksPolyfill||this._createTextTrackTags([]),this._textTracksPolyfill.getTextTracks()},getEmitter:function(){return this._textTracksPolyfill||this._createTextTrackTags([]),this._textTracksPolyfill},destroy:function(){this._textTracksPolyfill.destroy(),this._textTracksPolyfill=null}}},{"./TextTracksDOM":321}],324:[function(t,e,i){"use strict";var n=t("@marcom/useragent-detect"),r=!n.browser.ie&&!n.browser.edge;e.exports=function(e){var i;return i=!!(e=e||{}).hls||!e.threesixty&&(void 0===e.useNativeCaptions?r:e.useNativeCaptions),t(i?"./TextTracksNative":"./TextTracksPolyfill")}},{"./TextTracksNative":322,"./TextTracksPolyfill":323,"@marcom/useragent-detect":435}],325:[function(t,e,i){"use strict";e.exports=function(t,e){var i=[],n=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var c=o.value;c!==t&&c.language===t.language&&i.push(c)}}catch(t){r=!0,s=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw s}}return i}},{}],326:[function(t,e,i){"use strict";e.exports=function(t){var e=new Set;return t.filter((function(t){return!(e.has(t.language)||"subtitles"!==t.kind&&"captions"!==t.kind&&t.kind)&&(e.add(t.language),!0)}))}},{}],327:[function(t,e,i){"use strict";var n=t("../utils/Time");e.exports=function(t){for(var e,i,r=t.split(/\n/),s=/([\d]{2}:)?[\d]{2}:[\d]{2}.[\d]{3}( --> ){1}([\d]{2}:)?[\d]{2}:[\d]{2}.[\d]{3}/,o=[],a=0,c=r.length;a<c;a++)if(i="",s.test(r[a])){for((e=r[a].split(" --\x3e "))[0]=e[0].split(":").length<3?"00:"+e[0]:e[0],e[1]=e[1].split(":").length<3?"00:"+e[1]:e[1];++a&&a<c&&!s.test(r[a]);)""!==r[a]&&(i+=r[a]+"<br />");i=i.substr(0,i.length-6),a<c&&a--,o.push({startTime:n.stringToNumber(e[0].split(" ")[0]),endTime:n.stringToNumber(e[1].split(" ")[0]),text:i})}return o}},{"../utils/Time":388}],328:[function(t,e,i){"use strict";var n=t("@marcom/ac-string/supplant"),r=t("../utils/Time"),s=t("./localization/Localization"),o=t("./factory/createComponents"),a=t("@marcom/useragent-detect").browser.chrome,c=t("@marcom/ac-feature/isDesktop")(),l=t("./overlays/OverlayContainer"),u=t("./end-state/EndStateItemContainer"),h=t("./compass/Compass"),d=t("./loading-indicator/LoadingIndicator"),p=t("../utils/merge"),m=t("./templates/default-controls.html"),f=function(t){this._initialize(t)},_=f.prototype;_._initialize=function(t){this.el=t.element||document.createElement("div"),this._basePath=t.basePath,this._forceEnglishLabels=t.forceEnglishLabels,this.el.style.display="none",this._template=t.template||m,this._templateData=t.templateData||Object.assign({elementClassPrefix:"controls"}),this._destroyed=!1,this._localize().then(function(){this._destroyed||(this._initUIComponents(t),this.el.style.display=""),"function"==typeof t.readyCallback&&t.readyCallback()}.bind(this))},_._localize=function(){return new Promise(function(t){s.getTranslation({callback:function(e){t(e)}.bind(this),basePath:this._basePath,forceEnglishLabels:this._forceEnglishLabels})}.bind(this)).then(function(t){this._templateData=Object.assign(this._templateData,t)}.bind(this))},_._renderTemplateMarkup=function(){var t=n(this._template,this._templateData),e=this._updateAxTracksSelector.bind(this);this.el.innerHTML=t,this.tracksSelectorContainer=this.el.querySelector(".ac-video-ax-tracks-selector-container"),this.captionsSelectorContainer=this.el.querySelector(".ac-video-captions-selector-container"),this._updateAxTracksSelector(),this._player._videoImpl.on("TextTrackChange",e),this._player.on("AudioTrackChange",e)},_._updateAxTracksSelector=function(){var t=!!this._player.getTextTracks().length,e=!!(this._player.getAudioTracks().length>1);!t&&e?(this.tracksSelectorContainer.classList.add("no-captions"),this.captionsSelectorContainer.classList.add("hidden")):t&&(this.tracksSelectorContainer.classList.remove("no-captions"),this.captionsSelectorContainer.classList.remove("hidden"))},_._initDesktopControls=function(t,e){this._componentCollection=o(t,p(e,{elementClassPrefix:this._templateData.elementClassPrefix,elapsedTimeIndicator:{behavior:{observe:{source:this._player,events:["loadstart","timeupdate","seeking","seeked","durationchange"],update:function(t){if(this._player.isDvr()){var e=this._player.getCurrentTime();t.setText(isNaN(e)?"0:00:00":r.formatTime(e,1/0,2))}else t.setText(r.formatTime(this._player.getCurrentTime(),this._player.getDuration()))}.bind(this)}}},remainingTimeIndicator:{behavior:{observe:{source:this._player,events:["timeupdate","seeking","seeked","durationchange"],update:function(t){t.setText(r.formatTime(this._player.getCurrentTime()-this._player.getDuration(),this._player.getDuration()))}.bind(this)}}},volumeLevel:{view:{options:{value:this._player.getMuted()?0:100*this._player.getVolume()}}},playPauseContainer:{view:{options:{labels:{playing:this._templateData.pause,paused:this._templateData.play,ended:this._templateData.replay}}}},fullScreen:{view:{options:{labels:{initial:this._templateData.fullscreen,on:this._templateData.exitfullscreen,off:this._templateData.fullscreen}}}},pictureInPictureToggle:{view:{options:{labels:{initial:this._templateData.pictureinpicture,on:this._templateData.exitpictureinpicture,off:this._templateData.pictureinpicture}}}}}),{player:this._player,localization:this._templateData})},_._initUIComponents=function(t){this._player=t.player;var e=this.el,i=t.components;e.classList.add(t.className||"ac-video-controls"),a&&(e.style.willChange="transform"),this._renderTemplateMarkup();var n=e.querySelector(".main-controls-container");n&&(t.enableMainControls?(n.classList.add("control-bar-skin-default"),this.mainControlsElement=n):n.parentElement.removeChild(n));var r=e.querySelector(".end-state-container");r&&(this.endState=new u(Object.assign({},{el:r,player:this._player},t.endState))),t.threesixty&&(this.compass=new h({rootElement:e,player:this._player})),this._initDesktopControls(e,i);var s=this._componentCollection.components.socialShare;this.sharingModule=s&&s.length?s[0].behavior.sharingModule:null,this._componentCollection.components.progressBar.length&&(this.scrubberView=this._componentCollection.components.progressBar[0].view),this.playButtonElement=this.el.querySelector(".controls-play-pause-button"),this.axListSelector=this.el.querySelector(".ac-video-ax-tracks-selector-container"),c&&t.enableMainControls&&(this.overlays=new l({el:this.el.querySelector(".ac-video-overlay-container"),player:this._player})),this._loadingIndicator=new d({player:this._player,el:this.el.querySelector(".loading-indicator-container")})},_.destroy=function(){this._componentCollection&&(this._componentCollection.destroy(),this._componentCollection=null),this._loadingIndicator&&(this._loadingIndicator.destroy(),this._loadingIndicator=null),this.overlays&&this.overlays.destroy(),this._destroyed=!0,this._player=null,this._templateData=null},e.exports=f},{"../utils/Time":388,"../utils/merge":392,"./compass/Compass":348,"./end-state/EndStateItemContainer":362,"./factory/createComponents":365,"./loading-indicator/LoadingIndicator":370,"./localization/Localization":373,"./overlays/OverlayContainer":375,"./templates/default-controls.html":379,"@marcom/ac-feature/isDesktop":127,"@marcom/ac-string/supplant":300,"@marcom/useragent-detect":435}],329:[function(t,e,i){"use strict";var n={components:t("./DefaultComponents"),controlsImplementation:t("./ControlBar")};e.exports=function(t){t=t||{};var e=Object.assign({},n,t);return{create:function(i){var r=Object.assign({},e,i);return r.components=t.components||n.components,new r.controlsImplementation(r)}}}},{"./ControlBar":328,"./DefaultComponents":331}],330:[function(t,e,i){"use strict";e.exports=[{name:"small",minWidth:0,maxWidth:569},{name:"medium",minWidth:570,maxWidth:779},{name:"large",minWidth:780,maxWidth:1/0}]},{}],331:[function(t,e,i){"use strict";var n=t("./elements/Button"),r=t("./elements/StatefulButton"),s=t("./elements/ToggleButton"),o=t("./elements/Label"),a=t("./elements/ListSelector"),c=t("./elements/Slider"),l=t("./elements/Container"),u=t("./behaviors/MuteButtonBehavior"),h=t("./behaviors/PlayPauseButtonBehavior"),d=t("./behaviors/PictureInPictureButtonBehavior"),p=t("./behaviors/CaptionsButtonBehavior"),m=t("./behaviors/CaptionsSelectorBehavior"),f=t("./behaviors/AudioTracksSelectorBehavior"),_=t("./behaviors/FullScreenButtonBehavior"),v=t("./behaviors/ProgressBarSliderBehavior"),g=t("./behaviors/VolumeSliderBehavior"),y=t("./behaviors/SharingButtonBehavior"),b=t("./behaviors/SocialContainerBehavior"),w=t("./behaviors/AirPlayButtonBehavior"),E=t("./behaviors/LiveButtonBehavior"),k=t("./elements/mixins/CursorPointer"),x=t("./templates/progress-slider.html"),S=t("./templates/volume-slider.html");e.exports={back30Seconds:{className:"back-30-seconds-button",view:{classDef:n}},gotoLive:{className:"progress-dvr-label-container",view:{classDef:s,options:{states:{initial:"not-live",on:"live",off:"not-live"},labels:{initial:"livestream",on:"livestream",off:"livestream"}}},behavior:{classDef:E}},fullScreen:{className:"full-screen-button",view:{classDef:s,options:{states:{initial:"fullscreen-unsupported",on:"is-fullscreen",off:""},labels:{initial:"fullscreen",on:"exitfullscreen",off:"fullscreen"}}},behavior:{classDef:_}},toggleMuteVolume:{className:"toggle-mute-volume-button",view:{classDef:s,options:{states:{initial:[],on:["is-muted"],off:[]}}},behavior:{classDef:u}},playPauseContainer:{className:"play-pause-button-container",view:{classDef:r,options:{states:{playing:["is-playing"],paused:[],ended:["is-ended"]}}},behavior:{classDef:h}},pictureInPictureToggle:{className:"picture-in-picture-button",view:{classDef:s,options:{states:{initial:["picture-in-picture-unsupported"],on:["is-picture-in-picture"],off:[]},labels:{initial:"pictureinpicture",on:"exitpictureinpicture",off:"pictureinpicture"}}},behavior:{classDef:d}},captionsToggle:{className:"text-tracks-toggle-button",view:{classDef:s,options:{states:{initial:["no-text-tracks"],on:["text-tracks-visible"],off:[]}}},behavior:{classDef:p}},audioTracksSelector:{className:"audio-selector",view:{classDef:a},behavior:{classDef:f}},captionsSelector:{className:"captions-selector",view:{classDef:a},behavior:{classDef:m}},airplayToggle:{className:"airplay-button",view:{classDef:s,options:{states:{initial:["airplay-unsupported"],on:["airplay-active"],off:[]}}},behavior:{classDef:w}},elapsedTimeIndicator:{className:"elapsed-time",view:{classDef:o}},remainingTimeIndicator:{className:"remaining-time",view:{classDef:o}},progressBar:{className:"progress-indicator",view:{classDef:c,options:{template:x,min:0,max:1,mixins:[k],orientation:"horizontal"}},behavior:{classDef:v}},volumeLevel:{className:"volume-level-indicator",view:{classDef:c,options:{template:S,min:0,max:100,mixins:[k],orientation:"vertical"}},behavior:{classDef:g}},sharing:{className:"sharing-button",view:{classDef:r,options:{states:{initial:["sharing-unsupported"],on:["is-sharing"],off:[]}}},behavior:{classDef:y}},socialShare:{className:"social-tray",view:{classDef:l,options:{}},behavior:{classDef:b}}}},{"./behaviors/AirPlayButtonBehavior":332,"./behaviors/AudioTracksSelectorBehavior":333,"./behaviors/CaptionsButtonBehavior":336,"./behaviors/CaptionsSelectorBehavior":337,"./behaviors/FullScreenButtonBehavior":338,"./behaviors/LiveButtonBehavior":339,"./behaviors/MuteButtonBehavior":340,"./behaviors/PictureInPictureButtonBehavior":341,"./behaviors/PlayPauseButtonBehavior":342,"./behaviors/ProgressBarSliderBehavior":343,"./behaviors/SharingButtonBehavior":344,"./behaviors/SocialContainerBehavior":345,"./behaviors/VolumeSliderBehavior":346,"./elements/Button":353,"./elements/Container":354,"./elements/Label":355,"./elements/ListSelector":356,"./elements/Slider":357,"./elements/StatefulButton":358,"./elements/ToggleButton":359,"./elements/mixins/CursorPointer":360,"./templates/progress-slider.html":381,"./templates/volume-slider.html":385}],332:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._player.supportsAirPlay()&&(n._airplayStateChange=n._airplayStateChange.bind(n),n._player.getMediaElement().addEventListener("webkitplaybacktargetavailabilitychanged",n._airplayStateChange),n._updateState=n._updateState.bind(n),n._player.getMediaElement().addEventListener("webkitcurrentplaybacktargetiswirelesschanged",n._updateState)),n}return 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)}(e,t),n(e,[{key:"_airplayStateChange",value:function(t){"available"===t.availability?this._airplayAvailable=!0:this._airplayAvailable=!1,this._updateState()}},{key:"_updateState",value:function(){this._player.getMediaElement().webkitCurrentPlaybackTargetIsWireless?this._view.setState("on"):this._airplayAvailable?this._view.setState("off"):this._view.setState("initial")}},{key:"_onClick",value:function(){this._player.getMediaElement().webkitShowPlaybackTargetPicker()}},{key:"destroy",value:function(){this._player.getMediaElement().removeEventListener("webkitplaybacktargetavailabilitychanged",this._airplayStateChange),this._player.getMediaElement().removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this._updateState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("./ButtonBehavior"));e.exports=s},{"./ButtonBehavior":335}],333:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("./BaseBehavior"),s=t("../localization/LanguageMapping"),o=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._updateState(),n}return 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)}(e,t),n(e,[{key:"_addViewListeners",value:function(){this._onSelected=this._onSelected.bind(this),this._view.on("ItemSelected",this._onSelected)}},{key:"_addPlayerListeners",value:function(){this._updateState=this._updateState.bind(this),this._player.on("AudioTrackChange",this._updateState),this._player.on("loadedmetadata",this._updateState),this._player.on("playing",this._updateState),this._player.on("play",this._updateState)}},{key:"_updateState",value:function(){var t=function(t){var e=[],i=function(t){e.some((function(e){return e.language===t.language&&e.kind===t.kind}))||e.push(t)},n=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)i(o.value)}catch(t){r=!0,s=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw s}}return e}(this._player.getAudioTracks());if(t.length<2)return this._view.setItems([]),void this._view.hide();var e=Array.from(t).map((function(t){var e=t.enabled,i=t.language,n=s[t.language],r=t.label;r||(r="description"===t.kind?n?s[t.language]+" Audio Descriptions":"Audio Descriptions ("+t.language+")":n?s[t.language]:t.language);var o={label:r,language:i,enabled:e};return Object.defineProperty(o,"enabled",{get:function(){return t.enabled},set:function(e){t.enabled=e}}),o}));this._view.setItems(e),this._view.show()}},{key:"_onSelected",value:function(t){var e=this._player.getAudioTracks(),i=t.detail,n=i.label,r=i.language,s=e.find((function(t){return t.label===n&&t.language===r}));e.forEach((function(t){return t.enabled=t===s})),setTimeout(this._updateState)}},{key:"destroy",value:function(){this._player.off("loadedmetadata",this._updateState),this._player.off("playing",this._updateState),this._player.off("play",this._updateState),this._player.off("AudioTrackChange",this._updateState)}}]),e}(r);e.exports=o},{"../localization/LanguageMapping":372,"./BaseBehavior":334}],334:[function(t,e,i){"use strict";e.exports=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._player=i.player,this._view=e,this._addViewListeners&&this._addViewListeners(),this._addPlayerListeners&&this._addPlayerListeners()}},{}],335:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return 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)}(e,t),n(e,[{key:"_initialize",value:function(){this._onClick=this._onClick.bind(this)}},{key:"_addViewListeners",value:function(){this._initialize(),this._view.on("click",this._onClick)}},{key:"_onClick",value:function(t){}},{key:"destroy",value:function(){this._view.off("click",this._onClick)}}]),e}(t("./BaseBehavior"));e.exports=r},{"./BaseBehavior":334}],336:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=t("./ButtonBehavior"),o=t("../../texttracks/getFilteredTextTracks"),a=t("../../utils/Storage"),c=t("@marcom/useragent-detect").browser,l=c.edge||c.ie||c.firefox,u=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._updateState(),n._allowMultiLanguageCaptions=!n._player.options.disableMultiLanguageCaptions,n}return 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)}(e,t),n(e,[{key:"_updateState",value:function(){var t=this._player.getAudioTracks(),e=this._player.getVisibleTextTracks(),i=o(this._player.getTextTracks());e.length||t.length?this._view.setState("on"):i.length?this._view.setState("off"):this._view.setState("initial")}},{key:"_addPlayerListeners",value:function(){this._updateState=this._updateState.bind(this),this._player.on("addtrack",this._updateState),this._player.on("change",this._updateState),this._player.on("removetrack",this._updateState),this._player.on("AudioTrackChange",this._updateState)}},{key:"_onClick",value:function(){var t=this._player.getVisibleTextTracks(),e=o(this._player.getTextTracks()),i=this._player.getAudioTracks();e.length>1&&this._allowMultiLanguageCaptions||i.length>1?this._player.isCaptionsSelectorShowing()?this._player.hideCaptionsSelector():this._player.showCaptionsSelector():1===t.length?(e[0].mode="hidden",a.setItem("cc-disabled",!0)):(e[0].mode="showing",a.removeItem("cc-disabled")),l&&this._player.getMediaElement().textTracks.dispatchEvent(new CustomEvent("change")),setTimeout(this._updateState)}},{key:"destroy",value:function(){this._player.off("addtrack",this._updateState),this._player.off("change",this._updateState),this._player.off("removetrack",this._updateState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(s);e.exports=u},{"../../texttracks/getFilteredTextTracks":326,"../../utils/Storage":387,"./ButtonBehavior":335,"@marcom/useragent-detect":435}],337:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r="__CC_DISABLE",s=t("./BaseBehavior"),o=t("@marcom/useragent-detect").browser,a=o.edge||o.ie||o.firefox,c=t("../localization/Localization"),l=t("../localization/LanguageMapping"),u=t("../../texttracks/getFilteredTextTracks"),h=t("../../texttracks/findMatchingTextTracks"),d=t("../../utils/Storage"),p=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._updateState(),n}return 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)}(e,t),n(e,[{key:"_addViewListeners",value:function(){this._onSelected=this._onSelected.bind(this),this._view.on("ItemSelected",this._onSelected)}},{key:"_updateState",value:function(){var t=this,e=!0,i=u(this._player.getTextTracks()).map((function(i){var n="",r=h(i,t._player.getTextTracks());if(i.label&&"en"!==i.language&&"English"!==i.language&&i.label!==i.language){var s=i.language&&i.language.replace(/_/g,"-");n=i.label+" ("+(l[s]||i.language)+")"}("showing"===i.mode||r.length&&r.some((function(t){return"showing"===t.mode})))&&(e=!1);var o={label:n||i.label||i.language||i.srclang&&("en"===i.srclang.toLowerCase()?"English":i.srclang)||"Unknown CC",language:i.language};return Object.defineProperty(o,"enabled",{get:function(){var t="hidden";return("showing"===i.mode||r.length&&r.some((function(t){return"showing"===t.mode})))&&(t="showing"),"showing"===t},set:function(t){i.mode=t?"showing":"hidden";var e=!0,n=!1,s=void 0;try{for(var o,a=r[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){o.value.mode=t?"showing":"hidden"}}catch(t){n=!0,s=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw s}}}}),o}));this._view.setItems([{label:c.getTranslation().captionsoff,language:r,enabled:e}].concat(i))}},{key:"_addPlayerListeners",value:function(){this._updateState=this._updateState.bind(this),this._player.on("addtrack",this._updateState),this._player.on("change",this._updateState),this._player.on("removetrack",this._updateState)}},{key:"_onSelected",value:function(t){var e=t.detail;this._player.getVisibleTextTracks().forEach((function(t){t.mode="hidden"})),e.language!==r?(e.enabled=!0,d.removeItem("cc-disabled")):d.setItem("cc-disabled",!0),a&&this._player.getMediaElement().textTracks.dispatchEvent(new CustomEvent("change")),setTimeout(this._updateState)}},{key:"destroy",value:function(){this._player.off("addtrack",this._updateState),this._player.off("change",this._updateState),this._player.off("removetrack",this._updateState),this._view.off("ItemSelected",this._onSelected)}}]),e}(s);e.exports=p},{"../../texttracks/findMatchingTextTracks":325,"../../texttracks/getFilteredTextTracks":326,"../../utils/Storage":387,"../localization/LanguageMapping":372,"../localization/Localization":373,"./BaseBehavior":334,"@marcom/useragent-detect":435}],338:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._player.getFullScreenEnabled()&&n._updateState(),n}return 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)}(e,t),n(e,[{key:"_addPlayerListeners",value:function(){this._updateState=this._updateState.bind(this),this._player.on("fullscreen:change",this._updateState)}},{key:"_updateState",value:function(){this._view.setState(this._player.isFullscreen()?"on":"off")}},{key:"_onClick",value:function(){this._player.toggleFullscreen(!this._player.isFullscreen())}},{key:"destroy",value:function(){this._player.off("fullscreen:change",this._updateState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("./ButtonBehavior"));e.exports=s},{"./ButtonBehavior":335}],339:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=t("./ButtonBehavior"),o=t("../../utils/liveStreamLookback"),a=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._updateState=n._updateState.bind(n),n._player.on("timeupdate",n._updateState),n}return 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)}(e,t),n(e,[{key:"_updateState",value:function(){this._player.getDuration()-this._player.getCurrentTime()<o?this._view.setState("on"):this._view.setState("off")}},{key:"_onClick",value:function(){this._player.goToLive()}},{key:"destroy",value:function(){this._player.off("timeupdate",this._updateState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(s);e.exports=a},{"../../utils/liveStreamLookback":390,"./ButtonBehavior":335}],340:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._updateState(),n}return 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)}(e,t),n(e,[{key:"_updateState",value:function(){this._view.setState(this._player.getMuted()?"on":"off")}},{key:"_addPlayerListeners",value:function(){this._updateState=this._updateState.bind(this),this._player.on("volumechange",this._updateState)}},{key:"_onClick",value:function(){this._player.getMuted()?(this._player.setMuted(!1),0===this._player.getVolume()&&this._player.setVolume(.1)):this._player.setMuted(!0)}},{key:"destroy",value:function(){this._player.off("volumechange",this._updateState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("./ButtonBehavior"));e.exports=s},{"./ButtonBehavior":335}],341:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return 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)}(e,t),n(e,[{key:"_initialize",value:function(){this._updateButtonState=this._updateButtonState.bind(this),this._player.supportsPictureInPicture()&&(this._updateButtonState(),this._player.on("webkitpresentationmodechanged",this._updateButtonState)),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_initialize",this).call(this)}},{key:"_onClick",value:function(){this._player.setPictureInPicture(!this._player.isPictureInPicture())}},{key:"_updateButtonState",value:function(){this._view.setState(this._player.isPictureInPicture()?"on":"off")}},{key:"destroy",value:function(){this._player.off("webkitpresentationmodechanged",this._updateButtonState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("./ButtonBehavior"));e.exports=s},{"./ButtonBehavior":335}],342:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._setPlayingState(),n}return 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)}(e,t),n(e,[{key:"_addPlayerListeners",value:function(){this._setPlayingState=this._setPlayingState.bind(this),this._player.on("play",this._setPlayingState),this._player.on("playing",this._setPlayingState),this._player.on("pause",this._setPlayingState),this._player.on("ended",this._setPlayingState)}},{key:"_onClick",value:function(){this._togglePlay()}},{key:"_setPlayingState",value:function(){this._player.getEnded()?this._view.setState("ended"):this._view.setState(this._player.getPaused()?"paused":"playing")}},{key:"_togglePlay",value:function(){this._player.getPaused()||this._player.getEnded()?this._player.play():this._player.pause()}},{key:"destroy",value:function(){this._player.off("play",this._setPlayingState),this._player.off("pause",this._setPlayingState),this._player.off("playing",this._setPlayingState),this._player.off("ended",this._setPlayingState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("./ButtonBehavior"));e.exports=s},{"./ButtonBehavior":335}],343:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("./BaseBehavior"),s=t("@marcom/ac-string/supplant"),o="is-playing",a=t("@marcom/ac-raf-emitter/draw"),c=t("@marcom/ac-raf-emitter/cancelDraw"),l=t("../../utils/liveStreamLookback"),u=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._player.isDvr()?n._liveStreamLookback=l:n._liveStreamLookback=0,n._visible=!1,n._ariaTextTemplate=i.localization.currenttimetext,n._onDurationChange(),n._refreshChapters(),n}return 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)}(e,t),n(e,[{key:"_addViewListeners",value:function(){this._onSliderGrab=this._onSliderGrab.bind(this),this._onSliderChange=this._onSliderChange.bind(this),this._onSliderRelease=this._onSliderRelease.bind(this),this._onChapterClicked=this._onChapterClicked.bind(this),this._onChapterFocusIn=this._onChapterFocusIn.bind(this),this._onChapterFocusOut=this._onChapterFocusOut.bind(this),this._view.on("grab",this._onSliderGrab),this._view.on("chapter:click",this._onChapterClicked),this._view.on("chapter:focusin",this._onChapterFocusIn),this._view.on("chapter:focusout",this._onChapterFocusOut)}},{key:"_addPlayerListeners",value:function(){this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onPlay=this._onPlay.bind(this),this._onPause=this._onPause.bind(this),this._onEnded=this._onEnded.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onProgress=this._onProgress.bind(this),this._refreshChapters=this._refreshChapters.bind(this),this._onRAF=this._onRAF.bind(this),this._player.on("durationchange",this._onDurationChange),this._player.on("loadstart",this._onEnded),this._player.on("ended",this._onEnded),this._player.on("timeupdate",this._onTimeUpdate),this._player.on("progress",this._onProgress),this._player.on("play",this._onPlay),this._player.on("pause",this._onPause),this._player.on("ended",this._onEnded),this._player.on("chapters:change",this._refreshChapters)}},{key:"_onProgress",value:function(){this._view.setBufferedValue(this._player.getBufferedPercentage())}},{key:"_setIsPlaying",value:function(t){t?this._view.setState(o):this._view.clearState(o)}},{key:"_onPlay",value:function(){this._setIsPlaying(!0),this._player.isLive()||(c(this._timeUpdateInterval),this._raf=a(this._onRAF))}},{key:"_onRAF",value:function(){this._onTimeUpdate(),this._timeUpdateInterval=a(this._onRAF)}},{key:"_onPause",value:function(){this._setIsPlaying(!1),c(this._raf),c(this._timeUpdateInterval),this._onTimeUpdate()}},{key:"_onEnded",value:function(){this._onPause(),this._updateSliderPosition(0)}},{key:"_onChapterClicked",value:function(t){this._player.setCurrentTime(t["start-time"])}},{key:"_onChapterFocusIn",value:function(t){this._chapterFocused=!0,this._player.controls.overlays.setPopUpPosition(t["start-time"])}},{key:"_onChapterFocusOut",value:function(t){this._chapterFocused=!1}},{key:"_refreshChapters",value:function(){var t=this._cachedDuration=Math.max(0,this._player.getDuration()-this._liveStreamLookback);t&&!isNaN(t)&&t!==Math.Infinity?this._view.setChapters(this._player.getChapters().map((function(e){var i=e["start-time"]/t*100;return Object.assign({},e,{startTimeInPercentage:i+"%",startTime:i,"start-time":parseFloat(e["start-time"])})}))):this._view.setChapters([])}},{key:"_onSliderGrab",value:function(){this._chapterFocused||(this._player.off("timeupdate",this._onTimeUpdate),c(this._timeUpdateInterval),this._view.off("grab",this._onSliderGrab),this._view.on("change",this._onSliderChange),this._view.on("release",this._onSliderRelease),this._onPause())}},{key:"_onSliderRelease",value:function(){this._chapterFocused||(this._view.off("change",this._onSliderChange),this._view.off("release",this._onSliderRelease),this._view.on("grab",this._onSliderGrab),this._player.on("timeupdate",this._onTimeUpdate),this._player.getPaused()||this._onPlay())}},{key:"_getDuration",value:function(){return this._cachedDuration&&isNaN(this._cachedDuration)||(this._cachedDuration=Math.max(0,this._player.getDuration()-this._liveStreamLookback)),this._cachedDuration}},{key:"_getTimeAsPercent",value:function(){return this._player.getCurrentTime()/this._getDuration()}},{key:"_onDurationChange",value:function(){this._cachedDuration=Math.max(0,this._player.getDuration()-this._liveStreamLookback),this._updateSliderPosition(this._getTimeAsPercent()),this._player.getPaused()||this._onPlay(),this._refreshChapters(),0===this._cachedDuration||isNaN(this._cachedDuration)?this._view.hide():this._view.show()}},{key:"_onSliderChange",value:function(){if(!this._player.getEnded()&&!isNaN(this._getDuration())&&0!==this._getDuration()){var t=this._view.getValue();this._setPlayerCurrentTime(t*this._getDuration()),this._setAriaValueText(t*this._getDuration()),this._updateScrubbedValue()}}},{key:"_onTimeUpdate",value:function(){this._updateSliderPosition(this._getTimeAsPercent())}},{key:"_updateSliderPosition",value:function(t){this._view.setValue(t),this._setAriaValueText(t*this._getDuration()),this._updateScrubbedValue(),this._visible||isNaN(this._getDuration())||(this._view.show(),this._visible=!0)}},{key:"_setAriaValueText",value:function(t){var e=Math.floor(t/60),i=Math.ceil(t%60);this._view.setAriaValueText(s(this._ariaTextTemplate,{minutes:e,seconds:i}))}},{key:"_updateScrubbedValue",value:function(){this._view.setScrubbedValue()}},{key:"_setPlayerCurrentTime",value:function(t){this._player.setCurrentTime(t)}},{key:"_removeEventListeners",value:function(){this._player.chapters&&this._player.chapters.off("change",this._refreshChapters),this._player.off("durationchange",this._onDurationChange),this._player.off("loadstart",this._onEnded),this._player.off("ended",this._onEnded),this._player.off("timeupdate",this._onTimeUpdate),this._player.off("progress",this._onTimeUpdate),this._view.off("change",this._onSliderChange),this._view.off("release",this._onSliderRelease),this._view.off("grab",this._onSliderGrab),this._view.off("chapter:click",this._onChapterClicked),this._view.off("chapter:focusin",this._onChapterFocusIn),this._view.off("chapter:focusout",this._onChapterFocusOut),this._player.off("play",this._onPlay),this._player.off("pause",this._onPause),this._player.off("ended",this._onPause),this._player.off("chapters:change",this._refreshChapters)}},{key:"destroy",value:function(){this._removeEventListeners(),c(this._raf),c(this._timeUpdateInterval),this._view=null}}]),e}(r);e.exports=u},{"../../utils/liveStreamLookback":390,"./BaseBehavior":334,"@marcom/ac-raf-emitter/cancelDraw":247,"@marcom/ac-raf-emitter/draw":249,"@marcom/ac-string/supplant":300}],344:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._player.states&&n._updateState(),n}return 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)}(e,t),n(e,[{key:"_addPlayerListeners",value:function(){this._updateState=this._updateState.bind(this),this._player.states&&this._player.states.on("statechange",this._updateState)}},{key:"_updateState",value:function(){this._stateChanging=!1,this._view.setState("sharing"===this._player.states.getCurrentState()?"on":"off")}},{key:"_onClick",value:function(){this._stateChanging||("sharing"===this._player.states.getCurrentState()?(this._view.setState("off"),this._player.states.setState("none")):(this._view.setState("on"),this._player.states.setState("sharing")),this._stateChanging=!0)}},{key:"destroy",value:function(){this._player.states&&this._player.states.off("statechange",this._updateState),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(t("./ButtonBehavior"));e.exports=s},{"./ButtonBehavior":335}],345:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("./BaseBehavior"),s=t("../sharing/SharingModule"),o=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._updateState(),n}return 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)}(e,t),n(e,[{key:"_updateState",value:function(){this.sharingModule=new s(Object.assign({},{player:this._player,parentView:this._view})),this.sharingModule.setData(this._player.options.sharing),this._view.el.innerHTML="",this._view.el.appendChild(this.sharingModule.el)}}]),e}(r);e.exports=o},{"../sharing/SharingModule":378,"./BaseBehavior":334}],346:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._hideVolume(),n._updateSliderVolumeValue(),n}return 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)}(e,t),n(e,[{key:"_addViewListeners",value:function(){this._showVolume=this._showVolume.bind(this),this._hideVolume=this._hideVolume.bind(this),this._onSliderGrab=this._onSliderGrab.bind(this),this._onSliderChange=this._onSliderChange.bind(this),this._onSliderRelease=this._onSliderRelease.bind(this),this._onFocusChange=this._onFocusChange.bind(this),this._view.on("grab",this._onSliderGrab),this._view.on("focuschange",this._onFocusChange)}},{key:"_addPlayerListeners",value:function(){this._updateSliderVolumeValue=this._updateSliderVolumeValue.bind(this),this._onUserVolumeChange=this._onUserVolumeChange.bind(this),this._player.once("durationchange",this._updateSliderVolumeValue),this._player.on("volumechange",this._updateSliderVolumeValue),this._player.on("uservolumechange",this._onUserVolumeChange)}},{key:"_onSliderGrab",value:function(){this._cachedVolume=this._player.getVolume(),this._player.off("volumechange",this._updateSliderVolumeValue),this._view.off("grab",this._onSliderGrab),this._view.on("change",this._onSliderChange),this._view.on("release",this._onSliderRelease)}},{key:"_onSliderRelease",value:function(){this._setPlayerVolume(this._view.getValue()),this._view.off("change",this._onSliderChange),this._view.off("release",this._onSliderRelease),this._view.on("grab",this._onSliderGrab),this._player.on("volumechange",this._updateSliderVolumeValue)}},{key:"_onSliderChange",value:function(){var t=this._view.getValue();this._setPlayerVolume(t),this._view.setScrubbedValue()}},{key:"_setPlayerVolume",value:function(t){t?(this._player.setMuted(!1),this._player.setVolume(t/100)):(this._player.setMuted(!0),this._player.setVolume(this._cachedVolume))}},{key:"_showVolume",value:function(){this._view.show()}},{key:"_hideVolume",value:function(){this._view.hide()}},{key:"_onUserVolumeChange",value:function(){this._showVolume(),clearTimeout(this._hideVolumeTimer),this._view.isFocused()||(this._hideVolumeTimer=setTimeout(this._hideVolume,1e3))}},{key:"_onFocusChange",value:function(){this._view.isFocused()?this._showVolume():this._hideVolume()}},{key:"_updateSliderVolumeValue",value:function(){if(this._player.getMuted())this._view.setValue(0),this._view.setScrubbedValue();else{var t=this._player.getVolume();this._view.setValue(100*t),this._view.setScrubbedValue()}}},{key:"_removeEventListeners",value:function(){this._player.off("durationchange",this._updateSliderVolumeValue),this._player.off("volumechange",this._updateSliderVolumeValue),this._player.off("uservolumechange",this._onUserVolumeChange),this._view.off("change",this._onSliderChange),this._view.off("release",this._onSliderRelease),this._view.off("grab",this._onSliderGrab)}},{key:"destroy",value:function(){this._removeEventListeners()}}]),e}(t("./BaseBehavior"));e.exports=r},{"./BaseBehavior":334}],347:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=t("@marcom/ac-string/supplant"),o=t("../localization/Localization"),a=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this));i.el=document.createElement("button"),i.el.className="ac-slider-chapter-container";var n=t.titles.find((function(t){return"en"===t.language}))||t.titles[0],r=o.getTranslation().chapter;i._chapterMarker=document.createElement("div"),i._chapterMarker.classList.add("ac-slider-chapter-marker"),"0%"===t.startTimeInPercentage&&i.el.classList.add("hidden-chapter"),i.el.style.left=t.startTimeInPercentage,i.el.setAttribute("data-acv-chapter-time",t["start-time"]),i.el.tabIndex=0,i._chapterData=t,i.el.appendChild(i._chapterMarker);var a=t["start-time"],c=Math.floor(a/60),l=Math.ceil(a%60);return i._span=document.createElement("span"),i._span.innerText=s(r,{chaptertitle:n.title,chaptertime:s(o.getTranslation().currenttimetext,{minutes:c,seconds:l})}),i.el.firstElementChild.appendChild(i._span),i._onClick=i._onClick.bind(i),i._onMouseOver=i._onMouseOver.bind(i),i._onMouseOut=i._onMouseOut.bind(i),i._onFocusIn=i._onFocusIn.bind(i),i._onFocusOut=i._onFocusOut.bind(i),i._onMouseDown=i._onMouseDown.bind(i),i.el.addEventListener("click",i._onClick),i.el.addEventListener("focusin",i._onFocusIn),i.el.addEventListener("focusout",i._onFocusOut),i.el.addEventListener("mouseover",i._onMouseOver),i.el.addEventListener("mouseout",i._onMouseOut),i.el.addEventListener("mousemove",i._onMouseMove),i.el.addEventListener("mousedown",i._onMouseDown),i}return 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)}(e,t),n(e,[{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.trigger("click",this._chapterData)}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.trigger("mouseover",this._chapterData)}},{key:"_onMouseOut",value:function(t){this.trigger("mouseout",this._chapterData)}},{key:"_onMouseMove",value:function(t){t.stopPropagation()}},{key:"_onMouseDown",value:function(t){t.stopPropagation()}},{key:"_onFocusIn",value:function(t){this.trigger("focusin",this._chapterData)}},{key:"_onFocusOut",value:function(t){this.trigger("focusout",this._chapterData)}},{key:"destroy",value:function(){this.el.removeEventListener("click",this._onClick),this.el.removeEventListener("focusin",this._onFocusIn),this.el.removeEventListener("focusout",this._onFocusOut),this.el.removeEventListener("mouseover",this._onMouseOver),this.el.removeEventListener("mouseout",this._onMouseOut),this.el.removeEventListener("mousemove",this._onMouseMove)}}]),e}(r);e.exports=a},{"../localization/Localization":373,"@marcom/ac-event-emitter-micro":122,"@marcom/ac-string/supplant":300}],348:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("@marcom/ac-keyboard/Keyboard"),s=t("@marcom/useragent-detect"),o=s.os.ios||s.os.android,a=t("@marcom/ac-360"),c=360,l=180,u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._rootElement=e.rootElement,this._player=e.player,this._360=this._player.get360(),this.el=this._rootElement.querySelector(".compass-wrapper"),this.compassRing=this.el.querySelector(".compass-ring"),this.compassField=this.el.querySelector(".compass-field"),this.compass=this.el.querySelector(".compass"),this.compassArrows=this.el.querySelector(".compass-arrows"),this.compassArrowLeft=this.el.querySelector(".compass-arrow-left"),this.compassArrowRight=this.el.querySelector(".compass-arrow-right"),this.compassArrowTop=this.el.querySelector(".compass-arrow-top"),this.compassArrowBottom=this.el.querySelector(".compass-arrow-bottom"),this._keyboard=new r(this.el),this._arrowControls=this._player.get360().arrowControls,this._bindMethods(),this._addEventListeners()}return n(t,[{key:"_bindMethods",value:function(){this._onFocusIn=this._onFocusIn.bind(this),this._onFocusOut=this._onFocusOut.bind(this),this._onCompassClick=this._onCompassClick.bind(this),this._onCompassMouseEnter=this._onCompassMouseEnter.bind(this),this._onCompassMouseLeave=this._onCompassMouseLeave.bind(this),this._onCompassFocusIn=this._onCompassFocusIn.bind(this),this._onCompassFocusOut=this._onCompassFocusOut.bind(this),this._onRotationTransitionEnd=this._onRotationTransitionEnd.bind(this),this._onCompassArrowsClick=this._onCompassArrowsClick.bind(this),this._on360PositionChange=this._on360PositionChange.bind(this),this._on360IconUpdate=this._on360IconUpdate.bind(this),this._transitionTiming=this._transitionTiming.bind(this)}},{key:"_addEventListeners",value:function(){this._player.once("controlsready",function(){o||(this.compass.addEventListener("mouseenter",this._onCompassMouseEnter),this.compass.addEventListener("mouseleave",this._onCompassMouseLeave)),this.el.addEventListener("focusin",this._onFocusIn),this.el.addEventListener("focusout",this._onFocusOut),this.compass.addEventListener("click",this._onCompassClick),this.compass.addEventListener("focusin",this._onCompassFocusIn),this.compass.addEventListener("focusout",this._onCompassFocusOut),this.compassArrows.addEventListener("click",this._onCompassArrowsClick),this._360.on(a.POSITION_CHANGE,this._on360PositionChange),this._360.on(a.ROTATION_START,this._transitionTiming),this._360.on(a.ROTATION_COMPLETE,this._onRotationTransitionEnd)}.bind(this))}},{key:"_removeEventListeners",value:function(){this.el.removeEventListener("focusin",this._onFocusIn),this.el.removeEventListener("focusout",this._onFocusOut),this.compass.removeEventListener("click",this._onCompassClick),this.compass.removeEventListener("focusin",this._onCompassFocusIn),this.compass.removeEventListener("focusout",this._onCompassFocusOut),this.compass.removeEventListener("mouseenter",this._onCompassMouseEnter),this.compass.removeEventListener("mouseleave",this._onCompassMouseLeave),this.compassArrows.removeEventListener("click",this._onCompassArrowsClick),this._360.off(a.POSITION_CHANGE,this._on360PositionChange),this._360.off(a.ROTATION_START,this._transitionTiming),this._360.off(a.ROTATION_COMPLETE,this._onRotationTransitionEnd)}},{key:"_showCompassArrows",value:function(){this.el.classList.add("show-arrows")}},{key:"_hideCompassArrows",value:function(){this.el.classList.remove("show-arrows")}},{key:"_onRotationTransitionEnd",value:function(){this._compassIsRotating=!1,this._360.off(a.ROTATION_UPDATE,this._on360IconUpdate)}},{key:"_transitionTiming",value:function(t){var e=t.time,i=this._get360HorizontalAngle();this._compassIsRotating=!0,this.compassRing.style.transition="transform "+e+"ms cubic-bezier(0.25,0.1,0,1)",this.compassField.style.transition="transform "+e+"ms cubic-bezier(0.25,0.1,0,1)";var n="rotate(360deg)";i>l||i<-180?(this.compassRing.style.transform=n,this.compassField.style.transform=n):(this.compassRing.style.transform="rotate(0deg)",this.compassField.style.transform="rotate(0deg)")}},{key:"_on360IconUpdate",value:function(t){this.compassRing.style.transition="transform 0.1s ease",this.compassRing.style.transform="rotate("+t.currentPosition.lon+"deg)",this.compassField.style.transition="transform 0.1s ease",this.compassField.style.transform="rotate("+t.currentPosition.lon+"deg)"}},{key:"_onCompassClick",value:function(t){this._compassIsRotating||(this._player.get360().isAtOrigin?(this._360.on(a.ROTATION_UPDATE,this._on360IconUpdate),this._player.get360().oscillateLongitude()):this._player.panToOrigin())}},{key:"_onCompassArrowsClick",value:function(t){switch(t.target){case this.compassArrowLeft:this._arrowControls.leftArrowDown(t),this._arrowControls.leftArrowUp(t);break;case this.compassArrowRight:this._arrowControls.rightArrowDown(t),this._arrowControls.rightArrowUp(t);break;case this.compassArrowTop:this._arrowControls.upArrowDown(t),this._arrowControls.upArrowUp(t);break;case this.compassArrowBottom:this._arrowControls.downArrowDown(t),this._arrowControls.downArrowUp(t)}}},{key:"_onFocusIn",value:function(t){t.target!==this.compass&&this._showCompassArrows()}},{key:"_onFocusOut",value:function(t){this._hideCompassArrows()}},{key:"_onCompassFocusIn",value:function(t){this._rotateFieldOfViewToOrigin()}},{key:"_onCompassFocusOut",value:function(t){var e=this._get360HorizontalAngle();this.compassField.style.transform="rotate("+e+"deg)"}},{key:"_rotateFieldOfViewToOrigin",value:function(){var t=this._get360HorizontalAngle();this.compassField.style.transition="transform 0.3s ease",this.compassField.style.transform=t>l?"rotate(360deg)":t<-180?"rotate(-360deg)":"rotate(0deg)"}},{key:"_onCompassMouseEnter",value:function(t){this._hovering=!0,this._compassIsRotating||this._rotateFieldOfViewToOrigin()}},{key:"_onCompassMouseLeave",value:function(t){if(this._hovering=!1,!this._compassIsRotating){var e=this._get360HorizontalAngle();this.compassField.style.transition="transform 0.3s ease",this.compassField.style.transform="rotate("+e+"deg)"}}},{key:"_on360PositionChange",value:function(){var t=this._get360HorizontalAngle();this.compassRing.style.transition="none",this.compassRing.style.transform="rotate("+t+"deg)",this._hovering||(this.compassField.style.transition="none",this.compassField.style.transform="rotate("+t+"deg)")}},{key:"_get360HorizontalAngle",value:function(){return this._player.get360().position.lon%c}},{key:"destroy",value:function(){this._removeEventListeners()}}]),t}();e.exports=u},{"@marcom/ac-360":14,"@marcom/ac-keyboard/Keyboard":303,"@marcom/useragent-detect":435}],349:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._player=e.player,this.el=this._player.el,this._showControls=e.showControls,this._hideControls=e.hideControls,this._raiseControls=e.raiseControls,this._lowerControls=e.lowerControls,this._sendMouseDown=e.sendMouseDown,this._controls=this._player.controls,this._controlsVisible=e.controlsVisible,this._controlsTimeoutDuration=e.controlsTimeoutDuration,this._keyboardControl=e.keyboardControl,this._lastMouseCoords={},this._elementEmitter=e.elementEmitter,this._bindMethods(),this._addEventListeners()}return n(t,[{key:"_bindMethods",value:function(){this._onUserInteraction=this._onUserInteraction.bind(this),this._onFullscreenChange=this._onFullscreenChange.bind(this),this._onFullscreenWillExit=this._onFullscreenWillExit.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseLeave=this._onMouseLeave.bind(this),this._onClick=this._onClick.bind(this),this._onFocusIn=this._onFocusIn.bind(this),this._onFocusOut=this._onFocusOut.bind(this),this._onUserInteractionTimeout=this._onUserInteractionTimeout.bind(this)}},{key:"_addEventListeners",value:function(){this._controls.el.addEventListener("mousemove",this._onUserInteraction,!0),this._controls.el.addEventListener("click",this._onClick,!0),this._player.on("fullscreen:change",this._onFullscreenChange),this._player.on("fullscreen:willexit",this._onFullscreenWillExit),"onmouseleave"in this.el?this._controls.el.addEventListener("mouseleave",this._onMouseLeave):this._controls.el.addEventListener("mouseout",this._onMouseOut,!0),this._keyboardControl&&this._keyboardControl.on("keyboardinteraction",this._onUserInteraction),this._elementEmitter.on("focusin",this._onFocusIn),this._elementEmitter.on("focusout",this._onFocusOut)}},{key:"_removeEventListeners",value:function(){this._controls.el.removeEventListener("mousemove",this._onUserInteraction,!0),this._controls.el.removeEventListener("click",this._onClick,!0),this._player.off("fullscreen:change",this._onFullscreenChange),this._player.off("fullscreen:willexit",this._onFullscreenWillExit),"onmouseleave"in this.el?this._controls.el.removeEventListener("mouseleave",this._onMouseLeave):this._controls.el.removeEventListener("mouseout",this._onMouseOut,!0),this._keyboardControl&&this._keyboardControl.off("keyboardinteraction",this._onUserInteraction),this._elementEmitter.off("focusin",this._onFocusIn),this._elementEmitter.off("focusout",this._onFocusOut)}},{key:"_shouldIgnoreUserInteraction",value:function(t){return!!(t&&"focusin"!==t.type&&t.target&&this._isActiveArea(t.target))}},{key:"_onUserInteraction",value:function(t,e){!t||"click"!==t.type&&"focusin"!==t.type||this._player.isCaptionsSelectorShowing()&&!t.target.classList.contains("controls-text-tracks-toggle-button")&&"radio"!==t.target.getAttribute("role")&&"radiogroup"!==t.target.getAttribute("role")&&this._player.hideCaptionsSelector(),!this._player.getCurrentSrc()||this._preventUserInteraction||!e&&t&&"mousemove"===t.type&&this._lastMouseCoords.x===t.screenX&&this._lastMouseCoords.y===t.screenY||(t&&t.pageX&&(this._lastMouseCoords={x:t.screenX,y:t.screenY}),this._showControls(),this._raiseControls(),clearTimeout(this._userInteractionTimeout),this._shouldIgnoreUserInteraction(t)||(this._userInteractionTimeout=window.setTimeout(this._onUserInteractionTimeout,this._controlsTimeoutDuration)))}},{key:"_onUserInteractionTimeout",value:function(){this._hideControls()}},{key:"_onMouseLeave",value:function(t){window.clearTimeout(this._userInteractionTimeout),this._hideControls(),this._lowerControls(),this._lastMouseCoords={}}},{key:"_onMouseOut",value:function(t){this._controls.el.contains(t.target)||t.target===this._controls.el||this._onMouseLeave()}},{key:"_isActiveArea",value:function(t){for(;t!==this.el;){if(t.hasAttribute("data-acv-active-area"))return!0;t=t.parentNode}return!1}},{key:"_onClick",value:function(t){this._hasFocus=!1,this._onUserInteraction(t)}},{key:"_onFullscreenWillExit",value:function(){this.controls&&(this.controls.el.display="none")}},{key:"_onFullscreenChange",value:function(){var t=this;this.controls&&(this.controls.el.display=""),this._hideControls(),this._lowerControls(),this._preventUserInteraction=!0,this._fullscreenChangeTimeout=setTimeout((function(){t._preventUserInteraction=!1,t._player.refreshSize()}),750),this._player.refreshSize()}},{key:"_onFocusIn",value:function(t){clearTimeout(this._focusOutTimer),this._focusOutTimer=null,this._hasFocus=!0,this._onUserInteraction(t)}},{key:"_onFocusOut",value:function(t){var e=this;this._focusOutTimer=setTimeout((function(){e._hasFocus&&!e.el.contains(document.activeElement)&&(e._hasFocus=!1,e._hideControls(),e._lowerControls())}),100)}},{key:"destroy",value:function(){clearTimeout(this._focusOutTimer),clearTimeout(this._fullscreenChangeTimeout),clearTimeout(this._userInteractionTimeout),this._removeEventListeners()}}]),t}();e.exports=r},{}],350:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=t("./DefaultControlsInteraction"),o=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i._showCompass=t.showCompass,i._hideCompass=t.hideCompass,i._threesixtyElementsTimeoutDuration=t.threesixtyElementsTimeoutDuration||3e3,i._dragEndThreshold=500,i._mouseDownPosition=null,i}return 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)}(e,t),n(e,[{key:"_bindMethods",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_bindMethods",this).call(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onDragging=this._onDragging.bind(this),this._onClick=this._onClick.bind(this)}},{key:"_addEventListeners",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_addEventListeners",this).call(this),this._controls.el.addEventListener("mousedown",this._onMouseDown),this._controls.el.addEventListener("click",this._onClick)}},{key:"_removeEventListeners",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_removeEventListeners",this).call(this),this._controls.el.removeEventListener("mousedown",this._onMouseDown)}},{key:"_onUserInteraction",value:function(t){this._userWasRecentlyDragging||t&&"mousemove"===t.type&&this._lastMouseCoords.x===t.screenX&&this._lastMouseCoords.y===t.screenY||this._dragging||(this._showCompass(),clearTimeout(this._userHideMouse),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onUserInteraction",this).call(this))}},{key:"_onUserInteractionTimeout",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onUserInteractionTimeout",this).call(this),clearTimeout(this._userHideMouse),this._userHideMouse=setTimeout((function(){t._hideCompass()}),this._threesixtyElementsTimeoutDuration)}},{key:"_onDragging",value:function(t){var e=this;!this._dragging&&this._isActiveArea(t.target)||(this._dragging=!0,this._player.el.classList.add("dragging"),this._player.el.classList.add("recently-dragging"),this._recentDragTimeout=setTimeout((function(){e._dragging&&(e._hideControls(),e._userWasRecentlyDragging=!0,clearTimeout(e._dragTimer),e._dragTimer=setTimeout((function(){e._userWasRecentlyDragging=!1,e._player.el.classList.remove("recently-dragging")}),e._dragEndThreshold))}),30),clearTimeout(this._userInteractionTimeout),clearTimeout(this._userHideMouse))}},{key:"_isDraggable",value:function(t){return-1!==[this._player.controls.compass.el,this._player.controls.playButtonElement].indexOf(t)||this._player.controls.compass.el.contains(t)}},{key:"_onMouseDown",value:function(t){this._isActiveArea(t.target)&&this._controlsVisible()&&!this._isDraggable(t.target)||!this._isPlayingState()||(this._showControls(),clearTimeout(this._userHideMouse),clearTimeout(this._recentDragTimeout),this._player.el.classList.remove("dragging"),this._player.el.classList.remove("recently-dragging"),this._mouseDownPosition={x:t.x,y:t.y},window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onDragging),this._sendMouseDown(t))}},{key:"_onMouseUp",value:function(t){window.removeEventListener("mousemove",this._onDragging),window.removeEventListener("mouseup",this._onMouseUp),this._dragging&&this._onUserInteractionTimeout(),this._player.el.contains(t.target)||this._hideCompass(),this._player.el.classList.remove("dragging"),this._dragging=!1}},{key:"_onMouseLeave",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onMouseLeave",this).call(this),this._userWasRecentlyDragging=!1,this._dragging||(clearTimeout(this._userHideMouse),this._hideCompass())}},{key:"_onClick",value:function(t){this._player.controls.compass.el.contains(t.target)&&this._userWasRecentlyDragging&&t.stopPropagation(),t.target!==this._player.controls.playButtonElement.parentElement&&t.target!==this._controls.el.firstElementChild||null===this._mouseDownPosition||this._mouseDownPosition.x!==t.x||this._mouseDownPosition.y!==t.y||(this._mouseDownPosition=null,this._mouseDownTime=1/0,this._dragging=!1,this._userWasRecentlyDragging=!1,clearTimeout(this._dragTimer),clearTimeout(this._recentDragTimeout))}},{key:"_isPlayingState",value:function(){return!this._player.controls.el.classList.contains("start-state")&&!this._player.controls.el.classList.contains("end-state")}}]),e}(s);e.exports=o},{"./DefaultControlsInteraction":349}],351:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i._controlsVisible=t.controlsVisible,i}return 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)}(e,t),n(e,[{key:"_bindMethods",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_bindMethods",this).call(this),this._onTouchStart=this._onTouchStart.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onClick=this._onClick.bind(this)}},{key:"_addEventListeners",value:function(){this._controls.el.addEventListener("touchstart",this._onTouchStart,{passive:!1}),this._controls.el.addEventListener("click",this._onClick),this._controls.el.addEventListener("focusin",this._onFocusIn),this._controls.el.addEventListener("focusout",this._onFocusOut)}},{key:"_removeEventListeners",value:function(){this._controls.el.removeEventListener("touchstart",this._onTouchStart),this._controls.el.removeEventListener("touchend",this._onTouchEnd),this._controls.el.removeEventListener("click",this._onClick),this._controls.el.removeEventListener("focusin",this._onFocusIn),this._controls.el.removeEventListener("focusout",this._onFocusOut)}},{key:"_onDragging",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onDragging",this).call(this,t)}},{key:"_shouldIgnoreUserInteraction",value:function(t){return!1}},{key:"_onClick",value:function(t){t.target!==this._player.controls.compass.compassView&&(this._controlsVisible()?this._isActiveArea(t.target)||(this._hideControls(),this._hideCompass()):this._onUserInteraction(t))}},{key:"_onTouchStart",value:function(t){t.target!==this._player.controls.playButtonElement&&t.target!==this._controls.el.firstElementChild&&t.target!==this._player.controls.compass.compassView&&t.target!==this._player.controls.playButtonElement||(document.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchmove",this._onDragging),this._showCompass(),this._touchDownTime=Date.now(),this._sendMouseDown(t))}},{key:"_onTouchEnd",value:function(t){document.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchmove",this._onDragging),this._onMouseUp(t)}}]),e}(t("./ThreeSixtyControlsInteraction"));e.exports=s},{"./ThreeSixtyControlsInteraction":350}],352:[function(t,e,i){"use strict";var n=t("@marcom/useragent-detect"),r=n.os.ios||n.os.android,s=t("./DefaultControlsInteraction"),o=t("./ThreeSixtyControlsInteraction"),a=t("./ThreeSixtyMobileControlsInteraction");e.exports=function(t){return t.threesixty?r?new a(t):new o(t):new s(t)}},{"./DefaultControlsInteraction":349,"./ThreeSixtyControlsInteraction":350,"./ThreeSixtyMobileControlsInteraction":351,"@marcom/useragent-detect":435}],353:[function(t,e,i){"use strict";var n=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return 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)}(e,t),e}(t("../../dom-emitter/DOMEmitterMicro"));e.exports=n},{"../../dom-emitter/DOMEmitterMicro":309}],354:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e}return n(t,[{key:"show",value:function(){this.el.classList.remove("hidden")}},{key:"hide",value:function(){this.el.classList.add("hidden")}},{key:"destroy",value:function(t){}}]),t}();e.exports=r},{}],355:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e}return n(t,[{key:"setText",value:function(t){this.el.innerHTML=t}}]),t}();e.exports=r},{}],356:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("../../dom-emitter/DOMEmitterMicro"),s=t("@marcom/ac-keyboard/Keyboard"),o=t("@marcom/ac-keyboard/keyMap"),a=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.el=t,i._keyboard=new s(i.el),i._addEventListeners(),i}return 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)}(e,t),n(e,[{key:"_addEventListeners",value:function(){this._onClick=this._onClick.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this.el.addEventListener("click",this._onClick),this._keyboard.onDown(o.ARROW_UP,this._onKeyDown),this._keyboard.onDown(o.ARROW_DOWN,this._onKeyDown)}},{key:"_removeEventListeners",value:function(){this.el.removeEventListener("click",this._onClick),this._keyboard.onDown(o.ARROW_UP,this._onKeyDown),this._keyboard.onDown(o.ARROW_DOWN,this._onKeyDown)}},{key:"setItems",value:function(t){var e=this,i=void 0;this.el.innerHTML="",t.forEach((function(t){var n=document.createElement("li");n.setAttribute("role","radio"),t.enabled?(n.classList.add("enabled"),n.setAttribute("aria-checked","true"),n.setAttribute("tabIndex",0),i=n):(n.setAttribute("aria-checked","false"),n.setAttribute("tabIndex",-1)),n.innerText=t.label,n.acvMetadata=t,e.el.appendChild(n)})),i&&i.focus()}},{key:"_onKeyDown",value:function(t){var e=t.target,i=!1;parseInt(t.keyCode)===o.ARROW_DOWN?i=e.nextSibling:parseInt(t.keyCode)===o.ARROW_UP&&(i=e.previousSibling),i&&(this.trigger("ItemSelected",i.acvMetadata),t.preventDefault(),t.stopPropagation())}},{key:"_onClick",value:function(t){this.el!==t.target&&this.el.contains(t.target)&&this.trigger("ItemSelected",t.target.acvMetadata)}},{key:"show",value:function(){this.el.parentElement.classList.remove("hidden")}},{key:"hide",value:function(){this.el.parentElement.classList.add("hidden")}},{key:"destroy",value:function(){this._removeEventListeners()}}]),e}(r);e.exports=a},{"../../dom-emitter/DOMEmitterMicro":309,"@marcom/ac-keyboard/Keyboard":303,"@marcom/ac-keyboard/keyMap":306}],357:[function(t,e,i){"use strict";var n=t("@marcom/ac-slider").Slider,r=t("../chapters/ChapterView"),s="ac-slider-inactive",o="invert-element",a=function(t,e){if(this.el=t,this._min=e.min||0,this._max=e.max||1,e.mixins)for(var i=e.mixins.slice(0);i.length;)Object.assign(this,i.pop());this._slider=new n(this.el,{template:e.template,min:this._min,max:this._max,step:isNaN(+this.el.getAttribute("step"))?this.el.getAttribute("step"):+this.el.getAttribute("step"),value:void 0!==e.value?e.value:+this.el.getAttribute("value"),orientation:e.orientation,renderedPosition:!0,keyboardContext:this.el}),this._onFocusChange=this._onFocusChange.bind(this),this._setHoveringValue=this._setHoveringValue.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onMouseLeave=this._onMouseLeave.bind(this),this._onChapterClicked=this._onChapterClicked.bind(this),this._onChapterFocusIn=this._onChapterFocusIn.bind(this),this._onChapterFocusOut=this._onChapterFocusOut.bind(this),this._slider.el.addEventListener("blur",this._onFocusChange),this._slider.el.addEventListener("focus",this._onFocusChange),this._slider.el.addEventListener("mouseout",this._onFocusChange),this._onGrab=this._onGrab.bind(this),this._onRelease=this._onRelease.bind(this),this._slider.on("grab",this._onGrab),this._slider.on("release",this._onRelease),this._scrubbedEl=this.el.querySelector(".ac-slider-scrubbed"),this._notchEl=this.el.querySelector(".ac-slider-hover-notch"),this._chapterContainer=this.el.querySelector(".ac-slider-chapters-track"),this._axTrack=this.el.querySelector(".ac-slider-ax-track"),this._bufferedTrack=this.el.querySelector(".ac-slider-buffered"),this._notchEl&&(this._slider.el.addEventListener("mouseover",this._onMouseOver),this._slider.el.addEventListener("mouseleave",this._onMouseLeave),this._slider.el.addEventListener("mousemove",this._setHoveringValue)),this._axTrack&&(this._axTrack.tabIndex=0,this._slider.el.tabIndex=-1,this._slider.el.setAttribute("aria-hidden",""),this._slider.el.removeAttribute("aria-label"),this._slider.el.removeAttribute("role")),e.value&&requestAnimationFrame(function(){this._slider&&this.setValue(e.value)}.bind(this))},c=a.prototype;c.on=function(){return this._slider.on.apply(this._slider,arguments)},c.off=function(){return this._slider.off.apply(this._slider,arguments)},c.trigger=function(){return this._slider.trigger.apply(this._slider,arguments)},c.setValue=function(t){return this._axTrack&&this._axTrack.setAttribute("aria-valuenow",t),this._slider.setValue.call(this._slider,t)},c.setAriaValueText=function(t){this._axTrack?this._axTrack.setAttribute("aria-valuetext",t):this._slider.el.setAttribute("aria-valuetext",t)},c.setMin=function(t){this._min=t,this._slider.setMin(t)},c.setMax=function(t){this._max=t,this._slider.setMax(t)},c._onMouseOver=function(){this._slider.el.classList.add("hover")},c._onMouseLeave=function(){this._slider.el.classList.remove("hover")},c._onFocusChange=function(){setTimeout(function(){this.trigger("focuschange")}.bind(this),0)},c.isFocused=function(){return this._slider.el===document.activeElement&&this._hasFocusOutline()},c._hasFocusOutline=function(){return"none"!==getComputedStyle(this._slider.el).getPropertyValue("outline-style")},c.getValue=function(){return this._slider.getValue.apply(this._slider,arguments)},c.getMax=function(){return this._max},c.setScrubbedValue=function(){this._chapters&&this._checkCollisionsSetValue(),"horizontal"===this._slider.getOrientation()?this._scrubbedEl.style.left=this._slider.thumbElement.style.left:this._scrubbedEl.style.bottom=this._slider.thumbElement.style.bottom},c.setBufferedValue=function(t){this._bufferedTrack.style.left=t+"%"},c._checkCollisionsSetValue=function(){for(var t=0;t<this._chapters.length;t++){var e=this._chapters[t].el.children[0],i=parseInt(this._chapters[t].el.style.left)<this.getValue()/this.getMax()*100;this._setInlineBackgroundColor(!i,e)}},c._setHoveringValue=function(t){var e=this.getClientXValue(t,this._notchEl),i=e>this.getValue();this._notchEl.style.left=e/this.getMax()*100+"%",this._setInlineBackgroundColor(i,this._notchEl)},c._setInlineBackgroundColor=function(t,e){t?e.classList.remove(o):e.classList.add(o)},c._onChapterClicked=function(t){this.trigger("chapter:click",t),this._slider.thumbElement.style.pointerEvents=""},c._onChapterFocusIn=function(t){this._notchEl.classList.add("hidden"),this._slider.thumbElement.style.pointerEvents="none",this.trigger("chapter:focusin",t)},c._onChapterFocusOut=function(t){this._notchEl.classList.remove("hidden"),this._slider.thumbElement.style.pointerEvents="",this.trigger("chapter:focusout",t)},c._onGrab=function(){this.forceCursorPointer(),this.setScrubbedValue()},c._onRelease=function(){this.disableForcedCursorPointer(),this.setScrubbedValue()},c.setChapters=function(t){var e=this;this._chapters&&this._chapters.forEach((function(t){t.off("click",e._onChapterClicked),t.off("focusin",e._onChapterFocusIn),t.off("focusout",e._onChapterFocusOut),t.off("mouseover",e._onChapterFocusIn),t.off("mouseout",e._onChapterFocusOut),t.destroy()})),this._chapterContainer.innerHTML="",this._chapters=[];for(var i=0;i<t.length;i++)if(t[i].startTime<100){var n=new r(t[i]);n.on("click",this._onChapterClicked),n.on("focusin",this._onChapterFocusIn),n.on("focusout",this._onChapterFocusOut),n.on("mouseover",this._onChapterFocusIn),n.on("mouseout",this._onChapterFocusOut),this._chapters.push(n),this._chapterContainer.appendChild(n.el)}},c.show=function(){this.el.classList.remove(s)},c.hide=function(){this.el.classList.add(s)},c.setState=function(t){this.el.classList.add(t)},c.clearState=function(t){this.el.classList.remove(t)},c.getClientXValue=function(t,e){return this._slider.getClientXValue(t,e)},c.destroy=function(){var t=this;this._chapters&&this._chapters.forEach((function(e){e.off("click",t._onChapterClicked),e.off("focusin",t._onChapterFocusIn),e.off("focusout",t._onChapterFocusOut),e.off("mouseover",t._onChapterFocusIn),e.off("mouseout",t._onChapterFocusOut),e.destroy()})),this._slider.el.removeEventListener("mousemove",this._setHoveringValue),this._slider.el.removeEventListener("mouseleave",this._onMouseOver),this._slider.el.removeEventListener("mouseout",this._onMouseLeave),this._slider.el.removeEventListener("blur",this._onFocusChange),this._slider.el.removeEventListener("focus",this._onFocusChange),this._slider.el.removeEventListener("mouseout",this._onFocusChange),this._slider.off("grab",this._onGrab),this._slider.off("release",this._onRelease),this._slider.destroy(),this._slider=null},e.exports=a},{"../chapters/ChapterView":347,"@marcom/ac-slider":267}],358:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n._states=i.states||{},n._labels=i.labels,n._focusTarget=n.el.querySelector("button")||n.el,n._states&&n._states.initial&&n.setState("initial"),n}return 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)}(e,t),n(e,[{key:"setState",value:function(t){this._currentState&&this._currentState!==t&&this._states[this._currentState].length&&this.el.classList.remove(this._states[this._currentState]),this._currentState=t,this._labels&&this._labels[this._currentState]&&(this._focusTarget.value=this._labels[this._currentState],this._focusTarget.setAttribute("aria-label",this._labels[this._currentState])),this._states[t].length&&this.el.classList.add(this._states[t])}}]),e}(t("./Button"));e.exports=r},{"./Button":353}],359:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=function(t){function e(t,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i))}return 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)}(e,t),n(e,[{key:"setState",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setState",this).call(this,t),"on"===this._currentState?this._focusTarget.setAttribute("aria-pressed",!0):this._focusTarget.setAttribute("aria-pressed",!1)}}]),e}(t("./StatefulButton"));e.exports=s},{"./StatefulButton":358}],360:[function(t,e,i){"use strict";var n="cursor-pointer";e.exports={disableForcedCursorPointer:function(){document.body.classList.remove(n),this.onSelectStartResumeDefault()},forceCursorPointer:function(){document.body.classList.add(n),this.onSelectStartPreventDefault()},onSelectStartResumeDefault:function(){document.removeEventListener("selectstart",this.preventDefault)},onSelectStartPreventDefault:function(){document.addEventListener("selectstart",this.preventDefault)},preventDefault:function(t){t.preventDefault()}}},{}],361:[function(t,e,i){"use strict";var n=t("../templates/states/EndStateItem.html"),r=function(t){this.el=t.el,this.el.innerHTML=n,this._player=t.player,this._bindContent(t)},s=r.prototype;s._bindContent=function(t){if("link"===t.type||"video"===t.type){var e=this.el.querySelector(".end-state-link"),i=document.createElement("div");e.classList.remove("hidden"),i.classList.add("end-state-text-container"),i.innerText=t.label||"",e.href=t.url||"",e.appendChild(i),"link"===t.type?e.classList.add("icon","icon-after","icon-chevronright"):"video"===t.type&&e.classList.add("icon","icon-after","icon-playcircle"),this._bindAction(this.el,t)}},s._bindAction=function(t,e){"function"==typeof e.onclick?t.onclick=function(t){t.preventDefault(),e.onclick.call(null,t)}.bind(this):"video"===e.type&&e.url&&(t.onclick=function(t){t.preventDefault(),this._player.load(e.url,null,0,{})}.bind(this))},s.destroy=function(){},e.exports=r},{"../templates/states/EndStateItem.html":382}],362:[function(t,e,i){"use strict";var n=t("./EndStateItem"),r=function(t){this.el=t.el,this._player=t.player,this._addItems(t.items||[])},s=r.prototype;s._addItems=function(t){this._items=[],t.forEach(function(t){var e=document.createElement("div");e.classList.add("end-state-item");var i=new n(Object.assign({},t,{el:e,player:this._player}));this.el.appendChild(e),this._items.push(i)}.bind(this))},s.setData=function(t){for(;this._items.length;)this._items.pop().destroy();this.el.innerHTML="",t?(this.el.classList.remove("hidden"),this._addItems(t.items)):this.el.classList.add("hidden")},s.destroy=function(){for(;this._items.length;)this._items.pop().destroy()},e.exports=r},{"./EndStateItem":361}],363:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=document.createElement("div"),this.el.classList.add("error-state-wrapper")}return n(t,[{key:"setText",value:function(t){this._errorStr=t,this.render(),this._container=this.el.firstElementChild}},{key:"focus",value:function(){this._container&&this._container.firstElementChild.focus()}},{key:"render",value:function(){this.el.innerHTML='<div class="error-state-container" >\n\t\t\t<div tabindex="-1" role="text" class="error-state-message">'+this._errorStr+"</div>\n\t\t</div>\n\t\t"}}]),t}();e.exports=r},{}],364:[function(t,e,i){"use strict";var n=function(t,e,i){return function(n){t[e](n,i)}};e.exports=function(t,e,i){return e.classDef?function(t,e,i){return new e.classDef(t,Object.assign(e.options||{},i||{}))}(t,e,i):function(t,e){var i=e.handlers||{},r={};for(var s in i)i.hasOwnProperty(s)&&t.on(s,r[s]=n(i,s,t));var o,a=e.observe;if(a){for(var c=a.update,l=a.source,u=l.on.bind(l)||l.addEventListener,h=l.off.bind(l)||l.removeEventListener,d=a.events,p=0,m=d.length,f=function(){c.call(a,t)};p<m;p++)u(s=d[p],f);o=function(){for(p=0;p<m;p++)s=d[p],h(s,f)}}return{destroy:function(){for(var e in r)r.hasOwnProperty(e)&&t.off(e,r[e]);o&&o()}}}(t,e)}},{}],365:[function(t,e,i){"use strict";var n="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},r=t("./createView"),s=t("./createBehavior"),o=function(t,e){"function"==typeof e.destroy&&e.destroy(),"function"==typeof t.destroy&&t.destroy()},a=function(t){for(;t.length;)t.shift().destroy()},c=function(t){for(var e in t)t.hasOwnProperty(e)&&(a(t[e]),delete t[e])},l=function(t,e,i){var n=r(t,e.view),a=s(n,e.behavior,i);return{view:n,behavior:a,destroy:o.bind(null,n,a)}};e.exports=function(t,e,i){var r={};for(var s in e)if(e.hasOwnProperty(s)&&"object"===n(e[s])){var o=e[s],a=e.elementClassPrefix?"."+e.elementClassPrefix+"-"+o.className:"."+o.className,u=t.querySelectorAll(a);r[s]=[];for(var h=0,d=u.length;h<d;h++)r[s].push(l(u[h],o,i))}return{components:r,destroy:c.bind(null,r)}}},{"./createBehavior":364,"./createView":366}],366:[function(t,e,i){"use strict";e.exports=function(t,e){return new e.classDef(t,e.options)}},{}],367:[function(t,e,i){"use strict";var n=t("@marcom/ac-keyboard/Keyboard"),r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=32,o=37,a=38,c=39,l=40,u=function(t){r.call(this),this._player=t.player,this._target=t.keyboardTarget||this._player.el,this._keyboard=new n(this._target),this._bindMethods(),this._addEventListeners()},h=r.prototype,d=u.prototype=Object.create(h);d._bindMethods=function(){this._onLeftArrowDown=this._onLeftArrowDown.bind(this),this._onRightArrowDown=this._onRightArrowDown.bind(this),this._onUpArrowDown=this._onUpArrowDown.bind(this),this._onDownArrowDown=this._onDownArrowDown.bind(this),this._onSpaceBarUp=this._onSpaceBarUp.bind(this),this._onSpaceBarDown=this._onSpaceBarDown.bind(this),this._onKeyboardInteraction=this._onKeyboardInteraction.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._boundKeyboardInteraction={},[s,o,c,a,l].forEach(function(t){this._boundKeyboardInteraction[t]=this._onKeyboardInteraction.bind(this,t)}.bind(this))},d._addEventListeners=function(){[s,o,c,a,l].forEach(function(t){this._keyboard.onDown(t,this._boundKeyboardInteraction[t])}.bind(this)),this._keyboard.onDown(s,this._onSpaceBarDown),this._keyboard.onDown(o,this._onLeftArrowDown),this._keyboard.onDown(c,this._onRightArrowDown),this._keyboard.onDown(a,this._onUpArrowDown),this._keyboard.onDown(l,this._onDownArrowDown),this._player.on("durationchange",this._onDurationChange)},d._removeEventListeners=function(){[s,o,c,a,l].forEach(function(t){this._keyboard.offDown(t,this._boundKeyboardInteraction[t])}.bind(this)),this._boundKeyboardInteraction=null,this._keyboard.offDown(s,this._onSpaceBarDown),this._keyboard.offUp(s,this._onSpaceBarUp),this._keyboard.offDown(o,this._onLeftArrowDown),this._keyboard.offDown(c,this._onRightArrowDown),this._keyboard.offDown(a,this._onUpArrowDownDown),this._keyboard.offDown(l,this._onDownArrowDown),this._player.off("durationchange",this._onDurationChange)},d._onKeyboardInteraction=function(){this._triggerKeyboardInteraction()},d._triggerKeyboardInteraction=function(){this.trigger("keyboardinteraction")},d._onDurationChange=function(){var t=this._player.getDuration();this._interval=t>=60?10:t>=20?5:1},d._onLeftArrowDown=function(t){if(!this._player.isLive()){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getCurrentTime();isNaN(e)||this._player.seek(Math.max(e-this._interval,0))}},d._onRightArrowDown=function(t){if(!this._player.isLive()){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getCurrentTime();isNaN(e)||this._player.seek(Math.min(e+this._interval,this._player.getDuration()))}},d._onUpArrowDown=function(t){if(!t.target.hasAttribute("aria-checked")){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getMuted()?0:this._player.getVolume(),i=Math.min(1,e+.1);this._player.setVolume(i),this._player.setMuted(!1)}},d._onDownArrowDown=function(t){if(!t.target.hasAttribute("aria-checked")){t.originalEvent.preventDefault(),t.originalEvent.stopPropagation();var e=this._player.getMuted()?0:this._player.getVolume(),i=Math.max(0,e-.1);this._player.setVolume(i),this._player.setMuted(0===Math.round(10*i))}},d._onSpaceBarDown=function(t){"BUTTON"!==t.target.tagName&&"button"!==t.target.getAttribute("role")&&(this._keyboard.offDown(s,this._onSpaceBarDown),this._keyboard.onUp(s,this._onSpaceBarUp))},d._onSpaceBarUp=function(){this._keyboard.offUp(s,this._onSpaceBarUp),this._player.getPaused()?this._player.play():this._player.pause(),this._keyboard.onDown(s,this._onSpaceBarDown)},d.destroy=function(){this._removeEventListeners(),this._keyboard.destroy(),h.destroy.call(this)},e.exports=u},{"@marcom/ac-event-emitter-micro":122,"@marcom/ac-keyboard/Keyboard":303}],368:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=t("./KeyboardControl"),o=["controls-toggle-mute-volume-button","controls-volume-level-indicator"],a="controls-progress-indicator",c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),n=i._player.get360();return i._arrowControls=!n||n.arrowControls,i}return 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)}(e,t),n(e,[{key:"_bindMethods",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_bindMethods",this).call(this),this._onLeftArrowUp=this._onLeftArrowUp.bind(this),this._onRightArrowUp=this._onRightArrowUp.bind(this),this._onDownArrowUp=this._onDownArrowUp.bind(this),this._onUpArrowUp=this._onUpArrowUp.bind(this)}},{key:"_addEventListeners",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_addEventListeners",this).call(this),this._keyboard.onUp(37,this._onLeftArrowUp),this._keyboard.onUp(39,this._onRightArrowUp),this._keyboard.onUp(38,this._onUpArrowUp),this._keyboard.onUp(40,this._onDownArrowUp)}},{key:"_removeEventListeners",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_removeEventListeners",this).call(this),this._keyboard.offUp(37,this._onLeftArrowUp),this._keyboard.offUp(39,this._onRightArrowUp),this._keyboard.offUp(38,this._onUpArrowUp),this._keyboard.offUp(40,this._onDownArrowUp)}},{key:"_onLeftArrowDown",value:function(t){if(t.target.classList.contains(a))return this._triggerKeyboardInteraction(),void r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onLeftArrowDown",this).call(this,t);this._arrowControls.leftArrowDown(t)}},{key:"_onRightArrowDown",value:function(t){if(t.target.classList.contains(a))return this._triggerKeyboardInteraction(),void r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onRightArrowDown",this).call(this,t);this._arrowControls.rightArrowDown(t)}},{key:"_onUpArrowDown",value:function(t){if(t.target.classList.contains(o[0])||t.target.classList.contains(o[1]))return this._triggerKeyboardInteraction(),void r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onUpArrowDown",this).call(this,t);t.originalEvent.preventDefault(),this._arrowControls.upArrowDown(t)}},{key:"_onDownArrowDown",value:function(t){if(t.target.classList.contains(o[0])||t.target.classList.contains(o[1]))return this._triggerKeyboardInteraction(),void r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_onDownArrowDown",this).call(this,t);t.originalEvent.preventDefault(),this._arrowControls.downArrowDown(t)}},{key:"_onLeftArrowUp",value:function(t){t.target.classList.contains(a)?this._triggerKeyboardInteraction():(t.originalEvent.preventDefault(),this._arrowControls.leftArrowUp(t))}},{key:"_onRightArrowUp",value:function(t){t.target.classList.contains(a)?this._triggerKeyboardInteraction():(t.originalEvent.preventDefault(),this._arrowControls.rightArrowUp(t))}},{key:"_onUpArrowUp",value:function(t){t.target.classList.contains(a)?this._triggerKeyboardInteraction():this._arrowControls.upArrowUp(t)}},{key:"_onDownArrowUp",value:function(t){t.target.classList.contains(a)?this._triggerKeyboardInteraction():this._arrowControls.downArrowUp(t)}},{key:"_onKeyboardInteraction",value:function(t){}},{key:"destroy",value:function(){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}(s);e.exports=c},{"./KeyboardControl":367}],369:[function(t,e,i){"use strict";var n,r;e.exports=function(e){return e.threesixty?(n||(n=t("./ThreeSixtyKeyboardControl")),new n(e)):(r||(r=t("./KeyboardControl")),new r(e))}},{"./KeyboardControl":367,"./ThreeSixtyKeyboardControl":368}],370:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("../localization/Localization"),s="loading",o="was-loading",a=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._player=e.player,this.el=e.el,this.el.innerHTML='<div class="loading-indicator">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>',this._ariaSpan=this._player.controls.el.querySelector("#loading-status"),this._ariaString="",r.getTranslation({callback:function(t){i._ariaString=t.loading,i._isShowing()&&(i._ariaSpan.innerText=i._ariaString)}}),this._showTimeoutDelay=void 0!==e.showTimeoutDelay?e.showTimeoutDelay:500,this._bindMethods(),this._addEventListeners()}return n(t,[{key:"_bindMethods",value:function(){this.show=this.show.bind(this),this.hide=this.hide.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onSeeked=this._onSeeked.bind(this),this._onPause=this._onPause.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._doShow=this._doShow.bind(this),this._checkLoadingState=this._checkLoadingState.bind(this),this._onPlay=this._onPlay.bind(this),this._onMouseOut=this._onMouseOut.bind(this)}},{key:"_addEventListeners",value:function(){this._player.on("waiting",this.show),this._player.on("seeking",this._onSeeking),this._player.on("seeked",this._onSeeked),this._player.on("playing",this._onPlaying),this._player.on("ended",this._onEnded),this._player.on("canplaythrough",this._checkLoadingState),this._player.on("progress",this._checkLoadingState),this._player.on("error",this._onError),this._player.on("pause",this._onPause),this._player.on("timeupdate",this._checkLoadingState),this._player.on("play",this._onPlay),this._player.controls&&this._player.controls.el.addEventListener("mouseout",this._onMouseOut)}},{key:"_removeEventListeners",value:function(){this._player.off("waiting",this.show),this._player.off("seeking",this._onSeeking),this._player.off("seeked",this._onSeeked),this._player.off("playing",this._onPlaying),this._player.off("ended",this._onEnded),this._player.off("canplaythrough",this._checkLoadingState),this._player.off("progress",this._checkLoadingState),this._player.off("error",this._onError),this._player.off("pause",this._onPause),this._player.off("timeupdate",this._checkLoadingState),this._player.off("play",this._onPlay),this.el.removeEventListener("click",this._onClick),this._player.controls&&this._player.controls.el.removeEventListener("mouseout",this._onMouseOut)}},{key:"_onPause",value:function(){this._isPaused=this._player.getPaused(),this._isPaused&&this.hide()}},{key:"_onPlaying",value:function(){this._isPaused=this._player.getPaused(),this._started=!0,this._checkLoadingState()}},{key:"_onPlay",value:function(){!this._isPaused&&this._started||(this._isPaused=this._player.getPaused(),this._isPaused||(this._started=!0),this._isSeeking=!1,this._checkLoadingState(!0))}},{key:"_onSeeking",value:function(){this._isSeeking=!0,this.show()}},{key:"_onSeeked",value:function(){this._isSeeking=!1,this._checkLoadingState()}},{key:"_onEnded",value:function(){this._started=!1,this.hide()}},{key:"_onError",value:function(){this._started&&this.show(!0)}},{key:"_onMouseOut",value:function(){this._player.isStalled()||this._player.el.classList.remove(o)}},{key:"show",value:function(t){this._isPaused||(!0!==t&&this._started?(clearTimeout(this._showTimeout),this._showTimeout=setTimeout(this._doShow,this._showTimeoutDelay)):this._doShow())}},{key:"_checkLoadingState",value:function(t){!this._player.getEnded()&&this._started&&(this._player.isStalled()||this._isSeeking)?this.show(!0===t):this.hide()}},{key:"_isShowing",value:function(){return this._player.el.classList.contains(s)}},{key:"_doShow",value:function(){this._player.el.classList.add(s),this._player.el.classList.remove(o),this._ariaSpan.innerText=this._ariaString}},{key:"hide",value:function(){clearTimeout(this._showTimeout),this._isShowing()&&(this._player.el.classList.remove(s),this._player.el.classList.contains("user-hover")||this._player.el.classList.add(o),this._ariaSpan.innerText="")}},{key:"destroy",value:function(){this._removeEventListeners()}}]),t}();e.exports=a},{"../localization/Localization":373}],371:[function(t,e,i){"use strict";e.exports={audiotrackscontrol:"Audio",playpause:"Play/Pause",play:"Play",pause:"Pause",togglemutevolume:"Toggle Mute Volume",fullscreen:"Full Screen",exitfullscreen:"Exit Full Screen",airplay:"AirPlay",captionscontrol:"Closed Captions",captionsturnedon:"Closed Captions On",captionsturnedoff:"Closed Captions Off",subtitlescontrol:"Subtitles",subtitlesturnedon:"Subtitles On",subtitlesturnedoff:"Subtitles Off",share:"Share",elapsed:"elapsed",remaining:"remaining",currenttimetext:"{minutes} minutes and {seconds} seconds",pictureinpicture:"Picture-in-Picture",exitpictureinpicture:"Exit Picture-in-Picture",closesharing:"Close Sharing",facebookshare:"Share to Facebook",twittershare:"Share to Twitter",copylink:"Copy Link",copyembed:"Copy Embed Code",copyarea:"Copy Link Text Area",selectlink:"Select Link Text",selectembed:"Select Embed Code",close:"Close",dismisscopy:"Dismiss Copy",replay:"Replay",live:"Live",livestream:"Live Streaming",newwindow:"Opens in New Window",threesixtyicon:"Return 360 Point of View to Origin",threesixtyleft:"Move 360 Point of View Left",threesixtyright:"Move 360 Point of View Right",threesixtyup:"Move 360 Point of View Up",threesixtydown:"Move 360 Point of View Down",error:"The video could not be played.",jumptochapter:"Jump to chapter",chapter:"{chaptertitle} Chapter {chaptertime}",minutesandseconds:"{minutes} minutes and {seconds} seconds",loading:"The video is loading",captionsoff:"Off"}},{}],372:[function(t,e,i){"use strict";e.exports={af:"Afrikaans","af-ZA":"Afrikaans [South Africa]",ar:"Arabic","ar-AE":"Arabic [UAE]","ar-BH":"Arabic [Bahrain]","ar-DZ":"Arabic [Algeria]","ar-EG":"Arabic [Egypt]","ar-IQ":"Arabic [Iraq]","ar-JO":"Arabic [Jordan]","ar-KW":"Arabic [Kuwait]","ar-LB":"Arabic [Lebanon]","ar-LY":"Arabic [Libya]","ar-MA":"Arabic [Morocco]","ar-OM":"Arabic [Oman]","ar-QA":"Arabic [Qatar]","ar-SA":"Arabic [Saudi Arabia]","ar-SY":"Arabic [Syria]","ar-TN":"Arabic [Tunisia]","ar-YE":"Arabic [Yemen]",az:"Azeri [Latin]","az-AZ":"Azeri [Cyrillic] [Azerbaijan]",be:"Belarusian","be-BY":"Belarusian [Belarus]",bg:"Bulgarian","bg-BG":"Bulgarian [Bulgaria]","bs-BA":"Bosnian [Bosnia and Herzegovina]",ca:"Catalan","ca-ES":"Catalan [Spain]",cs:"Czech","cs-CZ":"Czech [Czech Rep]",cy:"Welsh","cy-GB":"Welsh [United Kingdom]",da:"Danish","da-DK":"Danish [Denmark]",de:"German","de-AT":"German [Austria]","de-CH":"German [Switzerland]","de-DE":"German [Germany]","de-LI":"German [Liechtenstein]","de-LU":"German [Luxembourg]",dv:"Divehi","dv-MV":"Divehi [Maldives]",el:"Greek","el-GR":"Greek [Greece]",en:"English","en-AU":"English [Australia]","en-BZ":"English [Belize]","en-CA":"English [Canada]","en-CB":"English [Caribbean]","en-GB":"English [United Kingdom]","en-IE":"English [Ireland]","en-JM":"English [Jamaica]","en-NZ":"English [New Zealand]","en-PH":"English [Philippines]","en-TT":"English [Trinidad and Tobago]","en-US":"English [US]","en-ZA":"English [South Africa]","en-ZW":"English [Zimbabwe]","en-419":"English [Latin America]","en-AE":"English [UAE]","en-AM":"English [Armenia]","en-AZ":"English [Azerbaijan]","en-BH":"English [Bahrain]","en-BW":"English [Botswana]","en-BY":"English [Belarus]","en-EG":"English [Egypt]","en-GE":"English [Georgia]","en-GW":"English [Guinea Bissau]","en-HK":"English [Hong Kong]","en-IL":"English [Israel]","en-IN":"English [India]","en-JO":"English [Jordan]","en-KE":"English [Kenya]","en-KG":"English [Kyrgyzstan]","en-KW":"English [Kuwait]","en-KZ":"English [Kazakhstan]","en-MD":"English [Republic of Moldova]","en-ME":"English [Montenegro]","en-MK":"English [Macedonia]","en-MT":"English [Malta]","en-MY":"English [Malaysia]","en-MZ":"English [Mozambique]","en-NG":"English [Nigeria]","en-OM":"English [Oman]","en-QA":"English [Qatar]","en-SA":"English [Saudi Arabia]","en-SG":"English [Singapore]","en-SI":"English [Slovenia]","en-TJ":"English [Tajikistan]","en-TM":"English [Turkmenistan]","en-UG":"English [Uganda]","en-UZ":"English [Uzbekistan]","en-VN":"English [Vietnam]",eo:"Esperanto",es:"Spanish","es-419":"Spanish [Latin America]","es-AR":"Spanish [Argentina]","es-BO":"Spanish [Bolivia]","es-CL":"Spanish [Chile]","es-CO":"Spanish [Colombia]","es-CR":"Spanish [Costa Rica]","es-DO":"Spanish [Dominican Republic]","es-EC":"Spanish [Ecuador]","es-ES":"Spanish [Spain]","es-GT":"Spanish [Guatemala]","es-HN":"Spanish [Honduras]","es-MX":"Spanish [Mexico]","es-NI":"Spanish [Nicaragua]","es-PA":"Spanish [Panama]","es-PE":"Spanish [Peru]","es-PR":"Spanish [Puerto Rico]","es-PY":"Spanish [Paraguay]","es-SV":"Spanish [El Salvador]","es-UY":"Spanish [Uruguay]","es-VE":"Spanish [Venezuela]",et:"Estonian","et-EE":"Estonian [Estonia]",eu:"Basque","eu-ES":"Basque [Spain]",fa:"Farsi","fa-IR":"Farsi [Iran]",fi:"Finnish","fi-FI":"Finnish [Finland]",fo:"Faroese","fo-FO":"Faroese [Faroe Islands]",fr:"French","fr-BE":"French [Belgium]","fr-CA":"French [Canada]","fr-CH":"French [Switzerland]","fr-FR":"French [France]","fr-LU":"French [Luxembourg]","fr-MC":"French [Principality of Monaco]","fr-CF":"French [CentralAfrica]","fr-CI":"French [Ivory Coast]","fr-CM":"French [Cameroon]","fr-GN":"French [Guinea]","fr-GQ":"French [Equatorial Guinea]","fr-MA":"French [Morocco]","fr-MG":"French [Madagascar]","fr-ML":"French [Mali]","fr-MU":"French [Mauritius]","fr-NE":"French [Niger]","fr-SN":"French [Senegal]","fr-TN":"French [Tunisia]",gl:"Galician","gl-ES":"Galician [Spain]",gu:"Gujarati","gu-IN":"Gujarati [India]",he:"Hebrew","he-IL":"Hebrew [Israel]",hi:"Hindi","hi-IN":"Hindi [India]",hr:"Croatian","hr-BA":"Croatian [Bosnia and Herzegovina]","hr-HR":"Croatian [Croatia]",hu:"Hungarian","hu-HU":"Hungarian [Hungary]",hy:"Armenian","hy-AM":"Armenian [Armenia]",id:"Indonesian","id-ID":"Indonesian [Indonesia]",is:"Icelandic","is-IS":"Icelandic [Iceland]",it:"Italian","it-CH":"Italian [Switzerland]","it-IT":"Italian [Italy]",ja:"Japanese","ja-JP":"Japanese [Japan]",ka:"Georgian","ka-GE":"Georgian [Georgia]",kk:"Kazakh","kk-KZ":"Kazakh [Kazakhstan]",kn:"Kannada","kn-IN":"Kannada [India]",ko:"Korean","ko-KR":"Korean [Korea]",kok:"Konkani","kok-IN":"Konkani [India]",ky:"Kyrgyz","ky-KG":"Kyrgyz [Kyrgyzstan]",lt:"Lithuanian","lt-LT":"Lituanian [Lithuania]",lv:"Latvian","lv-LV":"Latvian [Latvia]",mi:"Maori","mi-NZ":"Maori [New Zealand]",mk:"FYRO Macedonian","mk-MK":"FYRO Macedonian [Former Yugoslav Republic of Macedonia]",mn:"Mongolian","mn-MN":"Mongolian [Mongolia]",mr:"Marathi","mr-IN":"Marathi [India]",ms:"Malay","ms-BN":"Malay [Brunei Darussalam]","ms-MY":"Malay [Malaysia]",mt:"Maltese","mt-MT":"Maltese [Malta]",nb:"Norwegian [Bokm?l]","nb-NO":"Norwegian [Bokm?l] [Norway]",nl:"Dutch","nl-BE":"Dutch [Belgium]","nl-NL":"Dutch [Netherlands]","nn-NO":"Norwegian [Nynorsk] [Norway]",no:"Norwegian",ns:"Northern Sotho","ns-ZA":"Northern Sotho [South Africa]",pa:"Punjabi","pa-IN":"Punjabi [India]",pl:"Polish","pl-PL":"Polish [Poland]",ps:"Pashto","ps-AR":"Pashto [Afghanistan]",pt:"Portuguese","pt-BR":"Portuguese [Brazil]","pt-PT":"Portuguese [Portugal]",qu:"Quechua","qu-BO":"Quechua [Bolivia]","qu-EC":"Quechua [Ecuador]","qu-PE":"Quechua [Peru]",ro:"Romanian","ro-RO":"Romanian [Romania]",ru:"Russian","ru-RU":"Russian [Russia]",sa:"Sanskrit","sa-IN":"Sanskrit [India]",se:"Sami [Northern]","se-FI":"Sami [Inari] [Finland]","se-NO":"Sami [Southern] [Norway]","se-SE":"Sami [Southern] [Sweden]",sk:"Slovak","sk-SK":"Slovak [Slovakia]",sl:"Slovenian","sl-SI":"Slovenian [Slovenia]",sq:"Albanian","sq-AL":"Albanian [Albania]","sr-BA":"Serbian [Cyrillic] [Bosnia and Herzegovina]","sr-SP":"Serbian [Cyrillic] [Serbia and Montenegro]",sv:"Swedish","sv-FI":"Swedish [Finland]","sv-SE":"Swedish [Sweden]",sw:"Swahili","sw-KE":"Swahili [Kenya]",syr:"Syriac","syr-SY":"Syriac [Syria]",ta:"Tamil","ta-IN":"Tamil [India]",te:"Telugu","te-IN":"Telugu [India]",th:"Thai","th-TH":"Thai [Thailand]",tl:"Tagalog","tl-PH":"Tagalog [Philippines]",tn:"Tswana","tn-ZA":"Tswana [South Africa]",tr:"Turkish","tr-TR":"Turkish [Turkey]",ts:"Tsonga",tt:"Tatar","tt-RU":"Tatar [Russia]",uk:"Ukrainian","uk-UA":"Ukrainian [Ukraine]",ur:"Urdu","ur-PK":"Urdu [Islamic Republic of Pakistan]",uz:"Uzbek [Latin]","uz-UZ":"Uzbek [Cyrillic] [Uzbekistan]",vi:"Vietnamese","vi-VN":"Vietnamese [Viet Nam]",xh:"Xhosa","xh-ZA":"Xhosa [South Africa]",zh:"Chinese","zh-CN":"Chinese [S]","zh-HK":"Chinese [Hong Kong]","zh-MO":"Chinese [Macau]","zh-SG":"Chinese [Singapore]","zh-TW":"Chinese [T]","zh-hans":"Chinese [Simplified]",zu:"Zulu","zu-ZA":"Zulu [South Africa]"}},{}],373:[function(t,e,i){"use strict";var n=t("./Translations"),r=t("./DefaultLabelStrings"),s=window.document.documentElement,o=void 0;try{o=window.top.document.documentElement}catch(t){o=s}var a=t("@marcom/ac-ajax-xhr"),c="en-US",l={},u=function(t){var e=void 0;try{e=t||o.getAttribute("lang")}catch(t){e=s.getAttribute("lang")}var i=void 0;if(e)switch(e.toLowerCase()){case"es-418":i="es-LA";break;case"pt":i="pt-BR";break;default:i=e}else i=c;return i},h=function(t){return t=u(t),void 0!==l[t]};e.exports={getLanguage:u,getTranslation:function(t){var e=u((t=t||{}).lang);if(h(e))return t.callback?(t.callback(l[e]),null):l[e];if(!t.callback)throw new Error("To use Localization.getTranslation you must either pass a callback or ensure the translation is ready via Localization.translationReady");var i=t.basePath||"/ac/ac-video/latest/json/localization/",s=n[e]?i+n[e]:i+n["en-US"],o=r,c=function(){l[e]=o,t.callback(o)};return t.forceEnglishLabels?(c(),l[e]):(a.get(s,{success:function(i){try{o=Object.assign(o,JSON.parse(i)),l[e]=o,t.callback(o)}catch(t){c()}},error:c}),null)},translationReady:h}},{"./DefaultLabelStrings":371,"./Translations":374,"@marcom/ac-ajax-xhr":35}],374:[function(t,e,i){"use strict";e.exports={"bg-BG":"bg-BG.json","cs-CZ":"cs-CZ.json","el-GR":"el-GR.json","de-AT":"de-AT.json","de-CH":"de-CH.json","de-DE":"de-DE.json","de-LI":"de-LI.json","da-DK":"da-DK.json",en:"en.json","en-AP":"en-AP.json","en-AU":"en-AU.json","en-AZ":"en-AZ.json","en-BH":"en-BH.json","en-BY":"en-BY.json","en-CA":"en-CA.json","en-EG":"en-EG.json","en-GB":"en-GB.json","en-GE":"en-GE.json","en-HK":"en-HK.json","en-IE":"en-IE.json","en-IN":"en-IN.json","en-JO":"en-JO.json","en-KG":"en-KG.json","en-KR":"en-KR.json","en-KW":"en-KW.json","en-KZ":"en-KZ.json","en-NZ":"en-NZ.json","en-OM":"en-OM.json","en-QA":"en-QA.json","en-SA":"en-SA.json","en-SG":"en-SG.json","en-TJ":"en-TJ.json","en-TM":"en-TM.json","en-US":"en-US.json","en-UZ":"en-UZ.json","en-ZA":"en-ZA.json",es:"es.json","es-LA":"es-LA.json","es-MX":"es-MX.json","es-ES":"es-ES.json","et-EE":"et-EE.json","fi-FI":"fi-FI.json",fr:"fr.json","fr-BE":"fr-BE.json","fr-CA":"fr-CA.json","fr-CH":"fr-CH.json","fr-FR":"fr-FR.json","hr-HR":"hr-HR.json","hu-HU":"hu-HU.json","it-IT":"it-IT.json",ja:"ja.json","ja-JP":"ja-JP.json","ko-KR":"ko-KR.json","lt-LT":"lt-LT.json","lv-LV":"lv-LV.json","nl-BE":"nl-BE.json","nl-NL":"nl-NL.json","no-NO":"no-NO.json","pl-PL":"pl-PL.json",pt:"pt.json","pt-BR":"pt-BR.json","pt-PT":"pt-PT.json","ro-RO":"ro-RO.json","ru-RU":"ru-RU.json","sk-SK":"sk-SK.json","sv-SE":"sv-SE.json","tr-TR":"tr-TR.json","uk-UA":"uk-UA.json","vn-VN":"vn-VN.json",zh:"zh.json","zh-CN":"zh-CN.json","zh-HK":"zh-HK.json","zh-TW":"zh-TW.json"}},{}],375:[function(t,e,i){"use strict";var n=t("./PopUp"),r=function(t){this.el=t.el,this._player=t.player,this._popUp=new n(t),this.el.appendChild(this._popUp.el)},s=r.prototype;s.setData=function(t){this._popUp.setData(t)},s.show=function(){this.el.classList.remove("hidden"),this._popUp.show()},s.hide=function(){this.el.classList.add("hidden"),this._popUp.hide()},s.setPopUpPosition=function(t){this._popUp.setPopUpPosition(t)},s.destroy=function(){this._popUp.destroy()},e.exports=r},{"./PopUp":376}],376:[function(t,e,i){"use strict";var n=t("../templates/overlays/trickplay-overlay.html"),r=t("../../utils/Time"),s=t("./ThumbnailHandler"),o=t("@marcom/function-utils/throttle"),a=t("../../utils/liveStreamLookback"),c=function(t){this._player=t.player,this.el=document.createElement("div"),this.el.style.opacity="0",this.el.innerHTML=n,this._player.isDvr()?this._liveStreamLookback=a:this._liveStreamLookback=0,this._thumbnailHandler=new s({el:this.el.querySelector(".ac-video-trickplay-image"),player:this._player,numberOfImages:t.numberOfImages}),this._timeLabel=this.el.querySelector(".ac-video-trickplay-time"),this._chapterLabel=this.el.querySelector(".ac-video-trickplay-chapter-title"),this._bindMethods(),this._addEventListeners()},l=c.prototype;l._initPointerTracking=function(){this._scrubberView=this._player.controls.scrubberView,this._scrubberView&&(this._runnableTrack=this._scrubberView.el.querySelector(".ac-slider-runnable-track"),this._calcOffsets(),this._scrubberView.el.addEventListener("mouseover",this.show),this._scrubberView.el.addEventListener("mouseout",this.hide),this._scrubberView.el.addEventListener("focusin",this._onScrubberFocusIn),this._scrubberView.el.addEventListener("focusout",this._onScrubberFocusOut),this._scrubberView.el.addEventListener("mousedown",this._startScrubbing),this._scrubberView.el.addEventListener("mouseup",this._endScrubbing),this._scrubberView.el.addEventListener("mousemove",this._onTrackerUpdate),this._scrubberView.el.addEventListener("mousemove",this._setThumbnail),this._player.on("resize",this._throttledCalcOffsets),window.addEventListener("resize",this._throttledCalcOffsets))},l._bindMethods=function(){this.show=this.show.bind(this),this.hide=this.hide.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._startScrubbing=this._startScrubbing.bind(this),this._endScrubbing=this._endScrubbing.bind(this),this._initPointerTracking=this._initPointerTracking.bind(this),this._onTrackerUpdate=this._onTrackerUpdate.bind(this),this._setThumbnail=this._setThumbnail.bind(this),this._calcOffsets=this._calcOffsets.bind(this),this._onScrubberFocusIn=this._onScrubberFocusIn.bind(this),this._onScrubberFocusOut=this._onScrubberFocusOut.bind(this),this._throttledCalcOffsets=o(this._calcOffsets,30)},l._startScrubbing=function(t){this._thumbnailHandler.el.classList.add("hidden"),this._scrubberView.el.removeEventListener("mousemove",this._setThumbnail),this._scrubberView.el.removeEventListener("mouseout",this.hide),document.addEventListener("mouseup",this._endScrubbing),document.addEventListener("mousemove",this._onTrackerUpdate)},l._endScrubbing=function(t){t.target===this._scrubberView.el&&this.hide(),this._scrubberView.el.addEventListener("mousemove",this._setThumbnail),this._scrubberView.el.addEventListener("mouseout",this.hide),document.removeEventListener("mouseup",this._endScrubbing),document.removeEventListener("mousemove",this._onTrackerUpdate),this._setThumbnail(t),this._thumbnailHandler.el.classList.remove("hidden")},l._calcOffsets=function(){this._onLoadedMetaData();var t=this._player.el.getBoundingClientRect();this._offsetLeft=t.left;var e=this._runnableTrack.getBoundingClientRect();this._leftBoundary=e.left-this._offsetLeft,this._rightBoundary=e.right-this._offsetLeft,this._imgWidth=this.el.firstElementChild.getBoundingClientRect().width},l._onLoadedMetaData=function(){var t=this._player.getMediaElement().videoWidth,e=this._player.getMediaElement().videoHeight,i=-1!==(this._player.getCurrentSrc()||"").indexOf("-tft-");this.el.classList.remove("square-video"),this.el.classList.remove("vertical-video"),this.el.classList.remove("tft-video"),i?(this.el.classList.add("tft-video"),this._thumbnailHandler.setVertical(!1)):t<e?(this.el.classList.add("vertical-video"),this._thumbnailHandler.setVertical(!0)):t===e?(this.el.classList.add("square-video"),this._thumbnailHandler.setVertical(!1)):this._thumbnailHandler.setVertical(!1)},l._addEventListeners=function(){this._player.on("durationchange",this._onDurationChange),this._player.once("controlsready",this._initPointerTracking),this._player.on("loadedmetadata",this._calcOffsets)},l._removeEventListeners=function(){this._player.off("durationchange",this._onDurationChange),this._player.off("controlsready",this._initPointerTracking),this._player.off("canplaythrough",this._canPlayThroughHander),this._player.off("playing",this._canPlayThroughHander),this._player.off("loadedmetadata",this._calcOffsets),this._player.off("resize",this._throttledCalcOffsets),window.removeEventListener("resize",this._throttledCalcOffsets),this._scrubberView.el.removeEventListener("mouseover",this.show),this._scrubberView.el.removeEventListener("mouseout",this.hide),this._scrubberView.el.removeEventListener("focusin",this._onScrubberFocusIn),this._scrubberView.el.removeEventListener("focusout",this._onScrubberFocusOut),this._scrubberView.el.removeEventListener("mouseout",this.hide),this._scrubberView.el.removeEventListener("mousemove",this._onTrackerUpdate),this._scrubberView.el.removeEventListener("mousemove",this._setThumbnail),document.removeEventListener("mouseup",this._endScrubbing),document.removeEventListener("mousemove",this._onTrackerUpdate)},l._getDuration=function(){return this._cachedDuration&&isNaN(this._cachedDuration)||(this._cachedDuration=Math.max(0,this._player.getDuration()-this._liveStreamLookback)),this._cachedDuration},l.setPopUpPosition=function(t){this.show();var e=t/this._getDuration()*(this._rightBoundary-this._leftBoundary)-this._imgWidth/2-1,i=this._leftBoundary+e;this.el.firstElementChild.style.left=i+"px",this._time=t,this._timeLabel.innerText=r.formatTime(t,this._getDuration()),this._refreshChapter(),this._setThumbnail()},l._onScrubberFocusIn=function(t){if(t.target.classList.contains("ac-slider-chapter-container")){this._calcOffsets();var e=Array.from(t.target.parentElement.children).indexOf(t.target),i=this._player.getChapters()[e]["start-time"];this.setPopUpPosition(i),this.show()}},l._onScrubberFocusOut=function(t){this.hide()},l._onTrackerUpdate=function(t){this._calcOffsets();var e=Math.min(Math.max(t.clientX-this._offsetLeft,this._leftBoundary),this._rightBoundary);this.el.firstElementChild.style.left=e-this._imgWidth/2+"px";var i=this._scrubberView.getClientXValue(t);this._cachedTrackerUpdate=t,this._setTimeFromPercentPosition(Math.max(i,0))},l._onDurationChange=function(t){this._cachedDuration=Math.max(0,this._player.getDuration()-this._liveStreamLookback),this._cachedTrackerUpdate&&(this._onTrackerUpdate(this._cachedTrackerUpdate),this._setThumbnail()),this.el.style.opacity="1"},l._setThumbnail=function(t){this._thumbnailHandler.setTime(this._time,this._getDuration())},l._setTimeFromPercentPosition=function(t){var e=t/this._scrubberView.getMax();this._time=Math.min(e*this._getDuration(),this._getDuration());var i=r.formatTime(this._time,this._getDuration());this._timeLabel.innerText=i,this._refreshChapter()},l._refreshChapter=function(){var t=this._player.getChapterForTime(this._time,0);if(t&&t.titles.length){var e=t.titles.find((function(t){return"en"===t.language}))||t.titles[0];this._chapterLabel.innerText=e.title,this._chapterLabel.classList.remove("hidden")}else this._chapterLabel.classList.add("hidden")},l.setData=function(t){this.el.style.opacity="0",this._canPlayThroughHander&&(this._player.off("canplaythrough",this._canPlayThroughHander),this._player.off("playing",this._canPlayThroughHander),this._canPlayThroughHander=null),t&&this._player.getReadyState()>2?(this.el.style.opacity="1",this._thumbnailHandler.setData(t),this._cachedTrackerUpdate&&(this._onTrackerUpdate(this._cachedTrackerUpdate),this._setThumbnail())):(this._thumbnailHandler.setData(null),t?(this._canPlayThroughHander=this.setData.bind(this,t),this._player.on("canplaythrough",this._canPlayThroughHander),this._player.on("playing",this._canPlayThroughHander)):this.el.style.opacity="1"),this._onLoadedMetaData()},l.show=function(t){t&&this._onTrackerUpdate(t),this.el.firstElementChild.classList.remove("hidden")},l.hide=function(){this.el.firstElementChild.classList.add("hidden")},l.destroy=function(){this._canPlayThroughHander&&(this._player.off("canplaythrough",this._canPlayThroughHander),this._player.off("playing",this._canPlayThroughHander)),this._removeEventListeners(),this._throttledCalcOffsets&&this._throttledCalcOffsets.cancel(),this._scrubberView=null},e.exports=c},{"../../utils/Time":388,"../../utils/liveStreamLookback":390,"../templates/overlays/trickplay-overlay.html":380,"./ThumbnailHandler":377,"@marcom/function-utils/throttle":307}],377:[function(t,e,i){"use strict";var n=function(t){this.el=t.el,this._player=t.player,this._imgWidth=t.imgWidth||144,this.el.style.backgroundSize=100*this._numberOfImages+"% 100%"},r=n.prototype;r.setVertical=function(t){this._imgWidth=t?81:144},r.getWidth=function(){return this._imgWidth},r.setData=function(t){if(!t)return this._imgUrl=null,void(this.el.style.backgroundImage="");if(t.url!==this._imgUrl){this._imgUrl=t.url,this._numberOfImages=parseInt(t.numberOfImages||120),this.el.style.backgroundSize=100*this._numberOfImages+"% 100%",this.el.style.backgroundImage="",this.el.classList.add("hidden");var e=this._loadImage(this._imgUrl).then(function(){this._imageLoadPromise===e&&(this.el.style.backgroundImage='url("'+this._imgUrl+'")',this._imageLoadPromise=null,this.el.classList.remove("hidden"))}.bind(this));this._imageLoadPromise=e}},r._loadImage=function(t){return new Promise((function(e,i){var n=new Image;n.onload=function(){e()},n.onerror=function(){i()},n.src=t}))},r.setTime=function(t,e){var i=t/e,n=Math.min(Math.round(i*this._numberOfImages),this._numberOfImages-1)/(this._numberOfImages-1)*100;this.el.style.backgroundPositionX=n+"%"},r.destroy=function(){this._imageLoadPromise&&this._imageLoadPromise.cancel()},e.exports=n},{}],378:[function(t,e,i){"use strict";var n=t("../templates/states/SharingState.html"),r=t("../templates/states/IFrameEmbed.html"),s=t("@marcom/ac-console/log"),o=t("@marcom/ac-clipboard/select"),a=t("@marcom/ac-social").Dialog,c=t("@marcom/ac-string/supplant"),l=t("../localization/Localization"),u=t("@marcom/ac-accessibility/helpers/TabManager"),h=void 0;try{h=t("@marcom/ac-analytics-share/factory/create")}catch(t){s("ac-analytics-share failed to load, are you sure you've included it?")}var d=t("@marcom/useragent-detect").os,p=d.ios||d.android,m=function(t){this.el||this._initializeElement(t.el,t.template),this._player=t.player,this._parentView=t.parentView,this._clickedShareButton=null,this._container=this.el.querySelector(".container"),this._sharingButtonContainer=this.el.querySelector(".sharing-button-container"),this._facebookButton=this.el.querySelector(".acv-fb-share"),this._twitterButton=this.el.querySelector(".acv-tw-share"),this._lineButton=this.el.querySelector(".acv-line-share"),this._copyLinkButton=this.el.querySelector(".copy-link"),this._copyEmbedCodeButton=this.el.querySelector(".copy-embed-code"),this._copyTextArea=this.el.querySelector(".copy-area"),this._copyCloseButton=this.el.querySelector(".textinput-close-button"),this._closeButton=this.el.querySelector(".close-button"),!1===t.analytics&&(h=null),p&&(this.el.firstChild.classList.add("mobile"),this._player.on("loadstart",function(){this._getClientWidth()>735&&this.el.firstChild.classList.add("mobile-large")}.bind(this))),this._bindMethods(),this._addEventListeners(),this._syncSocialShareHidden()},f=m.prototype;f._initializeElement=function(t,e){t?this.el=t:(this.el=document.createElement("div"),this._templateData=l.getTranslation(),this.el.innerHTML=c((e||n).toString(),this._templateData))},f.setData=function(t){if(t){if(this._parentView.show(),t.allowEmbed&&this.el.firstChild.classList.add("embed-enabled"),this._sharingUrl=t.originatorUrl||window.location.href,this._videoid=t.videoid,this._hideExtension=t.hideExtension,this._embedPath=t.embedpath||"https://www.apple.com/embed/",this._hideFacebook=t.hideFacebookShare||!1,this._hideTwitter=t.hideTwitterShare||!1,this._hideLine=void 0===t.hideLineShare||t.hideLineShare,this._title=t.title||"Video Player",this._syncSocialShareHidden(),this._container.classList.remove("textarea-active"),h&&!1!==t.analytics&&t.videoid)try{this._initAnalyticsAttributes(t),this._analyticsObserver||(this._analyticsObserver=h({context:this.el}))}catch(t){s("ac-analytics-share failed to load, are you sure you've included it?")}}else this._parentView.hide()},f._bindMethods=function(){this._doFacebookShare=this._doSocialShare.bind(this,a.FACEBOOK_SHARE),this._doTwitterShare=this._doSocialShare.bind(this,a.TWITTER_TWEET),this._doLineShare=this._doSocialShare.bind(this,a.LINE_SHARE),this._copyUrl=this._copyUrl.bind(this),this._copyEmbedCode=this._copyEmbedCode.bind(this),this._closeCopyArea=this._showTextArea.bind(this,!1),this._closeState=this._closeState.bind(this)},f._addEventListeners=function(){this._facebookButton&&this._facebookButton.addEventListener("click",this._doFacebookShare),this._twitterButton&&this._twitterButton.addEventListener("click",this._doTwitterShare),this._lineButton&&this._lineButton.addEventListener("click",this._doLineShare),this._copyLinkButton&&this._copyLinkButton.addEventListener("click",this._copyUrl),this._copyEmbedCodeButton&&this._copyEmbedCodeButton.addEventListener("click",this._copyEmbedCode),this._copyCloseButton&&this._copyCloseButton.addEventListener("click",this._closeCopyArea),this._closeButton&&this._closeButton.addEventListener("click",this._closeState)},f._removeEventListeners=function(){this._facebookButton&&this._facebookButton.removeEventListener("click",this._doFacebookShare),this._twitterButton&&this._twitterButton.removeEventListener("click",this._doTwitterShare),this._lineButton&&this._lineButton.removeEventListener("click",this._doLineShare),this._copyLinkButton&&this._copyLinkButton.removeEventListener("click",this._copyUrl),this._copyEmbedCodeButton&&this._copyEmbedCodeButton.removeEventListener("click",this._copyEmbedCode),this._copyCloseButton&&this._copyCloseButton.removeEventListener("click",this._closeCopyArea),this._closeButton&&this._closeButton.removeEventListener("click",this._closeState)},f._syncSocialShareHidden=function(){this._facebookButton&&(this._hideFacebook?this._facebookButton.classList.add("hide-button"):this._facebookButton.classList.remove("hide-button")),this._twitterButton&&(this._hideTwitter?this._twitterButton.classList.add("hide-button"):this._twitterButton.classList.remove("hide-button")),this._lineButton&&(this._hideLine?this._lineButton.classList.add("hide-button"):this._lineButton.classList.remove("hide-button"))},f._doSocialShare=function(t){this._clickedShareButton=null,this._copyLinkButton.classList.remove("active"),this._copyEmbedCodeButton.classList.remove("active"),this._showTextArea(!1),a.create(t,{url:this._sharingUrl,title:this._title})},f._showTextArea=function(t){t?(this._container.classList.add("textarea-active"),o(this._copyTextArea),p||this._copyTextArea.setAttribute("readonly","")):(this._container.classList.remove("textarea-active"),this._copyLinkButton.classList.remove("active"),this._copyEmbedCodeButton.classList.remove("active"),this._copyTextArea.removeAttribute("readonly"),this._clickedShareButton&&this._clickedShareButton.focus(),this._copyLinkButton.setAttribute("aria-label",this._templateData.copylink),this._copyEmbedCodeButton.setAttribute("aria-label",this._templateData.copyembed))},f._copyUrl=function(){this._clearTextArea(),this._copyTextArea.value=this._sharingUrl,this._copyLinkButton.classList.add("active"),this._copyLinkButton.setAttribute("aria-label",this._templateData.selectlink),this._showTextArea(!0),this._clickedShareButton=this._copyLinkButton,this._copyTextArea.setAttribute("aria-label",this._templateData.copylink),o(this._copyTextArea)},f._clearTextArea=function(){window.getSelection().removeAllRanges(),this._copyLinkButton.classList.remove("active"),this._copyEmbedCodeButton.classList.remove("active"),this._copyTextArea.removeAttribute("readonly")},f._copyEmbedCode=function(){this._clearTextArea(),this._copyTextArea.value=c(r,{videoid:this._videoid,embedCodePath:this._embedPath,width:this._player.getMediaWidth(),height:this._player.getMediaHeight(),title:this._title,extension:this._hideExtension?"":".html"}),this._copyEmbedCodeButton.classList.add("active"),this._copyEmbedCodeButton.setAttribute("aria-label",this._templateData.selectembed),this._showTextArea(!0),this._clickedShareButton=this._copyEmbedCodeButton,this._copyTextArea.setAttribute("aria-label",this._templateData.copyembed),o(this._copyTextArea)},f._focusFirstButton=function(){this._firstButton||(this._firstButton=u.getTabbableElements(this._sharingButtonContainer)[0]),this._firstButton.focus()},f.show=function(){this._container.classList.add("showing")},f.hide=function(){this._clickedShareButton=null,this._showTextArea(!1),this._container.classList.remove("showing")},f._getClientHeight=function(){return this.el.clientHeight},f._getClientWidth=function(){return this.el.clientWidth},f.destroy=function(){this._removeEventListeners()},f._closeState=function(){this._showTextArea(!1),0===this._player.getCurrentTime()||this._player.getEnded()?this._player.states.setState("initial"):this._player.states.setState("none")},f._getAnalyticsSource=function(){return"drawer"},f._initAnalyticsAttributes=function(t){var e=[];this._facebookButton&&e.push({button:this._facebookButton,title:"facebook",events:"event85"}),this._twitterButton&&e.push({button:this._twitterButton,title:"twitter",events:"event84"}),this._copyLinkButton&&e.push({button:this._copyLinkButton,title:"copy-link",events:"event89"}),this._copyEmbedCodeButton&&e.push({button:this._copyEmbedCodeButton,title:"copy-embed-code",events:"event101"});var i=(-1!==(t.url&&t.url.indexOf(".m3u8"))?"m3u8":"mp4")+" via html5",n=this._getAnalyticsSource(),r=t.videoid,s=document.head.querySelectorAll('meta[property="analytics-track"]');s=s?s[0].getAttribute("content"):"",e.forEach(function(t){t.button.setAttribute("data-analytics-click",""),t.button.setAttribute("data-analytics-share",JSON.stringify({title:r,events:t.events,prop2:s+" - "+r+" - "+t.title,prop18:i,eVar49:document.referrer,eVar54:document.location.href,eVar55:s+" - "+r,eVar70:n}))}.bind(this))},e.exports=m},{"../localization/Localization":373,"../templates/states/IFrameEmbed.html":383,"../templates/states/SharingState.html":384,"@marcom/ac-accessibility/helpers/TabManager":27,"@marcom/ac-analytics-share/factory/create":51,"@marcom/ac-clipboard/select":66,"@marcom/ac-console/log":69,"@marcom/ac-social":274,"@marcom/ac-string/supplant":300,"@marcom/useragent-detect":435}],379:[function(t,e,i){"use strict";e.exports='\n<div class="controls-container">\n\t<div class="{elementClassPrefix}-social-tray hidden"></div>\n\n\t<div class="center-button-container {elementClassPrefix}-play-pause-button-container">\n\t\t<div class="button-wrapper">\n\t\t\t<button type="button" class="ac-video-icon centered-button {elementClassPrefix}-play-pause-button {elementClassPrefix}-button no-autoplay" value="{playpause}" aria-label="{playpause}" role="button" tabindex="0" data-acv-active-area data-acv-draggable-area>\n\t\t\t\t<div class="loading-indicator-container"></div>\n\t\t\t</button>\n\t\t\t<span id=\'loading-status\' class="acv-visually-hidden" aria-live=\'polite\'></span>\n\t\t</div>\t\t\n\t</div>\n\n\t<div class="main-controls-container">\n\t\t<div class="ac-video-overlay-container"></div>\n\t\t<div class="main-controls">\n\t\t\t<div class="button-wrapper">\n\t\t\t\t<div class="main-controls-item controls-volume">\n\t\t\t\t\t<button type="button" class="ac-video-icon {elementClassPrefix}-toggle-mute-volume-button {elementClassPrefix}-button" value="{togglemutevolume}" aria-label="{togglemutevolume}" role="button" tabindex="0" data-acv-active-area></button>\n\t\t\t\t\t<div class="{elementClassPrefix}-volume-level-indicator" tabindex="0" aria-valuemin="0" aria-valuemax="100" min="0" max="100" aria-label="{adjustvolume}" role="slider" aria-orientation="vertical" step="0.05" data-acv-active-area></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="button-wrapper">\n\t\t\t\t<button type="button" class="ac-video-icon main-controls-item {elementClassPrefix}-text-tracks-toggle-button {elementClassPrefix}-button no-text-tracks" value="{captionscontrol}" aria-label="{captionscontrol}" role="button" tabindex="0" data-acv-active-area></button>\n\t\t\t\t<div class="ac-video-ax-tracks-selector-container">\n\t\t\t\t <div class="ac-video-ax-tracks-scroll-container">\n <div class="ac-video-audio-selector-container">\n <span class="ac-video-audio-selector-title">{audiotrackscontrol}</span>\n <ul class="{elementClassPrefix}-audio-selector" role="radiogroup" aria-label="{audiotrackscontrol}" data-acv-active-area></ul>\n </div>\n <div class="ac-video-captions-selector-container">\n <span class="ac-video-captions-selector-title">{subtitlescontrol}</span>\n <ul class="{elementClassPrefix}-captions-selector" role="radiogroup" aria-label="{subtitlescontrol}" data-acv-active-area></ul>\n </div>\n\t\t\t\t </div>\n </div>\n\t\t\t</div>\n\n\t\t\t<div class="main-controls-item controls-progress">\n\t\t\t\t<div class="controls-progress-time controls-progress-time-1">\n\t\t\t\t\t<div class="{elementClassPrefix}-elapsed-time-indicator" role="text" tabindex="-1">\n\t\t\t\t\t\t<span class="label">{elapsed}</span>\n\t\t\t\t\t\t<span class="{elementClassPrefix}-elapsed-time">00:00</span>\n\t\t\t\t\t\t<span class="{elementClassPrefix}-time-maxwidth" aria-hidden="true">44:44</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="controls-progress-bar">\n\t\t\t\t\t<div class="{elementClassPrefix}-buffered-indicator"></div>\n\t\t\t\t\t<div class="{elementClassPrefix}-progress-indicator ac-slider-inactive" aria-label="progress-indicator" role="slider" precision="float" min="0" max="1" step="0.0005" value="0" tabindex="0" aria-valuemax="1" aria-valuemin="0" aria-valuenow="{value}" data-acv-active-area></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="controls-progress-time controls-progress-time-2">\n\t\t\t\t\t<div class="{elementClassPrefix}-remaining-time-indicator" role="text" tabindex="-1">\n\t\t\t\t\t\t<span class="label">{remaining}</span>\n\t\t\t\t\t\t<span class="{elementClassPrefix}-remaining-time">-00:00</span>\n\t\t\t\t\t\t<span class="{elementClassPrefix}-time-maxwidth" aria-hidden="true">-44:44</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n <div class="controls-progress-time controls-progress-dvr-label-container" role="button">\n \n <span class="live-stream-dvr-text">{live}</span>\n \n </div>\t\n\t\t\t</div>\n\n\t\t\t<div class="main-controls-item live-stream">\n\t\t\t\t<span class="live-stream-text">{livestream}</span>\n\t\t\t</div>\n\t\t\t\n\n\t\t\t<div class="button-wrapper">\n\t\t\t\t<button type="button" class="ac-video-icon main-controls-item {elementClassPrefix}-airplay-button {elementClassPrefix}-button airplay-unsupported" value="{airplay}" aria-label="{airplay}" role="button" tabindex="0" data-acv-active-area></button>\n\t\t\t</div>\n\n\t\t\t<div class="button-wrapper">\n\t\t\t\t<button type="button" class="ac-video-icon main-controls-item {elementClassPrefix}-picture-in-picture-button {elementClassPrefix}-button picture-in-picture-unsupported" value="{pictureinpicture}" aria-label="{pictureinpicture}" role="button" tabindex="0" data-acv-active-area></button>\n\t\t\t</div>\n\n\t\t\t<div class="button-wrapper">\n\t\t\t\t<button type="button" class="ac-video-icon main-controls-item {elementClassPrefix}-full-screen-button {elementClassPrefix}-button fullscreen-unsupported" value="{fullscreen}" aria-label="{fullscreen}" role="button" tabindex="0" data-acv-active-area></button>\n\t\t\t</div>\n\t\t\t\n\t\t</div>\n\t</div>\n\n\t<div class="end-state-wrapper">\n\t\t<div class="end-state-container"></div>\n\t</div>\n\n\n</div>\n\n<div class="compass-wrapper" data-acv-active-area>\n\t<div class="compass-background ac-video-icon"></div>\n\t<div class="compass-arrows">\n\t\t<button class="compass-arrow-top ac-video-icon" aria-label="{threesixtyup}" role="button" tabindex="0"></button>\n\t\t<button class="compass-arrow-right ac-video-icon" aria-label="{threesixtyright}" role="button" tabindex="0"></button>\n\t\t<button class="compass-arrow-bottom ac-video-icon" aria-label="{threesixtydown}" role="button" tabindex="0"></button>\n\t\t<button class="compass-arrow-left ac-video-icon" aria-label="{threesixtyleft}" role="button" tabindex="0"></button>\n\t</div>\n\t<div class="compass-field ac-video-icon"></div>\n\t<div class="compass-ring ac-video-icon"></div>\n\t<button class="compass" aria-label="{threesixtyicon}" role="button" tabindex="0"></button>\n</div>\n'},{}],380:[function(t,e,i){"use strict";e.exports='<div class="ac-video-trickplay hidden" aria-hidden="true">\n <div class="ac-video-trickplay-image">\n </div>\n <div class="ac-video-trickplay-chapter-title"></div>\n <div class="ac-video-trickplay-time"></div>\n</div>'},{}],381:[function(t,e,i){"use strict";e.exports='\n<div class="ac-slider-ax-track" role="slider" aria-valuemin="0" aria-valuemax="1" ></div>\n<div class="ac-slider-runnable-track">\n\t<div class="ac-slider-hover-track">\n\t\t<div class="ac-slider-hover-notch"></div>\n\t</div>\n\t<div class="ac-slider-thumb">\n\t\t<div class="ac-slider-thumb-background-wrapper">\n\t\t\t<div class="ac-slider-thumb-overlay"></div>\n\t\t\t<div class="ac-slider-thumb-background"></div>\n\t\t</div>\n\t</div>\n\t<div class="ac-slider-chapters-track"></div>\n\t<div class="ac-slider-inner-track">\n\t\t<div class="ac-slider-buffered"></div>\n\t\t<div class="ac-slider-scrubbed"></div>\n\t</div>\n</div>\n'},{}],382:[function(t,e,i){"use strict";e.exports='<a class="end-state-link hidden"></a>'},{}],383:[function(t,e,i){"use strict";e.exports='<iframe src="{embedCodePath}{videoid}{extension}" width="{width}" height="{height}" title="{title}" allowfullscreen></iframe>'},{}],384:[function(t,e,i){"use strict";e.exports='<div class="sharing-state">\n <div class="container" data-acv-active-area>\n <div class="social-sharing-container">\n <div class="sharing-button-container">\n <button class="acv-fb-share ac-video-icon icon-share_fb" aria-label="{facebookshare}, {newwindow}"></button>\n <button class="acv-tw-share ac-video-icon icon-share_twitter" aria-label="{twittershare}, {newwindow}"></button>\n <button class="acv-line-share ac-video-icon icon-share_line" aria-label="{lineshare}, {newwindow}"></button>\n <button class="copy-link ac-video-icon icon-share_link" aria-label="{copylink}"></button>\n <button class="copy-embed-code ac-video-icon icon-share_embed" aria-label="{copyembed}"></button>\n </div>\n </div>\n <div class="textarea-container">\n <span>\n <input class="copy-area form-textbox form-textbox-text disabled" type="text" id="copy-link" aria-label="{copylink}"></input>\n <button class="textinput-close-button ac-video-icon icon-share_close" aria-label="{dismisscopy}"></button>\n </span>\n </div>\n </div>\n</div>'},{}],385:[function(t,e,i){"use strict";e.exports='\n<div class="ac-slider-runnable-track">\n\t<div class="ac-slider-background"></div>\n\t<div class="ac-slider-thumb-wrapper">\n\t\t<div class="ac-slider-thumb">\n\t\t\t<div class="ac-slider-thumb-background-wrapper">\n\t\t\t\t<div class="ac-slider-thumb-background"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class="ac-slider-inner-track">\n\t\t<div class="ac-slider-scrubbed"></div>\n\t</div>\n</div>\n'},{}],386:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,r=function(t){n.call(this),this.el=t.el||document.body,this.breakpoints=t.breakpoints.sort((function(t,e){return t.minWidth-e.minWidth})),this._player=t.player,this._breakPointsLength=this.breakpoints.length,this._addClasses=t.addClass,this._addEventListeners(),this._onResize()},s=n.prototype,o=r.prototype=Object.create(s);o.constructor=r,o._addEventListeners=function(){var t=this;this._boundOnResize=function(){t._onResize.apply(t,arguments)},window.addEventListener("resize",this._boundOnResize),window.addEventListener("orientationchange",this._boundOnResize),window.addEventListener("DOMContentLoaded",this._boundOnResize)},o._removeEventListeners=function(){window.removeEventListener("resize",this._boundOnResize),window.removeEventListener("orientationchange",this._boundOnResize),window.addEventListener("DOMContentLoaded",this._boundOnResize)},o._onResize=function(t){var e=this.el.clientWidth,i=this._currentBreakpoint;if(!1!==t&&this._player.refreshSize(),!i||!r.widthInBreakpoint(e,i)){var n=r.getBreakpointFromWidth(e,this.breakpoints,i,this._breakPointsLength);this._addClasses&&(this._currentBreakpoint&&this.el.classList.remove(i.name),this.el.classList.add(n.name)),this._currentBreakpoint=n,this.trigger("breakpointchange",n)}},o.getCurrentBreakpoint=function(){return this._currentBreakpoint},o.refresh=function(){this._onResize(!1)},o.destroy=function(){this._removeEventListeners(),s.destroy.call(this)},r.getBreakpointFromElement=function(t,e){return r.getBreakpointFromWidth(t.clientWidth,e)},r.getBreakpointFromWidth=function(t,e,i,n){for(var r=0,s=n||e.length;r<s;r++){var o=e[r];if(o!==i&&(t>=o.minWidth&&t<=o.maxWidth))return o}return null},r.widthInBreakpoint=function(t,e){return t>=e.minWidth&&t<=e.maxWidth},e.exports=r},{"@marcom/ac-event-emitter-micro":122}],387:[function(t,e,i){"use strict";e.exports={setItem:function(t,e){return localStorage.setItem("acv-"+t,e)},getItem:function(t){return localStorage.getItem("acv-"+t)},hasItem:function(t){return null!==localStorage.getItem("acv-"+t)},removeItem:function(t){return localStorage.removeItem("acv-"+t)},VOLUME_LEVEL:"volume-level",VOLUME_MUTED:"volume-muted",CC_LANGUAGE:"cc-language",AUDIO_TRACK_TYPE:"audiotrack-type",AUDIO_TRACK_LANGUAGE:"audiotrack-language"}},{}],388:[function(t,e,i){"use strict";var n=t("@marcom/ac-string/supplant"),r={addLeadingZero:function(t,e){if(e=e||2,t<10||e>2)for(t=String(t);t.length<e;)t="0"+t;return t},formatTime:function(t,e,i){return isNaN(t)?"00:00":(t=this.splitTime(Math.floor(t),e,function(t){return this.addLeadingZero(t,i)}.bind(this)),n(e>=3600?"{PN}{hours}:{minutes}:{seconds}":"{PN}{minutes}:{seconds}",{PN:t.negativeModifier,hours:t.hours,minutes:t.minutes,seconds:t.seconds}))},splitTime:function(t,e,i){i=i||function(t){return t};var n={negativeModifier:"",hours:0,minutes:0,seconds:0};if(isNaN(t))return n;for(var r in n.negativeModifier=t<0?"-":"",t=Math.abs(t),n.hours=e>=3600?Math.floor(t/3600):0,n.minutes=n.hours?Math.floor(t/60%60):Math.floor(t/60),n.seconds=t%60,n)"number"==typeof n[r]&&"hours"!==r&&(n[r]=i(n[r]));return n},stringToNumber:function(t){for(var e=0,i=t.split(":");i.length;)3===i.length?e+=3600*parseFloat(i.shift()):2===i.length?e+=60*parseFloat(i.shift()):e+=parseFloat(i.shift());return e}};e.exports=r},{"@marcom/ac-string/supplant":300}],389:[function(t,e,i){"use strict";e.exports=t("../../../.versionfile")},{"../../../.versionfile":302}],390:[function(t,e,i){"use strict";e.exports=60},{}],391:[function(t,e,i){"use strict";var n={};e.exports=function(t){return n[t]||(n[t]=new Promise((function(e,i){var n=document.createElement("script");n.type="text/javascript",n.src=t,n.onload=e,n.onerror=i;try{document.body.appendChild(n)}catch(t){i(t)}}))),n[t]}},{}],392:[function(t,e,i){"use strict";var n="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},r=t("@marcom/ac-object/clone");e.exports=function t(){var e=Array.prototype.slice.call(arguments);if(e.length<2)return r(e[0]);var i=r(e.shift(),!0),s=e.shift();for(var o in s)s.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&"object"===n(i[o])?"object"===n(i[o])&&"object"===n(s[o])&&(i[o]=t(i[o],s[o])):i[o]=s[o]);return e.length?t.apply(null,[i].concat(e)):i}},{"@marcom/ac-object/clone":184}],393:[function(t,e,i){"use strict";e.exports=function(t){var e=!0,i=!1,n=void 0;try{for(var r,s=Array.from(t.textTracks)[Symbol.iterator]();!(e=(r=s.next()).done);e=!0)for(var o=r.value;o.cues&&o.cues.length&&o.cues[0].endTime<t.currentTime-60;)o.removeCue(o.cues[0])}catch(t){i=!0,n=t}finally{try{!e&&s.return&&s.return()}finally{if(i)throw n}}}},{}],394:[function(t,e,i){"use strict";e.exports=[{width:480,height:200,type:"medium",suffix:"h"},{width:768,height:320,type:"large",suffix:""},{width:960,height:400,type:"large",suffix:""},{width:1536,height:640,type:"large",suffix:"h"},{width:1536,height:640,type:"large",suffix:"l"},{width:1920,height:800,type:"large",suffix:"l"},{width:1920,height:800,type:"large",suffix:"h"}]},{}],395:[function(t,e,i){"use strict";e.exports=[{width:640,height:360,type:"medium",suffix:"h"},{width:848,height:480,type:"large",suffix:""},{width:960,height:540,type:"large",suffix:""},{width:1280,height:720,type:"large",suffix:"h"},{width:1280,height:720,type:"large",suffix:"l"},{width:1920,height:1080,type:"large",suffix:"l"},{width:1920,height:1080,type:"large",suffix:"h"}]},{}],396:[function(t,e,i){"use strict";e.exports=[{width:812,height:375,type:"medium",suffix:"h"},{width:1082,height:500,type:"large",suffix:""},{width:1218,height:563,type:"large",suffix:""},{width:1624,height:750,type:"large",suffix:"h"},{width:1624,height:750,type:"large",suffix:"l"},{width:2436,height:1126,type:"large",suffix:"l"},{width:2436,height:1126,type:"large",suffix:"h"}]},{}],397:[function(t,e,i){"use strict";e.exports=[{width:480,height:480,type:"medium",suffix:""},{width:540,height:540,type:"medium",suffix:""},{width:720,height:720,type:"large",suffix:"h"},{width:720,height:720,type:"large",suffix:"l"},{width:1080,height:1080,type:"large",suffix:"l"},{width:1080,height:1080,type:"large",suffix:"h"}]},{}],398:[function(t,e,i){"use strict";var n=t("@marcom/ac-string/supplant"),r=/_r[0-9].+\.mov$/,s=/_[0-9]+x[0-9].+\.mp4$/,o=/_[0-9]+x[0-9].+\.(mp4|m3u8)$/,a=/_[0-9]+x[0-9]*.+\.(mp4|m3u8)/,c=/_([0-9]+)x([0-9]+)/,l=/-tpl-.*-/,u=/-cc-[a-z].*-/,h=/-tft-.*-/,d=t("./1X1AssetSizes"),p=t("./16X9AssetSizes"),m=t("./12X5AssetSizes"),f=t("./19X9AssetSizes"),_=function(t,e){return t.find((function(t){return t.width===e.width&&(t.height=e.height)||t.width===e.height&&(t.height=e.width)}))};e.exports={getVideoSource:function(t,e,i,a){var l,u;c.test(t);var v,g={};if(g.width=parseInt(RegExp.$1,10),g.height=parseInt(RegExp.$2,10),t.match(h))l=m,u=1536;else if(g.width===g.height)l=d,u=1080;else if(t.match(r)||_(p,g))l=p,u=1280;else{if(!_(f,g))return t;l=f,u=1624}g.width<g.height&&(v=!0);var y,b=l[0].width,w=a&&a.maxWidth?Math.max(a.maxWidth,b):u;if(!t)throw"Must provide an url to optimize";if(void 0===e||isNaN(e))throw"Must provide a width";0===e&&(e=g.width),i&&(l=l.filter((function(t){return t.type===i}))),w<1920&&(l=l.filter((function(t){return t.width<=w}))),(y=v?l.reduce((function(t,i){return Math.abs(i.height-e)<Math.abs(t.height-e)?i:t})):l.reduce((function(t,i){return Math.abs(i.width-e)<Math.abs(t.width-e)?i:t}))).extension=t.indexOf(".m3u8")>=0?"m3u8":"mp4";var E="_{width}x{height}{suffix}.{extension}";v&&(E="_{height}x{width}{suffix}.{extension}");var k=s;return a&&a.urlOptimizeHls&&(k=o),t.match(k)?t.replace(k,n(E,y)):t.match(r)?t.replace(r,n(E,y)):t},getCaptionsSource:function(t){return t.match(u)?t.match(s)?{src:t.replace(s,"_cc.vtt"),srclang:"en"}:t.match(r)?{src:t.replace(r,"_cc.vtt"),srclang:"en"}:null:null},getThumbnailImageSource:function(t){return t.match(l)?{url:t.replace(a,"_thumbnails.jpg")}:null}}},{"./12X5AssetSizes":394,"./16X9AssetSizes":395,"./19X9AssetSizes":396,"./1X1AssetSizes":397,"@marcom/ac-string/supplant":300}],399:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,i);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,i,n)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(n):void 0};var s=window.Hls,o=t("@marcom/ac-console/log"),a=t("../utils/liveStreamLookback"),c=t("../utils/loadScript"),l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i._src=null,i._hlsUrl=t.hlsUrl||"/ac/libs/hls.js/2.162.3/hls.js",i._hlsConfig=t.hlsConfig||{},i._initialize(t),i}return 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)}(e,t),n(e,[{key:"_initialize",value:function(t){var e=this;void 0===s&&(this._deferredQueue=[],c(this._hlsUrl).then((function(){s=window.Hls,e._initialize(t),e._deferredQueue.forEach((function(t){t()})),e._deferredQueue=null}))),this._debugHls=t.debugHls,this._enablePerformanceLogging=t.enablePerformanceLogging,this._onHlsError=this._onHlsError.bind(this),this._onDesiredRateChanged=this._onDesiredRateChanged.bind(this),this._onPlay=this._onPlay.bind(this),this.on("play",this._onPlay)}},{key:"_initHls",value:function(){if(this._hls){this._cachedVisibleTracks=Array.from(this.el.textTracks).filter((function(t){return"showing"===t.mode})),this._hls.off(s.Events.ERROR,this._onHlsError),this._hls.off(s.Events.DESIRED_RATE_CHANGED,this._onDesiredRateChanged),this._hls.destroy();var t=this.el.cloneNode(!1),e=this.el.muted;this.el.parentElement.replaceChild(t,this.el),this.replaceElement(t),this.el.muted=e,this.getTextTracksEventEmitter().replaceElement(this.el.textTracks)}var i=Object.assign({},s.DefaultConfig.fragLoadPolicy);i.default=Object.assign({},i.default),i.default.reportCDNServer=!1,this._hls=new s(Object.assign({debug:this._debugHls,enableWorker:!0,condenseSubtitleTrack:!0,enableStreaming:!0,autoRecoverError:!0,enablePerformanceLogging:this._enablePerformanceLogging||!1,fragLoadPolicy:i},this._hlsConfig))}},{key:"load",value:function(t,e){if(s){this._initHls(),this._hls.on(s.Events.ERROR,this._onHlsError),this._hls.on(s.Events.DESIRED_RATE_CHANGED,this._onDesiredRateChanged),this._hls.on(s.Events.AUDIO_TRACK_SWITCHED,this._forwardAudioTrackChangeEvent),this._src=t[0];var i=function(){this._mediaAttached=!0,this._hls.off(s.Events.MEDIA_ATTACHED,i),this.setSrc(t[0]),this._createTextTrackTags(e)}.bind(this);this._hls.on(s.Events.MEDIA_ATTACHED,i),this._hls.attachMedia(this.el)}else this._deferredQueue.push(this.load.bind(this,t,e))}},{key:"setSrc",value:function(t){s?(this._hls||this._initHls(),this._src=t,this._manifestParsed=!1,this._hls.loadSource(t,{appData:{}}),this._hls.on(s.Events.MANIFEST_PARSED,this._boundManifestParsed=function(){this._manifestParsed=!0,this._hls.off(s.Events.MANIFEST_PARSED,this._boundManifestParsed),this._shouldPlay&&this.play()}.bind(this))):this._deferredQueue.push(this.setSrc.bind(this,t))}},{key:"getCurrentTime",value:function(){var t=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getCurrentTime",this).call(this);return t<.1?0:t}},{key:"getCurrentSrc",value:function(){return this._src}},{key:"canPlayType",value:function(t){return"vnd.apple.mpegURL"===t?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canPlayType",this).call(this,"video/mp4"):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canPlayType",this).call(this,t)}},{key:"_playPromiseRejected",value:function(){this._hls&&void 0!==this._hls.desiredRate&&(this._hls.desiredRate=0),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_playPromiseRejected",this).call(this)}},{key:"_onPlay",value:function(){this._hls&&0===this._hls.desiredRate&&(this._hls.desiredRate=1)}},{key:"getError",value:function(){return this.el.error||this._error}},{key:"getAudioTracks",value:function(){if(this._hls&&this._hls.audioTracks){var t=this._hls,i=t.audioSelectedPersistentID;return this._hls.audioTracks.map((function(e,n){var r={enabled:t.audioMediaOptions[n].MediaSelectionOptionsPersistentID===i,label:e.name,kind:e.characteristics.some((function(t){return"public.accessibility.describes-video"===t}))?"description":"main",language:e.lang,_hlsTrack:e};return Object.defineProperty(r,"enabled",{get:function(){return t.audioMediaOptions[n].MediaSelectionOptionsPersistentID===i},set:function(e){e&&(t.audioSelectedPersistentID=t.audioMediaOptions[n].MediaSelectionOptionsPersistentID)}}),r}))}return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getAudioTracks",this).call(this)}},{key:"destroy",value:function(){this.off("play",this._onPlay),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._hls&&(this._hls.off(s.Events.AUDIO_TRACK_SWITCHED,this._forwardAudioTrackChangeEvent),this._hls.off(s.Events.AUDIO_TRACKS_UPDATED,this._forwardAudioTrackChangeEvent),this._hls.destroy(),this._hls=null)}},{key:"_onHlsError",value:function(t,e){!0===e.fatal&&("fragLoadError"===e.details?o("HLS JS threw a fatal fragLoadError error, but we'll try to let it recover because it probably can if the network/stream recovers"):(this._error=e.type,this.trigger("error",e)))}},{key:"_onDesiredRateChanged",value:function(t){0===this._hls.desiredRate?this.trigger("pause"):this.trigger("play")}},{key:"play",value:function(){this._shouldPlay=!0,this._manifestParsed&&(this._mediaAttached||this.load([this._src]),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"play",this).call(this))}},{key:"pause",value:function(){this._shouldPlay=!1,r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pause",this).call(this)}},{key:"getPaused",value:function(){return this._hls&&void 0!==this._hls.desiredRate?0===this._hls.desiredRate:r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getPaused",this).call(this)}},{key:"isStalled",value:function(){return void 0!==this._hls.desiredRate&&1===this._hls.desiredRate&&this._hls.desiredRate!==this._hls.effectiveRate||r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"isStalled",this).call(this)}},{key:"goToLive",value:function(){this.setCurrentTime(Math.max(this._hls.liveSyncPosition,this.getDuration()-a/2))}}]),e}(t("./HTML5Video"));e.exports=l},{"../utils/liveStreamLookback":390,"../utils/loadScript":391,"./HTML5Video":400,"@marcom/ac-console/log":69}],400:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("../dom-emitter/DOMEmitterMicro"),s=t("../texttracks/createTextTracks"),o=t("@marcom/ac-console/log"),a=window.document,c=t("@marcom/useragent-detect").browser.safari?4:3,l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=t&&t.mediaElement?t.mediaElement:a.createElement("video"),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,(e.__proto__||Object.getPrototypeOf(e)).call(this,i));return n.el=i,n.options=t||{},n._textTracks=s(t),n._initElement(),n._forwardAudioTrackChangeEvent=n._forwardAudioTrackChangeEvent.bind(n),n._forwardCaptionEvent=n._forwardCaptionEvent.bind(n),n._onTextTrackChangeAfterLoad=n._onTextTrackChangeAfterLoad.bind(n),n._textTracksEmitter=n.getTextTracksEventEmitter(),n._textTracksEmitter.on("addtrack",n._onTextTrackChangeAfterLoad),n._textTracksEmitter.on("addtrack",n._forwardCaptionEvent),n._textTracksEmitter.on("change",n._forwardCaptionEvent),n._textTracksEmitter.on("removetrack",n._forwardCaptionEvent),n.el.audioTracks&&(n.el.audioTracks.addEventListener("addtrack",n._forwardAudioTrackChangeEvent),n.el.audioTracks.addEventListener("removetrack",n._forwardAudioTrackChangeEvent),n.el.audioTracks.addEventListener("change",n._forwardAudioTrackChangeEvent)),n}return 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)}(e,t),n(e,[{key:"_initElement",value:function(){this.el.classList.add("ac-video-media-controller"),null!==this.options.crossorigin&&this.el.setAttribute("crossorigin",this.options.crossorigin?this.options.crossorigin:"anonymous"),this.el.setAttribute("preload",this.options.preload||"auto"),this.el.setAttribute("x-webkit-airplay","")}},{key:"_forwardCaptionEvent",value:function(t){this.trigger(t.type)}},{key:"_forwardAudioTrackChangeEvent",value:function(t){this.trigger("AudioTrackChange")}},{key:"load",value:function(t,e,i){i&&(t=t.map((function(t){return t+"#t="+i}))),this.el.textTracks.length&&(this._cachedVisibleTracks=Array.from(this.el.textTracks).filter((function(t){return"showing"===t.mode}))),this._createSourceTags(t),this._createTextTrackTags(e),this.el.load()}},{key:"_createSourceTags",value:function(t){this.el.removeAttribute("src"),this.el.innerHTML="";var e=0,i=t.length;for(i&&this.el.setAttribute("src",t[0]);e<i;e++){var n=a.createElement("source");n.src=t[e],this.el.appendChild(n)}}},{key:"_playPromiseRejected",value:function(){this.trigger("PlayPromiseError")}},{key:"play",value:function(){try{var t=this.el.play();t&&"function"==typeof t.catch&&(t.catch(function(e){this._playPromise===t&&this._playPromiseRejected()}.bind(this)),t.then(function(){this.trigger("PlayPromiseResolved")}.bind(this),(function(t){o(t)}))),this._playPromise=t}catch(t){o(t)}}},{key:"refreshSize",value:function(){}},{key:"pause",value:function(){this._playPromise=null,this.el.pause()}},{key:"addTextTrack",value:function(t){this._addTextTrackTag(t)}},{key:"removeTextTrack",value:function(t){this._removeTextTrackTag(t)}},{key:"getRenderElement",value:function(){return this.getMediaElement()}},{key:"getMediaElement",value:function(){return this.el}},{key:"_createTextTrackTags",value:function(){return this._textTracks.create.apply(this,arguments)}},{key:"_addTextTrackTag",value:function(){return this._textTracks.add.apply(this,arguments)}},{key:"_removeTextTrackTag",value:function(){return this._textTracks.remove.apply(this,arguments)}},{key:"getTextTracks",value:function(){return this._textTracks.get.apply(this,arguments)}},{key:"getTextTracksEventEmitter",value:function(){return this._textTracks.getEmitter.apply(this,arguments)}},{key:"getAudioTracks",value:function(){return this.el.audioTracks||[]}},{key:"getReadyState",value:function(){return this.el.readyState}},{key:"getPreload",value:function(){return this.el.preload}},{key:"setPreload",value:function(t){return this.el.preload=t}},{key:"setPoster",value:function(t){t?this.el.poster=t:this.el.removeAttribute("poster")}},{key:"getVolume",value:function(){return this.el.volume}},{key:"getMuted",value:function(){return this.el.muted}},{key:"getPaused",value:function(){return this.el.paused}},{key:"getCurrentTime",value:function(){return this.el.currentTime}},{key:"getDuration",value:function(){return this.el.duration}},{key:"setCurrentTime",value:function(t){return this.el.currentTime=t}},{key:"setVolume",value:function(t){return this.el.volume=t}},{key:"setMuted",value:function(t){this.el.muted=t,t?this.el.setAttribute("muted",""):this.el.removeAttribute("muted")}},{key:"getEnded",value:function(){return this.el.ended}},{key:"getError",value:function(){return this.el.error}},{key:"setSrc",value:function(t){this.el.childNodes.length&&t===this._getSrcNode().url||this._createSourceTags([t])}},{key:"advanceLiveStream",value:function(){}},{key:"getCurrentSrc",value:function(){return this.el.src}},{key:"_getSrcNode",value:function(){return this.el.childNodes[0]}},{key:"_onTextTrackChangeAfterLoad",value:function(){var t=this;if(this._cachedVisibleTracks){if(!this._cachedVisibleTracks.length){var e=!0,i=!1,n=void 0;try{for(var r,s=Array.from(this.el.textTracks)[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){r.value.mode="hidden"}}catch(t){i=!0,n=t}finally{try{!e&&s.return&&s.return()}finally{if(i)throw n}}}this._cachedVisibleTracks.forEach((function(e){var i=Array.from(t.el.textTracks).find((function(t){return e.language===t.language}));i&&(i.mode="showing")}))}this.trigger("TextTrackChange")}},{key:"setControls",value:function(t){t?(this.el.setAttribute("controls",""),this.el.removeAttribute("aria-hidden")):(this.el.removeAttribute("controls"),this.el.setAttribute("aria-hidden","true"))}},{key:"isFullscreen",value:function(){return this.el.webkitDisplayingFullscreen}},{key:"supportsPictureInPicture",value:function(){return"function"==typeof this.el.webkitSetPresentationMode}},{key:"isPictureInPicture",value:function(){return"picture-in-picture"===this.el.webkitPresentationMode}},{key:"setPictureInPicture",value:function(t){this.supportsPictureInPicture()&&this.el.webkitSetPresentationMode(t?"picture-in-picture":"inline")}},{key:"supportsAirPlay",value:function(){return!!window.WebKitPlaybackTargetAvailabilityEvent}},{key:"canPlayType",value:function(t){return this.el.canPlayType(t)}},{key:"getBuffered",value:function(){return this.el.buffered}},{key:"isStalled",value:function(){return this.getReadyState()<c}},{key:"destroy",value:function(){this._playPromise=null,this._textTracksEmitter&&(this._textTracksEmitter.off("addtrack",this._forwardCaptionEvent),this._textTracksEmitter.off("addtrack",this._onTextTrackChangeAfterLoad),this._textTracksEmitter.off("change",this._forwardCaptionEvent),this._textTracksEmitter.off("removetrack",this._forwardCaptionEvent)),this.el.audioTracks&&this.el.audioTracks.removeEventListener("change",this._forwardAudioTrackChangeEvent),this._textTracks&&this._textTracks.destroy.call(this),this._textTracks=null,this._textTracksEmitter=null,this.el=null}}]),e}(r);e.exports=l},{"../dom-emitter/DOMEmitterMicro":309,"../texttracks/createTextTracks":324,"@marcom/ac-console/log":69,"@marcom/useragent-detect":435}],401:[function(t,e,i){"use strict";var n=t("./HTML5Video"),r=t("./ThreeSixtyVideoBase"),s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i._super=n.prototype,i._init(t),i}return 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)}(e,t),e}(n),o=!0,a=!1,c=void 0;try{for(var l,u=Object.getOwnPropertyNames(r.prototype)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var h=l.value;"constructor"!==h&&(s.prototype[h]=r.prototype[h])}}catch(t){a=!0,c=t}finally{try{!o&&u.return&&u.return()}finally{if(a)throw c}}e.exports=s},{"./HTML5Video":400,"./ThreeSixtyVideoBase":402}],402:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("@marcom/ac-360"),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,[{key:"_init",value:function(t){this._renderElement=document.createElement("div"),this._renderElement.classList.add("threesixty-video-container"),this.el.style.visibility="hidden",this.el.style.opacity=0,this.sendMouseDown=this.sendMouseDown.bind(this),this._renderElement.appendChild(this.el),this._init360()}},{key:"_init360",value:function(){this._ac360=new r({el:this._renderElement,src:this.getMediaElement()}),this._ac360.on("error",function(){this._error="360_ERROR",this.trigger("error")}.bind(this)),this._loadOnInit&&(this.load.apply(this,function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(this._loadOnInit)),this._loadOnInit=null)}},{key:"load",value:function(){this._ac360?(this._ac360.setPos(0,0),this._super.load.apply(this,arguments)):this._loadOnInit=arguments}},{key:"play",value:function(){this.getEnded()&&this._ac360.setPos(0,0),this._super.play.apply(this)}},{key:"sendMouseDown",value:function(t){this._ac360.sendMouseDown(t)}},{key:"getRenderElement",value:function(){return this._renderElement}},{key:"get360",value:function(){return this._ac360}},{key:"setControls",value:function(t){this._super.setControls.apply(this,arguments)}},{key:"supportsPictureInPicture",value:function(){return!1}},{key:"supportsAirPlay",value:function(){return!1}},{key:"refreshSize",value:function(){this._ac360&&this._ac360.refreshSize()}},{key:"getError",value:function(){return this._error||this._super.getError.apply(this)}}]),t}();e.exports=s},{"@marcom/ac-360":14}],403:[function(t,e,i){"use strict";var n=t("./HLSVideo"),r=t("./ThreeSixtyVideoBase"),s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i._super=n.prototype,i._init(t),i}return 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)}(e,t),e}(n),o=!0,a=!1,c=void 0;try{for(var l,u=Object.getOwnPropertyNames(r.prototype)[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var h=l.value;"constructor"!==h&&(s.prototype[h]=r.prototype[h])}}catch(t){a=!0,c=t}finally{try{!o&&u.return&&u.return()}finally{if(a)throw c}}e.exports=s},{"./HLSVideo":399,"./ThreeSixtyVideoBase":402}],404:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var r=t("./HLSVideo"),s=t("./ThreeSixtyVideo"),o=t("./ThreeSixtyVideoHls"),a=t("./HTML5Video"),c=t("@marcom/useragent-detect"),l=c.browser.safari||c.browser.edge,u="MediaSource"in window&&!c.browser.edge&&!c.os.ios;function h(t){return(t.hls||function(t){return t.src&&-1!==t.src.indexOf(".m3u8")||t.sources&&t.sources[0]&&-1!==t.sources[0].indexOf(".m3u8")}(t))&&!(l&&!1!==t.useNativeHls&&!t.dvr)&&u}var d=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,[{key:"create",value:function(t,e){if(h(t)&&!t.threesixty)return new r(Object.assign({},t,{parentElement:e}));if(t.threesixty){var i=s;return h(t)&&(i=o),new i(Object.assign({},t,{parentElement:e}))}return new a(Object.assign({},t,{parentElement:e}))}}]),t}();e.exports=new d},{"./HLSVideo":399,"./HTML5Video":400,"./ThreeSixtyVideo":401,"./ThreeSixtyVideoHls":403,"@marcom/useragent-detect":435}],405:[function(t,e,i){"use strict";e.exports={getContentDimensions:t("./getContentDimensions"),getDimensions:t("./getDimensions"),getMaxScrollPosition:t("./getMaxScrollPosition"),getPagePosition:t("./getPagePosition"),getPercentInViewport:t("./getPercentInViewport"),getPixelsInViewport:t("./getPixelsInViewport"),getPosition:t("./getPosition"),getScrollPosition:t("./getScrollPosition"),getViewportPosition:t("./getViewportPosition"),isInViewport:t("./isInViewport")}},{"./getContentDimensions":406,"./getDimensions":407,"./getMaxScrollPosition":408,"./getPagePosition":409,"./getPercentInViewport":410,"./getPixelsInViewport":411,"./getPosition":412,"./getScrollPosition":413,"./getViewportPosition":414,"./isInViewport":415}],406:[function(t,e,i){"use strict";e.exports=function(t,e){var i=1;return e&&(i=t.getBoundingClientRect().width/t.offsetWidth),{width:t.scrollWidth*i,height:t.scrollHeight*i}}},{}],407:[function(t,e,i){"use strict";e.exports=function(t,e){var i;return e?{width:(i=t.getBoundingClientRect()).width,height:i.height}:{width:t.offsetWidth,height:t.offsetHeight}}},{}],408:[function(t,e,i){"use strict";function n(t,e){return"x"===e?t.scrollWidth-t.clientWidth:t.scrollHeight-t.clientHeight}e.exports=function(t,e){var i=typeof t;return e="string"===i?t:e,t=t&&"string"!==i&&t!==window?t:document.documentElement,e&&/^[xy]$/i.test(e)?n(t,e):{x:n(t,"x"),y:n(t,"y")}}},{}],409:[function(t,e,i){"use strict";var n=t("./getDimensions"),r=t("./getScrollPosition");e.exports=function(t,e){var i;if(e){var s=r(),o=t.getBoundingClientRect();i={top:o.top+s.y,right:o.right+s.x,bottom:o.bottom+s.y,left:o.left+s.x}}else{var a=n(t);for(i={top:t.offsetTop,right:a.width,bottom:a.height,left:t.offsetLeft};t=t.offsetParent;)i.top+=t.offsetTop,i.left+=t.offsetLeft;i.right+=i.left,i.bottom+=i.top}var c=document.documentElement.offsetTop,l=document.documentElement.offsetLeft;return{top:i.top+c,right:i.right+l,bottom:i.bottom+c,left:i.left+l}}},{"./getDimensions":407,"./getScrollPosition":413}],410:[function(t,e,i){"use strict";var n=t("./getDimensions"),r=t("./getPixelsInViewport");e.exports=function(t,e){var i=r(t,e),s=n(t,e);return{x:i.x/s.width,y:i.y/s.height}}},{"./getDimensions":407,"./getPixelsInViewport":411}],411:[function(t,e,i){"use strict";var n=t("./getViewportPosition");e.exports=function(t,e){var i=window.innerWidth,r=window.innerHeight,s=n(t,e),o={x:s.right-s.left,y:s.bottom-s.top};return s.top<0&&(o.y+=s.top),s.bottom>r&&(o.y-=s.bottom-r),s.left<0&&(o.x+=s.left),s.right>i&&(o.x-=s.right-i),o.x=o.x<0?0:o.x,o.y=o.y<0?0:o.y,o}},{"./getViewportPosition":414}],412:[function(t,e,i){"use strict";var n=t("./getDimensions");e.exports=function(t,e){var i,r,s,o,a,c,l;return e?(r=(i=t.getBoundingClientRect()).top,s=i.left,o=i.width,a=i.height,t.offsetParent&&(r-=(c=t.offsetParent.getBoundingClientRect()).top,s-=c.left)):(l=n(t,e),r=t.offsetTop,s=t.offsetLeft,o=l.width,a=l.height),{top:r,right:s+o,bottom:r+a,left:s}}},{"./getDimensions":407}],413:[function(t,e,i){"use strict";function n(t){return"x"===t?window.scrollX||window.pageXOffset:window.scrollY||window.pageYOffset}function r(t,e,i){return"x"===e?i?n("x"):t.scrollLeft:i?n("y"):t.scrollTop}e.exports=function(t,e){var i=typeof t;e="string"===i?t:e;var n=(t=t&&"string"!==i?t:window)===window;return e&&/^[xy]$/i.test(e)?r(t,e,n):{x:r(t,"x",n),y:r(t,"y",n)}}},{}],414:[function(t,e,i){"use strict";var n=t("./getPagePosition"),r=t("./getScrollPosition");e.exports=function(t,e){var i;if(e)return{top:(i=t.getBoundingClientRect()).top,right:i.right,bottom:i.bottom,left:i.left};i=n(t);var s=r();return{top:i.top-s.y,right:i.right-s.x,bottom:i.bottom-s.y,left:i.left-s.x}}},{"./getPagePosition":409,"./getScrollPosition":413}],415:[function(t,e,i){"use strict";var n=t("./getPercentInViewport"),r=t("./getDimensions");e.exports=function(t,e,i){var s=n(t,e);return i=function(t,e,i){var n={x:0,y:0};if(!e)return n;var s,o=typeof e;return e="number"===o||"string"===o?{x:e,y:e}:Object.assign(n,e),Object.keys(n).forEach((function(n){var o=e[n];("string"==typeof o||o>1)&&(s=s||r(t,i),o=(parseInt(o,10)||0)/("x"===n?s.width:s.height)),e[n]=o})),e}(t,i,e),s.y>0&&s.y>=i.y&&s.x>0&&s.x>=i.x}},{"./getDimensions":407,"./getPercentInViewport":410}],416:[function(t,e,i){arguments[4][165][0].apply(i,arguments)},{dup:165}],417:[function(t,e,i){arguments[4][168][0].apply(i,arguments)},{dup:168}],418:[function(t,e,i){arguments[4][169][0].apply(i,arguments)},{"./isNode":417,dup:169}],419:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isNodeType"),r=t("./internal/validate"),s=t("@marcom/ac-dom-nodes/NODE_TYPES").ELEMENT;e.exports=function(t,e,i,o){if(r.childNode(t,"ancestors"),r.selector(e,"ancestors"),i&&n(t,s)&&(!e||t.matches(e)))return t;if(t!==(o=o||document.body))for(;(t=t.parentNode)&&n(t,s);){if(!e||t.matches(e))return t;if(t===o)break}return null}},{"./internal/validate":421,"@marcom/ac-dom-nodes/NODE_TYPES":416,"@marcom/ac-dom-nodes/isNodeType":418}],420:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isNodeType"),r=t("./internal/validate"),s=t("@marcom/ac-dom-nodes/NODE_TYPES").ELEMENT;e.exports=function(t,e,i,o){var a=[];if(r.childNode(t,"ancestors"),r.selector(e,"ancestors"),i&&n(t,s)&&(!e||t.matches(e))&&a.push(t),t!==(o=o||document.body))for(;(t=t.parentNode)&&n(t,s)&&(e&&!t.matches(e)||a.push(t),t!==o););return a}},{"./internal/validate":421,"@marcom/ac-dom-nodes/NODE_TYPES":416,"@marcom/ac-dom-nodes/isNodeType":418}],421:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-nodes/isNodeType"),r=t("@marcom/ac-dom-nodes/NODE_TYPES"),s=r.COMMENT,o=r.DOCUMENT_FRAGMENT,a=r.DOCUMENT,c=r.ELEMENT,l=r.TEXT,u=[c,a,o],h=[c,l,s];e.exports={parentNode:function(t,e){if(!t||!n(t,u))throw new TypeError(e+": node must be an Element, Document, or Document Fragment")},childNode:function(t,e){if(!t||!n(t,h))throw new TypeError(e+": node must be an Element, TextNode, or Comment")},selector:function(t,e,i){if(i="boolean"==typeof i&&i,(t||i)&&"string"!=typeof t)throw new TypeError(e+": selector must be a string")}}},{"@marcom/ac-dom-nodes/NODE_TYPES":416,"@marcom/ac-dom-nodes/isNodeType":418}],422:[function(t,e,i){"use strict";var n=function(){var t,e="";for(t=0;t<arguments.length;t++)t>0&&(e+=","),e+=arguments[t];return e};e.exports=function(t,e){e=e||n;var i=function(){var n=arguments,r=e.apply(this,n);return r in i.cache||(i.cache[r]=t.apply(this,n)),i.cache[r]};return i.cache={},i}},{}],423:[function(t,e,i){"use strict";e.exports=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}},{}],424:[function(t,e,i){"use strict";var n=t("@marcom/ac-prefixer/getStyleValue"),r=t("@marcom/ac-prefixer/getStyleProperty"),s=t("@marcom/function-utils/memoize");function o(t,e){return void 0!==e?!!n(t,e):!!r(t)}e.exports=s(o),e.exports.original=o},{"@marcom/ac-prefixer/getStyleProperty":231,"@marcom/ac-prefixer/getStyleValue":232,"@marcom/function-utils/memoize":422}],425:[function(t,e,i){"use strict";e.exports={getWindow:function(){return window},getDocument:function(){return document},getNavigator:function(){return navigator}}},{}],426:[function(t,e,i){"use strict";var n=t("@marcom/useragent-detect").os,r=t("./touchAvailable").original,s=t("./helpers/globals"),o=t("@marcom/function-utils/once");function a(){var t=s.getWindow();return!r()&&!t.orientation||n.windows}e.exports=o(a),e.exports.original=a},{"./helpers/globals":425,"./touchAvailable":430,"@marcom/function-utils/once":423,"@marcom/useragent-detect":435}],427:[function(t,e,i){"use strict";var n=t("./isDesktop").original,r=t("./isTablet").original,s=t("@marcom/function-utils/once");function o(){return!n()&&!r()}e.exports=s(o),e.exports.original=o},{"./isDesktop":426,"./isTablet":429,"@marcom/function-utils/once":423}],428:[function(t,e,i){"use strict";var n=t("./helpers/globals");e.exports=function(){var t=n.getWindow();return"devicePixelRatio"in t&&t.devicePixelRatio>=1.5}},{"./helpers/globals":425}],429:[function(t,e,i){"use strict";var n=t("./isDesktop").original,r=t("./helpers/globals"),s=t("@marcom/function-utils/once");function o(){var t=r.getWindow(),e=t.screen.width;return t.orientation&&t.screen.height<e&&(e=t.screen.height),!n()&&e>=600}e.exports=s(o),e.exports.original=o},{"./helpers/globals":425,"./isDesktop":426,"@marcom/function-utils/once":423}],430:[function(t,e,i){"use strict";var n=t("./helpers/globals"),r=t("@marcom/function-utils/once");function s(){var t=n.getWindow(),e=n.getDocument(),i=n.getNavigator();return!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch||i.maxTouchPoints>0||i.msMaxTouchPoints>0)}e.exports=r(s),e.exports.original=s},{"./helpers/globals":425,"@marcom/function-utils/once":423}],431:[function(t,e,i){"use strict";e.exports=function(t,e){var i;function n(){var n=arguments,r=function(){i=null,t.apply(this,n)}.bind(this);clearTimeout(i),i=setTimeout(r,e)}return n.cancel=function(){clearTimeout(i)},n}},{}],432:[function(t,e,i){"use strict";e.exports={browser:{safari:!1,chrome:!1,firefox:!1,ie:!1,opera:!1,android:!1,edge:!1,edgeChromium:!1,samsung:!1,version:{string:"",major:0,minor:0,patch:0,documentMode:!1}},os:{osx:!1,ios:!1,android:!1,windows:!1,linux:!1,fireos:!1,chromeos:!1,version:{string:"",major:0,minor:0,patch:0}}}},{}],433:[function(t,e,i){"use strict";e.exports={browser:[{name:"edge",userAgent:"Edge",version:["rv","Edge"],test:function(t){return t.ua.indexOf("Edge")>-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===t.ua}},{name:"edgeChromium",userAgent:"Edge",version:["rv","Edg"],test:function(t){return t.ua.indexOf("Edg")>-1&&-1===t.ua.indexOf("Edge")}},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(t){return t.ua.indexOf("Firefox")>-1&&-1===t.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(t){return t.ua.indexOf("Safari")>-1&&t.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(t){return t.ua.indexOf("IE")>-1||t.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){var t=!1;return document.documentMode&&(t=parseInt(document.documentMode,10)),t}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]},{name:"samsung",userAgent:"SamsungBrowser"}],os:[{name:"windows",test:function(t){return t.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(t){return t.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(t){return t.ua.indexOf("iPhone")>-1||t.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(t){return(t.ua.indexOf("Linux")>-1||t.platform.indexOf("Linux")>-1)&&-1===t.ua.indexOf("Android")}},{name:"fireos",test:function(t){return t.ua.indexOf("Firefox")>-1&&t.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(t){return t.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},{}],434:[function(t,e,i){"use strict";var n=t("./defaults"),r=t("./dictionary");function s(t,e){if("function"==typeof t.parseVersion)return t.parseVersion(e);var i,n=t.version||t.userAgent;"string"==typeof n&&(n=[n]);for(var r,s=n.length,o=0;o<s;o++)if((r=e.match((i=n[o],new RegExp(i+"[a-zA-Z\\s/:]+([0-9_.]+)","i"))))&&r.length>1)return r[1].replace(/_/g,".");return!1}function o(t,e,i){for(var n,r,o=t.length,a=0;a<o;a++)if("function"==typeof t[a].test?!0===t[a].test(i)&&(n=t[a].name):i.ua.indexOf(t[a].userAgent)>-1&&(n=t[a].name),n){if(e[n]=!0,"string"==typeof(r=s(t[a],i.ua))){var c=r.split(".");e.version.string=r,c&&c.length>0&&(e.version.major=parseInt(c[0]||0),e.version.minor=parseInt(c[1]||0),e.version.patch=parseInt(c[2]||0))}else"edge"===n&&(e.version.string="12.0.0",e.version.major="12",e.version.minor="0",e.version.patch="0");return"function"==typeof t[a].parseDocumentMode&&(e.version.documentMode=t[a].parseDocumentMode()),e}return e}e.exports=function(t){var e={};return e.browser=o(r.browser,n.browser,t),e.os=o(r.os,n.os,t),e}},{"./defaults":432,"./dictionary":433}],435:[function(t,e,i){"use strict";var n={ua:window.navigator.userAgent,platform:window.navigator.platform,vendor:window.navigator.vendor};e.exports=t("./parseUserAgent")(n)},{"./parseUserAgent":434}],436:[function(t,e,i){e.exports={majorVersionNumber:"3.x"}},{}],437:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,s=t("./sharedRAFExecutorInstance"),o=t("./sharedRAFEmitterIDGeneratorInstance");function a(t){t=t||{},r.call(this),this.id=o.getNewID(),this.executor=t.executor||s,this._reset(),this._willRun=!1,this._didDestroy=!1}(n=a.prototype=Object.create(r.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},n.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},n.destroy=function(){var t=this.willRun();return this.cancel(),this.executor=null,r.prototype.destroy.call(this),this._didDestroy=!0,t},n.willRun=function(){return this._willRun},n.isRunning=function(){return this._isRunning},n._subscribe=function(){return this.executor.subscribe(this)},n._unsubscribe=function(){return this.executor.unsubscribe(this)},n._onAnimationFrameStart=function(t){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",t))},n._onAnimationFrameEnd=function(t){this._willRun||(this.trigger("stop",t),this._reset())},n._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},e.exports=a},{"./sharedRAFEmitterIDGeneratorInstance":442,"./sharedRAFExecutorInstance":443,"@marcom/ac-event-emitter-micro":122}],438:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-event-emitter-micro/EventEmitterMicro");function s(t){t=t||{},this._reset(),this.updatePhases(),this.eventEmitter=new r,this._willRun=!1,this._totalSubscribeCount=-1,this._requestAnimationFrame=window.requestAnimationFrame,this._cancelAnimationFrame=window.cancelAnimationFrame,this._boundOnAnimationFrame=this._onAnimationFrame.bind(this),this._boundOnExternalAnimationFrame=this._onExternalAnimationFrame.bind(this)}(n=s.prototype).frameRequestedPhase="requested",n.startPhase="start",n.runPhases=["update","external","draw"],n.endPhase="end",n.disabledPhase="disabled",n.beforePhaseEventPrefix="before:",n.afterPhaseEventPrefix="after:",n.subscribe=function(t,e){return this._totalSubscribeCount++,this._nextFrameSubscribers[t.id]||(e?this._nextFrameSubscribersOrder.unshift(t.id):this._nextFrameSubscribersOrder.push(t.id),this._nextFrameSubscribers[t.id]=t,this._nextFrameSubscriberArrayLength++,this._nextFrameSubscriberCount++,this._run()),this._totalSubscribeCount},n.subscribeImmediate=function(t,e){return this._totalSubscribeCount++,this._subscribers[t.id]||(e?this._subscribersOrder.splice(this._currentSubscriberIndex+1,0,t.id):this._subscribersOrder.unshift(t.id),this._subscribers[t.id]=t,this._subscriberArrayLength++,this._subscriberCount++),this._totalSubscribeCount},n.unsubscribe=function(t){return!!this._nextFrameSubscribers[t.id]&&(this._nextFrameSubscribers[t.id]=null,this._nextFrameSubscriberCount--,0===this._nextFrameSubscriberCount&&this._cancel(),!0)},n.getSubscribeID=function(){return this._totalSubscribeCount+=1},n.destroy=function(){var t=this._cancel();return this.eventEmitter.destroy(),this.eventEmitter=null,this.phases=null,this._subscribers=null,this._subscribersOrder=null,this._nextFrameSubscribers=null,this._nextFrameSubscribersOrder=null,this._rafData=null,this._boundOnAnimationFrame=null,this._onExternalAnimationFrame=null,t},n.useExternalAnimationFrame=function(t){if("boolean"==typeof t){var e=this._isUsingExternalAnimationFrame;return t&&this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),!this._willRun||t||this._animationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this._isUsingExternalAnimationFrame=t,t?this._boundOnExternalAnimationFrame:e||!1}},n.updatePhases=function(){this.phases||(this.phases=[]),this.phases.length=0,this.phases.push(this.frameRequestedPhase),this.phases.push(this.startPhase),Array.prototype.push.apply(this.phases,this.runPhases),this.phases.push(this.endPhase),this._runPhasesLength=this.runPhases.length,this._phasesLength=this.phases.length},n._run=function(){if(!this._willRun)return this._willRun=!0,0===this.lastFrameTime&&(this.lastFrameTime=performance.now()),this._animationFrameActive=!0,this._isUsingExternalAnimationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this.phase===this.disabledPhase&&(this.phaseIndex=0,this.phase=this.phases[this.phaseIndex]),!0},n._cancel=function(){var t=!1;return this._animationFrameActive&&(this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),this._animationFrameActive=!1,this._willRun=!1,t=!0),this._isRunning||this._reset(),t},n._onAnimationFrame=function(t){for(this._subscribers=this._nextFrameSubscribers,this._subscribersOrder=this._nextFrameSubscribersOrder,this._subscriberArrayLength=this._nextFrameSubscriberArrayLength,this._subscriberCount=this._nextFrameSubscriberCount,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this.phaseIndex=0,this.phase=this.phases[this.phaseIndex],this._isRunning=!0,this._willRun=!1,this._didRequestNextRAF=!1,this._rafData.delta=t-this.lastFrameTime,this.lastFrameTime=t,this._rafData.fps=0,this._rafData.delta>=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=t,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameStart(this._rafData);for(this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._runPhaseIndex=0;this._runPhaseIndex<this._runPhasesLength;this._runPhaseIndex++){for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]].trigger(this.phase,this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase)}for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameEnd(this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._willRun?(this.phaseIndex=0,this.phaseIndex=this.phases[this.phaseIndex]):this._reset()},n._onExternalAnimationFrame=function(t){this._isUsingExternalAnimationFrame&&this._onAnimationFrame(t)},n._reset=function(){this._rafData||(this._rafData={}),this._rafData.time=0,this._rafData.delta=0,this._rafData.fps=0,this._rafData.naturalFps=0,this._rafData.timeNow=0,this._subscribers={},this._subscribersOrder=[],this._currentSubscriberIndex=-1,this._subscriberArrayLength=0,this._subscriberCount=0,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this._didEmitFrameData=!1,this._animationFrame=null,this._animationFrameActive=!1,this._isRunning=!1,this._shouldReset=!1,this.lastFrameTime=0,this._runPhaseIndex=-1,this.phaseIndex=-1,this.phase=this.disabledPhase},e.exports=s},{"@marcom/ac-event-emitter-micro/EventEmitterMicro":123}],439:[function(t,e,i){"use strict";var n=t("./SingleCallRAFEmitter"),r=function(t){this.phase=t,this.rafEmitter=new n,this._cachePhaseIndex(),this.requestAnimationFrame=this.requestAnimationFrame.bind(this),this.cancelAnimationFrame=this.cancelAnimationFrame.bind(this),this._onBeforeRAFExecutorStart=this._onBeforeRAFExecutorStart.bind(this),this._onBeforeRAFExecutorPhase=this._onBeforeRAFExecutorPhase.bind(this),this._onAfterRAFExecutorPhase=this._onAfterRAFExecutorPhase.bind(this),this.rafEmitter.on(this.phase,this._onRAFExecuted.bind(this)),this.rafEmitter.executor.eventEmitter.on("before:start",this._onBeforeRAFExecutorStart),this.rafEmitter.executor.eventEmitter.on("before:"+this.phase,this._onBeforeRAFExecutorPhase),this.rafEmitter.executor.eventEmitter.on("after:"+this.phase,this._onAfterRAFExecutorPhase),this._frameCallbacks=[],this._currentFrameCallbacks=[],this._nextFrameCallbacks=[],this._phaseActive=!1,this._currentFrameID=-1,this._cancelFrameIdx=-1,this._frameCallbackLength=0,this._currentFrameCallbacksLength=0,this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0},s=r.prototype;s.requestAnimationFrame=function(t,e){return!0===e&&this.rafEmitter.executor.phaseIndex>0&&this.rafEmitter.executor.phaseIndex<=this.phaseIndex?this._phaseActive?(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!0),this._frameCallbacks.push(this._currentFrameID,t),this._frameCallbackLength+=2):(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!1),this._currentFrameCallbacks.push(this._currentFrameID,t),this._currentFrameCallbacksLength+=2):(this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,t),this._nextFrameCallbacksLength+=2),this._currentFrameID},s.cancelAnimationFrame=function(t){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(t),this._cancelFrameIdx>-1?this._cancelNextAnimationFrame():(this._cancelFrameIdx=this._currentFrameCallbacks.indexOf(t),this._cancelFrameIdx>-1?this._cancelCurrentAnimationFrame():(this._cancelFrameIdx=this._frameCallbacks.indexOf(t),this._cancelFrameIdx>-1&&this._cancelRunningAnimationFrame()))},s._onRAFExecuted=function(t){for(this._frameCallbackIteration=0;this._frameCallbackIteration<this._frameCallbackLength;this._frameCallbackIteration+=2)this._frameCallbacks[this._frameCallbackIteration+1](t.time,t);this._frameCallbacks.length=0,this._frameCallbackLength=0},s._onBeforeRAFExecutorStart=function(){Array.prototype.push.apply(this._currentFrameCallbacks,this._nextFrameCallbacks.splice(0,this._nextFrameCallbacksLength)),this._currentFrameCallbacksLength=this._nextFrameCallbacksLength,this._nextFrameCallbacks.length=0,this._nextFrameCallbacksLength=0},s._onBeforeRAFExecutorPhase=function(){this._phaseActive=!0,Array.prototype.push.apply(this._frameCallbacks,this._currentFrameCallbacks.splice(0,this._currentFrameCallbacksLength)),this._frameCallbackLength=this._currentFrameCallbacksLength,this._currentFrameCallbacks.length=0,this._currentFrameCallbacksLength=0},s._onAfterRAFExecutorPhase=function(){this._phaseActive=!1},s._cachePhaseIndex=function(){this.phaseIndex=this.rafEmitter.executor.phases.indexOf(this.phase)},s._cancelRunningAnimationFrame=function(){this._frameCallbacks.splice(this._cancelFrameIdx,2),this._frameCallbackLength-=2},s._cancelCurrentAnimationFrame=function(){this._currentFrameCallbacks.splice(this._cancelFrameIdx,2),this._currentFrameCallbacksLength-=2},s._cancelNextAnimationFrame=function(){this._nextFrameCallbacks.splice(this._cancelFrameIdx,2),this._nextFrameCallbacksLength-=2,0===this._nextFrameCallbacksLength&&this.rafEmitter.cancel()},e.exports=r},{"./SingleCallRAFEmitter":441}],440:[function(t,e,i){"use strict";var n=t("./RAFInterface"),r=function(){this.events={}},s=r.prototype;s.requestAnimationFrame=function(t){return this.events[t]||(this.events[t]=new n(t)),this.events[t].requestAnimationFrame},s.cancelAnimationFrame=function(t){return this.events[t]||(this.events[t]=new n(t)),this.events[t].cancelAnimationFrame},e.exports=new r},{"./RAFInterface":439}],441:[function(t,e,i){"use strict";var n=t("./RAFEmitter"),r=function(t){n.call(this,t)};(r.prototype=Object.create(n.prototype))._subscribe=function(){return this.executor.subscribe(this,!0)},e.exports=r},{"./RAFEmitter":437}],442:[function(t,e,i){"use strict";var n=t("@marcom/ac-shared-instance").SharedInstance,r=t("../.release-info.js").majorVersionNumber,s=function(){this._currentID=0};s.prototype.getNewID=function(){return this._currentID++,"raf:"+this._currentID},e.exports=n.share("@marcom/ac-raf-emitter/sharedRAFEmitterIDGeneratorInstance",r,s)},{"../.release-info.js":436,"@marcom/ac-shared-instance":261}],443:[function(t,e,i){"use strict";var n=t("@marcom/ac-shared-instance").SharedInstance,r=t("../.release-info.js").majorVersionNumber,s=t("./RAFExecutor");e.exports=n.share("@marcom/ac-raf-emitter/sharedRAFExecutorInstance",r,s)},{"../.release-info.js":436,"./RAFExecutor":438,"@marcom/ac-shared-instance":261}],444:[function(t,e,i){"use strict";var n=t("./RAFInterfaceController");e.exports=n.requestAnimationFrame("update")},{"./RAFInterfaceController":440}],445:[function(t,e,i){"use strict";var n=t("@marcom/ac-event-emitter-micro").EventEmitterMicro,r=t("@marcom/ac-raf-emitter/update"),s="viewport-emitter",o={removeNamespace:!0},a="data-viewport-emitter-dispatch",c="data-viewport-emitter-state",l="only screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min-resolution: 1.5dppx), screen and (min-resolution: 144dpi)",u="only screen and (orientation: portrait)",h="only screen and (orientation: landscape)",d="change:any",p="change:orientation",m="change:retina",f="change:viewport";function _(t,e){n.call(this),this._id=t||s,this._options=Object.assign({},o,e),this._allowDOMEventDispatch=!1,this._allowElementStateData=!1,this._options.removeNamespace="boolean"!=typeof this._options.removeNamespace||this._options.removeNamespace,this._el=this._initViewportEl(this._id),this._resizing=!1,this._mediaQueryLists={resolution:{retina:window.matchMedia(l)},orientation:{portrait:window.matchMedia(u),landscape:window.matchMedia(h)}},this._viewport=this._getViewport(this._options.removeNamespace),this._retina=this._getRetina(this._mediaQueryLists.resolution.retina),this._orientation=this._initOrientation(),this._addListeners(),this._updateElementStateData()}Object.defineProperty(_,"DOM_DISPATCH_ATTRIBUTE",{get:function(){return a}}),Object.defineProperty(_,"DOM_STATE_ATTRIBUTE",{get:function(){return c}});var v=_.prototype=Object.create(n.prototype);Object.defineProperty(v,"id",{get:function(){return this._id}}),Object.defineProperty(v,"element",{get:function(){return this._el}}),Object.defineProperty(v,"mediaQueryLists",{get:function(){return this._mediaQueryLists}}),Object.defineProperty(v,"viewport",{get:function(){return this._viewport}}),Object.defineProperty(v,"retina",{get:function(){return this._retina}}),Object.defineProperty(v,"orientation",{get:function(){return this._orientation}}),Object.defineProperty(v,"hasDomDispatch",{get:function(){return this._allowDOMEventDispatch}}),v.destroy=function(){for(var t in this._removeListeners(),this._options)this._options[t]=null;for(var e in this._mediaQueryLists){var i=this._mediaQueryLists[e];for(var r in i)i[r]=null}this._id=null,this._el=null,this._viewport=null,this._retina=null,this._orientation=null,n.prototype.destroy.call(this)},v._initViewportEl=function(t){var e=document.getElementById(t);return e||((e=document.createElement("div")).id=t,e=document.body.appendChild(e)),e.hasAttribute(a)||(e.setAttribute(a,""),this._allowDOMEventDispatch=!0),e.hasAttribute(c)||(this._allowElementStateData=!0),e},v._dispatch=function(t,e){var i={viewport:this._viewport,orientation:this._orientation,retina:this._retina};if(this._allowDOMEventDispatch){var n=new CustomEvent(t,{detail:e}),r=new CustomEvent(d,{detail:i});this._el.dispatchEvent(n),this._el.dispatchEvent(r)}this.trigger(t,e),this.trigger(d,i)},v._addListeners=function(){this._onOrientationChange=this._onOrientationChange.bind(this),this._onRetinaChange=this._onRetinaChange.bind(this),this._onViewportChange=this._onViewportChange.bind(this),this._onViewportChangeUpdate=this._onViewportChangeUpdate.bind(this),this._mediaQueryLists.orientation.portrait.addListener(this._onOrientationChange),this._mediaQueryLists.orientation.landscape.addListener(this._onOrientationChange),this._mediaQueryLists.resolution.retina.addListener(this._onRetinaChange),window.addEventListener("resize",this._onViewportChange)},v._removeListeners=function(){this._mediaQueryLists.orientation.portrait.removeListener(this._onOrientationChange),this._mediaQueryLists.orientation.landscape.removeListener(this._onOrientationChange),this._mediaQueryLists.resolution.retina.removeListener(this._onRetinaChange),window.removeEventListener("resize",this._onViewportChange)},v._updateElementStateData=function(){if(this._allowElementStateData){var t=JSON.stringify({viewport:this._viewport,orientation:this._orientation,retina:this._retina});this._el.setAttribute(c,t)}},v._getViewport=function(t){var e=window.getComputedStyle(this._el,"::before").content;return e?(e=e.replace(/["']/g,""),t?e.split(":").pop():e):null},v._getRetina=function(t){return t.matches},v._getOrientation=function(t){var e=this._orientation;if(t.matches){return t.media.match(/portrait|landscape/)[0]}return e},v._initOrientation=function(){var t=this._getOrientation(this._mediaQueryLists.orientation.portrait);return t||this._getOrientation(this._mediaQueryLists.orientation.landscape)},v._onViewportChange=function(){this._resizing||(this._resizing=!0,r(this._onViewportChangeUpdate))},v._onViewportChangeUpdate=function(){var t=this._viewport;if(this._viewport=this._getViewport(this._options.removeNamespace),t!==this._viewport){var e={from:t,to:this._viewport};this._updateElementStateData(),this._dispatch(f,e)}this._resizing=!1},v._onRetinaChange=function(t){var e=this._retina;if(this._retina=this._getRetina(t),e!==this._retina){var i={from:e,to:this._retina};this._updateElementStateData(),this._dispatch(m,i)}},v._onOrientationChange=function(t){var e=this._orientation;if(this._orientation=this._getOrientation(t),e!==this._orientation){var i={from:e,to:this._orientation};this._updateElementStateData(),this._dispatch(p,i)}},e.exports=_},{"@marcom/ac-event-emitter-micro":122,"@marcom/ac-raf-emitter/update":444}],446:[function(t,e,i){arguments[4][124][0].apply(i,arguments)},{"./ac-event-emitter/EventEmitter":447,dup:124}],447:[function(t,e,i){arguments[4][125][0].apply(i,arguments)},{dup:125}],448:[function(t,e,i){"use strict";var n=t("./promise/promise").Promise,r=t("./promise/polyfill").polyfill;i.Promise=n,i.polyfill=r},{"./promise/polyfill":452,"./promise/promise":453}],449:[function(t,e,i){"use strict";var n=t("./utils").isArray,r=t("./utils").isFunction;i.all=function(t){if(!n(t))throw new TypeError("You must pass an array to all.");return new this((function(e,i){var n,s=[],o=t.length;function a(t){return function(e){c(t,e)}}function c(t,i){s[t]=i,0==--o&&e(s)}0===o&&e([]);for(var l=0;l<t.length;l++)(n=t[l])&&r(n.then)?n.then(a(l),i):c(l,n)}))}},{"./utils":457}],450:[function(t,e,i){(function(t,e){(function(){"use strict";var n="undefined"!=typeof window?window:{},r=n.MutationObserver||n.WebKitMutationObserver,s=void 0!==e?e:void 0===this?window:this;var o,a,c,l,u=[];function h(){for(var t=0;t<u.length;t++){var e=u[t];(0,e[0])(e[1])}u=[]}void 0!==t&&"[object process]"==={}.toString.call(t)?o=function(){t.nextTick(h)}:r?(a=0,c=new r(h),l=document.createTextNode(""),c.observe(l,{characterData:!0}),o=function(){l.data=a=++a%2}):o=function(){s.setTimeout(h,1)},i.asap=function(t,e){1===u.push([t,e])&&o()}}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:482}],451:[function(t,e,i){"use strict";var n={instrument:!1};i.config=n,i.configure=function(t,e){if(2!==arguments.length)return n[t];n[t]=e}},{}],452:[function(t,e,i){(function(e){(function(){"use strict";var n=t("./promise").Promise,r=t("./utils").isFunction;i.polyfill=function(){var t,i;"Promise"in(t=void 0!==e?e:"undefined"!=typeof window&&window.document?window:self)&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&(new t.Promise((function(t){i=t})),r(i))||(t.Promise=n)}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./promise":453,"./utils":457}],453:[function(t,e,i){"use strict";var n=t("./config").config,r=(t("./config").configure,t("./utils").objectOrFunction),s=t("./utils").isFunction,o=(t("./utils").now,t("./all").all),a=t("./race").race,c=t("./resolve").resolve,l=t("./reject").reject,u=t("./asap").asap;function h(t){if(!s(t))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],function(t,e){function i(t){y(e,t)}function n(t){w(e,t)}try{t(i,n)}catch(t){n(t)}}(t,this)}function d(t,e,i,n){var r,o,a,c,l=s(i);if(l)try{r=i(n),a=!0}catch(t){c=!0,o=t}else r=n,a=!0;g(e,r)||(l&&a?y(e,r):c?w(e,o):t===m?y(e,r):t===f&&w(e,r))}n.async=u;var p=void 0,m=1,f=2;function _(t,e,i,n){var r=t._subscribers,s=r.length;r[s]=e,r[s+m]=i,r[s+f]=n}function v(t,e){for(var i=t._subscribers,n=t._detail,r=0;r<i.length;r+=3)d(e,i[r],i[r+e],n);t._subscribers=null}function g(t,e){var i,n=null;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(r(e)&&(n=e.then,s(n)))return n.call(e,(function(n){if(i)return!0;i=!0,e!==n?y(t,n):b(t,n)}),(function(e){if(i)return!0;i=!0,w(t,e)})),!0}catch(e){return i||w(t,e),!0}return!1}function y(t,e){t===e?b(t,e):g(t,e)||b(t,e)}function b(t,e){t._state===p&&(t._state=0,t._detail=e,n.async(E,t))}function w(t,e){t._state===p&&(t._state=0,t._detail=e,n.async(k,t))}function E(t){v(t,t._state=m)}function k(t){v(t,t._state=f)}h.prototype={constructor:h,_state:void 0,_detail:void 0,_subscribers:void 0,then:function(t,e){var i=this,r=new this.constructor((function(){}));if(this._state){var s=arguments;n.async((function(){d(i._state,r,s[i._state-1],i._detail)}))}else _(this,r,t,e);return r},catch:function(t){return this.then(null,t)}},h.all=o,h.race=a,h.resolve=c,h.reject=l,i.Promise=h},{"./all":449,"./asap":450,"./config":451,"./race":454,"./reject":455,"./resolve":456,"./utils":457}],454:[function(t,e,i){"use strict";var n=t("./utils").isArray;i.race=function(t){if(!n(t))throw new TypeError("You must pass an array to race.");return new this((function(e,i){for(var n,r=0;r<t.length;r++)(n=t[r])&&"function"==typeof n.then?n.then(e,i):e(n)}))}},{"./utils":457}],455:[function(t,e,i){"use strict";i.reject=function(t){return new this((function(e,i){i(t)}))}},{}],456:[function(t,e,i){"use strict";i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===this?t:new this((function(e){e(t)}))}},{}],457:[function(t,e,i){"use strict";function n(t){return"function"==typeof t}var r=Date.now||function(){return(new Date).getTime()};i.objectOrFunction=function(t){return n(t)||"object"==typeof t&&null!==t},i.isFunction=n,i.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.now=r},{}],458:[function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}i.__esModule=!0;var s=r(t("./handlebars/base")),o=n(t("./handlebars/safe-string")),a=n(t("./handlebars/exception")),c=r(t("./handlebars/utils")),l=r(t("./handlebars/runtime")),u=n(t("./handlebars/no-conflict"));function h(){var t=new s.HandlebarsEnvironment;return c.extend(t,s),t.SafeString=o.default,t.Exception=a.default,t.Utils=c,t.escapeExpression=c.escapeExpression,t.VM=l,t.template=function(e){return l.template(e,t)},t}var d=h();d.create=h,u.default(d),d.default=d,i.default=d,e.exports=i.default},{"./handlebars/base":459,"./handlebars/exception":462,"./handlebars/no-conflict":472,"./handlebars/runtime":473,"./handlebars/safe-string":474,"./handlebars/utils":475}],459:[function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}i.__esModule=!0,i.HandlebarsEnvironment=u;var r=t("./utils"),s=n(t("./exception")),o=t("./helpers"),a=t("./decorators"),c=n(t("./logger"));i.VERSION="4.0.5";i.COMPILER_REVISION=7;i.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};var l="[object Object]";function u(t,e,i){this.helpers=t||{},this.partials=e||{},this.decorators=i||{},o.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:c.default,log:c.default.log,registerHelper:function(t,e){if(r.toString.call(t)===l){if(e)throw new s.default("Arg not supported with multiple helpers");r.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(r.toString.call(t)===l)r.extend(this.partials,t);else{if(void 0===e)throw new s.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(r.toString.call(t)===l){if(e)throw new s.default("Arg not supported with multiple decorators");r.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]}};var h=c.default.log;i.log=h,i.createFrame=r.createFrame,i.logger=c.default},{"./decorators":460,"./exception":462,"./helpers":463,"./logger":471,"./utils":475}],460:[function(t,e,i){"use strict";i.__esModule=!0,i.registerDefaultDecorators=function(t){s.default(t)};var n,r=t("./decorators/inline"),s=(n=r)&&n.__esModule?n:{default:n}},{"./decorators/inline":461}],461:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("../utils");i.default=function(t){t.registerDecorator("inline",(function(t,e,i,r){var s=t;return e.partials||(e.partials={},s=function(r,s){var o=i.partials;i.partials=n.extend({},o,e.partials);var a=t(r,s);return i.partials=o,a}),e.partials[r.args[0]]=r.fn,s}))},e.exports=i.default},{"../utils":475}],462:[function(t,e,i){"use strict";i.__esModule=!0;var n=["description","fileName","lineNumber","message","name","number","stack"];function r(t,e){var i=e&&e.loc,s=void 0,o=void 0;i&&(t+=" - "+(s=i.start.line)+":"+(o=i.start.column));for(var a=Error.prototype.constructor.call(this,t),c=0;c<n.length;c++)this[n[c]]=a[n[c]];Error.captureStackTrace&&Error.captureStackTrace(this,r),i&&(this.lineNumber=s,this.column=o)}r.prototype=new Error,i.default=r,e.exports=i.default},{}],463:[function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}i.__esModule=!0,i.registerDefaultHelpers=function(t){r.default(t),s.default(t),o.default(t),a.default(t),c.default(t),l.default(t),u.default(t)};var r=n(t("./helpers/block-helper-missing")),s=n(t("./helpers/each")),o=n(t("./helpers/helper-missing")),a=n(t("./helpers/if")),c=n(t("./helpers/log")),l=n(t("./helpers/lookup")),u=n(t("./helpers/with"))},{"./helpers/block-helper-missing":464,"./helpers/each":465,"./helpers/helper-missing":466,"./helpers/if":467,"./helpers/log":468,"./helpers/lookup":469,"./helpers/with":470}],464:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("../utils");i.default=function(t){t.registerHelper("blockHelperMissing",(function(e,i){var r=i.inverse,s=i.fn;if(!0===e)return s(this);if(!1===e||null==e)return r(this);if(n.isArray(e))return e.length>0?(i.ids&&(i.ids=[i.name]),t.helpers.each(e,i)):r(this);if(i.data&&i.ids){var o=n.createFrame(i.data);o.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:o}}return s(e,i)}))},e.exports=i.default},{"../utils":475}],465:[function(t,e,i){"use strict";i.__esModule=!0;var n,r=t("../utils"),s=t("../exception"),o=(n=s)&&n.__esModule?n:{default:n};i.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new o.default("Must pass iterator to #each");var i=e.fn,n=e.inverse,s=0,a="",c=void 0,l=void 0;function u(e,n,s){c&&(c.key=e,c.index=n,c.first=0===n,c.last=!!s,l&&(c.contextPath=l+e)),a+=i(t[e],{data:c,blockParams:r.blockParams([t[e],e],[l+e,null])})}if(e.data&&e.ids&&(l=r.appendContextPath(e.data.contextPath,e.ids[0])+"."),r.isFunction(t)&&(t=t.call(this)),e.data&&(c=r.createFrame(e.data)),t&&"object"==typeof t)if(r.isArray(t))for(var h=t.length;s<h;s++)s in t&&u(s,s,s===t.length-1);else{var d=void 0;for(var p in t)t.hasOwnProperty(p)&&(void 0!==d&&u(d,s-1),d=p,s++);void 0!==d&&u(d,s-1,!0)}return 0===s&&(a=n(this)),a}))},e.exports=i.default},{"../exception":462,"../utils":475}],466:[function(t,e,i){"use strict";i.__esModule=!0;var n,r=t("../exception"),s=(n=r)&&n.__esModule?n:{default:n};i.default=function(t){t.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new s.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=i.default},{"../exception":462}],467:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("../utils");i.default=function(t){t.registerHelper("if",(function(t,e){return n.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||n.isEmpty(t)?e.inverse(this):e.fn(this)})),t.registerHelper("unless",(function(e,i){return t.helpers.if.call(this,e,{fn:i.inverse,inverse:i.fn,hash:i.hash})}))},e.exports=i.default},{"../utils":475}],468:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){t.registerHelper("log",(function(){for(var e=[void 0],i=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)e.push(arguments[n]);var r=1;null!=i.hash.level?r=i.hash.level:i.data&&null!=i.data.level&&(r=i.data.level),e[0]=r,t.log.apply(t,e)}))},e.exports=i.default},{}],469:[function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t){t.registerHelper("lookup",(function(t,e){return t&&t[e]}))},e.exports=i.default},{}],470:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("../utils");i.default=function(t){t.registerHelper("with",(function(t,e){n.isFunction(t)&&(t=t.call(this));var i=e.fn;if(n.isEmpty(t))return e.inverse(this);var r=e.data;return e.data&&e.ids&&((r=n.createFrame(e.data)).contextPath=n.appendContextPath(e.data.contextPath,e.ids[0])),i(t,{data:r,blockParams:n.blockParams([t],[r&&r.contextPath])})}))},e.exports=i.default},{"../utils":475}],471:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("./utils"),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=n.indexOf(r.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=r.lookupLevel(t),"undefined"!=typeof console&&r.lookupLevel(r.level)<=t){var e=r.methodMap[t];console[e]||(e="log");for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];console[e].apply(console,n)}}};i.default=r,e.exports=i.default},{"./utils":475}],472:[function(t,e,i){(function(t){(function(){"use strict";i.__esModule=!0,i.default=function(e){var i=void 0!==t?t:window,n=i.Handlebars;e.noConflict=function(){return i.Handlebars===e&&(i.Handlebars=n),e}},e.exports=i.default}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],473:[function(t,e,i){"use strict";i.__esModule=!0,i.checkRevision=function(t){var e=t&&t[0]||1,i=a.COMPILER_REVISION;if(e!==i){if(e<i){var n=a.REVISION_CHANGES[i],r=a.REVISION_CHANGES[e];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+r+").")}throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}},i.template=function(t,e){if(!e)throw new o.default("No environment passed to template");if(!t||!t.main)throw new o.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var i={strict:function(t,e){if(!(e in t))throw new o.default('"'+e+'" not defined in '+t);return t[e]},lookup:function(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n]&&null!=t[n][e])return t[n][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:r.escapeExpression,invokePartial:function(i,n,s){s.hash&&(n=r.extend({},n,s.hash),s.ids&&(s.ids[0]=!0)),i=e.VM.resolvePartial.call(this,i,n,s);var a=e.VM.invokePartial.call(this,i,n,s);if(null==a&&e.compile&&(s.partials[s.name]=e.compile(i,t.compilerOptions,e),a=s.partials[s.name](n,s)),null!=a){if(s.indent){for(var c=a.split("\n"),l=0,u=c.length;l<u&&(c[l]||l+1!==u);l++)c[l]=s.indent+c[l];a=c.join("\n")}return a}throw new o.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")},fn:function(e){var i=t[e];return i.decorator=t[e+"_d"],i},programs:[],program:function(t,e,i,n,r){var s=this.programs[t],o=this.fn(t);return e||r||n||i?s=c(this,t,o,e,i,n,r):s||(s=this.programs[t]=c(this,t,o)),s},data:function(t,e){for(;t&&e--;)t=t._parent;return t},merge:function(t,e){var i=t||e;return t&&e&&t!==e&&(i=r.extend({},e,t)),i},noop:e.VM.noop,compilerInfo:t.compiler};function n(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=r.data;n._setup(r),!r.partial&&t.useData&&(s=u(e,s));var o=void 0,a=t.useBlockParams?[]:void 0;function c(e){return""+t.main(i,e,i.helpers,i.partials,s,a,o)}return t.useDepths&&(o=r.depths?e!==r.depths[0]?[e].concat(r.depths):r.depths:[e]),(c=h(t.main,c,i,r.depths||[],s,a))(e,r)}return n.isTop=!0,n._setup=function(n){n.partial?(i.helpers=n.helpers,i.partials=n.partials,i.decorators=n.decorators):(i.helpers=i.merge(n.helpers,e.helpers),t.usePartial&&(i.partials=i.merge(n.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=i.merge(n.decorators,e.decorators)))},n._child=function(e,n,r,s){if(t.useBlockParams&&!r)throw new o.default("must pass block params");if(t.useDepths&&!s)throw new o.default("must pass parent depths");return c(i,e,t[e],n,0,r,s)},n},i.wrapProgram=c,i.resolvePartial=function(t,e,i){t?t.call||i.name||(i.name=t,t=i.partials[t]):t="@partial-block"===i.name?i.data["partial-block"]:i.partials[i.name];return t},i.invokePartial=function(t,e,i){i.partial=!0,i.ids&&(i.data.contextPath=i.ids[0]||i.data.contextPath);var n=void 0;i.fn&&i.fn!==l&&(i.data=a.createFrame(i.data),(n=i.data["partial-block"]=i.fn).partials&&(i.partials=r.extend({},i.partials,n.partials)));void 0===t&&n&&(t=n);if(void 0===t)throw new o.default("The partial "+i.name+" could not be found");if(t instanceof Function)return t(e,i)},i.noop=l;var n,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(t("./utils")),s=t("./exception"),o=(n=s)&&n.__esModule?n:{default:n},a=t("./base");function c(t,e,i,n,r,s,o){function a(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=o;return o&&e!==o[0]&&(a=[e].concat(o)),i(t,e,t.helpers,t.partials,r.data||n,s&&[r.blockParams].concat(s),a)}return(a=h(i,a,t,o,n,s)).program=e,a.depth=o?o.length:0,a.blockParams=r||0,a}function l(){return""}function u(t,e){return e&&"root"in e||((e=e?a.createFrame(e):{}).root=t),e}function h(t,e,i,n,s,o){if(t.decorator){var a={};e=t.decorator(e,a,i,n&&n[0],s,o,n),r.extend(e,a)}return e}},{"./base":459,"./exception":462,"./utils":475}],474:[function(t,e,i){"use strict";function n(t){this.string=t}i.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},i.default=n,e.exports=i.default},{}],475:[function(t,e,i){"use strict";i.__esModule=!0,i.extend=a,i.indexOf=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},i.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}if(!s.test(t))return t;return t.replace(r,o)},i.isEmpty=function(t){return!t&&0!==t||!(!u(t)||0!==t.length)},i.createFrame=function(t){var e=a({},t);return e._parent=t,e},i.blockParams=function(t,e){return t.path=e,t},i.appendContextPath=function(t,e){return(t?t+".":"")+e};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,s=/[&<>"'`=]/;function o(t){return n[t]}function a(t){for(var e=1;e<arguments.length;e++)for(var i in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],i)&&(t[i]=arguments[e][i]);return t}var c=Object.prototype.toString;i.toString=c;var l=function(t){return"function"==typeof t};l(/x/)&&(i.isFunction=l=function(t){return"function"==typeof t&&"[object Function]"===c.call(t)}),i.isFunction=l;var u=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===c.call(t)};i.isArray=u},{}],476:[function(t,e,i){e.exports=t("./dist/cjs/handlebars.runtime").default},{"./dist/cjs/handlebars.runtime":458}],477:[function(t,e,i){e.exports=t("handlebars/runtime").default},{"handlebars/runtime":476}],478:[function(t,e,i){!function(t,i){var n,r,s=t.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,a=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,c="_html5shiv",l=0,u={};function h(){var t=f.elements;return"string"==typeof t?t.split(" "):t}function d(t){var e=u[t[c]];return e||(e={},l++,t[c]=l,u[l]=e),e}function p(t,e,n){return e||(e=i),r?e.createElement(t):(n||(n=d(e)),!(s=n.cache[t]?n.cache[t].cloneNode():a.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t)).canHaveChildren||o.test(t)||s.tagUrn?s:n.frag.appendChild(s));var s}function m(t){t||(t=i);var e=d(t);return!f.shivCSS||n||e.hasCSS||(e.hasCSS=!!function(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return f.shivMethods?p(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-:]+/g,(function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'}))+");return n}")(f,e.frag)}(t,e),t}!function(){try{var t=i.createElement("a");t.innerHTML="<xyz></xyz>",n="hidden"in t,r=1==t.childNodes.length||function(){i.createElement("a");var t=i.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){n=!0,r=!0}}();var f={elements:s.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3-pre",shivCSS:!1!==s.shivCSS,supportsUnknownElements:r,shivMethods:!1!==s.shivMethods,type:"default",shivDocument:m,createElement:p,createDocumentFragment:function(t,e){if(t||(t=i),r)return t.createDocumentFragment();for(var n=(e=e||d(t)).frag.cloneNode(),s=0,o=h(),a=o.length;s<a;s++)n.createElement(o[s]);return n},addElements:function(t,e){var i=f.elements;"string"!=typeof i&&(i=i.join(" ")),"string"!=typeof t&&(t=t.join(" ")),f.elements=i+" "+t,m(e)}};t.html5=f,m(i),"object"==typeof e&&e.exports&&(e.exports=f)}("undefined"!=typeof window?window:this,document)},{}],479:[function(t,e,i){(function(t){(function(){var n="__lodash_hash_undefined__",r="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]",a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,u={function:!0,object:!0},h=u[typeof i]&&i&&!i.nodeType?i:void 0,d=u[typeof e]&&e&&!e.nodeType?e:void 0,p=g(h&&d&&"object"==typeof t&&t),m=g(u[typeof self]&&self),f=g(u[typeof window]&&window),_=g(u[typeof this]&&this),v=p||f!==(_&&_.window)&&f||m||_||Function("return this")();function g(t){return t&&t.Object===Object?t:null}var y=Array.prototype,b=Object.prototype,w=Function.prototype.toString,E=b.hasOwnProperty,k=b.toString,x=RegExp("^"+w.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=v.Symbol,T=y.splice,C=I(v,"Map"),A=I(Object,"create"),O=S?S.prototype:void 0,L=O?O.toString:void 0;function P(){}function D(t,e){return A?void 0!==t[e]:E.call(t,e)}function F(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function M(t,e){for(var i,n,r=t.length;r--;)if((i=t[r][0])===(n=e)||i!=i&&n!=n)return r;return-1}function I(t,e){var i=t[e];return function(t){if(!U(t))return!1;return(function(t){var e=U(t)?k.call(t):"";return e==r||e==s}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?x:l).test(function(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(i)?i:void 0}function R(t){var e=typeof t;return"number"==e||"boolean"==e||"string"==e&&"__proto__"!=t||null==t}P.prototype=A?A(null):b,F.prototype.clear=function(){this.__data__={hash:new P,map:C?new C:[],string:new P}},F.prototype.delete=function(t){var e=this.__data__;return R(t)?function(t,e){return D(t,e)&&delete t[e]}("string"==typeof t?e.string:e.hash,t):C?e.map.delete(t):function(t,e){var i=M(t,e);if(i<0)return!1;var n=t.length-1;i==n?t.pop():T.call(t,i,1);return!0}(e.map,t)},F.prototype.get=function(t){var e=this.__data__;return R(t)?function(t,e){if(A){var i=t[e];return i===n?void 0:i}return E.call(t,e)?t[e]:void 0}("string"==typeof t?e.string:e.hash,t):C?e.map.get(t):function(t,e){var i=M(t,e);return i<0?void 0:t[i][1]}(e.map,t)},F.prototype.has=function(t){var e=this.__data__;return R(t)?D("string"==typeof t?e.string:e.hash,t):C?e.map.has(t):function(t,e){return M(t,e)>-1}(e.map,t)},F.prototype.set=function(t,e){var i=this.__data__;return R(t)?function(t,e,i){t[e]=A&&void 0===i?n:i}("string"==typeof t?i.string:i.hash,t,e):C?i.map.set(t,e):function(t,e,i){var n=M(t,e);n<0?t.push([e,i]):t[n][1]=i}(i.map,t,e),this};var N=j((function(t){var e=[];return function(t){if("string"==typeof t)return t;if(null==t)return"";if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&k.call(t)==o}(t))return L?L.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t).replace(a,(function(t,i,n,r){e.push(n?r.replace(c,"$1"):i||t)})),e}));function j(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var o=t.apply(this,n);return i.cache=s.set(r,o),o};return i.cache=new(j.Cache||F),i}function U(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}j.Cache=F,e.exports=N}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],480:[function(t,e,i){var n=t("lodash._stringtopath"),r="[object Symbol]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,a=Object.prototype.toString;function c(t,e){var i;e=function(t,e){var i=typeof t;if("number"==i||"symbol"==i)return!0;return!l(t)&&(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&a.call(t)==r}(t)||o.test(t)||!s.test(t)||null!=e&&t in Object(e))}(e,t)?[e]:l(i=e)?i:n(i);for(var c=0,u=e.length;null!=t&&c<u;)t=t[e[c++]];return c&&c==u?t:void 0}var l=Array.isArray;e.exports=function(t,e,i){var n=null==t?void 0:c(t,e);return void 0===n?i:n}},{"lodash._stringtopath":479}],481:[function(t,e,i){var n=1/0,r=17976931348623157e292,s=NaN,o="[object Function]",a="[object GeneratorFunction]",c="[object Symbol]",l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,d=/^0o[0-7]+$/i,p=parseInt;var m=Object.prototype.toString,f=Math.max;function _(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}e.exports=function(t,e,i){var v=t?t.length:0;return v?(i=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&m.call(t)==c}(t))return s;if(_(t)){var e=function(t){var e=_(t)?m.call(t):"";return e==o||e==a}(t.valueOf)?t.valueOf():t;t=_(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var i=h.test(t);return i||d.test(t)?p(t.slice(2),i?2:8):u.test(t)?s:+t}(t))===n||t===-1/0){return(t<0?-1:1)*r}var e=t%1;return t==t?e?t-e:t:0}(i),i<0&&(i=f(v+i,0)),function(t,e,i){if(e!=e)return function(t,e,i){for(var n=t.length,r=e+(i?0:-1);i?r--:++r<n;){var s=t[r];if(s!=s)return r}return-1}(t,i);for(var n=i-1,r=t.length;++n<r;)if(t[n]===e)return n;return-1}(t,e,i)):-1}},{}],482:[function(t,e,i){var n,r,s=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,u=[],h=!1,d=-1;function p(){h&&l&&(h=!1,l.length?u=l.concat(u):d=-1,u.length&&m())}function m(){if(!h){var t=c(p);h=!0;for(var e=u.length;e;){for(l=u,u=[];++d<e;)l&&l[d].run();d=-1,e=u.length}l=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function _(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];u.push(new f(t,e)),1!==u.length||h||c(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=_,s.addListener=_,s.once=_,s.off=_,s.removeListener=_,s.removeAllListeners=_,s.emit=_,s.prependListener=_,s.prependOnceListener=_,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],483:[function(t,e,i){"use strict";function n(t){return function(t){var e,i,r,s,o,a={};for(;t.match(/<[^\/][^>]*>/);)e=(o=t.match(/<[^\/][^>]*>/)[0]).substring(1,o.length-1),-1==(i=t.indexOf(o.replace("<","</")))&&(e=o.match(/[^<][\w+$]*/)[0],-1==(i=t.indexOf("</"+e))&&(i=t.indexOf("<\\/"+e))),s=(r=t.substring(o.length,i)).match(/<[^\/][^>]*>/)?n(r):r,void 0===a[e]?a[e]=s:Array.isArray(a[e])?a[e].push(s):a[e]=[a[e],s],t=t.substring(2*o.length+1+r.length);return a}(t=function(t){return t=function(t){var e=t.match(/<[^\/][^>][^<]+\s+.[^<]+[=][^<]+>/g);if(e)for(var i=0;i<e.length;i++){var n=e[i],r="<"+n.match(/[^<][\w+$]*/)[0]+">",s=n.match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g);if(s)for(var o=0;o<s.length;o++){var a=s[o],c=a.substring(0,a.indexOf("="));r+="<"+c+">"+a.substring(a.indexOf('"')+1,a.lastIndexOf('"'))+"</"+c+">"}t=t.replace(n,r)}return t}(t=function(t){var e=t.match(/<[^\/][^>][^<]+\s+.[^<]+[=][^<]+>{1}([^<]+)/g);if(e)for(var i=0;i<e.length;i++){var n=e[i],r=n.substring(0,n.indexOf(">")+1)+"<_@ttribute>"+n.substring(n.indexOf(">")+1)+"</_@ttribute>";t=t.replace(n,r)}return t}(t=function(t){var e=t.match(/<[^/][^>]*\/>/g);if(e)for(var i=0;i<e.length;i++){var n=e[i],r=n.substring(0,n.length-2);r+=">";var s=n.match(/[^<][\w+$]*/)[0],o="</"+s+">",a="<"+s+">",c=r.match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g);if(c)for(var l=0;l<c.length;l++){var u=c[l],h=u.substring(0,u.indexOf("="));a+="<"+h+">"+u.substring(u.indexOf('"')+1,u.lastIndexOf('"'))+"</"+h+">"}a+=o,t=t.replace(n,a)}return t}(t=(t=(t=(t=(t=t.replace(/<!--[\s\S]*?-->/g,"")).replace(/\n|\t|\r/g,"")).replace(/ {1,}<|\t{1,}</g,"<")).replace(/> {1,}|>\t{1,}/g,">")).replace(/<\?[^>]*\?>/g,""))))}(t))}e.exports={xml2json:n}},{}],484:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-events/utils/addEventListener"),r=t("@marcom/ac-object/create"),s=t("@marcom/ac-event-emitter").EventEmitter,o=(t("@marcom/ac-dom-traversal/querySelector"),t("@marcom/ac-dom-traversal/querySelectorAll"));const a=document.querySelector('meta[name="analytics:s-pagename"]'),c=null!==(l=document.querySelector('meta[name="analytics:s-runmode"]'))&&"black"===l.content.toLowerCase()?"black":"white";var l;const u=window.location.origin;window._applemd={};const h=(d=document.querySelector('meta[name="secureMatrixURL"]'))?d.content:"https://supportmetrics.apple.com/content/services/stats";var d,p=function(){return{init:this.init()}},m=p.prototype=r(s.prototype);function f(t){return/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(t)?t:u+t}function _(t,e,i,n){window._applemd&&(window._applemd=Object.assign(window._applemd,t),window._satellite&&"white"===e&&window._satellite.track(i)),n&&setTimeout(n)}function v(t,e,i){window._applemd&&window.NN&&"white"===e&&("load"===i?(window.NN.default.init({source:"ss-pages",appDataSchemaVersion:"2.0.0",reportThrottledWebVitalDataTypes:["system:dom-content-loaded","system:load","system:unfocus","system:focus","system:unload","system:page-hide","system:visibility-change-visible","system:visibility-change-hidden","system:event","app:load","app:unload","app:event"],webVitalDataThrottlingPercentage:100,trackMarcomSearch:!0,trackSurvey:!0,endpoint:h}),window.NN.default.load({page:t.page})):"link"===i?window.NN.default.action({page:t.page,component:t.component}):"video"===i?window.NN.default.action({page:t.page,video:t.video}):window.NN.default.action({page:t.page,search:t.search}))}function g(){const t={serviceProvider:"as-spl-form-wrapper",survey:"as-survey-form"};if(function(){var t=document.querySelector('meta[name="o:token"]'),e=document.querySelector('meta[name="o:testid"]');if(null!==t&&""!==t.content&&null!==e&&""!==e.content)return!0}())return!0;var e,i=!1;for(e in t)null!==document.querySelector("."+t[e])&&(i=!0);return i}m.init=function(){this._bindSatelliteTrackFns(),this._pageMetaValidator(),this._addClickEventsListener()},m._bindSatelliteTrackFns=function(){window.launchPageLoadTrackFn=function(t){var e={};t=t||null;var i=g();if(null==t){const t=a.content.split("::").length,n=a.content.split("::")[2],r=a.content.split("::")[3],s=a.content.split("::")[t-1].split(" ")[0],o=a.content.split("::")[t-1].split("(")[1].split(")")[0].split("_").join("-").toLowerCase(),l="support",u="error"===n?"bonsai-error":"",h=a.content.split("::")[1];e.page={},e.page.site_section=n,e.page.content_type=r,e.page.content_subtype=s,e.page.locale=o,"survey"!==n&&"other"!==n&&(e.page.platform=l),"survey"===n?(e.page.content_type=n,e.page.site_section=h,e.page.content_subtype=s.split("-").join(" ")):"error"===n&&(e.page.error=u),i||_(e,c,"acs.pageload")}else v(e=t,c,"load"),_(e,c,"acs.pageload");return window._applemd=e,window._applemd},window.launchLinkClickTrackFn=function(t){var e,i,n,r,s=window._applemd,o=t.currentTarget,a="data-analytics-link-component_type",l="data-analytics-link-component_name",u=o.closest(".as-contentblock-block"),h=o.closest('div[data-analytics-link-component_type="Container"]'),d=o.closest(".as-thumbnail-box");if(null!==h&&"Container"===h.dataset.analyticsLinkComponent_type)i=h.getAttribute(a).toLowerCase(),n=h.getAttribute(l).toLowerCase(),r=f(o.getAttribute("href")),"Simple List"===o.getAttribute(a)&&(n=o.getAttribute(l));else if(null!==u&&u.classList.contains("as-contentblock-block")&&null===o.getAttribute(a))i=o.closest(".as-richtext").getAttribute(a).toLowerCase(),n=o.textContent.trim().toLowerCase(),r=f(o.getAttribute("href"));else if(null!==d&&d.classList.contains("as-thumbnail-box")&&null===o.getAttribute(a))i=d.querySelector(".as-thumbnail").getAttribute(a).toLowerCase(),n=o.textContent.trim().toLowerCase(),r=f(o.getAttribute("href"));else if(o.getAttribute(a)){if(i=o.getAttribute(a).toLowerCase(),n=o.getAttribute(l).toLowerCase(),"content block"===i){var p=o.closest(".as-contentblock-block").querySelector(".as-contentblock-title");p=null===p.getAttribute(a)?p.textContent:p.getAttribute(l),n=n+"::"+(p="default-contentblock"===n?"default-contentblock":p)}else if("video"===i){var m=o.closest(".as-thumbnail-box").querySelector(".as-thumbnail");m=null===m.getAttribute(a)?o.closest(".as-thumbnail-content").querySelector(".as-thumbnail-title").textContent:m.getAttribute(l),n=n+"::"+(m="default-video"===n?"default-video":m)}r=f(o.getAttribute("data-analytics-link-url").toLowerCase())}else i="simple link",o.getAttribute(l)?n=o.getAttribute(l).toLowerCase():(n=o.textContent.trim().toLowerCase(),o.classList.contains("ac-gf-breadcrumbs-home")&&(n=o.querySelector(".ac-gf-breadcrumbs-home-label").textContent)),r=f(o.getAttribute("href"));e=function(t,e,i,n){var r={type:t,link_text:e,dest_url:i};null!==n.closest(".main")&&(r.link_owner="ac_link");return r}(i,n,r,o),s.component={},s.component=e,_(s,c,"acs.link_click"),v(s,c,"link")},window.launchPageLevelTrackFn=function(t,e,i){var n=window._applemd;"search"===(e=e||null)&&null!==e?(n.search=t,v(n,c,"search")):"video"===e&&null!==e?(n.hasOwnProperty("video")&&delete n.video,n.hasOwnProperty("component")&&delete n.component,n.video=t.video,t.hasOwnProperty("comp")&&(n.component=t.comp),v(n,c,"video")):(n.component=t,e="acs.link_click",v(n,c,"link")),_(n,c,e,i)}},m._addClickEventsListener=function(){const t=["a[data-analytics-event]"].concat([".as-richText a",".as-richtext a","#domain_error a"],[".ac-gf-footer-legal-links a",".ac-gf-footer-locale a",".ac-gf-breadcrumbs a"],[".as-sn-msg a",".as-sn-tooltip-wrapper a"]).toString();o(t).forEach((function(t){n(t,"click",window.launchLinkClickTrackFn.bind(this))}))},m._pageMetaValidator=function(){var t={};null!==a?(t=window.launchPageLoadTrackFn(),window._applemd=t):(t.page={site_section:"undefined",content_type:"undefined",content_subtype:"undefined",locale:"undefined"},_(t,c,"acs.pageload")),g()||v(t,c,"load")},e.exports={init:function(){new p}}},{"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-traversal/querySelector":113,"@marcom/ac-dom-traversal/querySelectorAll":114,"@marcom/ac-event-emitter":124,"@marcom/ac-object/create":185}],485:[function(t,e,i){"use strict";var n=function(){this.regionalObj={"en-asia":"Asia","en-lamr":"Latin America","es-lamr":"América Latina","en-euro":"EMEA"},this.fetchKey=function(t,e){for(var i in t)if(i===e)return t[i]}};e.exports=function(){return new n}},{}],486:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-traversal/querySelector"),r=t("@marcom/ac-dom-traversal/children"),s=t("@marcom/ac-dom-events/utils/addEventListener"),o=t("./as-custom-country-object.js")(),a=function(){var t,e=n("#as-dropdown"),i=null;function a(){if(t[e.selectedIndex]!==t[0]){e.classList.remove("form-dropdown-selectnone"),localStorage.setItem("selectedCountryIndex",e.selectedIndex);var i={link_owner:"ac_link",name:"country selector",type:"select",link_text:e[e.selectedIndex].textContent,dest_url:window.location.origin+t[e.selectedIndex].value};window.launchPageLevelTrackFn&&window.launchPageLevelTrackFn(i,"acs.link_click",(()=>{window.location.href=i.dest_url}))}}return{init:function(){e&&(t=r(e,"option"),s(e,"change",a),s(window,"pageshow",(function(){event.persisted&&window.location.reload()})),function(){var n=window.location.pathname.split("/")[1],r=o.regionalObj,s=localStorage.getItem("selectedCountryIndex");if(null!==s){var a=parseInt(s);window.location.pathname===t[a].value&&(e[a].selected=!0,e.classList.remove("form-dropdown-selectnone"),localStorage.removeItem("selectedCountryIndex"))}else{r.hasOwnProperty(n)&&(i=o.fetchKey(r,n));for(var c=0;c<e.length;c++)if(null!==i){if(i===e[c].text){e[c].selected=!0,e.classList.remove("form-dropdown-selectnone");break}}else if(window.location.pathname===e[c].value){e[c].selected=!0,e.classList.remove("form-dropdown-selectnone");break}}}())}}};e.exports=function(){(new a).init()}},{"./as-custom-country-object.js":485,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-traversal/children":102,"@marcom/ac-dom-traversal/querySelector":113}],487:[function(t,e,i){"use strict";var n=t("@marcom/ac-ajax"),r=t("@marcom/ac-dom-events/utils/addEventListener"),s=t("@marcom/ac-classlist"),o=t("../../utils/as-button-loader"),a=t("@marcom/ac-event-emitter").EventEmitter,c=t("@marcom/ac-object/create"),l=t("@marcom/ac-object/isEmpty"),u=t("@marcom/ac-dom-events/preventDefault"),h=t("@marcom/ac-dom-traversal/querySelector"),d=t("@marcom/ac-dom-traversal/querySelectorAll"),p=t("./json/url.json"),m=new o,f=m.getLocale(),_=function(){return{init:this.init()}},v=_.prototype=c(a.prototype),g="",y={at:{format:/^\d{4}$/},au:{format:/^\d{3,4}$/},be:{format:/^\d{4}$/},ca:{format:/^[A-Z]\d[A-Z]\s\d[A-Z]\d$/,rep:/(\d[A-Z]\d)$/},ch:{format:/^\d{4}$/},de:{format:/^\d{5}$/},dk:{format:/^\d{3,4}$/},es:{format:/^\d{5}$/},fi:{format:/^\d{5}$/},fr:{format:/^\d{5}$/},gb:{format:/^[A-Z]{1,2}\d{1,2}\s\d[A-Z]{2}$|^[A-Z]{1,2}\d{1}[A-Z]{1}\s\d[A-Z]{2}$|^[A-Z]{3}\s\d[A-Z]{2}$/,rep:/(\d[A-Z]{2})$/},in:{format:/^\d{6}$/},it:{format:/^\d{5}$/},kr:{format:/^\d{3}-\d{3}$|\d{5}$/},lu:{format:/^(?:L-)?\d{4}$/},nl:{format:/^\d{4,6}(?:\s[A-Z]{2})?$/},no:{format:/^\d{4}$/},nz:{format:/^\d{4}$/},jp:{format:/^\d{3}-\d{4}$/},pl:{format:/^\d{2}-\d{3}$/},pt:{format:/^\d{4}-\d{3}$/},ru:{format:/^\d{6}$/},sa:{format:/^\d{5}$/},se:{format:/^\d{3}\s\d{2}$/,rep:/^(\d{3})(\d{2})$/},tr:{format:/^\d{5}$/},us:{format:/^\d{5}$/}},b=/ca|gb|se/,w=/us|ca|gb|se/;function E(t){u(t),m.showSpinnerOnButton("as-enterprise-input-loader"),m.includeContentUpdating(f),setTimeout((function(){!function(){var t=h("#as-enterprise-input"),e=t.value.trim().toUpperCase(),i=e,n=x();if(n=n.toLowerCase(),""!==e){if(e=function(t){var e=x();return e=e.toLowerCase(),S(T(function(t,e){var i="";/\s/.test(t)&&((t.match(/\s/g)||[].length>1)&&"fr"!==e&&(i=t.replace(/\s/g,"")),b.test(e)?b.test(e)&&(i=C(i," $1")):(""!==i&&(t=i),i=t.replace(/\s/g,"")));i=""===i?t:i,w.test(e)&&(i=T(i,e));return i}(t,e),e),e)}(e),"gb"===n&&"invalid"!==e)e=e.split(" ")[0];else"gb"===n&&"invalid"===e?e="invalid":"gb"!==n&&"invalid"===e&&(e=i)}var r=h("#zone1"),o=h("#zone2"),a=h("#zone3"),c=h("#zone4"),l=h("#zone5"),u=JSON.parse(g),p=d(".form-message-wrapper");p.forEach((function(t){s.add(t,"as-enterprise-msg--show")})),""===e||null==e?(s.remove(c,"hide"),s.add(h(".as-enterprise-form-element"),"is-error"),"gb"===n&&(h("#zone4").innerHTML="Please enter a Postcode."),t.setAttribute("aria-describedby",c.id),t.setAttribute("aria-invalid",!0),setTimeout((function(){t.focus()}),990)):"1"===u[e]||"2"===u[e]?(s.remove(r,"hide"),s.add(h(".as-enterprise-form-element"),"is-success"),h(".form-message-wrapper").setAttribute("tabindex","-1"),t.setAttribute("aria-describedby",r.id),t.setAttribute("aria-invalid",!1),setTimeout((function(){p[0].focus()}),990),"gb"===n?h("#zone1").innerHTML="Postcode is eligible for a next-business-day onsite service under AppleCare for Enterprise.":h(".zipcode",h("#zone1")).innerHTML=e):"3"===u[e]||"4"===u[e]?(s.remove(o,"hide"),s.add(h(".as-enterprise-form-element"),"is-success"),"gb"===n?h("#zone2").innerHTML="Postcode is eligible for second-business-day onsite service under AppleCare for Enterprise.":h(".zipcode",h("#zone2")).innerHTML=e,h(".form-message-wrapper").setAttribute("tabindex","-1"),t.setAttribute("aria-describedby",o.id),t.setAttribute("aria-invalid",!1),setTimeout((function(){p[0].focus()}),990)):""!==u[e]&&null!==u[e]&&void 0!==u[e]&&l?Number(u[e])>=5&&(s.remove(l,"hide"),s.add(h(".as-enterprise-form-element"),"is-success"),"gb"===n?h("#zone5").innerHTML="Postcode is eligible for third-business-day or longer onsite service under AppleCare for Enterprise.":h(".zipcode",h("#zone5")).innerHTML=e,h(".form-message-wrapper").setAttribute("tabindex","-1"),t.setAttribute("aria-describedby",l.id),t.setAttribute("aria-invalid",!1),setTimeout((function(){p[0].focus()}),990)):(s.remove(a,"hide"),s.add(h(".as-enterprise-form-element"),"is-error"),"gb"===n?h("#zone3").innerHTML="Postcode is not eligible for onsite service under AppleCare for Enterprise.":h(".zipcode",h("#zone3")).innerHTML=i,t.setAttribute("aria-describedby",a.id),t.setAttribute("aria-invalid",!0),setTimeout((function(){t.focus()}),990))}(),m.hideSpinnerOnButton("as-enterprise-input-loader")}),300)}function k(){d(".form-message-wrapper").forEach((function(t){s.remove(t,"as-enterprise-msg--show")})),Array.from(h(".form-message-wrapper").children).forEach((function(t){s.add(t,"hide")})),s.remove(h(".as-enterprise-form-element"),"is-error"),s.remove(h(".as-enterprise-form-element"),"is-success"),h("#as-enterprise-input").setAttribute("aria-invalid",!1),h("#as-enterprise-input").removeAttribute("aria-describedby"),m.clearContentStatus()}function x(){var t=void 0!==document.documentElement.lang?document.documentElement.lang:"en-US";return t=t&&t.split("-")[1]?t.split("-")[1]:window.location.pathname.indexOf("/")>-1&&void 0!==window.location.pathname.split("/")[1].split("-")[1]?window.location.pathname.split("/")[1].split("-")[1].toUpperCase():"US"}function S(t,e){return"us"!==e&&"ca"!==e||!(y.us&&y.us.format&&y.us.format.test(t)||y.ca&&y.ca.format&&y.ca.format.test(t))?y[e]&&y[e].format&&y[e].format.test(t)?t:"invalid":t}function T(t,e){var i="",n="";y&&y[e]&&y[e].rep&&(i=y[e].rep,n=t.match(i));var r=t;return t=t.replace(/\s/g,""),"se"===e?r=C(t,i,"$1 $2"):"ca"===e||"us"===e?"invalid"!==S(t,"us")?r=t:("us"===e&&(i=y.ca.rep,n=t.match(i)),n&&(r=C(t,i," $1"))):n&&(r=C(t,i," $1")),r}function C(t,e,i){return t.replace(e,i)}v.init=function(){this.enterpriseLookupForm=h("#as-enterprise-form-wrapper"),this.enterpriseSubmitBtn=h("#as-enterprise-button"),this.enterpriseLookupForm&&(this.lookupInput=h("#as-enterprise-input",this.enterpriseLookupForm),this.lookupInput.setAttribute("maxlength",30),this._addLookupEventsListener())},v._addLookupEventsListener=function(){var t;r(this.enterpriseLookupForm,"submit",E.bind(this)),r(this.lookupInput,"input",k.bind(this)),r(this.enterpriseSubmitBtn,"click",E.bind(this)),t=function(){var t="",e=h("#as-enterprise-form-wrapper").dataset?h("#as-enterprise-form-wrapper").dataset.endpoint:"",i=x();if(p&&!l(p))for(var n in p)n===i&&(t=p[n]);return""===t&&(t="US"),e.replace("{{1}}",t)}(),m.showSpinnerOnButton("as-enterprise--loading"),n.get({url:t,timeout:3e5}).then((function(t){g=t.response,s.add(h("#as-enterprise--loading"),"hide"),m.hideSpinnerOnButton("as-enterprise--loading"),s.remove(h("#as-enterprise-form-wrapper"),"hide")}),(function(t){}))},e.exports=function(){var t=h("#as-enterprise-form-wrapper");if(t)new _(t)}},{"../../utils/as-button-loader":507,"./json/url.json":488,"@marcom/ac-ajax":40,"@marcom/ac-classlist":63,"@marcom/ac-dom-events/preventDefault":76,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-traversal/querySelector":113,"@marcom/ac-dom-traversal/querySelectorAll":114,"@marcom/ac-event-emitter":124,"@marcom/ac-object/create":185,"@marcom/ac-object/isEmpty":190}],488:[function(t,e,i){e.exports={AT:"AT",AU:"AU",BE:"BE",BR:"PT",CA:"CA",CH:"CH",DE:"DE",DK:"DK",ES:"ES",FI:"FI",FR:"FR",GB:"GB",IN:"IN",IT:"IT",KR:"KR",LU:"LU",NL:"NL",NO:"NO",NZ:"NZ",PL:"PL",PT:"PT",RU:"RU",SA:"SA",SE:"SE",TR:"TR",US:"US"}},{}],489:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,i,n,r){var s;return' <div class=" as-ft-retail-section-cont as-ft-retail-section--cont-bg-fade">\n'+(null!=(s=i.if.call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.program(16,r,0),data:r}))?s:"")+" </div>\n"},2:function(t,e,i,n,r){var s,o,a,c=null!=e?e:{},l=' <div class="as-ft-section-cont">\n <div class="as-ft-section">\n <div class="as-ft-section-item row">\n <div class="as-ft-section-column-first as-ft-section-column-first--hero column large-7 medium-12">\n\n'+(null!=(s=i.if.call(c,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.title:s,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?s:"")+'\n <div class="as-expert-tips-summary">\n'+(null!=(s=i.if.call(c,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.text:s,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?s:"")+' </div>\n\n <span class="as-ft-retail-section-tip-author">\n'+(null!=(s=i.if.call(c,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.expertsName:s,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r}))?s:"")+" </span>\n\n";return o=null!=(o=i.expertTipsAnyLinksToShow||(null!=e?e.expertTipsAnyLinksToShow:e))?o:i.helperMissing,a={name:"expertTipsAnyLinksToShow",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r},s="function"==typeof o?o.call(c,a):o,i.expertTipsAnyLinksToShow||(s=i.blockHelperMissing.call(e,s,a)),null!=s&&(l+=s),l+'\n </div>\n\n <div class="as-ft-section-column-last as-ft-section-column-last--hero column large-5 large-last medium-12">\n'+(null!=(s=i.if.call(c,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.hero:s,{name:"if",hash:{},fn:t.program(14,r,0),inverse:t.noop,data:r}))?s:"")+" </div>\n </div>\n </div>\n </div>\n"},3:function(t,e,i,n,r){var s;return' <h2 class="as-ft-section-heading">\n '+(null!=(s=t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.title:s,e))?s:"")+"\n </h2>\n"},5:function(t,e,i,n,r){var s;return" "+(null!=(s=(i.expertTipsText||e&&e.expertTipsText||i.helperMissing).call(null!=e?e:{},null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.text:s,{name:"expertTipsText",hash:{},data:r}))?s:"")+"\n"},7:function(t,e,i,n,r){var s;return" – "+t.escapeExpression(t.lambda(null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.expertsName:s,e))+"\n"},9:function(t,e,i,n,r){var s,o,a,c=' <div class="as-ft-navlink-section as-ft-navlink-section--horizontal">\n\n <div class="as-ft-navlink as-ft-navlink--centered-medium as-ft-navlink--centered-small">\n';return o=null!=(o=i.expertTipsLandingLinkHandle||(null!=e?e.expertTipsLandingLinkHandle:e))?o:i.helperMissing,a={name:"expertTipsLandingLinkHandle",hash:{},fn:t.program(10,r,0),inverse:t.program(12,r,0),data:r},s="function"==typeof o?o.call(null!=e?e:{},a):o,i.expertTipsLandingLinkHandle||(s=i.blockHelperMissing.call(e,s,a)),null!=s&&(c+=s),c+" </div>\n\n </div>\n"},10:function(t,e,i,n,r){var s,o=null!=e?e:{},a=i.helperMissing,c="function",l=t.escapeExpression;return' <a class="as-expert-tips-landing-page-link'+l(typeof(s=null!=(s=i.expertTipsExitLinkExist||(null!=e?e.expertTipsExitLinkExist:e))?s:a)===c?s.call(o,{name:"expertTipsExitLinkExist",hash:{},data:r}):s)+'" href="'+l(typeof(s=null!=(s=i.expertTipsLandingPageUrl||(null!=e?e.expertTipsLandingPageUrl:e))?s:a)===c?s.call(o,{name:"expertTipsLandingPageUrl",hash:{},data:r}):s)+'" '+l(typeof(s=null!=(s=i.expertTipsNoFollowValExist||(null!=e?e.expertTipsNoFollowValExist:e))?s:a)===c?s.call(o,{name:"expertTipsNoFollowValExist",hash:{},data:r}):s)+">\n "+l(typeof(s=null!=(s=i.expertTipsLandingPageLinkText||(null!=e?e.expertTipsLandingPageLinkText:e))?s:a)===c?s.call(o,{name:"expertTipsLandingPageLinkText",hash:{},data:r}):s)+'\n <span class="icon icon-chevronright" aria-hidden="true"></span>\n </a>\n'},12:function(t,e,i,n,r){var s;return" <span>\n "+t.escapeExpression("function"==typeof(s=null!=(s=i.expertTipsLandingPageLinkText||(null!=e?e.expertTipsLandingPageLinkText:e))?s:i.helperMissing)?s.call(null!=e?e:{},{name:"expertTipsLandingPageLinkText",hash:{},data:r}):s)+"\n </span>\n"},14:function(t,e,i,n,r){var s,o=null!=e?e:{},a=i.helperMissing,c=t.escapeExpression;return' <img class="as-ft-section-image" src="'+c((i.expertTipsImageUrl||e&&e.expertTipsImageUrl||a).call(o,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.hero:s,{name:"expertTipsImageUrl",hash:{},data:r}))+'" alt="'+c((i.expertTipsImgAltText||e&&e.expertTipsImgAltText||a).call(o,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?e.responseData:e)?s.article:s)?s.content:s)?s.main:s)?s.hero:s,{name:"expertTipsImgAltText",hash:{},data:r}))+'" />\n'},16:function(t,e,i,n,r){var s;return null!=(s=t.invokePartial(n["as-common-loader"],e,{name:"as-common-loader",data:r,indent:" ",helpers:i,partials:n,decorators:t.decorators}))?s:""},compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){var s;return null!=(s=i.if.call(null!=e?e:{},null!=e?e.showModule:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},usePartial:!0,useData:!0})},{"hbsfy/runtime":477}],490:[function(t,e,i){"use strict";var n=t("@marcom/ac-ajax"),r=t("lodash.get"),s=t("lodash.indexof"),o=t("@marcom/ac-dom-traversal/querySelector"),a=t("@marcom/ac-object/toQueryParameters"),c=t("@marcom/ac-object/create"),l=t("@marcom/ac-event-emitter").EventEmitter,u=t("@marcom/ac-dom-events/dispatchEvent"),h=o("#as-expert-tips-article");t("./handlebars-helpers");var d={expertTipsTemplateFn:t("./as-expert-tips.hbs"),displayHandle:{showModule:!0,responseData:null}},p=function(){this.expertTipContainer=h,this.expertTipContainer?(this.listOfIDsRawData=[],this.unreadTips=[],this.serviceCallsType="EXPERT_TIPS",this.dataLocal=this.expertTipContainer.attributes["data-locale"]?this.expertTipContainer.attributes["data-locale"].value:"",this.expertTipsAppId=this.expertTipContainer.attributes["data-et-app-id"]?this.expertTipContainer.attributes["data-et-app-id"].value:"",this.lookupAPIUrl=this.expertTipContainer.attributes["data-cds-lookupurl"]?this.expertTipContainer.attributes["data-cds-lookupurl"].value:"",this.listAPIUrl=this.expertTipContainer.attributes["data-cds-listurl"]?this.expertTipContainer.attributes["data-cds-listurl"].value:"",this.addImpressionAPIUrl=this.expertTipContainer.attributes["data-cds-impressionurl"]?this.expertTipContainer.attributes["data-cds-impressionurl"].value:"",this.dataArticleId=this.expertTipContainer.attributes["data-article-id"]?this.expertTipContainer.attributes["data-article-id"].value.replace(/\s/g,"").split(","):"",this.dataFilter=this.expertTipContainer.attributes["data-filter"]?this.expertTipContainer.attributes["data-filter"].value:"",this.init=function(){_(d.displayHandle),this.checkCategorySelection()}):this.init=function(){}},m=p.prototype=c(l.prototype);function f(){d.displayHandle.showModule=!1,_(d.displayHandle)}function _(t){var e=d.expertTipsTemplateFn(t);h.innerHTML=e}m.analyzeListOfTipIDs=function(t){var e=this,i=void 0!==t?t.slice():[],n=e.shuffle(i),r=n.shift()||[],s=n;e.getArticle(r),e.unreadTips=s},m.checkCategorySelection=function(){var t=this;t.dataFilter?t.getListTips():t.analyzeListOfTipIDs(t.dataArticleId)},m.getListTips=function(){var t=this,e={locale:t.dataLocal,filter:t.dataFilter,type:t.serviceCallsType,appid:t.expertTipsAppId},i="?"+a(e),r={url:t.listAPIUrl+i};n.getJSON(r).then((function(t){for(var e=[],i=void 0!==t.tips?t.tips:{},n=0;n<i.length;n++)i[n].hasOwnProperty("id")&&e.push(i[n].id);return e}),(function(){f()})).then((function(e){t.listOfIDsRawData=e,t.analyzeListOfTipIDs(e)}))},m.getArticle=function(t){var e=this,i={locale:e.dataLocal,appid:e.expertTipsAppId,id:t},o="?"+a(i),c={url:e.lookupAPIUrl+o};-1===s(e.listOfIDsRawData,i.id)&&-1===s(e.dataArticleId,i.id)||n.getJSON(c).then((function(t){r(t,"article.content.main")&&r(t,"article.meta.contentType")===e.serviceCallsType&&r(t,"article.articleId.locale")===e.dataLocal?(d.displayHandle.responseData=t,_(d.displayHandle),function(){if(e.addImpressionAPIUrl){var t={url:e.addImpressionAPIUrl+o};n.getJSON(t).then((function(){}))}}(),u(window,"DTMDomReady")):e.unreadTips.length>0?e.analyzeListOfTipIDs(e.unreadTips):f()}),(function(t){404===t.status&&e.unreadTips.length>0?e.analyzeListOfTipIDs(e.unreadTips):f()}))},m.shuffle=function(t){var e,i,n;for(n=t.length;n;n-=1)e=Math.floor(Math.random()*n),i=t[n-1],t[n-1]=t[e],t[e]=i;return t},e.exports=p},{"./as-expert-tips.hbs":489,"./handlebars-helpers":491,"@marcom/ac-ajax":40,"@marcom/ac-dom-events/dispatchEvent":74,"@marcom/ac-dom-traversal/querySelector":113,"@marcom/ac-event-emitter":124,"@marcom/ac-object/create":185,"@marcom/ac-object/toQueryParameters":192,"lodash.get":480,"lodash.indexof":481}],491:[function(t,e,i){"use strict";var n=t("hbsfy/runtime"),r=t("@marcom/ac-dom-traversal/querySelector")("#as-expert-tips-article");n.registerHelper("expertTipsText",(function(t){var e=r.attributes["data-image-serverurl"]?r.attributes["data-image-serverurl"].value:"",i=t&&t.length>0?t:"";return i=i.replace(new RegExp('src="/library',"g"),'src="'+e+"/library")})),n.registerHelper("expertTipsImageUrl",(function(t){return(r.attributes["data-image-serverurl"]?r.attributes["data-image-serverurl"].value:"")+(t.length>0&&t[0].hasOwnProperty("baseImagePath")?t[0].baseImagePath:"")})),n.registerHelper("expertTipsAnyLinksToShow",(function(t){if(r.attributes["data-cq-et-landingurltext"]?r.attributes["data-cq-et-landingurltext"].value:"")return t.fn(this)})),n.registerHelper("expertTipsLandingPageLinkText",(function(){return r.attributes["data-cq-et-landingurltext"]?r.attributes["data-cq-et-landingurltext"].value:""})),n.registerHelper("expertTipsLandingPageUrl",(function(){return r.attributes["data-cq-et-landingurl"]?r.attributes["data-cq-et-landingurl"].value:""})),n.registerHelper("expertTipsLandingLinkHandle",(function(t){var e=r.attributes["data-cq-et-landingurl"]?r.attributes["data-cq-et-landingurl"].value:"",i=t.fn,n=t.inverse;return e?i():n()})),n.registerHelper("expertTipsNoFollowValExist",(function(){return"true"===(r.attributes["data-cq-et-nofollowvalexist"]?r.attributes["data-cq-et-nofollowvalexist"].value:"")?new n.SafeString('rel="nofollow"'):""})),n.registerHelper("expertTipsExitLinkExist",(function(){return"true"===(r.attributes["data-cq-et-exitlinkexist"]?r.attributes["data-cq-et-exitlinkexist"].value:"")?" analytics-exitlink":""})),n.registerHelper("expertTipsImgAltText",(function(t){return t.length>0&&t[0].hasOwnProperty("altText")?t[0].altText:""}))},{"@marcom/ac-dom-traversal/querySelector":113,"hbsfy/runtime":477}],492:[function(t,e,i){"use strict";var n=function(){this.fetchSearchLocale=function(t){return t=t.toLowerCase(),this.searchLocaleMapping={ar_ae:"ar_AE",ar_sa:"ar_SA",ar_om:"ar_OM",ar_qa:"ar_QA",bg_bg:"bg_BG",cs_cz:"cs_CZ",da_dk:"da_DK",de_at:"de_AT",de_ch:"de_CH",de_de:"de_DE",de_li:"de_LI",de_lu:"de_DE",el_gr:"el_GR",en_ae:"en_AE",en_al:"en_AL",en_am:"en_AM",en_ap:"en_AP",en_asia:"en_AP",en_au:"en_AU",en_az:"en_AZ",en_bh:"en_BH",en_bn:"en_BN",en_bw:"en_BW",en_by:"en_BY",en_ca:"en_CA",en_eg:"en_EG",en_gb:"en_GB",en_ge:"en_GE",en_gu:"en_GU",en_gw:"en_GW",en_hk:"en_HK",en_ie:"en_IE",en_il:"en_IL",en_in:"en_IN",en_is:"en_IS",en_jo:"en_JO",en_ke:"en_KE",en_kg:"en_KG",en_kw:"en_KW",en_kz:"en_KZ",en_la:"en_419",en_lamr:"en_419",en_me:"en_ME",en_md:"en_MD",en_mk:"en_MK",en_mt:"en_MT",en_my:"en_MY",en_mz:"en_MZ",en_ng:"en_NG",en_nz:"en_NZ",en_om:"en_OM",en_ph:"en_PH",en_qa:"en_QA",en_sa:"en_SA",en_sg:"en_SG",en_tj:"en_TJ",en_tm:"en_TM",en_ug:"en_UG",en_us:"en_US",en_uz:"en_UZ",en_vn:"en_VN",en_za:"en_ZA",es_cl:"es_CL",es_co:"es_CO",es_es:"es_ES",es_la:"es_419",es_lamr:"es_419",es_mx:"es_MX",et_ee:"et_EE",fi_fi:"fi_FI",fr_be:"fr_BE",fr_ca:"fr_CA",fr_cf:"fr_CF",fr_ch:"fr_CH",fr_ci:"fr_CI",fr_cm:"fr_CM",fr_fr:"fr_FR",fr_gn:"fr_GN",fr_gq:"fr_GQ",fr_lu:"fr_LU",fr_ma:"fr_MA",fr_mg:"fr_MG",fr_ml:"fr_ML",fr_mu:"fr_MU",fr_ne:"fr_NE",fr_sn:"fr_SN",fr_tn:"fr_TN",hr_hr:"hr_HR",hu_hu:"hu_HU",id_id:"id_ID",it_it:"it_IT",ja_jp:"ja_JP",ko_kr:"ko_KR",lt_lt:"lt_LT",lv_lv:"lv_LV",nl_be:"nl_BE",nl_nl:"nl_NL",no_no:"no_NO",pl_pl:"pl_PL",pt_br:"pt_BR",pt_pt:"pt_PT",ro_ro:"ro_RO",ru_ru:"ru_RU",sk_sk:"sk_SK",sl_si:"sl_SI",sv_se:"sv_SE",th_th:"th_TH",tr_tr:"tr_TR",zh_cn:"zh_CN",zh_hk:"zh_HK",zh_tw:"zh_TW"},t&&this.searchLocaleMapping[t]?this.searchLocaleMapping[t]:"en_US"}};e.exports=function(t){return new n}},{}],493:[function(t,e,i){"use strict";var n=t("@marcom/ac-ajax"),r=t("@marcom/ac-classlist"),s=t("@marcom/ac-dom-events/utils/addEventListener"),o=t("../../utils/as-button-loader"),a=t("@marcom/ac-object/create"),c=t("@marcom/ac-event-emitter").EventEmitter,l=t("@marcom/ac-dom-traversal/querySelector"),u=t("@marcom/ac-dom-traversal/querySelectorAll"),h=t("@marcom/ac-dom-events/preventDefault"),d=t("xml2json-light"),p=new o,m=p.getLocale(),f=function(){return{init:this.init()}},_=f.prototype=a(c.prototype);function v(t){var e=t.target;b(e),r.remove(e,"form-textbox-entered"),r.remove(e.parentElement,"is-success")}function g(t){var e=l("#emailAddress"),i=l("#email_error");e.value.length>0?(r.add(e,"form-textbox-entered"),y(this)):w(e,i)}function y(t){var e;h(t),e=l("#emailAddress"),r.add(l(".title-default"),"hide"),r.add(l(".title-mac"),"hide"),r.add(l("#setting-result"),"hide"),r.remove(l(".as-serverdetails-wrapper"),"fadeInDown"),u(".server-rows-wrapper").forEach((function(t){r.add(t,"hide")})),u(".auth-type").forEach((function(t){r.add(t,"hide")})),u(".ssl-type").forEach((function(t){r.add(t,"hide")})),l(".server-results-wrapper").removeAttribute("tabindex"),e.setAttribute("aria-invalid",!1),e.setAttribute("aria-describedby","as-mail-settings-note"),p.clearContentStatus();var i,s=l("#emailAddress"),o=l("#email_error");p.showSpinnerOnButton("as-ms-input-loader"),p.includeContentUpdating(m),i=s.value.trim(),/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(i)?setTimeout((function(){var t;t=l("#as-input-email-wrapper").dataset?l("#as-input-email-wrapper").dataset.endpoint:"",n.get({url:t}).then((function(t){p.hideSpinnerOnButton("as-ms-input-loader"),function(t){for(var e=l("#emailAddress").value.split(/\@/)[1].trim().toLowerCase(),i=!1,n=l(".as-serverdetails-wrapper"),s=l(".server-results-wrapper"),o=l("#domain_error"),a=l("#emailAddress"),c=!1,u=0;u<t.length;u++)if(t[u].name===e){b(l(".form-message-wrapper")),r.remove(l("#setting-result"),"hide"),r.add(l(".form-element",l("#as-input-email-wrapper")),"is-success"),i=!0;var h=t[u].service,d="",p=h.length;p>2?r.remove(l(".title-mac"),"hide"):r.remove(l(".title-default"),"hide"),p>2?r.remove(l(".server-results-divider"),"hide"):r.add(l(".server-results-divider"),"hide");for(var m=0;m<p;m++)d=l("#"+k(h[m],p)),Object.getOwnPropertyNames(h[m]).forEach((function(t){if("ssl"===t){var e=""===h[m][t]?"ssl-yes":"ssl-no";r.remove(l("."+e,d),"hide")}if("authentication"===t){var i=h[m][t].toLowerCase();i="cram-md5"===i?"md5":i,r.remove(l("."+i,d),"hide")}l("."+t,d)&&(l("."+t,d).innerHTML=h[m][t])})),h[m].hasOwnProperty("ssl")||r.remove(l(".ssl-no",d),"hide"),c=h[m].hasOwnProperty("usernameIncludesDomain"),l(".username",d).innerHTML=x(c),d&&r.remove(d,"hide");r.add(n,"fadeInDown"),s.setAttribute("tabindex","-1"),setTimeout((function(){s.focus()}),950),void 0===window.launchPageLevelTrackFn&&null===window.launchPageLevelTrackFn||window.launchPageLevelTrackFn(E("success",e))}i||(w(a,o),r.remove(n,"fadeInDown"),s.removeAttribute("tabindex"),void 0===window.launchPageLevelTrackFn&&null===window.launchPageLevelTrackFn||window.launchPageLevelTrackFn(E("fail",e)))}(d.xml2json(t.response).domains.domain)}),(function(t){p.hideSpinnerOnButton("as-ms-input-loader"),console.log("Service Error Handle",t)}))}),300):setTimeout((function(){w(s,o),p.hideSpinnerOnButton("as-ms-input-loader")}),300)}function b(t){var e=t.parentElement;r.remove(e,"is-error"),r.add(u(".form-message"),"hide"),u(".form-message").forEach((function(t){r.add(t,"hide")})),l(".form-message-wrapper").removeAttribute("tabindex")}function w(t,e){var i=t.parentElement,n=e.id+" as-mail-settings-note";u(".form-message").forEach((function(t){r.add(t,"hide")})),r.add(i,"is-error"),r.remove(i,"is-success"),r.remove(e,"hide"),t.setAttribute("aria-describedby",n),t.setAttribute("aria-invalid",!0),setTimeout((function(){t.focus()}),950)}function E(t,e){return{name:"mail settings lookup",type:"mail-settings-lookup",link_text:"submit",link_owner:"ac_link",status:t+"::"+e}}function k(t,e){var i="";return Object.getOwnPropertyNames(t).forEach((function(n){if("protocol"===n)i="imap"===t[n].toLowerCase()||"pop"===t[n].toLowerCase()?"incoming":"outgoing";else if("requires"===n)if(e>2){var r=Boolean(t[n])&&"macosx"===t[n].toLowerCase();i+=r?"-mac":"-ios"}else i+="-mac"})),t.hasOwnProperty("requires")||(i+="-mac"),i+="-settings"}function x(t){return t?l("#emailAddress").value.trim():l("#emailAddress").value.split(/\@/)[0].trim()}_.init=function(){this.emailForm=l("#as-input-email-wrapper"),this._userInputEmail=l("#emailAddress"),this.emailSubmitBtn=l("#as-ms-button",this.emailForm),this.emailForm&&(this.lookupInput=l("#emailAddress",this.emailForm),this._addLookupEventsListener())},_._addLookupEventsListener=function(){var t=l("#emailAddress"),e=l("#as-input-email-wrapper");s(e,"submit",g.bind(this)),t&&s(t,"input",v.bind(this)),s(this.emailSubmitBtn,"click",y.bind(this))},e.exports=function(){var t=l("#as-input-email-wrapper");if(t)new f(t)}},{"../../utils/as-button-loader":507,"@marcom/ac-ajax":40,"@marcom/ac-classlist":63,"@marcom/ac-dom-events/preventDefault":76,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-traversal/querySelector":113,"@marcom/ac-dom-traversal/querySelectorAll":114,"@marcom/ac-event-emitter":124,"@marcom/ac-object/create":185,"xml2json-light":483}],494:[function(t,e,i){"use strict";var n=t("@marcom/ac-ajax"),r=t("@marcom/ac-classlist"),s=t("@marcom/ac-dom-events/utils/addEventListener"),o=t("../../utils/as-button-loader"),a=t("@marcom/ac-object/create"),c=t("@marcom/ac-event-emitter").EventEmitter,l=t("@marcom/ac-dom-traversal/querySelector"),u=t("@marcom/ac-dom-traversal/querySelectorAll"),h=t("@marcom/ac-dom-events/preventDefault"),d=new o,p="success",m="error",f={},_=d.getLocale(),v=function(){return{init:this.init()}},g=v.prototype=a(c.prototype);function y(){var t=getComputedStyle(l(".as-sn-input-section")).width;l(".as-sn-response-section").style.maxWidth=t}function b(t){var e,i,r,s,o;h(t),e=l("#as-sn-input"),i=l(".main"),r=i.hasAttribute("data-env")?i.getAttribute("data-env"):"",s=e.value.trim().toUpperCase(),d.showSpinnerOnButton("as-snl-input-loader"),d.includeContentUpdating(_),""===s&&f.FE01?E("FE01"):"author"===r&&f[s]?E(s):(o=s,!new RegExp(/^[a-zA-Z0-9]{11,12}$|^((?![8|A|B|E|I|O|S|U|Z])[a-zA-Z0-9]){8,14}$/).test(o)&&f.FE02?E("FE02"):function(t){var e=l("#as-sn-lookup"),i=e.hasAttribute("data-qp-api")?e.getAttribute("data-qp-api"):"",r={serial:t,GUID:S()};n.post({url:i,data:JSON.stringify(r),dataType:"json"}).then((function(t){var e,i,n="",r="",s=null,o=[],a=u(".as-sn-msg-success");if(d.hideSpinnerOnButton("as-snl-input-loader"),a)for(var c=0;c<a.length;c++)i=(i=a[c].parentElement.id).replace("as-sn-",""),o.push(i);n=void 0===t.response?t.responseText:t.response,((e=JSON.parse(n)).ERROR_CODE||e.status)&&(r=e.ERROR_CODE?e.ERROR_CODE:e.status),s=e.metadata?e.metadata:null,r&&f[r]&&(s?k(r,f[r],s):k(r,f[r]),void 0===window.launchPageLevelTrackFn&&null===window.launchPageLevelTrackFn||window.launchPageLevelTrackFn(C(r)))}),(function(t){d.hideSpinnerOnButton("as-snl-input-loader"),f.FE03&&E("FE03")}))}(s))}function w(t){h(t),x()}function E(t){setTimeout((function(){d.hideSpinnerOnButton("as-snl-input-loader"),k(t,f[t]),void 0===window.launchPageLevelTrackFn&&null===window.launchPageLevelTrackFn||window.launchPageLevelTrackFn(C(t))}),300)}function k(t,e,i){var n=l("#as-sn-input"),s=l("#as-sn-"+t),o=l(".as-sn-msg--show"),a=null,c=null,u="",h=l("#as-sn-response");if(o&&o!==s&&x(),s){var d=function(t){var e="";return l(".as-sn-msg",t).childNodes.forEach((function(t){e=t.id?e+" "+t.id:e})),e.trim()}(s);""!==d&&n.setAttribute("aria-describedby",d)}e===p?(n&&r.add(n,"form-textbox-entered"),s&&(r.add(s,"as-sn-msg--show"),n.setAttribute("aria-invalid",!1),r.add(n.parentElement,"is-success"),r.add(h,"is-success"))):(h&&(r.remove(h,"is-success"),r.add(h,"is-error")),s&&(r.add(s,"as-sn-msg--show"),n.setAttribute("aria-invalid",!0),setTimeout((function(){n.focus()}),990),r.add(n.parentElement,"is-error"))),a=(o=l(".as-sn-msg--show")).querySelector(".form-message"),o&&a.classList.contains("as-sn-msg-success")&&(o.setAttribute("tabindex","-1"),setTimeout((function(){o.focus()}),990),i&&(c=a.querySelector("a"))&&(u=(u=c.attributes.href.value).indexOf("metadata")>=0?u.slice(0,u.indexOf("metadata")-1):u,c.attributes.href.value=u.match(/\?./)?u+"&metadata="+i:u+"?metadata="+i))}function x(){var t=l("#as-sn-response");t.classList.contains("is-error")&&r.remove(t,"is-error");var e=l(".as-sn-msg--show");e&&r.remove(e,"as-sn-msg--show");var i=l("#as-sn-input");i&&(r.remove(i,"form-textbox-entered"),r.remove(i.parentElement,"is-error"),r.remove(i.parentElement,"is-success"),i.setAttribute("aria-invalid",!1),i.removeAttribute("aria-describedby")),e&&e.removeAttribute("tabindex"),d.clearContentStatus()}function S(){return T()+T()+"-"+T()+"-"+T()+"-"+T()+"-"+T()+T()+T()}function T(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function C(t){return{link_owner:"ac_link",name:"serial check",type:"serial chk",link_text:"submit",status:t,dest_url:window.location.href}}g.init=function(){var t;this.lookupForm=l("#as-sn-lookup"),this.qpSubmitBtn=l("#as-sn-button"),this.lookupForm&&(y(),l(".as-sn-response-section").style.visibility="visible",this.lookupInput=l("#as-sn-input",this.lookupForm),function(){var t,e=u(".as-sn-msg");if(e)for(var i=0;i<e.length;i++)t=(t=e[i].parentElement.id).replace("as-sn-",""),r.contains(e[i],"as-sn-msg-success")?f[t]=p:f[t]=m}(),u(".as-sn-msg").forEach((function(e){t=1,e.childNodes.forEach((function(i){"#text"!==i.nodeName&&(i.id=e.parentElement.id+"-details"+t++)}))})),this._addLookupEventsListener())},window.addEventListener("resize",(function(){l("#as-sn-lookup")&&y()}),!0),g._addLookupEventsListener=function(){s(this.lookupForm,"submit",b.bind(this)),s(this.lookupInput,"input",w.bind(this)),s(this.qpSubmitBtn,"click",b.bind(this))},e.exports=function(){var t=l("#as-sn-lookup");if(t)new v(t)}},{"../../utils/as-button-loader":507,"@marcom/ac-ajax":40,"@marcom/ac-classlist":63,"@marcom/ac-dom-events/preventDefault":76,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-traversal/querySelector":113,"@marcom/ac-dom-traversal/querySelectorAll":114,"@marcom/ac-event-emitter":124,"@marcom/ac-object/create":185}],495:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){var s;return'<span class="as-search-no-results-hint">'+t.escapeExpression("function"==typeof(s=null!=(s=i.hinttext||(null!=e?e.hinttext:e))?s:i.helperMissing)?s.call(null!=e?e:{},{name:"hinttext",hash:{},data:r}):s)+"</span>\n"},useData:!0})},{"hbsfy/runtime":477}],496:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,i,n,r){var s,o,a=null!=e?e:{};return'<h3 class="as-heading">\n '+t.escapeExpression("function"==typeof(o=null!=(o=i.quickLinksHeading||(null!=e?e.quickLinksHeading:e))?o:i.helperMissing)?o.call(a,{name:"quickLinksHeading",hash:{},data:r}):o)+'\n</h3>\n\n<ul class="as-search-quickLinkList" id="as-search-quicklinks" role="listbox">\n'+(null!=(s=i.each.call(a,null!=e?e.quickLinks:e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+"</ul>\n"},2:function(t,e,i,n,r){var s,o,a=null!=e?e:{},c=i.helperMissing,l="function",u=t.escapeExpression,h=t.lambda;return' <li class="as-search-suggestion" id="as-search-quicklinks-'+u(typeof(o=null!=(o=i.index||r&&r.index)?o:c)===l?o.call(a,{name:"index",hash:{},data:r}):o)+'" role="presentation">\n <a class="as-search-suggestion-link" href="'+u(h(null!=e?e.url:e,e))+'" data-keyboard-nav-index="'+u(typeof(o=null!=(o=i.index||r&&r.index)?o:c)===l?o.call(a,{name:"index",hash:{},data:r}):o)+'" data-targeturl="'+u(h(null!=e?e.url:e,e))+'"\n data-analytics-resulttype="quicklink" data-analytics-resultposition=\''+u((i.inc||e&&e.inc||c).call(a,r&&r.index,{name:"inc",hash:{},data:r}))+"'\n data-analytics-resultpagetype=\""+u(h(null!=e?e.pagetype:e,e))+'" data-analytics-searchresult="'+u(h(null!=e?e.label:e,e))+'" role="option" onclick=\'return false;\'>\n '+(null!=(s=(i.searchTermHighlight||e&&e.searchTermHighlight||c).call(a,null!=e?e.label:e,{name:"searchTermHighlight",hash:{},data:r}))?s:"")+"\n </a>\n</li>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){var s;return null!=(s=i.if.call(null!=e?e:{},null!=(s=null!=e?e.quickLinks:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},{"hbsfy/runtime":477}],497:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,i,n,r){return'<span class="dividers-space">&nbsp;</span>\n'},compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){var s;return null!=(s=i.if.call(null!=e?e:{},e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},{"hbsfy/runtime":477}],498:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,i,n,r){return'<span class="as-searchterm--highlight">'+t.escapeExpression(t.lambda(e,e))+"</span>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){var s;return null!=(s=i.if.call(null!=e?e:{},e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},{"hbsfy/runtime":477}],499:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({1:function(t,e,i,n,r){var s,o,a=null!=e?e:{};return'<h3 class="as-heading">\n '+t.escapeExpression("function"==typeof(o=null!=(o=i.searchResultsHeading||(null!=e?e.searchResultsHeading:e))?o:i.helperMissing)?o.call(a,{name:"searchResultsHeading",hash:{},data:r}):o)+'\n</h3>\n\n<ul class="as-search-suggestionsList" id="as-search-suggestions" role="listbox">\n'+(null!=(s=i.each.call(a,null!=e?e.searchResults:e,{name:"each",hash:{},fn:t.program(2,r,0),inverse:t.noop,data:r}))?s:"")+"</ul>\n"},2:function(t,e,i,n,r){var s,o,a=null!=e?e:{},c=i.helperMissing,l=t.escapeExpression,u=t.lambda;return' <li class="as-search-suggestion" id="as-search-suggestion-'+l("function"==typeof(o=null!=(o=i.index||r&&r.index)?o:c)?o.call(a,{name:"index",hash:{},data:r}):o)+'" role="presentation">\n <a class="as-search-suggestion-link" href="'+l(u(null!=e?e.url:e,e))+'" data-keyboard-nav-index="'+l((i.incrementKeyboardNavIndex||e&&e.incrementKeyboardNavIndex||c).call(a,r&&r.index,{name:"incrementKeyboardNavIndex",hash:{},data:r}))+'"\n data-analytics-event="link.component_click" data-analytics-link-component_type="search" data-analytics-link-component_name="'+l(u(null!=e?e.label:e,e))+'" data-analytics-link-url="'+l(u(null!=e?e.url:e,e))+'"\n data-targeturl="'+l(u(null!=e?e.url:e,e))+'" data-analytics-resulttype="suggested search" data-analytics-resultpagetype="'+l(u(null!=e?e.pagetype:e,e))+'"\n data-analytics-searchresult="'+l(u(null!=e?e.label:e,e))+'" role="option" onclick=\'return false;\'>\n '+(null!=(s=(i.searchTermHighlight||e&&e.searchTermHighlight||c).call(a,null!=e?e.label:e,{name:"searchTermHighlight",hash:{},data:r}))?s:"")+"\n </a>\n </li>\n"},compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){var s;return null!=(s=i.if.call(null!=e?e:{},null!=(s=null!=e?e.searchResults:e)?s.length:s,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?s:""},useData:!0})},{"hbsfy/runtime":477}],500:[function(t,e,i){"use strict";var n=t("@marcom/ac-classlist"),r=t("@marcom/ac-dom-events/utils/addEventListener"),s=t("@marcom/ac-dom-events/preventDefault"),o=function(){this.initialize=function(){this._searchField=document.getElementById("as-search-input"),this._suggestionsList=document.querySelectorAll(".as-search-suggestion"),this._closeButton=document.getElementById("as-search-close"),r(this._closeButton,"click",this._closeButtonEvtHndler.bind(this)),this._listEventListeners(),r(this._searchField,"keyup",this._keyup.bind(this)),r(this._searchField,"keydown",this._keydown.bind(this)),r(this._searchField,"focus",this._openDrawer.bind(this)),r(this._searchField,"blur",this._closeDrawer.bind(this))},this._listEventListeners=function(){for(var t=0;t<this._suggestionsList.length;t++)r(this._suggestionsList[t],"keypress",this._listkeypress.bind(this))},this._listkeypress=function(t){27===t.keyCode&&this._closeDrawer()},this._keyup=function(t){this._searchField=document.getElementById("as-search-input"),27===t.keyCode||""===this._searchField.value?this._closeDrawer():9===t.keyCode||(8===t.keyCode&&""===this._searchField.value?this._closeDrawer():this._openDrawer())},this._keydown=function(t){9===t.keyCode||27===t.keyCode||8===t.keyCode&&""===this._searchField.value?this._closeDrawer():this._openDrawer()},this._openDrawer=function(){n.add(this._searchField,"is-opened"),""!==this._searchField.value&&n.add(this._closeButton,"is-shown")},this._closeDrawer=function(){},this._closeButtonEvtHndler=function(t){s(t),this._closeDrawer()}};e.exports=function(){var t=new o;return t.initialize(),t}},{"@marcom/ac-classlist":63,"@marcom/ac-dom-events/preventDefault":76,"@marcom/ac-dom-events/utils/addEventListener":82}],501:[function(t,e,i){"use strict";var n=t("../../utils/as-core"),r=t("@marcom/ac-dom-events"),s=t("@marcom/ac-dom-traversal/querySelector"),o=t("@marcom/ac-dom-traversal/querySelectorAll"),a=t("@marcom/ac-classlist"),c=t("hbsfy/runtime"),l=t("@marcom/function-utils/debounce"),u=t("@marcom/ac-ajax"),h=t("../as-locale-mapping/as-locale-mapping")(),d=t("@marcom/ac-keyboard"),p=t("./as-search-toggle-classes"),m={quickLinksTemplateFn:t("./as-search-quicklinks-template.hbs"),suggestedResultsTemplateFn:t("./as-search-suggestions-template.hbs"),noResultsTemplateFn:t("./as-search-no-results-template.hbs"),searchTermHighlightTemplateFn:t("./as-search-searchterm-highlight-template.hbs"),searchResultsDividerFn:t("./as-search-results-divider-space-template.hbs"),quickLinksHeading:s("#as-search-form")&&s("#as-search-form").getAttribute("data-quick-links-heading"),suggestedResultsHeading:s("#as-search-form")&&s("#as-search-form").getAttribute("data-suggested-results-heading")},f=!1,_=new n,v=function(){g.searchEndPoint="",g._currentKeyboardIndex=-1,g._totalNumberOfResults=0,this.init=function(){if(this._initFormEscape(),this._constructSearchEndPointAndPayload()){p();var t=s(".search-hint-class");t&&(t.id="search-hint"),c.registerHelper("inc",(function(t,e){return parseInt(t)+1})),this._respondToKeyboardEvents(),this._respondToMouseClicksOutsideSearchSection(),this._initReset()}},this.payload={}},g=v.prototype;g._constructSearchEndPointAndPayload=function(){var t=s("#as-search-form");if(t){g.searchEndPoint=t.attributes["data-suggestions-endpoint"]&&t.attributes["data-suggestions-endpoint"].value;var e=s("#as-search-locale"),i=e&&e.value,n=h.fetchSearchLocale(i);e.value=n;var r=s("#src")&&s("#src").value;return this.payload={query:"",id:"",src:r,locale:n},this.payload}return!1},g._respondToMouseClicksOutsideSearchSection=function(){var t=s("body");r.addEventListener(t,"click",(function(t){t=t||window.event,l((function(t){var e=s("#as-search-input"),i=s("#as-search-suggestions-wrapper.as-search-suggestions"),n=s(".as-search-form-reset");if(a.contains(i,"is-expanded")){if(t.srcElement)var r=t.srcElement;else t.target&&(r=t.target);var o;do{if(r===i||r===e||r===n||r.parentNode===n){o=!0;break}o=!1,r=r.parentNode}while(r);!o&&f&&g._hideSuggestionsBox()}}),250)(t)}))},g._generateSearchComponentObj=function(t){var e,i=r.target(t),n={};e=null!==(i=s('[data-keyboard-nav-index="'+g._currentKeyboardIndex+'"]'))?i.dataset:"SPAN"===t.target.tagName?t.currentTarget.querySelector("a").dataset:t.target.dataset;var o=t.keyCode;"focusin"===t.type?(n.name="click-search-component",n.link_type="acs",n.link_text="internal search",n.link_owner="ac_link"):o!==_.keys.RETURN&&"submit"!==t.target.type||null!==i||"A"===t.target.tagName?(n.location="component",n.link_type=e.analyticsResulttype,n.link_text=e.analyticsSearchresult,n.link_index=e.analyticsResultposition,n.dest_url=e.targeturl,n.dest_platform=this._determineResultsPageType(e.targeturl),n.dest_url_type="int",n.link_owner="ac_link"):(n.location="component",n.link_type="user",n.link_text=s("#as-search-input").value,n.dest_url=s("#as-search-form").getAttribute("action"),n.link_owner="ac_link"),void 0===window.launchPageLevelTrackFn&&null===window.launchPageLevelTrackFn||!n.link_text.trim()||window.launchPageLevelTrackFn(n,"search")},g._respondToKeyboardEvents=function(){this.searchInput=s("#as-search-input");var t=s("#as-search-suggestions-wrapper"),e=this,i=s("body");r.addEventListener(this.searchInput,"focusin",(function(t){var i=e.searchInput.value;e._fetchSearchSuggestions(i),e._generateSearchComponentObj(t)})),r.addEventListener(this.searchInput,"keyup",(function(t){r.preventDefault(t),l((function(t){var i=e.searchInput.value;e.resetButton=s(".as-search-form-reset"),i.length?a.add(e.resetButton,"is-shown"):a.remove(e.resetButton,"is-shown"),e._changeSubmitButtonState(i.trim()?"enable":"disable"),e._initSearchOrEscape(t,i)}),100)(t)})),r.addEventListener(this.searchInput,"keydown",(function(t){var e=t.keyCode;e===_.keys.UP||e===_.keys.DOWN?r.preventDefault(t):e===_.keys.RETURN&&(r.preventDefault(t),g._generateSearchComponentObj(t),g._omnitureAndRedirect(t))})),r.addEventListener(i,"focusout",(function(i){if(i=i||window.event,a.contains(t,"is-expanded")){var r=s("#as-search-input"),c=s(".as-search-form-submit"),l=o(".as-search-suggestion-link"),u=l[l.length-1],h=l[l.length-2];if(i.srcElement)var d=i.srcElement;else i.target&&(d=i.target);if(i.relatedTarget)var p=i.relatedTarget;(d&&d===u&&p!==h||d===r&&-1===l.indexOf(p)&&p!==c&&p!==n)&&e._hideSuggestionsBox()}})),r.addEventListener(this.searchInput,"blur",(function(){var t=o(".as-search-suggestion");t&&0===t.length&&e._hideSuggestionsBox()})),r.addEventListener(t,"keyup",(function(t){r.preventDefault(t),l((function(t){var i=e.searchInput.value;e._initSearchOrEscape(t,i)}),100)(t)}));var n=s(".as-search-form-reset");r.addEventListener(n,"keyup",(function(t){l((function(t){var i=window.event?window.event.keyCode:t.keyCode;i!==_.keys.RETURN&&i!==_.keys.SPACE||(e._changeSubmitButtonState("disable"),e.searchInput.value="",e.searchInput.focus(),e._fetchSearchSuggestions(""),a.add(e.searchInput,"is-opened"),a.remove(n,"is-shown"))}),200)(t)}))},g._initSearchOrEscape=function(t,e){try{var i;switch(window.event?window.event.keyCode:t.keyCode){case _.keys.ESC:this._hideSuggestionsBox();break;case _.keys.RETURN:(g._totalNumberOfResults>0||g._currentKeyboardIndex>0)&&(g._generateSearchComponentObj(t),this._omnitureAndRedirect(t));break;case _.keys.UP:i=document.activeElement,a.contains(i,"as-search-suggestion-link")||(g._totalNumberOfResults>0&&g._currentKeyboardIndex>-1&&(g._currentKeyboardIndex=parseInt(g._currentKeyboardIndex)-1,this._highlightResult(g._currentKeyboardIndex,t)),-1===g._currentKeyboardIndex&&(this._lowlightResult(),this.searchInput.value=this.payload.query));break;case _.keys.DOWN:i=document.activeElement,a.contains(i,"as-search-suggestion-link")||g._totalNumberOfResults>0&&g._currentKeyboardIndex<g._totalNumberOfResults&&g._currentKeyboardIndex!==g._totalNumberOfResults-1&&(g._currentKeyboardIndex=parseInt(g._currentKeyboardIndex)+1,this._highlightResult(g._currentKeyboardIndex,t));break;case _.keys.LEFT:case _.keys.RIGHT:case _.keys.TAB:this._lowlightResult();break;case _.keys.SHIFT:case _.keys.ALT:case _.keys.CTRL:case _.keys.MAC_CMD_LEFT:case _.keys.MAC_CMD_RIGHT:case _.keys.MAC_CMD_FIREFOX:case _.keys.CAPS_LOCK:case _.keys.WINDOWS_KEY:break;default:null!==e?this._fetchSearchSuggestions(e):this._hideSuggestionsBox()}}catch(t){d.onceDown(_.keys.RETURN,(function(){s("#as-search-form").submit()}))}},g._fetchSearchSuggestions=function(t){this._generateSearchTermHighlightFunction(t);var e=g.searchEndPoint;this.payload.query=t;var i=this;u.post({url:e,data:JSON.stringify(this.payload),dataType:"json",headers:[{name:"Content-Type",value:"application/json"}]}).then((function(t){var e="";e=void 0===t.response?t.responseText:t.response,i._renderSuggestionsBox(JSON.parse(e).results)}),(function(t){throw t}))},g._renderSuggestionsBox=function(t){var e=s("#as-search-suggestions-wrapper"),i=s("#as-search-input");if(this._unbindMouseActionsToSuggestions(),t.length>0){var n=[],r=[];t.forEach((function(t){"quickLinks"===t.sectionName?n=t.sectionResults:"suggestions"===t.sectionName&&(r=t.sectionResults)})),c.registerHelper("incrementKeyboardNavIndex",(function(t){var e=n.length;return parseInt(t)+parseInt(e)})),g._currentKeyboardIndex=-1,g._totalNumberOfResults=n.length+r.length,g._totalNumberOfResults>0?(this._renderQuickLinksSuggestedSearches(n,r),a.add(e,"is-expanded"),a.add(i,"is-focus-active")):(a.remove(e,"is-expanded"),a.remove(i,"is-focus-active")),setTimeout((function(){g._populateAriaLiveSpan(n,r)}),1e3),this._bindMouseActionsToSuggestions()}else a.remove(e,"is-expanded"),a.remove(i,"is-focus-active")},g._populateAriaLiveSpan=function(t,e){var i=s("#as-search-suggestions-wrapper"),n=s("span",i);n&&(t.length>0&&e.length>0?n.innerHTML=t.length+" "+m.quickLinksHeading+","+e.length+" "+m.suggestedResultsHeading:t.length>0&&0===e.length?n.innerHTML=t.length+" "+m.quickLinksHeading:0===t.length&&e.length>0&&(n.innerHTML=e.length+" "+m.suggestedResultsHeading),setTimeout((function(){g._clearAriaLiveSpan()}),3e3))},g._clearAriaLiveSpan=function(){var t=s("#as-search-suggestions-wrapper"),e=s("span",t);e&&""!==e.innerHTML&&(e.innerHTML="")},g._renderQuickLinksSuggestedSearches=function(t,e){this._renderResultsTemplate(m.noResultsTemplateFn,".as-search-results-section-no-results",{}),this._renderResultsTemplate(m.quickLinksTemplateFn,".as-search-results-section-quicklinks",{quickLinksHeading:m.quickLinksHeading,quickLinks:t}),t.length>0&&e.length>0?this._renderResultsTemplate(m.searchResultsDividerFn,".as-search-results-section-divider-space",["spacer"]):this._renderResultsTemplate(m.searchResultsDividerFn,".as-search-results-section-divider-space",[]),this._renderResultsTemplate(m.suggestedResultsTemplateFn,".as-search-results-section-suggestions",{searchResultsHeading:m.suggestedResultsHeading,searchResults:e})},g._renderResultsTemplate=function(t,e,i){if(t){var n=t(i),r=s(e);r&&(r.innerHTML=n)}return!0},g._hideSuggestionsBox=function(){g._currentKeyboardIndex=-1,g._totalNumberOfResults=0;var t=s("#as-search-suggestions-wrapper"),e=s("#as-search-input");a.remove(t,"is-expanded"),a.remove(e,"is-focus-active");var i=s("#as-search-input");a.remove(i,"is-opened"),t.children[0].textContent="",this._unbindMouseActionsToSuggestions()},g._bindMouseActionsToSuggestions=function(){var t=this,e=s(".as-search-suggestions"),i=o(".as-search-suggestion");r.addEventListener(e,"mousedown",(function(t){f=!0,t.preventDefault()})),r.addEventListener(e,"mousemove",(function(t){f=!1,t.preventDefault()})),r.addEventListener(e,"click",(function(t){f?g._omnitureAndRedirect(t):t.preventDefault()})),i&&i.forEach((function(e,i){r.addEventListener(e,"mouseenter",(function(e){t._highlightResult(i,e)})),r.addEventListener(e,"mouseleave",(function(e){t._lowlightResult()})),r.addEventListener(e,"mousedown",(function(e){t._generateSearchComponentObj(e)}))}))},g._unbindMouseActionsToSuggestions=function(){var t=s(".as-search-suggestions");r.removeEventListener(t,"click",(function(t){g._omnitureAndRedirect(t)}))},g._highlightResult=function(t,e){var i=this,n=s(".as-search-suggestion.is-selected");n&&a.remove(n,"is-selected");var o=s('[data-keyboard-nav-index="'+t+'"]');if(o){var c=o.parentElement;a.add(c,"is-selected"),r.preventDefault(e),"mouseenter"!==e.type&&("suggested search"===o.attributes["data-analytics-resulttype"].value?i.searchInput.value=o.attributes["data-analytics-searchresult"].value:i.searchInput.value=i.payload.query)}},g._lowlightResult=function(){var t=s(".as-search-suggestion.is-selected");t&&a.remove(t,"is-selected")},g._getLocale=function(){return this.payload?this.payload.locale?this.payload.locale:"":"en_US"},g._initReset=function(){var t=this,e=s(".as-search-form-reset");r.addEventListener(e,"mousedown",(function(i){r.preventDefault(i),t._changeSubmitButtonState("disable"),t.searchInput.value="",t.searchInput.focus(),t._fetchSearchSuggestions(""),a.add(t.searchInput,"is-opened"),a.remove(e,"is-shown")}))},g._changeSubmitButtonState=function(t){var e=s(".as-search-form-submit");"disable"===t?(e.disabled=!0,e.style.opacity=".4",a.remove(e,"clickable")):(e.disabled=!1,e.style.opacity="1",a.add(e,"clickable"))},g._initFormEscape=function(){var t=s(".as-search-form-submit"),e=s("#as-search-form"),i=this;t&&(i._changeSubmitButtonState("disable"),r.addEventListener(t,"click",(function(t){r.preventDefault(t),i.searchInput.value.trim()&&(i._generateSearchComponentObj(t),e.submit())})))},g._generateSearchTermHighlightFunction=function(t){return c.registerHelper("searchTermHighlight",(function(e,i){var n=new RegExp(t,"i");if(void 0!==e){if(n.test(e)){var r=m.searchTermHighlightTemplateFn(n.exec(e)[0]);return e.replace(n,r.trim())}return e}})),!0},g._omnitureAndRedirect=function(t){r.stopPropagation(t),r.preventDefault(t);var e=r.target(t);if("as-search-no-results-hint"===e.className)return!1;"keydown"===t.type&&(null==(e=s('[data-keyboard-nav-index="'+g._currentKeyboardIndex+'"]'))&&t.keyCode===_.keys.RETURN&&s("#as-search-input").value.trim()&&s("#as-search-form").submit());if(e&&"span"!==e.localName&&"a"!==e.localName);else if(e&&"span"===e.localName&&(e=e.parentElement),e){var i,n=new Date,a=g._getLocale();e.getAttribute("data-analytics-resultpagetype")&&e.getAttribute("data-analytics-resultpagetype");n.setTime(n.getTime()+864e5);var c="acs::",l=";expires="+n.toGMTString(),u=encodeURIComponent(c+e.getAttribute("data-analytics-resulttype")+"::"+e.getAttribute("data-analytics-searchresult"));if(document.cookie="acs_prop7="+u+l+"; domain=apple.com; path=/","quicklink"===e.getAttribute("data-analytics-resulttype")&&(i=encodeURIComponent("acs::search result::"+e.getAttribute("data-analytics-resulttype")+"::"+g._determineResultsPageType(e.getAttribute("data-targeturl"))+"::"+e.getAttribute("data-analytics-resultposition")+"::"+a.toLowerCase()),document.cookie="acs_evar5="+i+l+"; domain=apple.com; path=/"),"suggested search"===e.getAttribute("data-analytics-resulttype")){var h=o('[data-analytics-resulttype="quicklink"]'),d=0;h&&(d=h.length);var p=parseInt(e.getAttribute("data-keyboard-nav-index"))+1-d,m=e.getAttribute("data-targeturl")+"&feedType=suggested&position="+p}else m=e.getAttribute("data-targeturl");return window.location=m,!0}},g._determineResultsPageType=function(t){if(void 0!==(t=t.toLowerCase()))return-1!==t.indexOf("support")?-1!==t.indexOf("/ht")?"kbase":"supportpage":-1!==t.indexOf("getsupport")||-1!==t.indexOf("selfsolve")?"selfsolve tool":-1!==t.indexOf("discussions")?"discussions":-1!==t.indexOf("tips")?"tips&tricks":-1!==t.indexOf("manuals")?"manuals":-1!==t.indexOf("shop")||-1!==t.indexOf("store")?"aos":-1!==t.indexOf("reportaproblem")?"report a problem":-1!==t.indexOf("apple.com")?"marcom":"others"},e.exports=v},{"../../utils/as-core":508,"../as-locale-mapping/as-locale-mapping":492,"./as-search-no-results-template.hbs":495,"./as-search-quicklinks-template.hbs":496,"./as-search-results-divider-space-template.hbs":497,"./as-search-searchterm-highlight-template.hbs":498,"./as-search-suggestions-template.hbs":499,"./as-search-toggle-classes":500,"@marcom/ac-ajax":40,"@marcom/ac-classlist":63,"@marcom/ac-dom-events":75,"@marcom/ac-dom-traversal/querySelector":113,"@marcom/ac-dom-traversal/querySelectorAll":114,"@marcom/ac-keyboard":162,"@marcom/function-utils/debounce":431,"hbsfy/runtime":477}],502:[function(t,e,i){"use strict";var n=t("@marcom/ac-films").create,r=t("@marcom/ac-object/create"),s=t("@marcom/ac-event-emitter").EventEmitter,o=t("@marcom/ac-dom-traversal"),a=t("@marcom/ac-dom-events/utils/addEventListener"),c=t("@marcom/useragent-detect"),l=t("@marcom/function-utils/debounce"),u={title:"",type:"",player:"",linkOwner:""};const h=c.os.ios;var d="",p=!1;const m="native_player",f="videoloaded",_="videoprogress",v="videoseeked",g="videocaptions",y="pipmode",b="videoclosed",w="videoended",E="pageload",k=window.location.origin;var x=null,S=document.querySelector('meta[name="o:token"]'),T=document.querySelector('meta[name="o:testid"]');const C="/etc/designs/support/publish/commons-sk7/ac-assets/ac-toolkit";var A=function(){this.init()};function O(){null===S&&null===T&&window.bindVideoEventListenersFn()}function L(){window.bindVideoEventListenersFn=function(){var t=o.querySelectorAll(".ac-films-modal-link"),e=k+C+"/ac-video";t.length>0&&t.forEach(((i,r)=>{var s=function(t,e){var i=e.querySelector(".as-thumbnail-image");return i&&i.children.length<1?i.style.backgroundImage.split(/"/)[1]:i&&i.children.length>0?i.querySelector("img").getAttribute("src"):t+"/images/poster/ac_video_poster_960x540.jpeg"}(e,i),o={modal:!0};o.poster=s,o.hlsUrl=e+"/libs/hls/hls.js",o.localizationBasePath=e+"/json/localization/",o.urlOptimizeHls=!0;var c=n([i],o).player;c.once("loadstart",D.bind(c)),c.on("loadeddata",F.bind(c)),c.on("ended",V.bind(c)),c.on("play",M.bind(c)),c.on("pause",I.bind(c)),h&&c.on("seeked",l(N.bind(c),1e3)),0===r&&setTimeout((()=>{return e=t,i={video:[]},Array.from(e).forEach((function(t){a(t,"click",P);var e=K(E,null,t);i.video.push(e.video[0])})),q(i),void(window._applemd&&(window._applemd.video=i.video));var e,i}),3e3)}))}}function P(){var t=o.querySelector(".ac-modal-video"),e=this.dataset,i=e.analyticsLinkComponent_name,n=e.analyticsLinkComponent_type,r=e.defaultPlayer;if(u.title=i,u.type=n,u.player=r,u.linkOwner="no",e.hasOwnProperty("linkOwner")&&(u.linkOwner=e.linkOwner),!t){u.player="web native";var s=K(m);h||q(s)}}function D(){var t=o.querySelector(".modal-open .modal-close"),e=o.querySelector(".modal-open .controls-progress-bar"),i=o.querySelector(".modal-open .controls-text-tracks-toggle-button"),n=o.querySelector(".modal-open .controls-picture-in-picture-button");null!==t&&t.addEventListener("click",H.bind(this)),null!==e&&e.addEventListener("click",j.bind(this)),null!==i&&i.addEventListener("click",U.bind(this)),null!==n&&n.addEventListener("click",B.bind(this))}function F(){clearInterval(d);var t,e,i=z(this),n="s:0-"+i.duration;q(K(f,n)),t=this,e=10*i.duration,d=setInterval(R.bind(t),e)}function M(){p=!1}function I(){z(this);p=!0}function R(){if(!p){var t=z(this),e=t.perView;if(x!==e&&(x=e,10===e||25===e||50===e||75===e)){var i="m:"+e+"-"+t.duration;q(K(_,i))}}}function N(){var t=z(this),e="sk:"+t.perView+"-"+t.duration;q(K(v,e))}function j(){var t=z(this),e="sk:"+t.perView+"-"+t.duration;q(K(v,e))}function U(){q(K(g,"cc"))}function B(){q(K(y,"fw"))}function V(){var t="e:100-"+z(this).duration;q(K(w,t))}function H(){clearInterval(d);var t=z(this),e="cl:"+t.perView+"-"+t.duration;q(K(b,e))}function z(t){var e=t.getDuration(),i=t.getCurrentTime(),n=Math.floor((i/e*100).toFixed(2));return{duration:Math.ceil(e),currentTime:i,perView:n}}function q(t){void 0===window.launchPageLevelTrackFn&&null===window.launchPageLevelTrackFn||window.launchPageLevelTrackFn(t,"video")}function K(t,e,i){var n,r={},s=o.querySelector(".ac-modal-video"),a=u.title.trim(),c=u.type,l=u.player,h="",d=(n=u).hasOwnProperty("linkOwner")&&"yes"===n.linkOwner?n.linkOwner:null;return"pageload"===t?(a=(i=i.dataset).analyticsLinkComponent_name.trim(),c="Video",l="marcom",s||(l="web native"),h="impression"):"native_player"===t?(l="web native",h="impression"):h="videocaptions"===t?"cc":"pipmode"===t?"fw":e,r.video=[{name:a,type:c,player:l,link_text:h}],r.hasOwnProperty("comp")&&delete r.comp,"yes"===d&&"videoloaded"===t&&(r.comp={link_owner:"ac_link"}),r}(A.prototype=r(s.prototype)).init=function(){a(window,"DOMContentLoaded",L.bind(this)),a(window,"load",O.bind(this))},e.exports=A},{"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-dom-traversal":99,"@marcom/ac-event-emitter":124,"@marcom/ac-films":134,"@marcom/ac-object/create":185,"@marcom/function-utils/debounce":431,"@marcom/useragent-detect":435}],503:[function(t,e,i){"use strict";t("hbsfy/runtime").registerPartial("as-common-loader",t("../../partials/as-common-loader.hbs"))},{"../../partials/as-common-loader.hbs":506,"hbsfy/runtime":477}],504:[function(t,e,i){"use strict";var n=t("@marcom/ac-dom-traversal/querySelector"),r=t("@marcom/ac-dom-traversal/lastChild"),s=t("@marcom/ac-classlist"),o=n(".main"),a=n("html");if(s.contains(a,"oldie")){var c=r(o);s.add(c,"as-last-child")}},{"@marcom/ac-classlist":63,"@marcom/ac-dom-traversal/lastChild":107,"@marcom/ac-dom-traversal/querySelector":113}],505:[function(t,e,i){"use strict";t("./utils/as-debug"),t("./utils/as-feature-detections");var n=t("@marcom/ac-dom-events/utils/addEventListener"),r=t("@marcom/ac-localnav/Localnav"),s=t("./common/as-search/as-search"),o=t("./common/as-expert-tips/as-expert-tips"),a=t("./common/as-dropdown/as-dropdown"),c=t("./common/as-qp/as-qp"),l=t("./utils/as-font-flicker"),u=t("./utils/as-core"),h=(t("./common/handlebars-helpers/handlebars-helpers"),t("./common/ie8-helpers/ie8-helpers"),t("./common/as-mailsettings/as-mailsettings")),d=t("./common/as-enterprise/as-enterprise"),p=t("./common/as-analytics/as-analytics.js"),m=t("./common/as-video/as-video.js"),f=t("@marcom/ac-footer/Footer"),_={expertTips:function(){return(new o).init()},qp:function(){new c},mailsettings:function(){new h},enterprise:function(){new d},searchBox:function(){return(new s).init()},aslocalNav:function(){var t=document.getElementById("as-localnav");t&&new r(t,{className:"as-localnav"})},asVideo:function(){new m},marcomFooter:function(t){var e=document.getElementById("ac-globalfooter");e&&new f(e)},initialize:function(){n(window,"DOMContentLoaded",v),this.searchBox(),this.expertTips(),this.qp(),this.mailsettings(),this.enterprise(),this.aslocalNav(),this.asVideo(),this.marcomFooter(),l(),n(window,"load",g);var t=new u;return n(window,"load",t.reFlowEachElement(["contentLink-image"])),this}};function v(){p.init()}function g(){a()}e.exports=_.initialize()},{"./common/as-analytics/as-analytics.js":484,"./common/as-dropdown/as-dropdown":486,"./common/as-enterprise/as-enterprise":487,"./common/as-expert-tips/as-expert-tips":490,"./common/as-mailsettings/as-mailsettings":493,"./common/as-qp/as-qp":494,"./common/as-search/as-search":501,"./common/as-video/as-video.js":502,"./common/handlebars-helpers/handlebars-helpers":503,"./common/ie8-helpers/ie8-helpers":504,"./utils/as-core":508,"./utils/as-debug":509,"./utils/as-feature-detections":510,"./utils/as-font-flicker":511,"@marcom/ac-dom-events/utils/addEventListener":82,"@marcom/ac-footer/Footer":146,"@marcom/ac-localnav/Localnav":170}],506:[function(t,e,i){var n=t("hbsfy/runtime");e.exports=n.template({compiler:[7,">= 4.0.0"],main:function(t,e,i,n,r){return'<div class="as-common-loader"></div>'},useData:!0})},{"hbsfy/runtime":477}],507:[function(t,e,i){"use strict";var n,r=t("@marcom/ac-classlist"),s=t("@marcom/ac-dom-traversal/querySelector"),o=t("./translations/content-status.json"),a=t("./svg/as-progress-indicator-svg");function c(t){var e=s("#"+t+" span");e&&(e.innerHTML=a,r.add(e,"as-button-loader"))}function l(t){var e=s("#"+t+" span.as-button-loader");e&&(r.remove(e,"as-button-loader"),e.innerHTML="")}function u(t){var e=s("#content-update");e&&(e.innerHTML=function(t,e){var i=o.en[e];o[t.locale]?i=o[t.locale][e]:o[t.lang]&&(i=o[t.lang][e]);return i}(t,"updating"),n&&clearTimeout(n),n=setTimeout((function(){h()}),2e3))}function h(){var t=s("#content-update");t&&(t.innerHTML="")}function d(){var t={locale:"",lang:""};return t.locale=void 0!==document.documentElement.lang?document.documentElement.lang:"en-US",t.lang=t.locale.split("-")[0]||"en",t}e.exports=function(){return{showSpinnerOnButton:c,hideSpinnerOnButton:l,includeContentUpdating:u,clearContentStatus:h,getLocale:d}}},{"./svg/as-progress-indicator-svg":513,"./translations/content-status.json":514,"@marcom/ac-classlist":63,"@marcom/ac-dom-traversal/querySelector":113}],508:[function(t,e,i){"use strict";function n(t){var e=[];if(!Array.isArray(t))return!1;t.forEach((function(t,i,n){var r=Array.prototype.slice.call(document.getElementsByClassName(t));Array.isArray(r)?r.forEach((function(t,i,n){e.push((function(){"IMG"===t.nodeName?t.setAttribute("src",t.getAttribute("src")):t.outerHTML=t.outerHTML}))})):r.outerHTML=r.outerHTML})),window.onresize=function(){e.forEach((function(t,e,i){t.apply()}))}}function r(){for(var t={},e=window.location.search.substring(1).split("&"),i=0;i<e.length;i++){var n=e[i].split("=");if(void 0===t[n[0]])t[n[0]]=decodeURIComponent(n[1]);else if("string"==typeof t[n[0]]){var r=[t[n[0]],decodeURIComponent(n[1])];t[n[0]]=r}else t[n[0]].push(decodeURIComponent(n[1]))}return t}function s(t,e){var i=!1,n=!0,r=t.document,s=r.documentElement,o=r.addEventListener,a=o?"addEventListener":"attachEvent",c=o?"removeEventListener":"detachEvent",l=o?"":"on",u=function n(s){"readystatechange"==s.type&&"complete"!=r.readyState||(("load"==s.type?t:r)[c](l+s.type,n,!1),!i&&(i=!0)&&e.call(t,s.type||s))};if("complete"==r.readyState)e.call(t,"lazy");else{if(!o&&s.doScroll){try{n=!t.frameElement}catch(t){}n&&function t(){try{s.doScroll("left")}catch(e){return void setTimeout(t,50)}u("poll")}()}r[a](l+"DOMContentLoaded",u,!1),r[a](l+"readystatechange",u,!1),t[a](l+"load",u,!1)}}e.exports=function(){return{getQueryString:r,documentReady:s,reFlowEachElement:n,keys:{ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACE:32,BACKSPACE:8,DELETE:46,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,MAC_CMD_LEFT:91,MAC_CMD_RIGHT:93,MAC_CMD_FIREFOX:224,WINDOWS_KEY:91}}}},{}],509:[function(t,e,i){"use strict";var n,r=new(t("./as-core")),s=window.asApp||{};e.exports=void 0===s.pageProps||s.pageProps.isProd?null:(n=r.getQueryString().env||s.pageProps.environment,void(s.hasOwnProperty("pageProps")&&"prod"===n&&(s.pageProps.environment=n,console.log("modified pageProps"),console.log(s))))},{"./as-core":508}],510:[function(t,e,i){"use strict";var n=t("@marcom/ac-headjs");n.addTests({flex:function(){var t=document.documentElement.style;if("flexWrap"in t||"WebkitFlexWrap"in t||"msFlexWrap"in t)return!0}}),e.exports=n.htmlClass()},{"@marcom/ac-headjs":159}],511:[function(t,e,i){"use strict";var n=t("@marcom/ac-browser"),r=t("@marcom/ac-classlist"),s=t("./fonts/font-mapping.json"),o=t("@marcom/ac-object/isEmpty");e.exports=function(){var t,e=document.getElementsByTagName("html")[0];("Safari"===n.name||"Safari Mobile"===n.name)&&n.version>=10?(t=function(){var t,i=e.lang?e.lang.toLowerCase():"en",n=["ar","en","jp","ko","th","zh-cn","zh-hk","zh-mo","zh-tw"];if(i=n.indexOf(i)>0||n.indexOf(i.split("-")[0])>0?i:"en",t=i.split("-")[0]||"en",s&&!o(s))for(var r in s)if(r===i||r===t)return s[r]}(),new FontFace("MyWebFont","url("+t.woff2+") format('woff2'), url("+t.woff+") format('woff')").load().then((function(t){r.add(e,"as-loaded")}))):r.add(e,"as-loaded")}},{"./fonts/font-mapping.json":512,"@marcom/ac-browser":52,"@marcom/ac-classlist":63,"@marcom/ac-object/isEmpty":190}],512:[function(t,e,i){e.exports={ar:{woff:"https://www.apple.com/wss/fonts/SF-Pro-AR/v1/SFProAR_semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-AR/v1/SFProAR_semibold.woff2"},en:{woff:"https://www.apple.com/wss/fonts/SF-Pro-Display/v3/sf-pro-display_semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-Display/v3/sf-pro-display_semibold.woff2"},jp:{woff:"https://www.apple.com/wss/fonts/SF-Pro-JP/v1/SFProJP_semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-JP/v1/SFProJP_semibold.woff2"},ko:{woff:"https://www.apple.com/wss/fonts/SF-Pro-KR/v2/SFProKRDisplay_semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-KR/v2/SFProKRDisplay_semibold.woff2"},th:{woff:"https://www.apple.com/wss/fonts/SF-Pro-TH/v2/SFProTHDisplay_semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-TH/v2/SFProTHDisplay_semibold.woff2"},"zh-cn":{woff:"https://www.apple.com.cn/wss/fonts/SF-Pro-SC/v1/PingFangSC-Semibold.woff",woff2:"https://www.apple.com.cn/wss/fonts/SF-Pro-SC/v1/PingFangSC-Semibold.woff2"},"zh-hk":{woff:"https://www.apple.com/wss/fonts/SF-Pro-HK/v1/PingFangHK-Semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-HK/v1/PingFangHK-Semibold.woff2"},"zh-mo":{woff:"https://www.apple.com/wss/fonts/SF-Pro-TC/v1/PingFangTC-Semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-TC/v1/PingFangTC-Semibold.woff2"},"zh-tw":{woff:"https://www.apple.com/wss/fonts/SF-Pro-TC/v1/PingFangTC-Semibold.woff",woff2:"https://www.apple.com/wss/fonts/SF-Pro-TC/v1/PingFangTC-Semibold.woff2"}}},{}],513:[function(t,e,i){"use strict";e.exports='<svg class="progress-indicator-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" aria-hidden="true"> <g class="progress-indicator-spokes"> <path class="progress-indicator-spoke" d="M28,8.5A2.5,2.5,0,0,1,30.5,11v7a2.5,2.5,0,0,1-5,0V11A2.5,2.5,0,0,1,28,8.5Z" ></path> <path class="progress-indicator-spoke" d="M41.79,14.21a2.52,2.52,0,0,1,0,3.54L36.84,22.7a2.5,2.5,0,0,1-3.54-3.54l5-4.95A2.52,2.52,0,0,1,41.79,14.21Z" ></path> <path class="progress-indicator-spoke" d="M47.5,28A2.5,2.5,0,0,1,45,30.5H38a2.5,2.5,0,0,1,0-5h7A2.5,2.5,0,0,1,47.5,28Z" ></path> <path class="progress-indicator-spoke" d="M41.79,41.79a2.52,2.52,0,0,1-3.54,0l-5-4.95a2.5,2.5,0,0,1,3.54-3.54l4.95,5A2.52,2.52,0,0,1,41.79,41.79Z" ></path> <path class="progress-indicator-spoke" d="M28,47.5A2.5,2.5,0,0,1,25.5,45V38a2.5,2.5,0,0,1,5,0v7A2.5,2.5,0,0,1,28,47.5Z" ></path> <path class="progress-indicator-spoke" d="M14.21,41.79a2.52,2.52,0,0,1,0-3.54l4.95-5a2.5,2.5,0,0,1,3.54,3.54l-4.95,4.95A2.52,2.52,0,0,1,14.21,41.79Z" ></path> <path class="progress-indicator-spoke" d="M8.5,28A2.5,2.5,0,0,1,11,25.5h7a2.5,2.5,0,0,1,0,5H11A2.5,2.5,0,0,1,8.5,28Z" ></path> <path class="progress-indicator-spoke" d="M14.21,14.21a2.52,2.52,0,0,1,3.54,0l4.95,4.95a2.5,2.5,0,0,1-3.54,3.54l-4.95-4.95A2.52,2.52,0,0,1,14.21,14.21Z" ></path> </g></svg>'},{}],514:[function(t,e,i){e.exports={ar:{updating:"تØديث المØتوى",updated:"تم تØديث المØتوى"},bg:{updating:"Ðктуализиране на Ñъдържанието",updated:"Съдържанието е актуализирано"},cs:{updating:"ProbÃhá aktualizace obsahu",updated:"Obsah byl aktualizován"},da:{updating:"Indholdet opdateres",updated:"Indholdet er opdateret"},de:{updating:"Inhalt wird aktualisiert",updated:"Inhalt wurde aktualisiert"},el:{updating:"Γίνεται ενημÎÏωση πεÏιεχομÎνου",updated:"Το πεÏιεχόμενο ενημεÏώθηκε"},en:{updating:"Content updating",updated:"Content updated"},es:{updating:"Actualización de contenido",updated:"Contenido actualizado"},"es-CL":{updating:"Actualizando contenido",updated:"Contenido actualizado"},"es-CO":{updating:"Actualizando contenido",updated:"Contenido actualizado"},"es-ET":{updating:"Sisu värskendamine",updated:"Sisu värskendatud"},"es-MX":{updating:"Actualizando contenido",updated:"Contenido actualizado"},fi:{updating:"Sisältöä päivitetään",updated:"Sisältö päivitetty"},fr:{updating:"Mise à jour du contenu",updated:"Contenu mis à jour"},hr:{updating:"Sadržaj se ažurira",updated:"Sadržaj ažuriran"},hu:{updating:"Tartalom frissÃtése",updated:"Tartalom frissÃtve"},id:{updating:"Konten yang sedang diperbarui",updated:"Konten yang telah diperbarui"},it:{updating:"Aggiornamento del contenuto",updated:"Contenuto aggiornato"},ja:{updating:"コンテンツを更新ã—ã¦ã„ã¾ã™",updated:"コンテンツãŒæ›´æ–°ã•ã‚Œã¾ã—ãŸ"},ko:{updating:"콘í…ì¸ ì—…ë°ì´íŠ¸ 중",updated:"콘í…ì¸ ì—…ë°ì´íŠ¸ë¨"},lt:{updating:"Turinys naujinamas",updated:"Turinys atnaujintas"},lv:{updating:"Atjaunina saturu",updated:"Saturs atjauninÄts"},nl:{updating:"Inhoud wordt bijgewerkt",updated:"Inhoud is bijgewerkt"},no:{updating:"Innhold oppdateres",updated:"Innhold oppdatert"},pl:{updating:"Uaktualnianie zawartoÅ›ci",updated:"Zawartość uaktualniona"},"pt-BR":{updating:"Atualizando conteúdo",updated:"Conteúdo atualizado"},"pt-PT":{updating:"Conteúdos em atualização",updated:"Conteúdos atualizados"},ro:{updating:"ConÈ›inutul este în curs de actualizare",updated:"ConÈ›inutul a fost actualizat"},ru:{updating:"Содержимое обновлÑетÑÑ",updated:"Содержимое обновлено"},sk:{updating:"Obsah sa aktualizuje",updated:"Obsah sa aktualizoval"},sl:{updating:"Posodabljanje vsebine",updated:"Vsebina je posodobljena"},sv:{updating:"InnehÃ¥llet uppdateras",updated:"InnehÃ¥llet uppdaterat"},th:{updating:"à¸à¸²à¸£à¸à¸±à¸žà¹€à¸”ทคà¸à¸™à¹€à¸—นต์",updated:"à¸à¸±à¸žà¹€à¸”ทคà¸à¸™à¹€à¸—นต์à¹à¸¥à¹‰à¸§"},tr:{updating:"İçerik güncelleniyor",updated:"İçerik güncellendi"},vi:{updating:"Äang cáºp nháºt ná»™i dung",updated:"Äã cáºp nháºt ná»™i dung"},"zh-CN":{updating:"内容更新ä¸",updated:"内容已更新"},"zh-HK":{updating:"æ£åœ¨æ›´æ–°å…§å®¹",updated:"已更新內容"},"zh-MO":{updating:"æ£åœ¨æ›´æ–°å…§å®¹",updated:"已更新內容"},"zh-TW":{updating:"內容更新ä¸",updated:"內容已更新"}}},{}]},{},[505]);
</pre></body></html>