(()=>{var e={29:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},56:(e,t,r)=>{var n=r(1741),o=r(7888),i=r(4509),a=r(3062),l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},179:(e,t,r)=>{var n=r(9106),o=r(7956),i=r(5063),a=r(5659),l=r(403);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},188:(e,t,r)=>{var n=r(2993),o=r(179),i=r(723);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},377:e=>{e.exports=function(e){return this.__data__.get(e)}},403:(e,t,r)=>{var n=r(2077);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},513:(e,t,r)=>{var n=r(1162),o=r(7926);e.exports=function(e){return o(e)&&n(e)}},537:(e,t,r)=>{var n=r(958),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},546:(e,t,r)=>{var n=r(9052),o=r(7926);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},632:(e,t,r)=>{var n=r(3242);e.exports=function(e,t){return n(e,t)}},723:(e,t,r)=>{var n=r(7922)(r(5289),"Map");e.exports=n},780:e=>{e.exports=function(e){return e}},905:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},958:(e,t,r)=>{var n=r(7922)(Object,"create");e.exports=n},1101:(e,t,r)=>{var n=r(7922)(r(5289),"Set");e.exports=n},1162:(e,t,r)=>{var n=r(4174),o=r(9906);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},1190:(e,t,r)=>{e=r.nmd(e);var n=r(5289),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=l?l(r):new e.constructor(r);return e.copy(n),n}},1201:(e,t,r)=>{var n=r(6365),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),u=Array(l);++a<l;)u[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(u),n(e,this,c)}}},1236:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1274:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},1598:(e,t,r)=>{var n=r(4509),o=r(3062),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},1616:(e,t,r)=>{var n=r(2309),o=r(5355),i=r(2862),a=r(1861),l=r(6689),u=r(4509),c=r(5628),s=r(3371),d="[object Arguments]",f="[object Array]",p="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,b,y,g){var m=u(e),h=u(t),w=m?f:l(e),S=h?f:l(t),A=(w=w==d?p:w)==p,E=(S=S==d?p:S)==p,O=w==S;if(O&&c(e)){if(!c(t))return!1;m=!0,A=!1}if(O&&!A)return g||(g=new n),m||s(e)?o(e,t,r,b,y,g):i(e,t,w,r,b,y,g);if(!(1&r)){var P=A&&v.call(e,"__wrapped__"),x=E&&v.call(t,"__wrapped__");if(P||x){var C=P?e.value():e,j=x?t.value():t;return g||(g=new n),y(C,j,r,b,g)}}return!!O&&(g||(g=new n),a(e,t,r,b,y,g))}},1741:(e,t,r)=>{var n=r(5289).Symbol;e.exports=n},1750:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},1861:(e,t,r)=>{var n=r(9158),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,l){var u=1&r,c=n(e),s=c.length;if(s!=n(t).length&&!u)return!1;for(var d=s;d--;){var f=c[d];if(!(u?f in t:o.call(t,f)))return!1}var p=l.get(e),v=l.get(t);if(p&&v)return p==t&&v==e;var b=!0;l.set(e,t),l.set(t,e);for(var y=u;++d<s;){var g=e[f=c[d]],m=t[f];if(i)var h=u?i(m,g,f,t,e,l):i(g,m,f,e,t,l);if(!(void 0===h?g===m||a(g,m,r,i,l):h)){b=!1;break}y||(y="constructor"==f)}if(b&&!y){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(b=!1)}return l.delete(e),l.delete(t),b}},1869:(e,t,r)=>{var n=r(6841);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},1967:(e,t,r)=>{var n=r(9604),o=r(7332),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},2077:(e,t,r)=>{var n=r(7332);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},2141:e=>{"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},2143:(e,t,r)=>{var n=r(1741),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},2204:(e,t,r)=>{var n=r(6369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},2218:(e,t,r)=>{"use strict";var n=r(905);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},2275:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],l=0;l<e.length;l++){var u=e[l],c=n.base?u[0]+n.base:u[0],s=i[c]||0,d="".concat(c," ").concat(s);i[c]=s+1;var f=r(d),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var v=o(p,n);n.byIndex=l,t.splice(l,0,{identifier:d,updater:v,references:1})}a.push(d)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=r(i[a]);t[l].references--}for(var u=n(e,o),c=0;c<i.length;c++){var s=r(i[c]);0===t[s].references&&(t[s].updater(),t.splice(s,1))}i=u}}},2309:(e,t,r)=>{var n=r(179),o=r(3768),i=r(4062),a=r(377),l=r(6485),u=r(3373);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=l,c.prototype.set=u,e.exports=c},2372:(e,t,r)=>{var n=r(9049),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},2521:e=>{e.exports=function(e){return function(t){return e(t)}}},2687:(e,t,r)=>{var n=r(7922),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},2700:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},2862:(e,t,r)=>{var n=r(1741),o=r(7264),i=r(7332),a=r(5355),l=r(8873),u=r(3147),c=n?n.prototype:void 0,s=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var v=1&n;if(p||(p=u),e.size!=t.size&&!v)return!1;var b=f.get(e);if(b)return b==t;n|=2,f.set(e,t);var y=a(p(e),p(t),n,c,d,f);return f.delete(e),y;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},2993:(e,t,r)=>{var n=r(6860),o=r(8682),i=r(7429),a=r(537),l=r(4769);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},2995:(e,t,r)=>{var n=r(9049),o=r(6811),i=r(5561),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&r.push(l);return r}},3062:(e,t,r)=>{var n=r(9052),o=r(7926);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},3147:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},3242:(e,t,r)=>{var n=r(1616),o=r(7926);e.exports=function e(t,r,i,a,l){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,l))}},3287:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),i=r(5387),a=r.n(i)()(o());a.push([e.id,".focus-visible-highlight:focus-visible {\n  outline: 1px auto Highlight;\n  outline: 1px auto -webkit-focus-ring-color;\n}\n","",{version:3,sources:["webpack://./../components/src/video/controls/buttons/index.css"],names:[],mappings:"AAAA;EACE,2BAA2B;EAC3B,0CAA0C;AAC5C",sourcesContent:[".focus-visible-highlight:focus-visible {\n  outline: 1px auto Highlight;\n  outline: 1px auto -webkit-focus-ring-color;\n}\n"],sourceRoot:""}]);const l=a},3297:(e,t,r)=>{var n=r(7135);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},3371:(e,t,r)=>{var n=r(7929),o=r(2521),i=r(6005),a=i&&i.isTypedArray,l=a?o(a):n;e.exports=l},3373:(e,t,r)=>{var n=r(179),o=r(723),i=r(6369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},3539:(e,t,r)=>{var n=r(5787)(Object.getPrototypeOf,Object);e.exports=n},3550:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3592:(e,t,r)=>{var n=r(7922)(r(5289),"DataView");e.exports=n},3768:(e,t,r)=>{var n=r(179);e.exports=function(){this.__data__=new n,this.size=0}},3814:(e,t,r)=>{var n=r(2309),o=r(6305),i=r(5754),a=r(5764),l=r(9049),u=r(4893),c=r(6002);e.exports=function e(t,r,s,d,f){t!==r&&i(r,(function(i,u){if(f||(f=new n),l(i))a(t,r,u,s,e,d,f);else{var p=d?d(c(t,u),i,u+"",t,r,f):void 0;void 0===p&&(p=i),o(t,u,p)}}),u)}},3987:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},4026:(e,t,r)=>{var n=r(7643),o=r(8972),i=r(1162);e.exports=function(e){return i(e)?n(e):o(e)}},4035:(e,t,r)=>{var n=r(4484),o=r(4509);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},4062:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4168:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),i=r(5387),a=r.n(i)()(o());a.push([e.id,"@keyframes rotation {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(359deg);\n  }\n}\n\n.infinite-rotate {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n\n.infinite-rotate-icon svg {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n","",{version:3,sources:["webpack://./../components/src/common/styles/animations.css"],names:[],mappings:"AAAA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;;AAEA;EACE,sCAAsC;EACtC;IACE,eAAe;EACjB;AACF;;AAEA;EACE,sCAAsC;EACtC;IACE,eAAe;EACjB;AACF",sourcesContent:["@keyframes rotation {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(359deg);\n  }\n}\n\n.infinite-rotate {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n\n.infinite-rotate-icon svg {\n  animation: rotation 2s infinite linear;\n  @media (prefers-reduced-motion) {\n    animation: none;\n  }\n}\n"],sourceRoot:""}]);const l=a},4174:(e,t,r)=>{var n=r(9052),o=r(9049);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4304:(e,t,r)=>{var n=r(7802);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},4326:e=>{"use strict";e.exports=require("react")},4484:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},4509:e=>{var t=Array.isArray;e.exports=t},4611:e=>{e.exports=function(){return!1}},4642:e=>{e.exports=function(e){return function(){return e}}},4769:(e,t,r)=>{var n=r(958);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},4893:(e,t,r)=>{var n=r(7643),o=r(2995),i=r(1162);e.exports=function(e){return i(e)?n(e,!0):o(e)}},4894:(e,t,r)=>{var n=r(4642),o=r(2687),i=r(780),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},4940:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},4993:(e,t,r)=>{var n=r(9049),o=r(9328),i=r(9570),a=Math.max,l=Math.min;e.exports=function(e,t,r){var u,c,s,d,f,p,v=0,b=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var r=u,n=c;return u=c=void 0,v=t,d=e.apply(n,r)}function h(e){var r=e-p;return void 0===p||r>=t||r<0||y&&e-v>=s}function w(){var e=o();if(h(e))return S(e);f=setTimeout(w,function(e){var r=t-(e-p);return y?l(r,s-(e-v)):r}(e))}function S(e){return f=void 0,g&&u?m(e):(u=c=void 0,d)}function A(){var e=o(),r=h(e);if(u=arguments,c=this,p=e,r){if(void 0===f)return function(e){return v=e,f=setTimeout(w,t),b?m(e):d}(p);if(y)return clearTimeout(f),f=setTimeout(w,t),m(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,n(r)&&(b=!!r.leading,s=(y="maxWait"in r)?a(i(r.maxWait)||0,t):s,g="trailing"in r?!!r.trailing:g),A.cancel=function(){void 0!==f&&clearTimeout(f),v=0,u=p=c=f=void 0},A.flush=function(){return void 0===f?d:S(o())},A}},5042:(e,t,r)=>{var n=r(780),o=r(1201),i=r(8261);e.exports=function(e,t){return i(o(e,t,n),e+"")}},5063:(e,t,r)=>{var n=r(2077);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},5152:(e,t,r)=>{e.exports=r(2218)()},5289:(e,t,r)=>{var n=r(9348),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},5345:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===r(i[u],u,i))break}return t}}},5355:(e,t,r)=>{var n=r(6423),o=r(4940),i=r(7519);e.exports=function(e,t,r,a,l,u){var c=1&r,s=e.length,d=t.length;if(s!=d&&!(c&&d>s))return!1;var f=u.get(e),p=u.get(t);if(f&&p)return f==t&&p==e;var v=-1,b=!0,y=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++v<s;){var g=e[v],m=t[v];if(a)var h=c?a(m,g,v,t,e,u):a(g,m,v,e,t,u);if(void 0!==h){if(h)continue;b=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(g===e||l(g,e,r,a,u)))return y.push(t)}))){b=!1;break}}else if(g!==m&&!l(g,m,r,a,u)){b=!1;break}}return u.delete(e),u.delete(t),b}},5380:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5387:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&a[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),t.push(s))}},t}},5561:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},5598:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),i=r(5387),a=r.n(i)()(o());a.push([e.id,"#media-components-scrubber #media-components-scrubber-bar {\n  position: relative;\n  border-radius: 3px;\n  height: 4px;\n}\n#media-components-scrubber #media-components-scrubber-dot {\n  min-width: 10px;\n  min-height: 10px;\n  margin-left: -4px;\n  background-color: inherit;\n  transform: scale(0);\n  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);\n  border-radius: 50%;\n  position: relative;\n  box-sizing: border-box;\n  user-select: none;\n  transition-property: transform;\n  transition-duration: var(--motion-duration-200);\n}\n\n#media-components-scrubber:hover #media-components-scrubber-dot {\n  transform: scale(1);\n}\n","",{version:3,sources:["webpack://./../components/src/common/scrubber.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;EACjB,yBAAyB;EACzB,mBAAmB;EACnB,qDAAqD;EACrD,kBAAkB;EAClB,kBAAkB;EAClB,sBAAsB;EACtB,iBAAiB;EACjB,8BAA8B;EAC9B,+CAA+C;AACjD;;AAEA;EACE,mBAAmB;AACrB",sourcesContent:["#media-components-scrubber #media-components-scrubber-bar {\n  position: relative;\n  border-radius: 3px;\n  height: 4px;\n}\n#media-components-scrubber #media-components-scrubber-dot {\n  min-width: 10px;\n  min-height: 10px;\n  margin-left: -4px;\n  background-color: inherit;\n  transform: scale(0);\n  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);\n  border-radius: 50%;\n  position: relative;\n  box-sizing: border-box;\n  user-select: none;\n  transition-property: transform;\n  transition-duration: var(--motion-duration-200);\n}\n\n#media-components-scrubber:hover #media-components-scrubber-dot {\n  transform: scale(1);\n}\n"],sourceRoot:""}]);const l=a},5628:(e,t,r)=>{e=r.nmd(e);var n=r(5289),o=r(4611),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?n.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},5659:(e,t,r)=>{var n=r(2077);e.exports=function(e){return n(this.__data__,e)>-1}},5747:(e,t,r)=>{var n=r(7922)(r(5289),"WeakMap");e.exports=n},5754:(e,t,r)=>{var n=r(5345)();e.exports=n},5764:(e,t,r)=>{var n=r(6305),o=r(1190),i=r(1869),a=r(3987),l=r(5901),u=r(6888),c=r(4509),s=r(513),d=r(5628),f=r(4174),p=r(9049),v=r(9335),b=r(3371),y=r(6002),g=r(8432);e.exports=function(e,t,r,m,h,w,S){var A=y(e,r),E=y(t,r),O=S.get(E);if(O)n(e,r,O);else{var P=w?w(A,E,r+"",e,t,S):void 0,x=void 0===P;if(x){var C=c(E),j=!C&&d(E),k=!C&&!j&&b(E);P=E,C||j||k?c(A)?P=A:s(A)?P=a(A):j?(x=!1,P=o(E,!0)):k?(x=!1,P=i(E,!0)):P=[]:v(E)||u(E)?(P=A,u(A)?P=g(A):p(A)&&!f(A)||(P=l(E))):x=!1}x&&(S.set(E,P),h(P,E,m,w,S),S.delete(E)),n(e,r,P)}}},5787:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5901:(e,t,r)=>{var n=r(2372),o=r(3539),i=r(6811);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},6002:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},6005:(e,t,r)=>{e=r.nmd(e);var n=r(9348),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,l=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},6044:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},6175:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},6269:e=>{e.exports=function(){return[]}},6305:(e,t,r)=>{var n=r(9604),o=r(7332);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},6328:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},6365:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},6369:(e,t,r)=>{var n=r(188),o=r(8250),i=r(8677),a=r(9721),l=r(3297);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},6423:(e,t,r)=>{var n=r(6369),o=r(6744),i=r(8455);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},6485:e=>{e.exports=function(e){return this.__data__.has(e)}},6689:(e,t,r)=>{var n=r(3592),o=r(723),i=r(6808),a=r(1101),l=r(5747),u=r(9052),c=r(7677),s="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",v="[object DataView]",b=c(n),y=c(o),g=c(i),m=c(a),h=c(l),w=u;(n&&w(new n(new ArrayBuffer(1)))!=v||o&&w(new o)!=s||i&&w(i.resolve())!=d||a&&w(new a)!=f||l&&w(new l)!=p)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case b:return v;case y:return s;case g:return d;case m:return f;case h:return p}return t}),e.exports=w},6744:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6808:(e,t,r)=>{var n=r(7922)(r(5289),"Promise");e.exports=n},6811:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},6841:(e,t,r)=>{var n=r(7264);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},6860:(e,t,r)=>{var n=r(958);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6888:(e,t,r)=>{var n=r(546),o=r(7926),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},7135:(e,t,r)=>{var n=r(3550);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},7264:(e,t,r)=>{var n=r(5289).Uint8Array;e.exports=n},7332:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7429:(e,t,r)=>{var n=r(958),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},7519:e=>{e.exports=function(e,t){return e.has(t)}},7598:(e,t,r)=>{var n=r(8116),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},7643:(e,t,r)=>{var n=r(2700),o=r(6888),i=r(4509),a=r(5628),l=r(29),u=r(3371),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),s=!r&&o(e),d=!r&&!s&&a(e),f=!r&&!s&&!d&&u(e),p=r||s||d||f,v=p?n(e.length,String):[],b=v.length;for(var y in e)!t&&!c.call(e,y)||p&&("length"==y||d&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,b))||v.push(y);return v}},7659:(e,t,r)=>{var n=r(5042),o=r(7788);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,l=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(r[0],r[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var u=r[n];u&&e(t,u,n,a)}return t}))}},7677:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7756:(e,t,r)=>{var n=r(6044),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7788:(e,t,r)=>{var n=r(7332),o=r(1162),i=r(29),a=r(9049);e.exports=function(e,t,r){if(!a(r))return!1;var l=typeof t;return!!("number"==l?o(r)&&i(t,r.length):"string"==l&&t in r)&&n(r[t],e)}},7802:(e,t,r)=>{var n=r(8461),o=r(9897);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},7888:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},7922:(e,t,r)=>{var n=r(8151),o=r(1236);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},7926:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7929:(e,t,r)=>{var n=r(9052),o=r(9906),i=r(7926),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},7956:(e,t,r)=>{var n=r(2077),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},8035:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},8116:(e,t,r)=>{var n=r(2204);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},8151:(e,t,r)=>{var n=r(4174),o=r(9804),i=r(9049),a=r(7677),l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,s=u.toString,d=c.hasOwnProperty,f=RegExp("^"+s.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:l).test(a(e))}},8250:(e,t,r)=>{var n=r(7135);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},8261:(e,t,r)=>{var n=r(4894),o=r(6175)(n);e.exports=o},8398:(e,t,r)=>{var n=r(5787)(Object.keys,Object);e.exports=n},8432:(e,t,r)=>{var n=r(9571),o=r(4893);e.exports=function(e){return n(e,o(e))}},8455:e=>{e.exports=function(e){return this.__data__.has(e)}},8461:(e,t,r)=>{var n=r(4509),o=r(1598),i=r(7598),a=r(8514);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},8468:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},8514:(e,t,r)=>{var n=r(56);e.exports=function(e){return null==e?"":n(e)}},8677:(e,t,r)=>{var n=r(7135);e.exports=function(e){return n(this,e).get(e)}},8682:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8873:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},8948:()=>{},8972:(e,t,r)=>{var n=r(6811),o=r(8398),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8986:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),i=r(5387),a=r.n(i)()(o());a.push([e.id,"#orca-promo-button {\n  padding: 0;\n  border-color: white !important;\n  background-color: transparent !important;\n  transition: border-width 0.5s ease-in-out;\n}\n\n#orca-promo-button.live {\n  border-color: red !important;\n}\n\n#orca-promo-button.livePreview {\n  border-color: white !important;\n  background-color: white !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button,\n#orca-promo-button.buffer {\n  border-width: 1px !important;\n}\n\n#orca-promo-button svg {\n  z-index: 1;\n  color: black;\n  transition: color 0.35s step-end;\n}\n\n#orca-promo-button.live svg {\n  color: white;\n}\n\n#orca-promo-button.livePreview svg {\n  color: #111 !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button svg,\n#orca-promo-button.buffer svg {\n  color: white;\n  transition: none;\n}\n\n.mini #orca-promo-button,\n.small #orca-promo-button {\n  min-width: 40px;\n  min-height: 40px;\n  border-width: 20px;\n}\n\n.mini #orca-promo-button svg,\n.small #orca-promo-button svg {\n  width: 16px;\n  height: 16px;\n  margin: -18px;\n}\n\n.medium #orca-promo-button {\n  min-width: 56px;\n  min-height: 56px;\n  border-width: 28px;\n}\n\n.medium #orca-promo-button svg {\n  width: 24px;\n  height: 24px;\n  margin: -12px;\n}\n\n.large #orca-promo-button {\n  min-width: 64px;\n  min-height: 64px;\n  border-width: 32px;\n}\n\n.large #orca-promo-button svg {\n  width: 28px;\n  height: 28px;\n  margin: -14px;\n}\n\n.mini #orca-promo-title,\n.small #orca-promo-title {\n  font-size: 14px;\n}\n\n.medium #orca-promo-title,\n.large #orca-promo-title {\n  font-size: 20px;\n}\n\n.mini #orca-promo-duration,\n.small #orca-promo-duration {\n  font-size: 12px;\n}\n\n.medium #orca-promo-duration,\n.large #orca-promo-duration {\n  font-size: 16px;\n}\n","",{version:3,sources:["webpack://./../components/src/video/orca/components/Promo/promo.css"],names:[],mappings:"AAAA;EACE,UAAU;EACV,8BAA8B;EAC9B,wCAAwC;EACxC,yCAAyC;AAC3C;;AAEA;EACE,4BAA4B;AAC9B;;AAEA;EACE,8BAA8B;EAC9B,kCAAkC;AACpC;;AAEA;;EAEE,4BAA4B;AAC9B;;AAEA;EACE,UAAU;EACV,YAAY;EACZ,gCAAgC;AAClC;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,sBAAsB;AACxB;;AAEA;;EAEE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;;EAEE,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;;EAEE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,aAAa;AACf;;AAEA;;EAEE,eAAe;AACjB;;AAEA;;EAEE,eAAe;AACjB;;AAEA;;EAEE,eAAe;AACjB;;AAEA;;EAEE,eAAe;AACjB",sourcesContent:["#orca-promo-button {\n  padding: 0;\n  border-color: white !important;\n  background-color: transparent !important;\n  transition: border-width 0.5s ease-in-out;\n}\n\n#orca-promo-button.live {\n  border-color: red !important;\n}\n\n#orca-promo-button.livePreview {\n  border-color: white !important;\n  background-color: white !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button,\n#orca-promo-button.buffer {\n  border-width: 1px !important;\n}\n\n#orca-promo-button svg {\n  z-index: 1;\n  color: black;\n  transition: color 0.35s step-end;\n}\n\n#orca-promo-button.live svg {\n  color: white;\n}\n\n#orca-promo-button.livePreview svg {\n  color: #111 !important;\n}\n\n#orca-promo-wrapper:hover #orca-promo-button svg,\n#orca-promo-button.buffer svg {\n  color: white;\n  transition: none;\n}\n\n.mini #orca-promo-button,\n.small #orca-promo-button {\n  min-width: 40px;\n  min-height: 40px;\n  border-width: 20px;\n}\n\n.mini #orca-promo-button svg,\n.small #orca-promo-button svg {\n  width: 16px;\n  height: 16px;\n  margin: -18px;\n}\n\n.medium #orca-promo-button {\n  min-width: 56px;\n  min-height: 56px;\n  border-width: 28px;\n}\n\n.medium #orca-promo-button svg {\n  width: 24px;\n  height: 24px;\n  margin: -12px;\n}\n\n.large #orca-promo-button {\n  min-width: 64px;\n  min-height: 64px;\n  border-width: 32px;\n}\n\n.large #orca-promo-button svg {\n  width: 28px;\n  height: 28px;\n  margin: -14px;\n}\n\n.mini #orca-promo-title,\n.small #orca-promo-title {\n  font-size: 14px;\n}\n\n.medium #orca-promo-title,\n.large #orca-promo-title {\n  font-size: 20px;\n}\n\n.mini #orca-promo-duration,\n.small #orca-promo-duration {\n  font-size: 12px;\n}\n\n.medium #orca-promo-duration,\n.large #orca-promo-duration {\n  font-size: 16px;\n}\n"],sourceRoot:""}]);const l=a},9021:(e,t,r)=>{var n=r(5289)["__core-js_shared__"];e.exports=n},9049:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9052:(e,t,r)=>{var n=r(1741),o=r(2143),i=r(1274),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9106:e=>{e.exports=function(){this.__data__=[],this.size=0}},9158:(e,t,r)=>{var n=r(4035),o=r(9516),i=r(4026);e.exports=function(e){return n(e,i,o)}},9255:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},9328:(e,t,r)=>{var n=r(5289);e.exports=function(){return n.Date.now()}},9335:(e,t,r)=>{var n=r(9052),o=r(3539),i=r(7926),a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,s=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==s}},9348:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9516:(e,t,r)=>{var n=r(1750),o=r(6269),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},9570:(e,t,r)=>{var n=r(7756),o=r(9049),i=r(3062),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},9571:(e,t,r)=>{var n=r(1967),o=r(9604);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var l=-1,u=t.length;++l<u;){var c=t[l],s=i?i(r[c],e[c],c,r,e):void 0;void 0===s&&(s=e[c]),a?o(r,c,s):n(r,c,s)}return r}},9604:(e,t,r)=>{var n=r(2687);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9721:(e,t,r)=>{var n=r(7135);e.exports=function(e){return n(this,e).has(e)}},9734:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(2141),o=r.n(n),i=r(5387),a=r.n(i)()(o());a.push([e.id,'.audio-scrubber {\n  -webkit-appearance: none;\n  width: 100px;\n  height: 4px;\n  border-radius: 5px;\n  cursor: pointer;\n}\n\n.audio-scrubber::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\n.audio-scrubber::-moz-range-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\ninput[type="range"]::-webkit-slider-runnable-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n\ninput[type="range"]::-moz-range-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n',"",{version:3,sources:["webpack://./../components/src/video/controls/audio-scrubber.css"],names:[],mappings:"AAAA;EACE,wBAAwB;EACxB,YAAY;EACZ,WAAW;EACX,kBAAkB;EAClB,eAAe;AACjB;;AAEA;EACE,wBAAwB;EACxB,WAAW;EACX,UAAU;EACV,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,0BAA0B;EAC1B,uCAAuC;AACzC;;AAEA;EACE,wBAAwB;EACxB,WAAW;EACX,UAAU;EACV,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,0BAA0B;EAC1B,uCAAuC;AACzC;;AAEA;EACE,wBAAwB;EACxB,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;AACzB;;AAEA;EACE,wBAAwB;EACxB,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;AACzB",sourcesContent:['.audio-scrubber {\n  -webkit-appearance: none;\n  width: 100px;\n  height: 4px;\n  border-radius: 5px;\n  cursor: pointer;\n}\n\n.audio-scrubber::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\n.audio-scrubber::-moz-range-thumb {\n  -webkit-appearance: none;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  background: #fff;\n  cursor: pointer;\n  box-shadow: 0 0 2px 0 #555;\n  transition: background 0.3s ease-in-out;\n}\n\ninput[type="range"]::-webkit-slider-runnable-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n\ninput[type="range"]::-moz-range-track {\n  -webkit-appearance: none;\n  box-shadow: none;\n  border: none;\n  background: transparent;\n}\n'],sourceRoot:""}]);const l=a},9804:(e,t,r)=>{var n,o=r(9021),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},9840:(e,t,r)=>{var n=r(3814),o=r(7659)((function(e,t,r){n(e,t,r)}));e.exports=o},9897:(e,t,r)=>{var n=r(3062);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},9906:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{default:()=>Df});var e=r(4326),t=r.n(e),o=r(5152),i=r.n(o),a=(0,e.createContext)({videoId:null,videoData:null,originalVideo:null,videoApiDataFailed:!1,videoApiUrl:null,domain:null,dispatchVideoApiEvent:function(){}}),l=function(){return(0,e.useContext)(a)},u=function(e){return d(e)&&"upcoming"===e.status},c=function(e){return d(e)&&"ended"===e.status},s=function(e){return"live"===e.status},d=function(e){return"live"===e.video_type};function f(e){var t;return c(e)||v(null==e||null===(t=e.additional_properties)||void 0===t?void 0:t.publicationEndDate)}function p(e){return u(e)||!b(null==e?void 0:e.display_date)}var v=function(e){if(!e)return!1;try{var t=new Date,r=new Date(e);if(r.setHours(r.getHours()+1),t>r)return!0}catch(e){console.error("Unable to parse publicationEndDate",e)}return!1},b=function(e){if(!e)return!1;try{var t=new Date,r=new Date(e);return r.setMinutes(r.getMinutes()),t>r}catch(e){console.debug(e)}},y={type:null,status:null,isLooping:!1,isAutoplay:!1,isPreroll:!1,isLivePreview:!1,isPlaythrough:!1,isInitialized:!1,overrideAutoplayMuteBehavior:!1},g=(0,e.createContext)({autoplayState:y,updateAutoplayState:function(){},isMotionReduced:!1}),m=function(){return(0,e.useContext)(g)},h=r(632),w=r.n(h),S=r(2204),A=r.n(S),E=r(9840),O=r.n(E);function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x,C,j="https://www.washingtonpost.com/player/prod/img/video-thumbnail-bg.png",k="https://www.washingtonpost.com",T="INIT",I="COMPLETE",R="controlsTouch",D="videoApiData",_="fullscreenChange",M="ended",L="error",$="play",B="timeupdate",V="captionsloaded",z="fullscreen",F="unfullscreen",N="start",U="NEW_VIDEO_DATA",W="AD_COMPLETE",H="AD_START",q="AD_ERROR",Y="AD_BYPASSED",G="AD_TIMEOUT",Z="destroyed",X="orcaRender",J="earlyExit",K="orca-render",Q="orca-ready",ee="orca-iris-ready",te="orca-ad-start",re="orca-promo-click",ne="homepage",oe="article page",ie={AUTOPLAY:"autoplay",LOOPING_PROMO:"looping-promo",LOOPING_VIDEO:"looping-video",LOOPING_NO_CONTROLS:"looping-no-controls"},ae={HD:"force-hd",YOUTUBE:"force-youtube"},le=(x=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){P(e,t,r[t])}))}return e}({},ae),C=null!=(C={BURNED_HEADLINE:"headline-burned",BURNED_CAPTIONS:"captions-burned"})?C:{},Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(C)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(C)).forEach((function(e){Object.defineProperty(x,e,Object.getOwnPropertyDescriptor(C,e))})),x),ue={AUTO:"autoplay",LOOP:"loop",LOOP_NO_CONTROLS:"loop-no-controls"},ce={INIT:"INIT",REQUESTED:"REQUESTED",LOADING:"LOADING",LOADED:"LOADED",PLAYING:"PLAYING",COMPLETE:"COMPLETE",ERROR:"ERROR",BYPASSED:"BYPASSED",TIMEOUT:"TIMEOUT"},se="adDisabled",de="adError",fe="adCompleted",pe="adBlank",ve="adNotSupported",be="adRequest",ye="adLoad",ge="adStart",me="complete",he="adPlay",we="adPause",Se="skipReady",Ae="adTimeChange",Ee="adError",Oe="adBypassed",Pe="LOADING",xe="READY",Ce="BUFFER",je="HIDDEN";function ke(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=null==e||null===(r=e.taxonomy)||void 0===r||null===(t=r.tags)||void 0===t?void 0:t.map((function(e){return e.text})),i=!n&&[ie.LOOPING_PROMO,ie.LOOPING_NO_CONTROLS].some((function(e){return null==o?void 0:o.includes(e)}));return i?ue.LOOP_NO_CONTROLS:!n&&(null==o?void 0:o.includes(ie.LOOPING_VIDEO))?ue.LOOP:(null==o?void 0:o.includes(ie.AUTOPLAY))?ue.AUTO:null}function Te(e){var t=ke(e);return t===ue.LOOP||t===ue.LOOP_NO_CONTROLS}function Ie(e,t,r){var n,o,i,a;if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]&&console.log(e,t),null===(n=window)||void 0===n?void 0:n.orcaPlayers){var l=window.orcaPlayers[r];l&&l.events.push((a=t,(i=e)in(o={})?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a,o))}}var Re=function(e){var t,r=null==e||null===(t=e.taxonomy)||void 0===t?void 0:t.tags;return(null==r?void 0:r.filter((function(e){return e.text===le.BURNED_HEADLINE})).length)>0},De=function(e){return e=e.replace(/[^a-z0-9\s-]/gi,""),"https://d2p9l91d5g68ru.cloudfront.net/LiveConfig/".concat(e,".json")};function _e(e){var t;return!!(e&&e.streams&&(null===(t=e.streams[0])||void 0===t?void 0:t.url))}function Me(e){return e?"https://d2r02me222rgby.cloudfront.net/api/v1/ansvideos/findByUuid":"https://video-api.washingtonpost.com/api/v1/ansvideos/findByUuid"}var Le=function(e){var t,r;return(null===(t=e.additional_properties)||void 0===t?void 0:t.vertical)||"vertical"===(null===(r=e.additional_properties)||void 0===r?void 0:r.videoCategory)||!1};function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href;try{if(!/^https?:\/\//.test(e))return"";e=(e=e.split("/")[2]).split(":")[0]}catch(e){console.log(e)}return e}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href,t=function(e){return/washingtonpost\.com|localhost|thelily\.com|arcpublishing\.com|wpprivate\.com|wapo\.st|wapo\.pub|github\.io/.test(e)},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.self!==window.top?document.referrer:window.location.href;try{if(e=$e(e)){var t=e.split("."),r=t.length,n="co"===t[r-2]?3:2;if(r>=n){for(var o=[];n;)o.push(t[r-n]),n--;e=o.join(".")}}}catch(e){console.log(e)}return e}(e);if(t(r)||t(e))return!0;var n=$e(e);return!!/www-washingtonpost-com\.cdn\.ampproject\.org|wpit\.nile\.works|washpost\.arcpublishing\.com/.test(n)}var Ve=r(4993);function ze(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Fe=[],Ne=r.n(Ve)()((function(){for(var e=[],t=0;Fe.length>0&&t<10;t++){var r=Fe.pop(),n=r.name,o=r.data;e.push({name:n,data:o})}var i;i={postBody:function(){var e="";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.name,n=t.data,o={sourcetype:"httpevent",event:{name:r,data:n}};n.evtTime&&(o.time=Math.floor(n.evtTime/1e3)),e+=JSON.stringify(o)})),e}(e)},fetch("https://d1get58iwmjrxx.cloudfront.net/collector",{method:"POST",body:i.postBody}).then((function(e){})).catch((function(e){console.error(e)})),Fe.length&&Ne()}),1e4,{maxWait:1e4}),Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"send",value:function(e,t){var r;r={name:e,data:Object.assign({evtName:e,evtTime:Date.now()},t)},Fe.push(r),Ne()}}],null&&ze(t.prototype,null),r&&ze(t,r),e}(),We=function(e){var t,r;return null===(r=e.taxonomy)||void 0===r||null===(t=r.tags)||void 0===t?void 0:t.map((function(e){return e.text})).includes(ae.YOUTUBE)},He=r(4304),qe=r.n(He),Ye={homepage:"homepage",leaf:"leaf","article page":"embed","interactive graphics":"graphics",iframe:"iframe",other:"embed"},Ge={continuous:"rollthrough","continuous-carousel":"rollthrough-carousel",manual:"click",autoplay:"autoplay",looping:"looping",hover:"hover-carousel","click-carousel":"click-carousel","click-carousel-all":"click-carousel-all","click-carousel-forward":"click-carousel-forward","click-carousel-back":"click-carousel-back","swipe-carousel":"swipe-carousel","youtube-embed":"youtube"},Ze=function(){if("undefined"!=typeof window){if("homepage"===qe()(window,"Fusion.metas.contentType.value",""))return ne;if(function(){if(qe()(window,"pageName","").startsWith("video-leaf-page"))return!0}())return"leaf";if((e=qe()(window,"Fusion.template","")).startsWith("article")||e.startsWith("template/article")||function(){if("LUF"===window.pageType)return!0;var e=qe()(window,"__NEXT_DATA__.props.pageProps.globalContent.subtype");return"highlights"===e||"live-all"===e}())return oe;if("interactive graphics"===qe()(window,"wp_content_type",""))return"interactive graphics";if("wpvIframe"===window.pageType||/washingtonpost\.com\/(video|posttv)\/c\/embed/.test(window.location.href))return"iframe"}var e;return"other"},Xe="video-start",Je="video-pause",Ke="video-unpause",Qe="video-autoplay",et="sticky-player-close",tt="video_progress",rt="youtube-embed",nt=function(e){var t;return(null==e?void 0:e.playerTypeOverride)?e.playerTypeOverride:"undefined"!=typeof window?!0===(null===(t=window.wp_meta_data)||void 0===t?void 0:t.isHomepage)?"orca-embed-hp":window.self!==window.top?"orca-embed-iframe":window.wp_pb&&/video-leaf-page/.test(window.wp_pb.pageName)?"orca-leaf":"orca-embed":void 0},ot=function(e){var t=Ze();return t&&e?"".concat(e,"-").concat(qe()(Ye,t)):qe()(Ye,t)},it=function(e,t){return t.type===ue.LOOP_NO_CONTROLS?"looping-no-controls":e};function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){at(e,t,r[t])}))}return e}function ut(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var ct="SET_ORIGINAL",st="SET_ORIGINAL_FROM_API",dt="SET_NEXT",ft="SET_NEXT_FROM_API",pt="SET_API_FAILED",vt="SET_NEXT_FROM_FORCE_LOAD",bt=function(e,t){switch(t.type){case st:return{videoData:t.videoData,videoApiDataFailed:!1,originalVideo:t.videoData,fetchedByUUID:!0};case pt:return ut(lt({},e),{videoApiDataFailed:!0});case dt:return ut(lt({},e),{videoData:t.videoData});case ft:return ut(lt({},e),{videoData:t.videoData,videoApiDataFailed:!1});case ct:return ut(lt({},e),{videoData:t.videoData,originalVideo:t.videoData});case vt:return ut(lt({},e),{videoData:t.videoData,originalVideo:t.videoData,isForceLoadVideo:!0});default:return e}};function yt(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function gt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){yt(i,n,o,a,l,"next",e)}function l(e){yt(i,n,o,a,l,"throw",e)}a(void 0)}))}}function mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var wt="prod",St=function(){var e=gt((function(e,t,r){var n,o,i,a;return ht(this,(function(l){switch(l.label){case 0:if(r)return[2,null];n=e.videoApiUrl,o=e.domain,l.label=1;case 1:return l.trys.push([1,4,,5]),(i=new URL(n)).searchParams.append("uuid",t),i.searchParams.append("domain",o),[4,fetch(i,{cache:"no-cache"})];case 2:return[4,l.sent().json()];case 3:return[2,l.sent()];case 4:return a=l.sent(),console.error("Error retrieving video data",a),[2,null];case 5:return[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}(),At=function(){var e=gt((function(e){var t;return ht(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch(e,{cache:"no-cache"})];case 1:return[4,r.sent().json()];case 2:return[2,r.sent()];case 3:return t=r.sent(),console.error("Error retrieving live config",t),[2,null];case 4:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),Et=function(e,t,r){var n=(null==t?void 0:t[0])||{},o=A()((function(e,t){return O()({},e,t)}))(r,n);return Ot(e,o)},Ot=function(e,t){var r=(null==e?void 0:e[t._id])||{};if(Object.keys(r).length>0){if(r.forceStatus&&(t.status=r.forceStatus,s(t)&&delete t.additional_properties.publicationEndDate),r.forceTags){var n;t.taxonomy=t.taxonomy||{};var o=(null===(n=t.taxonomy)||void 0===n?void 0:n.tags.map((function(e){return e.text})))||[];r.forceTags.forEach((function(e){o.includes(e)||t.taxonomy.tags.push({text:e})}))}return r.forceAdditionalProperties&&(t.additional_properties=t.additional_properties||{},Object.assign(t.additional_properties,r.forceAdditionalProperties)),t}return t},Pt=function(){var e=gt((function(e,t,r,n,o){var i,a,l,u;return ht(this,(function(c){switch(c.label){case 0:return l=null===(i=e.additional_properties)||void 0===i?void 0:i.youtubeVideoId,We(e)&&l?[2,t({type:dt,videoData:e})]:(u=null==e||null===(a=e.additional_properties)||void 0===a?void 0:a.forceLoadVideo)?[4,xt(u,r,n,o,t)]:[3,2];case 1:return[2,c.sent()];case 2:return[2]}}))}));return function(t,r,n,o,i){return e.apply(this,arguments)}}(),xt=function(){var e=gt((function(e,t,r,n,o){var i,a;return ht(this,(function(l){switch(l.label){case 0:(i=new URL(t)).searchParams.append("uuid",e),i.searchParams.append("domain",r),l.label=1;case 1:return l.trys.push([1,4,,5]),[4,fetch(i,{cache:"no-cache"})];case 2:return[4,l.sent().json()];case 3:return a=l.sent(),Ie(D,!0,e),n.current.resetVideoState(!1),o({type:vt,videoData:a[0]}),n.current.initializeNewVideo(!1),[3,5];case 4:return l.sent(),console.error("Cannot fetch video data for video ID: "+e),Ue.send("errorGettingVideoData",{userAgent:window.navigator.userAgent,href:window.location.href,errorMessage:"Video data not found for video ID: "+e}),[3,5];case 5:return[2]}}))}));return function(t,r,n,o,i){return e.apply(this,arguments)}}(),Ct=function(e,t,r,n,o,i,a){w()(e,t)||(clearInterval(r.current),n({type:dt,videoData:t}),c(t)?o.current.resetVideoState(!1):s(t)&&a&&i({status:T}))},jt="colors",kt="sizes",Tt="space",It={gap:Tt,gridGap:Tt,columnGap:Tt,gridColumnGap:Tt,rowGap:Tt,gridRowGap:Tt,inset:Tt,insetBlock:Tt,insetBlockEnd:Tt,insetBlockStart:Tt,insetInline:Tt,insetInlineEnd:Tt,insetInlineStart:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,marginBlock:Tt,marginBlockEnd:Tt,marginBlockStart:Tt,marginInline:Tt,marginInlineEnd:Tt,marginInlineStart:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,paddingBlock:Tt,paddingBlockEnd:Tt,paddingBlockStart:Tt,paddingInline:Tt,paddingInlineEnd:Tt,paddingInlineStart:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,scrollMargin:Tt,scrollMarginTop:Tt,scrollMarginRight:Tt,scrollMarginBottom:Tt,scrollMarginLeft:Tt,scrollMarginX:Tt,scrollMarginY:Tt,scrollMarginBlock:Tt,scrollMarginBlockEnd:Tt,scrollMarginBlockStart:Tt,scrollMarginInline:Tt,scrollMarginInlineEnd:Tt,scrollMarginInlineStart:Tt,scrollPadding:Tt,scrollPaddingTop:Tt,scrollPaddingRight:Tt,scrollPaddingBottom:Tt,scrollPaddingLeft:Tt,scrollPaddingX:Tt,scrollPaddingY:Tt,scrollPaddingBlock:Tt,scrollPaddingBlockEnd:Tt,scrollPaddingBlockStart:Tt,scrollPaddingInline:Tt,scrollPaddingInlineEnd:Tt,scrollPaddingInlineStart:Tt,fontSize:"fontSizes",background:jt,backgroundColor:jt,backgroundImage:jt,borderImage:jt,border:jt,borderBlock:jt,borderBlockEnd:jt,borderBlockStart:jt,borderBottom:jt,borderBottomColor:jt,borderColor:jt,borderInline:jt,borderInlineEnd:jt,borderInlineStart:jt,borderLeft:jt,borderLeftColor:jt,borderRight:jt,borderRightColor:jt,borderTop:jt,borderTopColor:jt,caretColor:jt,color:jt,columnRuleColor:jt,fill:jt,outline:jt,outlineColor:jt,stroke:jt,textDecorationColor:jt,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:kt,minBlockSize:kt,maxBlockSize:kt,inlineSize:kt,minInlineSize:kt,maxInlineSize:kt,width:kt,minWidth:kt,maxWidth:kt,height:kt,minHeight:kt,maxHeight:kt,flexBasis:kt,gridTemplateColumns:kt,gridTemplateRows:kt,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Rt=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,Dt=()=>{const e=Object.create(null);return(t,r,...n)=>{const o=(e=>JSON.stringify(e,Rt))(t);return o in e?e[o]:e[o]=r(t,...n)}},_t=Symbol.for("sxs.internal"),Mt=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Lt=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:$t}=Object.prototype,Bt=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),Vt=/\s+(?![^()]*\))/,zt=e=>t=>e(..."string"==typeof t?String(t).split(Vt):[t]),Ft={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:zt(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:zt(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:zt(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:zt(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:zt(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:zt(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},Nt=/([\d.]+)([^]*)/,Ut=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,Wt=(e,t)=>e in Ht&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,n,o)=>r+("stretch"===n?`-moz-available${o};${Bt(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${Bt(e)}:${r}fit-content`)+o)):String(t),Ht={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},qt=e=>e?e+"-":"",Yt=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,n,o,i,a)=>"$"==i==!!o?e:(n||"--"==i?"calc(":"")+"var(--"+("$"===i?qt(t)+(a.includes("$")?"":qt(r))+a.replace(/\$/g,"-"):a)+")"+(n||"--"==i?"*"+(n||"")+(o||"1")+")":""))),Gt=/\s*,\s*(?![^()]*\))/,Zt=Object.prototype.toString,Xt=(e,t,r,n,o)=>{let i,a,l;const u=(e,t,r)=>{let c,s;const d=e=>{for(c in e){const v=64===c.charCodeAt(0),b=v&&Array.isArray(e[c])?e[c]:[e[c]];for(s of b){const e=/[A-Z]/.test(p=c)?p:p.replace(/-[^]/g,(e=>e[1].toUpperCase())),b="object"==typeof s&&s&&s.toString===Zt&&(!n.utils[e]||!t.length);if(e in n.utils&&!b){const t=n.utils[e];if(t!==a){a=t,d(t(s)),a=null;continue}}else if(e in Ft){const t=Ft[e];if(t!==l){l=t,d(t(s)),l=null;continue}}if(v&&(f=c.slice(1)in n.media?"@media "+n.media[c.slice(1)]:c,c=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,n,o,i)=>{const a=Nt.test(t),l=.0625*(a?-1:1),[u,c]=a?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===a?"max-":"min-")+u+":"+("="!==r[0]&&1===r.length?c.replace(Nt,((e,t,n)=>Number(t)+l*(">"===r?1:-1)+n)):c)+(o?") and ("+(">"===o[0]?"min-":"max-")+u+":"+(1===o.length?i.replace(Nt,((e,t,r)=>Number(t)+l*(">"===o?-1:1)+r)):i):"")+")"}))),b){const e=v?r.concat(c):[...r],n=v?[...t]:Ut(t,c.split(Gt));void 0!==i&&o(Jt(...i)),i=void 0,u(s,n,e)}else void 0===i&&(i=[[],t,r]),c=v||36!==c.charCodeAt(0)?c:`--${qt(n.prefix)}${c.slice(1).replace(/\$/g,"-")}`,s=b?s:"number"==typeof s?s&&e in Kt?String(s)+"px":String(s):Yt(Wt(e,null==s?"":s),n.prefix,n.themeMap[e]),i[0].push(`${v?`${c} `:`${Bt(c)}:`}${s}`)}}var f,p};d(e),void 0!==i&&o(Jt(...i)),i=void 0};u(e,t,r)},Jt=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,Kt={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Qt=e=>String.fromCharCode(e+(e>25?39:97)),er=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Qt(t%52)+r;return Qt(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),tr=["themed","global","styled","onevar","resonevar","allvar","inline"],rr=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},nr=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,n)=>{const{cssText:o}=r;let i="";if(o.startsWith("--sxs"))return"";if(e[n-1]&&(i=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return r.cssRules.length?`${i}${o}`:""}return o})).join("")},n=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(rr(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:u}=a;if(!u.startsWith("--sxs"))continue;const c=u.slice(14,-3).trim().split(/\s+/),s=tr[c[0]];s&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[s]={group:l,index:o,cache:new Set(c)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:o("","text/css"),rules:{},reset:n,toString:r}}const{sheet:i,rules:a}=t;for(let e=tr.length-1;e>=0;--e){const t=tr[e];if(!a[t]){const r=tr[e+1],n=a[r]?a[r].index:i.cssRules.length;i.insertRule("@media{}",n),i.insertRule(`--sxs{--sxs:${e}}`,n),a[t]={group:i.cssRules[n+1],index:n,cache:new Set([e])}}or(a[t])}};return n(),t},or=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},ir=Symbol(),ar=Dt(),lr=(e,t)=>ar(e,(()=>(...r)=>{let n={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[_t]){null==n.type&&(n.type=t[_t].type);for(const e of t[_t].composers)n.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(ur(t,e));return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),cr(e,n,t)})),ur=({variants:e,compoundVariants:t,defaultVariants:r,...n},o)=>{const i=`${qt(o.prefix)}c-${er(n)}`,a=[],l=[],u=Object.create(null),c=[];for(const e in r)u[e]=String(r[e]);if("object"==typeof e&&e)for(const t in e){s=u,d=t,$t.call(s,d)||(u[t]="undefined");const r=e[t];for(const e in r){const n={[t]:String(e)};"undefined"===String(e)&&c.push(t);const o=r[e],i=[n,o,!Lt(o)];a.push(i)}}var s,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...r}=e;t="object"==typeof t&&t||{};for(const e in r)r[e]=String(r[e]);const n=[r,t,!Lt(t)];l.push(n)}return[i,n,a,l,u,c]},cr=(e,t,r)=>{const[n,o,i,a]=sr(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;r<t[ir].length;r++){const[n,o]=t[ir][r];e.rules[n].apply(o)}return t[ir]=[],null}return t[ir]=[],t.rules={},tr.forEach((e=>t.rules[e]={apply:r=>t[ir].push([e,r])})),t})(r):null,u=(l||r).rules,c=`.${n}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,s=s=>{s="object"==typeof s&&s||fr;const{css:d,...f}=s,p={};for(const e in i)if(delete f[e],e in s){let t=s[e];"object"==typeof t&&t?p[e]={"@initial":i[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:i[e])}else p[e]=i[e];const v=new Set([...o]);for(const[n,o,i,a]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),Xt(o,[`.${n}`],[],e,(e=>{u.styled.apply(e)})));const t=dr(i,p,e.media),l=dr(a,p,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${n}-${er(i)}-${t}`;v.add(o);const l=(a?r.rules.resonevar:r.rules.onevar).cache,c=a?u.resonevar:u.onevar;l.has(o)||(l.add(o),Xt(i,[`.${o}`],[],e,(e=>{c.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${n}-${er(i)}-${o}`;v.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),Xt(i,[`.${t}`],[],e,(e=>{u.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${n}-i${er(d)}-css`;v.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),Xt(d,[`.${t}`],[],e,(e=>{u.inline.apply(e)})))}for(const e of String(s.className||"").trim().split(/\s+/))e&&v.add(e);const b=f.className=[...v].join(" ");return{type:t.type,className:b,selector:c,props:f,toString:()=>b,deferredInjector:l}};return Mt(s,{className:n,selector:c,[_t]:t,toString:()=>(r.rules.styled.cache.has(n)||s(),n)})},sr=e=>{let t="";const r=[],n={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),r.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===n[e]||"undefined"!==t||l.includes(t))&&(n[e]=t)}}return[t,r,n,new Set(o)]},dr=(e,t,r,n)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,u=0,c=!1;for(e in i){const n=i[e];let o=t[e];if(o!==n){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(n===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in r?r[e]:a.replace(/^@media ?/,"")),c=!0}u+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[u]=o[u]||[]).push([n?"cv":`${e}-${i[e]}`,a,c])}return o},fr={},pr=Dt(),vr=(e,t)=>pr(e,(()=>(...r)=>{const n=()=>{for(let n of r){n="object"==typeof n&&n||{};let r=er(n);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}Xt(n,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return Mt(n,{toString:n})})),br=Dt(),yr=(e,t)=>br(e,(()=>r=>{const n=`${qt(e.prefix)}k-${er(r)}`,o=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const o=[];Xt(r,[],[],e,(e=>o.push(e)));const i=`@keyframes ${n}{${o.join("")}}`;t.rules.global.apply(i)}return n};return Mt(o,{get name(){return o()},toString:o})})),gr=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+qt(this.prefix)+qt(this.scale)+this.token}toString(){return this.computedValue}},mr=Dt(),hr=(e,t)=>mr(e,(()=>(r,n)=>{n="object"==typeof r&&r||Object(n);const o=`.${r=(r="string"==typeof r?r:"")||`${qt(e.prefix)}t-${er(n)}`}`,i={},a=[];for(const t in n){i[t]={};for(const r in n[t]){const o=`--${qt(e.prefix)}${t}-${r}`,l=Yt(String(n[t][r]),e.prefix,t);i[t][r]=new gr(r,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const o=`${n===e.theme?":root,":""}.${r}{${a.join(";")}}`;t.rules.themed.apply(o)}return r};return{...i,get className(){return l()},selector:o,toString:l}})),wr=Dt(),Sr=Dt(),Ar=Object.defineProperty,Er=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Pr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,jr=(e,t,r)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kr=(e,t)=>{for(var r in t||(t={}))xr.call(t,r)&&jr(e,r,t[r]);if(Pr)for(var r of Pr(t))Cr.call(t,r)&&jr(e,r,t[r]);return e},Tr={"alpha0-static":"rgba(0, 0, 0, .65)","alpha20-static":"rgba(0, 0, 0, .45)","alpha40-static":"rgba(0, 0, 0, .40)","alpha60-static":"rgba(0, 0, 0, .35)","alpha80-static":"rgba(0, 0, 0, .30)","alpha100-static":"rgba(0, 0, 0, .25)","alpha200-static":"rgba(0, 0, 0, .20)","alpha300-static":"rgba(0, 0, 0, .15)","alpha400-static":"rgba(0, 0, 0, .10)","alpha500-static":"rgba(0, 0, 0, .05)","alpha50-static":"rgba(0, 0, 0, .50)","alpha25-static":"rgba(0, 0, 0, .05)","mustard600-static":"rgba(251, 241, 221, 1)","mustard500-static":"rgba(254, 227, 156, 1)","mustard400-static":"rgba(247, 202, 111, 1)","mustard300-static":"rgba(235, 179, 71, 1)","mustard200-static":"rgba(217, 158, 32, 1)","mustard100-static":"rgba(226, 163, 31, 1)","mustard80-static":"rgba(193, 139, 0, 1)","mustard60-static":"rgba(145, 104, 2, 1)","mustard40-static":"rgba(100, 72, 1, 1)","yellow600-static":"rgba(253, 250, 219, 1)","yellow100-static":"rgba(255, 236, 68, 1)","gold600-static":"rgba(250, 240, 227, 1)","gold500-static":"rgba(243, 228, 205, 1)","gold400-static":"rgba(232, 203, 164, 1)","gold300-static":"rgba(222, 181, 126, 1)","gold200-static":"rgba(211, 158, 76, 1)","gold100-static":"rgba(229, 160, 56, 1)","gold80-static":"rgba(194, 136, 47, 1)","gold60-static":"rgba(158, 97, 5, 1)","gold40-static":"rgba(109, 69, 8, 1)","green600-static":"rgba(238, 249, 234, 1)","green500-static":"rgba(213, 237, 202, 1)","green400-static":"rgba(178, 214, 160, 1)","green300-static":"rgba(145, 192, 120, 1)","green200-static":"rgba(110, 169, 81, 1)","green100-static":"rgba(54, 167, 92, 1)","green80-static":"rgba(73, 147, 39, 1)","green60-static":"rgba(56, 113, 30, 1)","green40-static":"rgba(40, 81, 21, 1)","orange600-static":"rgba(255, 239, 224, 1)","orange500-static":"rgba(251, 225, 195, 1)","orange400-static":"rgba(249, 194, 150, 1)","orange300-static":"rgba(241, 162, 106, 1)","orange200-static":"rgba(230, 130, 61, 1)","orange100-static":"rgba(243, 117, 14, 1)","orange80-static":"rgba(216, 97, 0, 1)","orange60-static":"rgba(166, 74, 0, 1)","orange40-static":"rgba(118, 53, 2, 1)","teal600-static":"rgba(234, 251, 254, 1)","teal500-static":"rgba(199, 234, 239, 1)","teal400-static":"rgba(159, 203, 211, 1)","teal300-static":"rgba(118, 172, 182, 1)","teal200-static":"rgba(74, 142, 155, 1)","teal100-static":"rgba(3, 175, 202, 1)","teal80-static":"rgba(15, 113, 128, 1)","teal60-static":"rgba(15, 84, 95, 1)","teal40-static":"rgba(11, 57, 64, 1)","purple600-static":"rgba(250, 238, 249, 1)","purple500-static":"rgba(248, 221, 244, 1)","purple400-static":"rgba(234, 179, 223, 1)","purple300-static":"rgba(217, 137, 201, 1)","purple200-static":"rgba(201, 92, 182, 1)","purple100-static":"rgba(209, 56, 191, 1)","purple80-static":"rgba(182, 35, 161, 1)","purple60-static":"rgba(136, 27, 121, 1)","purple40-static":"rgba(93, 18, 84, 1)","pink600-static":"rgba(252, 233, 239, 1)","pink500-static":"rgba(249, 222, 231, 1)","pink400-static":"rgba(239, 180, 191, 1)","pink300-static":"rgba(228, 138, 155, 1)","pink200-static":"rgba(213, 94, 119, 1)","pink100-static":"rgba(255, 79, 131, 1)","pink80-static":"rgba(195, 39, 85, 1)","pink60-static":"rgba(149, 25, 64, 1)","pink40-static":"rgba(105, 11, 44, 1)","red600-static":"rgba(253, 231, 231, 1)","red500-static":"rgba(249, 221, 219, 1)","red400-static":"rgba(242, 180, 171, 1)","red300-static":"rgba(229, 138, 124, 1)","red200-static":"rgba(211, 95, 79, 1)","red100-static":"rgba(234, 0, 23, 1)","red80-static":"rgba(190, 44, 37, 1)","red60-static":"rgba(142, 31, 27, 1)","red40-static":"rgba(99, 16, 14, 1)","blue600-static":"rgba(231, 240, 254, 1)","blue500-static":"rgba(211, 231, 250, 1)","blue400-static":"rgba(172, 197, 231, 1)","blue300-static":"rgba(132, 164, 214, 1)","blue200-static":"rgba(87, 132, 197, 1)","blue100-static":"rgba(22, 109, 252, 1)","blue80-static":"rgba(19, 102, 179, 1)","blue60-static":"rgba(15, 75, 132, 1)","blue40-static":"rgba(10, 50, 88, 1)","gray700-static":"rgba(255, 255, 255, 1)","gray600-static":"rgba(247, 247, 247, 1)","gray500-static":"rgba(240, 240, 240, 1)","gray400-static":"rgba(233, 233, 233, 1)","gray300-static":"rgba(212, 212, 212, 1)","gray200-static":"rgba(170, 170, 170, 1)","gray100-static":"rgba(115, 115, 115, 1)","gray80-static":"rgba(89, 89, 89, 1)","gray60-static":"rgba(73, 73, 73, 1)","gray40-static":"rgba(42, 42, 42, 1)","gray20-static":"rgba(17, 17, 17, 1)","gray0-static":"rgba(0, 0, 0, 1)"},Ir="wpds",Rr="767px",Dr="900px",_r="1024px",Mr="1280px",Lr="1440px",$r=(t=>{const r=(e=>{let t=!1;const r=wr(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:r,media:n,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...It},utils:"object"==typeof e.utils&&e.utils||{}},l=nr(o),u={css:lr(a,l),globalCss:vr(a,l),keyframes:yr(a,l),createTheme:hr(a,l),reset(){l.reset(),u.theme.toString()},theme:{},sheet:l,config:a,prefix:r,getCssText:l.toString,toString:l.toString};return String(u.theme=u.createTheme(i)),u}));return t||r.reset(),r})(t);return r.styled=(({config:t,sheet:r})=>Sr(t,(()=>{const n=lr(t,r);return(...t)=>{const r=n(...t),o=r[_t].type,i=e.forwardRef(((t,n)=>{const i=t&&t.as||o,{props:a,deferredInjector:l}=r(t);return delete a.as,a.ref=n,l?e.createElement(e.Fragment,null,e.createElement(i,a),e.createElement(l,null)):e.createElement(i,a)}));return i.className=r.className,i.displayName=`Styled.${o.displayName||o.name||o}`,i.selector=r.selector,i.toString=()=>r.selector,i[_t]=r[_t],i}})))(r),r})({prefix:Ir,theme:{colors:kr(kr(kr({},{alpha0:"rgba(0, 0, 0, .50)",alpha20:"rgba(0, 0, 0, .45)",alpha40:"rgba(0, 0, 0, .40)",alpha60:"rgba(0, 0, 0, .35)",alpha80:"rgba(0, 0, 0, .30)",alpha100:"rgba(0, 0, 0, .25)",alpha200:"rgba(0, 0, 0, .20)",alpha300:"rgba(0, 0, 0, .15)",alpha400:"rgba(0, 0, 0, .10)",alpha500:"rgba(0, 0, 0, .05)",alpha50:"rgba(0, 0, 0, .50)",alpha25:"rgba(0, 0, 0, .05)",mustard600:"rgba(251, 241, 221, 1)",mustard500:"rgba(254, 227, 156, 1)",mustard400:"rgba(247, 202, 111, 1)",mustard300:"rgba(235, 179, 71, 1)",mustard200:"rgba(217, 158, 32, 1)",mustard100:"rgba(226, 163, 31, 1)",mustard80:"rgba(193, 139, 0, 1)",mustard60:"rgba(145, 104, 2, 1)",mustard40:"rgba(100, 72, 1, 1)",yellow600:"rgba(253, 250, 219, 1)",yellow100:"rgba(255, 236, 68, 1)",gold600:"rgba(250, 240, 227, 1)",gold500:"rgba(243, 228, 205, 1)",gold400:"rgba(232, 203, 164, 1)",gold300:"rgba(222, 181, 126, 1)",gold200:"rgba(211, 158, 76, 1)",gold100:"rgba(229, 160, 56, 1)",gold80:"rgba(194, 136, 47, 1)",gold60:"rgba(158, 97, 5, 1)",gold40:"rgba(109, 69, 8, 1)",green600:"rgba(238, 249, 234, 1)",green500:"rgba(213, 237, 202, 1)",green400:"rgba(178, 214, 160, 1)",green300:"rgba(145, 192, 120, 1)",green200:"rgba(110, 169, 81, 1)",green100:"rgba(54, 167, 92, 1)",green80:"rgba(73, 147, 39, 1)",green60:"rgba(56, 113, 30, 1)",green40:"rgba(40, 81, 21, 1)",orange600:"rgba(255, 239, 224, 1)",orange500:"rgba(251, 225, 195, 1)",orange400:"rgba(249, 194, 150, 1)",orange300:"rgba(241, 162, 106, 1)",orange200:"rgba(230, 130, 61, 1)",orange100:"rgba(243, 117, 14, 1)",orange80:"rgba(216, 97, 0, 1)",orange60:"rgba(166, 74, 0, 1)",orange40:"rgba(118, 53, 2, 1)",teal600:"rgba(234, 251, 254, 1)",teal500:"rgba(199, 234, 239, 1)",teal400:"rgba(159, 203, 211, 1)",teal300:"rgba(118, 172, 182, 1)",teal200:"rgba(74, 142, 155, 1)",teal100:"rgba(3, 175, 202, 1)",teal80:"rgba(15, 113, 128, 1)",teal60:"rgba(15, 84, 95, 1)",teal40:"rgba(11, 57, 64, 1)",purple600:"rgba(250, 238, 249, 1)",purple500:"rgba(248, 221, 244, 1)",purple400:"rgba(234, 179, 223, 1)",purple300:"rgba(217, 137, 201, 1)",purple200:"rgba(201, 92, 182, 1)",purple100:"rgba(209, 56, 191, 1)",purple80:"rgba(182, 35, 161, 1)",purple60:"rgba(136, 27, 121, 1)",purple40:"rgba(93, 18, 84, 1)",pink600:"rgba(252, 233, 239, 1)",pink500:"rgba(249, 222, 231, 1)",pink400:"rgba(239, 180, 191, 1)",pink300:"rgba(228, 138, 155, 1)",pink200:"rgba(213, 94, 119, 1)",pink100:"rgba(255, 79, 131, 1)",pink80:"rgba(195, 39, 85, 1)",pink60:"rgba(149, 25, 64, 1)",pink40:"rgba(105, 11, 44, 1)",red600:"rgba(253, 231, 231, 1)",red500:"rgba(249, 221, 219, 1)",red400:"rgba(242, 180, 171, 1)",red300:"rgba(229, 138, 124, 1)",red200:"rgba(211, 95, 79, 1)",red100:"rgba(234, 0, 23, 1)",red80:"rgba(190, 44, 37, 1)",red60:"rgba(142, 31, 27, 1)",red40:"rgba(99, 16, 14, 1)",blue600:"rgba(231, 240, 254, 1)",blue500:"rgba(211, 231, 250, 1)",blue400:"rgba(172, 197, 231, 1)",blue300:"rgba(132, 164, 214, 1)",blue200:"rgba(87, 132, 197, 1)",blue100:"rgba(22, 109, 252, 1)",blue80:"rgba(19, 102, 179, 1)",blue60:"rgba(15, 75, 132, 1)",blue40:"rgba(10, 50, 88, 1)",gray700:"rgba(255, 255, 255, 1)",gray600:"rgba(247, 247, 247, 1)",gray500:"rgba(240, 240, 240, 1)",gray400:"rgba(233, 233, 233, 1)",gray300:"rgba(212, 212, 212, 1)",gray200:"rgba(170, 170, 170, 1)",gray100:"rgba(115, 115, 115, 1)",gray80:"rgba(89, 89, 89, 1)",gray60:"rgba(73, 73, 73, 1)",gray40:"rgba(42, 42, 42, 1)",gray20:"rgba(17, 17, 17, 1)",gray0:"rgba(0, 0, 0, 1)"}),Tr),{errorContainer:"$red600",error:"$red200",warningContainer:"$orange600",warning:"$orange200",successContainer:"$green600",success:"$green80",signalContainer:"$blue600",signal:"$blue200","onMessage-subtle-hover":"$gray80","onMessage-subtle":"$gray60","onMessage-hover":"$gray80",onMessage:"$gray20",portal:"$gray700","onPortal-subtle-hover":"$gray100","onPortal-subtle":"$gray80","onPortal-hover":"$gray100",onPortal:"$gray20","onSurface-subtle-hover":"$gray100","onSurface-subtle":"$gray80","onSurface-hover":"$gray100",onSurface:"$gray20","surface-highest":"$gray700",surface:"$gray700","onBackground-subtle-hover":"$gray100","onBackground-subtle":"$gray80","onBackground-hover":"$gray100",onBackground:"$gray20","background-forSurfaces":"$gray600",background:"$gray700",accessible:"$gray80","outline-subtle":"$alpha500",outline:"$alpha400",subtle:"$gray300",faint:"$gray400",onDisabled:"$alpha80",disabled:"$alpha500","onCtaContainer-subtle-hover":"$gray80","onCtaContainer-subtle":"$gray60","onCtaContainer-hover":"$gray80",onCtaContainer:"$gray20",ctaContainer:"$blue600","onCta-hover":"$gray600-static",onCta:"$gray700-static","cta-hover":"$blue80",cta:"$blue100","onSecondary-subtle-hover":"$gray100","onSecondary-subtle":"$gray80","onSecondary-hover":"$gray100",onSecondary:"$gray20","secondary-hover":"$gray500",secondary:"$gray700","onPrimary-subtle-hover":"$gray200","onPrimary-subtle":"$gray300","onPrimary-hover":"$gray200",onPrimary:"$gray700","primary-hover":"$gray40",primary:"$gray20"}),sizes:{100:"1rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","025":"0.25rem","050":"0.5rem","075":"0.75rem","087":"0.875rem"},space:{100:"1rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","025":"0.25rem","050":"0.5rem","075":"0.75rem"},radii:{100:"1rem",125:"1.25rem",150:"1.5rem","012":"0.125rem","025":"0.25rem","050":"0.5rem","075":"0.75rem",round:"9999px"},fonts:{headline:"Postoni, garamond, serif",subhead:"Franklin, arial, sans-serif",body:"georgia, Times New Roman, serif",meta:"Franklin, arial, sans-serif",magazine:"PostoniDisplayMag, garamond, serif"},fontSizes:{100:"1rem",112:"1.125rem",125:"1.25rem",150:"1.5rem",175:"1.75rem",200:"2rem",225:"2.25rem",250:"2.5rem",275:"2.75rem",300:"3rem",350:"3.5rem",400:"4rem",450:"4.5rem",500:"5rem","075":"0.75rem","087":"0.875rem"},fontWeights:{light:300,regular:400,bold:700,ultra:800},shadows:{50:"0px 2px 0px 0px #D5D5D5",100:"0px 1px 2px 0px rgba(0, 0, 0, 0.15)",200:"0px 2px 4px 0px rgba(0, 0, 0, 0.15)",300:"0px 4px 8px 0px rgba(0, 0, 0, 0.15)",400:"0px 8px 16px 0px rgba(0, 0, 0, 0.15)",500:"0px 16px 32px 0px rgba(0, 0, 0, 0.15)"},zIndices:{offer:400,shell:300,ads:200,page:100},lineHeights:(e=>Er(e,Or({headline:"$110",body:"$160",meta:"$125",subhead:"$meta"})))(kr({},{100:1,110:1.1,125:1.25,150:1.5,160:1.6,175:1.75,200:2,240:2.4})),transitions:{allFast:"all $fast $inOut",fast:"0.2s",normal:"0.3s",inOut:"cubic-bezier(.4, 0, .2, 1)"},borderStyles:{},borderWidths:{},letterSpacings:{}},media:{sm:`(max-width: ${Rr})`,md:`(min-width: calc(${Rr} + 1px)) and (max-width: ${Dr})`,lg:`(min-width: calc(${Dr} + 1px)) and (max-width: ${_r})`,xl:`(min-width: calc(${_r} + 1px)) and (max-width: ${Mr})`,xxl:`(min-width: calc(${Mr} + 1px)) and (max-width: ${Lr})`,notSm:`(min-width: calc(${Rr} + 1px))`,notMd:`(min-width: calc(${Dr} + 1px))`,notLg:`(min-width: calc(${_r} + 1px))`,notXl:`(min-width: calc(${Mr} + 1px))`,notXxl:`(min-width: calc(${Lr} + 1px ))`,minSm:`(min-width: calc(${Rr} + 1px))`,minMd:`(min-width: calc(${Dr} + 1px))`,minLg:`(min-width: calc(${_r} + 1px))`,minXl:`(min-width: calc(${Mr} + 1px))`,minXxl:`(min-width: calc(${Lr} + 1px ))`,maxSm:`(max-width: ${Rr})`,maxMd:`(max-width: ${Dr})`,maxLg:`(max-width: ${_r})`,maxXl:`(max-width: ${Mr})`,maxXxl:`(max-width: ${Lr})`,reducedMotion:"(prefers-reduced-motion)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},utils:{px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),my:e=>({marginTop:e,marginBottom:e}),mx:e=>({marginLeft:e,marginRight:e}),size:e=>({width:e,height:e})}}),{styled:Br,css:Vr,globalCss:zr,keyframes:Fr,getCssText:Nr,theme:Ur,createTheme:Wr,config:Hr,reset:qr}=$r,Yr=(Hr.utils,Wr(`${Ir}-dark.${Ir}-dark`,{colors:kr(kr(kr({},{alpha0:"rgba(255, 255, 255, .50)",alpha20:"rgba(255, 255, 255, .45)",alpha40:"rgba(255, 255, 255, .40)",alpha60:"rgba(255, 255, 255, .35)",alpha80:"rgba(255, 255, 255, .30)",alpha100:"rgba(255, 255, 255, .25)",alpha200:"rgba(255, 255, 255, .20)",alpha300:"rgba(255, 255, 255, .15)",alpha400:"rgba(255, 255, 255, .10)",alpha500:"rgba(255, 255, 255, .05)",alpha50:"rgba(255, 255, 255, .20)",alpha25:"rgba(255, 255, 255, .05)",mustard600:"rgba(33, 32, 30, 1)",mustard500:"rgba(44, 39, 27, 1)",mustard400:"rgba(64, 52, 29, 1)",mustard300:"rgba(83, 64, 25, 1)",mustard200:"rgba(104, 75, 15, 1)",mustard100:"rgba(102, 76, 6, 1)",mustard80:"rgba(124, 90, 0, 1)",mustard60:"rgba(161, 125, 37, 1)",mustard40:"rgba(184, 171, 139, 1)",yellow600:"rgba(27, 26, 23, 1)",yellow100:"rgba(40, 37, 11, 1)",gold600:"rgba(31, 30, 28, 1)",gold500:"rgba(42, 39, 35, 1)",gold400:"rgba(60, 53, 43, 1)",gold300:"rgba(79, 65, 45, 1)",gold200:"rgba(102, 77, 37, 1)",gold100:"rgba(105, 70, 19, 1)",gold80:"rgba(128, 89, 31, 1)",gold60:"rgba(172, 121, 42, 1)",gold40:"rgba(187, 168, 140, 1)",green600:"rgba(30, 33, 30, 1)",green500:"rgba(36, 40, 34, 1)",green400:"rgba(49, 59, 44, 1)",green300:"rgba(59, 78, 48, 1)",green200:"rgba(65, 101, 48, 1)",green100:"rgba(34, 112, 60, 1)",green80:"rgba(62, 125, 33, 1)",green60:"rgba(113, 153, 94, 1)",green40:"rgba(168, 184, 160, 1)",orange600:"rgba(36, 31, 27, 1)",orange500:"rgba(43, 39, 34, 1)",orange400:"rgba(68, 53, 41, 1)",orange300:"rgba(97, 65, 43, 1)",orange200:"rgba(133, 75, 35, 1)",orange100:"rgba(150, 76, 15, 1)",orange80:"rgba(179, 81, 0, 1)",orange60:"rgba(192, 127, 74, 1)",orange40:"rgba(200, 174, 154, 1)",teal600:"rgba(29, 33, 33, 1)",teal500:"rgba(36, 42, 43, 1)",teal400:"rgba(50, 64, 67, 1)",teal300:"rgba(61, 89, 94, 1)",teal200:"rgba(61, 118, 129, 1)",teal100:"rgba(2, 106, 122, 1)",teal80:"rgba(78, 150, 162, 1)",teal60:"rgba(148, 178, 183, 1)",teal40:"rgba(200, 210, 212, 1)",purple600:"rgba(33, 29, 33, 1)",purple500:"rgba(43, 38, 42, 1)",purple400:"rgba(74, 56, 70, 1)",purple300:"rgba(112, 71, 103, 1)",purple200:"rgba(165, 75, 149, 1)",purple100:"rgba(198, 53, 181, 1)",purple80:"rgba(204, 100, 189, 1)",purple60:"rgba(204, 157, 198, 1)",purple40:"rgba(220, 204, 218, 1)",pink600:"rgba(36, 32, 33, 1)",pink500:"rgba(44, 39, 41, 1)",pink400:"rgba(76, 57, 61, 1)",pink300:"rgba(117, 71, 79, 1)",pink200:"rgba(175, 77, 98, 1)",pink100:"rgba(173, 54, 89, 1)",pink80:"rgba(213, 103, 136, 1)",pink60:"rgba(210, 157, 174, 1)",pink40:"rgba(223, 203, 210, 1)",red600:"rgba(38, 31, 31, 1)",red500:"rgba(45, 39, 39, 1)",red400:"rgba(77, 58, 55, 1)",red300:"rgba(120, 72, 65, 1)",red200:"rgba(184, 83, 69, 1)",red100:"rgba(240, 46, 65, 1)",red80:"rgba(212, 114, 109, 1)",red60:"rgba(210, 165, 164, 1)",red40:"rgba(225, 208, 208, 1)",blue600:"rgba(31, 34, 38, 1)",blue500:"rgba(37, 41, 44, 1)",blue400:"rgba(55, 63, 73, 1)",blue300:"rgba(69, 86, 112, 1)",blue200:"rgba(74, 112, 168, 1)",blue100:"rgba(22, 109, 252, 1)",blue80:"rgba(88, 146, 201, 1)",blue60:"rgba(154, 179, 203, 1)",blue40:"rgba(205, 213, 221, 1)",gray700:"rgba(20, 20, 20, 1)",gray600:"rgba(26, 26, 26, 1)",gray500:"rgba(32, 32, 32, 1)",gray400:"rgba(37, 37, 37, 1)",gray300:"rgba(51, 51, 51, 1)",gray200:"rgba(79, 79, 79, 1)",gray100:"rgba(127, 127, 127, 1)",gray80:"rgba(161, 161, 161, 1)",gray60:"rgba(177, 177, 177, 1)",gray40:"rgba(222, 222, 222, 1)",gray20:"rgba(242, 242, 242, 1)",gray0:"rgba(255, 255, 255, 1)"}),Tr),{errorContainer:"$red600",error:"$red200",warningContainer:"$orange600",warning:"$orange200",successContainer:"$green600",success:"$green80",signalContainer:"$blue600",signal:"$blue200","onMessage-subtle-hover":"$gray80","onMessage-subtle":"$gray60","onMessage-hover":"$gray80",onMessage:"$gray20",portal:"$gray200","onPortal-subtle-hover":"$gray40","onPortal-subtle":"$gray20","onPortal-hover":"$gray40",onPortal:"$gray0","onSurface-subtle-hover":"$gray80","onSurface-subtle":"$gray60","onSurface-hover":"$gray80",onSurface:"$gray0","surface-highest":"$gray300",surface:"$gray500","onBackground-subtle-hover":"$gray100","onBackground-subtle":"$gray80","onBackground-hover":"$gray100",onBackground:"$gray0","background-forSurfaces":"$gray700",background:"$gray700",accessible:"$gray80","outline-subtle":"$alpha500",outline:"$alpha400",subtle:"$gray300",faint:"$gray400",onDisabled:"$alpha80",disabled:"$alpha500","onCtaContainer-subtle-hover":"$gray80","onCtaContainer-subtle":"$gray60","onCtaContainer-hover":"$gray80",onCtaContainer:"$gray0",ctaContainer:"$blue600","onCta-hover":"$gray600-static",onCta:"$gray700-static","cta-hover":"$blue300",cta:"$blue100","onSecondary-subtle-hover":"$gray100","onSecondary-subtle":"$gray80","onSecondary-hover":"$gray100",onSecondary:"$gray0","secondary-hover":"$gray500",secondary:"$gray700","onPrimary-subtle-hover":"$gray200","onPrimary-subtle":"$gray300","onPrimary-hover":"$gray200",onPrimary:"$gray700","primary-hover":"$gray40",primary:"$gray0"})})),Gr={get className(){return Yr.className,`${Ir}-dark`},selector:Yr.selector,colors:Yr.colors,toString:()=>(Yr.toString(),`${Ir}-dark`)};function Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}zr({":root":{"--base":"16px",lineHeight:"$meta",$$screenSize:"unknown","@sm":{$$screenSize:"small"},"@md":{$$screenSize:"medium"},"@lg":{$$screenSize:"large"},"@xl":{$$screenSize:"xlarge"},"@xxl":{$$screenSize:"xxlarge"},"@minXxl":{$$screenSize:"infinity"}},"*":{boxSizing:"border-box","&:focus-visible":{outline:"1px auto Highlight","@media screen and (-webkit-min-device-pixel-ratio: 0)":{outline:"1px auto -webkit-focus-ring-color"}}},html:{"-webkit-font-smoothing":"antialiased",textRendering:"optimizeLegibility",textSizeAdjust:"100%"},body:{margin:0,fontFamily:"$meta",overflowX:"hidden"},"@font-face":[{fontFamily:"Postoni",fontWeight:700,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniWide-Bold.woff2)"},{fontFamily:"Postoni",fontWeight:300,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniWide-Regular.woff2)"},{fontFamily:"Franklin",fontWeight:700,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/ITC_Franklin-Bold.woff2)"},{fontFamily:"Franklin",fontWeight:300,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/ITC_Franklin-Light.woff2)"},{fontFamily:"PostoniDisplayMag",fontWeight:800,fontDisplay:"fallback",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniDisplayMag-Ultra.woff2)"},{fontFamily:"PostoniDisplayMag",fontWeight:800,fontDisplay:"fallback",fontStyle:"italic",src:"url(https://www.washingtonpost.com/wp-stat/assets/fonts/PostoniDisplayMag-Ultra_Italic.woff2)"}]}),zr({"@dark":kr({},Object.keys(Gr.colors).reduce(((e,t)=>{let r=Gr.colors[t],n="$"===r.value.substring(0,1)?`$colors${r.value}`:r.value;return kr({[r.variable]:n},e)}),{}))});var Xr={MINI:"mini",SMALL:"small",MEDIUM:"medium",LARGE:"large"};function Jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Jr(e,t,r[t])}))}return e}var Qr=Br("div",{backgroundColor:"rgba(0,0,0,0.7)",display:"flex",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"80%",height:"10%",justifyContent:"center",alignItems:"center",fontFamily:"$meta",color:"$secondary",fontSize:"$100",fontWeight:"$light",textAlign:"center",lineHeight:"$125"}),en=function(e){var r=e.playerSize,n=r===Xr.SMALL||r===Xr.MINI;return t().createElement(Qr,{css:Kr({},n&&{height:"unset"})},"This live event has ended.")};function tn(e){return{hours:Math.floor(e/3600),minutes:Math.floor(e%3600/60),seconds:Math.floor(e%60)}}en.propTypes={playerSize:i().string};var rn=function(e){return e<10?"0".concat(e):"".concat(e)},nn=function(e){var t=e.hours,r=e.minutes,n=e.seconds;return"".concat(t,":").concat(function(e){return e<10?"0".concat(e):"".concat(e)}(r),":").concat(rn(n))},on=function(e){var t=e.hours,r=void 0===t?0:t,n=e.minutes,o=e.seconds;return"".concat(n+=60*r,":").concat(rn(o))},an="(not set)",ln="dark",un="human_read",cn="Opera",sn="Chrome",dn="Safari",fn="Firefox",pn=function(e){if("undefined"!=typeof document){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2==t.length?t.pop().split(";").shift():void 0}};function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vn(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vn(e,t):void 0}}(e,t)||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.")}()}var gn=function(e,t,r,n){if(!e||0===e.length)return r;var o=n?e.map((function(e){return e[n]})):e;return o.join(t)},mn=function(e){var t=e.topPercent,r=e.bottomPercent;return[t?"linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 3%, rgba(0, 0, 0, 0) ".concat(t,"%)"):null,r?"linear-gradient(to top, rgba(0, 0, 0, 0.75) 3%, rgba(0, 0, 0, 0) ".concat(r,"%)"):null].filter(Boolean).join()};function hn(e,t,r){if("undefined"!=typeof document){var n=document.createElement("script");n.src=e,n.async=!0,n.onload=function(){return null==t?void 0:t()},n.onerror=function(){return null==r?void 0:r("Failed to load script: ".concat(e))},document.body.appendChild(n)}}var wn=function(){var e,t,r,n=(null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.userAgent)||"",o=(bn(r={},cn,n.includes(cn)||n.includes("OPR")),bn(r,"Edge",n.includes("Edg")),bn(r,sn,n.includes(sn)),bn(r,dn,n.includes(dn)),bn(r,fn,n.includes(fn)),r);return Object.keys(o).find((function(e){return o[e]}))||""},Sn=function(){var e=pn("wp_devicetype");if(e)return"2"===e?"tablet":"1"===e?"mobile":"desktop";var t=An(),r=/ipod|iphone|ipad/i.test(t),n=/tablet|ipad/i.test(t),o=!n&&(r||/[^-]mobi/i.test(t));return n?"tablet":o?"mobile":"desktop"},An=function(){var e,t;return"undefined"==typeof window?"":(null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.userAgent)?navigator.userAgent:""};function En(e,t,r){return Math.max(t,Math.min(r,e))}function On(e,t){t.forEach((function(t){var r=yn(t,2),n=r[0],o=r[1];e.addEventListener(n,o)}))}function Pn(e,t){t.forEach((function(t){var r=yn(t,2),n=r[0],o=r[1];e.removeEventListener(n,o)}))}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:960,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="".concat("https://www.washingtonpost.com/wp-apps/imrs.php","?src=").concat(encodeURIComponent(e),"&w=").concat(t);return r&&(n+="&h=".concat(r)),n}function Cn(e){return e.toString().padStart(2,"0")}var jn=function(){var e,r,n,o=l().videoData;if(!o||!o._id||Te(o)||"ended"===(null==o?void 0:o.status))return null;var i,a,u,c,s,d,f,p={"@context":"https://schema.org","@type":"VideoObject",name:null===(e=o.headlines)||void 0===e?void 0:e.basic,description:null===(r=o.description)||void 0===r?void 0:r.basic,thumbnailUrl:(null===(n=o.promo_image)||void 0===n?void 0:n.url)?xn(o.promo_image.url):"https://www.washingtonpost.com/wp-apps/imrs.php?src=https%3A%2F%2Fwww.washingtonpost.com%2Fplayer%2Fprod%2Fimg%2Fwp_grey.jpg&w=960",uploadDate:o.publish_date,embedUrl:"https://www.washingtonpost.com/video/c/embed/".concat(o._id)};if("live"===o.video_type){var v;p.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:o.display_date,endDate:null===(v=o.additional_properties)||void 0===v?void 0:v.publicationEndDate}]}else{var b,y=null===(b=o.streams)||void 0===b?void 0:b.filter((function(e){return"mp4"===e.stream_type&&600===e.bitrate}))[0];(null==y?void 0:y.url)&&(p.contentUrl=y.url),p.duration=(a=(i=tn(o.duration/1e3)).hours,u=i.minutes,c=i.seconds,s=a?"".concat(a,"H"):"",d="".concat(u,"M"),f="".concat(c,"S"),"PT".concat(s).concat(d).concat(f))}return t().createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(p)}})};jn.propTypes={video:i().object};var kn=(0,e.createContext)({isStickyEnabled:!1,setIsStickyEnabled:function(){},isOpenSticky:!1,playingId:null,updateStickyContext:function(){},setOverrideStickyContext:function(){}}),Tn=function(){return(0,e.useContext)(kn)};function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Rn=(0,e.createContext)({promoState:Pe,setPromoState:function(){}}),Dn=function(){return(0,e.useContext)(Rn)},_n=function(r){var n=r.children,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?In(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(Pe),2),i=o[0],a=o[1],l=(0,e.useMemo)((function(){return{promoState:i,setPromoState:a}}),[i,a]);return t().createElement(Rn.Provider,{value:l},n)};_n.propTypes={children:i().node};var Mn={adState:null,setAdState:function(){},adSettings:null,shouldShowAds:!1,transitionToAd:function(){},isAdsInitialized:!0,isIrisReady:!1},Ln=(0,e.createContext)(Mn),$n=function(){return(0,e.useContext)(Ln)},Bn=function(t){var r=t.autoplayState,n=t.resetControlsState,o=t.setAdState,i=t.updateAutoplayState,a=t.adState,l=t.removeHLS,u=t.videoElementRef,c=t.closeStickyPlayer,s=t.isOpenSticky,d=t.setIsFullscreen,f=t.setRenderControls,p=t.setPromoState,v=t.isFullscreen;return(0,e.useCallback)((function(e){var t;a!==ce.ERROR&&o(ce.INIT),f(!1),p(xe),n(),i({isPlaythrough:e,status:(null==r?void 0:r.status)?I:null}),l(),t=u.current.getElementsByTagName("track"),Array.from(t).forEach((function(e){e.remove()})),!e&&s&&c(),v&&d(!1)}),[null==r?void 0:r.status,a,o,f,p,n,i,l,u,s,c,d,v])},Vn=(0,e.createContext)({current:null}),zn=function(){return(0,e.useContext)(Vn)},Fn=function(r){var n=r.children,o=r.initialValue,i=void 0===o?null:o,a=(0,e.useRef)(i);return t().createElement(Vn.Provider,{value:a},n)};function Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Fn.propTypes={children:i().node,initialValue:i().any};var Un=function(e,t,r){e&&e.addEventListener(t,r)},Wn=function(e,t,r){e&&e.removeEventListener(t,r)},Hn=function(e,t,r){if(e){var n=new CustomEvent(t,{detail:r});e.dispatchEvent(n)}};function qn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qn(e,t,r[t])}))}return e}function Gn(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const Zn=function(e){var t,r,n,o,i,a,l,u,c,s,d,f,p,v,b,y,g,m,h=e.videoData,w=e.eventAction,S=e.label,A=e.config,E=void 0===A?{}:A,O=e.soundMuted,P=e.videoElementRef,x=e.avAdMeta,C=e.adAttribute,j=e.autoplayState,k=void 0===j?{}:j,T=e.playerType,I=e.avLiveProgress,R=e.videostart_id,D=e.carouselState,_=void 0===D?{}:D,M=e.engaged_time;if("undefined"!=typeof window&&window.dataLayer&&h){var L=null===(t=h.additional_properties)||void 0===t?void 0:t.gifAsThumbnail,$=null===(r=h.streams)||void 0===r?void 0:r.reduce((function(e,t){return"gif"===t.stream_type?Gn(Yn({},e),{gifPromo:!0}):"gif-mp4"===t.stream_type?Gn(Yn({},e),{mp4Promo:!0}):e}),{gifPromo:!1,mp4Promo:!1}),B=function(e,t,r){var n=function(e){return e.isPlaythrough?"continuous":e.isLooping?"looping":e.isAutoplay?"autoplay":null}(e)||t||function(e){return e&&e.analyticsLabel?e.analyticsLabel:null}(r)||"manual";return qe()(Ge,n)}(k,S,_),V=(null==h?void 0:h.duration)/1e3;"video-start"===w&&(null==P?void 0:P.current)&&Hn(P.current,N,{startReason:it(B,k)}),function(e,t,r){var n=e.label,o=e.event,i=e.avName,a=e.category,l=e.progressThreshold,u=e.avCMS,c=e.avLength,s=e.avArcID,d=e.avSection,f=e.avSource,p=e.avType,v=e.avTags,b=e.avProducer,y=e.avProducerID,g=e.avHost,m=e.avHostID,h=e.avContributors,w=e.avContributorID,S=e.avLiveProgress,A=e.avPublishDate,E=e.avPromoType,O=e.avTestGroup,P=e.avPlayerType,x=e.adAttribute,C=e.avAdMeta,j=e.avSystem,k=e.avPlayer,T=e.hosts,I=e.contributors,R=e.producers,D=e.publishDate,_=e.keywords,M=e.avKeywords,L=e.soundStatus,$=e.videostart_id,B=e.engaged_time;window.dataLayer.push(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Nn(e,t,r[t])}))}return e}({label:n,event:o,action:o,category:a,progressThreshold:l||an,avCMS:u||an,avSystem:j||an,avName:i||an,avLength:c||an,avArcID:s||an,avSection:d||an,avSource:f||an,avType:p||an,avTags:v,avKeywords:M||gn(_,";",an),avHost:g||gn(T,";",an,"name"),avProducer:b||gn(R,";",an,"name"),avContributors:h||gn(I,";",an,"name"),avPromoType:E||an,avPublishDate:A||(D?new Date(D).toISOString().substring(0,10):an),avTestGroup:O||an,avPlayerType:P||k,avPlayer:P||k,adAttribute:x||"undefined",avAdMeta:C||an,avLiveProgress:S||an},"audio"===r&&{avProducerID:y||gn(R,";",an,"id"),avContributorID:w||gn(I,";",an,"id"),avHostID:m||gn(T,";",an,"id")},L&&{soundStatus:L},$&&{videostart_id:$},B&&{engaged_time:B})),t&&console.log(window.dataLayer)}(Yn(Gn(Yn({label:ot(B),event:w,action:w,category:"video",avCMS:null===(n=h.source)||void 0===n?void 0:n.system,avName:null===(o=h.headlines)||void 0===o?void 0:o.basic,avLength:V,avArcID:h._id,avSection:null===(a=h.taxonomy)||void 0===a||null===(i=a.primary_site)||void 0===i?void 0:i.name,avSource:null===(l=h.source)||void 0===l?void 0:l.name,avType:null===(u=h.additional_properties)||void 0===u?void 0:u.videoCategory,avTags:gn(null===(c=h.taxonomy)||void 0===c?void 0:c.tags,";",an,"text"),keywords:null===(s=h.taxonomy)||void 0===s?void 0:s.seo_keywords,avPromoType:function(){if(L){if($.mp4Promo)return"mp4";if($.gifPromo)return"gif"}return"image"}(),publishDate:h.display_date,avTestGroup:null==E?void 0:E.testGroup,avPlayerType:T,hosts:null===(d=h.credits)||void 0===d?void 0:d.host_talent,contributors:null===(f=h.credits)||void 0===f?void 0:f.contributors},E.isCarousel&&{progressThreshold:E.carouselIndex+1},(null==P?void 0:P.current)&&{soundStatus:P.current.muted?"sound-off":"sound-on"},void 0!==O&&{soundStatus:O?"sound-off":"sound-on"}),{adAttribute:C,avAdMeta:gn(x,";",an),avLiveProgress:I||an}),R&&{videostart_id:R},M&&{engaged_time:M},(null===(b=h.credits)||void 0===b||null===(v=b.by)||void 0===v||null===(p=v[0])||void 0===p?void 0:p.name)?{producers:null===(y=h.credits)||void 0===y?void 0:y.by}:{avProducer:(null===(m=h.additional_properties)||void 0===m||null===(g=m.firstPublishedBy)||void 0===g?void 0:g.name)||an}),E.debug,"video")}};function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jn=function(r){var n=r.setIsInViewPort,o=r.children,i=(0,e.useRef)(null),a=(0,e.useCallback)((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xn(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xn(e,t):void 0}}(e,t)||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.")}()}(e,1)[0];n(t.isIntersecting)}),[n]);return(0,e.useEffect)((function(){var e=null==i?void 0:i.current;if(e){var t=new IntersectionObserver(a,{});return t.observe(e),function(){t.unobserve(e)}}}),[i,a]),t().createElement("div",{ref:i},o)};function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Jn.propTypes={setIsInViewPort:i().func,children:i().node};var Qn=(0,e.createContext)({isInViewPort:!1,setIsInViewPort:function(){}}),eo=function(){return(0,e.useContext)(Qn)},to=function(r){var n=r.children,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kn(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useMemo)((function(){return{isInViewPort:i,setIsInViewPort:a}}),[i]);return t().createElement(Qn.Provider,{value:l},t().createElement(Jn,{setIsInViewPort:a},n))};to.propTypes={config:i().object,children:i().node,stickyPlayerContext:i().object};var ro=["715998959","138210079292","716945960","138228291976"],no=e=>{if(typeof window>"u")return;let t=document.cookie.match(`(^|;) ?${e}=([^;]*)(;|$)`);return t?t[2]:null},oo=(e="",t={})=>{let r=e;return Object.entries(t).forEach((([e,t])=>{t&&(r+=` ${e}`)})),r.trim()},io=function(){var e,t;if("undefined"==typeof window)return!1;var r=null===(e=no("rplampr"))||void 0===e?void 0:e.includes("Premium"),n=no("wapo_actmgmt"),o=(null==n?void 0:n.includes("NOADS:1"))||(null==n?void 0:n.includes("EU_NOADS:1")),i=!0===(null===(t=window.wp_meta_data)||void 0===t?void 0:t.isPremium);return r||o||i};function ao(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ao(e,t,r[t])}))}return e}var uo=(0,e.createContext)({adWrapperRef:{current:null},adContainerRef:{current:null},adControlsRef:{current:null}}),co=function(){return(0,e.useContext)(uo)},so=function(r){var n=r.children,o=(0,e.useRef)(),i=(0,e.useRef)(),a=(0,e.useRef)(),l=(0,e.useMemo)((function(){return{adWrapperRef:o,adContainerRef:i,adControlsRef:a}}),[o,i,a]);return t().createElement(uo.Provider,{value:l},n)};function fo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function po(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fo(e,t,r[t])}))}return e}function vo(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}so.propTypes={children:i().node,initialValue:i().any};var bo=(0,e.createContext)({sendAnalyticsEvent:function(){},avAdMeta:null,setAvAdMeta:function(){},adAttribute:null,setAdAttribute:function(){},firstVideoLoaded:!1}),yo=function(){return(0,e.useContext)(bo)},go=function(r){var n=r.children,o=r.config,i=void 0===o?{}:o,a=co().adWrapperRef,l=m().autoplayState,u=i.debug,c=i.abVariant,s=i.isPreroll,d=void 0!==s&&s,f=(0,e.useCallback)((function(e,t){var r;!function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.performance.mark){var o=null===(t=window.performance)||void 0===t?void 0:t.mark(e,{detail:n});r&&console.log(o)}}(e,u,vo(po({},t,c&&{abVariant:c}),{isPreroll:d.toString(),isAutoplay:l.isAutoplay.toString(),nodeId:null===(r=a.current)||void 0===r?void 0:r.id}))}),[u,a,c,d,l.isAutoplay]),p=(0,e.useCallback)((function(e,t,r){var n;!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var o=window.performance.measure("time-to-".concat(e),{start:t,end:e,detail:lo({},n)});return r&&console.log(o),Math.round(o.duration)}catch(e){return null}}(e,t,u,vo(po({},r,c&&{abVariant:c}),{isPreroll:d.toString(),isAutoplay:l.isAutoplay.toString(),nodeId:null===(n=a.current)||void 0===n?void 0:n.id}))}),[u,a,c,l.isAutoplay,d]),v=(0,e.useMemo)((function(){return{sendPerformanceEvent:f,sendPerformanceMeasure:p}}),[f,p]);return t().createElement(bo.Provider,{value:v},n)};function mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ho(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function wo(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ho(i,n,o,a,l,"next",e)}function l(e){ho(i,n,o,a,l,"throw",e)}a(void 0)}))}}function So(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}go.propTypes={config:i().object,children:i().node};var Ao=function(){var e=wo((function(e,t,r){var n,o;return So(this,(function(i){switch(i.label){case 0:return n=Ro(),[4,new Promise((function(e,t){var r,o,i,a;if(null===(r=window.zeus)||void 0===r?void 0:r.version)e();else{var l=function(e){return window.document.querySelector('script[src="'.concat(e,'"]'))}(n);l?(i=e,a=t,(o=l).addEventListener("load",i,{once:!0}),o.addEventListener("error",a,{once:!0})):hn(n,e,t)}}))];case 1:return i.sent(),window.iris=window.iris||{},window.iris.cmd=window.iris.cmd||[],t&&(window.iris.imaDebugMode=!0),o=new Promise((function(t){window.iris.cmd.push(function(){var r=wo((function(r){return So(this,(function(n){switch(n.label){case 0:return[4,r.setupPlayer(e)];case 1:return n.sent(),t(),[2]}}))}));return function(e){return r.apply(this,arguments)}}())})),[4,Promise.race([o,new Promise((function(e,t){setTimeout((function(){var e=new Error("Iris setup timed out");t(e)}),r)}))])];case 2:return i.sent(),[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}(),Eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&"string"==typeof e.creativeId?ro.includes(e.creativeId):null},Oo=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return["length:".concat((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).duration),"skipAllow:".concat(e>0),"skipDelay:".concat(e)]},Po=function(e){var t;return null===(t=e.getCurrentAd())||void 0===t?void 0:t.data};function xo(e,t,r){if(Be(t))return!0;var n=qe()(e,"additional_properties.advertising.allowPrerollOnDomain");return r&&!n&&console.log("Ad not allowed on domain"),n}function Co(e,t){var r=t.hasAds,n=void 0!==r&&r,o=t.adOverrides,i=void 0===o?{}:o,a=i.forceAd,l=void 0!==a&&a,u=i.domain,c=i.skipAd,s=void 0!==c&&c,d=t.isCarousel,f=void 0!==d&&d,p=t.debug;if(l)return!0;var v=e.additional_properties,b=(void 0===v?{advertising:{}}:v).advertising,y=(void 0===b?{playVideoAds:!0}:b).playVideoAds;return n&&(void 0===y||y||f)&&xo(e,u,p)&&!s}function jo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e.isAutoplay||!!e.isPreroll||!!e.isPlaythrough}function ko(e,t){var r=e.hasAds,n=void 0!==r&&r,o=e.adOverrides,i=(void 0===o?{}:o).forceAd,a=void 0!==i&&i,l=e.isSinglePrerollVideo;return!!a||(!l||!function(e){return!!pn("wp_no_preroll")&&"1"===JSON.parse(pn("wp_no_preroll"))[e]}(t))&&n&&!To()&&!io()}var To=function(){return"undefined"!=typeof window&&new URLSearchParams(window.location.search).has("no_ads")},Io=function(){if("undefined"!=typeof window){var e=localStorage.getItem("userMutePreference");if("true"===e)return!0;if("false"===e)return!1}return!1},Ro=function(){return"undefined"!=typeof window&&("staging"===new URLSearchParams(window.location.search).get("zeusEnv")?"https://www.washingtonpost.com/zeus-staging/main.js":"https://www.washingtonpost.com/zeus/main.js")};function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_o(e,t,r[t])}))}return e}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Do(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Do(e,t):void 0}}(e,t)||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,r){var n=zn(),o=l(),i=o.videoData,a=o.uniqueId,u=m().autoplayState,c=eo().isInViewPort,s=t.isCarousel,d=t.debug,f=Lo((0,e.useState)([]),2),p=f[0],v=f[1],b=Lo((0,e.useState)("undefined"),2),y=b[0],g=b[1],h=Lo((0,e.useState)(!1),2),w=h[0],S=h[1],A=Lo((0,e.useState)(nt(t)),2),E=A[0],O=A[1],P=(0,e.useRef)(0),x=n.current,C=(0,e.useRef)(c),j=(0,e.useRef)(r);(0,e.useEffect)((function(){C.current=c}),[c]),(0,e.useEffect)((function(){j.current=r}),[r]);var k=(0,e.useCallback)((function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};C.current&&Zn(Mo({videoData:i,eventAction:e,config:t,videoElementRef:n,avAdMeta:p,adAttribute:y,autoplayState:u,playerType:E,carouselState:j.current},r))}),[i,t,n,p,y,u,E]);(0,e.useEffect)((function(){!w&&i._id&&u.isInitialized&&(window.dataLayer=window.dataLayer||[],s||k("media-video-player-impression",{soundMuted:!!u.isAutoplay||void 0}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=qe()(e,"additional_properties.advertising.adSetUrls.apps",""),n=qe()(e,"additional_properties.advertising.videoAdZone",""),o=!0===/wpni.video/.test(n),i=t.adOverrides,a=void 0===i?{}:i,l=t.debug,u=a.domain;return(!!a.adZoneOverride||!!r&&!!n)&&o&&xo(e,u,l)}(i,t)?ko(t,null==i?void 0:i._id)&&jo(u)||g(se):g("adNotAllowed"),S(!0))}),[null==i?void 0:i._id,u,w,s,k]);var T=(0,e.useRef)(5),I=(0,e.useRef)(0),R=(0,e.useRef)(0),D=(0,e.useCallback)((function(){R.current>0&&(k(tt,{videostart_id:a,engaged_time:R.current}),R.current=0)}),[k,a]),_=(0,e.useCallback)((function(e){var t,r=e.target.currentTime-I.current;I.current=e.target.currentTime,r>0&&r<1&&(R.current+=r),R.current>5&&(k(tt,{videostart_id:a,engaged_time:5}),R.current=0),(null===(t=e.target)||void 0===t?void 0:t.currentTime)/e.target.duration*100>=T.current&&(T.current>=25&&P.current<25&&(P.current=25,k("video-25-complete")),T.current>=50&&P.current<50&&(P.current=50,k("video-50-complete")),T.current>=75&&P.current<75&&(P.current=75,k("video-75-complete")),T.current=T.current+5)}),[k,a,d]);return(0,e.useEffect)((function(){if(x&&(u.isInitialized||s))return window.dataLayer=window.dataLayer||[],x.addEventListener(B,_),x.addEventListener(J,D),x.addEventListener(M,D),function(){x.removeEventListener(B,_),x.removeEventListener(J,D),x.removeEventListener(M,D)}}),[x,s,u]),(0,e.useEffect)((function(){return function(){D()}}),[]),{sendAnalyticsEvent:k,avAdMeta:p,setAvAdMeta:v,adAttribute:y,setAdAttribute:g,isAnalyticsInitialized:w,setPlayerType:O,sendVideoStartEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.isLivePreview)k(Qe);else if(e.isAutoplay){var r,n,o=(_o(r={},oe,Xe),_o(r,ne,Qe),r),i=(_o(n={},ue.AUTO,se),_o(n,ue.LOOP,ve),_o(n,ue.LOOP_NO_CONTROLS,ve),n),a=o[Ze()]||Xe,l=t.adAttribute||i[e.type];g(l),k(a,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Mo({},t),{adAttribute:l}))}else k(Xe,Mo({},t))}}}var Bo=(0,e.createContext)({sendAnalyticsEvent:function(){},avAdMeta:null,setAvAdMeta:function(){},adAttribute:null,setAdAttribute:function(){},firstVideoLoaded:!1}),Vo=function(){return(0,e.useContext)(Bo)},zo=function(r){var n=r.children,o=r.config,i=$o(void 0===o?{}:o,r.carouselState),a=i.sendAnalyticsEvent,l=i.avAdMeta,u=i.setAvAdMeta,c=i.adAttribute,s=i.setAdAttribute,d=i.isAnalyticsInitialized,f=i.setPlayerType,p=i.sendVideoStartEvent,v=(0,e.useMemo)((function(){return{sendAnalyticsEvent:a,avAdMeta:l,setAvAdMeta:u,adAttribute:c,setAdAttribute:s,isAnalyticsInitialized:d,setPlayerType:f,sendVideoStartEvent:p}}),[a,l,u,c,s,d,f,p]);return t().createElement(Bo.Provider,{value:v},n)};function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function No(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){No(e,t,r[t])}))}return e}zo.propTypes={config:i().object,carouselState:i().object,children:i().node};var Wo={isStarted:!1,isMuted:!1,isPlaying:!1,volume:1,showSubtitles:!1,isInitialized:!1};function Ho(t){var r=zn(),n=l().videoData,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fo(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fo(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(Wo),2),i=o[0],a=o[1],u=(0,e.useCallback)((function(e){a((function(t){return Uo({},t,e)}))}),[a]),c=(0,e.useCallback)((function(){i.isStarted||u({isStarted:!0})}),[i,u]);return(0,e.useEffect)((function(){var e=null==r?void 0:r.current;if(e)return e.addEventListener("playing",c),function(){e.removeEventListener("playing",c)}}),[r,c]),(0,e.useEffect)((function(){if("undefined"!=typeof window&&n&&_e(n)&&!i.isInitialized){var e=function(e,t){var r,n,o="true"===window.localStorage.getItem("userMutePreference"),i="true"===window.localStorage.getItem("userSubtitlesPreference"),a=(e.additional_properties||{}).forceClosedCaptionsOn,l=void 0!==a&&a;return{isMuted:null!==(r=t.isMutedOverride)&&void 0!==r?r:o,volume:o?0:1,showSubtitles:!!(null!==(n=t.showSubtitlesOverride)&&void 0!==n?n:l)||i}}(n,t);u(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Uo({},e),{isInitialized:!0}))}}),[t,t.isMutedOverride,t.showSubtitlesOverride,i.isInitialized,u,n,n._id]),{playerState:i,updatePlayerState:u}}var qo=function(e,t,r){if("undefined"==typeof window)return!0;if(t.isAutoplay&&!r&&!t.overrideAutoplayMuteBehavior)return!0;var n=e.isMutedOverride;return null!=n&&n},Yo=(0,e.createContext)({Hls:{},hls:{},removeHLS:function(){},setUpVideoSource:function(){}}),Go=function(){return(0,e.useContext)(Yo)};function Zo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xo,Jo="MOBILE",Ko="TABLET",Qo="DESKTOP",ei="LARGE_DESKTOP",ti=Jo,ri=Ko,ni=Qo,oi=ei,ii=(Zo(Xo={},"small",Jo),Zo(Xo,"medium",Ko),Zo(Xo,"large",Qo),Zo(Xo,"xlarge",ei),Zo(Xo,"xxlarge",ei),Zo(Xo,"unknown",Qo),Xo);function ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ai(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ai(e,t):void 0}}(e,t)||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.")}()}var ui=function(){return"undefined"==typeof window?"unknown":window.getComputedStyle(document.documentElement).getPropertyValue("--wpds--screenSize")},ci=function(){return"undefined"==typeof window?"unknown":"undefined"!=typeof window&&window.innerWidth>=1440?oi:"undefined"!=typeof window&&window.innerWidth>=1023?ni:"undefined"!=typeof window&&window.innerWidth>=767&&window.innerWidth<1023?ri:ti};const si=function(){var t=li((0,e.useState)(ni),2),r=t[0],n=t[1],o=function(){var t=li((0,e.useState)(ui()||ci()),2),r=t[0],n=t[1];return(0,e.useEffect)((function(){if("undefined"!=typeof window){var e=function(){n(ui()||ci())};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}}),[]),r}();return(0,e.useEffect)((function(){n(ii[o])}),[o]),r};var di=function(e){var t;if(null==e||null===(t=e.textTracks)||void 0===t?void 0:t[0]){var r=!0,n=!1,o=void 0;try{for(var i,a=e.textTracks[Symbol.iterator]();!(r=(i=a.next()).done);r=!0)i.value.mode="hidden"}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}}},fi=function(e){var t=!1,r=!0,n=!1,o=void 0;try{for(var i,a=e.textTracks[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var l=i.value;"showing"===l.mode&&(t=!0),l.mode="hidden"}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return t},pi={canFullScreen:function(){return!1},goFullscreen:function(){},closeFullscreen:function(){},getFullScreen:function(){return!1}},vi={requestFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.requestFullscreen)},goFullscreen:function(e){return e.requestFullscreen()},closeFullscreen:function(){return document.exitFullscreen()},getFullScreen:function(){return!!document.fullscreenElement}},webkitEnterFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.webkitEnterFullscreen)},goFullscreen:function(e){return e.webkitEnterFullscreen()},closeFullscreen:function(){return document.webkitExitFullscreen()},getFullScreen:function(e){return!!(null==e?void 0:e.webkitDisplayingFullscreen)}},webkitRequestFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.webkitRequestFullscreen)},goFullscreen:function(e){return e.webkitRequestFullscreen()},closeFullscreen:function(){return document.webkitExitFullscreen()},getFullScreen:function(){return!!document.webkitFullscreenElement}},mozRequestFullScreen:{canFullScreen:function(e){return!!(null==e?void 0:e.mozRequestFullScreen)},goFullscreen:function(e){return e.mozRequestFullScreen()},closeFullscreen:function(){return document.mozCancelFullScreen()},getFullScreen:function(){return!!document.mozFullScreenElement}},msRequestFullscreen:{canFullScreen:function(e){return!!(null==e?void 0:e.msRequestFullscreen)},goFullscreen:function(e){return e.msRequestFullscreen()},closeFullscreen:function(){return document.msExitFullscreen()},getFullScreen:function(){return!!document.msFullscreenElement}}};function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const yi=function(t,r,n,o,i,a,u,c,s){var d=zn(),f=l().videoId,p=Tn().isOpenSticky,v=(0,e.useMemo)((function(){return e=d.current,Object.values(vi).find((function(t){return t.canFullScreen(e)}))||pi;var e}),[d.current]),b=v.goFullscreen,y=v.closeFullscreen,g=v.getFullScreen,m=v.canFullScreen,h=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bi(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bi(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),w=h[0],S=h[1],A=(0,e.createRef)(!0),E=(0,e.useCallback)((function(e){return!m(e)&&!n}),[m,n]),O=si()===ti,P=function(e){var t=e.forceShowFullScreenBtn;return"boolean"==typeof t?t:!e.isCarousel&&(!e.isVertical||e.isMobileSize||e.isOpenSticky)}({forceShowFullScreenBtn:s,isCarousel:n,isMobileSize:O,isVertical:o,isOpenSticky:p}),x=(0,e.useCallback)((function(e){var n=r.current;if(n)try{e?(E(n)?(b(d.current),function(e,t){di(t),e&&(t.textTracks[0].mode="showing")}(a,d.current),S(!0),i(!0)):b(n).then((function(){S(!0)})),Ie(_,!0,f,t)):(y(d.current),S(!1),Ie(_,!1,f,t))}catch(e){S(g())}}),[r,E,f,t,b,d,a,i,y,g]);return(0,e.useEffect)((function(){var e=function(){S(g())},t=r.current;return r&&m(t)&&t.addEventListener("fullscreenchange",e),function(){null==t||t.removeEventListener("fullscreenchange",e)}}),[r,m,g]),(0,e.useEffect)((function(){var e=d.current;if(e){var t=function(t){if("picture-in-picture"===t.target.webkitPresentationMode)S(!1);else{var r=g(e);S(r),i(r);var n=fi(e);u(n)}},r=function(){c(!1);var t=fi(e);A.current=t},n=function(e){c(!0),"inline"===e.target.webkitPresentationMode&&u(A.current)};return e.addEventListener("webkitendfullscreen",t),e.addEventListener("enterpictureinpicture",r),e.addEventListener("leavepictureinpicture",n),function(){e.removeEventListener("webkitendfullscreen",t),e.removeEventListener("enterpictureinpicture",r),e.removeEventListener("leavepictureinpicture",n)}}}),[d,g]),{isFullscreen:w,setFullscreen:x,showFullscreenBtn:P,closeFullscreen:y}};function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gi(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gi(e,t):void 0}}(e,t)||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 hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hi(e,t):void 0}}(e,t)||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.")}()}var Si=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=l().videoData,o=m(),i=o.updateAutoplayState,a=o.autoplayState,u=Dn(),c=u.promoState,s=u.setPromoState,d=$n(),f=d.adState,p=d.setAdState,v=Go().removeHLS,b=zn(),y=Tn(),g=y.isOpenSticky,h=y.updateStickyContext,w=Vo().sendAnalyticsEvent,S=co().adControlsRef,A=r.toggleSubsHandler,E=r.toggleMuteHandler,O=wi((0,e.useState)(!1),2),P=O[0],x=O[1],C=wi((0,e.useState)(!1),2),j=C[0],k=C[1],I=n.duration/1e3||0,R=(0,e.useRef)(null),D=(0,e.useRef)(null),_=(0,e.useRef)(),M=function(t){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zr(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zr(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(),2),n=r[0],o=r[1];return(0,e.useEffect)((function(){var e=null==t?void 0:t.current;if(e){var r=function(){var t=e.offsetWidth;o(t<=300?Xr.MINI:t<=400?Xr.SMALL:t<=700?Xr.MEDIUM:Xr.LARGE)};r();var n=new ResizeObserver(r);return n.observe(e),function(){return n.disconnect()}}}),[t]),n}(R),L=function(t){var r=Vo().isAnalyticsInitialized,n=yo(),o=n.sendPerformanceEvent,i=n.sendPerformanceMeasure,a=m(),l=a.updateAutoplayState,u=a.autoplayState,c=$n(),s=c.isAdsInitialized,d=c.isIrisReady,f=c.shouldShowAds,p=Dn().setPromoState,v=Tn().setIsStickyEnabled,b=t.isCarousel,y=u.isInitialized&&r&&s,g=function(t){var r=t.setPromoState,n=t.updateAutoplayState,o=t.shouldShowAds,i=t.autoplayState,a=t.isOrcaInitialized,l=t.isCarousel,u=eo().isInViewPort,c=Tn().isOpenSticky,s=mi((0,e.useState)(null),2),d=s[0],f=s[1],p=mi((0,e.useState)(null),2),v=p[0],b=p[1],y=(0,e.useCallback)((function(e,t){a?e?u||l||c?(n({status:T},t),i.isLivePreview||r(o?Ce:je)):b({videoWillAutoplay:e,overrideReducedMotion:t}):r(xe):f({videoWillAutoplay:e,overrideReducedMotion:t})}),[r,n,o,i.isLivePreview,a,u,l,c]);return(0,e.useEffect)((function(){d&&a&&(y(d.videoWillAutoplay,d.overrideReducedMotion),f(null))}),[a,y,d]),(0,e.useEffect)((function(){v&&u&&(y(v.videoWillAutoplay,v.overrideReducedMotion),b(null))}),[u,y,v]),y}({setPromoState:p,updateAutoplayState:l,shouldShowAds:f,autoplayState:u,isOrcaInitialized:y,isCarousel:b}),h=(0,e.useCallback)((function(){g(u.isAutoplay),v(function(e,t){var r=t.isSticky,n=void 0===r||r,o=t.isLead,i=void 0!==o&&o;return!(e.isLooping||e.type===ue.AUTO&&!i)&&n}(u,t))}),[u,t,g,v]);return(0,e.useEffect)((function(){y&&(h(),o(Q),i(Q,K,{irisLoaded:d.toString()}))}),[y]),{initializeNewVideo:g}}(t).initializeNewVideo,$=t.debug,B=t.forceShowFullScreenBtn,V=t.isCarousel,z=function(t){var r,n=t.config,o=t.isNativeIOSPlayer,i=t.adState,a=t.updateAutoplayState,u=t.toggleSubsHandler,c=void 0===u?function(){}:u,s=t.toggleMuteHandler,d=void 0===s?function(){}:s,f=zn(),p=l(),v=p.videoId,b=p.uniqueId,y=m(),g=y.autoplayState,h=y.isMotionReduced,w=Vo().sendAnalyticsEvent,S=Tn(),A=S.isStickyEnabled,E=S.isOpenSticky,O=S.playingId,P=S.updateStickyContext,x=n.debug,C=void 0!==x&&x,j=Ho(n),k=j.playerState,T=j.updatePlayerState,I=(0,e.useCallback)((function(e){Ie("mute",e,v,C),f.current.muted=e,w(e?"video-mute":"video-unmute")}),[f,C,v,w]),R=(0,e.useCallback)((function(){var e;return null==f||null===(e=f.current)||void 0===e?void 0:e.muted}),[f]);(0,e.useEffect)((function(){f.current&&k.isMuted&&I(!0)}),[f.current]);var D=(0,e.useCallback)((function(){f.current.play()}),[f]),_=(0,e.useCallback)((function(){D(),T({isAutoplaying:!0})}),[D,T]),M=(0,e.useCallback)((function(){f.current.pause()}),[f]),L=(0,e.useCallback)((function(e){c(e),T({showSubtitles:e}),Ie(e?"subsEnabled":"subsDisabled",e,v,C),"undefined"!=typeof window&&localStorage.setItem("userSubtitlesPreference",e)}),[T,v,C,c]),$=(0,e.useCallback)((function(){g.isLooping||(f.current.currentTime=0,T({isMuted:R(),isStarted:!1,isPlaying:!1}))}),[g.isLooping,f,R]);(0,e.useEffect)((function(){var e=f.current;return function(){e.pause(),e.src="",e.load()}}),[]);var B=(0,e.useCallback)((function(e){I(e),T({isMuted:e});var t=new Event(e?"mute":"unmute");f.current.dispatchEvent(t),d(e)}),[I,T,f,d]),V=(0,e.useCallback)((function(){B(!k.isMuted)}),[k.isMuted,B]);(0,e.useEffect)((function(){T({isMuted:R()})}),[null==f||null===(r=f.current)||void 0===r?void 0:r.muted]),(0,e.useEffect)((function(){var e;g.isLooping&&(null===(e=f.current)||void 0===e||e.setAttribute("loop",""))}),[g.isLooping]);var z=(0,e.useCallback)((function(){M(),V(),a({isLivePreview:!1,isAutoplay:!1}),L(!0)}),[M,L,V,a]);(0,e.useEffect)((function(){O&&O!==b&&k.isPlaying&&A&&M()}),[O,b,k.isPlaying,M,A]);var F=(0,e.useCallback)((function(e){var t=qo(n,g,e);B(t)}),[g,n,B]),N=(0,e.useCallback)((function(e){e&&k.isAutoplaying?M():!e&&k.isAutoplaying&&_()}),[k.isAutoplaying,M,_]);return(0,e.useEffect)((function(){N(h)}),[h,N]),{playerState:k,onPlayButton:function(){k.isPlaying?M():D(),T({isAutoplaying:!1}),w(k.isPlaying?Je:Ke),k.isPlaying&&A&&!E&&O===b&&P({playingId:null})},play:D,pause:M,reset:function(){M(),f.current.currentTime=0,T({isStarted:!1,isPlaying:!1})},toggleMute:V,handleVolumeChange:function(e){f.current.volume=e,T({volume:e})},setShowSubtitles:L,handlePlayEvent:function(e){var t;i===ce.REQUESTED&&f.current.pause(),T({isPlaying:e}),o&&0!=(null===(t=f.current)||void 0===t?void 0:t.currentTime)&&w(e?Ke:Je)},resetControlsState:$,handleLivePreview:z,setInitialMuteState:F,autoplay:_}}({config:t,isNativeIOSPlayer:j,adState:f,updateAutoplayState:i,toggleSubsHandler:A,toggleMuteHandler:E}),F=z.playerState,N=z.onPlayButton,U=z.play,W=z.pause,H=z.reset,q=z.toggleMute,Y=z.handleVolumeChange,G=z.setShowSubtitles,Z=z.handlePlayEvent,X=z.resetControlsState,J=z.handleLivePreview,ee=z.setInitialMuteState,te=z.autoplay,re=(0,e.useCallback)((function(){var e;w(et,{label:"close-click"}),f===ce.PLAYING?null===(e=S.current)||void 0===e||e.pauseAd():W(),h({playingId:null,openId:null})}),[f,W,w,h]),ne=Le(n),oe=yi($,_,V,ne,k,F.showSubtitles,G,x,B),ie=oe.isFullscreen,ae=oe.setFullscreen,le=oe.showFullscreenBtn,se=oe.closeFullscreen;return{initDuration:I,initializeNewVideo:L,promoState:c,setPromoState:s,resetVideoState:Bn({autoplayState:a,resetControlsState:X,setAdState:p,updateAutoplayState:i,adState:f,removeHLS:v,videoElementRef:b,closeStickyPlayer:re,isOpenSticky:g,setIsFullscreen:ae,setRenderControls:x,setPromoState:s,isFullscreen:ie}),isFullscreen:ie,isNativeIOSPlayer:j,setIsFullscreen:ae,reset:H,playerState:F,playerSize:M,renderControls:P,setRenderControls:x,playerWrapperRef:R,promoElement:D,fullScreenWrapper:_,onPlayButton:N,play:U,pause:W,toggleMute:q,handleVolumeChange:Y,setShowSubtitles:G,handlePlayEvent:Z,resetControlsState:X,handleLivePreview:J,setInitialMuteState:ee,autoplay:te,showFullscreenBtn:le,closeFullscreen:se,closeStickyPlayer:re}},Ai=(0,e.createContext)({initDuration:0,initializeNewVideo:function(){}}),Ei=function(){return(0,e.useContext)(Ai)},Oi=function(r){var n=r.children,o=r.config,i=void 0===o?{}:o,a=r.optionalHandlers,l=Si(i,void 0===a?{}:a),u=l.initDuration,c=l.initializeNewVideo,s=l.promoState,d=l.setPromoState,f=l.resetVideoState,p=l.isFullscreen,v=l.isNativeIOSPlayer,b=l.setIsFullscreen,y=l.reset,g=l.playerState,m=l.playerSize,h=l.renderControls,w=l.setRenderControls,S=l.playerWrapperRef,A=l.promoElement,E=l.fullScreenWrapper,O=l.onPlayButton,P=l.play,x=l.pause,C=l.toggleMute,j=l.handleVolumeChange,k=l.setShowSubtitles,T=l.handlePlayEvent,I=l.resetControlsState,R=l.handleLivePreview,D=l.setInitialMuteState,_=l.autoplay,M=l.showFullscreenBtn,L=l.closeFullscreen,$=l.closeStickyPlayer,B=(0,e.useMemo)((function(){return{initDuration:u,initializeNewVideo:c,promoState:s,setPromoState:d,resetVideoState:f,isFullscreen:p,isNativeIOSPlayer:v,setIsFullscreen:b,reset:y,playerState:g,playerSize:m,renderControls:h,setRenderControls:w,playerWrapperRef:S,promoElement:A,fullScreenWrapper:E,onPlayButton:O,play:P,pause:x,toggleMute:C,handleVolumeChange:j,setShowSubtitles:k,handlePlayEvent:T,resetControlsState:I,handleLivePreview:R,setInitialMuteState:D,autoplay:_,showFullscreenBtn:M,closeFullscreen:L,closeStickyPlayer:$}}),[u,c,s,d,f,p,v,b,y,g,m,h,w,S,A,E,O,P,x,C,j,k,T,I,R,D,_,M,L,$]);return t().createElement(Ai.Provider,{value:B},n)};function Pi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Pi(e,t,r[t])}))}return e}Oi.propTypes={config:i().object,children:i().node,optionalHandlers:i().object};var Ci=Br("div",{}),ji=function(e){var r=e.controlWrapperClassName,n=e.liveEventEnded,o=e.aspectRatio,i=e.children,a=e.stickyStyles,l=Tn().isOpenSticky,u=Ei(),c=u.fullScreenWrapper,s=function(e){var t=e.isFullscreen,r=e.liveEventEnded,n=e.isOpenSticky,o=e.aspectRatio,i=e.stickyPropStyles,a={display:r?"none":"flex",alignItems:"center"},l=o>1,u=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(xi({width:"450px",position:"fixed",inset:"auto 20px 20px auto",top:"auto",right:20,bottom:20,left:"auto",zIndex:"100",aspectRatio:o,transition:"width 0.5s ease, height 0.5s ease",height:"".concat(l?1/o*450:450*o,"px"),backgroundColor:"$gray0-static"},i),{"@md":xi({width:"300px",height:"".concat(l?1/o*300:300*o,"px")},null==i?void 0:i["@md"]),"@sm":xi({width:"250px",bottom:150,height:"".concat(l?1/o*250:250*o,"px")},null==i?void 0:i["@sm"])});return xi({},t&&a,r&&{display:"none"},n&&u)}({isFullscreen:u.isFullscreen,liveEventEnded:n,isOpenSticky:l,aspectRatio:o,stickyPropStyles:a});return t().createElement(Ci,{"data-testid":"full-screen-wrapper",ref:c,className:r,css:s},i)};function ki(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ti(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ki(e,t,r[t])}))}return e}function Ii(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}ji.propTypes={fullScreenWrapper:i().object,controlWrapperClassName:i().string,isFullscreen:i().bool,liveEventEnded:i().bool,isOpenSticky:i().bool,aspectRatio:i().number,children:i().node.isRequired,stickyStyles:i().object};var Ri=r(4326),Di=Ri.useEffect,_i=Ri.useCallback,Mi=["paywall","regwall","iab_banner"],Li=["audio","video"];function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $i(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$i(e,t):void 0}}(e,t)||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.")}()}var Vi=function(){var t=zn(),r=l().videoData,n=Ei().isNativeIOSPlayer,o=r.subtitles,i=r.additional_properties,a=(void 0===i?{}:i).doNotShowTranscripts,u=void 0!==a&&a,c=Go().waitForCaptionsToLoad;!function(t,r){var n,o,i=null===(o=t.current)||void 0===o||null===(n=o.textTracks[0])||void 0===n?void 0:n.mode;(0,e.useEffect)((function(){var e,n,o;!r&&(null===(o=t.current)||void 0===o||null===(n=o.textTracks)||void 0===n||null===(e=n[0])||void 0===e?void 0:e.mode)&&(t.current.textTracks[0].mode="hidden")}),[i,t,r])}(t,n);var s=Bi((0,e.useState)(""),2),d=s[0],f=s[1],p=Bi((0,e.useState)(!1),2),v=p[0],b=p[1],y=(0,e.useCallback)((function(){f(Ni(t.current))}),[t]),g=(0,e.useCallback)((function(){f(""),b(!u),t.current.textTracks[0].mode="hidden"}),[u,t]),m=(0,e.useCallback)((function(){Fi(t.current,y,g)}),[t,y,g]),h=(0,e.useCallback)((function(){zi(t.current,o,m,c)}),[m,o,t]);return{hasSubtitles:v,updateCues:y,currentCue:d,setupSubtitlesListener:h,resetSubtitleState:g}},zi=function(e,t,r,n){if(di(e),t&&!w()(t,{})){var o,i=function(e){var t=e||{},r=t.url,n=t.src,o=t.label,i=t.srclang,a=t.kind,l=document.createElement("track");return Object.assign(l,{src:r||n||"",label:o||"English",srclang:i||"en",kind:a||"captions",mode:"hidden"}),l}(null===(o=t.urls)||void 0===o?void 0:o.find((function(e){return"WEB_VTT"===e.format})));n?e.addEventListener(V,(function(){return e.appendChild(i)})):e.appendChild(i)}e.textTracks.addEventListener("addtrack",r)},Fi=function(e,t,r){var n=e.textTracks.length;if(n>0){r(),e.textTracks[0].cueChange=t;for(var o=1;o<n;o++)e.textTracks[o].mode="disabled"}},Ni=function(e){var t,r,n;return(null===(n=e.textTracks[0])||void 0===n||null===(r=n.activeCues)||void 0===r||null===(t=r[0])||void 0===t?void 0:t.text)||""};function Ui(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wi=function(t){var r=t.setRenderControls,n=t.isCarousel,o=t.autoplay,i=t.play,a=t.playCallback,u=void 0===a?function(){}:a,c=m().autoplayState,s=Dn().setPromoState,d=Vo(),f=d.sendAnalyticsEvent,p=d.sendVideoStartEvent,v=Go().isSupported,b=zn(),y=l().uniqueId,g=(0,e.useCallback)((function(){var e=b.current,t=function(){e.removeEventListener("loadstart",t),i()};e.addEventListener("loadstart",t),e.load()}),[b,i]),h=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.analyticsData,a=e.isAutoplay;c.isLivePreview||s(je),r(!(c.type===ue.LOOP_NO_CONTROLS||c.isLivePreview)),n||p(c,t?function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ui(e,t,r[t])}))}return e}({},t),{videostart_id:y}):{videostart_id:y}),v?a?o():i():g(),u()}),[c.isLivePreview,c.type,u,f,n]);return h},Hi=function(t,r,n){var o,i=zn(),a=Vo().sendAnalyticsEvent,u=$n(),c=u.shouldShowAds,s=u.transitionToAd,d=Dn().setPromoState,f=Ei(),p=f.setRenderControls,v=f.setInitialMuteState,b=m().autoplayState,y=l(),g=y.videoData,h=y.uniqueId,w=y.videoId,S=Go().setUpVideoSource,A=Tn(),E=A.isStickyEnabled,O=A.updateStickyContext,P=A.setOverrideStickyContext,x=r.isSinglePrerollVideo,C=void 0!==x&&x,j=(0,e.useCallback)((function(e){var n,o=e.hasAds,l=e.isAutoplay,u=e.forcePlayAd;l&&!u&&(i.current.autoplay=!0),o&&!(null==r||null===(n=r.adOverrides)||void 0===n?void 0:n.skipAd)?s((function(){a(Xe,{videostart_id:h}),t({isAutoplay:l})})):(t({isAutoplay:l}),u&&(d(je),p(b.type!==ue.LOOP_NO_CONTROLS)))}),[i,s,a,t,d,p,b.type,h,null==r||null===(o=r.adOverrides)||void 0===o?void 0:o.skipAd]);return(0,e.useCallback)((function(e){var t=b.isAutoplay,o=c&&Co(g,r)&&(jo(b)||e);S(),v(e),E&&(O({playingId:h}),P(!1)),C&&function(e){if("undefined"!=typeof document){var t=pn("wp_no_preroll"),r=t?JSON.parse(t):{};r[e]="1",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,n=new Date;n.setTime(n.getTime()+864e5*r),document.cookie="".concat(e,"=").concat(t,";path=/;expires=").concat(n.toGMTString())}("wp_no_preroll",JSON.stringify(r),1)}}(w),n(),j({hasAds:o,isAutoplay:t,forcePlayAd:e})}),[c,g,r,b,S,j,O,E,h,P,C,w,n,v])};function qi(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t=e,!(null!=(r=HTMLElement)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r))return null;var i=e.getBoundingClientRect();return i.top+e.offsetHeight*n>=0&&i.bottom-e.offsetHeight*n<=(window.innerHeight||document.documentElement.clientHeight)&&(!o||i.left>=0)&&(!o||i.right<=(window.innerWidth||document.documentElement.clientWidth))}function Yi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yi(e,t,r[t])}))}return e}var Zi=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(null==e?void 0:e.current){var i=o.debug,a=void 0!==i&&i,l=function(e,t){return{eventType:e,userAgent:window.navigator.userAgent,browserType:wn(),deviceType:Sn(),href:window.location.href,hostname:window.location.host,pageType:Ze(),playerType:nt(t),player:"orca"}}(t,o),u=Gi(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Gi({},l),{isElementInViewport:qi(e.current),videoId:e.current.id}),n);Ue.send(r,u),a&&console.log("".concat(""," Splunk event sent: ").concat(r,". Video: ").concat(e.current.id),u)}};function Xi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ji="timeout",Ki="error",Qi="fullscreen",ea="ads",ta=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xi(e,t,r[t])}))}return e}({},{OK:"video-ok",TIMED_OUT:"video-timed-out",WAITING:"video-waiting"},{ERROR:"video-errored-out",API_ERROR:"video-api-request-failed"},{ON_FULLSCREEN:"video-fullscreen-opened",ON_UNFULLSCREEN:"video-fullscreen-closed"},{AD_COMPLETE:"video-ad-completed",AD_ERROR:"video-ad-error",AD_STARTED:"video-ad-started",AD_BYPASSED:"video-ad-bypassed"},{RENDER:"video-rendered"},{REMOTE_ORCA_LOAD_ERROR:"remote-orca-load-error",REMOTE_ORCA_LOAD_SUCCESS:"remote-orca-load-success"});function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){na(e,t,r[t])}))}return e}function ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ra(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ra(e,t):void 0}}(e,t)||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 aa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function la(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ua(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){la(e,t,r[t])}))}return e}var ca=function(t,r){(function(t,r){var n=zn(),o=ia((0,e.useState)(!1),2),i=o[0],a=o[1],l=ia((0,e.useState)(!1),2),u=l[0],c=l[1],s=(0,e.useRef)(),d=(0,e.useRef)(),f=0,p=function(e){g(e)},v=function(e){u||(clearInterval(s.current),function(e){clearInterval(d.current),d.current=setInterval((function(){var t;(null===(t=n.current)||void 0===t?void 0:t.currentTime)>0&&g(e)}),1e3)}(e),s.current=setInterval((function(){f+=1,Zi(n,Ji,ta.WAITING,oa({startReason:qe()(e.detail,"startReason",""),startEvent:qe()(e,"type","")},t),r),f>=4&&m(e)}),5e3))},b=function(){clearInterval(s.current),clearInterval(d.current),f=0},y=function(){b()},g=function(e){u||(Zi(n,Ji,ta.OK,oa({startReason:qe()(e.detail,"startReason",""),startEvent:qe()(e,"type","")},t),r),c(!0),b())},m=function(e){i||(Zi(n,Ji,ta.TIMED_OUT,oa({startReason:qe()(e.detail,"startReason",""),startEvent:qe()(e,"type","")},t),r),a(!0),b())};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,N,v),Un(e,Z,y),Un(e,H,p),Un(e,M,y),function(){Wn(e,N,v),Wn(e,Z,y),Wn(e,H,p),Wn(e,M,y)}}),[n])})(t,r),function(t,r){var n=zn(),o=function(e){var o=e.target.error.message,i=e.target.error.code;Zi(n,Ki,ta.ERROR,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aa(e,t,r[t])}))}return e}({errorText:o,errorCode:i},t),r)};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,L,o),function(){Wn(e,L,o)}}),[n])}(t,r),function(t,r){var n=zn(),o=function(){Zi(n,Qi,ta.ON_FULLSCREEN,t,r)},i=function(){Zi(n,Qi,ta.ON_UNFULLSCREEN,t,r)};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,z,o),Un(e,F,i),function(){Wn(e,z,o),Wn(e,F,i)}}),[n])}(t,r),function(t,r){var n=zn(),o=co().adWrapperRef,i=function(e){var i,a,l=null===(i=o.current)||void 0===i?void 0:i.irisPlayer,u=Po(l);Eo(u)||Zi(n,ea,ta.AD_COMPLETE,ua({adData:e.detail,adTitle:null===(a=e.detail)||void 0===a?void 0:a.title},t),r)},a=function(e){var o;Zi(n,ea,ta.AD_ERROR,ua({adData:e.detail,adTitle:null===(o=e.detail)||void 0===o?void 0:o.title},t),r)},l=function(e){var i,a,l=null===(i=o.current)||void 0===i?void 0:i.irisPlayer,u=Po(l);Eo(u)||Zi(n,ea,ta.AD_STARTED,ua({adData:e.detail,adTitle:null===(a=e.detail)||void 0===a?void 0:a.title},t),r)},u=function(){Zi(n,ea,ta.AD_BYPASSED,ua({},t),r)};(0,e.useEffect)((function(){var e=null==n?void 0:n.current;if(e)return Un(e,W,i),Un(e,q,a),Un(e,H,l),Un(e,Y,u),function(){Wn(e,W,i),Wn(e,q,a),Wn(e,H,l),Wn(e,Y,u)}}),[n])}(t,r)};function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var da=Br("div",{display:"flex",justifyContent:"center",width:"100%",opacity:1,zIndex:2,position:"absolute",pointerEvents:"none",userSelect:"none",transition:"all 0.2s ease-out",lineHeight:"normal"}),fa=Br("div",{background:"rgb(0,0,0,0.5)",color:"rgb(240,248,255)",fontFamily:"sans-serif",textShadow:"none",borderRadius:"3px",padding:"3px",margin:"5px",textAlign:"center",fontSize:"$100",variants:{variant:{fullscreen:{fontSize:"$150","@minMd":{fontSize:"$200"},"@minLg":{fontSize:"$250"}}}}}),pa=function(e){var r=e.currentCue,n=Ei(),o=n.playerState,i=n.isFullscreen;return t().createElement(da,{css:{bottom:i?"100px":"$125"}},o.showSubtitles&&t().createElement(fa,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sa(e,t,r[t])}))}return e}({"aria-hidden":"true",id:"video-subtitles"},i&&{variant:"fullscreen"}),r))};pa.propTypes={currentCue:i().string.isRequired};var va=Br("video",{position:"absolute",width:"100%",height:"100%",top:0,left:0,objectFit:"contain"}),ba=function(e){var r=e.updateCues,n=e.handleVideoEnd,o=e.isStickyEnabled,i=e.updateStickyContext,a=e.updateDisplay,u=e.debug,c=l(),s=c.videoId,d=c.uniqueId,f=zn(),p=Ei().handlePlayEvent;return t().createElement(va,{id:"orca-video-".concat(s),"data-testid":"orca-video",className:"orca-video","aria-hidden":"true",crossOrigin:"anonymous",ref:f,onTimeUpdate:r,onEnded:n,onPlay:function(){Ie("play",!0,s,u),p(!0),o&&(i({playingId:d}),a({state:"media-start"}))},onPause:function(){Ie("pause",!0,s,u),p(!1)},onVolumeChange:function(){Ie("volumeChange",f.current.volume,s,u)},preload:"metadata",controlsList:"nodownload",playsInline:!0})};ba.propTypes={updateCues:i().func.isRequired,handleVideoEnd:i().func.isRequired,isStickyEnabled:i().bool,updateStickyContext:i().func,updateDisplay:i().func,debug:i().bool};var ya=(0,e.forwardRef)((function(r,n){var o=r.onVideoRendered,i=void 0===o?function(){}:o,a=r.config,u=void 0===a?{}:a,c=r.promoEnabled,s=void 0===c||c,d=r.handleVideoEnd,f=void 0===d?function(){}:d,p=r.isLive,b=void 0!==p&&p,y=r.children,g=void 0===y?null:y,h=r.handleStart,w=void 0===h?function(){}:h,S=r.transitionToVideo,A=void 0===S?function(){}:S,E=r.updateCues,O=void 0===E?function(){}:E,P=r.hasSubtitles,x=void 0!==P&&P,C=r.currentCue,j=void 0===C?null:C,k=r.updateDisplay,I=void 0===k?function(){}:k,R=r.carouselState,D=void 0===R?null:R,_=r.Controls,M=r.handleClosePlayer,L=void 0===M?function(){}:M,$=u.isCarousel,B=void 0!==$&&$,V=u.debug,z=u.hideControls,F=void 0!==z&&z,N=l(),W=N.videoData,H=N.videoId,q=m(),Y=q.autoplayState,G=q.updateAutoplayState,Z=Tn(),J=Z.isStickyEnabled,Q=Z.updateStickyContext,ee=Go(),te=ee.setUpVideoSource,re=ee.hls,oe=Ei(),ie=oe.initializeNewVideo,ae=oe.renderControls,le=oe.setRenderControls,ue=Le(W);return function(t,r){var n=zn();(0,e.useEffect)((function(){var e,o=new CustomEvent(U,{detail:t});null===(e=n.current)||void 0===e||e.dispatchEvent(o),"undefined"!=typeof window&&t&&(window.orcaPlayers=window.orcaPlayers||{},window.orcaPlayers[r]=window.orcaPlayers[r]||{data:t,events:[]},window.orcaPlayers[r].data=t)}),[null==t?void 0:t._id])}(W,H),function(){var t,r=l(),n=r.originalVideo,o=r.videoData,i=Ei().playerState,a=null==n?void 0:n._id,u=null==o||null===(t=o.additional_properties)||void 0===t?void 0:t.publicationEndDate;(0,e.useEffect)((function(){if(Ze()===ne&&a){return window.TWP=window.TWP||{},window.TWP.hpRefreshTests=window.TWP.hpRefreshTests||{},window.TWP.hpRefreshTests["orca_".concat(a)]=function(){return!i.isPlaying||i.isMuted||v(u)},function(){var e,t,r;null===(r=window)||void 0===r||null===(t=r.TWP)||void 0===t||null===(e=t.hpRefreshTests)||void 0===e||delete e["orca_".concat(a)]}}}),[a,i.isMuted,i.isPlaying,u])}(),ca({isLive:b},u),function(t,r,n,o,i,a,u){var c=l(),s=c.videoId,d=c.uniqueId,f=c.resetUniqueId,p=void 0===f?function(){}:f,v=co().adControlsRef,b=zn(),y=m().setOverrideReducedMotion,g=$n().adState,h=Ei(),w=h.promoElement,S=h.playerState,A=h.resetVideoState,E=h.setShowSubtitles,O=h.toggleMute,P=h.reset,x=h.pause,C=h.play;(0,e.useImperativeHandle)(t,(function(){return{resetVideo:function(){P(),Ie("resetCarouselVideo",!0,s)},start:function(){a(),u()},startVideoLoad:function(){a()},stopVideoLoad:function(){null==r||r.stopLoad()},showControls:function(){n(!0)},playVideoPreview:function(){o&&w.current.playVideo(),C()},play:function(){C()},pause:function(){x()},toggleMute:function(){g===ce.PLAYING?v.current.toggleAdMute():O()},setTime:function(e){g!==ce.PLAYING&&"number"==typeof e&&(b.current.currentTime=e)},restart:function(){g!==ce.PLAYING&&(b.current.currentTime=0)},initializeNewVideo:function(e,t){i(e,t)},resetVideoState:function(e){A(e)},getDomNode:function(){return b.current},toggleSubtitles:function(){E(!S.showSubtitles)},setReducedMotion:function(e){y(e)},getUniqueId:function(){return d},on:function(e,t){b.current.addEventListener(e,t)},off:function(e,t){b.current.removeEventListener(e,t)},resetUniqueId:function(){p()},videoPlayerState:S}}),[S,P,s,a,u,i,r,n,o,w,C,x,g,v,O,b,A,E,y,d,p])}(n,re,le,s,ie,te,A),(0,e.useEffect)((function(){Y.status===T&&(w(),G({status:"READY"}))}),[Y.status]),function(t,r,n,o){var i=l().videoId,a=zn(),u=Vo().sendPerformanceEvent,c=void 0===u?function(){}:u,s=r.debug,d=void 0!==s&&s;(0,e.useEffect)((function(){window.dispatchEvent(new CustomEvent(X,{detail:{videoId:i,videoElementRef:a,orcaRef:t}})),Ie(X,!0,i,d),Zi(a,"render",ta.RENDER,{isLive:n},r),o({id:i,node:a.current,orcaPlayer:t}),c(K)}),[])}(n,u,b,i),t().createElement(t().Fragment,null,t().createElement(ba,{updateCues:O,handleVideoEnd:f,isStickyEnabled:J,updateStickyContext:Q,updateDisplay:I,debug:V}),g,ae&&!F&&t().createElement(t().Fragment,null,x&&j&&t().createElement(pa,{currentCue:j}),t().createElement(_,{config:u,hasSubtitles:x,isCarousel:B,carouselEnd:null==D?void 0:D.isEnd,closeCarousel:L,isLive:b,debug:V,isVertical:ue})))}));ya.displayName="OrcaCommonUI",ya.propTypes={onVideoRendered:i().func,config:i().object,promoEnabled:i().bool,liveEventEnded:i().bool,handleVideoEnd:i().func,isLive:i().bool,children:i().node,handleStart:i().func,transitionToVideo:i().func,updateCues:i().func,hasSubtitles:i().bool,currentCue:i().object,updateDisplay:i().func,Controls:i().elementType,carouselState:i().object,handleClosePlayer:i().func};var ga=Br("span",{position:"absolute",border:0,padding:0,whiteSpace:"nowrap",wordWrap:"normal",width:1,height:1,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",color:"currentColor","&:active":{clip:"auto",height:"auto",width:"auto",margin:0,overflow:"visible",position:"static"},"&:focus":{clip:"auto",height:"auto",width:"auto",margin:0,overflow:"visible",position:"static"}}),ma=Object.defineProperty,ha=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,Aa=(e,t,r)=>t in e?ma(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ea=e.forwardRef(((t,r)=>{var n=t,{children:o,size:i="100",fill:a="currentColor",label:l,className:u="",css:c}=n,s=((e,t)=>{var r={};for(var n in e)wa.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ha)for(var n of ha(e))t.indexOf(n)<0&&Sa.call(e,n)&&(r[n]=e[n]);return r})(n,["children","size","fill","label","className","css"]);let d=e.Children.only(o),f=Vr({size:Ur.sizes[i]||i,fill:a});return e.createElement(e.Fragment,null,e.cloneElement(d,((e,t)=>{for(var r in t||(t={}))wa.call(t,r)&&Aa(e,r,t[r]);if(ha)for(var r of ha(t))Sa.call(t,r)&&Aa(e,r,t[r]);return e})({"aria-hidden":!0,focusable:!1,role:"img",ref:r,fill:a,className:`${f({css:c,color:a})} ${u}`},s)),l?e.createElement(ga,null,l):null)}));Ea.displayName="Icon";var Oa=Br("button",{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"fit-content",borderRadius:"$round",cursor:"pointer",border:"none",appearance:"none",px:"$100",fontFamily:"$meta",fontWeight:"$bold",fontSize:"$100",lineHeight:"$100",gap:"$050",transition:`background ${Ur.transitions.fast} ${Ur.transitions.inOut}`,"@reducedMotion":{transition:"none"},"&:disabled":{color:"$onDisabled",backgroundColor:"$colors$disabled",borderColor:"$colors$onDisabled","@hover":{"&:hover":{backgroundColor:"$colors$disabled"}}},variants:{variant:{primary:{background:Ur.colors.primary,color:Ur.colors.onPrimary,"@hover":{"&:hover":{background:Ur.colors.gray60}}},secondary:{background:Ur.colors.secondary,color:Ur.colors.onSecondary,border:"1px solid $subtle","@hover":{"&:hover":{background:Ur.colors.gray400}}},cta:{background:Ur.colors.cta,color:Ur.colors.onCta,"@hover":{"&:hover":{background:Ur.colors.blue80}}}},density:{compact:{py:"$050"},default:{py:"$075"}},isOutline:{true:{background:"none",border:"1px solid"},false:{}},icon:{center:{py:"$050",px:"$050",fontSize:"0",lineHeight:"0",gap:"0",maxWidth:"fit-content"},left:{flexDirection:"row"},right:{flexDirection:"row-reverse"},none:{}}},defaultVariants:{variant:"secondary",density:"default",isOutline:!1,icon:"left"},compoundVariants:[{icon:"center",density:"default",css:{padding:"$075",fontSize:"0",lineHeight:"0"}},{isOutline:!0,variant:"primary",css:{background:"none",color:Ur.colors.primary,"@hover":{"&:hover":{background:Ur.colors.alpha25}}}},{isOutline:!0,variant:"secondary",css:{background:"none",color:Ur.colors.secondary,"@hover":{"&:hover":{background:Ur.colors.alpha25}}}},{isOutline:!0,variant:"cta",css:{background:"none",color:Ur.colors.cta,"@hover":{"&:hover":{background:Ur.colors.alpha25}}}}]}),Pa=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M6 2v12H4V2zm6 0v12h-2V2z"})))),xa=(0,e.memo)(Pa),Ca=function(e){var r=e.className,n=e.onClick;return t().createElement("svg",{className:r,onPointerDown:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 104 104",fill:"#fff"},t().createElement("polygon",{points:"23 13 89.183 50.82 23 91"}))};Ca.propTypes={className:i().string,onClick:i().func};const ja=Ca;var ka=r(2275),Ta=r.n(ka),Ia=r(6328),Ra=r.n(Ia),Da=r(8468),_a=r.n(Da),Ma=r(8035),La=r.n(Ma),$a=r(9255),Ba=r.n($a),Va=r(5380),za=r.n(Va),Fa=r(3287),Na={};function Ua(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ua(e,t,r[t])}))}return e}function Ha(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}Na.styleTagTransform=za(),Na.setAttributes=La(),Na.insert=_a().bind(null,"head"),Na.domAPI=Ra(),Na.insertStyleElement=Ba(),Ta()(Fa.A,Na),Fa.A&&Fa.A.locals&&Fa.A.locals;var qa=function(e){var r=e.isPlaying,n=void 0===r?null:r,o=e.toggleAdPlay,i=e.isMiniPlayer,a=void 0!==i&&i,l=e.buttonStyles;return t().createElement(Oa,Wa({"aria-label":n?"Pause video":"Play video",className:"focus-visible-highlight","data-testid":"orca-play-button",variant:"primary",css:Ha(Wa({border:"none",background:"none",padding:"0px",justifySelf:"center"},l&&Wa({},l)),{"&:hover":{background:"none"}})},o&&{onClick:function(e){e.stopPropagation(),o()}}),t().createElement(Ea,{fill:"white",size:a?"100":"150",label:"play"},n?t().createElement(xa,null):t().createElement(ja,null)))};qa.displayName="PlayPauseButton";var Ya={isPlaying:i().bool,toggleAdPlay:i().func,isMiniPlayer:i().bool};qa.propTypes=Wa({},Ya);var Ga=Br("div",{position:"absolute",bottom:0,fontSize:"$075",fontWeight:"$bold",width:"100%",marginBottom:"$050","@media (min-width: 480px)":{display:"none"}}),Za=function(){return t().createElement(Ga,null,t().createElement("p",{style:{margin:0}},"Swipe up for next video"))},Xa=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{fill:"currentColor",d:"m14.5 8-10 5.56V2.44z"})))),Ja=(0,e.memo)(Xa),Ka=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M15 8A7 7 0 0 1 1 8h1.08A5.92 5.92 0 1 0 8 2.08V1a7 7 0 0 1 7 7"})))),Qa=(0,e.memo)(Ka),el=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M14.3 5a6 6 0 0 0-.71-1.16A7 7 0 1 0 8 15a7 7 0 0 0 5-2l-.71-.71A5.94 5.94 0 0 1 8 14a6 6 0 1 1 4.79-9.6 4 4 0 0 1 .38.56c.11.18-.26-.16-.17 0h1.27l.1.1Z"}),e.createElement("path",{d:"M14.5 1.5h-1v3h-3v1h4v-4"})))),tl=(0,e.memo)(el),rl=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.label=r,this.icon=n},nl={READY:new rl("READY","Listen",Ja),LOADING:new rl("LOADING","Listen",Qa),LOADED:new rl("LOADED","Listen",Qa),BUFFER:new rl("BUFFER","Listen",Qa),PLAYING:new rl("PLAYING","Pause",xa),PAUSED:new rl("PAUSED","Play",Ja),ERROR:new rl("ERROR",void 0,tl)},ol=r(5598),il={};il.styleTagTransform=za(),il.setAttributes=La(),il.insert=_a().bind(null,"head"),il.domAPI=Ra(),il.insertStyleElement=Ba(),Ta()(ol.A,il),ol.A&&ol.A.locals&&ol.A.locals;var al=Br("button",{backgroundColor:"transparent",border:"none",width:"100%",paddingTop:"8px",paddingBottom:"4px",cursor:"pointer",touchAction:"none"}),ll=Br("div",{background:"$gray20",display:"flex",alignItems:"center",position:"absolute",height:"100%",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,cursor:"pointer"}),ul=Br("div",{position:"relative",borderRadius:"3px"}),cl=Br("div",{});function sl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sl(e,t,r[t])}))}return e}var fl="mousemove",pl="mouseup",vl="mouseleave",bl="touchmove",yl="touchend",gl="touchcancel",ml=(0,e.forwardRef)((function(r,n){var o=r.theme,i=r.changeToState,a=r.duration,l=r.setCurrentTime,u=void 0===l?function(){}:l,c=r.progress,s=r.setProgress,d=(0,e.useRef)(),f=function(){var e,t,r;n.current.duration&&s((null===(e=n.current)||void 0===e?void 0:e.currentTime)/(null===(t=n.current)||void 0===t?void 0:t.duration)*(null===(r=d.current)||void 0===r?void 0:r.offsetWidth))};(0,e.useEffect)((function(){var e=new ResizeObserver((function(){return f}));return e.observe(d.current),function(){return e&&e.disconnect()}}),[]);var p=function(e){var t;u(null===(t=e.target)||void 0===t?void 0:t.currentTime),f()};(0,e.useEffect)((function(){var e=n.current;if(e)return e.addEventListener("timeupdate",p),function(){return e.removeEventListener("timeupdate",p)}}),[]);var v=function(e){var t,r,n=e-(null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect().left),o=null===(r=d.current)||void 0===r?void 0:r.offsetWidth;s(En(n/o*o||0,0,o)),u(En(n/o*a,0,a))},b=function(e){var t,r,o=(e-(null===(t=d.current)||void 0===t?void 0:t.getBoundingClientRect().left))/(null===(r=d.current)||void 0===r?void 0:r.offsetWidth)*a||0;return n.current.currentTime=En(o,0,a)};return t().createElement(al,{tabIndex:-1,"aria-hidden":"true",ref:d,id:"media-components-scrubber","data-testid":"scrubber",onMouseDown:function(){var e,t,r=null===(e=n.current)||void 0===e?void 0:e.paused;r||null===(t=n.current)||void 0===t||t.pause();var o=function(e){return v(e.clientX)},l=function(e){var t;b(e.clientX)===a?i(nl.READY):r||null===(t=n.current)||void 0===t||t.play(),Pn(document,[[fl,o],[pl,l],[vl,l]])};On(document,[[fl,o],[pl,l],[vl,l]])},onTouchStart:function(e){var t,r;e.preventDefault();var o=null===(t=n.current)||void 0===t?void 0:t.paused;o||null===(r=n.current)||void 0===r||r.pause();var l=function(e){e.preventDefault(),v(e.changedTouches[0].clientX)},u=function(e){e.preventDefault(),b(e.changedTouches[0].clientX)===a?i(nl.READY):o||n.current.play(),Pn(document,[[bl,l],[yl,u],[gl,u]])};On(document,[[bl,l],[yl,u],[gl,u]])},onClick:function(e){return e.stopPropagation()}},t().createElement(ul,{id:"media-components-scrubber-bar",css:dl({},("light"===o||o===un||!o)&&{backgroundColor:"var(--wpds-colors-gray400)"},o===ln&&{backgroundColor:"var(--wpds-colors-gray60)"})},t().createElement(ll,{css:{width:c,background:o===un?"linear-gradient(180deg, #166DFC, 25.52%, #03AFCA 100%)":o===ln?"white":"$gray20"}},t().createElement(cl,{id:"media-components-scrubber-dot",css:{left:c,backgroundColor:o===un&&"#166DFC"}}))))}));ml.displayName="Scrubber",ml.propTypes={theme:i().string.isRequired,changeToState:i().func.isRequired,duration:i().number.isRequired,setCurrentTime:i().func,progress:i().number.isRequired,setProgress:i().func.isRequired};var hl=Br("div"),wl=Br(hl,{display:"flex",variants:{direction:{row:{flexDirection:"row"},column:{flexDirection:"column"}},align:{center:{alignItems:"center"},start:{alignItems:"flex-start"},end:{alignItems:"flex-end"}},width:{full:{width:"100%"}},justify:{center:{justifyContent:"center"},start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"}}}}),Sl=Br(hl,{fontFamily:"$meta",variants:{size:{md:{fontSize:"$087"}},align:{right:{textAlign:"right"}},color:{secondary:{color:"$secondary"}}}});function Al(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function El(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ol(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){El(e,t,r[t])}))}return e}function Pl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Al(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Al(e,t):void 0}}(e,t)||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.")}()}var xl=Br(wl,{gap:"$050"}),Cl=function(e){var r,n,o,i,a=e.currState,l=e.setSelected,u=e.changeToState,c=e.duration,s=e.progress,d=e.setProgress,f=zn();return t().createElement(xl,{direction:"column",align:"end",justify:"start",onMouseDown:function(){return l(!0)},onMouseUp:function(){return l(!1)}},t().createElement(ml,{ref:f,theme:"dark",currState:a,changeToState:u,duration:c,progress:s,setProgress:d}),t().createElement(Sl,{size:"md",align:"right",color:"secondary"},(n=c,o=tn(null===(r=f.current)||void 0===r?void 0:r.currentTime),(i=tn(n)).hours?"".concat(nn(o)," / ").concat(nn(i)):"".concat(on(o)," / ").concat(on(i)))))},jl=function(r){var n=r.initDuration,o=r.setSelected,i=r.persistentProgress,a=r.setPersistentProgress,l=zn(),u=Pl((0,e.useState)(i),2),c=u[0],s=u[1],d=Pl((0,e.useState)(nl.READY),2),f=d[0],p=d[1],v=Pl((0,e.useState)(n||NaN),2),b=v[0],y=v[1],g=Pl((0,e.useState)(!1),2),m=g[0],h=g[1],w=(0,e.useRef)(i);return function(t,r,n){(0,e.useEffect)((function(){t!==r&&n(r)}),[t,r,n])}(b,n,y),function(t,r){(0,e.useEffect)((function(){r.current=t}),[t,r])}(c,w),function(t,r){(0,e.useEffect)((function(){r(t.current)}),[t,r])}(w,a),t().createElement(Cl,{currState:f,setSelected:o,changeToState:function(e,t){e===nl.LOADED?function(e,t,r,n,o){r(e.current.duration),t!==nl.PAUSED&&e.current.play(),n||o(!0)}(l,f,y,m,h):e===nl.READY?function(e){e(0)}(s):e===nl.ERROR&&function(e){Ue.send("video-scrubber-error",{player:"Orca",errorMessage:e.message}),console.error(e)}(t),p(e)},duration:b,progress:c,setProgress:s})},kl={setSelected:i().func.isRequired};Cl.propTypes=Ol({currState:i().object.isRequired,changeToState:i().func.isRequired,duration:i().number.isRequired,progress:i().number.isRequired,setProgress:i().func.isRequired},kl),jl.propTypes=Ol({initDuration:i().number.isRequired,persistentProgress:i().number.isRequired,setPersistentProgress:i().func.isRequired},kl);var Tl=r(9734),Il={};function Rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Il.styleTagTransform=za(),Il.setAttributes=La(),Il.insert=_a().bind(null,"head"),Il.domAPI=Ra(),Il.insertStyleElement=Ba(),Ta()(Tl.A,Il),Tl.A&&Tl.A.locals&&Tl.A.locals;var Dl=function(r){var n,o=r.playerState,i=r.handleVolumeChange,a=r.toggleMute,l=zn(),u=o.volume,c=o.isMuted,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rl(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rl(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(isNaN(null==l||null===(n=l.current)||void 0===n?void 0:n.volume)?1:l.current.volume),2),d=s[0],f=s[1],p=c?0:d,v=(0,e.useRef)();return t().createElement("input",{tabIndex:-1,"aria-hidden":"true",type:"range",min:0,max:1,step:.02,value:p,"data-testid":"volume-slider",ref:v,className:"audio-scrubber",onChange:function(e){!function(e){e.target.valueAsNumber!==u&&c&&a(),f(e.target.valueAsNumber),i(e.target.valueAsNumber),function(e){var t=e.target,r=t.min,n=t.max,o=t.value-r,i=n-r;e.target.style.background="linear-gradient(to right, #fff 0%, #fff ".concat(o/i*100,"%, #595959 ").concat(o/i*100,"%, #595959 100%)")}(e)}(e)},style:{background:"linear-gradient(to right, #fff 0%, #fff ".concat(100*p,"%, #595959 ").concat(100*p,"%, #595959 100%)")}})};Dl.propTypes={playerState:i().object.isRequired,handleVolumeChange:i().func.isRequired,toggleMute:i().func.isRequired};const _l=Dl;var Ml=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M11.94 8a4 4 0 0 0-2.11-3.53l-.48.88a3 3 0 0 1 0 5.3l.48.88A4 4 0 0 0 11.94 8","data-name":"Path 22"}),e.createElement("path",{d:"M3.47 5H.94v6h2.53l2.84 2.28 1.63 1.31V1.41L6.31 2.72Zm3.47 7.5L3.83 10H1.94V6h1.89l3.11-2.5Z","data-name":"Path 23"}),e.createElement("path",{d:"m11.06 1.76-.42.91a5.87 5.87 0 0 1 0 10.68l.41.91a6.88 6.88 0 0 0 0-12.5Z","data-name":"Path 24"})))),Ll=(0,e.memo)(Ml),$l=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M3.85 5H1.32v6h2.53l2.84 2.28 1.63 1.31V1.41L6.69 2.72Zm3.47 7.5L4.21 10H2.32V6h1.89l3.11-2.5Z","data-name":"Path 32"}),e.createElement("path",{d:"m14.68 6.35-.7-.7-1.66 1.64-1.64-1.64-.7.7L11.61 8 10 9.65l.7.7 1.65-1.64L14 10.35l.7-.7L13 8Z","data-name":"Path 33"})))),Bl=(0,e.memo)($l);function Vl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Vl(e,t,r[t])}))}return e}function Fl(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var Nl=function(e){var r=e.isMuted,n=e.isMiniPlayer;return t().createElement(Ea,{fill:"white",size:n?"100":"150",label:"mute"},r?t().createElement(Bl,null):t().createElement(Ll,null))};Nl.propTypes={isMuted:i().bool,isMiniPlayer:i().bool};var Ul=function(e){var r=e.isMuted,n=void 0!==r&&r,o=e.toggleMute,i=e.isMiniPlayer,a=void 0!==i&&i,l=e.buttonStyles;return t().createElement(Oa,{"aria-label":n?"Unmute audio":"Mute audio",className:"focus-visible-highlight","data-testid":"sound-button",variant:"primary",css:Fl(zl({border:"none",background:"none",padding:"0px",cursor:"pointer",justifySelf:"end"},l&&zl({},l)),{"&:hover":{background:"none",right:"0px"}}),onClick:function(e){e.stopPropagation(),o()}},t().createElement(Nl,{isMuted:n,isMiniPlayer:a}))};Ul.displayName="SoundButton";var Wl={toggleMute:i().func,isMiniPlayer:i().bool};function Hl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Ul.propTypes=zl({},Wl);var ql=function(e){var r=e.setShowVolumeSlider,n=e.isVertical,o=e.isMiniPlayer,i=e.showVolumeSlider,a=e.playerState,l=e.handleVolumeChange,u=e.toggleMute,c=e.buttonStyles,s=a.isMuted;return t().createElement(hl,{onMouseOver:function(){return r(!0)},onMouseLeave:function(){return r(!1)},onClick:function(e){e.stopPropagation()}},t().createElement(hl,{css:{position:"relative",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"5px"}},!n&&!o&&t().createElement(hl,{css:{display:"flex",alignItems:"center",overflow:"hidden",width:i?"105px":"0px",transition:"width 0.5s ease-in-out","@sm":{display:"none"}}},t().createElement(_l,{playerState:a,handleVolumeChange:l,toggleMute:u})),t().createElement(Ul,{isMuted:s,toggleMute:u,isMiniPlayer:o,buttonStyles:c})))};ql.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Hl(e,t,r[t])}))}return e}({setShowVolumeSlider:i().func,isVertical:i().bool,showVolumeSlider:i().bool,playerState:i().shape({isMuted:i().bool}),handleVolumeChange:i().func,buttonStyles:i().object},Wl);const Yl=ql;var Gl=function(e){var r=e.headline,n=Br("div",{position:"absolute",bottom:"100px",display:"flex",textAlign:"left",opacity:1}),o=Br("p",{color:"$gray700",fontFamily:"$headline",fontSize:"$125"});return t().createElement(n,null,t().createElement(o,null,r))};Gl.propTypes={headline:i().string.isRequired},Gl.displayName="Headline";const Zl=(0,e.memo)(Gl);function Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jl=Br("div",{position:"absolute",inset:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}),Kl=Br(Ea,{boxSizing:"content-box","@sm":{padding:"20px 8px 20px 8px",margin:"-20px -8px -20px -8px"}}),Ql=Fr({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),eu=function(){var r=zn(),n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xl(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xl(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),o=n[0],i=n[1],a=(0,e.useRef)(null),l=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=r.current;if(e){var t=function(){clearTimeout(a.current),a.current=setTimeout((function(){i(!0)}),200)},n=function(){clearTimeout(a.current),clearTimeout(l.current),l.current=setTimeout((function(){i(!1)}),50)},o=function(){clearTimeout(a.current),clearTimeout(l.current),l.current=setTimeout((function(){i(!1)}),50)};return e.addEventListener("waiting",t),e.addEventListener("play",n),e.addEventListener("playing",n),e.addEventListener("pause",o),function(){clearTimeout(a.current),clearTimeout(l.current),e.removeEventListener("waiting",t),e.removeEventListener("play",n),e.removeEventListener("playing",n),e.removeEventListener("pause",o)}}}),[r]),o?t().createElement(Jl,null,t().createElement(Oa,{variant:"primary",isOutline:"false",icon:"center",css:{border:"none",background:"$alpha50","&:hover":{background:"$alpha50"}}},t().createElement(Kl,{label:"loading",fill:"white",css:{width:"25px",height:"25px",animation:"".concat(Ql," 2s linear infinite"),"@reducedMotion":{animation:"none"}}},t().createElement(Qa,null)))):null};eu.displayName="LoadingState";const tu=eu;var ru=Br("div",{width:"100%",height:"100%",background:mn({topPercent:15,bottomPercent:25}),variants:{isVisible:{true:{opacity:1},false:{opacity:0}}}}),nu=Br("div",{boxSizing:"border-box",position:"absolute",top:"0",width:"100%",paddingTop:"$075",paddingLeft:"$150",paddingRight:"$150",variants:{isMiniPlayer:{true:{paddingTop:"$050"}}}}),ou=Br("div",{justifyContent:"space-between",flexDirection:"row",width:"100%",display:"flex","@sm":{alignItems:"center"}}),iu=Br("div",{boxSizing:"border-box",position:"absolute",bottom:"0%",width:"100%",paddingBottom:"$075",paddingLeft:"$150",paddingRight:"$150",variants:{isMiniPlayer:{true:{paddingBottom:"$050"}},isCarousel:{true:{"@sm":{marginBottom:"$150"}},false:{"@sm":{marginBottom:"0"}}}}}),au=Br("div",{display:"grid",width:"100%",alignItems:"center",justifyContent:"space-between",variants:{isLooping:{true:{gridTemplateColumns:"repeat(2, 1fr)"},false:{gridTemplateColumns:"repeat(3, 1fr)"}}}}),lu=Br("div",{display:"flex"}),uu=Br("div",{alignItems:"center",display:"flex",gap:"$025",paddingRight:"$100"}),cu=Br("div",{color:"$secondary",fontWeight:"$bold"}),su=Br("span",{height:"$050",width:"$050",backgroundColor:"$red100",borderRadius:"50%",display:"inline-block",animation:"sc-status-light-blink-animation 4s ease-in-out infinite alternate"}),du=Br(hl,{variants:{isLooping:{true:{justifySelf:"left"},false:{justifySelf:"center"}}}}),fu=function(e,t,r){return e===Xr.MINI&&!t&&!r},pu=function(e,t,r){return e?{background:mn({topPercent:0,bottomPercent:25})}:t||r?{background:mn({topPercent:35,bottomPercent:35})}:{background:mn({topPercent:15,bottomPercent:25})}},vu=function(r){var n=r.children,o=r.togglePlay,i=r.controlsContainerHeight,a=r.setIsVisible,u=r.selected,c=r.debug,s=l().videoData,d=(0,e.useRef)(null);(0,e.useEffect)((function(){return d.current=setTimeout((function(){a(!1)}),3e3),function(){clearTimeout(d.current)}}),[a]);var f=(0,e.useCallback)((function(){d.current&&clearTimeout(d.current),a(!0)}),[d,a]),p=(0,e.useCallback)((function(){u||a(!1)}),[u,a]),v=(0,e.useCallback)((function(){d.current&&clearTimeout(d.current),a(!0),Ie(R,!0,s._id,c)}),[c,s._id,a]),b=(0,e.useCallback)((function(){d.current=setTimeout((function(){a(!1),Ie(R,!1,s._id,c)}),3e3)}),[c,s._id,a]);return t().createElement(bu,{"data-testid":"orca-controls",tabIndex:0,"aria-label":"Video controls",onClick:o,onMouseOver:f,onMouseLeave:p,onFocus:function(){a(!0)},onTouchStart:v,onTouchEnd:b,style:{"@sm":{maxHeight:i}}},n)};vu.propTypes={children:i().node,togglePlay:i().func,controlsContainerHeight:i().string,setIsVisible:i().func,selected:i().bool,debug:i().bool};var bu=Br("div",{top:"0",left:"0",position:"absolute",height:"100%",width:"100%",display:"flex",zIndex:"2",opacity:1,"& .fade-out":{opacity:0}});function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gu(e,t,r[t])}))}return e}function hu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yu(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yu(e,t):void 0}}(e,t)||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.")}()}var wu=function(r){var n=r.config,o=r.isVertical,i=r.carouselEnd,a=r.TopControls,u=void 0===a?function(){}:a,c=r.LeftButtons,s=void 0===c?function(){}:c,d=r.closeCarousel,f=r.hasSubtitles,p=r.isLive,v=l().videoData,b=m().autoplayState,y=Tn().isOpenSticky,g=$n().adState,h=Ei(),w=h.initDuration,S=h.playerSize,A=h.playerState,E=h.isFullscreen,O=h.handleVolumeChange,P=h.toggleMute,x=h.onPlayButton,C=n.isCarousel,j=n.debug,k=hu((0,e.useState)(!0),2),T=k[0],I=k[1],R=hu((0,e.useState)(!1),2),D=R[0],_=R[1],M=hu((0,e.useState)(!1),2),L=M[0],$=M[1],B=hu((0,e.useState)(0),2),V=B[0],z=B[1],F=fu(S,E,o),N=window.innerHeight?"".concat(window.innerHeight,"px"):"100%",U=!F&&!p&&!b.isLooping,W=Re(v),H=C&&!W,q=(null==v?void 0:v.headlines.basic)||"";return t().createElement(vu,{"data-testid":"orca-controls",tabIndex:0,"aria-label":"Video controls",togglePlay:function(){g!==ce.PLAYING&&x()},controlsContainerHeight:N,setIsVisible:I,selected:L,debug:j},t().createElement(tu,null),t().createElement(ru,{isVisible:T,css:mu({},pu(b.isLooping,y,F))},t().createElement(u,{config:n,isVertical:o,closeCarousel:d,setSelected:$}),t().createElement(iu,{isMiniPlayer:F,isCarousel:C},t().createElement(au,{isLooping:b.isLooping},H&&t().createElement(Zl,{headline:q}),t().createElement(s,{isVertical:o,hasSubtitles:f,isLive:p}),t().createElement(du,{isLooping:b.isLooping},t().createElement(qa,{isPlaying:A.isPlaying,isMiniPlayer:F,buttonStyles:{margin:"-12px -12px 0 -12px",padding:"$075"}})),t().createElement(Yl,{setShowVolumeSlider:_,isVertical:o,isMiniPlayer:F,showVolumeSlider:D,playerState:A,handleVolumeChange:O,toggleMute:P,buttonStyles:{margin:"-12px -12px 0 -12px",padding:"$075"}})),U&&t().createElement(jl,{setSelected:$,initDuration:w,persistentProgress:V,setPersistentProgress:z})),C&&!i&&t().createElement(Za,null)))};wu.propTypes={config:i().object,isVertical:i().bool,carouselEnd:i().bool,TopControls:i().elementType,LeftButtons:i().elementType,isLive:i().bool,closeCarousel:i().func,hasSubtitles:i().bool};var Su=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M14 3H1v10h14V3Zm0 9H2V4h12Z","data-name":"Path 25"}),e.createElement("path",{d:"M6 10.33a1.77 1.77 0 0 0 1.83-1.57l-1-.17c-.09.6-.32.9-.79.9S5.2 9 5.2 8s.29-1.48.8-1.48.65.33.73.9l1.06-.17A1.69 1.69 0 0 0 6 5.67c-1.21 0-2 .87-2 2.41a2 2 0 0 0 1.73 2.23 1.2 1.2 0 0 0 .27.02","data-name":"Path 26"}),e.createElement("path",{d:"M10.13 10.33A1.77 1.77 0 0 0 12 8.76l-1-.17c-.08.6-.31.9-.79.9S9.37 9 9.37 8s.29-1.51.79-1.51.65.33.73.9L12 7.25a1.69 1.69 0 0 0-1.79-1.58c-1.21 0-2 .87-2 2.41a2 2 0 0 0 1.73 2.24Z","data-name":"Path 27"})))),Au=(0,e.memo)(Su),Eu=function(e){var r=e.className;return t().createElement("svg",{className:r,width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t().createElement("path",{d:"M2 19.6431V4.64307H23V19.6431H2Z",fill:"white"}),t().createElement("path",{d:"M11.3349 15C10.8257 15.4369 10.1699 15.6648 9.49941 15.6378C9.36372 15.6428 9.22789 15.6327 9.09441 15.6078C8.30744 15.5067 7.59257 15.098 7.10623 14.4711C6.61989 13.8442 6.4017 13.0502 6.49941 12.2628C6.49941 9.95282 7.68441 8.64782 9.49941 8.64782C10.1696 8.60675 10.8287 8.83322 11.332 9.27754C11.8354 9.72186 12.142 10.3477 12.1844 11.0178L10.5944 11.2728C10.4744 10.4178 10.2644 9.92282 9.49941 9.92282C8.73441 9.92282 8.29941 10.6428 8.29941 12.1428C8.29941 13.6428 8.85441 14.3778 9.55941 14.3778C10.2644 14.3778 10.6094 13.9278 10.7444 13.0278L12.2444 13.2828C12.1691 13.9496 11.8442 14.5631 11.3349 15Z",fill:"#111111"}),t().createElement("path",{d:"M17.5693 15.0214C17.0471 15.4598 16.3762 15.6806 15.6957 15.6378L15.4107 15.6228C15.0196 15.5728 14.6422 15.4462 14.3 15.2503C13.9579 15.0543 13.6577 14.7928 13.4167 14.4808C13.1757 14.1687 12.9986 13.8122 12.8954 13.4316C12.7923 13.051 12.7652 12.6539 12.8157 12.2628C12.8157 9.95282 14.0007 8.64782 15.8157 8.64782C16.4859 8.60675 17.145 8.83322 17.6484 9.27754C18.1517 9.72186 18.4583 10.3477 18.5007 11.0178L16.8357 11.2278C16.7157 10.3728 16.4907 9.87782 15.7407 9.87782C14.9907 9.87782 14.5557 10.6428 14.5557 12.1428C14.5557 13.6428 15.0957 14.3778 15.8157 14.3778C16.5357 14.3778 16.8807 13.9278 17.0007 13.0278L18.5007 13.2828C18.425 13.9605 18.0915 14.583 17.5693 15.0214Z",fill:"#111111"}))};Eu.propTypes={className:i().string};const Ou=Eu;var Pu=Br("div",{width:"40px",height:"40px"}),xu=function(e){var r=e.setShowSubtitles,n=e.playerState,o=e.hasSubtitles,i=zn();return o?t().createElement(Oa,{"aria-label":n.showSubtitles?"Hide subtitles":"Show subtitles","data-testid":"subtitles-button",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",paddingLeft:0,background:"none","&:hover":{background:"none"},margin:"-12px -12px 0 -12px",padding:"$075"},onClick:function(e){e.stopPropagation();var t=new Event("captions");i.current.dispatchEvent(t),r(!n.showSubtitles)}},n.showSubtitles?t().createElement(Ou,null):t().createElement(Ea,{fill:"white",size:"150",label:"subtitles"},t().createElement(Au,null))):t().createElement(Pu,null)};function Cu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}xu.displayName="SubtitlesButton",xu.propTypes={setShowSubtitles:i().func,playerState:i().object,hasSubtitles:i().bool};var ju=Br("div",{color:"$secondary",fontSize:"$087",userSelect:"none"});function ku(r){var n,o,i=r.initDuration,a=zn(),l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cu(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cu(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)((null===(n=a.current)||void 0===n?void 0:n.currentTime)||0),2),u=l[0],c=l[1];return(0,e.useEffect)((function(){var e=a.current;if(e){var t=function(e){var t;c(null===(t=e.target)||void 0===t?void 0:t.currentTime)};return null==e||e.addEventListener("timeupdate",t),function(){null==e||e.removeEventListener("timeupdate",t)}}}),[a]),t().createElement(ju,null,(o=tn(i-u)).hours?nn(o):on(o))}ku.propTypes={initDuration:i().number.isRequired};var Tu=function(e){var r,n,o,i=e.isVertical,a=e.hasSubtitles,u=e.isLive,c=Ei(),s=c.initDuration,d=c.playerSize,f=c.playerState,p=c.isFullscreen,v=c.setShowSubtitles,b=l().videoData,y=fu(d,p,i),g=!(y||(r=b,o=null==r||null===(n=r.taxonomy)||void 0===n?void 0:n.tags,(null==o?void 0:o.filter((function(e){return e.text===le.BURNED_CAPTIONS})).length)>0));return t().createElement(lu,null,u?t().createElement(Iu,{isMiniPlayer:y}):y&&t().createElement(ku,{initDuration:s}),g&&t().createElement(xu,{setShowSubtitles:v,playerState:f,hasSubtitles:a}))};Tu.propTypes={isVertical:i().bool,hasSubtitles:i().bool,isLive:i().bool};var Iu=function(e){var r=e.isMiniPlayer;return t().createElement(uu,null,t().createElement(su,null),t().createElement(cu,{css:{fontSize:r?"$087":"$100"}},"LIVE"))};Iu.propTypes={isMiniPlayer:i().bool};var Ru=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M5.5 3V2H2v3.5h1v-2l2.62 2.64.71-.71L3.89 3Z","data-name":"Path 28"}),e.createElement("path",{d:"M10.5 2v1h1.79L9.77 5.53l.7.7L13 3.71V5.5h1V2Z","data-name":"Path 29"}),e.createElement("path",{d:"m13 12.11-2.44-2.44-.7.71L12.48 13h-2v1H14v-3.5h-1Z","data-name":"Path 30"}),e.createElement("path",{d:"M5.53 9.77 3 12.29V10.5H2V14h3.5v-1H3.71l2.52-2.53Z","data-name":"Path 31"})))),Du=(0,e.memo)(Ru),_u=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M2.83 5.14v1h3.5v-3.5h-1v2L2.71 2 2 2.71l2.44 2.43Z","data-name":"Path 28"}),e.createElement("path",{d:"M13.27 6.23v-1h-1.79L14 2.7l-.7-.7-2.53 2.52V2.73h-1v3.5Z","data-name":"Path 29"}),e.createElement("path",{d:"M10.86 11.56 13.3 14l.7-.71-2.62-2.62h2v-1H9.86v3.5h1Z","data-name":"Path 30"}),e.createElement("path",{d:"m2.7 14 2.53-2.52v1.79h1v-3.5h-3.5v1h1.79L2 13.3Z","data-name":"Path 31"})))),Mu=(0,e.memo)(_u),Lu=function(e){var r=e.isFullscreen,n=e.setIsFullscreen,o=e.isMiniPlayer,i=zn();return t().createElement(Oa,{"aria-label":"Expand video to full screen","data-testid":"fullscreen-button",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},onClick:function(e){e.stopPropagation();var t=new Event(r?F:z);i.current.dispatchEvent(t),n(!r)}},t().createElement(Ea,{fill:"white",size:o?"100":"150",label:"full-screen"},r?t().createElement(Mu,null):t().createElement(Du,null)))};Lu.displayName="FullScreenButton";const $u=Lu;Lu.propTypes={isFullscreen:i().bool.isRequired,setIsFullscreen:i().func.isRequired,isMiniPlayer:i().bool.isRequired};var Bu=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M14 14H2V7h1v6h10V7h1Zm-5.5-2h-1V3h1Z"}),e.createElement("path",{d:"M10.29 5.71 11 5 8 2l-.71.71L5 5l.71.71L8 3.42z"})))),Vu=(0,e.memo)(Bu),zu=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M8 1a7 7 0 1 0 5 2.05A7 7 0 0 0 8 1m0 13a6 6 0 1 1 4.24-1.76A6 6 0 0 1 8 14","data-name":"Path 19"}),e.createElement("path",{d:"M7 10.77 5.25 9.11l.56-.55 1.13 1.07 3.48-4.09.61.51Z","data-name":"Path 20"})))),Fu=(0,e.memo)(zu),Nu=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{fill:"currentColor",d:"M9.444 6.557q.197.199.35.42l-.726.726a1.97 1.97 0 0 0-3.009-.539l-.108.1L3.777 9.44a1.97 1.97 0 0 0 2.678 2.886l.107-.1 1.173-1.173.707.707-1.172 1.173a2.97 2.97 0 1 1-4.2-4.2l2.174-2.175a2.97 2.97 0 0 1 4.2 0M13 3.002a2.97 2.97 0 0 1 0 4.2l-2.174 2.175a2.97 2.97 0 0 1-4.495-.343l.72-.72q.118.191.282.355a1.97 1.97 0 0 0 2.678.1l.107-.1 2.175-2.174a1.97 1.97 0 0 0-2.678-2.886l-.108.1L8.325 4.89l-.707-.707 1.181-1.18a2.97 2.97 0 0 1 4.2 0"})))),Uu=(0,e.memo)(Nu);function Wu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Hu(e,t,r[t])}))}return e}var Yu=Br("span",{position:"relative",left:"2px",fontSize:"$075",padding:"4px 6px",color:"white",borderRadius:"5px",opacity:0,transition:"opacity 0.3s ease-in-out",pointerEvents:"none",backgroundColor:"rgba(42, 42, 42, .8)"}),Gu=function(r){var n=r.content,o=r.onBlur,i=void 0===o?function(){}:o,a=r.isMiniPlayer,l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wu(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wu(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),u=l[0],c=l[1];(0,e.useEffect)((function(){if(!1!==u){var e=setTimeout((function(){return c(!1)}),2e3);return function(){clearTimeout(e)}}}),[u]);var s=(0,e.useCallback)((function(e){e.stopPropagation(),function(e){navigator.clipboard.writeText(e),c(!0)}(n)}),[n]);return t().createElement(t().Fragment,null,t().createElement(Oa,{"aria-label":"Copy link",icon:"center",className:"focus-visible-highlight",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},onClick:s,onBlur:i},t().createElement(Ea,{fill:"white",size:a?"100":"150"},u?t().createElement(Fu,null):t().createElement(Uu,null))),t().createElement(Yu,{css:qu({},u&&{opacity:1})},"Link copied"))};function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Gu.displayName="CopyButton",Gu.propTypes={content:i().string.isRequired,onBlur:i().func,isMiniPlayer:i().bool.isRequired};var Xu=function(r){var n,o,i=r.headline,a=r.canonicalUrl,l=r.setSelected,u=r.isMiniPlayer,c=si()===ti,s=(n={title:i,url:a},"object"==("undefined"==typeof navigator?"undefined":(o=navigator)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"==typeof navigator.canShare&&"function"==typeof navigator.share&&navigator.canShare(n)&&c),d=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zu(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zu(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),f=d[0],p=d[1],v=(0,e.useCallback)((function(){var e;f||(p(!0),(e={title:i,url:a},navigator.share(e)).then((function(){p(!1)})).catch((function(){p(!1)})))}),[i,a,f]);return t().createElement(t().Fragment,null,s?t().createElement(Oa,{icon:"center",variant:"primary",css:{border:"none",background:"none","&:hover":{background:"none"},margin:"-$075",padding:"$075"},"data-testid":"share-button",onFocus:function(){l(!0)},onClick:function(e){e.stopPropagation(),s&&v()}},t().createElement(Ea,{fill:"white",size:"150",label:"share"},t().createElement(Vu,null))):t().createElement(Gu,{isMiniPlayer:u,content:a}))};Xu.displayName="ShareButton",Xu.propTypes={headline:i().string.isRequired,canonicalUrl:i().string.isRequired,setSelected:i().func,isMiniPlayer:i().bool.isRequired};var Ju=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"m10 3.38.71.71L6.75 8l3.92 3.91-.71.71L5.33 8Z"})))),Ku=(0,e.memo)(Ju),Qu=Br("div",{width:"100%",justifyContent:"center",flexDirection:"column",alignItems:"flex-start"}),ec=Br("span",{display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:999,color:"#FFF",cursor:"pointer",top:"$150",left:"15px",fontWeight:"$regular"}),tc=function(r){var n=r.isCarousel,o=r.closeCarousel,i=r.closeFullscreen,a=zn(),l=(0,e.useCallback)((function(e){if(e.stopPropagation(),n)o();else{i();var t=new Event(F);a.current.dispatchEvent(t)}}),[n,o,i,a]);return t().createElement(Qu,{css:{display:"none","@sm":{display:"flex"}}},t().createElement(ec,{onClick:l,"data-testid":"go-back-button"},t().createElement(Ea,{size:"100"},t().createElement(Ku,null))," ",t().createElement("small",{style:{fontWeight:"$regular"}},t().createElement("b",null,"Go back"))))};tc.propTypes={isCarousel:i().bool,closeCarousel:i().func,closeFullscreen:i().func};var rc=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M13 3.65 12.35 3 8 7.34 3.65 3 3 3.65 7.34 8 3 12.35l.65.65L8 8.66 12.35 13l.65-.65L8.66 8Z"})))),nc=(0,e.memo)(rc);function oc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ic(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oc(e,t,r[t])}))}return e}var ac=function(e){var r=e.closeStickyPlayer,n=e.buttonStyles;return t().createElement(Oa,{"data-testid":"close-sticky-button",icon:"center",css:ic({border:"none",background:"none",padding:"0px","&:hover":{background:"none"}},n&&ic({},n)),onClick:function(e){e.stopPropagation(),r()}},t().createElement(Ea,{fill:"white",size:"150",label:"close-player"},t().createElement(nc,null)))};ac.displayName="CloseStickyPlayerButton",ac.propTypes={closeStickyPlayer:i().func,buttonStyles:i().object};var lc=Br("div",{display:"flex",justifyContent:"center",alignItems:"center"}),uc=function(e){var r=e.children;return t().createElement(lc,null,r)};uc.propTypes={children:i().node.isRequired};var cc=function(e){var r,n=e.config,o=e.isVertical,i=e.closeCarousel,a=e.setSelected,u=l().videoData,c=Tn().isOpenSticky,s=Ei(),d=s.playerSize,f=s.setIsFullscreen,p=s.isFullscreen,v=s.closeFullscreen,b=s.showFullscreenBtn,y=s.closeStickyPlayer,g=n.isCarousel,m=n.allowShare,h=void 0===m||m,w=(null==(r=u)?void 0:r.canonical_url)?r.canonical_url.includes(k)?r.canonical_url:"".concat(k).concat(r.canonical_url):null,S=fu(d,p,o),A=p&&o||g,E=c&&!p,O=function(e){var t,r=null==e||null===(t=e.taxonomy)||void 0===t?void 0:t.tags;return null==r?void 0:r.some((function(e){return"excludevideoelement"===e.text}))}(u),P=!S&&h&&w&&!O,x=(null==u?void 0:u.headlines.meta_title)||"",C=(null==u?void 0:u.headlines.basic)||"",j=x||C;return t().createElement(nu,{isMiniPlayer:S},t().createElement(ou,null,A&&t().createElement(tc,{isCarousel:g,closeFullscreen:v,closeCarousel:i}),t().createElement(sc,{showCloseStickyButton:E,closeStickyPlayer:y,showShareButton:P,canonicalUrl:w,headline:j,setSelected:a,isMiniPlayer:S}),t().createElement(dc,{isFullscreen:p,setIsFullscreen:f,isMiniPlayer:S,showFullscreenBtn:b})))};cc.propTypes={isVertical:i().bool,config:i().object,closeCarousel:i().func,setSelected:i().func};var sc=function(e){var r=e.showCloseStickyButton,n=e.closeStickyPlayer,o=e.showShareButton,i=e.canonicalUrl,a=e.headline,l=e.setSelected;return t().createElement(uc,null,r?t().createElement(ac,{closeStickyPlayer:n}):o&&t().createElement(Xu,{headline:a,canonicalUrl:i,setSelected:l}))};sc.propTypes={showCloseStickyButton:i().bool,closeStickyPlayer:i().func,showShareButton:i().bool,canonicalUrl:i().string,headline:i().string,setSelected:i().func};var dc=function(e){var r=e.isFullscreen,n=e.setIsFullscreen,o=e.isMiniPlayer,i=e.showFullscreenBtn;return t().createElement(uc,null,i&&t().createElement($u,{isFullscreen:r,setIsFullscreen:n,isMiniPlayer:o}))};dc.propTypes={isFullscreen:i().bool,setIsFullscreen:i().func,isMiniPlayer:i().bool,showFullscreenBtn:i().bool};var fc=function(e){var r=e.config,n=e.isVertical,o=e.carouselEnd,i=e.isLive,a=e.closeCarousel,l=e.hasSubtitles;return t().createElement(wu,{config:r,isVertical:n,carouselEnd:o,TopControls:cc,LeftButtons:Tu,closeCarousel:a,hasSubtitles:l,isLive:i})};function pc(){return"undefined"!=typeof document&&(pn("wp_geo")||"").toUpperCase().endsWith("|EEA")}fc.propTypes={config:i().object,isVertical:i().bool,carouselEnd:i().bool,isLive:i().bool,closeCarousel:i().func,hasSubtitles:i().bool};function vc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var gc=function(){function e(t){var r,n,o,i,a,l,u,c,s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bc(this,"handlePlay",(function(){var e=Date.now();s.startTime||(s.startTime=e),s.lastPlayTime=e,s.videoEnded=!1,s.contentType="ct"})),bc(this,"handleEnd",(function(){s.videoEnded=!0})),bc(this,"handleNewVideoData",(function(e){s.currentVideoData=e.detail})),bc(this,"handleAdStart",(function(){s.sawPreroll=!0,s.contentType="ad"})),this.player=t,this.startTime=null,this.lastPlayTime=null,this.videoEnded=!1,this.currentVideoData=t.videoData,this.firstVideoData=t.videoData,null===(n=t.videoElementRef)||void 0===n||null===(r=n.current)||void 0===r||r.addEventListener($,this.handlePlay,{signal:this.player.signal}),null===(i=t.videoElementRef)||void 0===i||null===(o=i.current)||void 0===o||o.addEventListener(M,this.handleEnd,{signal:this.player.signal}),null===(l=t.videoElementRef)||void 0===l||null===(a=l.current)||void 0===a||a.addEventListener(U,this.handleNewVideoData,{signal:this.player.signal}),null===(c=t.videoElementRef)||void 0===c||null===(u=c.current)||void 0===u||u.addEventListener(H,this.handleAdStart,{signal:this.player.signal})}var t,r;return t=e,(r=[{key:"isReady",value:function(){var e;return!!(null===(e=this.player.videoElementRef)||void 0===e?void 0:e.current)&&!!this.currentVideoData}},{key:"getTitle",value:function(){var e,t;return(null===(t=this.currentVideoData)||void 0===t||null===(e=t.headlines)||void 0===e?void 0:e.basic)||""}},{key:"getVideoPath",value:function(){var e;return(null===(e=this.currentVideoData)||void 0===e?void 0:e._id)||""}},{key:"getContentType",value:function(){return this.contentType||"ct"}},{key:"getAdPosition",value:function(){return"a1"}},{key:"getTotalDuration",value:function(){var e;return(null===(e=this.currentVideoData)||void 0===e?void 0:e.duration)||0}},{key:"getState",value:function(){var e,t,r,n;return(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.paused)?this.videoEnded?"s4":(null===(n=this.player.videoElementRef)||void 0===n||null===(r=n.current)||void 0===r?void 0:r.currentTime)?"s3":"s1":"s2"}},{key:"getCurrentPlayTime",value:function(){var e,t;return 1e3*(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.currentTime)||0}},{key:"getBitrate",value:function(){}},{key:"getThumbnailPath",value:function(){var e,t;return(null===(t=this.currentVideoData)||void 0===t||null===(e=t.promo_image)||void 0===e?void 0:e.url)||""}},{key:"getPlayerType",value:function(){var e;return null===(e=this.currentVideoData)||void 0===e?void 0:e.type}},{key:"getViewStartTime",value:function(){return this.startTime?Date.now()-this.startTime:0}},{key:"getViewPlayTime",value:function(){var e,t;return!(null===(t=this.player.videoElementRef)||void 0===t||null===(e=t.current)||void 0===e?void 0:e.paused)&&this.lastPlayTime?Date.now()-this.player.lastPlayTime:0}},{key:"getViewAdPlayTime",value:function(){return this.sawPreroll&&this.lastPlayTime?Date.now()-this.startTime:0}},{key:"getStrategyName",value:function(){return"WPO"}},{key:"getAutoplayType",value:function(){return this.currentVideoData._id!==this.firstVideoData._id?"cont":this.player.autoplayType===ue.AUTO?"auto":"man"}},{key:"getSections",value:function(){var e,t,r;return(null===(r=this.currentVideoData)||void 0===r||null===(t=r.taxonomy)||void 0===t||null===(e=t.sections)||void 0===e?void 0:e.map((function(e){return e.name})))||[]}}])&&vc(t.prototype,r),e}();function mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}gc.verify=function(e){return"object"===(void 0===e?"undefined":yc(e))&&"object"===yc(null==e?void 0:e.videoData)&&"object"===yc(null==e?void 0:e.videoElementRef)},gc.propTypes={player:i().shape({videoData:i().object,videoElementRef:i().object,autoplayType:i().string})};var hc=function(){var t=zn(),r=l().videoData,n=m().autoplayState,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mc(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mc(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),i=o[0],a=o[1],u=(0,e.useRef)(null),c=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=new AbortController,t=e.signal;u.current=t;var r=document.createElement("script");return r.src="https://static.chartbeat.com/js/chartbeat_video.js",r.async=!0,r.id="chartbeat_video",c.current=r,function(){!function(e,t){var r=document.getElementById("chartbeat_video");r&&document.body.contains(r)&&document.body.removeChild(r),null==t||t.abort()}(0,e)}}),[]),(0,e.useEffect)((function(){pc();var e,o,l,s=function(e,t,r,n){return!e&&_e(t)&&!!r&&!!n&&!!window._sf_async_config&&!pc()}(i,r,u.current,c.current);s&&(e={videoData:r,videoElementRef:t,autoplayType:n.type,signal:u.current},o=gc,l=c.current,window._cbv_strategies=window._cbv_strategies||[],window._cbv_strategies.includes(o)||window._cbv_strategies.push(o),window._cbv=window._cbv||[],window._sf_async_config.autoDetect=!1,window._cbv.push(e),document.getElementById("chartbeat_video")||document.body.appendChild(l),a(!0))}),[null==r?void 0:r._id,u.current,c.current,n]),{isPlayerPushed:i}},wc=function(r){var n=r.config,o=r.style,i=void 0===o?{}:o,a=r.children,u=l().videoId,c=$n().adSettings.current,s=c.videoAdZone,d=void 0===s?"wpni.video":s,f=c.preloadAd,p='{"prefetchAd":'.concat(f,"}"),v=co().adWrapperRef,b=(0,e.useMemo)((function(){return ko(n,u)}),[]);return t().createElement(t().Fragment,null,b?t().createElement("wp-ad",{ref:v,id:"ad-wrapper-".concat(u),"data-adunitpath":"/701/".concat(d),"data-media-type":"video","data-media-player":"imaPlayer","data-testid":"ad-wrapper","data-org":"wapo","data-json":p,style:i,class:"orca-new"},a):t().createElement("div",{ref:v},a))};wc.propTypes={children:i().node,adSettings:i().object,style:i().shape({width:i().string,height:i().string,position:i().string}),config:i().object};const Sc=wc;function Ac(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ec(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ec(e,t,r[t])}))}return e}function Pc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var xc="reset",Cc="mute",jc="unmute",kc="play",Tc="pause",Ic="handleTimeChange",Rc="skipReady",Dc="setShowControls",_c="setShowCountdown",Mc=function(e,t){var r=t.skipData;return Pc(Oc({},e),{remainingTime:Math.floor(r.remainingTime),skipCountdown:Math.floor(r.skipCountDown)+1,skipReady:r.skipReady})},Lc=function(e,t){var r=t.showControls;return Pc(Oc({},e),{showControls:r})},$c=function(e,t){var r=t.showCountdown;return Pc(Oc({},e),{showCountdown:r})},Bc=function(e){return Pc(Oc({},e),{skipReady:!1,showCountdown:null})},Vc=function(e,t){var r,n=(Ec(r={},xc,(function(e){return Pc(Oc({},e),{playing:!1,showControls:!1})})),Ec(r,Cc,(function(e){return Pc(Oc({},e),{adMuted:!0})})),Ec(r,jc,(function(e){return Pc(Oc({},e),{adMuted:!1})})),Ec(r,kc,(function(e){return Pc(Oc({},e),{playing:!0})})),Ec(r,Tc,(function(e){return Pc(Oc({},e),{playing:!1})})),Ec(r,Ic,Mc),Ec(r,Rc,(function(e){return Pc(Oc({},e),{skipReady:!0})})),Ec(r,Dc,Lc),Ec(r,_c,$c),Ec(r,"afterSkip",Bc),r);if(n[t.type])return n[t.type](e,t);throw new Error("Unhandled action type: ".concat(t.type))},zc=(0,e.createContext)({adMuted:!1,playing:!1,remainingTime:0,showControls:!1,showCountdown:!1,skipCountdown:null,skipReady:!1,dispatchAdAction:function(){},mute:function(){},pause:function(){},play:function(){},unmute:function(){},visitAdvertiser:function(){}}),Fc=function(){return(0,e.useContext)(zc)},Nc=function(r){var n=r.isPreroll,o=r.transitionToVideo,i=void 0===o?function(){}:o,a=r.children,u=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ac(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ac(e,t):void 0}}(e,t)||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.")}()}((0,e.useReducer)(Vc,function(e){return{adMuted:!!e,playing:!1,remainingTime:0,showControls:!1,showCountdown:!1,skipCountdown:null,skipReady:!1}}(n)),2),c=u[0],s=u[1],d=l().uniqueId,f=Vo().sendAnalyticsEvent,p=Tn(),v=p.updateStickyContext,b=p.playingId,y=p.isStickyEnabled,g=p.isOpenSticky,m=co().adWrapperRef,h=Ei().toggleMute,w=$n(),S=w.adState,A=w.setAdState,E=zn(),O=(0,e.useCallback)((function(){var e,t;null===(t=m.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.play(),f("video-ad-unpause"),y&&v({playingId:d}),s({type:kc})}),[m,y,f,v,d]),P=(0,e.useCallback)((function(){var e,t;null===(t=m.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.pause(),f("video-ad-pause"),y&&!g&&b===d&&v({playingId:null}),s({type:Tc})}),[m,g,y,b,f,v,d]),x=(0,e.useCallback)((function(){var e,t;null===(t=m.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.mute(),s({type:Cc})}),[m]),C=(0,e.useCallback)((function(){var e,t;null===(t=m.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.unmute(),s({type:jc})}),[m]),j=(0,e.useCallback)((function(){var e,t;null===(t=m.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.openClickThroughUrl()}),[m]),k=(0,e.useCallback)((function(){c.playing?P():O()}),[c.playing,P,O]),T=(0,e.useCallback)((function(){c.adMuted?C():x(),h()}),[c.adMuted,C,x,h]),I=(0,e.useCallback)((function(){var e=m.current,t=(void 0===e?{}:e).irisPlayer;return{irisPlayer:t,adData:Po(t)}}),[m]),R=(0,e.useCallback)((function(){s({type:xc})}),[s]),D=(0,e.useCallback)((function(){A(ce.COMPLETE),R(),i()}),[R,A,i]),_=(0,e.useCallback)((function(){var e=I(),t=e.irisPlayer,r=e.adData;t.stop(),f("video-ad-skip",{avAdMeta:Oo(r)}),D(),Hn(E.current,"AD_SKIP")}),[I,f,D]);(0,e.useEffect)((function(){var e=m.current,t=(void 0===e?{}:e).irisPlayer;S===ce.INIT&&(null==t?void 0:t.getCurrentAd())&&(t.reset(),A(ce.COMPLETE),R())}),[S,m,R,A]),(0,e.useEffect)((function(){b&&b!==d&&c.playing&&P()}),[P,c.playing,b,d]);var M=(0,e.useMemo)((function(){return Pc(Oc({},c),{dispatchAdAction:s,mute:x,pause:P,play:O,unmute:C,visitAdvertiser:j,togglePlay:k,toggleAdMute:T,skip:_,getIrisPlayerData:I,reset:R})}),[c,x,P,O,C,j,k,T,_,I,R]);return t().createElement(zc.Provider,{value:M},a)};Nc.propTypes={adWrapperRef:i().object,isPreroll:i().bool,children:i().node,toggleMute:i().func,setAdState:i().func,transitionToVideo:i().func,adState:i().string};var Uc=Br(hl,{width:"100%"}),Wc=Br(Uc,{height:"100%",position:"absolute",variants:{position:{outerWrapper:{top:0},innerWrapper:{zIndex:1,cursor:"pointer",background:mn({topPercent:15,bottomPercent:25})}}}}),Hc=Br(Uc,{display:"flex",alignItems:"center",justifyContent:"flex-start"}),qc=Br(Uc,{display:"flex",alignItems:"center",justifyContent:"flex-end"}),Yc=Br(Uc,{left:"0",position:"absolute",variants:{position:{topControls:{alignItems:"center",display:"flex",justifyContent:"space-between",top:"0"},bottomControls:{bottom:"0",alignItems:"flex-end",display:"flex",justifyContent:"space-between"}}}}),Gc=Br(hl,{color:"$gray700-static",fontSize:"$100",variants:{text:{visitAdvertiser:{cursor:"pointer",width:"100%",textAlign:"end",padding:"12px"},duration:{fontWeight:"$light",justifySelf:"start"}}}}),Zc=Br("div",{backgroundColor:"$alpha50",border:"1px solid $secondary",borderRadius:"$round",display:"flex",width:"100px",justifyContent:"center","&:hover, &:disabled, &:disabled:hover":{backgroundColor:"$alpha50",border:"1px solid $secondary"}});function Xc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Xc(e,t,r[t])}))}return e}Br("div",{padding:"12px"});var Kc=function(e){var r=e.advertiserUrl,n=e.children,o=e.togglePlay,i=l().videoId,a=Fc(),u=a.showControls,c=a.visitAdvertiser,s=Tn().isOpenSticky,d=co().adContainerRef;return t().createElement(Wc,{position:"outerWrapper",id:"ad-container-".concat(i),"data-testid":"ad-container",ref:d,css:{overflow:"hidden"}},u&&t().createElement(Wc,{position:"innerWrapper",onClick:function(){r?c():o()},"data-testid":"ad-container-inner",css:Jc({overflow:"hidden"},s&&{justifyContent:"space-between",background:mn({topPercent:35,bottomPercent:35})})},n))};function Qc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Qc(e,t,r[t])}))}return e}Kc.propTypes={children:i().node,togglePlay:i().func,advertiserUrl:i().string},Kc.displayName="AdContainerOuterWrapper";var ts=function(e){var r,n=e.advertiserUrl,o=e.closeStickyPlayer,i=e.isFullscreen,a=Fc().remainingTime,l=Tn().isOpenSticky;return t().createElement(Yc,{position:"topControls"},t().createElement(Hc,null,l&&!i&&t().createElement(ac,{buttonStyles:{padding:"12px"},closeStickyPlayer:o}),t().createElement(Gc,{text:"duration",css:es({whiteSpace:"nowrap",padding:"12px"},l&&!i&&{paddingLeft:0})},"Ad (",(r=tn(a),"".concat(on(r))),")")),n&&t().createElement(Gc,{text:"visitAdvertiser"},"Visit advertiser"))},rs={closeStickyPlayer:i().func,isFullscreen:i().bool};ts.propTypes=es({advertiserUrl:i().string},rs);var ns=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"m6 12.62-.71-.71L9.25 8 5.33 4.09 6 3.38 10.67 8Z"})))),os=(0,e.memo)(ns);function is(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var as=function(e){var r=e.skip,n=Fc(),o=n.showCountdown,i=n.skipCountdown,a=n.skipReady;return t().createElement(Oa,{component:"skip","data-testid":"skip-button",disabled:!a,onClick:function(e){e.stopPropagation(),r()},css:{border:"none",background:"unset",padding:"12px",borderRadius:0,"&:hover, &:disabled, &:disabled:hover":{background:"unset"}}},t().createElement(Zc,{css:{padding:a?"7px 13px 7px 19px":"7px 16px"}},a?t().createElement(us,null):o?t().createElement(cs,{skipCountdown:i}):null))},ls={skip:i().func};function us(){return t().createElement(t().Fragment,null,t().createElement(Gc,{text:"duration"},"Skip"),t().createElement(Ea,{fill:"white",label:"skip",size:"100"},t().createElement(os,null)))}function cs(e){var r=e.skipCountdown;return t().createElement(Gc,{text:"duration"},"Skip in ",r)}function ss(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}as.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){is(e,t,r[t])}))}return e}({},ls),cs.propTypes={skipCountdown:i().number};var ds=function(e){var r=e.skip,n=e.toggleAdPlay,o=e.toggleMute,i=Fc(),a=i.showCountdown,l=i.skipReady,u=i.adMuted,c=i.playing;return t().createElement(Yc,{position:"bottomControls",css:{padding:0}},t().createElement(Hc,null,t().createElement(qa,{isPlaying:c,buttonStyles:{padding:"12px 20px 20px 20px",margin:"0 -8px -8px -8px"},toggleAdPlay:n}),t().createElement(Ul,{isMuted:u,buttonStyles:{padding:"12px 12px 20px 12px",paddingLeft:u?"12px":"12.5px",margin:"0 0px -8px 0"},toggleMute:o})),t().createElement(qc,null,(l||a)&&t().createElement(as,{skip:r})))};ds.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ss(e,t,r[t])}))}return e}({},ls,Ya,Wl);const fs=ds;const ps=function(t){var r=t.adSettings,n=t.debug,o=t.transitionToVideo,i=t.adState,a=t.setAdState,u=t.setPromoState,c=t.setRenderControls,s=t.playerState,d=t.updateDisplay,f=t.isAdsInitialized,p=t.pauseVideo,v=void 0===p?function(){}:p,b=zn(),y=l(),g=y.videoData,m=y.videoId,h=y.uniqueId,w=Fc(),S=w.dispatchAdAction,A=w.mute,E=w.skip,O=w.getIrisPlayerData,P=w.reset,x=Vo(),C=x.sendAnalyticsEvent,j=x.setAvAdMeta,k=x.setAdAttribute,T=Tn(),I=T.updateStickyContext,R=T.isStickyEnabled,D=yo(),_=D.sendPerformanceEvent,M=D.sendPerformanceMeasure,L=co().adWrapperRef,$=r.current,B=void 0===$?{}:$,V=B.debugZeus,z=B.isPreroll,F=B.videoConfig,N=(void 0===F?{}:F).skipmin,U=s.isMuted,Z=(0,e.useCallback)((function(){Ie(be,!0,m,n);var e=new Event("AD_REQUESTED");b.current.dispatchEvent(e)}),[m,n,b]),X=(0,e.useCallback)((function(){a(ce.LOADED),Ie("adLoaded",!0,m,n)}),[n,a,m]),J=(0,e.useCallback)((function(){var e,t=O().adData,r=t.duration;V&&console.log("Iris Event",ge),u(je),R&&I({playingId:h}),S({type:kc}),c(!1),a(ce.PLAYING),(U||z)&&A(),v(),S({type:_c,showCountdown:N?r>=N:r>=30}),Hn(b.current,H,t),d({state:"media-start"});var o=null===(e=L.current.irisPlayer)||void 0===e?void 0:e.getSkipTime(),i=function(e){return Eo(e)?pe:"adStarted"}(t),l=Oo(t,o);j(l),k(i),r>1&&(C("video-ad-start",{avAdMeta:l,adAttribute:i}),_(te),M(te,re),Ie(ge,!0,m,n),S({type:Dc,showControls:!0}))}),[O,V,u,R,S,c,a,U,b,d,I,m,A,n,L,j,C,v,h,_,M,k,z]),K=(0,e.useCallback)((function(){Ie(he,!0,m,n),S({type:kc})}),[n,S,m]),Q=(0,e.useCallback)((function(){Ie(we,!0,m,n),S({type:Tc})}),[n,S,m]),ee=(0,e.useCallback)((function(e){var t=L.current.irisPlayer.getSkipTime(),r=function(e,t,r){return{skipReady:r>0&&t>r,skipCountDown:r-t,remainingTime:e}}(e.remainingTime,e.currentTime,t);S({type:Ic,skipData:r})}),[S,L]),ne=(0,e.useCallback)((function(){S({type:Rc}),Ie(Se,!0,m,n)}),[S,n,m]),oe=(0,e.useCallback)((function(e){var t=O().adData;Ie(Ee,e,m,n),a(ce.ERROR),P(),k(de),o({analyticsData:{adAttribute:de}}),Hn(b.current,q,t)}),[O,m,n,a,P,k,o,b]),ie=(0,e.useCallback)((function(){var e=O().adData,t=e.duration;Ie(fe,!0,m,n),a(ce.COMPLETE),P();var r=function(e){return Eo(e)?pe:fe}(e);k(r),Hn(b.current,W,e),t>1&&C("video-ad-complete",{avAdMeta:Oo(e),adAttribute:r}),o({analyticsData:{adAttribute:r}})}),[n,O,P,C,k,a,o,b,m]),ae=(0,e.useCallback)((function(e){Ie(Oe,e,m,n),a(ce.BYPASSED),P(),k(se),o({analyticsData:{adAttribute:se}}),Hn(b.current,Y)}),[m,n,a,P,k,o,b]),le=function(t){var r=t.debug,n=t.adWrapperRef,o=t.transitionToVideo,i=t.setAdState,a=(0,e.useRef)(null),u=zn(),c=Fc().reset,s=Vo().setAdAttribute,d=l().videoId,f=(0,e.useCallback)((function(){Ie(G,{message:"Ad Play Timeout"},d,r),i(ce.TIMEOUT);try{var e,t;null===(t=n.current)||void 0===t||null===(e=t.irisPlayer)||void 0===e||e.stop()}catch(e){r&&console.log("failed to stop the video",e)}c(),s(se),o({analyticsData:{adAttribute:se}}),Hn(u.current,G)}),[r,d,i,n,c,s,o,u]),p=(0,e.useCallback)((function(){null===a.current&&(a.current=setTimeout((function(){f(),a.current=null}),6e3))}),[f]),v=(0,e.useCallback)((function(){null!==a.current&&(clearTimeout(a.current),a.current=null)}),[a]);return{adTimer:a,startTimer:p,stopTimer:v}}({debug:n,adWrapperRef:L,transitionToVideo:o,setAdState:a}),ue=le.startTimer,ve=le.stopTimer;return(0,e.useEffect)((function(){i===ce.REQUESTED?ue():[ce.PLAYING,ce.COMPLETE,ce.ERROR,ce.BYPASSED,ce.TIMEOUT].includes(i)&&ve()}),[i,ue,ve]),(0,e.useEffect)((function(){if(f){var e=(L.current||{}).irisPlayer;if(e)return e.on(be,Z),e.on(ye,X),e.on(ge,J),e.on(he,K),e.on(we,Q),e.on(Ae,ee),e.on(Se,ne),e.on(Ee,oe),e.on(me,ie),e.on(Oe,ae),function(){e.off(be,Z),e.off(ye,X),e.off(ge,J),e.off(he,K),e.off(we,Q),e.off(Ae,ee),e.off(Se,ne),e.off(Ee,oe),e.off(me,ie),e.off(Oe,ae)}}}),[L,X,Z,J,g,K,ee,ne,oe,ie,f,Q,ae]),E};function vs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bs=(0,e.forwardRef)((function(r,n){var o,i,a,l,u=r.setPromoState,c=r.transitionToVideo,s=r.debug,d=r.setRenderControls,f=r.updateDisplay,p=void 0===f?function(){}:f,v=r.isAdsInitialized,b=Fc(),y=b.pause,g=b.togglePlay,m=b.toggleAdMute,h=b.skip,w=b.dispatchAdAction,S=Vo(),A=S.setAvAdMeta,E=S.setAdAttribute,O=co().adWrapperRef,P=Ei(),x=P.playerState,C=P.isFullscreen,j=P.closeStickyPlayer,k=P.pause,T=$n(),I=T.adState,R=T.setAdState,D=T.adSettings;(0,e.useImperativeHandle)(n,(function(){return{pauseAd:function(){y()},displayControls:function(){w({type:Dc,showControls:!0})},toggleAdMute:function(){m()}}}));var _=null===(l=O.current)||void 0===l||null===(a=l.irisPlayer)||void 0===a||null===(i=a.getCurrentAd())||void 0===i||null===(o=i.data)||void 0===o?void 0:o.clickThroughUrl;return ps({adSettings:D,adState:I,debug:s,transitionToVideo:c,setAdAttribute:E,setAdState:R,setAvAdMeta:A,setPromoState:u,setRenderControls:d,playerState:x,updateDisplay:p,isAdsInitialized:v,pauseVideo:k}),t().createElement(Kc,{advertiserUrl:_,togglePlay:g},t().createElement(ts,{advertiserUrl:_,closeStickyPlayer:j,isFullscreen:C}),t().createElement(fs,{skip:h,toggleAdPlay:g,toggleMute:m}))}));bs.displayName="AdContainer";const ys=bs;bs.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vs(e,t,r[t])}))}return e}({toggleMute:i().func,playerState:i().object,setPromoState:i().func,adSettings:i().object,transitionToVideo:i().func,setAdState:i().func,debug:i().bool,setRenderControls:i().func,adState:i().string,updateDisplay:i().func},rs);var gs=r(4168),ms={};ms.styleTagTransform=za(),ms.setAttributes=La(),ms.insert=_a().bind(null,"head"),ms.domAPI=Ra(),ms.insertStyleElement=Ba(),Ta()(gs.A,ms),gs.A&&gs.A.locals&&gs.A.locals;var hs=r(8986),ws={};function Ss(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}ws.styleTagTransform=za(),ws.setAttributes=La(),ws.insert=_a().bind(null,"head"),ws.domAPI=Ra(),ws.insertStyleElement=Ba(),Ta()(hs.A,ws),hs.A&&hs.A.locals&&hs.A.locals;var As=function(e){var t;return!("undefined"!=typeof window&&(!0===window.matchMedia("(prefers-reduced-motion: reduce)")||!0===window.matchMedia("(prefers-reduced-motion: reduce)").matches))&&(null==e||null===(t=e.additional_properties)||void 0===t?void 0:t.gifAsThumbnail)},Es=function(e,t,r){return"Play ".concat(e?"Live ":"","video: ").concat(t,", ").concat(r.srOnly)},Os=function(e,t){return"Upcoming ".concat(e?"Live ":"","video: ").concat(t)};function Ps(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xs,Cs=Fr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(359deg)"}}),js=Br(Oa,{boxSizing:"border-box","&[data-state='loading']":(xs={},Ps(xs,"& ".concat(Ea),{animation:"".concat(Cs," 2s linear infinite"),"@reducedMotion":{animation:"none"}}),Ps(xs,"&:focus",{outline:"1px auto -webkit-focus-ring-color"}),xs),"&[data-state='buffer']":Ps({borderWidth:"1px !important"},"& ".concat(Ea),{color:"white",transition:"none",animation:"".concat(Cs," 2s linear infinite"),"@reducedMotion":{animation:"none"}}),"&[data-state-live='true']":Ps({borderColor:"red !important"},"& ".concat(Ea),{color:"white"}),"&[data-state-live-preview='true']":Ps({},"& ".concat(Ea),{color:"#111 !important"})}),ks=Br("div",{overflow:"hidden",zIndex:1,width:"100%",height:"100%",position:"absolute",top:0,left:0,textAlign:"left",variants:{hidden:{true:{display:"none"},false:{display:"block"}}}}),Ts=Br("video",{width:"100%",height:"100%"}),Is=Br("div",{display:"flex",alignItems:"center",position:"absolute",bottom:"0",left:"0",padding:"16px",paddingTop:"48px",boxSizing:"border-box",width:"100%",cursor:"pointer",background:"linear-gradient(\n    to top,\n    rgba(0, 0, 0, 0.5) 0,\n    rgba(0, 0, 0, 0) 100%\n  )"}),Rs=Br("div",{minWidth:0,display:"flex",flexDirection:"column",width:"100%",variants:{small:{true:{marginLeft:"8px"},false:{marginLeft:"16px"}}}}),Ds=Br("div",{color:Ur.colors["gray700-static"],fontFamily:"$meta",fontWeight:700,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}),_s=Br("div",{fontFamily:"$meta",color:Ur.colors["gray700-static"],variants:{hidden:{true:{visibility:"hidden"}}}}),Ms=Br("div",{height:"8px",width:"8px",marginRight:"4px",borderRadius:"50%",backgroundColor:"red",animation:"sc-status-light-blink-animation 2s ease-in-out infinite alternate"}),Ls=Br("div",{display:"flex",alignItems:"center"}),$s=function(r){var n=r.playerSize,o=r.isEnded,i=r.isUpcoming,a=r.isVideoTypeLive,u=r.title,c=r.duration,s=r.config,d=s.showBtnText,f=void 0===d||d,p=s.customBtnText,v=s.showDurationOrLive,b=void 0===v||v,y=s.isLivePreviewEnabled,g=l(),m=g.videoData,h=g.isForceLoadVideo,w=(0,e.useMemo)((function(){return function(e,t,r,n,o){return e?t:r||(n&&!o?"Tap to unmute":t)}(h,u,p,y,i)}),[p,h,y,i,u]),S=Re(m),A=(0,e.useMemo)((function(){return function(e,t,r,n){return e&&!t&&(!r||!!n)}(f,o,S,p)}),[S,p,o,f]),E=a&&!o,O=a&&o;return t().createElement(Rs,{small:n===Xr.SMALL},A&&t().createElement(Ds,{id:"orca-promo-title","aria-hidden":!i,"aria-label":Os(a,u),"data-testid":"promo-title",role:"heading"},w),b&&t().createElement(_s,{id:"orca-promo-duration","aria-hidden":"true",className:"overrideStyles","data-testid":"promo-duration",hidden:O},E?t().createElement(Ls,null,t().createElement(Ms,{id:"orca-promo-live-dot"}),"Live"):c.visible))};$s.propTypes={playerSize:i().string,isEnded:i().bool,isUpcoming:i().bool,isVideoTypeLive:i().bool,title:i().string,duration:i().object,config:i().object};var Bs=function(e){var r=e.promoState,n=e.isVideoTypeLive,o=e.isLivePreviewEnabled,i=e.title,a=e.duration,l=r!==xe,u=o&&n;return t().createElement(js,{"aria-label":Es(n,i,a),id:"orca-promo-button","data-testid":"orca-promo-button",icon:"center","data-state":r.toLowerCase(),"data-state-live":n,"data-state-live-preview":o},t().createElement(Ea,{className:"wpds-icon"},l?t().createElement(Qa,{"data-testid":"loading-icon"}):u?t().createElement(Bl,{"data-testid":"mute-icon"}):t().createElement(Ja,{"data-testid":"play-icon"})))};function Vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zs(e,t,r[t])}))}return e}function Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vs(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vs(e,t):void 0}}(e,t)||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.")}()}Bs.propTypes={promoState:i().string,isVideoTypeLive:i().bool,isLivePreviewEnabled:i().bool,title:i().string,duration:i().object},Ea.toString=function(){return".wpds-icon"};var Us=(0,e.forwardRef)((function(r,n){var o,i,a,s=r.onClick,f=r.promoState,v=r.setPromoState,b=r.config,y=r.promoEnabled,g=r.aspectRatio,h=r.aspectMatch,w=b.alternateArt,S=void 0===w?null:w,A=b.isLivePreviewEnabled,E=b.placeholder,O=b.hidePromoVideo,P=l(),x=P.videoData,C=P.videoApiDataFailed,k=m().autoplayState,T=Ei().playerSize,R=$n().shouldShowAds,D=Ns((0,e.useState)(!1),2),_=D[0],M=D[1],L=(0,e.useRef)(),$=Ns((0,e.useTransition)(),2)[1],B=d(x),V=u(x),z=c(x),F=(0,e.useMemo)((function(){return function(e,t,r,n,o,i){if(!e.isInitialized)return!1;var a=!e.isAutoplay||e.status===I||e.isLivePreview,l=t&&jo(e)&&Co(r,n);return o&&!i&&(a||l||p(r))}(k,R,x,b,y,C)}),[k,b,y,C,R,x]),N=function(e){var t,r;return(null==e||null===(t=e.bandito)||void 0===t?void 0:t.title)||(null==e||null===(r=e.headlines)||void 0===r?void 0:r.basic)}(x),U=(0,e.useMemo)((function(){return function(e,t,r,n,o){var i,a=(null==e||null===(i=e.additional_properties)||void 0===i?void 0:i.vertical)?480:960;return r&&!n?xn(r,a,a*o):function(e,t){var r,n,o,i,a,l=As(e)?((null==e?void 0:e.streams)||[]).filter((function(e){return"gif"===(null==e?void 0:e.stream_type)}))[0]:null,u=null==e||null===(r=e.additional_properties)||void 0===r?void 0:r.vertical;if((null==t?void 0:t.image)&&!((null==e||null===(n=e.bandito)||void 0===n?void 0:n.image)||(null==l?void 0:l.url)||(null==e||null===(o=e.promo_image)||void 0===o?void 0:o.url))){var c=t.resize;return void 0===c||c?xn(null==t?void 0:t.image,u?480:960):t.image}return xn((null==e||null===(i=e.bandito)||void 0===i?void 0:i.image)||(null==l?void 0:l.url)||(null==e||null===(a=e.promo_image)||void 0===a?void 0:a.url)||j,u?480:960)}(e,t)}(x,E,S,null==k?void 0:k.isPlaythrough,g)}),[S,g,null==k?void 0:k.isPlaythrough,E,x]),W=(a=As(o=x)?((null==o?void 0:o.streams)||[]).filter((function(e){return"gif-mp4"===(null==e?void 0:e.stream_type)}))[0]:null,(null==o||null===(i=o.bandito)||void 0===i?void 0:i.video)||(null==a?void 0:a.url)),H=function(e){return function(e){if(!e)return{visible:"",srOnly:""};var t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(r/60);return t%=60,r%=60,{visible:n?"".concat(n,":").concat(Cn(r),":").concat(Cn(t)):"".concat(r,":").concat(Cn(t)),srOnly:n?"".concat(n," hours, ").concat(Cn(r)," minutes and ").concat(Cn(t)," seconds"):"".concat(r," minutes and ").concat(Cn(t)," seconds")}}(null==e?void 0:e.duration)}(x),q=W&&!_,Y=(null==k?void 0:k.isPlaythrough)||O,G=!1===V&&!1===z,Z=!q&&!A,X=(0,e.useMemo)((function(){return function(e,t,r){var n;return Ss(n={backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:e?"url(".concat(e,")"):"none",backgroundSize:t?"cover":"contain"},"--aspect-height",r),Ss(n,"--aspect-width",1),n}(U,h,g)}),[h,g,U]);(0,e.useImperativeHandle)(n,(function(){return{playVideo:function(){v(je),s()}}}));var J=(0,e.useCallback)((function(e){f===xe&&$((function(){e.preventDefault(),e.stopPropagation(),B&&V||s()}))}),[V,B,s,f]);return t().createElement(t().Fragment,null,F&&t().createElement(ks,{ref:L,"data-testid":"orca-promo",css:Fs({},Z&&X),hidden:f===je,onClick:J},q&&!Y&&t().createElement(Ts,{src:W,onError:function(){return M(!0)},onAbort:function(){return M(!0)},playsInline:!0,muted:!0,autoPlay:!0,loop:!0,crossOrigin:"anonymous",controlsList:"nodownload"}),T&&t().createElement(Is,{className:oo("",zs({},"".concat(T),T))},G&&t().createElement(Bs,{promoState:f,isVideoTypeLive:B,isLivePreviewEnabled:A,title:N,duration:H}),t().createElement($s,{playerSize:T,isEnded:z,isUpcoming:V,isVideoTypeLive:B,title:N,duration:H,config:b}))))}));Us.propTypes={onClick:i().func,promoState:i().string,setPromoState:i().func,config:i().object,autoplayState:i().object,promoEnabled:i().bool,shouldShowAds:i().bool,aspectRatio:i().number,playerSize:i().oneOf(Object.values(Xr)),aspectMatch:i().bool},Us.displayName="Promo";var Ws=function(r){var n,o,i=r.promoEnabled,a=void 0===i||i,u=r.config,c=void 0===u?{}:u,s=r.onPromoClick,d=r.updateDisplay,f=void 0===d?function(){}:d,p=r.isCarousel,v=void 0!==p&&p,b=r.children,y=c.aspectRatio,g=c.aspectWidth,m=void 0===g?16:g,h=c.aspectHeight,w=void 0===h?9:h,S=c.playCallback,A=void 0===S?function(){}:S,E=c.debug,O=l().videoData,P=Vo().sendAnalyticsEvent,x=yo().sendPerformanceEvent,C=co().adControlsRef,j=Ei(),k=j.setRenderControls,T=j.promoElement,I=j.play,R=j.autoplay,D=Dn(),_=D.promoState,M=D.setPromoState,L=$n().isAdsInitialized,$=y||w/m,B=Wi({setRenderControls:k,isCarousel:v,autoplay:R,play:I,playCallback:A}),V=(0,e.useCallback)((function(){P("video-promo-click"),x(re),s()}),[s,P,x]),z=$===(null==O||null===(n=O.streams)||void 0===n?void 0:n[0].height)/(null==O||null===(o=O.streams)||void 0===o?void 0:o[0].width),F=t().createElement(ys,{setPromoState:M,transitionToVideo:B,debug:E,setRenderControls:k,updateDisplay:f,isAdsInitialized:L,ref:C});return t().createElement(t().Fragment,null,t().createElement(Us,{promoState:_,setPromoState:M,config:c,promoEnabled:a,aspectRatio:$,aspectMatch:z,onClick:V,ref:T}),t().createElement(Sc,{config:c},t().createElement(Nc,{isPreroll:!1,transitionToVideo:B},b(F))))};Ws.propTypes={config:i().object,children:i().func.isRequired,promoEnabled:i().bool,onPromoClick:i().func,updateDisplay:i().func,isCarousel:i().bool};var Hs=(0,e.forwardRef)((function(r,n){var o=r.onVideoRendered,i=void 0===o?function(){}:o,a=r.config,l=void 0===a?{}:a,u=r.promoEnabled,c=void 0===u||u,s=r.liveEventEnded,d=void 0!==s&&s,f=r.handleVideoEnd,p=void 0===f?function(){}:f,v=r.isLive,b=void 0!==v&&v,y=l.aspectRatio,g=l.aspectWidth,h=void 0===g?16:g,w=l.aspectHeight,S=void 0===w?9:w,A=l.controlWrapperClassName,E=l.playCallback,O=void 0===E?function(){}:E,P=l.isCarousel,x=void 0!==P&&P,C=l.stickyStyles,j=m().autoplayState,k=(co().adControlsRef,Ei()),T=k.setRenderControls,I=k.play,R=k.handleLivePreview,D=k.autoplay,_=y||S/h,M=Wi({setRenderControls:T,isCarousel:x,autoplay:D,play:I,playCallback:O}),L=Vi(),B=L.hasSubtitles,V=L.updateCues,z=L.currentCue,F=L.setupSubtitlesListener,N=Hi(M,l,F),U=(0,e.useCallback)((function(){j.isLivePreview&&R(),N(j.isLivePreview)}),[N,j.isLivePreview,R]),W=function(){var t=zn(),r=Ei(),n=function(t,r){var n=m().autoplayState,o=(0,e.useRef)(),i=co().adControlsRef,a=zn(),l=$n().adState;return(0,e.useEffect)((function(){n.type!==ue.LOOP_NO_CONTROLS&&(o.current=function(e){var n=function(){return Object.values(e).some((function(e){return!0===e}))};if(n())if(t.isPlaying)r();else if(l===ce.PLAYING){var o;null===(o=i.current)||void 0===o||o.pauseAd()}else{var u=a.current,c=function(){Wn(u,$,c),n()&&setTimeout((function(){r()}),1e3)},s=function(){Wn(u,H,s),n()&&setTimeout((function(){var e,t;null===(e=i.current)||void 0===e||e.pauseAd(),null===(t=i.current)||void 0===t||t.displayControls()}),0)};Un(u,$,c),Un(u,H,s)}})}),[i,l,n.type,r,t.isPlaying,a]),(0,e.useCallback)((function(e){var t;null===(t=o.current)||void 0===t||t.call(o,e)}),[])}(r.playerState,r.pause),o=function(e){var t=e.ref,r=e.type,n=e.pauseSelf,o=e.handleWalls;return Di((function(){var e,r;n&&(null===(e=(r=window).registerDisplay)||void 0===e||e.call(r,{participant:Li,callback:function(e){var r=(null==e?void 0:e.info)||{},o=r.state,i=r.ref;"media-start"===o&&i!==t&&n()}}))}),[n]),Di((function(){var e,t;if(o){var r={};null===(e=(t=window).registerDisplay)||void 0===e||e.call(t,{participant:Mi,callback:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.readyDisplay;r[t]=n,Object.keys(r).length>=Mi.length&&o(r)}})}}),[o]),_i((function(e){var n,o;null===(n=(o=window).registerDisplay)||void 0===n||n.call(o,{participant:r,info:Ii(Ti({},e),{ref:t})})}),[])}({type:"video",ref:t,handleWalls:n});return o}();return hc(),t().createElement(t().Fragment,null,t().createElement(ji,{controlWrapperClassName:A,liveEventEnded:d,aspectRatio:_,stickyStyles:C},t().createElement(Ws,{promoEnabled:c,config:l,onPromoClick:U,updateDisplay:W},(function(e){return t().createElement(ya,{onVideoRendered:i,config:l,promoEnabled:c,liveEventEnded:d,handleVideoEnd:p,isLive:b,handleStart:N,transitionToVideo:M,updateCues:V,hasSubtitles:B,currentCue:z,ref:n,Controls:fc},e)}))),t().createElement(jn,null))}));function qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Hs.displayName="OrcaFullUI",Hs.propTypes={onVideoRendered:i().func,config:i().object,promoEnabled:i().bool,liveEventEnded:i().bool,handleVideoEnd:i().func,isLive:i().bool};var Ys=function(t,r){var n=Vo().sendAnalyticsEvent,o=(0,e.useRef)(0),i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qs(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qs(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(0),2),a=i[0],l=i[1],u=!(null==r?void 0:r.isMuted)&&(null==r?void 0:r.isPlaying);(0,e.useEffect)((function(){setInterval((function(){l((function(e){return e+1}))}),1e3)}),[]),(0,e.useEffect)((function(){if(t&&u){var e=o.current+1;o.current=e,e%300==0&&n("live-video-threshold",{avLiveProgress:"".concat(e/300*5)})}}),[a])},Gs=function(e){var r=e.isLive,n=e.playerState;return Ys(r,n),t().createElement(t().Fragment,null)};Gs.propTypes={isLive:i().bool.isRequired,playerState:i().object};var Zs=(0,e.forwardRef)((({title:t,titleId:r,...n},o)=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",ref:o,"aria-labelledby":r,...n},t?e.createElement("title",{id:r},t):null,e.createElement("path",{d:"M8 1a7 7 0 1 0 5 2.05A7 7 0 0 0 8 1m0 13a6 6 0 1 1 4.24-1.76A6 6 0 0 1 8 14","data-name":"Path 14"}),e.createElement("path",{d:"M5 7.5v1h6v-1Z","data-name":"Path 15"})))),Xs=(0,e.memo)(Zs),Js=Br("div",{width:"100%",height:"100%",position:"absolute",zIndex:"1",display:"flex",justifyContent:"center",alignItems:"center",padding:"$175",background:"$primary"}),Ks=Br("div",{padding:"$125"}),Qs=Br("div",{fontFamily:"$meta",color:"$secondary",fontSize:"$125",fontWeight:"$light",width:"40%","@sm":{fontSize:"$087"}}),ed=function(){return t().createElement(Js,null,t().createElement(Ks,null,t().createElement(Ea,{size:200,label:"error",fill:"white"},t().createElement(Xs,null))),t().createElement(Qs,null," An error occurred. Please try again later."))};function td(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){td(e,t,r[t])}))}return e}function nd(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var od=function(r){var n=r.aspectRatio,o=r.aspectMatch,i=r.placeholder,a=r.className,u=r.caption,c=r.children,s=r.promoState,d=l(),f=d.originalVideo,p=d.videoData,v=d.videoApiDataFailed,b=Tn().isOpenSticky,y=Ei().playerState,g=i||{},m=g.image,h=g.resize,w=g.blur,S=g.color,A=function(t){var r,n=t.placeholderImage,o=t.resize,i=t.videoData,a=t.originalVideo,l=(0,e.useCallback)((function(){var e;return(null==i||null===(e=i.additional_properties)||void 0===e?void 0:e.vertical)?480:960}),[null==i||null===(r=i.additional_properties)||void 0===r?void 0:r.vertical]);return(0,e.useCallback)((function(){var e,t,r=l(i);if(n&&function(e,t){return!(null==t?void 0:t._id)||(null==e?void 0:e._id)===(null==t?void 0:t._id)}(i,a))return o?xn(n,r):n;var u=(null==i||null===(e=i.bandito)||void 0===e?void 0:e.image)||(null==i||null===(t=i.promo_image)||void 0===t?void 0:t.url);return u?xn(u,r):null}),[n,o,i,a,l])}({placeholderImage:m,resize:h,videoData:p,originalVideo:f})(),E=(0,e.useMemo)((function(){return A&&(s!==je||!y.isStarted)}),[A,s,y]),O=function(t){var r=t.isOpenSticky,n=t.aspectRatio,o=t.aspectMatch,i=t.blur,a=t.color;return(0,e.useCallback)((function(){var e={width:"100%",position:"relative",backgroundPosition:"center",backgroundSize:o?"cover":"contain",paddingBottom:"calc(".concat(n,"*100%)")},t=nd(rd({},e),{backgroundColor:"unset",backgroundImage:"none"}),l=rd(nd(rd({},e),{backgroundRepeat:"no-repeat",backgroundColor:a||"black"}),i?{filter:"blur(5px)",transition:"filter .1s"}:{});return r?t:l}),[r,n,o,i,a])}({isOpenSticky:b,aspectRatio:n,aspectMatch:o,blur:w,color:S,promoState:s,playerState:y});return t().createElement("figure",{className:a,style:{margin:0}},t().createElement("div",{"data-testid":"orca-wrapper",style:rd({backgroundImage:E?"url(".concat(A,")"):"none"},O())},v&&t().createElement(ed,null),p&&c),u&&t().createElement("figcaption",null,u))};od.propTypes={aspectRatio:i().number,aspectMatch:i().bool,placeholder:i().object,className:i().string,caption:i().node,children:i().node,videoApiDataFailed:i().bool,videoID:i().string,isStickyEnabled:i().bool,isOpenSticky:i().bool,promoState:i().string,playerState:i().object};var id=function(e){var r,n,o=e.children,i=e.config,a=l().videoData,u=Ei().playerWrapperRef,c=Dn().promoState,s=i.caption,d=i.className,f=i.placeholder,p=i.aspectRatio,v=i.aspectWidth,b=void 0===v?16:v,y=i.aspectHeight,g=p||(void 0===y?9:y)/b,m=g===(null==a||null===(r=a.streams)||void 0===r?void 0:r[0].height)/(null==a||null===(n=a.streams)||void 0===n?void 0:n[0].width);return t().createElement("div",{ref:u},t().createElement(od,{aspectRatio:g,aspectMatch:m,placeholder:f,className:d,caption:s,promoState:c},o))};id.propTypes={children:i().node.isRequired,config:i().object};var ad=function(r){var n=r.config,o=r.orcaRef,i=r.promoEnabled,a=l().videoData,u=Ei(),c=u.reset,s=u.playerState,p=u.playerSize;!function(t,r){var n=l(),o=n.videoId,i=n.videoData,a=n.videoApiUrl,u=n.domain,c=n.fetchedByUUID,s=n.dispatchVideoApiEvent,f=m().updateAutoplayState,p=t.liveConfigEnv,v=void 0===p?wt:p,b=t.forceLiveConfig,y=t.liveConfigInterval,g=void 0===y?6e4:y,h=t.isLivePreviewEnabled,w=(0,e.useMemo)((function(){return De(v)}),[v]),S=(0,e.useRef)(),E=(0,e.useCallback)(function(){var e=gt((function(e,t,n){var o;return ht(this,(function(l){switch(l.label){case 0:return o=Et(t,e,n),A()((function(e,t){Ct(e,t,S,s,r,f,h)}))(i,o),[4,Pt(o,s,a,u,r)];case 1:return l.sent(),[2]}}))}));return function(t,r,n){return e.apply(this,arguments)}}(),[s,u,a,i,r,f,h]),O=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(d(i)){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mt(e,t,r[t])}))}return e}({},i),n=t.playerTypeOverride;St({videoApiUrl:a,domain:u},o,"live-bar"===n||!e).then((function(e){At(w).then((function(t){E(e,t,r)}))}))}},P=function(){document.hidden?clearInterval(S.current):(clearInterval(S.current),S.current=setInterval((function(){O()}),g))};(0,e.useEffect)((function(){return O(!c),(d(i)||b)&&(S.current=setInterval((function(){O(),document.addEventListener("visibilitychange",P)}),g)),function(){clearInterval(S.current),document.removeEventListener("visibilitychange",P)}}),[i])}(n,o);var v=(0,e.useMemo)((function(){return f(a)}),[a]);return(0,e.useEffect)((function(){v&&c()}),[v,s.isPlaying]),t().createElement(id,{config:n},v&&t().createElement(en,{playerSize:p}),t().createElement(Hs,{config:n,promoEnabled:i,isLive:!0,liveEventEnded:v,ref:o}),t().createElement(Gs,{playerState:s,isLive:!0}))};ad.propTypes={config:i().object.isRequired,orcaRef:i().object,promoEnabled:i().bool};var ld=(0,e.forwardRef)((function(e,r){var n=e.onVideoRendered,o=void 0===n?function(){}:n,i=e.config,a=void 0===i?{}:i,l=e.handleVideoEnd,u=void 0===l?function(){}:l,c=a.playCallback,s=void 0===c?function(){}:c,d=a.isCarousel,f=void 0!==d&&d,p=Ei(),v=p.setRenderControls,b=p.play,y=p.autoplay,g=Wi({setRenderControls:v,isCarousel:f,autoplay:y,play:b,playCallback:s}),m=Vi(),h=m.hasSubtitles,w=m.updateCues,S=m.currentCue,A=m.setupSubtitlesListener,E=Hi(g,a,A);return t().createElement(t().Fragment,null,t().createElement(ya,{onVideoRendered:o,config:a,promoEnabled:!1,liveEventEnded:!1,handleVideoEnd:u,isLive:!1,handleStart:E,transitionToVideo:g,updateCues:w,hasSubtitles:h,currentCue:S,ref:r,Controls:wu}),t().createElement(jn,null))}));ld.displayName="OrcaLoopingUI",ld.propTypes={onVideoRendered:i().func,config:i().object,handleVideoEnd:i().func};var ud=function(e){var r=e.config,n=e.onVideoRendered,o=e.orcaRef;return t().createElement(id,{config:r},t().createElement(ld,{onVideoRendered:n,config:r,handleVideoEnd:function(){},ref:o}))};function cd(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}ud.propTypes={config:i().object.isRequired,isSandbox:i().bool,onVideoEnded:i().func,promoEnabled:i().bool,onVideoRendered:i().func,orcaRef:i().object};var sd=function(){var e,t=(e=function(e,t){var r,n,o,i;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(a){switch(a.label){case 0:r=Me(t),n=dd(e),a.label=1;case 1:return a.trys.push([1,4,,5]),(o=new URL(r)).search=new URLSearchParams({uuid:null==e?void 0:e._id,recommendedPlaylist:1}),[4,fetch(o)];case 2:return[4,a.sent().json()];case 3:return[2,a.sent().filter((function(e){return fd(e,n)&&pd(e)})).slice(1)];case 4:return i=a.sent(),console.error("Video API request for recommended playlist for UUID = ".concat(null==e?void 0:e._id," failed: ").concat(i)),[3,5];case 5:return[2]}}))},function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){cd(i,n,o,a,l,"next",e)}function l(e){cd(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),dd=function(e){var t=e.additional_properties,r=t.vertical,n=void 0!==r&&r,o=t.videoCategory;return n||"vertical"===(void 0===o?"":o)},fd=function(e,t){return dd(e)===t},pd=function(e){return!ke(e)};function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vd(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vd(e,t):void 0}}(e,t)||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.")}()}var yd=function(r){var n=r.config,o=r.isSandbox,i=r.onVideoEnded,a=r.promoEnabled,u=r.onVideoRendered,c=r.orcaRef,s=m(),d=s.autoplayState,f=s.isMotionReduced,p=Ei(),v=p.initDuration,b=p.initializeNewVideo,y=p.resetVideoState,g=p.isFullscreen,h=p.isNativeIOSPlayer,w=p.setIsFullscreen,S=Vo().sendAnalyticsEvent,A=function(t,r,n,o,i,a){var u=l(),c=u.videoData,s=u.dispatchVideoApiEvent,d=u.originalVideo,f=m().autoplayState,p=zn(),v=Tn(),b=v.isOpenSticky,y=v.setOverrideStickyContext,g=t.allowPlaythrough,h=void 0===g||g,w=bd((0,e.useState)([]),2),S=w[0],A=w[1],E=S.length>0,O=bd((0,e.useState)(!1),2),P=O[0],x=O[1],C=(0,e.useMemo)((function(){var e;return(null==c||null===(e=c.additional_properties)||void 0===e?void 0:e.embedContinuousPlay)&&h&&!i&&!(null==f?void 0:f.isLooping)&&!0}),[c,h,i,null==f?void 0:f.isLooping,n]),j=(0,e.useCallback)((function(){var e=E?S[0]:d;s({type:dt,videoData:e}),E&&A(S.slice(1)),b&&y(!0),a(E)}),[s,b,y,E,a,d,S]);return(0,e.useEffect)((function(){if(C){var e=null==p?void 0:p.current;if(e){var t=function(){var e;P||(null==p||null===(e=p.current)||void 0===e?void 0:e.currentTime)>80*o/100&&(x(!0),sd(d,r).then((function(e){A(e)})))};return e.addEventListener(B,t),function(){e.removeEventListener(B,t)}}}}),[p,C,r,d,S,P,o]),{switchToNextVideo:j,willPlaythrough:C,hasNextRecVideo:E}}(n,o,!1,v,f,b),E=A.switchToNextVideo,O=function(t){var r=t.autoplayState,n=t.sendAnalyticsEvent,o=t.resetVideoState,i=t.willPlaythrough,a=t.switchToNextVideo,u=t.onVideoEnded,c=t.hasNextRecVideo,s=t.isFullscreen,d=t.isNativeIOSPlayer,f=t.setIsFullscreen,p=$n().shouldShowAds,v=l().resetUniqueId;return(0,e.useCallback)((function(){r.isLooping||n("video-complete"),o(i&&c),i?(d&&s&&p&&f(!1),a()):v(),u()}),[r.isLooping,n,o,i,a,u,c,s,d,f,p,v])}({autoplayState:d,sendAnalyticsEvent:S,resetVideoState:y,willPlaythrough:A.willPlaythrough,switchToNextVideo:E,onVideoEnded:i,hasNextRecVideo:A.hasNextRecVideo,isFullscreen:g,isNativeIOSPlayer:h,setIsFullscreen:w});return t().createElement(id,{config:n},t().createElement(Hs,{onVideoRendered:u,config:n,promoEnabled:a,handleVideoEnd:O,ref:c}))};yd.propTypes={config:i().object.isRequired,isSandbox:i().bool,onVideoEnded:i().func,promoEnabled:i().bool,onVideoRendered:i().func,orcaRef:i().object};var gd=Br("div",{position:"relative",paddingTop:"56.25%","& iframe":{position:"absolute",width:"100%",height:"100%",top:"0",left:"0"}}),md=function(){var r,n=l(),o=n.videoData,i=n.uniqueId,a="".concat(i,"-yt"),u=null===(r=o.additional_properties)||void 0===r?void 0:r.youtubeVideoId,c=function(e){var t;return null===(t=e.taxonomy)||void 0===t?void 0:t.tags.map((function(e){return e.text})).includes("youtube-allow-autoplay")}(o);return(0,e.useEffect)((function(){new Promise((function(e){window.YT?window.YT.ready(e):new Promise((function(e){hn("https://www.youtube.com/iframe_api",e)})).then((function(){window.YT.ready(e)}))})).then((function(){new window.YT.Player(a,{videoId:u,playerVars:{autoplay:c?1:0,iv_load_policy:3,mute:c?1:0,rel:0,playsinline:1},events:{onReady:function(){Zn({videoData:o,eventAction:"force-youtube-render",action:"force-youtube-render",label:rt,config:{playerType:rt}})}}})}))}),[]),t().createElement(gd,null,t().createElement("div",{id:a}))};function hd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wd=function(e){var r,n=e.forwardedRef,o=e.Player,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["forwardedRef","Player"]),a=l().videoData,u=null===(r=a.additional_properties)||void 0===r?void 0:r.youtubeVideoId;return We(a)&&u?t().createElement(md,null):t().createElement(o,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hd(e,t,r[t])}))}return e}({orcaRef:n},i))};function Sd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}wd.propTypes={forwardedRef:i().oneOfType([i().func,i().object]),Player:i().elementType.isRequired};var Ad=function(r){var n=r.forwardedRef,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,["forwardedRef"]),i=l().videoData,a=m().autoplayState,u=o.config,c=void 0===u?{}:u,s=d(i),f=a.isLooping,p=(0,e.useMemo)((function(){return s?ad:f?ud:yd}),[s,f]);return t().createElement(wd,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sd(e,t,r[t])}))}return e}({forwardedRef:n,Player:p},o),{config:c}))};Ad.propTypes={forwardedRef:i().oneOfType([i().func,i().object])};var Ed={uuid:i().string,video:i().object,onVideoEnded:i().func,onVideoRendered:i().func,config:i().shape({aspectRatio:i().number,aspectWidth:i().number,aspectHeight:i().number,placeholder:i().object,className:i().string,caption:i().node,testGroup:i().string,abTest:i().object,loadFirstFragmentOnly:i().bool,debug:i().bool,alternateArt:i().string,allowPlaythrough:i().bool,isSticky:i().bool,hasAds:i().bool,debugZeus:i().bool,debugHLS:i().bool,adOverrides:i().shape({forceAd:i().bool,adZoneOverride:i().string,adTimeoutOverride:i().number,skip:i().number,skipmin:i().number,skipafter:i().number,preloadAd:i().bool,domain:i().string})}),promoEnabled:i().bool,isSandbox:i().bool,allowShare:i().bool,isAutoplayOverride:i().bool,isMutedOverride:i().bool,showSubtitlesOverride:i().bool,playerTypeOverride:i().string,stickyPlayerContext:i().object,orcaDeps:i().object},Od=function(e){var r=e.DataProviderComponent,n=e.uuid,o=e.video,i=e.isSandbox,a=e.config,l=e.orcaRef,u=e.children;return t().createElement(Fn,null,t().createElement(r,{uuid:n,video:o,isSandbox:i,config:a,orcaRef:l},u))};Od.propTypes={children:i().node.isRequired,config:i().object,DataProviderComponent:i().elementType.isRequired,uuid:i().string.isRequired,video:i().object,isSandbox:i().bool,orcaRef:i().object};var Pd=function(e){var r=e.DataProviderComponent,n=e.OptionalFeatureStack,o=e.uuid,i=e.video,a=e.isSandbox,l=e.config,u=e.orcaRef,c=e.children,s=e.stickyPlayerContext,d=void 0===s?{}:s,f=e.orcaDeps,p=e.carouselState,v=e.optionalHandlers;return t().createElement(Od,{DataProviderComponent:r,uuid:o,video:i,isSandbox:a,config:l,orcaRef:u,orcaDeps:f},t().createElement(n,{stickyPlayerContext:d,config:l,orcaDeps:f,carouselState:p},t().createElement(Oi,{config:l,optionalHandlers:v},c)))};function xd(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}Pd.propTypes={DataProviderComponent:i().elementType.isRequired,OptionalFeatureStack:i().elementType.isRequired,uuid:i().string.isRequired,video:i().object,isSandbox:i().bool,config:i().object,orcaRef:i().object,children:i().node.isRequired,stickyPlayerContext:i().object,orcaDeps:i().object,carouselState:i().object,optionalHandlers:i().shape({toggleSubsHandler:i().func,toggleMuteHandler:i().func})};var Cd=function(){var e,t=(e=function(e,t){var r,n,o;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(i){switch(i.label){case 0:r=e.videoApiUrl,n=e.domain,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(r+"?uuid=".concat(t,"&domain=").concat(n))];case 2:return[4,i.sent().json()];case 3:return[2,i.sent()];case 4:return o=i.sent(),console.error("Error retrieving video data",o),[2,null];case 5:return[2]}}))},function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){xd(i,n,o,a,l,"next",e)}function l(e){xd(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),jd=r(8948),kd=r.n(jd);const Td={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Id;const Rd=new Uint8Array(16);function Dd(){if(!Id&&(Id="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Id))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Id(Rd)}const _d=[];for(let e=0;e<256;++e)_d.push((e+256).toString(16).slice(1));const Md=function(e,t,r){if(Td.randomUUID&&!t&&!e)return Td.randomUUID();const n=(e=e||{}).random||(e.rng||Dd)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return _d[e[t+0]]+_d[e[t+1]]+_d[e[t+2]]+_d[e[t+3]]+"-"+_d[e[t+4]]+_d[e[t+5]]+"-"+_d[e[t+6]]+_d[e[t+7]]+"-"+_d[e[t+8]]+_d[e[t+9]]+"-"+_d[e[t+10]]+_d[e[t+11]]+_d[e[t+12]]+_d[e[t+13]]+_d[e[t+14]]+_d[e[t+15]]}(n)};var Ld=function(){var e;return"object"!=((e=r.g.crypto)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)&&(r.g.crypto=kd()),"function"!=typeof r.g.crypto.getRandomValues&&(r.g.crypto.getRandomValues=$d),Md()};function $d(e){return kd().webcrypto.getRandomValues(e)}function Bd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bd(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bd(e,t):void 0}}(e,t)||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.")}()}var zd=function(r){var n=r.uuid,o=r.video,i=r.isSandbox,l=r.config,u=void 0===l?{}:l,c=r.orcaRef,s=r.children,d=r.useVideoApiOptions,f=void 0===d?{}:d,p=u.adOverrides,v=(void 0===p?{}:p).domain,b=(0,e.useMemo)((function(){return o||{}}),[o]),y=(0,e.useMemo)((function(){return function(e,t){var r=Me(t),n=function(e){var t,r;return e||("undefined"!=typeof window&&(null===(r=window)||void 0===r||null===(t=r.location)||void 0===t?void 0:t.hostname)?window.location.hostname:"washingtonpost.com")}(e);return{videoApiUrl:r,domain:n}}(v,i)}),[v,i]),g=y.videoApiUrl,m=y.domain,h=Vd((0,e.useReducer)(bt,function(e){return{videoData:e,videoApiDataFailed:!1,originalVideo:null,fetchedByUUID:!1,isForceLoadVideo:!1}}(b)),2),w=h[0],S=h[1],A=w.originalVideo,E=w.videoApiDataFailed,O=w.videoData,P=w.fetchedByUUID,x=w.isForceLoadVideo;!function(t,r){var n=t.dispatchVideoApiEvent,o=t.domain,i=t.originalVideoData,a=t.uuid,l=t.videoApiUrl,u=t.currentVideoData,c=t.propVideoData,s=t.config,d=t.orcaRef,f=r.onSetOriginalVideo,p=void 0===f?function(e){var t=e.type,r=e.videoData;n({type:t,videoData:r})}:f,v=zn(),b=c._id,y=(i||{})._id,g=(u||{})._id,m=s.debug,h=s.hasNextVideo,w=s.overrideReducedMotion,S=function(e){return e&&_e(e)},A=function(){d.current.resetVideoState(h),d.current.initializeNewVideo(h,w)},E=function(e){var t=e.message;Ie("videoApiError",t,a,m),n({type:pt}),Zi(v,Ki,ta.API_ERROR,{errorMessage:t,uuid:a},s)},O=function(e){if(!e)throw Error("Video data from API returned empty.");Ie(D,"API Success",a,m),y?(n({type:ft,videoData:e[0]}),A()):p({type:st,videoData:e[0],dispatchVideoApiEvent:n,videoApiUrl:l,domain:o,orcaRef:d})};(0,e.useEffect)((function(){b&&!y&&p({type:ct,videoData:c,dispatchVideoApiEvent:n,videoApiUrl:l,domain:o,orcaRef:d}),a&&!S(c)&&a!==g?Cd({videoApiUrl:l,domain:o},a).then(O).catch(E):b&&g&&b!==g?(n({type:dt,videoData:c}),A()):a||S(c)||(n({type:pt}),Zi(v,Ki,ta.API_ERROR,{errorMessage:"Video missing UUID and video data is empty."},s))}),[a,b,h])}({dispatchVideoApiEvent:S,domain:m,originalVideoData:A,uuid:n,videoApiUrl:g,currentVideoData:O,propVideoData:b,config:u,orcaRef:c},f);var C=(0,e.useMemo)((function(){return(null==O?void 0:O._id)?O._id:n}),[null==O?void 0:O._id,n]),j=Vd((0,e.useState)((function(){return Ld()})),2),k=j[0],T=j[1];(0,e.useEffect)((function(){T(Ld())}),[C]);var I=(0,e.useCallback)((function(){T(Ld())}),[]),R=(0,e.useMemo)((function(){return{originalVideo:A,videoApiDataFailed:E,videoData:O,videoId:C,dispatchVideoApiEvent:S,videoApiUrl:g,domain:m,fetchedByUUID:P,uniqueId:k,isForceLoadVideo:x,resetUniqueId:I}}),[m,A,E,g,O,C,P,k,x,I]);return t().createElement(a.Provider,{value:R},s)};function Fd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}zd.propTypes={video:i().object,domainOverride:i().string,isSandbox:i().bool,debug:i().bool,uuid:i().string,useVideoApiOptions:i().object,children:i().node};var Nd=function(e){var r=e.config,n=e.orcaRef,o={onSetOriginalVideo:function(e){var t=e.type,o=e.videoData,i=e.dispatchVideoApiEvent,a=e.videoApiUrl,l=e.domain,u=r.liveConfigEnv;!function(e){var t=e.type,r=e.videoData,n=e.liveConfigUrl,o=e.dispatchVideoApiEvent,i=e.videoApiUrl,a=e.domain,l=e.orcaRef,u=function(){o({type:t,videoData:r})};d(r)?function(e,t,r,n,o,i,a){At(e).then((function(e){if(function(e){var t,r;return!!(null==e||null===(t=e.forceAdditionalProperties)||void 0===t?void 0:t.forceLoadVideo)||!!(null==e||null===(r=e.forceAdditionalProperties)||void 0===r?void 0:r.youtubeVideoId)}(e[t._id]||{})){var l=Et(e,{},t);return Pt(l,r,n,o,i)}a()}))}(n,r,o,i,a,l,u):u()}({type:t,videoData:o,liveConfigUrl:De(void 0===u?wt:u),orcaRef:n,dispatchVideoApiEvent:i,videoApiUrl:a,domain:l})}};return t().createElement(zd,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Fd(e,t,r[t])}))}return e}({},e),{useVideoApiOptions:o}))};function Ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Wd(e,t,r[t])}))}return e}function qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qd(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qd(e,t):void 0}}(e,t)||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.")}()}Nd.propTypes={config:i().object,orcaRef:i().string,children:i().node.isRequired};var Gd=function(r){var n=r.children,o=r.config,i=void 0===o?{}:o,a=i.isLead,u=i.isLivePreviewEnabled,c=void 0!==u&&u,s=i.isAutoplayOverride,v=i.autoplayLive,b=void 0!==v&&v,m=i.forceNoLoop,h=i.isSubscriber,w=void 0!==h&&h,S=function(t){var r=Yd((0,e.useState)(),2),n=r[0],o=r[1],i=Yd((0,e.useState)(t),2),a=i[0],l=i[1];return(0,e.useEffect)((function(){var e=window.matchMedia("(prefers-reduced-motion: no-preference)");o(!window.matchMedia("(prefers-reduced-motion: no-preference)").matches);var t=function(e){o(!e.matches)};return e.addEventListener("change",t),function(){e.removeEventListener("change",t)}}),[]),{isMotionReduced:null!=a?a:n,setOverrideReducedMotion:l}}(i.reduceMotion),A=S.isMotionReduced,E=S.setOverrideReducedMotion,O=function(t){var r=t.isLead,n=t.isMotionReduced,o=t.isLivePreviewEnabled,i=t.isAutoplayOverride,a=t.autoplayLive,u=t.forceNoLoop,c=t.isSubscriber,s=l().videoData,v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ud(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ud(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(y),2),b=v[0],g=v[1],m=(0,e.useCallback)((function(e){n&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||g((function(t){return Hd({},t,e)}))}),[n]);return(0,e.useEffect)((function(){if(s&&_e(s)&&void 0!==n)if(n||p(s)||!Be())g(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(Hd({},y),{isInitialized:!0}));else{var e=ke(s,u),t=[ue.LOOP,ue.LOOP_NO_CONTROLS].includes(e),l=!1;!t&&function(e,t){return!(!e||t)}(r,c)&&(l=!0,e=ue.AUTO);var v=!1;o&&!f(s)&&!p(s)&&d(s)&&(v=!0,e=ue.AUTO);var b=!1;d(s)&&a&&(e=ue.AUTO,b=!0),i&&!t&&(e=ue.AUTO);var h=i||d(s)&&a||!!e;!h||t||c||v||(l=!0),m({type:e,isLooping:t,isAutoplay:h,isPreroll:l,isLivePreview:v,overrideAutoplayMuteBehavior:b,isInitialized:!0})}}),[n,s,r,o,m,i,u,a,c]),{autoplayState:b,updateAutoplayState:m}}({isLead:a,isMotionReduced:A,isLivePreviewEnabled:c,isAutoplayOverride:s,autoplayLive:b,forceNoLoop:m,isSubscriber:w}),P=O.autoplayState,x=O.updateAutoplayState,C=(0,e.useMemo)((function(){return{autoplayState:P,updateAutoplayState:x,isMotionReduced:A,setOverrideReducedMotion:E}}),[P,x,A,E]);return t().createElement(g.Provider,{value:C},n)};Gd.propTypes={config:i().object,children:i().node};var Zd=(0,e.createContext)({init:!1,openId:null,isLoaded:!1,playingId:null,isExpandable:!0,isExpanded:!1,handleClick:function(){},updateContext:function(){}});function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xd(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xd(e,t):void 0}}(e,t)||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.")}()}i().node;var Kd=function(r){var n=r.children,o=r.config,i=function(t,r){var n=l().uniqueId,o=Vo(),i=o.sendAnalyticsEvent,a=o.setPlayerType,u=eo().isInViewPort,c=(0,e.useContext)(Zd),s=(0,e.useMemo)((function(){return function(e,t){var r=t.playingId,n=t.openId,o=t.updateContext,i=e||{};return{playingId:i.playingId||r,openId:i.openId||n,updateStickyContext:i.updateContext||o}}(r,c)}),[r,c]),d=s.playingId,f=s.openId,p=s.updateStickyContext,v=Jd((0,e.useState)(!1),2),b=v[0],y=v[1],g=Jd((0,e.useState)(!1),2),m=g[0],h=g[1],w=Jd((0,e.useState)(!1),2),S=w[0],A=w[1];(0,e.useEffect)((function(){var e=function(e,t,r,n,o){return e||t&&function(e,t,r){return e===r&&t===r}(r,n,o)}(S,b,f,d,n);(function(e,t,r,n,o){return e&&!t&&function(e,t,r){return e!==t&&null!==e||e!==t&&null!==r}(r,n,o)})(m,S,d,n,f)&&i(et,{label:"close-other-media"}),h(e)}),[f,d,n,b,S,m,i]),(0,e.useEffect)((function(){a(m?"orca-embed-sticky":nt(t))}),[m,t,a]);var E=(0,e.useCallback)((function(){m||i("sticky-player-open",{label:"open-scroll"}),p({openId:n})}),[m,i,p,n]),O=(0,e.useCallback)((function(){p({openId:null}),i(et,{label:"close-scroll"})}),[i,p]);return(0,e.useEffect)((function(){!function(e,t,r){return!e&&t===r}(u,d,n)?function(e,t,r,n){return e&&t===n&&r===n}(u,d,f,n)&&O():E()}),[u,d,n,f,O,E]),{isStickyEnabled:b,isOpenSticky:m,playingId:d,openId:f,updateStickyContext:p,setOverrideStickyContext:A,setIsStickyEnabled:y,overrideStickyContext:S}}(void 0===o?{}:o,r.stickyPlayerContext),a=i.isStickyEnabled,u=i.isOpenSticky,c=i.playingId,s=i.openId,d=i.updateStickyContext,f=i.setOverrideStickyContext,p=i.setIsStickyEnabled,v=(0,e.useMemo)((function(){return{isStickyEnabled:a,isOpenSticky:u,playingId:c,openId:s,updateStickyContext:d,setOverrideStickyContext:f,setIsStickyEnabled:p}}),[a,u,c,d,f,s,p]);return t().createElement(kn.Provider,{value:v},n)};Kd.propTypes={config:i().object,children:i().node,stickyPlayerContext:i().object};var Qd={contentApi:{paths:["taxonomy.primary_section._id","taxonomy.primary_site._id"]},siteService:{paths:["_id"]}};function ef(e,t){if("string"==typeof e)return e;var r=Qd[t];if(r&&r.paths){var n=function(e,t){var r=!1,n=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var u=a.value.split("."),c=e,s=!0,d=!0,f=!1,p=void 0;try{for(var v,b=u[Symbol.iterator]();!(d=(v=b.next()).done);d=!0){var y=v.value;if(!c||!(y in c)){s=!1,c=void 0;break}c=c[y]}}catch(e){f=!0,p=e}finally{try{d||null==b.return||b.return()}finally{if(f)throw p}}if(s&&(r=!0),null!=c)return c}}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r?null:void 0}(e,r.paths);return n}console.error("Invalid model: ".concat(t))}function tf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tf(e,t,r[t])}))}return e}var nf=function(e,t,r,n,o,i,a,l){var u,c,s=(t||{}).additional_properties,d=(void 0===s?{advertising:{}}:s).advertising,f=(void 0===d?{playAds:!0,playVideoAds:!0,videoAdZone:""}:d).videoAdZone,p=e.adOverrides,v=void 0===p?{}:p,b=v.forceAd,y=void 0!==b&&b,g=v.adZoneOverride,m=void 0===g?null:g,h=v.customParamsOverride,w=void 0===h?[]:h,S=v.adTagOverride,A=v.adTimeoutOverride,E=v.preloadAd,O=void 0!==E&&E,P=v.skip,x=v.skipmin,C=v.skipafter,j=e.debugZeus,k=lf(f,y,m),T=of(t,e);return{adTimeout:A||3,videoAdZone:k,forceAd:y,customParamsOverride:w,adTagOverride:S,preloadAd:O,uuid:t._id,debugZeus:j,isVertical:n,isMuted:!!a||o,playerWidth:uf(r),playerHeight:cf(r),sections:(null===(u=t.taxonomy)||void 0===u?void 0:u.sections)||[],playerType:af(t),isLive:i,isPreroll:a,isPlaythrough:l,pageType:Ze(),orcaType:T,videoConfig:rf({},P&&{skip:P},x&&{skipmin:x},C&&{skipafter:C}),primarySectionId:ef(t,"contentApi"),avTags:gn(null===(c=t.taxonomy)||void 0===c?void 0:c.tags,";","","text")}},of=function(e,t){var r=!!(null==t?void 0:t.isCarousel),n=d(e),o=Te(e);return r?"carousel":n?"live":o?"looping":"vod"},af=function(e){if("undefined"!=typeof window){var t="posttv-embed";return Te(e)?t="posttv-embed-LoopingVideo":!0===qe()(window,"wp_meta_data.isHomepage")||"homepage"===qe()(window,"Fusion.metas.contentType.value")?t="posttv-embed-hp":window.self!==window.top?t="posttv-embed-iframe":window.wp_pb&&/video-leaf-page/.test(window.wp_pb.pageName)&&(t="posttv-leaf"),t}},lf=function(e,t,r){return r||(t?"wpni.video.test/appsalwayson":sf(e))},uf=function(e){var t;return null==e||null===(t=e.current)||void 0===t?void 0:t.clientWidth},cf=function(e){var t;return null==e||null===(t=e.current)||void 0===t?void 0:t.clientHeight},sf=function(e){return(null==e?void 0:e.includes("_"))||(null==e?void 0:e.includes("/"))?e:e+df()},df=function(){var e=pn("wp_devicetype");if(e)return"2"===e?"_tablet":"1"===e?"_mweb":"";var t=An(),r=/ipod|iphone|ipad/i.test(t),n=/tablet|ipad/i.test(t),o=!n&&(r||/[^-]mobi/i.test(t));return n?"_tablet":o?"_mweb":""};function ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pf(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void r(e)}l.done?t(u):Promise.resolve(u).then(n,o)}function vf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){pf(i,n,o,a,l,"next",e)}function l(e){pf(i,n,o,a,l,"throw",e)}a(void 0)}))}}function bf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ff(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ff(e,t):void 0}}(e,t)||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 yf(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var gf=function(t){var r=zn(),n=l().videoData,o=void 0===n?{}:n,i=m().autoplayState,a=t.config,u=void 0===a?{}:a,c=t.setPromoState,s=void 0===c?function(){}:c,d=t.spectrumCallback,f=void 0===d?function(){}:d,p=t.promoState,v=void 0===p?"":p,b=t.isVertical,y=void 0!==b&&b,g=t.isLive,h=void 0!==g&&g,w=t.isPreroll,S=void 0!==w&&w,A=bf((0,e.useState)(ce.INIT),2),E=A[0],O=A[1],P=bf((0,e.useState)(!1),2),x=P[0],C=P[1],j=bf((0,e.useState)(!1),2),k=j[0],T=j[1],I=bf((0,e.useState)(!1),2),R=I[0],D=I[1],_=bf((0,e.useState)(!1),2),M=_[0],L=_[1],$=bf((0,e.useState)(!1),2),B=$[0],V=$[1],z=co().adWrapperRef,F=(0,e.useRef)(nf(u,o,r,y,Io(),h,S,i.isPlaythrough));(0,e.useEffect)((function(){if(F.current=nf(u,o,r,y,Io(),h,S,i.isPlaythrough),S)return C(!0),void q();if(i.isInitialized){if(!k||B){if(function(e){var t;return null==e||null===(t=e.adOverrides)||void 0===t?void 0:t.skipAd}(u))return L(!0),void D(!0);if(M)return;!ko(u,null==o?void 0:o._id)||To()||io()?D(!0):(C(!0),q()),jo(i)||D(!0),V(!1)}!k&&o&&_e(o)&&T(!0)}}),[null==o?void 0:o._id,i,B]),(0,e.useEffect)((function(){M&&function(e){var t,r;return!(null==e||null===(t=e.adOverrides)||void 0===t?void 0:t.skipAd)&&((null==e||null===(r=e.adOverrides)||void 0===r?void 0:r.preloadAd)||!e.prefetchCarouselAds)}(u)&&(V(!0),L(!1))}),[M,u]);var N=function(){var e,t=null==z||null===(e=z.current)||void 0===e?void 0:e.irisPlayer;(t||r.current)&&(null==t||t.resize(r.current.clientWidth,r.current.clientHeight))};(0,e.useEffect)((function(){if(null==r?void 0:r.current){var e=new ResizeObserver(N);return e.observe(null==r?void 0:r.current),function(){return null==e?void 0:e.disconnect()}}}),[null==r?void 0:r.current]);var U=(0,e.useCallback)(function(){var e=vf((function(e){var t,r;return yf(this,(function(n){switch(n.label){case 0:return(r=null===(t=z.current)||void 0===t?void 0:t.irisPlayer)?(O(ce.LOADING),[4,r.play()]):(O(ce.ERROR),e(),[2]);case 1:return n.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[z]),W=function(t,r,n,o,i,a){var l=t.current,u=l.debugZeus,c=l.preloadAd,s=l.isPreroll,d=l.adTagOverride,f=l.adTimeout,p=yo(),v=p.sendPerformanceEvent,b=p.sendPerformanceMeasure,y=co(),g=y.adWrapperRef,m=y.adContainerRef,h=zn(),w=(0,e.useCallback)((function(){return function(e){var t=e.adWrapper,r=e.videoElement,n=e.adContainer,o=e.adTagOverride,i=e.adTimeout,a=e.adSettingsRef;return{videoContainer:t,videoElement:r,adContainer:n,getAdTagUrl:wo((function(){return So(this,(function(e){switch(e.label){case 0:return o?[2,o]:[4,window.iris.buildUrl(t,{adSettings:a.current,videoElement:r})];case 1:return[2,e.sent()]}}))})),adSettings:{disableCustomPlaybackForIOS10Plus:!0,adsRenderingSettings:{disableUi:!0,useVideoAdUi:!1,uiElements:[]},vastLoadTimeout:1e3*i}}}({adWrapper:g.current,videoElement:h.current,adContainer:m.current,adTagOverride:d,adTimeout:f,adSettingsRef:t})}),[m,g,t,d,f,h]),S=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mo(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mo(e,t):void 0}}(e,t)||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.")}()}((0,e.useState)(!1),2),A=S[0],E=S[1],O=(0,e.useCallback)(wo((function(){var e,t,l;return So(this,(function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),e=w(),[4,Ao(e,u,6e3)];case 1:return d.sent(),function(e,t,r){e(ee),t(ee,K),r&&(e(Q),t(Q,K,{irisLoaded:"true"}))}(v,b,s),t=new Promise((function(e){var t;null===(t=g.current)||void 0===t||t.irisPlayer.on(be,e)})),c?[4,t]:[3,3];case 2:d.sent(),d.label=3;case 3:return E(!0),n(!0),[3,5];case 4:return l=d.sent(),o(xe),r(!1),n(!0),null==a||a(l),i&&console.error(l),[3,5];case 5:return[2]}}))})),[g,r,n,i,a,w,s,c,v,b,o,u]);return{isIrisReady:A,initializeAds:O}}(F,C,D,s,u.debug,f),H=W.isIrisReady,q=W.initializeAds;(0,e.useEffect)((function(){function e(){return(e=vf((function(){var e;return yf(this,(function(t){switch(t.label){case 0:return H&&S?(O(ce.REQUESTED),[4,null===(e=z.current)||void 0===e?void 0:e.irisPlayer.autoPlay()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[z,H,S,r]),(0,e.useEffect)((function(){x&&(H||v!==xe||s(Pe),H&&v===Pe&&(!i.isInitialized||i.isAutoplay&&!i.isLivePreview||s(xe)))}),[H,x,v,i,s]);var Y=(0,e.useCallback)((function(e){var t,r;E!==ce.ERROR&&O(ce.REQUESTED),s(Ce),null===(r=z.current)||void 0===r||null===(t=r.irisPlayer)||void 0===t||t.initializeAdDisplayContainer(),setTimeout((function(){U(e)}),[10])}),[E,z,U,s]);return{adState:E,setAdState:O,adSettings:F,shouldShowAds:x,transitionToAd:Y,isAdsInitialized:R,isIrisReady:H,setReinitializeAds:V}};gf.propTypes={video:i().object,config:i().object,setPromoState:i().func,transitionToVideo:i().func,autoplayState:i().object,videoID:i().string,isPreroll:i().bool};var mf=function(r){var n=r.children,o=r.config,i=void 0===o?{}:o,a=Dn(),u=a.promoState,c=a.setPromoState,s=l().videoData,f=Le(s),p=d(s),v=gf({config:i,setPromoState:c,promoState:u,isVertical:f,isLive:p}),b=v.adState,y=v.setAdState,g=v.adSettings,m=v.shouldShowAds,h=v.transitionToAd,w=v.isAdsInitialized,S=v.isIrisReady,A=(0,e.useMemo)((function(){return{adState:b,setAdState:y,adSettings:g,shouldShowAds:m,transitionToAd:h,isAdsInitialized:w,isIrisReady:S}}),[b,y,g,m,h,w,S]);return t().createElement(Ln.Provider,{value:A},n)};function hf(e){var t,r;return(null==e||null===(r=e.taxonomy)||void 0===r||null===(t=r.tags)||void 0===t?void 0:t.some((function(e){return"force-hd"===e.text})))||!1}function wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Af(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wf(e,t);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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wf(e,t):void 0}}(e,t)||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.")}()}mf.propTypes={config:i().object,children:i().node};var Ef={liveDurationInfinity:!0,capLevelToPlayerSize:!0,maxBufferLength:10,autoStartLoad:!1,startLevel:-1},Of=function(t,r){var n=zn(),o=l(),i=o.videoId,a=o.videoData,u=o.dispatchVideoApiEvent,c=r.debug,s=r.debugHLS,d=r.hlsConfig,f=void 0===d?Ef:d,p=Af((0,e.useState)(null),2),v=p[0],b=p[1],y=Af((0,e.useState)(!1),2),g=y[0],m=y[1];s&&console.log(f);var h=function(e){var r=new t(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sf(e,t,r[t])}))}return e}({},f),{debug:s}));r.on(t.Events.MEDIA_ATTACHED,(function(){Ie("hlsAttached",e,i,c)})),r.on(t.Events.MANIFEST_PARSED,(function(e,t){Ie("hlsManifestParsed",t,i,c)})),r.on(t.Events.SUBTITLE_TRACK_LOADED,(function(){Hn(n.current,V)})),r.loadSource(e),r.attachMedia(n.current),r.startLoad(),b(r)};return(0,e.useEffect)((function(){var e=hf(a);v&&e&&v.on(t.Events.MANIFEST_LOADED,(function(){v.startLevel=v.levels.length-1}))}),[v]),{hls:v,removeHLS:function(){v&&(v.off(t.Events.MEDIA_ATTACHED),v.off(t.Events.MANIFEST_PARSED),v.detachMedia(),v.destroy(),b(null),Hn(n.current,Z))},setUpVideoSource:function(){var e=hf(a),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.filter((function(e){var t;return"ts"===e.stream_type&!(null===(t=e.url)||void 0===t?void 0:t.endsWith("hlsv4_master.m3u8"))})).reduce((function(e,t){return(null==e?void 0:e.bitrate)>(null==t?void 0:t.bitrate)?e:t}),void 0)||function(e,t){return function(e,t,r){return e.filter((function(e){return e.bitrate<=r&&e.stream_type===t})).reduce((function(e,t){return(null==e?void 0:e.bitrate)>(null==t?void 0:t.bitrate)?e:t}),void 0)}(e,"mp4",arguments.length>2&&void 0!==arguments[2]&&arguments[2]?5400:"ios"===t||"android"===t?600:2e3)}(e,Sn(),t)}(a.streams,e);r?Pf(r,t,n.current)?(h(r.url),m(!0)):n.current.src=r.url:u({type:pt})},waitForCaptionsToLoad:g}};Of.propTypes={isCarousel:i().bool,config:i().shape({debug:i().bool,debugHLS:i().bool,hlsConfig:i().object})};var Pf=function(e,t,r){return t.isSupported()&&"mp4"!==e.stream_type&&e.url!==(null==r?void 0:r.url)},xf=function(r){var n=r.children,o=r.Hls,i=void 0===o?{}:o,a=r.config,l=Of(i,void 0===a?{}:a),u=l.hls,c=l.removeHLS,s=l.setUpVideoSource,d=l.waitForCaptionsToLoad,f=(0,e.useMemo)((function(){return{isSupported:"function"==typeof(null==i?void 0:i.isSupported)&&i.isSupported(),hls:u,removeHLS:c,setUpVideoSource:s,waitForCaptionsToLoad:d}}),[i,u,c,s,d]);return t().createElement(Yo.Provider,{value:f},n)};xf.propTypes={Hls:i().func,children:i().node,config:i().shape({hlsConfig:i().object,debug:i().bool,debugHLS:i().bool})};var Cf=(0,e.createContext)({Popover:null}),jf=function(r){var n=r.children,o=r.Popover,i=void 0===o?null:o,a=(0,e.useMemo)((function(){return{Popover:i}}),[i]);return t().createElement(Cf.Provider,{value:a},n)};jf.propTypes={Popover:i().object,children:i().node,styled:i().func};var kf=function(e){var r=e.children,n=e.config,o=e.stickyPlayerContext,i=e.orcaDeps,a=void 0===i?{}:i,l=a.Hls,u=a.Popover;return t().createElement(xf,{Hls:l,config:n},t().createElement(jf,{Popover:u},t().createElement(Gd,{config:n},t().createElement(to,null,t().createElement(zo,{config:n},t().createElement(Kd,{config:n,stickyPlayerContext:o},t().createElement(so,null,t().createElement(go,{config:n},t().createElement(_n,null,t().createElement(mf,{config:n},r))))))))))};function Tf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}kf.propTypes={children:i().node.isRequired,config:i().object,stickyPlayerContext:i().object,orcaDeps:i().shape({Hls:i().object,Popover:i().object})};var If=(0,e.forwardRef)((function(r,n){var o=r.uuid,i=r.video,a=r.onVideoEnded,l=void 0===a?function(){}:a,u=r.onVideoRendered,c=void 0===u?function(){}:u,s=r.config,d=void 0===s?{}:s,f=r.promoEnabled,p=void 0===f||f,v=r.isSandbox,b=void 0!==v&&v,y=r.stickyPlayerContext,g=void 0===y?{}:y,m=r.orcaDeps,h={onVideoEnded:l,onVideoRendered:c,config:d,promoEnabled:p,isSandbox:b},w=(0,e.useRef)(),S=null!=n?n:w;return t().createElement(Pd,{DataProviderComponent:Nd,OptionalFeatureStack:kf,uuid:o,video:i,isSandbox:b,config:d,orcaRef:S,stickyPlayerContext:g,orcaDeps:m},t().createElement(Ad,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Tf(e,t,r[t])}))}return e}({forwardedRef:S},h)))}));If.displayName="Orca",If.propTypes=Ed;var Rf=(0,e.memo)(If);window.orca=window.orca||{},window.orca.version=window.orca.version||{},window.orca.version["orca-ui"]="0.5.2";const Df=Rf})(),module.exports=n})();
//# sourceMappingURL=main.js.map