!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=35)}([function(t,e,n){var r=n(28)("wks"),o=n(16),i=n(1).Symbol,A="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=A&&i[t]||(A?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(9),o=n(24);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(10);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(2),i=n(7),A=n(16)("src"),a=Function.toString,c=(""+a).split("toString");n(4).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,A)||o(n,A,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[A]||a.call(this)})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e,n){var r=n(3),o=n(37),i=n(38),A=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(1),o=n(4),i=n(2),A=n(6),a=n(11),c=function(t,e,n){var u,s,l,f,d=t&c.F,p=t&c.G,h=t&c.S,v=t&c.P,y=t&c.B,m=p?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,g=p?o:o[e]||(o[e]={}),b=g.prototype||(g.prototype={});p&&(n=e);for(u in n)s=!d&&m&&void 0!==m[u],l=(s?m:n)[u],f=y&&s?a(l,r):v&&"function"==typeof l?a(Function.call,l):l,m&&A(m,u,l,t&c.U),g[u]!=l&&i(g,u,f),v&&b[u]!=l&&(b[u]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(10),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(26),o=n(19);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(28)("keys"),o=n(16);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(12),o=n(0)("toStringTag"),i="Arguments"==r(function(){return arguments}()),A=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=A(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(9).f,o=n(7),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(40),o=n(29);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(12);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(32),o=n(13),i=n(6),A=n(2),a=n(7),c=n(8),u=n(49),s=n(23),l=n(52),f=n(0)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,h,v,y,m){u(n,e,h);var g,b,w,_=function(t){if(!d&&t in I)return I[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",P="values"==v,O=!1,I=t.prototype,x=I[f]||I["@@iterator"]||v&&I[v],j=x||_(v),T=v?P?_("entries"):j:void 0,S="Array"==e?I.entries||x:x;if(S&&(w=l(S.call(new t)))!==Object.prototype&&(s(w,E,!0),r||a(w,f)||A(w,f,p)),P&&x&&"values"!==x.name&&(O=!0,j=function(){return x.call(this)}),r&&!m||!d&&!O&&I[f]||A(I,f,j),c[e]=j,c[E]=p,v)if(g={values:P?j:_("values"),keys:y?j:_("keys"),entries:T},m)for(b in g)b in I||i(I,b,g[b]);else o(o.P+o.F*(d||O),e,g);return g}},function(t,e){t.exports=!1},function(t,e,n){t.exports=n(1).document&&document.documentElement},function(t,e,n){var r,o,i,A=n(11),a=n(64),c=n(33),u=n(15),s=n(1),l=s.process,f=s.setImmediate,d=s.clearImmediate,p=s.MessageChannel,h=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},m=function(t){y.call(t.data)};f&&d||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++h]=function(){a("function"==typeof t?t:Function(t),e)},r(h),h},d=function(t){delete v[t]},"process"==n(12)(l)?r=function(t){l.nextTick(A(y,t,1))}:p?(o=new p,i=o.port2,o.port1.onmessage=m,r=A(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):r="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(A(y,t,1),0)}),t.exports={set:f,clear:d}},function(t,e,n){n(36),n(45),n(69),t.exports=n(70)},function(t,e,n){var r=n(13);r(r.S+r.F,"Object",{assign:n(39)})},function(t,e,n){t.exports=!n(5)&&!n(14)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(25),o=n(43),i=n(44),A=n(30),a=n(26),c=Object.assign;t.exports=!c||n(14)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=A(t),c=arguments.length,u=1,s=o.f,l=i.f;c>u;)for(var f,d=a(arguments[u++]),p=s?r(d).concat(s(d)):r(d),h=p.length,v=0;h>v;)l.call(d,f=p[v++])&&(n[f]=d[f]);return n}:c},function(t,e,n){var r=n(7),o=n(18),i=n(41)(!1),A=n(21)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,u=[];for(n in a)n!=A&&r(a,n)&&u.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var r=n(18),o=n(27),i=n(42);t.exports=function(t){return function(e,n,A){var a,c=r(e),u=o(c.length),s=i(A,u);if(t&&n!=n){for(;u>s;)if((a=c[s++])!=a)return!0}else for(;u>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){n(46),n(47),n(53),n(57),t.exports=n(4).Promise},function(t,e,n){"use strict";var r=n(22),o={};o[n(0)("toStringTag")]="z",o+""!="[object z]"&&n(6)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){"use strict";var r=n(48)(!0);n(31)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(20),o=n(19);t.exports=function(t){return function(e,n){var i,A,a=String(o(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===u||(A=a.charCodeAt(c+1))<56320||A>57343?t?a.charAt(c):i:t?a.slice(c,c+2):A-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(50),o=n(24),i=n(23),A={};n(2)(A,n(0)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(A,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(51),i=n(29),A=n(21)("IE_PROTO"),a=function(){},c=function(){var t,e=n(15)("iframe"),r=i.length;for(e.style.display="none",n(33).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[A]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(9),o=n(3),i=n(25);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,A=i(e),a=A.length,c=0;a>c;)r.f(t,n=A[c++],e[n]);return t}},function(t,e,n){var r=n(7),o=n(30),i=n(21)("IE_PROTO"),A=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?A:null}},function(t,e,n){for(var r=n(54),o=n(6),i=n(1),A=n(2),a=n(8),c=n(0),u=c("iterator"),s=c("toStringTag"),l=a.Array,f=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;d<5;d++){var p,h=f[d],v=i[h],y=v&&v.prototype;if(y){y[u]||A(y,u,l),y[s]||A(y,s,h),a[h]=l;for(p in r)y[p]||o(y,p,r[p],!0)}}},function(t,e,n){"use strict";var r=n(55),o=n(56),i=n(8),A=n(18);t.exports=n(31)(Array,"Array",function(t,e){this._t=A(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(0)("unscopables"),o=Array.prototype;void 0==o[r]&&n(2)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,o,i,A=n(32),a=n(1),c=n(11),u=n(22),s=n(13),l=n(10),f=n(17),d=n(58),p=n(59),h=n(63),v=n(34).set,y=n(65)(),m=a.TypeError,g=a.process,b=a.Promise,g=a.process,w="process"==u(g),_=function(){},E=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(0)("species")]=function(t){t(_,_)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(_)instanceof e}catch(t){}}(),P=function(t,e){return t===e||t===b&&e===i},O=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},I=function(t){return P(b,t)?new x(t):new o(t)},x=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw m("Bad Promise constructor");e=t,n=r}),this.resolve=f(e),this.reject=f(n)},j=function(t){try{t()}catch(t){return{error:t}}},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,A=o?e.ok:e.fail,a=e.resolve,c=e.reject,u=e.domain;try{A?(o||(2==t._h&&C(t),t._h=1),!0===A?n=r:(u&&u.enter(),n=A(r),u&&u.exit()),n===e.promise?c(m("Promise-chain cycle")):(i=O(n))?i.call(n,a,c):a(n)):c(r)}catch(t){c(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&S(t)})}},S=function(t){v.call(a,function(){var e,n,r,o=t._v;if(R(t)&&(e=j(function(){w?g.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=w||R(t)?2:1),t._a=void 0,e)throw e.error})},R=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!R(e.promise))return!1;return!0},C=function(t){v.call(a,function(){var e;w?g.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},k=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},M=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw m("Promise can't be resolved itself");(e=O(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(M,r,1),c(k,r,1))}catch(t){k.call(r,t)}}):(n._v=t,n._s=1,T(n,!1))}catch(t){k.call({_w:n,_d:!1},t)}}};E||(b=function(t){d(this,b,"Promise","_h"),f(t),r.call(this);try{t(c(M,this,1),c(k,this,1))}catch(t){k.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(66)(b.prototype,{then:function(t,e){var n=I(h(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=w?g.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),x=function(){var t=new r;this.promise=t,this.resolve=c(M,t,1),this.reject=c(k,t,1)}),s(s.G+s.W+s.F*!E,{Promise:b}),n(23)(b,"Promise"),n(67)("Promise"),i=n(4).Promise,s(s.S+s.F*!E,"Promise",{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),s(s.S+s.F*(A||!E),"Promise",{resolve:function(t){if(t instanceof b&&P(t.constructor,this))return t;var e=I(this);return(0,e.resolve)(t),e.promise}}),s(s.S+s.F*!(E&&n(68)(function(t){b.all(t).catch(_)})),"Promise",{all:function(t){var e=this,n=I(e),r=n.resolve,o=n.reject,i=j(function(){var n=[],i=0,A=1;p(t,!1,function(t){var a=i++,c=!1;n.push(void 0),A++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--A||r(n))},o)}),--A||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=I(e),r=n.reject,o=j(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11),o=n(60),i=n(61),A=n(3),a=n(27),c=n(62),u={},s={},e=t.exports=function(t,e,n,l,f){var d,p,h,v,y=f?function(){return t}:c(t),m=r(n,l,e?2:1),g=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=a(t.length);d>g;g++)if((v=e?m(A(p=t[g])[0],p[1]):m(t[g]))===u||v===s)return v}else for(h=y.call(t);!(p=h.next()).done;)if((v=o(h,m,p.value,e))===u||v===s)return v};e.BREAK=u,e.RETURN=s},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(8),o=n(0)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(22),o=n(0)("iterator"),i=n(8);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(3),o=n(17),i=n(0)("species");t.exports=function(t,e){var n,A=r(t).constructor;return void 0===A||void 0==(n=r(A)[i])?e:o(n)}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1),o=n(34).set,i=r.MutationObserver||r.WebKitMutationObserver,A=r.process,a=r.Promise,c="process"==n(12)(A);t.exports=function(){var t,e,n,u=function(){var r,o;for(c&&(r=A.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){A.nextTick(u)};else if(i){var s=!0,l=document.createTextNode("");new i(u).observe(l,{characterData:!0}),n=function(){l.data=s=!s}}else if(a&&a.resolve){var f=a.resolve();n=function(){f.then(u)}}else n=function(){o.call(r,u)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(6);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(1),o=n(9),i=n(5),A=n(0)("species");t.exports=function(t){var e=r[t];i&&e&&!e[A]&&o.f(e,A,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(0)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],A=i[r]();A.next=function(){return{done:n=!0}},i[r]=function(){return A},t(i)}catch(t){}return n}},function(t,e){!function(t,e){"use strict";function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||s(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?o/n:this.isIntersecting?1:0}function r(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function o(){return t.performance&&performance.now&&performance.now()}function i(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}function A(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t,e){var n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),i=Math.min(t.right,e.right),A=i-o,a=r-n;return A>=0&&a>=0&&{top:n,bottom:r,left:o,right:i,width:A,height:a}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):s()}function s(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t,e){for(var n=e;n;){if(n==t)return!0;n=f(n)}return!1}function f(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)return void("isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var d=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},r.prototype._parseRootMargin=function(t){var e=t||"0px",n=e.split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(A(t,"resize",this._checkForIntersections,!0),A(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():s();this._observationTargets.forEach(function(r){var i=r.element,A=u(i),a=this._rootContainsTarget(i),c=r.entry,s=t&&a&&this._computeTargetAndRootIntersection(i,e),l=r.entry=new n({time:o(),target:i,boundingClientRect:A,rootBounds:e,intersectionRect:s});c?t&&a?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=t.getComputedStyle(n).display){for(var o=u(n),i=o,A=f(n),a=!1;!a;){var s=null,l=1==A.nodeType?t.getComputedStyle(A):{};if("none"==l.display)return;if(A==this.root||A==e?(a=!0,s=r):A!=e.body&&A!=e.documentElement&&"visible"!=l.overflow&&(s=u(A)),s&&!(i=c(s,i)))break;A=f(A)}return i}},r.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||l(e,this.root)},r.prototype._rootContainsTarget=function(t){return l(this.root||e,t)},r.prototype._registerInstance=function(){d.indexOf(this)<0&&d.push(this)},r.prototype._unregisterInstance=function(){var t=d.indexOf(this);-1!=t&&d.splice(t,1)},t.IntersectionObserver=r,t.IntersectionObserverEntry=n}(window,document)},function(t,e,n){"use strict";function r(t,e){var n=o(),r=i(t,e);return r.appendChild(n),{iframe:n,wrapper:r}}function o(){var t=document.createElement("iframe");return A(t,Ct),t.frameBorder="0",t.scrolling="no",t.setAttribute("allowfullscreen",!0),t.setAttribute("msallowfullscreen",!0),t.setAttribute("allowtransparency",!0),t.setAttribute("title","Video Player"),t}function i(t,e){var n=document.createElement("div");return A(n,Rt(e)),n.classList.add(kt),n.id=t,n}function A(t,e){t.setAttribute("style",Object.keys(e).map(function(t){return t+":"+e[t]}).join(";")+";")}function a(t){return function(e){var n=e.canAutoplay,r=e.guid,o=e.rawConfig,i=e.secret,A=e.showPlaylistBar,a=e.wrapper,c=JSON.parse(o);return A&&!c.playerConfig.has_playlist&&(console.warn("CNE Player: invalid playlist id."),a.style.height="0px"),c.environment&&(c.environment.guid=r,c.environment.secret=i,c.environment.canAutoplay=n),t._cne.createPlayer(c)}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.curriedBuildPlayer,n=void 0===e?a:e,r=t.target,o=void 0===r?Mt:r;t.injectTestEnvironment;return'\n<!DOCTYPE html>\n<html class="embed-html">\n  <head>\n    \n    \n    <script>\n    (function() {\n      window._buildPlayer = ('+n+")(window);\n      "+(window._CNE_AD_FIXTURE_?"window._CNE_AD_FIXTURE_ = '"+window._CNE_AD_FIXTURE_+"';":"")+'\n    })();\n    <\/script>\n  </head>\n  <body class="embed-body">\n    <div id="embed-container">\n      <div id="'+o+'"></div>\n    </div>\n  </body>\n</html>\n  '}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.escape,r=void 0===n||n,o=e.removeNull,i=void 0===o||o,A=r?encodeURIComponent:function(t){return t};return Object.keys(t).map(function(e){return i&&null==t[e]?null:A(e)+"="+A(t[e])}).filter(Boolean).join("&")}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("&").reduce(function(t,e){var n=e.split("="),r=Lt(n,2),o=r[0],i=r[1],A=void 0===i?"":i;return o?Object.assign(t,u({},decodeURIComponent(o),decodeURIComponent(A))):t},{})}function f(t){switch(t){case"1":case"true":return!0;case"0":case"false":return!1;default:return t}}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=t.type,n=t.category,r=t.message,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Dt(o),A=Bt(i,2),a=A[0],c=A[1];return{_ts:(new Date).toISOString(),_c:n,_t:e,cId:a,dim1:Ut(c),dim3:r}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(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}function y(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)}function m(t){var e=t.doc,n=void 0===e?document:e,r=t.target,o=t.template,i=n.getElementById(r);i&&(i.style.background="black",i.style.height="100%",i.style.overflow="hidden",i.style.padding="calc("+Qt/2+"% - "+Ht/2+"px) 0px",i.style.width="100%",i.innerHTML=o)}function g(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gt)(e),console.error("CNE Player: "+t,e,"errorData =>",e.data)}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt;return'\n<div class="cne-error-message" style="color:white;font:'+Ht+"px/"+Ht+'px \'Open Sans\', sans-serif;text-align:center;height:100%;width:100%;" aria-live="polite">\n  <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />\n  <h2>'+t+"</h2>\n</div>"}function w(t){return qt({},t,{secret:null,player:null})}function _(t){return qt({},t,{win:null})}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.buildEmbed,o=void 0===n?r:n,i=e.iframeTemplate,A=void 0===i?c:i;return new Promise(function(e){var n=t.guid,r=t.initialPlayerConfig;r=void 0===r?{}:r;var i=r.showPlaylistBar,a=t.script,c=o(n,i),u=c.iframe,s=c.wrapper,l=A();a.parentNode.insertBefore(s,a),u.onload=function(){return e($t({},t,{iframe:u,win:u.contentWindow,wrapper:s}))};var f=u.contentDocument;f.open(),f.write(l),f.close()}).catch(function(e){throw new Yt(e.message,{params:t,originalError:e})})}function P(t){var e=t.coordinator,n=t.guid,r=t.iframe,o=t.player,i=r.contentWindow,A=function t(){e.removePlayer(n),o.dispose(!0),i.removeEventListener("unload",t)};i.addEventListener("unload",A)}function O(t){var e=t.split(Kt),n=Jt(e,2),r=n[0];return n[1]||r}function I(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t){function e(t,e,n){var r=s,o=r.url;t._overrideAutoplay({override:n,url:o},e)}function n(n){s={guid:n,url:O(t.location.href)},c[n].setAttribute(ee,1),A(function(t,r){r!==n&&(c[r].removeAttribute(ee),t.pause(),t._requestCancelPersist(),e(t,u[r],!0))})}function r(t){c[t].removeAttribute(ee),s.guid===t&&(delete s.guid,A(function(n,r){r!==t&&e(n,u[r],!1)}))}function o(t){var e=a[t];e.isInterlude()&&f.disposePlayer(e)}function i(t){s.guid===t&&r(t),f&&o(t),delete c[t],delete u[t],delete a[t]}function A(t){Object.keys(a).forEach(function(e){t(a[e],e)})}var a={},c={},u={},s={url:O(t.location.href)},l=!1,f=void 0;return{PlayerCoordinator:function(){function t(e,n){x(this,t),l=e||!1,f=n.interludeCoordinator}return te(t,[{key:"addPlayer",value:function(t){var o=t.player,A=t.guid,l=t.secret,f=t.iframe;if(!A)return void console.error("No guid for playerCoordinator#addPlayer. Cannot add player!");a[A]=o,c[A]=f,u[A]=l,P({coordinator:this,guid:A,iframe:f,player:o}),s.guid&&(o.pause(),e(o,l,!0)),o.on(["_coordinator:play"],function(){return n(A)}),o.on(["_coordinator:pause"],function(){return r(A)}),o.on("dispose",function(){return i(A)})}},{key:"getPlayer",value:function(t){return console.warn("CNE Player: getPlayer will be removed in future releases."),a[t]}},{key:"removePlayer",value:function(t){i(t)}},{key:"setInterludeCoordinator",value:function(t){f=t}},{key:"currentVideoIds",value:function(){return Object.keys(a).reduce(function(t,e){var n=a[e],r=n.currentVideo()||{},o=r.id;return o?[].concat(I(t),[o]):t},[])}},{key:"canAutoplay",value:function(){return l}}]),t}(),players:a}}function T(){if(void 0===ne)try{ne=!!window.top.location.href&&"function"==typeof window.top.addEventListener}catch(t){ne=!1}return ne}function S(){return T()?window.top:window}function R(t){var e=t.windowCne,n=t.canAutoplay,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S();if(!e.playerCoordinator){var o=j(r),i=o.PlayerCoordinator,A=(o.players,new i(n,e));e.playerCoordinator=A}return e.playerCoordinator}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wt;e.body&&re.test(e.readyState)?t():(n({category:"sanity",message:"Waiting for document.ready: "+e.readyState+"; body: "+!!e.body,type:"callOnDomReady"}),e.addEventListener("DOMContentLoaded",t))}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;null!=e&&"function"==typeof e.mark&&e.mark(t)}function M(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.buildPlayerCoordinator,r=void 0===n?R:n,o=e.callOnDomReady,i=void 0===o?C:o,A=e.markPerformance,a=void 0===A?k:A;return new Promise(function(e){var n=t.canAutoplay,o=t.config,A=t.guid,c=t.iframe,u=t.secret,s=t.showPlaylistBar,l=t.windowCne,f=t.wrapper;a("loaderjs_assets_loaded"),i(function(){var i=c.contentWindow._buildPlayer({canAutoplay:n,guid:A,rawConfig:JSON.stringify(o),secret:u,showPlaylistBar:s,wrapper:f});r({windowCne:l,canAutoplay:n}).addPlayer({player:i,guid:A,secret:u,iframe:c}),e(ie({},t,{player:i}))})}).catch(function(e){throw new Yt(e.message,{params:t,originalError:e,render:!0})})}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B(t){return new Promise(function(e,n){var r=new XMLHttpRequest,o=function(){return n(new TypeError("Network request failed"))},i=function(){var t={status:r.status,statusText:r.statusText,url:r.responseURL},n="response"in r?r.response:r.responseText;e(new ae(n,t))};r.onload=i,r.onerror=o,r.ontimeout=o,r.open("GET",t),r.send()})}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.fetch||B,n=t.requestUrl;return e(n).then(function(t){if(t.ok)return t.json();var e=t.status,r=t.statusText;return t.json().then(function(t){throw new Xt("API ERROR: "+e+" ("+r+") response to "+n,{json:t,requestUrl:n})})})}function F(t,e,n){t.cnsInfo=t.cnsInfo||[],t.cnsInfo.push=function(r){t.cnsInfo[0]=r,fetch(e+"/next_video/"+r.sponsoredVideoId).then(function(t){return t.json()}).then(n).catch(function(t){var e=t.message;console.warn("PLAYER: error fetching cnsInfo:",e),Wt({type:"Fetch Error (Push)",category:"Video Injection",message:e})})}}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.fetch,n=t.apiUrl,r=t.initialPlayerConfig,o=t.windowCne,i=r.playlistId,A=o.cnsInfo,a=void 0===A?{}:A,c=a[0]||{},u=c.sponsoredVideoId;return new Promise(function(r){return i?u?(console.warn("PLAYER found initial sponsored video"),Wt({type:"Id Present",category:"Video Injection"},t),e(n+"/next_video/"+u).then(function(t){return t.json()}).then(function(t){var e=t.video;return r(e)}).catch(function(e){console.warn("Error fetching sponsoredVideoOverride:",e.message),Wt({type:"Fetch Error (Initial)",category:"Video Injection"},t),r(null)})):(F(o,n,function(e){var n=e.video;console.warn("PLAYER putting sponsored video on window"),Wt({type:"Push Received (Embed)",category:"Video Injection"},t),window.top._cne.sponsoredVideo=n}),void r(null)):void r(null)})}function D(t){return new Promise(function(e){e(ce({},t,{configPromise:function(){return Promise.all([N(t),U(t)]).then(function(t){var e=ue(t,2),n=e[0],r=e[1];return ce({},n,{sponsoredVideo:r})})}}))})}function V(t,e){return e+'script[src*="'+t+'"]:not(.'+se+")"}function W(t,e){for(var n=t.fallbackMatcher,r=t.matcher,o=t.node,i=void 0===o?document:o,A=t.tester,a=V(r,e)+(n?", "+V(n,e):""),c=i.querySelectorAll(a),u=0,s=c.length;u<s;u++){var l=c[u];if(A.test(l.src))return l}return null}function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:se;return t.classList.add(e),t}function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.findNextAvailableScriptTag,r=void 0===n?W:n,o=e.markProcessed,i=void 0===o?G:o,A=e.track;return z(t,{findNextAvailableScriptTag:r,markProcessed:i,track:void 0===A?Wt:A}).then(function(e){return le({},t,{script:e,src:e.src})}).catch(function(e){throw new Yt(e.message,{params:t,originalError:e})})}function z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.findNextAvailableScriptTag,r=e.markProcessed,o=e.track,i=t.SCRIPT_EMBED?"body ":"";return new Promise(function(e,r){var A=n(t,i);A?e(A):setTimeout(function(){var A=n(t,i);A?(o({category:"sanity",message:"Player script found on second attempt.",type:"findScript"},t),e(A)):r(new Error("Unable to locate player script tag."))},0)}).then(r)}function H(){return fe()+fe()+"-"+fe()+"-"+fe()+"-"+fe()+"-"+fe()+fe()+fe()}function Q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y(t){var e="((?:video|playlist))",n="([\\da-f]{24})",r="(?:\\.js)?(?:/)?\\??([^#]*)";switch(t){case"modern":return new RegExp("//.*/((?:script|inline|iframe))/"+e+"/"+n+r);case"deprecated":return new RegExp("//.*/(embed(?:js)?)/"+n+"/"+e+"/"+n+r);case"OLD":return new RegExp("//.*/(embed(?:js)?)/"+n+"/"+n+r)}}function X(t,e){var n=t.match(Y("OLD"))||[],r=he(n,5),o=r[1],i=r[2],A=r[3],a=r[4];return A&&i||e(new Error(ve)),{embedType:/js/.test(o)?"script":"iframe",entityId:i,playerId:A,playerType:"video",queryString:a}}function Z(t,e){var n=t.match(Y("deprecated"))||[],r=he(n,6),o=r[1],i=r[2],A=r[3],a=r[4],c=r[5];return i&&a&&A?{embedType:/js/.test(o)?"script":"iframe",entityId:a,playerId:i,playerType:A,queryString:c}:X(t,e)}function $(t,e){var n=t.match(Y("modern"))||[],r=he(n,5),o=r[1],i=r[2],A=r[3],a=r[4];return o&&i&&A?{embedType:o,entityId:A,playerType:i,queryString:a}:Z(t,e)}function J(t,e){var n,r=$(t,e),o=r.embedType,i=r.entityId,A=r.playerId,a=r.playerType,c=r.queryString,u="video"===a?"videoId":"playlistId",s=l(c);return pe((n={embedType:o},Q(n,u,i),Q(n,"playerId",A),n),s)}function K(t){try{return new URL(t)}catch(y){var e=document.createElement("a");e.href=t;var n=e.host,r=void 0===n?"":n,o=e.hostname,i=void 0===o?"":o,A=e.pathname,a=void 0===A?"":A,c=e.port,u=void 0===c?"":c,s=e.protocol,l=void 0===s?"":s,f=e.search,d=void 0===f?"":f,p={},h=0===e.search.indexOf("?")?e.search.substring(1):e.search,v=h.split("&");return v.forEach(function(t){var e=t.split("=");2===e.length&&(p[e[0]]=e[1])}),{host:r,hostname:i,pathname:a,port:u,protocol:l,search:d,searchParams:{get:function(t){return p[t]}}}}}function tt(t,e){return!("amp-article"!==t||!e)&&K(e).hostname}function et(t,e){var n=e.pageType,r=e.analyticsUrl,o=tt(n,r)||t,i=o.match(ge)||[],A=ye(i,3),a=A[1],c=A[2],u=void 0===c?"":c;return u&&a?u+"-videoportal":u}function nt(t){switch(t){case"inline":return{isScriptEmbed:!1,isIframeEmbed:!1};case"iframe":return{isScriptEmbed:!1,isIframeEmbed:!0};default:return{}}}function rt(t){var e=t.playlistId,n=t.showPlaylistBar,r=void 0===n?_e.showPlaylistBar:n;return{showPlaylistBar:!!e&&!!r}}function ot(t){var e=t.loopVideo,n=t.playlistId,r=t.playerType,o=t.continuousPlay,i=void 0===o?_e.continuousPlay:o;return r?{playerType:r}:n?{playerType:"playlist"}:{playerType:"video-"+(i||e?"continuous":"single")}}function it(t){return t?{autoplay:!(Pe.indexOf(t)>-1)&&null}:{}}function At(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.backendKeys,r=void 0===n?we:n,o=e.defaults,i=void 0===o?_e:o,A=t.embedType,a=t.playerId,c={},u=it(a);delete t.embedType,Object.keys(t).forEach(function(e){var n=f(t[e]);r.indexOf(e)>-1&&(c[e]=n),u[e]=n});var s=Ee(u);s.length&&(c.embedLocation=s);var l=be({},i,u,nt(A),rt(u),ot(u));return{backendParams:c,initialPlayerConfig:l}}function at(t,e){return t+"/"+Ie+"?"+s(e)}function ct(t,e){var n=t.playerId,r=t.embedType;n&&e({category:"deprecated",message:"Deprecated "+r+' embed with profileId: "'+n+'"',type:"deprecatedEmbed"},t)}function ut(t,e){var n=e.onReady;if(n&&"function"==typeof t[n+"_error"])return t[n+"_error"]}function st(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wt;return new Promise(function(n,r){var o=t.apiUrl,i=t.src,A=t.windowCne,a=J(i,r);ct(a,e);var c=At(a),u=c.backendParams,s=c.initialPlayerConfig,l=at(o,u);n(Oe({},t,{initialPlayerConfig:s,onErrorFn:ut(A,s),requestUrl:l}))}).catch(function(e){throw new Yt(e.message,{params:t,originalError:e})})}function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.forceMin,n=void 0!==e&&e,r=t.win,o=void 0===r?window:r,i=o.document,A=n||!i.body?0:i.body.scrollHeight,a=Math.max(A,xe);o.parent.postMessage({sentinel:"amp",type:"embed-size",height:a},"*")}function ft(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html";t.parentElement;){if(t.matches(e))return t;t=t.parentElement}}function dt(t){t&&t.parentNode.removeChild(t)}function pt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.doc,n=void 0===e?document:e,r=t.requestAmpResize,o=void 0===r?lt:r;dt(n.getElementById("interlude-container")),o({forceMin:!0})}function ht(t){dt(ft(t,"[data-cne-interlude]"))}function vt(t,e){yt("script",t,e)}function yt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callOnDomReady,o=void 0===r?C:r,i=n.errorTemplate,A=void 0===i?b:i,a=n.logEmbedError,c=void 0===a?g:a,u=n.removeInterludePlayer,s=void 0===u?ht:u,l=n.removeAmpInterludePlayer,f=void 0===l?pt:l,d=n.renderEmbedError,p=void 0===d?m:d,h=e.data||{},v=h.render,y=h.displayMessage,w=h.embedParams,_=void 0===w?{}:w,E=_.iframe,P=_.initialPlayerConfig;P=void 0===P?{}:P;var O=P.playerType,I=P.target,x=P.pageType,j=_.onErrorFn;if(v){var T=A(y),S="script"===t?E.contentDocument:document;o(function(){E&&"interlude"===O?s(E):"interlude"===O&&"amp-article"===x?f():p({doc:S,target:I,template:T})},S)}c(y||e.message,e),"function"==typeof j&&j(e)}function mt(){return window._cne=window._cne||{},window._cne}function gt(t){t.muted=!1;var e=t.play();return e&&"function"==typeof e.then&&"function"==typeof e.catch?e.catch(function(e){return"NotSupportedError"===e.name?Promise.reject(e):(t.muted=!0,t.play())}):Promise.resolve(!0)}function bt(t,e,n){return t.src="data:"+n+";base64,"+e,gt(t)}function wt(t,e,n){for(var r=atob(e),o=new Array(r.length),i=0;i<r.length;i++)o[i]=r.charCodeAt(i);var A=new Uint8Array(o),a=new Blob([A],{type:n}),c=URL.createObjectURL(a);return t.src=c,gt(t)}function _t(){var t=document.createElement("video");return t.setAttribute("webkit-playsinline",""),t.setAttribute("playsinline",""),document.body.appendChild(t),t}function Et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.playDataVideo,r=void 0===n?bt:n,o=e.playBlobVideo,i=void 0===o?wt:o,A=e.makeVideo,a=void 0===A?_t:A;if(t&&t.playerCoordinator)return Promise.resolve(t.playerCoordinator.canAutoplay());var c=a(),u="AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=";return new Promise(function(t,e){r(c,u,"video/mp4").catch(function(t){if("NotAllowedError"!==t.name)return i(c,u,"video/mp4");e(t)}).catch(function(t){return e(t)}).then(function(){return t(!0)})}).catch(function(t){return Gt({type:t.name,message:"Failed To Autoplay Video"}),!1}).then(function(t){return c&&c.parentNode&&c.parentNode.removeChild(c),t?c.muted?je.MUTED:je.ALWAYS:je.NEVER})}function Pt(){return Ue||Le}function Ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pt();return{css:t.css,ima:t.ima,js:e?t.mobile:t.main}}function It(t){var e=document.createElement("script");return e.async=!0,e.type="text/javascript",e.src=t,e}function xt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.win,r=void 0===n?window:n,o=e.buildScriptTag,i=void 0===o?It:o,A=e.src,a=void 0===A?Ve:A;return new Promise(function(e){if(!t)return void e();var n=r.document.head;if(!!n.querySelector("script[src='"+a+"']"))return void e();var o=i(a);o.onload=e,o.onerror=e,n.appendChild(o)})}function jt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.loadAsset,i=void 0===o?Se:o,A=r.injectPublica,a=void 0===A?ke:A,c=e.adsDisabled,u=e.isScriptEmbed;return c?t:Promise.all([t,i(Ot().ima,"js",n).catch(function(){return!1}),xt(u)]).then(qe(a(n)))}function Tt(t,e){return ze({},t,{playerConfig:ze({},e,t.playerConfig)})}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.adsPromise,r=void 0===n?jt:n,o=e.canAutoplay,i=void 0===o?Et:o,A=e.loadAsset,a=void 0===A?Se:A,c=t.configPromise,u=t.initialPlayerConfig,s=t.windowCne,l=t.win,f=void 0===l?window:l,d=Ot(),p=d.css,h=d.js;return Promise.all([r(c(),u,f),i(s),a(p,"css",f),a(h,"js",f)]).then(function(e){var n=Qe(e,2),r=n[0],o=n[1],i=Tt(r,u);return He({},t,{canAutoplay:o,config:i})}).catch(function(e){throw new Yt(e.message,{params:t,originalError:e})})}Object.defineProperty(e,"__esModule",{value:!0});var Rt=function(t){return{"box-sizing":"content-box",display:"inline-block",height:t?"190px":"0px","padding-top":"56.25%",position:"relative",transition:"height 300ms ease-in-out","vertical-align":"top",width:"100%"}},Ct={height:"1px !important",left:"0px","min-height":"100%","min-width":"100%",position:"absolute",top:"0px",width:"1px !important"},kt="cne-player-container",Mt="embedplayer",Lt=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Bt=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Nt=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.cookie).split(/;\s*/).reduce(function(t,e){var n=e.split("="),r=Bt(n,2),o=r[0],i=r[1];return Object.assign(t,d({},o,decodeURIComponent(i)))},{})},Ft=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nt(),e=t.pID,n=void 0===e?"":e,r=t.sID,o=void 0===r?"":r,i=t.CN_sp,A=void 0===i?"":i,a=t.CN_xid,c=void 0===a?"":a,u={baseUrl:"//capture.condenastdigital.com/track?_o=cne",params:{app:"playerservice",cCh:"videos/show",pHr:window.location.href,pID:n,sID:o,uId:A,xid:c}};return function(){return u}}(),Ut=function(t){var e=void 0;try{e=JSON.stringify(t)}catch(t){e=""}return e},Dt=function(t){var e=t.guid,n=t.canAutoplay,r=t.initialPlayerConfig||{};return[r.videoId,{canAutoplay:n,guid:e,iu:r.iu,playerType:r.playerType}]},Vt=function(t){return(new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Image)).src=t},Wt=function(t){var e=t.type,n=t.category,r=t.message,o=void 0===r?"":r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=Ft(),a=A.baseUrl,c=A.params;return Vt([a,s(c),s(p({type:e,category:n,message:o},i))].join("&"))},Gt=function(t){var e=t.message,n=t.data,r=void 0===n?{}:n,o=t.type,i=void 0===o?"GenericError":o,A=r.embedParams;return Wt({type:i,category:"error",message:e},A)},qt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zt="We're sorry, something went wrong.",Ht=18,Qt=56.25,Yt=function(t){function e(t,n){var r=n.originalError,o=void 0===r?{}:r,i=n.params,A=void 0===i?{}:i,a=n.render,c=void 0!==a&&a;h(this,e);var u=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return u.message=t,u.data=qt({displayMessage:void 0,embedParams:_(A),originalError:o,render:c},o.data),u.type=o.type||"EmbedError",u}return y(e,t),e}(Error),Xt=function(t){function e(t,n){var r=n.json,o=void 0===r?{}:r,i=n.requestUrl;h(this,e);var A=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return A.message=t,A.data={displayMessage:o.message||t,json:o,render:!0,requestUrl:i},A.type="FetchConfigError",A}return y(e,t),e}(Error),Zt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.identifier,o=n.tag;h(this,e);var i=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.message=t,i.data={identifier:r,render:!0,tag:o},i.type="AssetLoadError",i}return y(e,t),e}(Error),$t=(function(t){function e(t,n){var r=n.originalError,o=void 0===r?{}:r,i=n.params;h(this,e);var A=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return A.message=t,A.data=qt({},i,o.data,{originalError:o}),A.type=o.type||"InterludeError",A}y(e,t)}(Error),function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.url;h(this,e);var o=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.message=t,o.data={url:r},o.type="RecommendationApiError",o}y(e,t)}(Error),function(t){function e(t){h(this,e);var n=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.message=t,n.type="WaitForPageCreateError",n}y(e,t)}(Error),function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.message=t,r.data=w(n),r.type="InterludeRejectedError",r}y(e,t)}(Error),function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.message=t,r.data=w(n),r.type="PreviousAttemptError",r}y(e,t)}(Error),Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),Jt=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Kt=/(?:http[s]?:)?(?:\/\/)?[a-z]+\.(?:[a-z]+\.)?[^\/]+\/?|^\/|\/$|\/?\?.*$/,te=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ee="data-cne-playing",ne=void 0,re=/complete|loaded|interactive/,oe=function(){var t=void 0;try{t=window.top.performance}catch(e){t=window.performance}return t}(),ie=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ae=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ae=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,t),this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in n?n.statusText:"OK",this.url=n.url||"",this._bodyText=e}return Ae(t,[{key:"text",value:function(){return Promise.resolve(this._bodyText)}},{key:"json",value:function(){return this.text().then(JSON.parse)}}]),t}(),ce=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ue=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),se="processed",le=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fe=function(){return Math.floor(65536*Math.random()).toString(16)},de=function(){return fe()},pe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},he=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ve="Unable to parse script source.",ye=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),me=["allure","architecturaldigest","arstechnica","bonappetit","brides","cntraveler","epicurious","glamour","golfdigest","gq","iris","newyorker","pitchfork","self","teenvogue","thescene","them","vanityfair","vogue","wired","wmagazine"],ge=new RegExp("(video)?\\.?("+me.join("|")+")"),be=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},we=["hasAnimatedThumb","interludeOverride","indexKey","iu","playlistId","playerType","shareToScene","theme","videoId"],_e={adsDisabled:!1,analyticsUrl:null,aoTest:null,autoplay:!0,companionSize:"300x60",companionTarget:null,continuousPlay:!0,doova:!0,embedLocation:"",forceMobile:!1,forcePublica:!1,hasAnimatedThumb:!0,hasCompanion:!0,hideHoverTitle:!1,hidePosterTitle:!1,interludeOverride:null,indexKey:null,iu:null,loopVideo:!1,muted:!1,onReady:null,pageType:"",playerType:null,playlistId:null,recAlgorithm:null,recStrategy:null,section:null,shareToScene:!1,showPlaylistBar:!0,subSection:null,target:Mt,theme:"dark",videoId:null,isScriptEmbed:!0,isIframeEmbed:!1},Ee=function(t){return et(window.location.hostname,t)},Pe=["5609731161646d168700000b","561eb5ce61646d732a000007","56214e9761646d59df000017","56674971ff2afb42b100001a"],Oe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ie="embed-api.json",xe=100,je={ALWAYS:"ALWAYS",MUTED:"MUTED",NEVER:"NEVER"},Te=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return new Promise(function(r,o){var i=n.document,A=void 0;"js"===e?(A=i.createElement("script"),A.src=t,A.async=!0):(A=i.createElement("link"),A.rel="stylesheet",A.type="text/css",A.href=t);A.onload=function(){return r(!0)},A.onerror=function(){return o(new Zt("Failed to load asset.",{tag:A}))},i.head.appendChild(A)})},Se=Te,Re=function(t,e,n){return function(){Wt({category:"error",message:"PublicaBootloaderFailed",type:"AssetLoadError"},{brand:n,url:e}),t(!1)}},Ce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;return function(n,r){return function(o){setTimeout(o,e),t.pAPI=function(e,n){t.pAPI.$cmd.push([e,n])},t.pAPI.ready=function(e){t.pAPI.$evr.push(e)},t.pAPI.$cmd=[],t.pAPI.$evr=[],t.pAPI.ready(function(e){if(!e||!e.adblock_detected)return void o(!1);t.pAPI.one("event_ima3_loaded",function(t){t&&!t.err&&o(!0)}),t.pAPI("ima3")});var i=t.document,A=i.createElement("script");A.src=n,A.onerror=Re(o,n,r),i.head.appendChild(A)}}},ke=Ce,Me=window.navigator&&window.navigator.userAgent||"",Le=/Android/i.test(Me),Be=(/Edge/i.test(Me),/iPad/i.test(Me)),Ne=/iPhone/i.test(Me)&&!Be,Fe=/iPod/i.test(Me),Ue=Ne||Be||Fe,De=(function(){var t=Me.match(/OS (\d+)_/i);t&&t[1]&&t[1]}(),function(){var t=0;if("Microsoft Internet Explorer"==navigator.appName){var e=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))}else if("Netscape"==navigator.appName){var n=navigator.userAgent,r=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");null!=r.exec(n)&&(t=parseFloat(RegExp.$1))}}(),{css:"https://d2c8v52ll5s99u.cloudfront.net/player/player-style-9c9c424063d51abd5aad25e7b15bed7f.css",ima:"//imasdk.googleapis.com/js/sdkloader/ima3.js",main:"https://d2c8v52ll5s99u.cloudfront.net/player/main-67457464c41f08a41308.js",mobile:"https://d2c8v52ll5s99u.cloudfront.net/player/mobile-1c58d2f4dfda4c37e093.js"}),Ve="//imasdk.googleapis.com/js/sdkloader/gpt_proxy.js",We=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ge=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),qe=function(t){return function(e){var n=Ge(e,2),r=n[0],o=n[1],i=r.playerConfig,A=r.environment,a=i.embedLocation,c=A.publicaEnabled&&A.publicaUrl,u=c||null;return o||!u?r:new Promise(t(u,a)).then(function(t){return We({},r,{publicaEnabled:t})})}},ze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},He=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qe=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(r=(A=a.next()).done)&&(n.push(A.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();k("player_js_start_execution");var Ye=/cnevids/;k("script_embed_loaded"),function(t){var e=t.apiUrl,n=t.buildEmbedPieces,r=t.buildScriptPlayer,o=t.fallbackMatcher,i=t.fetchData,A=t.findScript,a=t.generateGuid,c=t.generateSecret,u=t.getEnvironmentFromSrc,s=t.handleScriptEmbedError,l=t.initWindowCne,f=t.loadEmbedPieces,d=t.markPerformance,p=t.matcher,h=t.tester;d("loaderjs_loaded"),Promise.resolve({apiUrl:e,fallbackMatcher:o,guid:a(),matcher:p,SCRIPT_EMBED:!0,secret:c(),tester:h,windowCne:l()}).then(A).then(u).then(i).then(n).then(f).then(r).catch(s)}({apiUrl:"//player.cnevids.com",buildEmbedPieces:E,buildScriptPlayer:M,fallbackMatcher:"/embedjs/",fetchData:D,findScript:q,generateGuid:H,generateSecret:de,getEnvironmentFromSrc:st,handleScriptEmbedError:vt,initWindowCne:mt,loadEmbedPieces:St,markPerformance:k,matcher:"/script/",tester:Ye})}]);