/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
dist
/
Upload File
HOME
(()=>{var e,t,n={467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,u,"next",e)}function u(e){r(i,o,a,s,u,"throw",e)}s(void 0)})}}n.d(t,{A:()=>o})},1609:e=>{"use strict";e.exports=window.React},2284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},2327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e,t){if("object"!==(0,r.A)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={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:a,resetWarningCache:o};return n.PropTypes=n,n}},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,$=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case m:case u:return e;default:return t}}case o:return t}}}function O(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||w(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===$||e.$$typeof===g)},t.typeOf=w},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},3145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},3370:(e,t,n)=>{"use strict";n.d(t,{H:()=>he,a:()=>Oe,b:()=>pt,c:()=>Se,g:()=>w,h:()=>de,r:()=>k});var r=n(3029),o=n(2901),a=n(9417),i=n(5501),s=n(6822),u=n(3954),l=n(8614),c=n(467),p=n(3453),d=n(4467),f=n(5458),h=n(2284),m=n(9280),v=n.n(m);function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var _n=0,r=function(){};return{s:r,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var w=function(){},O=Object.defineProperty,S=function(e){if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},k=function(e,t){e.__stencil__getHostRef=function(){return t},t.$lazyInstance$=e},C=function(e,t){return t in e},A=function(e,t){return(0,console.error)(e,t)},x=new Map,E=function(e,t,r){var o=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(a){var i=x.get(a);return i?i[o]:n(5049)("./".concat(a,".entry.js")).then(function(e){return x.set(a,e),e[o]},function(e){A(e,t.$hostElement$)})}},P=new Map,I="slot-fb{display:contents}slot-fb[hidden]{display:none}",R="http://www.w3.org/1999/xlink",M="undefined"!=typeof window?window:{},T={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}},V=function(){var e,t=!1;try{null==(e=M.document)||e.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),L=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1}(),N=!!L&&function(){return!!M.document&&Object.getOwnPropertyDescriptor(M.document.adoptedStyleSheets,"length").writable}(),_=!1,j=[],D=[],F=function(e,t){return function(n){e.push(n),_||(_=!0,t&&4&T.$flags$?U(H):T.raf(H))}},z=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){A(e)}e.length=0},H=function e(){z(j),z(D),(_=j.length>0)&&T.raf(e)},U=function(e){return Promise.resolve(undefined).then(e)},B=F(D,!0),W=function(e){return"object"===(e=(0,h.A)(e))||"function"===e};function G(e){var t,n,r;return null!=(r=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?r:void 0}!function(e,t){for(var n in t)O(e,n,{get:t[n],enumerable:!0})}({},{err:function(){return Y},map:function(){return X},ok:function(){return q},unwrap:function(){return Z},unwrapErr:function(){return J}});var q=function(e){return{isOk:!0,isErr:!1,value:e}},Y=function(e){return{isOk:!1,isErr:!0,value:e}};function X(e,t){if(e.isOk){var n=t(e.value);return n instanceof Promise?n.then(function(e){return q(e)}):q(n)}if(e.isErr){var r=e.value;return Y(r)}throw"should never get here"}var K,Z=function(e){if(e.isOk)return e.value;throw e.value},J=function(e){if(e.isErr)return e.value;throw e.value};function Q(e){var t,n=this.attachShadow({mode:"open"});void 0===K&&(K=null!=(t=function(){if(L){var e=new CSSStyleSheet;return e.replaceSync(":host{box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}"),e}}())?t:null),K&&(N?n.adoptedStyleSheets.push(K):n.adoptedStyleSheets=[].concat((0,f.A)(n.adoptedStyleSheets),[K]))}var ee=function e(t){var n=ae(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&te(n,t.tagName).forEach(function(e){1===e.nodeType&&"SLOT-FB"===e.tagName&&(ne(e,oe(e),!1).length?e.hidden=!0:e.hidden=!1)});var r=0;for(r=0;r<n.length;r++){var o=n[r];1===o.nodeType&&ae(o,"childNodes").length&&e(o)}};function te(e,t,n){for(var r,o=0,a=[];o<e.length;o++)!(r=e[o])["s-sr"]||t&&r["s-hn"]!==t||void 0!==n||a.push(r),a=[].concat((0,f.A)(a),(0,f.A)(te(r.childNodes,t,n)));return a}var ne=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=[];(n&&e["s-sr"]||!e["s-sr"])&&r.push(e);for(var o=e;o=o.nextSibling;)oe(o)!==t||!n&&o["s-sr"]||r.push(o);return r},re=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},oe=function(e){return"string"==typeof e["s-sn"]?e["s-sn"]:1===e.nodeType&&e.getAttribute("slot")||void 0};function ae(e,t){if("__"+t in e){var n=e["__"+t];return"function"!=typeof n?n:n.bind(e)}return"function"!=typeof e[t]?e[t]:e[t].bind(e)}var ie=function(e){return function(){}},se=function(e,t){return function(){}},ue=new WeakMap,le=function(e,t,n){var r=P.get(e);L&&n?"string"==typeof(r=r||new CSSStyleSheet)?r=t:r.replaceSync(t):r=t,P.set(e,r)},ce=function(e){var t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=(t.$tagName$,function(){}),a=function(e,t){var n,r=pe(t),o=P.get(r);if(!M.document)return r;if(e=11===e.nodeType?e:M.document,o)if("string"==typeof o){e=e.head||e;var a,i=ue.get(e);if(i||ue.set(e,i=new Set),!i.has(r)){(a=M.document.createElement("style")).innerHTML=o;var s=null!=(n=T.$nonce$)?n:G(M.document);if(null!=s&&a.setAttribute("nonce",s),!(1&t.$flags$))if("HEAD"===e.nodeName){var u=e.querySelectorAll("link[rel=preconnect]"),l=u.length>0?u[u.length-1].nextSibling:e.querySelector("style");e.insertBefore(a,(null==l?void 0:l.parentNode)===e?l:null)}else if("host"in e)if(L){var c=new CSSStyleSheet;c.replaceSync(o),N?e.adoptedStyleSheets.unshift(c):e.adoptedStyleSheets=[c].concat((0,f.A)(e.adoptedStyleSheets))}else{var p=e.querySelector("style");p?p.innerHTML=o+p.innerHTML:e.prepend(a)}else e.append(a);1&t.$flags$&&e.insertBefore(a,null),4&t.$flags$&&(a.innerHTML+=I),i&&i.add(r)}}else e.adoptedStyleSheets.includes(o)||(N?e.adoptedStyleSheets.push(o):e.adoptedStyleSheets=[].concat((0,f.A)(e.adoptedStyleSheets),[o]));return r}(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=a,n.classList.add(a+"-h")),o()},pe=function(e,t){return"sc-"+e.$tagName$},de=function(e,t){for(var n=null,r=null,o=null,a=!1,i=!1,s=[],u=arguments.length,l=new Array(u>2?u-2:0),c=2;c<u;c++)l[c-2]=arguments[c];if(function t(r){for(var o=0;o<r.length;o++)n=r[o],Array.isArray(n)?t(n):null!=n&&"boolean"!=typeof n&&((a="function"!=typeof e&&!W(n))&&(n=String(n)),a&&i?s[s.length-1].$text$+=n:s.push(a?fe(null,n):n),i=a)}(l),t){t.key&&(r=t.key),t.name&&(o=t.name);var p=t.className||t.class;p&&(t.class="object"!==(0,h.A)(p)?p:Object.keys(p).filter(function(e){return p[e]}).join(" "))}if("function"==typeof e)return e(null===t?{}:t,s,me);var d=fe(e,null);return d.$attrs$=t,s.length>0&&(d.$children$=s),d.$key$=r,d.$name$=o,d},fe=function(e,t){return{$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}},he={},me={forEach:function(e,t){return e.map(ve).forEach(t)},map:function(e,t){return e.map(ve).map(t).map(ge)}},ve=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},ge=function(e){if("function"==typeof e.vtag){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){(0,d.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),de.apply(void 0,[e.vtag,t].concat((0,f.A)(e.vchildren||[])))}var n=fe(e.vtag,e.vtext);return n.$attrs$=e.vattrs,n.$children$=e.vchildren,n.$key$=e.vkey,n.$name$=e.vname,n},ye=function(e){var t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp("(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?".concat(t,"))(").concat(t,"\\b)"),"g")};ye("::slotted"),ye(":host"),ye(":host-context");var be,$e,we=function(e,t,n){return null==e||W(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?String(e):e},Oe=function(e){var t;return null==(t=S(e))?void 0:t.$hostElement$},Se=function(e,t,n){var r=Oe(e);return{emit:function(e){return ke(r,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}}},ke=function(e,t,n){var r=T.ce(t,n);return e.dispatchEvent(r),r},Ce=function(e,t,n,r,o,a,i){if(n!==r){var s=C(e,t),u=t.toLowerCase();if("class"===t){var l=e.classList,c=xe(n),p=xe(r);l.remove.apply(l,(0,f.A)(c.filter(function(e){return e&&!p.includes(e)}))),l.add.apply(l,(0,f.A)(p.filter(function(e){return e&&!c.includes(e)})))}else if("style"===t){for(var d in n)r&&null!=r[d]||(d.includes("-")?e.style.removeProperty(d):e.style[d]="");for(var h in r)n&&r[h]===n[h]||(h.includes("-")?e.style.setProperty(h,r[h]):e.style[h]=r[h])}else if("key"===t);else if("ref"===t)r&&r(e);else if(s||"o"!==t[0]||"n"!==t[1]){var m=W(r);if((s||m&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]!==r&&(e[t]=r);else{var v=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==v||("function"==typeof e.__lookupSetter__(t)?e[t]=v:e.setAttribute(t,v))}}catch(e){}var g=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,g=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(g?e.removeAttributeNS(R,t):e.removeAttribute(t)):(!s||4&a||o)&&!m&&1===e.nodeType&&(r=!0===r?"":r,g?e.setAttributeNS(R,t,r):e.setAttribute(t,r))}else if(t="-"===t[2]?t.slice(3):C(M,u)?u.slice(2):u[2]+t.slice(3),n||r){var y=t.endsWith(Ee);t=t.replace(Pe,""),n&&T.rel(e,t,n,y),r&&T.ael(e,t,r,y)}}},Ae=/\s/,xe=function(e){return"object"===(0,h.A)(e)&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(Ae):[]},Ee="Capture",Pe=new RegExp(Ee+"$"),Ie=function(e,t,n,r){var o,a=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||{},s=t.$attrs$||{},u=y(Re(Object.keys(i)));try{for(u.s();!(o=u.n()).done;){var l=o.value;l in s||Ce(a,l,i[l],void 0,n,t.$flags$)}}catch(e){u.e(e)}finally{u.f()}var c,p=y(Re(Object.keys(s)));try{for(p.s();!(c=p.n()).done;){var d=c.value;Ce(a,d,i[d],s[d],n,t.$flags$)}}catch(e){p.e(e)}finally{p.f()}};function Re(e){return e.includes("ref")?[].concat((0,f.A)(e.filter(function(e){return"ref"!==e})),["ref"]):e}var Me=!1,Te=!1,Ve=!1,Le=!1,Ne=function e(t,n,r){var o,a,i,s,u=n.$children$[r],l=0;if(Me||(Ve=!0,"slot"===u.$tag$&&(u.$flags$|=u.$children$?2:1)),null!==u.$text$)a=u.$elm$=M.document.createTextNode(u.$text$);else if(1&u.$flags$)a=u.$elm$=M.document.createTextNode(""),Ie(null,u,Le);else{if(Le||(Le="svg"===u.$tag$),!M.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(a=u.$elm$=M.document.createElementNS(Le?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Me&&2&u.$flags$?"slot-fb":u.$tag$),Le&&"foreignObject"===u.$tag$&&(Le=!1),Ie(null,u,Le),u.$children$)for(l=0;l<u.$children$.length;++l)(i=e(t,u,l))&&a.appendChild(i);"svg"===u.$tag$?Le=!1:"foreignObject"===a.tagName&&(Le=!0)}return a["s-hn"]=$e,3&u.$flags$&&(a["s-sr"]=!0,a["s-cr"]=be,a["s-sn"]=u.$name$||"",a["s-rf"]=null==(o=u.$attrs$)?void 0:o.ref,function(e){if(!e.assignedElements&&!e.assignedNodes&&e["s-sr"]){var t=function(t){return function(e){var n=[],r=this["s-sn"];(null==e?void 0:e.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");var o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n]["s-nr"]||void 0;r&&r.isConnected&&t.push(r)}return t}(o.childNodes)).forEach(function(e){r===oe(e)&&n.push(e)}),t?n.filter(function(e){return 1===e.nodeType}):n}.bind(e)};e.assignedElements=t(!0),e.assignedNodes=t(!1)}}(a),(s=t&&t.$children$&&t.$children$[r])&&s.$tag$===u.$tag$&&t.$elm$&&_e(t.$elm$,!1)),a},_e=function e(t,n){T.$flags$|=1;for(var r=Array.from(t.__childNodes||t.childNodes),o=r.length-1;o>=0;o--){var a=r[o];a["s-hn"]!==$e&&a["s-ol"]&&(Ge(ze(a).parentNode,a,ze(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,Ve=!0),n&&e(a,n)}T.$flags$&=-2},je=function(e,t,n,r,o,a){var i,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowRoot&&s.tagName===$e&&(s=s.shadowRoot);o<=a;++o)r[o]&&(i=Ne(null,n,o))&&(r[o].$elm$=i,Ge(s,i,ze(t)))},De=function(e,t,n){for(var r=t;r<=n;++r){var o=e[r];if(o){var a=o.$elm$;We(o),a&&(Te=!0,a["s-ol"]?a["s-ol"].remove():_e(a,!0),a.remove())}}},Fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:n?(n&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$)},ze=function(e){return e&&e["s-ol"]||e},He=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.$elm$=e.$elm$,a=e.$children$,i=t.$children$,s=t.$tag$,u=t.$text$;null===u?(Ie(e,t,Le="svg"===s||"foreignObject"!==s&&Le),null!==a&&null!==i?function(e,t,n,r){for(var o,a,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=0,u=0,l=0,c=0,p=t.length-1,d=t[0],f=t[p],h=r.length-1,m=r[0],v=r[h];s<=p&&u<=h;)if(null==d)d=t[++s];else if(null==f)f=t[--p];else if(null==m)m=r[++u];else if(null==v)v=r[--h];else if(Fe(d,m,i))He(d,m,i),d=t[++s],m=r[++u];else if(Fe(f,v,i))He(f,v,i),f=t[--p],v=r[--h];else if(Fe(d,v,i))"slot"!==d.$tag$&&"slot"!==v.$tag$||_e(d.$elm$.parentNode,!1),He(d,v,i),Ge(e,d.$elm$,f.$elm$.nextSibling),d=t[++s],v=r[--h];else if(Fe(f,m,i))"slot"!==d.$tag$&&"slot"!==v.$tag$||_e(f.$elm$.parentNode,!1),He(f,m,i),Ge(e,f.$elm$,d.$elm$),f=t[--p],m=r[++u];else{for(l=-1,c=s;c<=p;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===m.$key$){l=c;break}l>=0?((a=t[l]).$tag$!==m.$tag$?o=Ne(t&&t[u],n,l):(He(a,m,i),t[l]=void 0,o=a.$elm$),m=r[++u]):(o=Ne(t&&t[u],n,u),m=r[++u]),o&&Ge(ze(d.$elm$).parentNode,o,ze(d.$elm$))}s>p?je(e,null==r[h+1]?null:r[h+1].$elm$,n,r,u,h):u>h&&De(t,s,p)}(o,a,t,i,r):null!==i?(null!==e.$text$&&(o.textContent=""),je(o,null,t,i,0,i.length-1)):!r&&null!==a&&De(a,0,a.length-1),Le&&"svg"===s&&(Le=!1)):(n=o["s-cr"])?n.parentNode.textContent=u:e.$text$!==u&&(o.data=u)},Ue=[],Be=function e(t){var n,r,o,a,i=y(t.__childNodes||t.childNodes);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s["s-sr"]&&(n=s["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;var u=s["s-sn"],l=function(){if(!(n=r[o])["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==s["s-hn"])if(re(n,u)){var e=Ue.find(function(e){return e.$nodeToRelocate$===n});Te=!0,n["s-sn"]=n["s-sn"]||u,e?(e.$nodeToRelocate$["s-sh"]=s["s-hn"],e.$slotRefNode$=s):(n["s-sh"]=s["s-hn"],Ue.push({$slotRefNode$:s,$nodeToRelocate$:n})),n["s-sr"]&&Ue.map(function(t){re(t.$nodeToRelocate$,n["s-sn"])&&(e=Ue.find(function(e){return e.$nodeToRelocate$===n}))&&!t.$slotRefNode$&&(t.$slotRefNode$=e.$slotRefNode$)})}else Ue.some(function(e){return e.$nodeToRelocate$===n})||Ue.push({$nodeToRelocate$:n})};for(o=r.length-1;o>=0;o--)l()}1===s.nodeType&&e(s)}}catch(e){i.e(e)}finally{i.f()}},We=function e(t){t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e)},Ge=function(e,t,n){return null==e?void 0:e.insertBefore(t,n)},qe=function(e,t){var n,r,o,a,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||fe(null,null),d=(i=t)&&i.$tag$===he?t:de(null,null,t);if($e=u.tagName,l.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},l.$attrsToReflect$.map(function(e){var t=(0,p.A)(e,2),n=t[0],r=t[1];return d.$attrs$[r]=u[n]})),s&&d.$attrs$)for(var f=0,h=Object.keys(d.$attrs$);f<h.length;f++){var m=h[f];u.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(d.$attrs$[m]=u[m])}if(d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=c.$elm$=u.shadowRoot||u,Me=!(!(1&l.$flags$)||128&l.$flags$),be=u["s-cr"],Te=!1,He(c,d,s),T.$flags$|=1,Ve){Be(d.$elm$);for(var v=0,g=Ue;v<g.length;v++){var y=g[v].$nodeToRelocate$;if(!y["s-ol"]&&M.document){var b=M.document.createTextNode("");b["s-nr"]=y,Ge(y.parentNode,y["s-ol"]=b,y)}}for(var $=0,w=Ue;$<w.length;$++){var O=w[$],S=O.$nodeToRelocate$,k=O.$slotRefNode$;if(k){for(var C=k.parentNode,A=k.nextSibling,x=null==(n=S["s-ol"])?void 0:n.previousSibling;x;){var E=null!=(r=x["s-nr"])?r:null;if(E&&E["s-sn"]===S["s-sn"]&&C===(E.__parentNode||E.parentNode)){for(E=E.nextSibling;E===S||(null==E?void 0:E["s-sr"]);)E=null==E?void 0:E.nextSibling;if(!E||!E["s-nr"]){A=E;break}}x=x.previousSibling}var P=S.__parentNode||S.parentNode,I=S.__nextSibling||S.nextSibling;(!A&&C!==P||I!==A)&&S!==A&&(!S["s-hn"]&&S["s-ol"]&&(S["s-hn"]=S["s-ol"].parentNode.nodeName),Ge(C,S,A),1===S.nodeType&&"SLOT-FB"!==S.tagName&&(S.hidden=null!=(o=S["s-ih"])&&o)),S&&"function"==typeof k["s-rf"]&&k["s-rf"](k)}else 1===S.nodeType&&(s&&(S["s-ih"]=null!=(a=S.hidden)&&a),S.hidden=!0)}}Te&&ee(d.$elm$),T.$flags$&=-2,Ue.length=0,be=void 0},Ye=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"])var n=t["s-p"].push(new Promise(function(r){return e.$onRenderResolve$=function(){t["s-p"].splice(n-1,1),r()}}))},Xe=function(e,t){if(e.$flags$|=16,4&e.$flags$)e.$flags$|=512;else{Ye(e,e.$ancestorComponent$);var n=function(){return Ke(e,t)};if(!t)return B(n);queueMicrotask(function(){n()})}},Ke=function(e,t){var n,r=e.$hostElement$,o=(e.$cmpMeta$.$tagName$,function(){}),a=e.$lazyInstance$;if(!a)throw new Error("Can't render component <".concat(r.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"));return t?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(function(e){var t=(0,p.A)(e,2),n=t[0],o=t[1];return rt(a,n,o,r)}),e.$queuedListeners$=void 0),n=rt(a,"componentWillLoad",void 0,r)):n=rt(a,"componentWillUpdate",void 0,r),n=Ze(n,function(){return rt(a,"componentWillRender",void 0,r)}),o(),Ze(n,function(){return Qe(e,a,t)})},Ze=function(e,t){return Je(e)?e.then(t).catch(function(e){console.error(e),t()}):t()},Je=function(e){return e instanceof Promise||e&&e.then&&"function"==typeof e.then},Qe=function(){var e=(0,c.A)(v().mark(function e(t,n,r){var o,a,i,s,u,l,c;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=t.$hostElement$,i=ie(0,t.$cmpMeta$.$tagName$),s=a["s-rc"],r&&ce(t),u=ie(0,t.$cmpMeta$.$tagName$),et(t,n,a,r),s&&(s.map(function(e){return e()}),a["s-rc"]=void 0),u(),i(),l=null!=(o=a["s-p"])?o:[],c=function(){return tt(t)},0===l.length?c():(Promise.all(l).then(c),t.$flags$|=4,l.length=0);case 12:case"end":return e.stop()}},e)}));return function(_x,t,n){return e.apply(this,arguments)}}(),et=function(e,t,n,r){try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,qe(e,t,r)}catch(t){A(t,e.$hostElement$)}return null},tt=function(e){e.$cmpMeta$.$tagName$;var t=e.$hostElement$,n=e.$lazyInstance$,r=e.$ancestorComponent$;rt(n,"componentDidRender",void 0,t),64&e.$flags$?rt(n,"componentDidUpdate",void 0,t):(e.$flags$|=64,ot(t),rt(n,"componentDidLoad",void 0,t),e.$onReadyResolve$(t),r||nt()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&U(function(){return Xe(e,!1)}),e.$flags$&=-517},nt=function(e){U(function(){return ke(M,"appload",{detail:{namespace:"web-components"}})})},rt=function(e,t,n,r){if(e&&e[t])try{return e[t](n)}catch(e){A(e,r)}},ot=function(e){return e.classList.add("hydrated")},at=function(e,t,n,r){var o=S(e);if(o){if(!o)throw new Error("Couldn't find host element for \"".concat(r.$tagName$,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'));var a=o.$hostElement$,i=o.$instanceValues$.get(t),s=o.$flags$,u=o.$lazyInstance$;n=we(n,r.$members$[t][0]);var l=Number.isNaN(i)&&Number.isNaN(n);if((!(8&s)||void 0===i)&&n!==i&&!l&&(o.$instanceValues$.set(t,n),u)){if(r.$watchers$&&128&s){var c=r.$watchers$[t];c&&c.map(function(e){try{u[e](n,i,t)}catch(e){A(e,a)}})}if(2==(18&s)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,i,t))return;Xe(o,!1)}}}},it=function(e,t,n){var r,o,a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);var i=Object.entries(null!=(r=t.$members$)?r:{});if(i.map(function(e){var r=(0,p.A)(e,2),o=r[0],i=(0,p.A)(r[1],1)[0];if(31&i||2&n&&32&i){var s=Object.getOwnPropertyDescriptor(a,o)||{},u=s.get,l=s.set;u&&(t.$members$[o][0]|=2048),l&&(t.$members$[o][0]|=4096),(1&n||!u)&&Object.defineProperty(a,o,{get:function(){if(!(2048&t.$members$[o][0]))return function(e,t){return S(e).$instanceValues$.get(t)}(this,o);var e=S(this),n=e?e.$lazyInstance$:a;return n?n[o]:void 0},configurable:!0,enumerable:!0}),Object.defineProperty(a,o,{set:function(e){var r=this,a=S(this);if(a){if(l){var s=32&i?this[o]:a.$hostElement$[o];return void 0===s&&a.$instanceValues$.get(o)?e=a.$instanceValues$.get(o):!a.$instanceValues$.get(o)&&s&&a.$instanceValues$.set(o,s),l.apply(this,[we(e,i)]),e=32&i?this[o]:a.$hostElement$[o],void at(this,o,e,t)}if(!(1&n&&4096&t.$members$[o][0]))return at(this,o,e,t),void(1&n&&!a.$lazyInstance$&&a.$onReadyPromise$.then(function(){4096&t.$members$[o][0]&&a.$lazyInstance$[o]!==a.$instanceValues$.get(o)&&(a.$lazyInstance$[o]=e)}));var u=function(){var n=a.$lazyInstance$[o];!a.$instanceValues$.get(o)&&n&&a.$instanceValues$.set(o,n),a.$lazyInstance$[o]=we(e,i),at(r,o,a.$lazyInstance$[o],t)};a.$lazyInstance$?u():a.$onReadyPromise$.then(function(){return u()})}}})}else 1&n&&64&i&&Object.defineProperty(a,o,{value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=S(this);return null==(r=null==a?void 0:a.$onInstancePromise$)?void 0:r.then(function(){var e,n;return null==(n=a.$lazyInstance$)?void 0:(e=n)[o].apply(e,t)})}})}),1&n){var s=new Map;a.attributeChangedCallback=function(e,n,r){var o=this;T.jmp(function(){var i,u=s.get(e);if(o.hasOwnProperty(u))r=o[u],delete o[u];else{if(a.hasOwnProperty(u)&&"number"==typeof o[u]&&o[u]==r)return;if(null==u){var l=S(o),c=null==l?void 0:l.$flags$;if(l&&c&&!(8&c)&&128&c&&r!==n){var p=l.$lazyInstance$,d=null==(i=t.$watchers$)?void 0:i[e];null==d||d.forEach(function(t){null!=p[t]&&p[t].call(p,r,n,e)})}return}}var f=Object.getOwnPropertyDescriptor(a,u);(r=(null!==r||"boolean"!=typeof o[u])&&r)===o[u]||f.get&&!f.set||(o[u]=r)})},e.observedAttributes=Array.from(new Set([].concat((0,f.A)(Object.keys(null!=(o=t.$watchers$)?o:{})),(0,f.A)(i.filter(function(e){var t=(0,p.A)(e,2);return t[0],15&t[1][0]}).map(function(e){var n,r=(0,p.A)(e,2),o=r[0],a=r[1],i=a[1]||o;return s.set(i,o),512&a[0]&&(null==(n=t.$attrsToReflect$)||n.push([o,i])),i})))))}}return e},st=function(){var e=(0,c.A)(v().mark(function e(t,n,r,o){var a,i,s,u,l,c,p,d,f,h;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(32&n.$flags$){e.next=30;break}if(n.$flags$|=32,!r.$lazyBundleId$){e.next=26;break}if(!(i=E(r,n))||!("then"in i)){e.next=13;break}return s=se(),e.next=9,i;case 9:a=e.sent,s(),e.next=14;break;case 13:a=i;case 14:if(a){e.next=16;break}throw new Error('Constructor for "'.concat(r.$tagName$,"#").concat(n.$modeName$,'" was not found'));case 16:a.isProxied||(r.$watchers$=a.watchers,it(a,r,2),a.isProxied=!0),u=ie(0,r.$tagName$),n.$flags$|=8;try{new a(n)}catch(e){A(e,t)}n.$flags$&=-9,n.$flags$|=128,u(),ut(n.$lazyInstance$,t),e.next=29;break;case 26:a=t.constructor,l=t.localName,customElements.whenDefined(l).then(function(){return n.$flags$|=128});case 29:a&&a.style&&("string"==typeof a.style&&(c=a.style),p=pe(r),P.has(p)||(d=ie(0,r.$tagName$),le(p,c,!!(1&r.$flags$)),d()));case 30:f=n.$ancestorComponent$,h=function(){return Xe(n,!0)},f&&f["s-rc"]?f["s-rc"].push(h):h();case 33:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),ut=function(e,t){rt(e,"connectedCallback",void 0,t)},lt=function(e,t){rt(e,"disconnectedCallback",void 0,t||e)},ct=function(){var e=(0,c.A)(v().mark(function e(t){var n;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:1&T.$flags$||((null==(n=S(t))?void 0:n.$rmListeners$)&&(n.$rmListeners$.map(function(e){return e()}),n.$rmListeners$=void 0),(null==n?void 0:n.$lazyInstance$)?lt(n.$lazyInstance$,t):(null==n?void 0:n.$onReadyPromise$)&&n.$onReadyPromise$.then(function(){return lt(n.$lazyInstance$,t)})),ue.has(t)&&ue.delete(t),t.shadowRoot&&ue.has(t.shadowRoot)&&ue.delete(t.shadowRoot);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),pt=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(M.document){var c,d=[],f=n.exclude||[],h=M.customElements,m=M.document.head,v=m.querySelector("meta[charset]"),y=M.document.createElement("style"),b=[],$=!0;Object.assign(T,n),T.$resourcesUrl$=new URL(n.resourcesUrl||"./",M.document.baseURI).href;var w=!1;if(e.map(function(e){e[1].map(function(t){var n,m={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};4&m.$flags$&&(w=!0),m.$members$=t[2],m.$listeners$=t[3],m.$attrsToReflect$=[],m.$watchers$=null!=(n=t[4])?n:{};var v=m.$tagName$,y=function(e){(0,i.A)(d,e);var t,n,l=(t=d,n=g(),function(){var e,r=(0,u.A)(t);if(n){var o=(0,u.A)(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return(0,s.A)(this,e)});function d(e){var t;if((0,r.A)(this,d),(t=l.call(this,e)).hasRegisteredEventListeners=!1,function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};n.$onInstancePromise$=new Promise(function(e){return n.$onInstanceResolve$=e}),n.$onReadyPromise$=new Promise(function(e){return n.$onReadyResolve$=e}),e["s-p"]=[],e["s-rc"]=[];var r=n;e.__stencil__getHostRef=function(){return r}}(e=(0,a.A)(t),m),1&m.$flags$)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw new Error("Unable to re-use existing shadow root for ".concat(m.$tagName$,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}else Q.call(e,m);return t}return(0,o.A)(d,[{key:"connectedCallback",value:function(){var e=this,t=S(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,dt(this,t,m.$listeners$)),c&&(clearTimeout(c),c=null),$?b.push(this):T.jmp(function(){return function(e){if(!(1&T.$flags$)){var t=S(e);if(!t)return;var n=t.$cmpMeta$,r=(n.$tagName$,function(){});if(1&t.$flags$)dt(e,t,n.$listeners$),(null==t?void 0:t.$lazyInstance$)?ut(t.$lazyInstance$,e):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(function(){return ut(t.$lazyInstance$,e)});else{t.$flags$|=1,12&n.$flags$&&function(e){if(M.document){var t=e["s-cr"]=M.document.createComment("");t["s-cn"]=!0,Ge(e,t,e.firstChild)}}(e);for(var o=e;o=o.parentNode||o.host;)if(o["s-p"]){Ye(t,t.$ancestorComponent$=o);break}n.$members$&&Object.entries(n.$members$).map(function(t){var n=(0,p.A)(t,2),r=n[0];if(31&(0,p.A)(n[1],1)[0]&&e.hasOwnProperty(r)){var o=e[r];delete e[r],e[r]=o}}),st(e,t,n)}r()}}(e)}))}},{key:"disconnectedCallback",value:function(){var e=this;T.jmp(function(){return ct(e)}),T.raf(function(){var t,n=S(e);if(n){var r=b.findIndex(function(t){return t===e});r>-1&&b.splice(r,1),(null==(t=null==n?void 0:n.$vnode$)?void 0:t.$elm$)instanceof Node&&!n.$vnode$.$elm$.isConnected&&delete n.$vnode$.$elm$}})}},{key:"componentOnReady",value:function(){var e;return null==(e=S(this))?void 0:e.$onReadyPromise$}}]),d}((0,l.A)(HTMLElement));m.$lazyBundleId$=e[0],f.includes(v)||h.get(v)||(d.push(v),h.define(v,it(y,m,1)))})}),d.length>0&&(w&&(y.textContent+=I),y.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");var O=null!=(t=T.$nonce$)?t:G(M.document);null!=O&&y.setAttribute("nonce",O),m.insertBefore(y,v?v.nextSibling:m.firstChild)}$=!1,b.length?b.map(function(e){return e.connectedCallback()}):T.jmp(function(){return c=setTimeout(nt,30)})}else console.warn("Stencil: No document found. Skipping bootstrapping lazy components.")},dt=function(e,t,n,r){n&&M.document&&n.map(function(n){var r=(0,p.A)(n,3),o=r[0],a=r[1],i=r[2],s=ht(M.document,e,o),u=ft(t,i),l=mt(o);T.ael(s,a,u,l),(t.$rmListeners$=t.$rmListeners$||[]).push(function(){return T.rel(s,a,u,l)})})},ft=function(e,t){return function(n){var r;try{256&e.$flags$?null==(r=e.$lazyInstance$)||r[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(t){A(t,e.$hostElement$)}}},ht=function(e,t,n){return 8&n?M:t},mt=function(e){return V?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e)}},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6369),o=n(6986),a=n(7800),i=n(6562);function s(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},3986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=c(n);p&&(i=i.concat(p(n)));for(var s=u(t),m=u(n),v=0;v<i.length;++v){var g=i[v];if(!(a[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=d(n,g);try{l(t,g,y)}catch(e){}}}}return t}},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5049:(e,t,n)=>{var r={"./presto-action-bar-ui_2.entry.js":[8460,258],"./presto-action-bar_17.entry.js":[2766,258],"./presto-cta-overlay-ui.entry.js":[3649,258],"./presto-email-overlay-ui_2.entry.js":[3710,258],"./presto-player-button.entry.js":[177,258],"./presto-player-skeleton.entry.js":[6094,258],"./presto-player_4.entry.js":[1867,258],"./presto-playlist.entry.js":[9971,258],"./presto-search-bar-ui.entry.js":[2744,258],"./presto-timestamp.entry.js":[3941,258],"./presto-video-curtain-ui.entry.js":[4440,258],"./presto-video.entry.js":[5058,258]};function o(e){if(!n.o(r,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return n.e(t[1]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=5049,e.exports=o},5458:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3145),o=n(7800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},5556:(e,t,n)=>{e.exports=n(2694)()},6369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},6459:e=>{"use strict";e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,o=void 0,a=void 0,i=[];return function(){var u=function(e){return"function"==typeof e?e():e}(t),l=(new Date).getTime(),c=!r||l-r>u;r=l;for(var p=arguments.length,d=Array(p),f=0;f<p;f++)d[f]=arguments[f];if(c&&n.leading)return n.accumulate?Promise.resolve(e.call(this,[d])).then(function(e){return e[0]}):Promise.resolve(e.call.apply(e,[this].concat(d)));if(o?clearTimeout(a):o=function(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}(),i.push(d),a=setTimeout(s.bind(this),u),n.accumulate){var h=i.length-1;return o.promise.then(function(e){return e[h]})}return o.promise};function s(){var t=o;clearTimeout(a),Promise.resolve(n.accumulate?e.call(this,i):e.apply(this,i[i.length-1])).then(t.resolve,t.reject),i=[],o=null}}},6562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},6822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2284),o=n(9417);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,a,i=[],_n=!0,s=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(i.push(r.value),i.length!==t);_n=!0);}catch(e){s=!0,o=e}finally{try{if(!_n&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return i}}n.d(t,{A:()=>r})},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8614:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3954),o=n(3662);function a(e,t,n){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&(0,o.A)(a,n.prototype),a},a.apply(null,arguments)}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,(0,r.A)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),(0,o.A)(i,e)},i(e)}},9132:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1609),i=u(a),s=u(n(5556));function u(e){return e&&e.__esModule?e:{default:e}}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),f=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||f(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||f(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(a.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.A=h},9280:e=>{"use strict";e.exports=window.regeneratorRuntime},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},9922:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2284),o=n(2327);function a(e){var t=(0,o.A)(e,"string");return"symbol"===(0,r.A)(t)?t:String(t)}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>e+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@presto-player/presto-player:",o.l=(n,r,a,i)=>{if(e[n])e[n].push(r);else{var s,u;if(void 0!==a)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var p=l[c];if(p.getAttribute("src")==n||p.getAttribute("data-webpack")==t+a){s=p;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),u&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=177,(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={177:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,a,i=n[0],s=n[1],u=n[2],l=0;if(i.some(t=>0!==e[t])){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);u&&u(o)}for(t&&t(n);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunk_presto_player_presto_player=self.webpackChunk_presto_player_presto_player||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.jQuery;var t=o.n(e),n=o(3029),r=o(2901),a=o(5501),i=o(6822),s=o(3954),u=o(4467);window.wp.element;var l=o(1609),c=o.n(l);function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=o(467),f=o(3453),h=o(9280),m=o.n(h),v=o(2284),g=function(e){return e.replace(/([A-Z])/g,function(e){return"-".concat(e[0].toLowerCase())})},y=function(e){if("undefined"==typeof document)return!0;var t="on"+function(e){return"doubleclick"===e?"dblclick":e}(e),n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n},b=function(e){var t=new Map;return e.forEach(function(e){return t.set(e,e)}),t},$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){!function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(t,e)})}};function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var O=function(e,t,o,u){void 0!==u&&u();var p=e.toLowerCase().split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(""),d=function(t){(0,a.A)(f,t);var u,c,d=(u=f,c=w(),function(){var e,t=(0,s.A)(u);if(c){var n=(0,s.A)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,i.A)(this,e)});function f(e){var t;return(0,n.A)(this,f),(t=d.call(this,e)).setComponentElRef=function(e){t.componentEl=e},t}return(0,r.A)(f,[{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Element){var r=function(e,t,n){var r=t.className||t.class,o=n.className||n.class,a=b(e),i=b(r?r.split(" "):[]),s=b(o?o.split(" "):[]),u=[];return a.forEach(function(e){i.has(e)?(u.push(e),i.delete(e)):s.has(e)||u.push(e)}),i.forEach(function(e){return u.push(e)}),u.join(" ")}(e.classList,t,n);""!==r&&(e.className=r),Object.keys(t).forEach(function(n){if("children"!==n&&"style"!==n&&"ref"!==n&&"class"!==n&&"className"!==n&&"forwardedRef"!==n)if(0===n.indexOf("on")&&n[2]===n[2].toUpperCase()){var r=n.substring(2),o=r[0].toLowerCase()+r.substring(1);y(o)||function(e,t,n){var r=e.__events||(e.__events={}),o=r[t];o&&e.removeEventListener(t,o),e.addEventListener(t,r[t]=function(e){n&&n.call(this,e)})}(e,o,t[n])}else e[n]=t[n],"string"===(0,v.A)(t[n])&&e.setAttribute(g(n),t[n])})}}(this.componentEl,this.props,e)}},{key:"render",value:function(){var t=this.props,n=t.children,r=t.forwardedRef,a=t.style,i=(t.className,t.ref,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children","forwardedRef","style","className","ref"])),s=Object.keys(i).reduce(function(e,t){var n=i[t];if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){var r=t.substring(2).toLowerCase();"undefined"!=typeof document&&y(r)&&(e[t]=n)}else{var o=(0,v.A)(n);"string"!==o&&"boolean"!==o&&"number"!==o||(e[g(t)]=n)}return e},{});o&&(s=o(this.props,s));var u=Object.assign(Object.assign({},s),{ref:$(r,this.setComponentElRef),style:a});return(0,l.createElement)(e,u,n)}}],[{key:"displayName",get:function(){return p}}]),f}(c().Component);return t&&(d.contextType=t),function(e,t){var n=function(t,n){return c().createElement(e,Object.assign({},t,{forwardedRef:n}))};return n.displayName=t,c().forwardRef(n)}(d,p)},S=o(3370),k=function(){var e=(0,d.A)(m().mark(function e(t,n){return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.next=4,(0,S.g)();case 4:return e.abrupt("return",(0,S.b)([["presto-playlist",[[257,"presto-playlist",{items:[16],heading:[1],listTextSingular:[1,"list-text-singular"],listTextPlural:[1,"list-text-plural"],transitionDuration:[2,"transition-duration"],currentPlaylistItem:[32],currentPlyr:[32],playing:[32]},[[0,"rewatch","rewatch"],[0,"next","next"]],{currentPlyr:["handleCurrentPlay"],currentPlaylistItem:["resetPlayingStateOnItemChange"]}]]],["presto-player-skeleton",[[257,"presto-player-skeleton",{effect:[1]}]]],["presto-timestamp",[[260,"presto-timestamp",{time:[1]}]]],["presto-video-curtain-ui",[[257,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]]],["presto-search-bar-ui",[[257,"presto-search-bar-ui",{value:[1025],placeholder:[1],hasNavigation:[4,"has-navigation"],focused:[32],placeholderWidth:[32]},null,{placeholder:["handlePlaceholderSize"],value:["handleValueChange"],focused:["watchPropHandler"]}]]],["presto-player-button",[[257,"presto-player-button",{type:[513],size:[513],full:[516],disabled:[516],submit:[516],name:[1],value:[1],href:[1],target:[513],download:[1],hasFocus:[32],hasLabel:[32],hasPrefix:[32],hasSuffix:[32]}]]],["presto-cta-overlay-ui",[[257,"presto-cta-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],showButton:[4,"show-button"],buttonText:[1,"button-text"],buttonType:[1,"button-type"],buttonLink:[16,"button-link"],allowRewatch:[4,"allow-rewatch"],allowSkip:[4,"allow-skip"],direction:[1],i18n:[16,"i-1-8n"],provider:[1],type:[1],isAudioProvider:[32]}]]],["presto-video",[[256,"presto-video",{getRef:[1040,"get-ref"],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1],videoAttributes:[16,"video-attributes"]}]]],["presto-action-bar-ui_2",[[257,"presto-action-bar-ui",{open:[4]}],[256,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}]]],["presto-email-overlay-ui_2",[[257,"presto-email-overlay-ui",{headline:[1],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],i18n:[16,"i-1-8n"],provider:[1],type:[1],email:[32],isAudioProvider:[32]}],[257,"presto-player-spinner"]]],["presto-action-bar_17",[[257,"presto-action-bar",{player:[8],config:[16],direction:[1],youtube:[16],currentTime:[32],duration:[32],ended:[32]},null,{player:["handlePlayerChange"]}],[256,"presto-cta-overlay",{player:[8],direction:[1],preset:[16],i18n:[16,"i-1-8n"],provider:[1],currentTime:[32],duration:[32],ended:[32]}],[256,"presto-email-overlay",{player:[8],direction:[1],preset:[16],videoId:[2,"video-id"],i18n:[16,"i-1-8n"],provider:[1],currentTime:[32],duration:[32],ended:[32]}],[256,"presto-bunny",{getRef:[1040,"get-ref"],autoplay:[4],src:[1],preload:[1],poster:[1025],player:[8],tracks:[16],playsinline:[4],provider:[1],videoAttributes:[16,"video-attributes"]}],[257,"presto-dynamic-overlays",{overlays:[16],player:[8],preset:[16],enabled:[4],currentTime:[32],destroy:[32]}],[256,"presto-search-bar",{value:[1],player:[8],markers:[32],currentMarkerLocation:[32]}],[256,"presto-youtube",{src:[1],poster:[1025],lazyLoad:[1028,"lazy-load"],player:[8],getRef:[1040,"get-ref"],reloadPlayer:[32],isWebView:[32]},null,{player:["handlePlayerChange"]}],[256,"presto-audio",{getRef:[1040,"get-ref"],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],preset:[16],tracks:[16],provider:[1],mediaTitle:[1,"media-title"],audioAttributes:[16,"audio-attributes"],width:[32]}],[260,"presto-business-skin"],[260,"presto-modern-skin"],[256,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16,"muted-overlay"],preset:[16]}],[260,"presto-stacked-skin"],[256,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040,"get-ref"]}],[257,"presto-action-bar-controller",{ended:[4],config:[16],currentTime:[514,"current-time"],duration:[514],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32],percentagePassed:[32]},null,{duration:["handleDuration","handlePercentagePassed"],ended:["handleEnded"],currentTime:["handlePercentagePassed","handleTime"],config:["handleButtonCountChange"],show:["handleCtaStateChange"]}],[256,"presto-cta-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],cta:[16],i18n:[16,"i-1-8n"],provider:[1],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32]},null,{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"],show:["handleCtaStateChange"]}],[256,"presto-email-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],emailCollection:[16,"email-collection"],i18n:[16,"i-1-8n"],videoId:[2,"video-id"],presetId:[2,"preset-id"],provider:[1],enabled:[32],show:[32],loading:[32],error:[32],percentagePassed:[32]},null,{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"],show:["handleEmailStateChange"]}],[257,"presto-dynamic-overlay-ui",{href:[1],target:[1],position:[1]}]]],["presto-player_4",[[257,"presto-player",{iconUrl:[1,"icon-url"],src:[1],type:[1],autoplay:[1540],preload:[1],poster:[1],playsinline:[4],isAdmin:[4,"is-admin"],direction:[1],css:[1],currentTime:[2,"current-time"],mediaTitle:[1,"media-title"],classes:[1],audioAttributes:[16,"audio-attributes"],videoAttributes:[6152,"video-attributes"],markers:[8],automations:[4],providerVideoId:[1,"provider-video-id"],videoId:[2,"video-id"],analytics:[4],provider:[1],lazyLoadYoutube:[4,"lazy-load-youtube"],preset:[6152],branding:[6152],chapters:[6152],overlays:[6152],tracks:[6152],blockAttributes:[6152,"block-attributes"],config:[6152],youtube:[6152],actionBar:[6152,"action-bar"],i18n:[6152,"i-1-8n"],search:[6152],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32],ctaActive:[32],emailActive:[32],actionBarActive:[32],ready:[32],play:[64],goToAndPlay:[64],restart:[64],pause:[64],stop:[64],fullscreenToggle:[64],on:[64],once:[64],off:[64]},[[8,"currentMediaPlayer","handleScroll"],[0,"restartVideo","handleRestartVideo"],[0,"playVideo","handlePlayVideo"],[0,"pauseVideo","handlePauseVideo"],[8,"visibilitychange","playVideoOnlyInViewport"],[0,"ctaStateChange","handleCtaStateChange"],[0,"emailStateChange","handleEmailStateChange"],[0,"actionBarStateChange","handleActionBarStateChange"]],{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}],[257,"presto-playlist-item",{active:[4],playing:[4]}],[257,"presto-playlist-overlay",{nextItemTitle:[1,"next-item-title"],nextItemString:[1,"next-item-string"],transitionDuration:[2,"transition-duration"],isLastItem:[4,"is-last-item"],show:[4],animating:[32]},null,{show:["handleShow"],animating:["handleAnimatingChange"]}],[257,"presto-playlist-ui"]]]],n));case 5:case"end":return e.stop()}},e)}));return function(_x,t){return e.apply(this,arguments)}}();!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}(),k();var C=O("presto-player"),A=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();const x=function(e){function t(e,r,u,l,d){for(var f,h,m,v,$,O=0,S=0,k=0,C=0,A=0,M=0,V=m=f=0,N=0,_=0,j=0,D=0,F=u.length,z=F-1,H="",U="",B="",W="";N<F;){if(h=u.charCodeAt(N),N===z&&0!==S+C+k+O&&(0!==S&&(h=47===S?10:47),C=k=O=0,F++,z++),0===S+C+k+O){if(N===z&&(0<_&&(H=H.replace(p,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=u.charAt(N)}h=59}switch(h){case 123:for(f=(H=H.trim()).charCodeAt(0),m=1,D=++N;N<F;){switch(h=u.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(N+1)){case 42:case 47:e:{for(V=N+1;V<z;++V)switch(u.charCodeAt(V)){case 47:if(42===h&&42===u.charCodeAt(V-1)&&N+2!==V){N=V+1;break e}break;case 10:if(47===h){N=V+1;break e}}N=V}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<z&&u.charCodeAt(N)!==h;);}if(0===m)break;N++}if(m=u.substring(D,N),0===f&&(f=(H=H.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<_&&(H=H.replace(p,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:_=r;break;default:_=R}if(D=(m=t(r,_,m,h,d+1)).length,0<T&&($=s(3,m,_=n(R,H,j),r,E,x,D,h,d,l),H=_.join(""),void 0!==$&&0===(D=(m=$.trim()).length)&&(h=0,m="")),0<D)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===l&&(U+=m,m="")}else m=""}else m=t(r,n(r,H,j),m,l,d+1);B+=m,m=j=_=V=f=0,H="",h=u.charCodeAt(++N);break;case 125:case 59:if(1<(D=(H=(0<_?H.replace(p,""):H).trim()).length))switch(0===V&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&(D=(H=H.replace(" ",":")).length),0<T&&void 0!==($=s(1,H,r,e,E,x,U.length,l,d,l))&&0===(D=(H=$.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),h=H.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){W+=H+u.charAt(N);break}default:58!==H.charCodeAt(D-1)&&(U+=o(H,f,h,H.charCodeAt(2)))}j=_=V=f=0,H="",h=u.charCodeAt(++N)}}switch(h){case 13:case 10:47===S?S=0:0===1+f&&107!==l&&0<H.length&&(_=1,H+="\0"),0<T*L&&s(0,H,r,e,E,x,U.length,l,d,l),x=1,E++;break;case 59:case 125:if(0===S+C+k+O){x++;break}default:switch(x++,v=u.charAt(N),h){case 9:case 32:if(0===C+O+S)switch(A){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===C+S+O&&(_=j=1,v="\f"+v);break;case 108:if(0===C+S+O+P&&0<V)switch(N-V){case 2:112===A&&58===u.charCodeAt(N-3)&&(P=A);case 8:111===M&&(P=M)}break;case 58:0===C+S+O&&(V=N);break;case 44:0===S+k+C+O&&(_=1,v+="\r");break;case 34:case 39:0===S&&(C=C===h?0:0===C?h:C);break;case 91:0===C+S+k&&O++;break;case 93:0===C+S+k&&O--;break;case 41:0===C+S+O&&k--;break;case 40:0===C+S+O&&(0===f&&(2*A+3*M==533||(f=1)),k++);break;case 64:0===S+k+C+O+V+m&&(m=1);break;case 42:case 47:if(!(0<C+O+k))switch(S){case 0:switch(2*h+3*u.charCodeAt(N+1)){case 235:S=47;break;case 220:D=N,S=42}break;case 42:47===h&&42===A&&D+2!==N&&(33===u.charCodeAt(D+2)&&(U+=u.substring(D,N+1)),v="",S=0)}}0===S&&(H+=v)}M=A,A=h,N++}if(0<(D=U.length)){if(_=r,0<T&&void 0!==($=s(2,U,_,e,E,x,D,l,d,l))&&0===(U=$).length)return W+U+B;if(U=_.join(",")+"{"+U+"}",0!==I*P){switch(2!==I||a(U,2)||(P=0),P){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(y,"::-webkit-input-$1")+U.replace(y,"::-moz-$1")+U.replace(y,":-ms-input-$1")+U}P=0}}return W+U+B}function n(e,t,n){var o=t.trim().split(m);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var l=0;l<i;++l)t[u++]=r(e[l]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",s=2*t+3*n+4*r;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===I||2===I&&a(u,1)?"-webkit-"+u+u:u}if(0===I||2===I&&!a(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(A,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return f.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace($,"tb");break;case 232:u=i.replace($,"tb-rl");break;case 220:u=i.replace($,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(S,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(S,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),V(2!==t?r:r.replace(k,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,i,s,u,c){for(var p,d=0,f=t;d<T;++d)switch(p=M[d].call(l,e,f,n,r,o,a,i,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(V=null,e?"function"!=typeof e?I=1:(I=2,V=e):I=0),u}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var o=s(-1,n,r,r,E,x,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var a=t(R,r,n,0,0);return 0<T&&void 0!==(o=s(-2,a,r,r,E,x,a.length,0,0,0))&&(a=o),P=0,x=E=1,a}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,$=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,x=1,E=1,P=0,I=1,R=[],M=[],T=0,V=null,L=0;return l.use=function e(t){switch(t){case void 0:case null:T=M.length=0;break;default:if("function"==typeof t)M[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},l.set=u,void 0!==e&&u(e),l};var E="/*|*/",P=E+"}";function I(e){e&&R.current.insert(e+"}")}var R={current:null},M=function(e,t,n,r,o,a,i,s,u,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return R.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+E;break;case 3:switch(s){case 102:case 112:return R.current.insert(n[0]+t),"";default:return t+(0===l?E:"")}case-2:t.split(P).forEach(I)}};function T(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "}),r}var V=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0),o=o.next}while(void 0!==o)}};const L=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},N={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var _,j=/[A-Z]|^ms/g,D=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F=function(e){return 45===e.charCodeAt(1)},z=function(e){return null!=e&&"boolean"!=typeof e},H=(_={},function(e){return void 0===_[e]&&(_[e]=F(t=e)?t:t.replace(j,"-$&").toLowerCase()),_[e];var t}),U=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(D,function(e,t,n){return W={name:t,styles:n,next:W},t})}return 1===N[e]||F(e)||"number"!=typeof t||0===t?t:t+"px"};function B(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return W={name:n.name,styles:n.styles,next:W},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)W={name:o.name,styles:o.styles,next:W},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=B(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":z(i)&&(r+=H(a)+":"+U(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=B(e,t,i,!1);switch(a){case"animation":case"animationName":r+=H(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)z(i[u])&&(r+=H(a)+":"+U(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=W,i=n(e);return W=a,B(e,t,i,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var W,G=/label:\s*([^\s;\n{]+)\s*;/g,q=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";W=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=B(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=B(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);G.lastIndex=0;for(var s,u="";null!==(s=G.exec(o));)u+="-"+s[1];return{name:L(o)+u,styles:o,next:W}},Y=Object.prototype.hasOwnProperty,X=(0,l.createContext)("undefined"!=typeof HTMLElement?function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,o=new x(t),a={};r=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach(function(e){a[e]=!0}),e.parentNode!==r&&r.appendChild(e)}),o.use(e.stylisPlugins)(M),i=function(e,t,n,r){var a=t.name;R.current=n,o(e,t.styles),r&&(u.inserted[a]=!0)};var u={key:n,sheet:new A({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return u}():null),K=(0,l.createContext)({}),Z=(X.Provider,function(e){var t=function(t,n){return(0,l.createElement)(X.Consumer,null,function(r){return e(t,r,n)})};return(0,l.forwardRef)(t)}),J="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Q=function(){return null},ee=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=t[J],i=[o],s="";"string"==typeof t.className?s=T(e.registered,i,t.className):null!=t.className&&(s=t.className+" ");var u=q(i);V(e,u,"string"==typeof a),s+=e.key+"-"+u.name;var c={};for(var p in t)Y.call(t,p)&&"css"!==p&&p!==J&&(c[p]=t[p]);c.ref=r,c.className=s;var d=(0,l.createElement)(a,c),f=(0,l.createElement)(Q,null);return(0,l.createElement)(l.Fragment,null,f,d)},te=Z(function(e,t,n){return"function"==typeof e.css?(0,l.createElement)(K.Consumer,null,function(r){return ee(t,e,r,n)}):ee(t,e,null,n)});const ne=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(t)};var re,oe=function(e,t){var n=arguments;if(null==t||!Y.call(t,"css"))return l.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=te,o[1]=function(e,t){var n={};for(var r in t)Y.call(t,r)&&(n[r]=t[r]);return n[J]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return l.createElement.apply(null,o)},ae=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o},ie=function(){return null};Z(function(e,t){return(0,l.createElement)(K.Consumer,null,function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=q(n,t.registered);return V(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=T(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,ae(n))},theme:n},a=e.children(o),i=(0,l.createElement)(ie,null);return(0,l.createElement)(l.Fragment,null,i,a)})});const se=function(e){var t=e.id,n=e.src,r=(0,l.useState)({}),o=(0,f.A)(r,2),a=o[0],i=o[1],s=(0,l.useState)(!1),u=(0,f.A)(s,2),c=u[0],h=u[1],v=(0,l.useState)(""),g=(0,f.A)(v,2),y=g[0],b=g[1],$=(0,l.useState)(1),w=(0,f.A)($,2),O=w[0],S=w[1];(0,l.useEffect)(function(){S(O+1)},[t,n,a]),(0,l.useEffect)(function(){x(t)},[t]),(0,l.useEffect)(function(){n&&b(function(e){if(e){if(e.includes(".mp3"))return"audio";if(e.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return"youtube";if(e.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/))return"vimeo";if(e.indexOf("https://vz-")>-1&&e.indexOf("b-cdn.net")>-1)return"bunny"}return"self-hosted"}(n))},[n]);var k,A,x=function(){var e=(0,d.A)(m().mark(function e(t){var n;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return h(!0),e.prev=3,e.next=6,fetch("/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams({action:"presto_get_media_attributes",_wpnonce:window.et_fb_options.et_admin_load_nonce,id:t})}).then(function(e){return e.json()});case 6:n=e.sent,i(n.data);case 8:return e.prev=8,h(!1),e.finish(8);case 11:case"end":return e.stop()}},e,null,[[3,,8,11]])}));return function(_x){return e.apply(this,arguments)}}();return c?oe("div",{className:"et-fb-preloader et-fb-preloader__loading"},oe("div",{className:"et-fb-loader"})):null!=a&&a.id?(n=n||a.src,"bunny"!==(null==a?void 0:a.provider)||"self-hosted"!==y&&"bunny"!==y?oe("div",{css:ne(re||(re=p(["\n ","\n "])),null==a?void 0:a.styles)},oe(C,{key:O,video_id:a.id,preset:a.preset,src:n,chapters:a.chapters,tracks:a.tracks,branding:a.branding,blockAttributes:a.blockAttributes,poster:null==a||null===(k=a.blockAttributes)||void 0===k?void 0:k.poster,mediaTitle:null==a||null===(A=a.blockAttributes)||void 0===A?void 0:A.title,config:a.config,skin:a.skin,analytics:a.analytics,automations:a.automations,provider:y||(null==a?void 0:a.provider),provider_video_id:a.provider_video_id,youtube:a.youtube})):oe("presto-video-curtain-ui",null,oe("span",null,"Bunny.net videos cannot be previewed in the DIVI editor due to DIVI iframe having no referrer."),oe("presto-player-button",{full:!0,type:"primary",target:"_blank",href:"https://prestoplayer.com/docs/bunny-net-videos-not-showing-in-divi-editor"},"Learn More"))):"Choose Media Item"};var ue=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),le=Math.abs,ce=String.fromCharCode,pe=Object.assign;function de(e){return e.trim()}function fe(e,t,n){return e.replace(t,n)}function he(e,t){return e.indexOf(t)}function me(e,t){return 0|e.charCodeAt(t)}function ve(e,t,n){return e.slice(t,n)}function ge(e){return e.length}function ye(e){return e.length}function be(e,t){return t.push(e),e}var $e=1,we=1,Oe=0,Se=0,ke=0,Ce="";function Ae(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:$e,column:we,length:i,return:""}}function xe(e,t){return pe(Ae("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ee(){return ke=Se>0?me(Ce,--Se):0,we--,10===ke&&(we=1,$e--),ke}function Pe(){return ke=Se<Oe?me(Ce,Se++):0,we++,10===ke&&(we=1,$e++),ke}function Ie(){return me(Ce,Se)}function Re(){return Se}function Me(e,t){return ve(Ce,e,t)}function Te(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ve(e){return $e=we=1,Oe=ge(Ce=e),Se=0,[]}function Le(e){return Ce="",e}function Ne(e){return de(Me(Se-1,De(91===e?e+2:40===e?e+1:e)))}function _e(e){for(;(ke=Ie())&&ke<33;)Pe();return Te(e)>2||Te(ke)>3?"":" "}function je(e,t){for(;--t&&Pe()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Me(e,Re()+(t<6&&32==Ie()&&32==Pe()))}function De(e){for(;Pe();)switch(ke){case e:return Se;case 34:case 39:34!==e&&39!==e&&De(ke);break;case 40:41===e&&De(e);break;case 92:Pe()}return Se}function Fe(e,t){for(;Pe()&&e+ke!==57&&(e+ke!==84||47!==Ie()););return"/*"+Me(t,Se-1)+"*"+ce(47===e?e:Pe())}function ze(e){for(;!Te(Ie());)Pe();return Me(e,Se)}var He="-ms-",Ue="-moz-",Be="-webkit-",We="comm",Ge="rule",qe="decl",Ye="@keyframes";function Xe(e,t){for(var n="",r=ye(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ke(e,t,n,r){switch(e.type){case"@import":case qe:return e.return=e.return||e.value;case We:return"";case Ye:return e.return=e.value+"{"+Xe(e.children,r)+"}";case Ge:e.value=e.props.join(",")}return ge(n=Xe(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ze(e){return Le(Je("",null,null,null,[""],e=Ve(e),0,[0],e))}function Je(e,t,n,r,o,a,i,s,u){for(var l=0,c=0,p=i,d=0,f=0,h=0,m=1,v=1,g=1,y=0,b="",$=o,w=a,O=r,S=b;v;)switch(h=y,y=Pe()){case 40:if(108!=h&&58==me(S,p-1)){-1!=he(S+=fe(Ne(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Ne(y);break;case 9:case 10:case 13:case 32:S+=_e(h);break;case 92:S+=je(Re()-1,7);continue;case 47:switch(Ie()){case 42:case 47:be(et(Fe(Pe(),Re()),t,n),u);break;default:S+="/"}break;case 123*m:s[l++]=ge(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:f>0&&ge(S)-p&&be(f>32?tt(S+";",r,n,p-1):tt(fe(S," ","")+";",r,n,p-2),u);break;case 59:S+=";";default:if(be(O=Qe(S,t,n,l,c,o,s,b,$=[],w=[],p),a),123===y)if(0===c)Je(S,t,O,O,$,a,p,s,w);else switch(99===d&&110===me(S,3)?100:d){case 100:case 109:case 115:Je(e,O,O,r&&be(Qe(e,O,O,0,0,o,s,b,o,$=[],p),w),o,w,p,s,r?$:w);break;default:Je(S,O,O,O,[""],w,0,s,w)}}l=c=f=0,m=g=1,b=S="",p=i;break;case 58:p=1+ge(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ee())continue;switch(S+=ce(y),y*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(ge(S)-1)*g,g=1;break;case 64:45===Ie()&&(S+=Ne(Pe())),d=Ie(),c=p=ge(b=S+=ze(Re())),y++;break;case 45:45===h&&2==ge(S)&&(m=0)}}return a}function Qe(e,t,n,r,o,a,i,s,u,l,c){for(var p=o-1,d=0===o?a:[""],f=ye(d),h=0,m=0,v=0;h<r;++h)for(var g=0,y=ve(e,p+1,p=le(m=i[h])),b=e;g<f;++g)(b=de(m>0?d[g]+" "+y:fe(y,/&\f/g,d[g])))&&(u[v++]=b);return Ae(e,t,n,0===o?Ge:s,u,l,c)}function et(e,t,n){return Ae(e,t,n,We,ce(ke),ve(e,2,-2),0)}function tt(e,t,n,r){return Ae(e,t,n,qe,ve(e,0,r),ve(e,r+1,-1),r)}var nt=function(e,t,n){for(var r=0,o=0;r=o,o=Ie(),38===r&&12===o&&(t[n]=1),!Te(o);)Pe();return Me(e,Se)},rt=new WeakMap,ot=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||rt.get(n))&&!r){rt.set(e,!0);for(var o=[],a=function(e,t){return Le(function(e,t){var n=-1,r=44;do{switch(Te(r)){case 0:38===r&&12===Ie()&&(t[n]=1),e[n]+=nt(Se-1,t,n);break;case 2:e[n]+=Ne(r);break;case 4:if(44===r){e[++n]=58===Ie()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ce(r)}}while(r=Pe());return e}(Ve(e),t))}(t,o),i=n.props,s=0,u=0;s<a.length;s++)for(var l=0;l<i.length;l++,u++)e.props[u]=o[s]?a[s].replace(/&\f/g,i[l]):i[l]+" "+a[s]}}},at=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function it(e,t){switch(function(e,t){return 45^me(e,0)?(((t<<2^me(e,0))<<2^me(e,1))<<2^me(e,2))<<2^me(e,3):0}(e,t)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+Ue+e+He+e+e;case 6828:case 4268:return Be+e+He+e+e;case 6165:return Be+e+He+"flex-"+e+e;case 5187:return Be+e+fe(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return Be+e+He+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return Be+e+He+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return Be+e+He+fe(e,"shrink","negative")+e;case 5292:return Be+e+He+fe(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+fe(e,"-grow","")+Be+e+He+fe(e,"grow","positive")+e;case 4554:return Be+fe(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Be+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ge(e)-1-t>6)switch(me(e,t+1)){case 109:if(45!==me(e,t+4))break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+Ue+(108==me(e,t+3)?"$3":"$2-$3"))+e;case 115:return~he(e,"stretch")?it(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==me(e,t+1))break;case 6444:switch(me(e,ge(e)-3-(~he(e,"!important")&&10))){case 107:return fe(e,":",":"+Be)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(45===me(e,14)?"inline-":"")+"box$3$1"+Be+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(me(e,t+11)){case 114:return Be+e+He+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+He+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+He+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+He+e+e}return e}var st=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qe:e.return=it(e.value,e.length);break;case Ye:return Xe([xe(e,{value:fe(e.value,"@","@"+Be)})],r);case Ge:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Xe([xe(e,{props:[fe(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Xe([xe(e,{props:[fe(t,/:(plac\w+)/,":"+Be+"input-$1")]}),xe(e,{props:[fe(t,/:(plac\w+)/,":-moz-$1")]}),xe(e,{props:[fe(t,/:(plac\w+)/,He+"input-$1")]})],r)}return""})}}];const ut=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||st,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)});var u,l,c,p,d=[Ke,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(l=[ot,at].concat(a,d),c=ye(l),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=l[a](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,Xe(Ze(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new ue({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h};function lt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}var ct=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},pt=function(e,t,n){ct(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};const dt=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},ft={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ht=/[A-Z]|^ms/g,mt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vt=function(e){return 45===e.charCodeAt(1)},gt=function(e){return null!=e&&"boolean"!=typeof e},yt=function(){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=vt(n=t)?n:n.replace(ht,"-$&").toLowerCase()),e[t];var n}}(),bt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(mt,function(e,t,n){return wt={name:t,styles:n,next:wt},t})}return 1===ft[e]||vt(e)||"number"!=typeof t||0===t?t:t+"px"};function $t(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return wt={name:n.name,styles:n.styles,next:wt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)wt={name:r.name,styles:r.styles,next:wt},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$t(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":gt(i)&&(r+=yt(a)+":"+bt(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=$t(e,t,i);switch(a){case"animation":case"animationName":r+=yt(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)gt(i[u])&&(r+=yt(a)+":"+bt(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=wt,a=n(e);return wt=o,$t(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var wt,Ot=/label:\s*([^\s;\n{]+)\s*(;|$)/g,St=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";wt=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=$t(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=$t(n,t,e[i]),r&&(o+=a[i]);Ot.lastIndex=0;for(var s,u="";null!==(s=Ot.exec(o));)u+="-"+s[1];return{name:dt(o)+u,styles:o,next:wt}},kt=!!l.useInsertionEffect&&l.useInsertionEffect||function(e){return e()},Ct={}.hasOwnProperty,At=(0,l.createContext)("undefined"!=typeof HTMLElement?ut({key:"css"}):null),xt=At.Provider,Et=function(e){return(0,l.forwardRef)(function(t,n){var r=(0,l.useContext)(At);return e(t,r,n)})},Pt=(0,l.createContext)({}),It="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ct(t,n,r),kt(function(){return pt(t,n,r)}),null},Mt=Et(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[It],a=[r],i="";"string"==typeof e.className?i=lt(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var s=St(a,void 0,(0,l.useContext)(Pt));i+=t.key+"-"+s.name;var u={};for(var c in e)Ct.call(e,c)&&"css"!==c&&c!==It&&(u[c]=e[c]);return u.ref=n,u.className=i,(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,l.createElement)(o,u))});o(4146);var Tt=function(e,t){var n=arguments;if(null==t||!Ct.call(t,"css"))return l.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mt,o[1]=function(e,t){var n={};for(var r in t)Ct.call(t,r)&&(n[r]=t[r]);return n[It]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return l.createElement.apply(null,o)};function Vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return St(t)}var Lt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o},Nt=function(e){var t=e.cache,n=e.serializedArr;return kt(function(){for(var e=0;e<n.length;e++)pt(t,n[e],!1)}),null},_t=Et(function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var a=St(r,t.registered);return n.push(a),ct(t,a,!1),t.key+"-"+a.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=lt(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,Lt(n))},theme:(0,l.useContext)(Pt)},a=e.children(o);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Nt,{cache:t,serializedArr:n}),a)});function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jt=function(){return!!e})()}var __=wp.i18n.__,Dt=function(e){(0,a.A)(l,e);var t,o,u=(t=l,o=jt(),function(){var e,n=(0,s.A)(t);if(o){var r=(0,s.A)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,i.A)(this,e)});function l(e){var t;return(0,n.A)(this,l),(t=u.call(this,e)).state={videos:[]},t}return(0,r.A)(l,[{key:"render",value:function(){var e=this.props.dynamic.url_override;return this.props.video_id?Tt(se,{id:this.props.video_id,src:e&&e.value&&e.value}):Tt("presto-video-curtain-ui",null,Tt("span",null,__("Please select media.","presto-player")))}}]),l}(l.Component);(0,u.A)(Dt,"slug","prpl_presto_player");const Ft=[Dt];var zt=o(9417),Ht=o(6459),Ut=o.n(Ht),Bt=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Wt(e,t){return e===t||!(!Bt(e)||!Bt(t))}function Gt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Wt(e[n],t[n]))return!1;return!0}const qt=function(e,t){var n;void 0===t&&(t=Gt);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}};function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yt.apply(this,arguments)}var Xt=o(3986),Kt=o(9132);const Zt=window.ReactDOM;function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach(function(t){Jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tn(e)}function nn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=tn(e);if(t){var o=tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}var rn=function(){};function on(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function an(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(on(e,o)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var sn=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,v.A)(e)&&null!==e?[e]:[]},un=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,en({},(0,Xt.A)(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function ln(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function cn(e){return ln(e)?window.pageYOffset:e.scrollTop}function pn(e,t){ln(e)?window.scrollTo(0,t):e.scrollTop=t}function dn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rn,o=cn(e),a=t-o,i=0;!function t(){var s,u=a*((s=(s=i+=10)/n-1)*s*s+1)+o;pn(e,u),i<n?window.requestAnimationFrame(t):r(e)}()}function fn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var hn=!1,mn={get passive(){return hn=!0}},vn="undefined"!=typeof window?window:{};vn.addEventListener&&vn.removeEventListener&&(vn.addEventListener("p",rn,mn),vn.removeEventListener("p",rn,!1));var gn=hn;var yn=function(e){return"auto"===e?"bottom":e},bn=(0,l.createContext)({getPortalPlacement:null}),$n=function(e){(0,a.A)(o,e);var t=nn(o);function o(){var e;(0,n.A)(this,o);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var l="fixed"===i,c=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=u.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,f=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,g=cn(u),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),$=m-b,w=v-h,O=$+g,S=c-g-h,k=d-v+g+y,C=g+h-b,A=160;switch(o){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(S>=f&&!i)return a&&dn(u,k,A),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&w>=r)return a&&dn(u,k,A),{placement:"bottom",maxHeight:i?w-y:S-y};if("auto"===o||i){var x=t,E=i?$:O;return E>=r&&(x=Math.min(E-y-s.controlHeight,t)),{placement:"top",maxHeight:x}}if("bottom"===o)return a&&pn(u,k),{placement:"bottom",maxHeight:t};break;case"top":if($>=f)return{placement:"top",maxHeight:t};if(O>=f&&!i)return a&&dn(u,C,A),{placement:"top",maxHeight:t};if(!i&&O>=r||i&&$>=r){var P=t;return(!i&&O>=r||i&&$>=r)&&(P=i?$-b:O-b),a&&dn(u,C,A),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!l,isFixedPosition:l,theme:u}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||yn(t);return en(en({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,r.A)(o,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),o}(l.Component);$n.contextType=bn;var wn=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},On=wn,Sn=wn,kn=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Tt("div",Yt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};kn.defaultProps={children:"No options"};var Cn=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Tt("div",Yt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Cn.defaultProps={children:"Loading..."};var An,xn=function(e){(0,a.A)(o,e);var t=nn(o);function o(){var e;(0,n.A)(this,o);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==yn(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,r.A)(o,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,a=e.cx,i=e.innerProps,s=e.menuPlacement,u=e.menuPosition,l=e.getStyles,c="fixed"===u;if(!t&&!c||!o)return null;var p=this.state.placement||yn(s),d=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),f=c?0:window.pageYOffset,h=d[p]+f,m=Tt("div",Yt({css:l("menuPortal",{offset:h,position:u,rect:d}),className:a({"menu-portal":!0},r)},i),n);return Tt(bn.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Zt.createPortal)(m,t):m)}}]),o}(l.Component),En={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Pn=function(e){var t=e.size,n=(0,Xt.A)(e,["size"]);return Tt("svg",Yt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:En},n))},In=function(e){return Tt(Pn,Yt({size:20},e),Tt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Rn=function(e){return Tt(Pn,Yt({size:20},e),Tt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Mn=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Tn=Mn,Vn=Mn,Ln=function(){var e=Vt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(An||(An=p(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Nn=function(e){var t=e.delay,n=e.offset;return Tt("span",{css:Vt({animation:"".concat(Ln," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},jn=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return Tt("div",Yt({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Tt(Nn,{delay:0,offset:a}),Tt(Nn,{delay:160,offset:!0}),Tt(Nn,{delay:320,offset:!a}))};jn.defaultProps={size:4};var Dn=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Fn=function(e){var t=e.children,n=e.innerProps;return Tt("div",n,t)},zn=Fn,Hn=Fn,Un=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,u=e.isDisabled,l=e.removeProps,c=e.selectProps,p=r.Container,d=r.Label,f=r.Remove;return Tt(_t,null,function(r){var h=r.css,m=r.cx;return Tt(p,{data:a,innerProps:en({className:m(h(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},s),selectProps:c},Tt(d,{data:a,innerProps:{className:m(h(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Tt(f,{data:a,innerProps:en({className:m(h(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},l),selectProps:c}))})};Un.defaultProps={cropWithEllipsis:!0};for(var Bn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Tt("div",Yt({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},a),t||Tt(In,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,u=e.innerProps,l=e.menuIsOpen;return Tt("div",Yt({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":l},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Tt("div",Yt({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},a),t||Tt(Rn,null))},DownChevron:Rn,CrossIcon:In,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.innerProps,u=e.label,l=e.theme,c=e.selectProps;return Tt("div",Yt({css:o("group",e),className:r({group:!0},n)},s),Tt(a,Yt({},i,{selectProps:c,theme:l,getStyles:o,cx:r}),u),Tt("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=un(e);o.data;var a=(0,Xt.A)(o,["data"]);return Tt("div",Yt({css:t("groupHeading",e),className:n({"group-heading":!0},r)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.getStyles;return Tt("div",Yt({css:a("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Tt("span",Yt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=un(e),a=o.innerRef,i=o.isDisabled,s=o.isHidden,u=(0,Xt.A)(o,["innerRef","isDisabled","isHidden"]);return Tt("div",{css:r("input",e)},Tt(Kt.A,Yt({className:n({input:!0},t),inputRef:a,inputStyle:Dn(s),disabled:i},u)))},LoadingIndicator:jn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return Tt("div",Yt({css:o("menu",e),className:r({menu:!0},n),ref:a},i),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.innerRef,s=e.isMulti;return Tt("div",Yt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:i},a),t)},MenuPortal:xn,LoadingMessage:Cn,NoOptionsMessage:kn,MultiValue:Un,MultiValueContainer:zn,MultiValueLabel:Hn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Tt("div",n,t||Tt(In,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,u=e.innerRef,l=e.innerProps;return Tt("div",Yt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:u},l),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Tt("div",Yt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return Tt("div",Yt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return Tt("div",Yt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.isMulti,i=e.getStyles,s=e.hasValue;return Tt("div",Yt({css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":s},n)},o),t)}},Wn=o(5458),Gn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},qn=function(e){return Tt("span",Yt({css:Gn},e))},Yn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,a=e.label,i=void 0===a?"":a,s=e.selectValue,u=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(c(s,r),".");if("menu"===t){var p=u?" disabled":"",d="".concat(l?"selected":"focused").concat(p);return"option ".concat(i," ").concat(d,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Xn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,s=e.selectProps,u=s.ariaLiveMessages,p=s.getOptionLabel,d=s.inputValue,f=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,v=s.menuIsOpen,g=s.options,y=s.screenReaderStatus,b=s.tabSelectsValue,$=s["aria-label"],w=s["aria-live"],O=(0,l.useMemo)(function(){return en(en({},Yn),u||{})},[u]),S=(0,l.useMemo)(function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.removedValue,a=t.value,i=o||r||(e=a,Array.isArray(e)?null:e),s=en({isDisabled:i&&h(i),label:i?p(i):""},t);n=O.onChange(s)}return n},[t,h,p,O]),k=(0,l.useMemo)(function(){var e="",t=n||r,o=!!(n&&i&&i.includes(n));if(t&&O.onFocus){var a={focused:t,label:p(t),isDisabled:h(t),isSelected:o,options:g,context:t===n?"menu":"value",selectValue:i};e=O.onFocus(a)}return e},[n,r,p,h,O,g,i]),C=(0,l.useMemo)(function(){var e="";if(v&&g.length&&O.onFilter){var t=y({count:o.length});e=O.onFilter({inputValue:d,resultsMessage:t})}return e},[o,d,v,O,g,y]),A=(0,l.useMemo)(function(){var e="";if(O.guidance){var t=r?"value":v?"menu":"input";e=O.guidance({"aria-label":$,context:t,isDisabled:n&&h(n),isMulti:f,isSearchable:m,tabSelectsValue:b})}return e},[$,n,r,f,h,m,v,O,b]),x="".concat(k," ").concat(C," ").concat(A);return Tt(qn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&Tt(c().Fragment,null,Tt("span",{id:"aria-selection"},S),Tt("span",{id:"aria-context"},x)))},Kn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Zn=new RegExp("["+Kn.map(function(e){return e.letters}).join("")+"]","g"),Jn={},Qn=0;Qn<Kn.length;Qn++)for(var er=Kn[Qn],tr=0;tr<er.letters.length;tr++)Jn[er.letters[tr]]=er.base;var nr=function(e){return e.replace(Zn,function(e){return Jn[e]})},rr=qt(nr),or=function(e){return e.replace(/^\s+|\s+$/g,"")},ar=function(e){return"".concat(e.label," ").concat(e.value)};function ir(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=(0,Xt.A)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Tt("input",Yt({ref:t},n,{css:Vt({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var sr=["boxSizing","height","overflow","paddingRight","position"],ur={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function lr(e){e.preventDefault()}function cr(e){e.stopPropagation()}function pr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function dr(){return"ontouchstart"in window||navigator.maxTouchPoints}var fr=!("undefined"==typeof window||!window.document||!window.document.createElement),hr=0,mr={capture:!1,passive:!1},vr=function(){return document.activeElement&&document.activeElement.blur()},gr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,l.useRef)(!1),s=(0,l.useRef)(!1),u=(0,l.useRef)(0),c=(0,l.useRef)(null),p=(0,l.useCallback)(function(e,t){if(null!==c.current){var u=c.current,l=u.scrollTop,p=u.scrollHeight,d=u.clientHeight,f=c.current,h=t>0,m=p-d-l,v=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=p,v=!0,i.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),f.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}},[]),d=(0,l.useCallback)(function(e){p(e,e.deltaY)},[p]),f=(0,l.useCallback)(function(e){u.current=e.changedTouches[0].clientY},[]),h=(0,l.useCallback)(function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)},[p]),m=(0,l.useCallback)(function(e){if(e){var t=!!gn&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",h,t)}},[h,f,d]),v=(0,l.useCallback)(function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",h,!1))},[h,f,d]);return(0,l.useEffect)(function(){if(t){var e=c.current;return m(e),function(){v(e)}}},[t,m,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,l.useRef)({}),a=(0,l.useRef)(null),i=(0,l.useCallback)(function(e){if(fr){var t=document.body,n=t&&t.style;if(r&&sr.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&hr<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(ur).forEach(function(e){var t=ur[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&dr()&&(t.addEventListener("touchmove",lr,mr),e&&(e.addEventListener("touchstart",pr,mr),e.addEventListener("touchmove",cr,mr))),hr+=1}},[]),s=(0,l.useCallback)(function(e){if(fr){var t=document.body,n=t&&t.style;hr=Math.max(hr-1,0),r&&hr<1&&sr.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&dr()&&(t.removeEventListener("touchmove",lr,mr),e&&(e.removeEventListener("touchstart",pr,mr),e.removeEventListener("touchmove",cr,mr)))}},[]);return(0,l.useEffect)(function(){if(t){var e=a.current;return i(e),function(){s(e)}}},[t,i,s]),function(e){a.current=e}}({isEnabled:n});return Tt(c().Fragment,null,n&&Tt("div",{onClick:vr,css:gr}),t(function(e){o(e),a(e)}))}var br={clearIndicator:Vn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Tn,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Sn,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return t={label:"menu"},(0,u.A)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,u.A)(t,"backgroundColor",i.neutral0),(0,u.A)(t,"borderRadius",o),(0,u.A)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,u.A)(t,"marginBottom",a.menuGutter),(0,u.A)(t,"marginTop",a.menuGutter),(0,u.A)(t,"position","absolute"),(0,u.A)(t,"width","100%"),(0,u.A)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:On,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},$r={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},wr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:fn(),captureMenuScroll:!fn(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=en({ignoreCase:!0,ignoreAccents:!0,stringify:ar,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,u=i?or(t):t,l=i?or(a(e)):a(e);return r&&(u=u.toLowerCase(),l=l.toLowerCase()),o&&(u=rr(u),l=nr(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function Or(e,t,n,r){return{type:"option",data:t,isDisabled:Er(e,t,n),isSelected:Pr(e,t,n),label:Ar(e,t),value:xr(e,t),index:r}}function Sr(e,t){return e.options.map(function(n,r){if(n.options){var o=n.options.map(function(n,r){return Or(e,n,t,r)}).filter(function(t){return Cr(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Or(e,n,t,r);return Cr(e,a)?a:void 0}).filter(function(e){return!!e})}function kr(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,Wn.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Cr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!Rr(e)||!a)&&Ir(e,{label:i,value:s,data:o},r)}var Ar=function(e,t){return e.getOptionLabel(t)},xr=function(e,t){return e.getOptionValue(t)};function Er(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Pr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=xr(e,t);return n.some(function(t){return xr(e,t)===r})}function Ir(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Rr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Mr=1,Tr=function(e){(0,a.A)(o,e);var t=nn(o);function o(e){var r;return(0,n.A)(this,o),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),u=r.isOptionDisabled(e,i);if(s){var l=r.getOptionValue(e);r.setValue(i.filter(function(e){return r.getOptionValue(e)!==l}),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",name:a});o?r.setValue([].concat((0,Wn.A)(i),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter(function(e){return r.getOptionValue(e)!==o}),i=t?a:a[0]||null;r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=e?o:o[0]||null;r.onChange(a,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return an.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Ar(r.props,e)},r.getOptionValue=function(e){return xr(r.props,e)},r.getStyles=function(e,t){var n=br[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,en(en({},Bn),e.components);var e},r.buildCategorizedOptions=function(){return Sr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return kr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:en({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ln(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Rr(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!p||!h||d&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Mr),r.state.selectValue=sn(e.value),r}return(0,r.A)(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,u=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&e.isDisabled||l&&u&&!e.menuIsOpen)&&this.focusInput(),l&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?pn(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&pn(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($r):en(en({},$r),this.props.theme):$r}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,a=this.setValue,i=this.props,s=i.isMulti,u=i.isRtl,l=i.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:o,selectProps:i,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Er(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Pr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ir(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,s=this.getComponents().Input,u=this.state.inputIsHidden,l=this.commonProps,p=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?c().createElement(s,Yt({},l,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},d)):c().createElement(ir,Yt({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:rn,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:i,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,s=t.Placeholder,u=this.commonProps,l=this.props,p=l.controlShouldRenderValue,d=l.isDisabled,f=l.isMulti,h=l.inputValue,m=l.placeholder,v=this.state,g=v.selectValue,y=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!p)return h?null:c().createElement(s,Yt({},u,{key:"placeholder",isDisabled:d,isFocused:b}),m);if(f)return g.map(function(t,i){var s=t===y;return c().createElement(n,Yt({},u,{components:{Container:r,Label:o,Remove:a},isFocused:s,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(i),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var $=g[0];return c().createElement(i,Yt({},u,{data:$,isDisabled:d}),this.formatOptionLabel($,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c().createElement(e,Yt({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?c().createElement(e,Yt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return c().createElement(n,Yt({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c().createElement(e,Yt({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,l=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,g=f.loadingMessage,y=f.minMenuHeight,b=f.maxMenuHeight,$=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,S=f.menuPortalTarget,k=f.menuShouldBlockScroll,C=f.menuShouldScrollIntoView,A=f.noOptionsMessage,x=f.onMenuScrollToTop,E=f.onMenuScrollToBottom;if(!$)return null;var P,I=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,s=t.label,u=t.value,f=d===o,h=a?void 0:function(){return e.onOptionHover(o)},m=a?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return c().createElement(l,Yt({},p,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:v,label:s,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,s="".concat(e.getElementId("group"),"-").concat(i),u="".concat(s,"-heading");return c().createElement(n,Yt({},p,{key:s,data:o,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return I(e,"".concat(i,"-").concat(e.index))}))}if("option"===t.type)return I(t,"".concat(t.index))});else if(v){var R=g({inputValue:m});if(null===R)return null;P=c().createElement(s,p,R)}else{var M=A({inputValue:m});if(null===M)return null;P=c().createElement(u,p,M)}var T={minMenuHeight:y,maxMenuHeight:b,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:C},V=c().createElement($n,Yt({},p,T),function(t){var n=t.ref,r=t.placerProps,i=r.placement,s=r.maxHeight;return c().createElement(o,Yt({},p,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:i}),c().createElement(yr,{captureEnabled:h,onTopArrive:x,onBottomArrive:E,lockEnabled:k},function(t){return c().createElement(a,Yt({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:s,focusedOption:d}),P)}))});return S||"fixed"===O?c().createElement(i,Yt({},p,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),V):V}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=this.state.selectValue;if(a&&!r){if(o){if(n){var s=i.map(function(t){return e.getOptionValue(t)}).join(n);return c().createElement("input",{name:a,type:"hidden",value:s})}var u=i.length>0?i.map(function(t,n){return c().createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):c().createElement("input",{name:a,type:"hidden"});return c().createElement("div",null,u)}var l=i[0]?this.getOptionValue(i[0]):"";return c().createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,s=this.getFocusableOptions();return c().createElement(Xn,Yt({},e,{ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,s=a.id,u=a.isDisabled,l=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return c().createElement(r,Yt({},d,{className:i,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),c().createElement(t,Yt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:l}),c().createElement(o,Yt({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),c().createElement(n,Yt({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=e.options,i=e.value,s=e.menuIsOpen,u=e.inputValue,l={};if(n&&(i!==n.value||a!==n.options||s!==n.menuIsOpen||u!==n.inputValue)){var c=sn(i),p=s?function(e,t){return kr(Sr(e,t))}(e,c):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null,f=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,p);l={selectValue:c,focusedOption:f,focusedValue:d,clearFocusValueOnUpdate:!1}}var h=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return en(en(en({},l),h),{},{prevProps:e})}}]),o}(l.Component);Tr.defaultProps=wr;var Vr={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Lr=function(e){var t,o;return o=t=function(t){(0,a.A)(i,t);var o=nn(i);function i(){var e;(0,n.A)(this,i);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(e=o.call.apply(o,[this].concat(r))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return(0,r.A)(i,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=(0,Xt.A)(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return c().createElement(e,Yt({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),i}(l.Component),t.defaultProps=Vr,o},Nr=function(e){(0,a.A)(o,e);var t=nn(o);function o(e){var r;return(0,n.A)(this,o),(r=t.call(this,e)).createEmotionCache=function(e,t){return ut({nonce:e,key:t})},r.createEmotionCache=qt(r.createEmotionCache),r}return(0,r.A)(o,[{key:"render",value:function(){var e=this.createEmotionCache(this.props.nonce,this.props.cacheKey);return c().createElement(xt,{value:e},this.props.children)}}]),o}(l.Component);Lr(Tr);var _r,jr,Dr,Fr=Lr(Tr),zr=(_r=Fr,Dr=jr=function(e){(0,a.A)(o,e);var t=nn(o);function o(e){var r;return(0,n.A)(this,o),(r=t.call(this)).select=void 0,r.lastRequest=void 0,r.mounted=!1,r.handleInputChange=function(e,t){var n=r.props,o=n.cacheOptions,a=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,n.onInputChange);if(!a)return delete r.lastRequest,void r.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&r.state.optionsCache[a])r.setState({inputValue:a,loadedInputValue:a,loadedOptions:r.state.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var i=r.lastRequest={};r.setState({inputValue:a,isLoading:!0,passEmptyOptions:!r.state.loadedInputValue},function(){r.loadOptions(a,function(e){r.mounted&&i===r.lastRequest&&(delete r.lastRequest,r.setState(function(t){return{isLoading:!1,loadedInputValue:a,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?en(en({},t.optionsCache),{},(0,u.A)({},a,e)):t.optionsCache}}))})})}return a},r.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},r}return(0,r.A)(o,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,function(){return t()})}},{key:"render",value:function(){var e=this,t=this.props;t.loadOptions;var n=t.isLoading,r=(0,Xt.A)(t,["loadOptions","isLoading"]),o=this.state,a=o.defaultOptions,i=o.inputValue,s=o.isLoading,u=o.loadedInputValue,l=o.loadedOptions,p=o.passEmptyOptions?[]:i&&u?l:a||[];return c().createElement(_r,Yt({},r,{ref:function(t){e.select=t},options:p,isLoading:s||n,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},r=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return en(en({},n),r)}}]),o}(l.Component),jr.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Dr);const Hr=zr;function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach(function(t){(0,u.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wr(e){var t=Gr();return function(){var n,r=(0,s.A)(e);if(t){var o=(0,s.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,i.A)(this,n)}}function Gr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gr=function(){return!!e})()}var qr=wp.i18n.__,Yr=function(e){(0,a.A)(o,e);var t=Wr(o);function o(){var e;(0,n.A)(this,o);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,u.A)((0,zt.A)(e),"createEmotionCacheCustom",function(e){return ut({nonce:e,key:"custom-select-style",container:this.props.container})}),(0,u.A)((0,zt.A)(e),"createEmotionCache",qt(e.createEmotionCacheCustom)),e}return(0,r.A)(o)}(Nr),Xr=function(e){(0,a.A)(o,e);var t=Wr(o);function o(e){var r;return(0,n.A)(this,o),r=t.call(this,e),(0,u.A)((0,zt.A)(r),"fetchVideos",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return fetch(prestoPlayer.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams({action:"presto_fetch_videos",search:e,_wpnonce:prestoPlayer.nonce})}).then(function(e){return e.json()}).then(function(e){return e.data||[]})}),(0,u.A)((0,zt.A)(r),"fetchVideo",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?fetch("/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams({action:"presto_fetch_videos",post_id:e})}).then(function(e){return e.json()}).then(function(e){return e.data||[]}):[]}),(0,u.A)((0,zt.A)(r),"loadVideos",function(){var e=(0,d.A)(m().mark(function e(t){var n,o,a,i;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=Br({searchTerm:"",postId:""},t),e.next=3,Promise.all([r.fetchVideo(t.postId),r.fetchVideos(t.searchTerm)]);case 3:return n=e.sent,o=(0,f.A)(n,2),a=o[0],i=o[1],a[0]&&!i.find(function(e){return e.ID===a[0].ID})&&i.push(a[0]),i=i.map(function(e){return{label:e.post_title||qr("Untitled","presto-player"),value:e.ID}}),r.setState({videos:i}),e.abrupt("return",i);case 11:case"end":return e.stop()}},e)}));return function(_x){return e.apply(this,arguments)}}()),(0,u.A)((0,zt.A)(r),"_onChange",function(e){r.props._onChange(r.props.name,e.value)}),(0,u.A)((0,zt.A)(r),"_onEditVideoClick",function(){var e=r.props.value;e&&window.open("/wp-admin/post.php?post=".concat(e,"&action=edit"),"_blank").focus()}),(0,u.A)((0,zt.A)(r),"_onCreateVideoClick",function(){window.open("/wp-admin/post-new.php?post_type=pp_video_block","_blank").focus()}),(0,u.A)((0,zt.A)(r),"currentVideoLabel",function(){if(!r.state.videos)return"";var e=(r.state.videos||[]).find(function(e){return e.value===parseInt(r.props.value)});return e?e.label:""}),r.state={videos:[]},r.debouncedLoadVideos=Ut()(function(e){return r.loadVideos({searchTerm:e})},500,{leading:!0}),r}return(0,r.A)(o,[{key:"render",value:function(){var e=this;return Tt("div",{className:"presto-player-divi-editor"},Tt("ul",{className:"presto-player-divi-editor__inputs"},Tt("li",null,Tt(Yr,{container:window.parent.document.body},Tt(Hr,{id:"prpd_video_selector-".concat(this.props.name),className:"prpd_video_selector",classNamePrefix:"prpd_video_select",cacheOptions:!0,defaultOptions:!0,name:this.props.name,value:{value:this.props.value,label:this.currentVideoLabel()},onChange:this._onChange,loadOptions:function(t){return e.debouncedLoadVideos(t)}}))),Tt("li",null,Tt("label",null,qr("Video Options","presto-player")),Tt("button",{type:"button",onClick:this._onEditVideoClick},qr("Edit Video","presto-player"))),Tt("li",null,Tt("label",null,qr("New Video","presto-player")),Tt("button",{type:"button",onClick:this._onCreateVideoClick},qr("Create Video","presto-player")))))}}]),o}(l.Component);(0,u.A)(Xr,"slug","prpl_video_selector");const Kr=[Xr];t()(window).on("et_builder_api_ready",function(e,t){t.registerModules(Ft),t.registerModalFields(Kr)})})()})();