var __webpack_modules__={2(e){e.exports=window.Wistia.Preact},3(e,t,n){n.d(t,{elemAppend:()=>d,elemBind:()=>k,elemCancelFullscreen:()=>E,elemFromObject:()=>f,elemHeight:()=>w,elemInDom:()=>_,elemRemove:()=>h,elemRequestFullscreen:()=>S,elemStyle:()=>v,elemUnbind:()=>P,elemWidth:()=>b,inUserEventContext:()=>x,safeRequestAnimationFrame:()=>C});var r,i=n(4),o=(n(6),n(8),n(9)),a=n(12),u=(n(21),n(22),n(28)),s=n(16),c=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},l=(s.Wistia,(0,o.cachedDetect)()),f=function(e){if((0,i.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(f(e[n]));return t}var r=e.tagName||"div",o=e.childNodes||[];(0,i.isArray)(o)||(o=[o]);var a=document.createElement(r);for(var u in e)if(c(e,u)){var s=e[u];if("childNodes"!==u&&"tagName"!==u&&"ref"!==u){var l=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"===u)if((0,i.isObject)(s))for(var h in s)a.style[h]=s[h];else for(var v=s.split(";"),p=0;p<v.length;p++){var g=v[p].split(/\s*:\s*/),m=g[0],y=g[1];m&&y&&(a.style[m]=y)}else if("events"===u)for(var b in s){var w=s[b];k(a,b,w)}else"className"===u||"class"===u?a.className=s:"innerHTML"===u?a.innerHTML=s:"innerText"===u?a.innerText=s:null!=s&&"function"==typeof s.toString&&a.setAttribute(l,s.toString())}}for(var _=0;_<o.length;_++){var P=o[_];if((0,i.isObject)(P)){var T=f(P);d(a,T)}else{var S=document.createTextNode(P.toString());d(a,S)}}return"function"==typeof e.ref&&e.ref(a),a},d=function(e,t){if((0,i.isArray)(t))for(var n=0;n<t.length;n++)d(e,t[n]);else e.tagName.includes("-")?e.shadowRoot.appendChild(t,{wistiaGridCaller:!0}):e.appendChild(t,{wistiaGridCaller:!0})},h=function(e){var t;if((0,i.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var n=0;n<e.length;n++)h(e[n]);else null==e||1!==e.nodeType&&3!==e.nodeType||!(t=e.parentNode)||(t.removeChild(e),e=null)},v=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if((0,i.isArray)(e)||window.NodeList&&e instanceof NodeList){for(var o=[],u=0;u<e.length;u++){var s=e[u];1===s.nodeType&&o.push(v.apply(void 0,[s].concat(n)))}return o}if(2===n.length){var c=n[0],l=n[1];e.style[c]=l}else if(1===n.length)if("string"==typeof n[0]){var f=n[0];try{return e.currentStyle?e.currentStyle[f]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(f):null}catch(e){a.wlog.notice(e)}}else{var d=m(n[0]);for(var h in d){var p=d[h];e.style[h]=p}}else a.wlog.apply(void 0,["Unexpected args",e].concat(n))},p={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},g=["webkit","moz","o","ms"],m=function(e){if(l.chrome)return e;var t={};for(var n in e){var r=e[n];if(t[n]=r,p[n])for(var i=g,o=0;o<i.length;o++){var a=i[o]+n.charAt(0).toUpperCase()+n.slice(1);n[a]||(t[a]=r)}}return t},y=function(e,t){if(!window.getComputedStyle)return null;var n=window.getComputedStyle(e,null);return null==n?null:null!=t?n[t]:n},b=function(e){if(e===window)return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth;if(e===document){var t=document.body,n=document.documentElement;return Math.max(t.scrollWidth,t.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}var r;return(r=y(e,"width"))&&null!=r?parseFloat(r):e.currentStyle?e.offsetWidth:-1},w=function(e){if(e===window)return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight;if(e===document){var t=document.body,n=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}var r;return(r=y(e,"height"))&&null!=r?parseFloat(r):e.currentStyle?e.offsetHeight:-1},_=function(e){for(;e;){if(e===document)return!0;e=e.parentNode||e.getRootNode().host}return!1},k=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=function(r){(r=r||window.event).pageX||r.pageY||!r.clientX&&!r.clientY||(r.pageX=r.clientX+O(),r.pageY=r.clientY+A()),r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),null==r.which&&(r.which=null!=r.charCode?r.charCode:r.keyCode),null==r.which&&null!=r.button&&(1&r.button?r.which=1:2&r.button?r.which=3:4&r.button?r.which=2:r.which=0),r.target||r.srcElement&&(r.target=r.srcElement),r.target&&3===r.target.nodeType&&(r.target=r.target.parentNode);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var u=n.apply(r.target,[r].concat(o));return u===P&&P(e,t,n),u};s.Wistia._elemBind=s.Wistia._elemBind||{};var o=T(e,t,n);return s.Wistia._elemBind[o]=i,i.elem=e,i.event=t,e.addEventListener(t,i,r),function(){P(e,t,n,r)}},P=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null!=e&&null!=e._wistiaElemId&&null!=n&&n._wistiaBindId){var i=T(e,t,n),o=s.Wistia._elemBind[i];return o&&(e.removeEventListener(t,o,r),o.elem=null,o.event=null),delete s.Wistia._elemBind[i]}},T=function(e,t,n){return e._wistiaElemId=e._wistiaElemId||(0,u.seqId)("wistia_elem_"),n._wistiaBindId=n._wistiaBindId||(0,u.seqId)("wistia_bind_"),"".concat(e._wistiaElemId,".").concat(t,".").concat(n._wistiaBindId)},S=function(e){try{if(e.requestFullscreen&&document.fullscreenEnabled)return e.requestFullscreen().catch((function(e){return a.wlog.notice("requestFullscreen failed",e),Promise.reject(e)}));if(e.webkitEnterFullscreen)return e.webkitEnterFullscreen(),Promise.resolve()}catch(e){return a.wlog.notice("requestFullscreen failed",e),Promise.reject(e)}return a.wlog.notice("no requestFullscreen functionality detected"),Promise.resolve()},E=function(e){return document.exitFullscreen?document.exitFullscreen():e&&e.webkitExitFullscreen?new Promise((function(t){e.webkitExitFullscreen(),t()})):(a.wlog.notice("no cancelFullscreen functionality detected"),Promise.resolve())},A=function(e){var t=document.body,n=document.documentElement;if(null==e)return n&&n.scrollTop||t&&t.scrollTop||0;t&&(t.scrollTop=e),n&&(n.scrollTop=e)},O=function(e){var t=document.body,n=document.documentElement;if(null==e)return n&&n.scrollLeft||t&&t.scrollLeft||0;t&&(t.scrollLeft=e),n&&(n.scrollLeft=e)},C=function(e){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)})(e)},x=function(){return!!r};["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"].forEach((function(e){k(document,e,(function(e){r=e,Date.now(),setTimeout((function(){r===e&&(r=void 0)}),0)}),!l.passiveSupported||{capture:!0,passive:!0})}))},4(e,t,n){n.d(t,{assign:()=>r.assign,cast:()=>v,clone:()=>l,eachLeaf:()=>M,except:()=>y,filter:()=>k,getDeep:()=>f,isArray:()=>T,isObject:()=>E,merge:()=>a,only:()=>m,select:()=>b,setAndPreserveUndefined:()=>d,sort:()=>_});var r=n(5),i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},o=Array.prototype.slice,a=function(e){if(0==(arguments.length<=1?0:arguments.length-1))return e;for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++)u(e,t+1<1||arguments.length<=t+1?void 0:arguments[t+1]);return e},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c;if(T(t)){T(e)||(e=[]);for(var o=0;o<t.length;o++){var a=t[o];null==e[o]&&null!=a&&(T(a)?e[o]=[]:E(a)&&(e[o]={}));var l=u(e[o],a,n);r(t,o,l)?delete e[o]:e[o]=l}return n(e)}if(E(t)){for(var f in t)if(i(t,f)&&(i(e,f)||null==e[f])){var d=t[f];T(d)?(T(e[f])||(e[f]=[]),u(e[f],d,n),e[f]=n(e[f])):E(d)?(E(e[f])||(e[f]={}),u(e[f],d,n),e[f]=n(e[f])):null==e?(e={},r(t,f,d)||(e[f]=n(d))):r(t,f,d)?delete e[f]:e[f]=n(d)}return n(e)}return n(t)},s=function(e){return e},c=function(e,t,n){return null==n},l=function(e,t){return T(e)?u([],e,t):u({},e,t)},f=function(e,t,n){t="string"==typeof t?t.split("."):o.call(t);for(var r,a=e;null!=e&&t.length;){var u=t.shift();void 0!==e[u]&&(E(e[u])||T(e[u]))||!n||(0===u?(e=a[r]=[])[u]={}:e[u]={}),a=e,r=u,e=i(e,u)?e[u]:void 0}return e},d=function(e,t,n){return h(e,t,n,!1)},h=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=(t="string"==typeof t?t.split("."):o.call(t)).pop();null!=(e=f(e,t,!0))&&(E(e)||T(e))&&null!=i&&(r&&null==n?delete e[i]:e[i]=n)},v=function(e){return null==e?e:E(e)||T(e)?g(e):p("".concat(e),e)},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return/^-?[1-9]\d*?$/.test(e)?parseInt(e,10):"0"===e||"-0"===e?0:/^-?\d*\.\d+$/.test(e)?parseFloat(e):!!/^true$/i.test(e)||!/^false$/i.test(e)&&t},g=function(e){return u(e,e,(function(e){return"string"==typeof e?p(e):e}),(function(){return!1}))},m=function(e,t){for(var n={},r={},i=0;i<t.length;i++)r[t[i]]=!0;for(var o in e)r[o]&&(n[o]=e[o]);return n},y=function(e,t){for(var n={},r={},i=0;i<t.length;i++)r[t[i]]=!0;for(var o in e)r[o]||(n[o]=e[o]);return n},b=function(e,t){for(var n=[],r="function"==typeof t,i=r?t:null,o=0;o<e.length;o++){var a=e[o];if(r)i(a)&&n.push(a);else{var u=!0;for(var s in t){var c=t[s];if(c instanceof Array){if(!a[s]||a[s]<c[0]||a[s]>c[1]){u=!1;break}}else if(c instanceof RegExp){if(!c.test(a[s])){u=!1;break}}else if(c instanceof w){for(var l=!1,f=0;f<c.values.length;f++){var d=c.values[f];if(a[s]===d){l=!0;break}}if(!l){u=!1;break}}else if("function"==typeof c){if(null==a[s]||!c(a[s])){u=!1;break}}else if(a[s]!==c){u=!1;break}}u&&n.push(a)}}return n},w=function(e){var t=this;return t.values=e,t},_=function(e,t){var n="function"==typeof t,r=n?t:null,i=o.call(e);return n?i.sort(r):i.sort((function(e,n){var r;r=t instanceof Array?l(t):t.split(/\s*,\s*/);for(var i=0;0===i&&r.length>0;){var o=r.shift().split(/\s+/),a=o[0],u=o[1];if(u="desc"===u?-1:1,e[a]<n[a]){i=-1*u;break}if(e[a]!==n[a]){i=1*u;break}i=0}return i})),i},k=function(e,t,n){for(var r=void 0===n?undefined:n,i=[],o=0;o<e.length;o++)t.call(r,e[o],o,e)&&i.push(e[o]);return i},P=/^\s*function Array()/,T=function(e){return null!=e&&e.push&&P.test(e.constructor)},S=/^\s*function Object()/,E=function(e){return null!=e&&"object"==typeof e&&S.test(e.constructor)},A=/^\s*function RegExp()/,O=/^string|number|boolean|function$/i,C=function(e){return null!=e&&(O.test(typeof e)||function(e){return null!=e&&A.test(e.constructor)}(e))},x=function(e,t,n,r,a){if(null==n&&(n=[]),C(e))t(e,n,r,a);else if(E(e)||T(e)){for(var u in t(e,n,r,a),e)if(i(e,u)){var s=o.call(n);s.push(u),x(e[u],t,s,e,u)}}else t(e,n,r,a)},M=function(e,t){x(e,(function(e,n,r,i){T(e)||E(e)||t(e,n,r,i)}))}},5(e,t,n){n.d(t,{assign:()=>i});var r=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Object.assign)return Object.assign.apply(Object,[e].concat(n));for(var i=0;i<n.length;i++)o(e,n[i]);return e},o=function(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return e}},6(e,t,n){n(7)},7(e,t,n){n.d(t,{poll:()=>r});var r=function(e,t,n,r,i){var o=null,a=(new Date).getTime(),u=function(){(new Date).getTime()-a>r?"function"==typeof i&&i():e()?t():(clearTimeout(o),o=setTimeout(u,n))};o=setTimeout(u,1)}},8(e,t,n){},9(e,t,n){n.d(t,{cachedDetect:()=>I});var r,i=n(10),o=n(11),a=navigator.userAgent,u=null,s=/(webkit)[ /]([^\s]+)/i,c=/OPR\/([^\s]+)/i,l=/(edge)\/(\d+(?:\.\d+)?)/i,f=/(mozilla)(?:.*? rv:([^\s)]+))?/i,d=/(android) ([^;]+)/i,h=/(iphone)/i,v=/(Windows Phone OS (\d+(?:\.\d+)?))/,p=/OS (\d+)_(\d+)/i,g=/(firefox)/i,m=/Mobile VR/i,y=/Version\/([^\s]+)/i,b=function(){return(_()[1]||"webkit").toLowerCase()},w=function(){return _()[2]},_=function(){var e;return(e=a.match(l))||(e=a.match(s))||(e=a.match(c))?e:e?(null!=document.documentMode&&(e[2]=document.documentMode),e):(e=a.match(f))||[]},k=function(){var e=a.match(d);return null!=e&&{version:e[2]}},P=function(){return h.test(a)},T=function(){return x()>0||k()||E()},S=function(){try{var e=matchMedia("(hover:hover)");if("not all"!==e.media)return e.matches}catch(e){}return!T()},E=function(){return/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1},A=function(){return s.test(a)&&!/chrome/i.test(a)&&!E()&&!P()},O=function(){return!(!/Chrome/.test(a)||!/Google Inc/.test(navigator.vendor))&&{version:C()}},C=function(){var e=a.match(/\bChrome\/([^\s]+)/);return e&&e[1]},x=function(){var e=a.match(p),t=a.match(y);return null!=e?parseFloat("".concat(e[1],".").concat(e[2])):null!=t&&t[1]&&E()?parseFloat(t[1]):0},M=function(){return l.test(a)},j=function(){return g.test(a)},B=function(){var e=document.createElement("video"),t=!1;try{if(e.canPlayType){var n='video/mp4; codecs="avc1.42E01E';(t={}).h264=!!e.canPlayType("".concat(n,'"'))||!!e.canPlayType("".concat(n,', mp4a.40.2"')),t.webm=!!e.canPlayType('video/webm; codecs="vp9, vorbis"'),t.nativeHls=!!e.canPlayType("application/vnd.apple.mpegURL")}}catch(e){t={ogg:!1,h264:!1,webm:!1,nativeHls:!1}}return t},R=function(){try{return"localStorage"in i.root&&null!=i.root.localStorage}catch(e){return!1}},W=["WebKit","Moz","O","Ms",""],L=function(){for(var e=0;e<W.length;e++){var t="".concat(W[e],"MutationObserver");if(i.root[t])return t}return null},F=function(){if(null!=r)return r;try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("test",null,e)}catch(e){r=!1}return r},D=function(){var e=O(),t=j(),n=M(),r=c.test(a),i=e&&w()>=32,o=e&&w()>=75&&k(),u=t&&w()>=65,s=t&&w()>=67&&k(),l=n&&w()>=18,f=r&&w()>=19;return i||o||u||s||l||f},I=function(){return u||(u=N())},N=function(){var e,t,n,r,u,s,c,l,f,d,h,p,g,y={browser:{version:w()},edge:M(),firefox:j(),gearvr:m.test(a),hdr:!(null===(p=(g=window).matchMedia)||void 0===p||!p.call(g,"(dynamic-range: high)").matches)||!!(screen.colorDepth&&screen.colorDepth>=30),hdrCodecs:{hevc:null!==(n=null===(r=window.MediaSource)||void 0===r||null===(u=r.isTypeSupported)||void 0===u?void 0:u.call(r,'video/mp4; codecs="hvc1.2.4.L153.B0"'))&&void 0!==n&&n,av1:null!==(s=null===(c=window.MediaSource)||void 0===c||null===(l=c.isTypeSupported)||void 0===l?void 0:l.call(c,'video/mp4; codecs="av01.0.08M.10.0.110.09.16.09"'))&&void 0!==s&&s,vp92:null!==(f=null===(d=window.MediaSource)||void 0===d||null===(h=d.isTypeSupported)||void 0===h?void 0:h.call(d,'video/mp4; codecs="vp09.02.10.10.01.09.16.09"'))&&void 0!==f&&f},android:k(),oldandroid:k()&&parseFloat(k().version)<4.1,iphone:P(),ipad:E(),safari:A(),chrome:O(),winphone:{version:v.test(a)[2]},ios:{version:x()},windows:/win/i.test(navigator.platform),mac:/mac/i.test(navigator.platform),retina:null!=i.root.devicePixelRatio&&i.root.devicePixelRatio>1,hoverIsNatural:S(),touchScreen:T(),video:B(),managedMediaSource:"ManagedMediaSource"in window&&"function"==typeof(null===(t=window.ManagedMediaSource)||void 0===t?void 0:t.isTypeSupported),mediaSource:i.root.MediaSource&&i.root.MediaSource.isTypeSupported("".concat('video/mp4; codecs="avc1.42E01E',', mp4a.40.2"')),nativeHls:(P()||E()||A())&&B().nativeHls,localstorage:R(),fullscreenEnabled:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,vulcanV2Support:(e=/webkit|mozilla|edge/.test(b()),!!(P()||E()||k())||Boolean(e&&B().h264&&Object.defineProperties)),mutationObserver:L(),callingPlayRequiresEventContext:x()>0||k()||A(),passiveSupported:F(),webp:D(),performanceMeasure:(0,o.hasPerformanceMeasureSupport)()};return y.browser[b()]=!0,y}},10(e,t,n){var r;n.d(t,{root:()=>i});try{(r=self).self!==r&&void 0!==r.self&&"undefined"!=typeof window&&(r=window)}catch(e){r="undefined"!=typeof globalThis?globalThis:window}var i=r},11(e,t,n){n.d(t,{hasPerformanceMeasureSupport:()=>r});var r=function(){var e=window.performance;return Boolean(e)&&Boolean(e.measure)}},12(e,t,n){n.d(t,{wlog:()=>g});var r=n(13),i=n(16);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(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.")}()}function a(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}var u={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},s=function(){},c=function(e){var t=this;null==e&&(e={});return t.error=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.log(0,n)},t.warn=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.log(1,n)},t.notice=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.log(1,n)},t.info=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.log(3,n)},t.debug=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.log(4,n)},t.ctx=e,t.ctx.initializedAt||t.reset(),t},l=c.prototype;l.reset=function(){this.ctx.level=0,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},l.setLevel=function(e){var t=this.logFunc(3);null!=u[e]?(this.ctx.level=u[e],t('Log level set to "'.concat(e,'" (').concat(u[e],")"))):t('Unknown log level "'.concat(e,'"'))},l.setGrep=function(e){this.ctx.grep=e},l.setGrepv=function(e){this.ctx.grepv=e},l.first1000LogLines=function(){return this.ctx.first1000LogLines},l.last1000LogLines=function(){return this.ctx.last1000LogLines},l.matchedGrep=function(e){var t=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],r=0;r<e.length;r++)try{var i=e[r];n.push(i.toString&&i.toString())}catch(e){n.push("")}var o=n.join(" "),a=!this.ctx.grep||o.match(this.ctx.grep),u=!this.ctx.grepv||!o.match(this.ctx.grepv);t=a&&u}else t=!0;return t},l.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},l.messagesToLogLine=function(e,t,n){var r,i=[e,t];i=i.concat(n);try{(r=i.join(" ")||"").length>200&&(r=r.slice(0,200))}catch(e){r="could not serialize"}return r},l.persistLine=function(e){this.ctx.first1000LogLines.length<1e3?this.ctx.first1000LogLines.push(e):(this.ctx.last1000LogLines.length>=1e3&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(e))},l.log=function(e,t){var n,i=e<=this.ctx.level,a=e<4,u=(i||a)&&this.matchedGrep(t);if(0===e&&(0,r.globalTrigger)("problem",{type:"error-logged",data:{messages:t}}),u&&(i||a)&&(n=this.now()),a&&u){var s=this.messagesToLogLine(e,n,t);this.persistLine(s)}if(i&&u){var c,l=this.logFunc(e);1===t.length&&(c=t[0])instanceof Error?(l(c.message),c.stack&&l(c.stack)):l.apply(void 0,o(t))}};var f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error.apply(console,t)},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn.apply(console,t)},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.info.apply(console,t)},v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug.apply(console,t)},p=function(e){console.log.apply(console,e)};l.logFunc=function(e){return null==e&&(e=this.level),console?(0===e?t=f:1===e?t=d:3===e?t=h:4===e&&(t=v),t||(t=p),"function"!=typeof t&&(this.noConsoleLog=!0,t=s),t):s;var t},l.maybePrefix=function(e,t){if(e){if("function"==typeof e)try{e=e()}catch(t){e='prefix err "'.concat(t.message,'"')}return e instanceof Array?e.concat(t):[e].concat(t)}return t},l.getPrefixedFunctions=function(e){var t=this;return{log:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.log(0,t.maybePrefix(e,r))},error:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.log(0,t.maybePrefix(e,r))},warn:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.log(1,t.maybePrefix(e,r))},notice:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.log(1,t.maybePrefix(e,r))},info:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.log(3,t.maybePrefix(e,r))},debug:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.log(4,t.maybePrefix(e,r))}}},i.Wistia&&null==i.Wistia.wlogCtx&&(i.Wistia.wlogCtx={});var g=new c(i.Wistia.wlogCtx)},13(e,t,n){n.d(t,{globalTrigger:()=>o});var r=n(14),i=n(16);(0,r.makeWbindable)(i.Wistia);i.Wistia.bind.bind(i.Wistia),i.Wistia.on.bind(i.Wistia),i.Wistia.off.bind(i.Wistia),i.Wistia.rebind.bind(i.Wistia);var o=i.Wistia.trigger.bind(i.Wistia);i.Wistia.unbind.bind(i.Wistia)},14(e,t,n){n.d(t,{makeWbindable:()=>a});var r=n(15),i=n(16),o=n(19);i.Wistia.bindable||(i.Wistia.EventShepherdManager||(i.Wistia.EventShepherdManager={}),i.Wistia.bindable={bind:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),this;if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=u(n);return void 0===i.Wistia.EventShepherdManager[a]&&(i.Wistia.EventShepherdManager[a]=new o.EventShepherd),i.Wistia.EventShepherdManager[a].addListener(e,n,t),this}if(t)return r.bind.call(this,e,t),this;i.Wistia.warn&&i.Wistia.warn(this.constructor.name,"bind","falsey value passed in as callback:",t)},unbind:function(e,t){if("crosstime"===e&&this.crossTime)return t?this.crossTime.removeBinding(arguments[1],arguments[2]):this.crossTime.removeAllBindings(),this;if("betweentimes"===e&&this.betweenTimes)return t?this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]):this.betweenTimes.removeAllBindings(),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=u(n);return void 0===i.Wistia.EventShepherdManager[a]||i.Wistia.EventShepherdManager[a].removeListener(e,n,t),this}return t?r.unbind.call(this,e,t):this._bindings&&(this._bindings[e]=[]),this._bindings&&this._bindings[e]&&!this._bindings[e].length&&(this._bindings[e]=null,delete this._bindings[e]),this},on:function(e,t){var n=arguments,a=this;if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),function(){a.crossTime.removeBinding(n[1],n[2])};if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),function(){a.betweenTimes.removeBinding(n[1],n[2],n[3])};var s=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&s){var c=u(s);return void 0===i.Wistia.EventShepherdManager[c]&&(i.Wistia.EventShepherdManager[c]=new o.EventShepherd(s)),i.Wistia.EventShepherdManager[c].addListener(e,s,t),function(){i.Wistia.EventShepherdManager[c].removeListener(e,s,t)}}return r.bind.call(this,e,t)},off:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.removeBinding(arguments[1],arguments[2]);if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]);var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=u(n);return void 0===i.Wistia.EventShepherdManager[a]?function(){}:i.Wistia.EventShepherdManager[a].removeListener(e,n,t)}return r.unbind.call(this,e,t)},rebind:function(e,t){return this.unbind(e,t),this.bind(e,t),this},trigger:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(t=r.trigger).call.apply(t,[this,e].concat(i)),this},bindNamed:function(){return r.bindNamed.apply(this,arguments)},unbindNamed:function(){return r.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return r.unbindAllInNamespace.apply(this,arguments)}});var a=function(e){for(var t in i.Wistia.bindable){var n=i.Wistia.bindable[t];e[t]||(e[t]=n)}},u=function(e){return null!=e&&e.mediaId?e.mediaId:null!=e&&e.id?e.id:void 0}},15(e,t,n){n.d(t,{bind:()=>s,bindNamed:()=>v,bindify:()=>y,trigger:()=>f,unbind:()=>c,unbindAllInNamespace:()=>g,unbindNamed:()=>p});var r=n(16),i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(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.")}()}function a(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}var u=Array.prototype.slice,s=function(e,t){var n=this;return n._bindings||(n._bindings={}),n._bindings[e]||(n._bindings[e]=[]),n._bindings[e].push(t),function(){n.unbind(e,t)}},c=function(e,t){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var n=[],r=0;r<this._bindings[e].length;r++){var i=this._bindings[e][r];i!==t&&n.push(i)}this._bindings[e]=n},l=function(e,t){return this.unbind(e,t),this.bind(e,t),{event:e,fn:t}},f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this._bindings&&null!=this._bindings.all&&d.apply(this,["all",e].concat(n)),d.apply(this,[e].concat(n))},d=function(e){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var t,n=u.call(arguments,1),i=o(this._bindings[e]),a=0;a<i.length;a++){var s=i[a];try{s.apply(this,n)===this.unbind&&(null==t&&(t=[]),t.push({event:e,fn:s}))}catch(e){if(this._throwTriggerErrors)throw e;r.Wistia.error&&r.Wistia.error(e)}}if(t)for(var c=0;c<t.length;c++){var l=t[c];this.unbind(l.event,l.fn)}return this},h=function(e,t){null==e._namedBindings&&(e._namedBindings={}),null==e._namedBindings[t]&&(e._namedBindings[t]={})},v=function(e,t,n,r){return this.unbindNamed(e,t),function(e,t,n,r,i){h(e,t),e._namedBindings[t][n]={event:r,fn:i}}(this,e,t,n,r),this.bind(n,r),function(){this.unbindNamed(e,t)}},p=function(e,t){h(this,e);var n=function(e,t,n){return h(e,t),e._namedBindings[t][n]}(this,e,t);if(n){var r=n.event,i=n.fn;this.unbind(r,i)}var o=this._namedBindings;return delete o[e][t],m(o[e])&&delete o[e],this},g=function(e){var t=this._namedBindings&&this._namedBindings[e];if(null==t)return this;for(var n in t)i(t,n)&&this.unbindNamed(e,n)},m=function(e){for(var t in e)if(i(e,t))return!1;return!0},y=function(e){return e.bind=s,e.unbind=c,e.on=s,e.off=c,e.rebind=l,e.trigger=f,e.bindNamed=v,e.unbindNamed=p,e.unbindAllInNamespace=g,e};y(function(){}.prototype)},16(e,t,n){n.d(t,{Wistia:()=>Q});var r,i,o,a,u,s,c,l,f,d,h,v,p,g,m,y,b,w,_,k,P,T,S,E,A,O,C,x,M,j,B,R,W,L,F,D,I,N=n(2),V=n(17),H=n(18),q=n(10);function U(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null!==(r=q.root.Wistia)&&void 0!==r||(q.root.Wistia={}),null!==(o=(i=q.root.Wistia).Preact)&&void 0!==o||(i.Preact=z(z({},N),{},{hooks:V,compat:H})),null!==(u=(a=q.root.Wistia)._destructors)&&void 0!==u||(a._destructors={}),null!==(c=(s=q.root.Wistia)._initializers)&&void 0!==c||(s._initializers={}),null!==(f=(l=q.root.Wistia)._remoteData)&&void 0!==f||(l._remoteData=new Map),null!==(h=(d=q.root.Wistia).api)&&void 0!==h||(d.api=function(){return console.error("Accessed Wistia.api() before it was initialized"),null}),null!==(p=(v=q.root.Wistia).defineControl)&&void 0!==p||(v.defineControl=function(){return console.error("Accessed Wistia.defineControl() before it was initialized"),null}),null!==(m=(g=q.root.Wistia).EventShepherdManager)&&void 0!==m||(g.EventShepherdManager={}),null!==(b=(y=q.root.Wistia).mixin)&&void 0!==b||(y.mixin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){(function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})(t,n)&&(e[n]=t[n])}))}),null!==(_=(w=q.root.Wistia).playlistMethods)&&void 0!==_||(w.playlistMethods=new Map),null!==(P=(k=q.root.Wistia).PublicApi)&&void 0!==P||(k.PublicApi=null),null!==(S=(T=q.root.Wistia).uncacheMedia)&&void 0!==S||(T.uncacheMedia=function(){return console.error("Accessed Wistia.uncacheMedia() before it was initialized"),null}),null!==(A=(E=q.root.Wistia).VisitorKey)&&void 0!==A||(E.VisitorKey=null),null!==(C=(O=q.root.Wistia).visitorKey)&&void 0!==C||(O.visitorKey=null),null!==(M=(x=q.root.Wistia).wistia)&&void 0!==M||(x.wistia=void 0),null!==(B=(j=q.root.Wistia)._liveStreamEventDataPromises)&&void 0!==B||(j._liveStreamEventDataPromises={}),null!==(W=(R=q.root.Wistia)._mediaDataPromises)&&void 0!==W||(R._mediaDataPromises={}),null!==(F=(L=q.root.Wistia)._liveStreamPollingPromises)&&void 0!==F||(L._liveStreamPollingPromises={}),null!==(I=(D=q.root.Wistia).first)&&void 0!==I||(D.first=function(){var e;return null!==(e=q.root.Wistia.api())&&void 0!==e?e:document.querySelector("wistia-player")});var Q=q.root.Wistia},17(e){e.exports=window.Wistia.Preact.hooks},18(e){e.exports=window.Wistia.Preact.compat},19(e,t,n){function r(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,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{EventShepherd:()=>u,convertedEventNames:()=>o});var o={mutechange:n(20).MUTE_CHANGE_EVENT},a={mutechange:function(e){return e.isMuted}},u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,r={},(n=i(n="convertedEventsMap"))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},(t=[{key:"addListener",value:function(e,t,n){var r,i,u,s=null!==(r=o[e])&&void 0!==r?r:e;null!==(u=(i=this.convertedEventsMap)[s])&&void 0!==u||(i[s]=[]);var c=function(t){if(a[e]){var r=a[e](t.detail);n(r)}else n()};this.convertedEventsMap[s].push({givenCallback:n,eventListenerCallback:c}),t.addEventListener(s,c)}},{key:"removeAllListeners",value:function(e){var t=this;Object.keys(this.convertedEventsMap).forEach((function(n){var r;null===(r=t.convertedEventsMap[n])||void 0===r||r.forEach((function(t){e.removeEventListener(n,t.eventListenerCallback)})),t.convertedEventsMap[n]=[]}))}},{key:"removeListener",value:function(e,t,n){var r,i=this,a=null!==(r=o[e])&&void 0!==r?r:e,u=[];n?(t.removeEventListener(a,n),this.convertedEventsMap[a]&&(this.convertedEventsMap[a].forEach((function(e,r){e.givenCallback===n&&(u.push(r),t.removeEventListener(a,e.eventListenerCallback))})),u.forEach((function(e){i.convertedEventsMap[a]&&i.convertedEventsMap[a].splice(e,1)})))):this.convertedEventsMap[a]=[]}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},20(e,t,n){n.d(t,{MUTE_CHANGE_EVENT:()=>r});var r="mute-change"},21(e,t,n){var r;n.d(t,{elemOffset:()=>o});var i=function(){if(null!=r)return r;var e=document.createElement("div");return e.style.paddingLeft=e.style.width="1px",document.body.appendChild(e),r=2===e.offsetWidth,document.body.removeChild(e),r},o=function(e){var t,n,r=document.body,o=document.defaultView,u=document.documentElement,s=e.getBoundingClientRect(),c=u.clientTop||r.clientTop||0,l=u.clientLeft||r.clientLeft||0;t=o&&null!=o.pageYOffset?o.pageYOffset:i()&&u&&null!=u.scrollTop?u.scrollTop:r.scrollTop,n=o&&null!=o.pageXOffset?o.pageXOffset:i()&&u&&null!=u.scrollLeft?u.scrollLeft:r.scrollLeft;var f=a(e);return{height:s.height*f,top:s.top*f+t-c,left:s.left*f+n-l,width:s.width*f,zoom:f}},a=function(e){return e&&e!==document.documentElement?a(e.parentElement)*(getComputedStyle(e).zoom||1):1}},22(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{execScriptTags:()=>execScriptTags,getScriptTags:()=>getScriptTags,removeScriptTags:()=>removeScriptTags});var utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(23),getScriptTags=function(e){return e.match(/<script.*?src[^>]*>\s*<\/script>|<script.*?>[\s\S]+?<\/script>/gi)||[]},scriptTagsToRunScriptsInput=function scriptTagsToRunScriptsInput(scriptTags){if(!scriptTags)return[];scriptTags instanceof Array||(scriptTags=getScriptTags(scriptTags));for(var hashes=[],_loop=function _loop(){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);if(matches&&(matches=matches[0].match(/src="([^"]+)"/i),matches&&(hash.src=matches[1],hash.async=/async/i.test(scriptTag.replace(hash.src,"")))),!matches&&(matches=scriptTag.match(/<script>([\s\S]+?)<\/script>/i),matches)){var src=matches[1];hash.fn=function(){return eval(src)}}hashes.push(hash)},i=0;i<scriptTags.length;i++)_loop();return hashes},execScriptTags=function(e,t){if(!e)return null;var n=scriptTagsToRunScriptsInput(e);return(0,utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__.runScripts)(n).then(t)},removeScriptTags=function(e){return e.replace(/<script.*?src[^>]*>\s*<\/script>|<script>[\s\S]+?<\/script>/g,"")}},23(e,t,n){n.d(t,{runScripts:()=>l});var r=n(12),i=n(4),o=n(24);function a(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 u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementsByTagName("script"),r=0;r<n.length;r++){var i=n[r],o=i.getAttribute("src")||"";if(t.ignoreQueryParams){var a=o.split("?");o=a[0]}if(!t.scriptRegex&&t.ignoreProtocol&&(o=o.replace(/^https?:/,""),e=e.replace(/^https?:/,"")),t.scriptRegex&&t.scriptRegex.test(o))return i;if(t.testStartsWith&&0===o.indexOf(e))return i;if(o===e)return i}return null},c=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==r&&(r=8e3),null==i&&(i={}),new Promise((function(a){!0===i.once&&(t=s(e))&&(n=!0),i.once&&n?t.readyState&&!/loaded|complete/.test(t.readyState)||setTimeout((function(){a()}),1):(0,o.runScript)(e,r).then(a).catch((function(e){a(e),setTimeout((function(){console.error(e)}),1)}))}))},l=function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e=n[0]instanceof Array?n[0]:n,e=f(e);var o=[],s=[],l=[];return e.forEach((function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),n=new Promise((function(e){t.resolve=e}));t.promise=n,l.push(t.promise),e.async?o.push(t):s.push(t)})),s.reduce((function(e,t){if(t.fn)try{t.fn()}catch(e){r.wlog.error(e)}finally{t.resolve()}else t.src&&c(t.src,null,t).then(t.resolve);return e.then(t.promise)}),Promise.resolve()),setTimeout((function(){o.forEach((function(e){if(e.fn)try{e.fn()}catch(e){r.wlog.error(e)}finally{e.resolve()}else e.src&&c(e.src,null,e).then(e.resolve)}))}),1),Promise.all(l)},f=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"string"==typeof r?t.push({src:r,async:!1}):(0,i.isObject)(r)?t.push(r):t.push({fn:r,async:!1})}return t}},24(e,t,n){n.d(t,{runScript:()=>i});var r=n(25),i=function(e,t){var n=r.TAGGED_VERSION;return new Promise((function(r,i){var o;null==t&&(t=8e3),(o=document.createElement("script")).src=e,o.async=!0,o.type="text/javascript",/https?:\/\/fast\.wistia\./.test(o.src)&&""!==n&&n.length>0&&(o.src="".concat(o.src,"@").concat(n));var a=null,u=!1,s=function(){o.onerror=o.onreadystatechange=o.onload=null,clearTimeout(a),clearTimeout(l),a=setTimeout((function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),500)},c=function(){var e=o.readyState;u||e&&!/loaded|complete/.test(e)||(u=!0,setTimeout((function(){r(),s()}),1))},l=setTimeout((function(){u=!0,s(),i(new Error("timeout"))}),t);o.onerror=function(e){u=!0,s(),i(e)},o.onreadystatechange=c,o.onload=c,(document.body||document.head).appendChild(o)}))}},25(e,t,n){n.d(t,{EMBED_HOST:()=>u,PROD_EMBED_HOST:()=>l,PROD_FASTLY_SSL_HOST:()=>d,PROD_FAST_HOSTNAME_COM:()=>c,PROD_FAST_HOSTNAME_NET:()=>s,PROD_SSL_EMBED_HOST:()=>f,SSL_EMBED_HOST:()=>h,TAGGED_VERSION:()=>v,deliveryHost:()=>g,eV1HostWithPort:()=>k,eV1Protocol:()=>P});var r=n(10),i=n(26),o=n(27),a=((0,o.appHostname)("app"),(0,o.appHostname)("fast-protected"),(0,o.appHostname)("fast")),u="embed.wistia.com",s="fast.wistia.net",c="fast.wistia.com",l="embed.wistia.com",f="embed-ssl.wistia.com",d="embed-fastly.wistia.com",h="embed-ssl.wistia.com",v="",p="undefined"!=typeof window&&r.root===window&&r.root.location?r.root.location.protocol:"https:",g=function(){return function(e,t,n){return"https:"===e?t:n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,h,u)},m=function(){var e=(0,o.getSubdomainSuffixHostname)("fast");return e||null},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(e)return e;var t=m();return t||a},b=function(){var e=m();if(e)return e;return"fast.".concat("wistia.net")},w=function(){for(var e=document.getElementsByTagName("script"),t=0;t<e.length;t++){var n=e[t];if(n.src){var r=new i.Url(n.src),o=/\/assets\/external\/E-v1?\.js$/.test(r.rawPath),a=r.host===y()||r.host===b()||"fast-canary.wistia.net"===r.host,u="https:"===location.protocol&&"https:"===r.protocol,s=""===r.protocol||null==r.protocol,c=u||s||"http:"===location.protocol,l=!n.readyState||/loaded|complete/.test(n.readyState);if(o&&a&&c&&l)return r}}return new i.Url("".concat((0,i.proto)(),"//").concat(b(),"/E-v1.js"))}(),_=function(){return w.host},k=function(){return w.port?"".concat(_(),":").concat(w.port):_()},P=function(){return w.protocol},T=[].concat(["wistia.net","wistia.com"],["wistia.mx","wistia.dev","wistia.tech","wistia.am","wistia.se","wistia.io","wistia.st"]);new RegExp("(".concat(T.map((function(e){return"\\.".concat(e.replace(".","\\."))})).join("|"),")$"))},26(e,t,n){n.d(t,{Url:()=>l,proto:()=>o});var r=n(4),i=n(12),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;return/^http:\/\//.test(e)?"http:":"https:"},a=function(e){if(null==e)return e;var t;try{t=decodeURIComponent(e)}catch(n){setTimeout((function(){i.wlog.notice(n)}),50),t=e}return t},u=function(e){for(var t=e[0],n=1;n<e.length;n++)t+="[".concat(e[n],"]");return t},s=function(e){return e.match(/([\w\-_]+)/g)},c=["protocol","host","port","params","path"],l=function(e){var t=this;t.params={},t.path=[],t.host="",t.rawPath="","object"==typeof e?t.fromOptions(e):e&&t.fromRaw(e)},f=l.prototype;f.fromOptions=function(e){for(var t=0;t<c.length;t++){var n=c[t];null!=e[n]&&(this[n]=e[n])}return this},f.fromRaw=function(e){var t;return this.rawUrl=e,(t=e.match(/^((?:https?:)|(?:file:)|(?:ftp:))?\/\//))&&(this.protocol=t[1]||void 0),(t=e.match(/\/\/([^:?#/]*)/))&&(this.host=t[1]||void 0),(t=e.match(/\/\/.*?(\/[^?#$]+)/)||e.match(/(^\/[^/][^?#$]+)/))&&this.setPath(t[1]),(t=e.match(/:(\d+)/))&&(this.port=parseInt(t[1],10)),(t=e.match(/\?([^#]+)/))&&(this.rawParams=t[1],this.params=function(e){var t={};if(!e)return t;for(var n=e.split("&"),o=function(){var e=n[u].split("="),o=e[0],c=e[1];try{o=s(decodeURIComponent(o))||""}catch(e){setTimeout((function(){i.wlog.notice(e)}),50),o=""}(0,r.cast)(o);var l=(0,r.getDeep)(t,o);if(null!=l)if((0,r.isArray)(l))l.push(a(c));else{var f=[l];f.push(a(c)),(0,r.setAndPreserveUndefined)(t,o,f)}else(0,r.setAndPreserveUndefined)(t,o,a(c))},u=0;u<n.length;u++)o();return t}(this.rawParams)),(t=e.match(/#(.*)$/))&&(this.anchor=t[1]),this},f.clone=function(){return new l({protocol:this.protocol,host:this.host,port:this.port,path:(0,r.clone)(this.path),params:(0,r.clone)(this.params),anchor:this.anchor})},f.ext=function(e){if(null!=e){var t=this.ext(),n=this.path.length-1,r=new RegExp("\\.".concat(t),"g");return t&&(this.path[n]="".concat(this.path[n].replace(r,""))),this.path[n]="".concat(this.path[n],".").concat(e)}var i=this.path[this.path.length-1].match(/\.(.*)$/);return null!=i&&i[1]||null},f.isRelative=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,t=this.protocol,n=this.host;return!(null!=t&&""!==t&&t!==e.protocol||n&&n!==e.hostname)},f.toString=function(){return this.isRelative()?this.relative():this.absolute()},f.absolute=function(){var e="";null!=this.protocol&&(e=this.protocol);var t="";return null!=this.port&&(t=":".concat(this.port)),"".concat(e,"//").concat(this.host||location.host).concat(t).concat(this.relative())},f.relative=function(){var e,t="";this.path.length>0&&("string"==typeof(e=this.path)&&(e=e.split("/")),t=null==e?"":"/".concat(e.join("/")),this._hasTrailingSlash&&(t+="/"));var n,i,o="?".concat((n=this.params,i=[],(0,r.eachLeaf)(n,(function(e,t){null!=e?i.push("".concat(encodeURIComponent(u(t)),"=").concat(encodeURIComponent(e))):i.push(encodeURIComponent(u(t)))})),i.join("&")));return 1===o.length&&(o=""),"".concat(t).concat(o).concat(this.relativeAnchor())},f.authority=function(){var e=null!=this.port?":".concat(this.port):"";return"".concat(this.host).concat(e)},f.relativeProtocol=function(){var e="";return null!=this.port&&(e=":".concat(this.port)),"//".concat(this.host).concat(e).concat(this.relative())},f.relativeAnchor=function(){var e="";return null!=this.anchor&&(e="#".concat(this.anchor)),"".concat(e)},f.setPath=function(e){this.rawPath=e,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=function(e){var t=[];if(null==e)return t;for(var n=e.split(/\/+/),r=0;r<n.length;r++){var i=n[r];null!=i&&""!==i&&t.push(i)}return t}(this.rawPath)},l.create=function(e){return new l(e)};l.create;l.parse=function(e){return new l(e)};l.parse},27(e,t,n){n.d(t,{appHostname:()=>a,getSubdomainSuffixHostname:()=>u});var r=/([a-z0-9-]+)-cde-([a-z0-9-]+)\.([a-z0-9-]+)\.wistia\.io/i,i=/([a-z0-9-]+)-cde-([a-z0-9-]+)\.([a-z0-9-]+)\.claw\.wistia\.io/i,o=/([a-z0-9-]+)-txl-([a-z0-9-]+)\.([a-z0-9-]+)\.mtl\.wistia\.io/i,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app",t=u(e);return t||"".concat(e,".").concat("wistia.com")},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app";if("undefined"!=typeof window&&window.location){var t=window.location.hostname,n=r.exec(t);if(n)return"".concat(e,"-cde-").concat(n[2],".").concat(n[3],".wistia.io");var a=i.exec(t);if(a)return"".concat(e,"-cde-").concat(a[2],".").concat(a[3],".claw.wistia.io");var u=o.exec(t);if(u)return"".concat(e,"-txl-").concat(u[2],".").concat(u[3],".mtl.wistia.io")}return null}},28(e,t,n){n.d(t,{seqId:()=>i});var r=n(16),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=r.Wistia._sequenceVal||1,i="".concat(e).concat(n).concat(t);return r.Wistia._sequenceVal=n+1,i}},61(e,t,n){n.d(t,{READY:()=>d,filter:()=>v,findClosestAssetByQuality:()=>y,iphone:()=>O,isBakeryUrl:()=>w,moveToFront:()=>M,mp4:()=>k,numericSizeSnapped:()=>m,originalAspect:()=>A,playable:()=>S,videoAspect:()=>E});var r=n(4),i=n(26),o=n(9),a=n(25),u=n(12),s=n(27);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(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}var f=Array.prototype.slice,d=2,h=["select","sortFn","sortBy","unique"],v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return[];e.assets&&(e=e.assets),null==t.qualityMin&&null==t.qualityMax||(e=g(e,t.qualityMin,t.qualityMax),t=(0,r.except)(t,["qualityMin","qualityMax"]));var n=(0,r.only)(t,h),i=n.select||(0,r.except)(t,h);i&&(n.select=i);var o=n.select?(0,r.select)(e,n.select):(0,r.clone)(e);if((n.sortFn||n.sortBy)&&(o=(0,r.sort)(o,n.sortFn||n.sortBy)),n.unique){for(var a={},u=0;u<o.length;u++){var s=o[u],c=s["".concat(n.unique)]||"__undefined__";a[c]||(a[c]=s)}for(var l in o=[],a)o.push(a[l])}return o},p=function(e,t){return v(e,t)[0]||null},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;return v(e,{select:function(e){var r=m(e.width,e.height);return t<=r&&r<=n}})},m=function(e,t){if(t>e){var n=e;e=t,t=n}return e/t<1.05&&(e=t*(16/9)),e>=3740?2160:e>=3100?1800:e>=2460?1440:e>=1820?1080:e>=1180?720:e>=860?540:e>=540?360:t},y=function(e,t){var n;n="4k"===t?2160:parseInt(t,10);var r=g(e,n,n)[0];if(r)return r;var i=x(e,n,n);if(1===i.length)return i[0];var o=E(e),a=Math.round(o*n),u=c(i,2),s=u[0],l=u[1];return Math.abs(s.width-a)<Math.abs(l.width-a)?s:l},b=((0,s.appHostname)("fast"),[a.EMBED_HOST,a.SSL_EMBED_HOST,(0,s.appHostname)("embed"),(0,s.appHostname)("prime"),(0,s.appHostname)("mixergy-cdn"),(0,s.appHostname)("embed-fastly"),a.PROD_EMBED_HOST,a.PROD_SSL_EMBED_HOST,a.PROD_FASTLY_SSL_HOST]),w=function(e){if(null==e)return!1;var t=new i.Url(e);return!!t.host&&b.join(",").indexOf(t.host)>=0},_=function(e,t,n){return n=(0,r.merge)({container:t,public:!0,status:d},n),p(e,n)},k=function(e,t){return _(e,"mp4",t)},P=function(e,t){return _(e,"webm",t)},T=function(e){return p(e,{type:"original"})},S=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.cachedDetect)()).video.webm&&P(e,t)||k(e,t)},E=function(e){var t=k(e)||function(e,t){return _(e,"m3u8",t)}(e)||P(e)||T(e);return t&&t.height?t.width/t.height:640/360},A=function(e){var t=E(e),n=T(e);if(n&&n.width&&n.height){var r=n.width/n.height;return r>1&&t<1||r<1&&t>1?1/r:r}return t},O=function(e,t){if(E(e)>1)return t=(0,r.merge)({width:640},t),k(e,t)||C(e,t);var n=(0,r.merge)({width:320},t),i=(0,r.merge)({width:640},t);return k(e,n)||k(e,i)||C(e,t)},C=function(e,t){return t=(0,r.merge)({sortBy:"width asc",width:[640,1920]},t),k(e,t)},x=function(e,t,n){if(0===e.length)return[];for(var r,i,o=f.call(e).sort((function(e,t){return m(e.width,e.height)-m(t.width,t.height)})),a=0;a<o.length;a++){var s=o[a],c=m(s.width,s.height);if(c<t&&(r=s),c>=n){i=s;break}}var l=[];return r&&l.push(r),i&&l.push(i),0===l.length&&(u.wlog.error("nearestOutsideRange: no nearby assets found, using first in list",o[0]),l.push(o[0])),l},M=function(e,t){if(!t)return e;for(var n=-1,r=0;r<e.length;r++){if(e[r].url===t.url){n=r;break}}return n>0&&(e.splice(n,1),e.unshift(t)),e}},63(e,t,n){n.d(t,{globalEventLoop:()=>s});var r=n(12),i=n(16),o=r.wlog.getPrefixedFunctions("event_loop"),a=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._timeoutId=null,this._latency=null!=t.latency?t.latency:100,this._blurLatency=null!=t.blurLatency?t.blurLatency:2e3,this._functions={},this._paused={},window.addEventListener("blur",(function(){return e.blur()}),!1),window.addEventListener("focus",(function(){return e.focus()}),!1),this.start()},u=a.prototype;u.start=function(){var e=this;clearTimeout(this._timeoutId),this._loopFn=this._loopFn||function(){e.runFunctions(),e._timeoutId=setTimeout(e._loopFn,e._latency)},this._loopFn()},u.resync=function(){this.start()},u.resyncNextTick=function(){var e=this;setTimeout((function(){e.resync()}),0)},u.stop=function(){clearTimeout(this._timeoutId)},u.clear=function(){this._functions={}},u.runFunctions=function(){this._pausedDirty&&this.updatePaused();var e=[];for(var t in this._functions){var n=this._functions[t],r=(new Date).getTime(),i=r-n.lastRanAt;if(!n.paused&&i>=n.interval){n.lastRanAt=r;try{n.fn()===this.remove&&e.push(t)}catch(e){o.error(e)}}}for(var a=0;a<e.length;a++)this.remove(e[a])},u.add=function(e,t,n){var r=(new Date).getTime();this._functions[e]={addedAt:r,lastRanAt:-1,interval:t,fn:n};var i=n();this._functions[e]&&(this._functions[e].lastRanAt=(new Date).getTime()),this._functions[e]&&i===this.remove?delete this._functions[e]:this._pausedDirty=!0},u.remove=function(e){var t=this;this.forEachMatchingKey(e,(function(e){delete t._functions[e]}))},u.forEachMatchingKey=function(e,t){for(var n in this._functions){var r=this._functions[n];this.key1IncludesKey2(e,n)&&t(n,r)}},u.latency=function(e){if(null==e)return this._latency;this._latency=e},u.interval=function(e,t){if(null==t)return this._functions[e].interval;null==this._functions[e]?o.notice("setting interval of ",e,"to",t,"failed because",e,"is not defined"):this._functions[e].interval=t},u.pause=function(e){this._paused[e]=!0,this._pausedDirty=!0},u.unpause=function(e){this._paused[e]=!1,this._pausedDirty=!0},u.isPaused=function(e){for(var t in this.paused){if(this._paused[t]&&this.key1IncludesKey2(t,e))return!0}return!1},u.updatePaused=function(){for(var e in this._functions){this._functions[e].paused=this.isPaused(e)}this._pausedDirty=!1},u.key1IncludesKey2=function(e,t){return"function"==typeof t.indexOf&&0===t.indexOf(e)&&(t.length===e.length||"."===t.charAt(e.length))},u.blur=function(){this._blurred||(this._blurred=!0,this._savedLatency=this._latency,this._latency=this._blurLatency)},u.focus=function(){this._blurred&&(this._blurred=!1,this._latency=this._savedLatency,this.resync())},null==i.Wistia.eventLoop&&(i.Wistia.eventLoop=new a({latency:100,blurLatency:100}));var s=i.Wistia.eventLoop},272(e,t,n){n.d(t,{makeCacheable:()=>r,uncacheNamespace:()=>s});var r=function(e){return function(t,n,r){if(a(e,t),i(e,t,n))return o(e,t,n);var s=r();return u(e,t,n,s),s}},i=function(e,t,n){return null!=o(e,t,n)},o=function(e,t,n){return a(e,t),t[e][n]},a=function(e,t){null==t[e]&&(t[e]={})},u=function(e,t,n,r){a(e,t),t[e][n]=r},s=function(e,t){t[e]={}}},277(e,t,n){n.d(t,{default:()=>R});var r=n(15),i=n(4),o=n(61),a=n(28),u=n(278),s=n(279),c=n(280),l=n(285),f=n(286),d=n(282),h=n(291),v=n(281),p=n(292),g=n(293),m=n(287),y=n(295),b=n(284),w=n(296),_=n(283),k=n(297);function P(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return T(c,"_invoke",function(n,r,i){var o,u,s,c=0,l=i||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,u=0,s=e,d.n=n,a}};function h(n,r){for(u=n,s=r,t=0;!f&&c&&!i&&t<l.length;t++){var i,o=l[t],h=d.p,v=o[2];n>3?(i=v===r)&&(s=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(u=0,d.v=r,d.n=o[1]):h<v&&(i=n<3||o[0]>r||r>v)&&(o[4]=n,o[5]=r,d.n=v,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,v){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,v),u=l,s=v;(t=u<2?e:s)||!f;){o||(u?u<3?(u>1&&(d.n=-1),h(u,s)):d.n=s:d.v=s);try{if(c=2,o){if(u||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=o.return)&&t.call(o),u<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){o=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,i,o),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(T(t={},r,(function(){return this})),t),f=c.prototype=u.prototype=Object.create(l);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,T(e,i,"GeneratorFunction")),e.prototype=Object.create(f),e}return s.prototype=c,T(f,"constructor",c),T(c,"constructor",s),s.displayName="GeneratorFunction",T(c,i,"GeneratorFunction"),T(f),T(f,i,"Generator"),T(f,r,(function(){return this})),T(f,"toString",(function(){return"[object Generator]"})),(P=function(){return{w:o,m:d}})()}function T(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}T=function(e,t,n,r){function o(t,n){T(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},T(e,t,n,r)}function S(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,i)}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,A(r.key),r)}}function A(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function O(e,t,n){return t=M(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},x.apply(null,arguments)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var B=function(e){function t(e,n,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=O(this,t,[e,n,r,i])).uuid=(0,a.seqId)("wistia_simple_video_"),o.root=e,o.state={},o.name="SimpleVideo",m.setupProperties(o,n,r||{}),i?m.fromOtherEngine(o,i):m.injectVideo(o),h.fixWebkitControlsBug(o),m.setupBindingsAndLoops(o),p.fit(o),o}return function(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&&j(e,t)}(t,e),n=t,r=[{key:"addTextTracks",value:function(e){(0,k.addTextTracks)(e,this.video)}},{key:"activeBufferRange",value:function(){return s.activeBufferRange(this)}},{key:"anyBuffered",value:function(){return s.anyBuffered(this)}},{key:"cancelFullscreen",value:function(){return d.cancelFullscreen(this)}},{key:"captureCurrentFrame",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.captureCurrentFrame.apply(d,[this].concat(t))}},{key:"changeQuality",value:function(e){return f.changeQuality(this,e)}},{key:"changeStream",value:function(e){return f.changeStream(this,e)}},{key:"changeStreamWithoutLoad",value:function(e){return f.changeStreamWithoutLoad(this,e)}},{key:"changeVideo",value:function(e,t){return f.changeVideo(this,e,t)}},{key:"currentAsset",value:function(){return this._currentAsset}},{key:"defaultAsset",value:function(){return this.selectableAssets()[0]}},{key:"destroy",value:function(){var e,n,r,i,o,a=this.state||{};this.state={eventContext:a.eventContext,destroyed:!0,issuedPlay:a.issuedPlay},m.killBindingsAndStopLoops(this),(e=t,n="destroy",r=this,o=x(M(1&(i=3)?e.prototype:e),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([])}},{key:"diagnosticData",value:function(){return g.getDiagnosticData(this)}},{key:"eventContext",value:function(){return this.state.eventContext}},{key:"fit",value:function(){return p.fit(this)}},{key:"hasIssuedPlay",value:function(){return!!this.state.issuedPlay}},{key:"getAudioTracks",value:(w=P().m((function e(){return P().w((function(e){for(;;)if(0===e.n)return e.a(2,Promise.resolve([]))}),e)})),T=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=w.apply(e,t);function o(e){S(i,n,r,o,a,"next",e)}function a(e){S(i,n,r,o,a,"throw",e)}o(void 0)}))},function(){return T.apply(this,arguments)})},{key:"getCurrentQuality",value:function(){var e=this.currentAsset();if(e)return"hdr_video"===e.type?"".concat((0,o.numericSizeSnapped)(e.width,e.height)," (HDR)"):(0,o.numericSizeSnapped)(e.width,e.height);var t=this.selectedAsset();return t?(0,o.numericSizeSnapped)(t.width,t.height):"?"}},{key:"getCurrentTime",value:function(){return d.getCurrentTime(this)}},{key:"getCuts",value:function(){return(0,_.getCuts)(this)}},{key:"getDuration",value:function(){return d.getDuration(this)}},{key:"getMediaElement",value:function(){return this.video}},{key:"getMediaType",value:function(){return this.mediaData.mediaType}},{key:"getPlaybackMode",value:function(){return v.getPlaybackMode(this)}},{key:"getPlaybackRate",value:function(){return d.getPlaybackRate(this)}},{key:"getPreload",value:function(){return d.getPreload(this)}},{key:"getState",value:function(){return d.getState(this)}},{key:"getDurationBeforeCuts",value:function(){return(0,_.getDurationBeforeCuts)(this)}},{key:"getTimeAfterCuts",value:function(e){return(0,_.getTimeAfterCuts)(this,e)}},{key:"getTimeBeforeCuts",value:function(e){return(0,_.getTimeBeforeCuts)(this,e)}},{key:"getTrim",value:function(){return(0,b.getTrim)(this)}},{key:"getVolume",value:function(){return d.getVolume(this)}},{key:"isChangingVideo",value:function(){return f.isChangingVideo(this)}},{key:"isInFullscreen",value:function(){return d.isInFullscreen(this)}},{key:"isInitializingFromUnmuted",value:function(){return d.isInitializingFromUnmuted(this)}},{key:"isMuted",value:function(){return d.isMuted(this)}},{key:"isSeeking",value:function(){return c.isSeeking(this)}},{key:"isSourceOfBrowserEvent",value:function(e){return d.isSourceOfBrowserEvent(this,e)}},{key:"lastBufferedTime",value:function(e){return s.lastBufferedTime(this,e)}},{key:"loadSource",value:function(){var e=this.currentAsset();e&&this.changeStream(e)}},{key:"mute",value:function(){return d.mute(this)}},{key:"onEnterFullscreen",value:function(){return d.onEnterFullscreen(this)}},{key:"onHeightChange",value:function(e){return p.onHeightChange(this,e)}},{key:"onLeaveFullscreen",value:function(){return d.onLeaveFullscreen(this)}},{key:"onReady",value:function(){return l.onReady(this)}},{key:"onWidthChange",value:function(e){return p.onWidthChange(this,e)}},{key:"pause",value:function(){return d.pause(this)}},{key:"play",value:function(e){return d.play(this,e)}},{key:"playType",value:function(){return d.playType(this)}},{key:"removeTextTracks",value:function(e){(0,k.removeTextTracks)(e,this.video)}},{key:"requestFullscreen",value:function(){return d.requestFullscreen(this)}},{key:"reset",value:function(){this.state={}}},{key:"seek",value:function(e,t){return c.seek(this,e,t)}},{key:"seekOnPlay",value:function(e){return c.seekOnPlay(this,e)}},{key:"selectedAsset",value:function(){return this._currentAsset}},{key:"selectableAssets",value:function(){return this.allAssets}},{key:"selectableQualities",value:function(){return this.selectableAssets().map((function(e){return"variable"===e.width?e.slug:"hdr_video"===e.type?"".concat((0,o.numericSizeSnapped)(e.width,e.height)," (HDR)"):(0,o.numericSizeSnapped)(e.width,e.height)})).sort((function(e,t){return("auto"===e?-1:e)-("auto"===t?-1:t)}))}},{key:"selectedQuality",value:function(){var e=this.selectedAsset();return e?"hdr_video"===e.type?"".concat((0,o.numericSizeSnapped)(e.width,e.height)," (HDR)"):(0,o.numericSizeSnapped)(e.width,e.height):"?"}},{key:"sequentialBufferedRange",value:function(){return s.sequentialBufferedRange(this)}},{key:"setAttributes",value:function(e){(0,i.assign)(this.attributes,e)}},{key:"onMediaDataChanged",value:function(){}},{key:"onPlayed",value:function(){var e=this,t=this.state;return t&&t.hasPlayed?Promise.resolve():new Promise((function(t){var n=function(){e.unbind("playing",n),t()};e.bind("playing",n)}))}},{key:"setCurrentTime",value:function(e){return d.setCurrentTime(this,e)}},{key:"setCuts",value:function(e){return(0,b.setCuts)(this,e)}},{key:"setPlaybackRate",value:function(e){return d.setPlaybackRate(this,e)}},{key:"setTrim",value:function(e){return(0,b.setTrim)(this,e)}},{key:"setVolume",value:function(e){return d.setVolume(this,e)}},{key:"showFirstFrame",value:function(){return c.seek(this,.01)}},{key:"canDownloadMedia",value:function(){return!0}},{key:"stopStreaming",value:function(){return f.stopStreaming(this)}},{key:"timeBeforeEndOfBuffer",value:function(e){return s.timeBeforeEndOfBuffer(this,e)}},{key:"totalBuffered",value:function(){return s.totalBuffered(this)}},{key:"totalPlayed",value:function(){return u.sumTimeRanges(this.video.played)}},{key:"unmute",value:function(){return d.unmute(this)}},{key:"updateStartPosition",value:function(){}}],r&&E(n.prototype,r),y&&E(n,y),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,y,w,T}(n(298).PlaybackEngine);(0,r.bindify)(B.prototype),B.delegatePublicMethods=y.delegatePublicMethods,B.PUBLIC_METHODS=y.PUBLIC_METHODS,B.mediaDataWithAssets=function(e,t){var n=(0,i.clone)(e);return n.assets=(0,i.clone)(t),n},(0,w.default)("SimpleVideo",B);const R=B},278(e,t,n){n.d(t,{bufferedInfo:()=>p,createElement:()=>s,properAssetUrl:()=>g,setupVideoElemAttributes:()=>f,setupVideoElemStyles:()=>l,srcProtocolAndHost:()=>h,sumTimeRanges:()=>v});var r=n(3),i=n(26),o=n(61),a=n(25),u="".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/images/blank.gif"),s=function(e,t,n){var i={tagName:"video",id:e,crossorigin:"anonymous",style:{background:"transparent",display:"block",height:"100%",maxHeight:"none",maxWidth:"none",position:"static",visibility:"visible",width:"100%"}};return n.isWebComponentPlayer&&(i.style.aspectRatio=n.aspectRatio||"auto",!0===n.liveMedia&&(i.style.transform="scale(1.003)")),f((0,r.elemFromObject)(i),t,n)},c=function(e,t,n){null!=n&&!1!==n?!0===n?(e[t]=!0,e.setAttribute(t,"")):(e[t]=n,e.setAttribute(t,n)):(e[t]=!1,e.removeAttribute(t))},l=function(e,t){t.isWebComponentPlayer&&(e.style.aspectRatio=t.aspectRatio||"auto")},f=function(e,t,n){return n.poster?(e.poster=n.poster,e.setAttribute("poster",n.poster)):n.isWebComponentPlayer||(e.poster=u,e.setAttribute("poster",u)),c(e,"aria-label",n.name||"Video"),c(e,"src",g(t.url)),c(e,"controlslist",n.controlslist||"nodownload"),c(e,"playsinline",n.playsinline),c(e,"muted",n.muted),c(e,"loop",n.loop),c(e,"controls",null!=n.controls&&n.controls),c(e,"preload",n.preload||"none"),c(e,"type",d(t,n)),c(e,"x-webkit-airplay",null!=n.webkitAirplay?n.webkitAirplay:"allow"),null!=n.volume&&(e.volume=n.volume),n.disablePictureInPicture&&c(e,"disablePictureInPicture",n.disablePictureInPicture),null!=n.playbackRate&&(e.playbackRate=n.playbackRate),e},d=function(e,t){if(null!=t.contentType)return t.contentType;var n="video/".concat(e.ext);return t.spherical&&(n+=";dimension=360;"),n},h=function(e){if((0,o.isBakeryUrl)(e)){var t=new i.Url(e);if(t.protocol)return"".concat(t.protocol,"//").concat(t.host)}return"".concat((0,a.eV1Protocol)(),"//").concat((0,a.deliveryHost)((0,a.eV1Protocol)()))},v=function(e){if(null==e)return null;for(var t=0,n=0;n<e.length;n++)t+=e.end(n)-e.start(n);return t},p=function(e,t,n){var r,i,o,a,u,s=[];for(e.sort((function(e,t){var n=e.start-t.start;return n||t.end-e.end})),u=0;u<e.length;u++){var c=s.length;if(c){var l=s[c-1].end;e[u].start-l<n?e[u].end>l&&(s[c-1].end=e[u].end):s.push(e[u])}else s.push(e[u])}for(u=0,r=0,i=o=t;u<s.length;u++){var f=s[u].start,d=s[u].end;if(t+n>=f&&t<d)i=f,r=(o=d)-t;else if(t+n<f){a=f;break}}return{len:r,start:i,end:o,nextStart:a}},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mp4";return(0,o.isBakeryUrl)(e)&&/\.bin$/.test(e)?"".concat(e.replace(/\.bin$/,""),"/file.").concat(t):e}},279(e,t,n){n.d(t,{activeBufferRange:()=>u,anyBuffered:()=>a,lastBufferedTime:()=>l,sequentialBufferedRange:()=>c,timeBeforeEndOfBuffer:()=>f,totalBuffered:()=>s});var r=n(12),i=n(278),o=r.wlog.getPrefixedFunctions("buffering"),a=function(e){var t=e.video;return t.buffered.length>0&&t.buffered.end(0)>0},u=function(e){for(var t=e.video,n=t.currentTime,r=0;r<t.buffered.length;r++){var i=t.buffered.start(r),o=t.buffered.end(r);if(i<=n&&n<o)return[i,o]}return null},s=function(e){return i.sumTimeRanges(e.video.buffered)},c=function(e){var t=e.video,n=t.buffered,r=null;try{for(var i=0;i<n.length;i++){var a=n.start(i)-.5,u=n.end(i)+.5;if(a<=t.currentTime&&t.currentTime<u){r=i;break}}if(null!=r){for(var s=r,c=r;c<n.length;c++){if(!(n.start(c)-.5<=n.end(s)+.5))break;s=c}return[n.start(r),n.end(s)]}return null}catch(e){return o.error(e),null}},l=function(e,t){return function(e,t,n){var r=e.video;if(r){var o,a=r.buffered,u=[];for(o=0;o<a.length;o++)u.push({start:a.start(o),end:a.end(o)});return i.bufferedInfo(u,t,n)}return{len:0,start:0,end:0,nextStart:void 0}}(e,e.getCurrentTime(),t).end},f=function(e,t){return l(e,t)-e.getCurrentTime()}},280(e,t,n){n.d(t,{isSeeking:()=>g,seek:()=>l,seekOnPlay:()=>v,seekWithoutCuts:()=>f});var r=n(4),i=n(3),o=n(12),a=n(281),u=n(282),s=n(283),c=o.wlog.getPrefixedFunctions("SimpleVideo"),l=function(e,t,n){var r=(0,s.getTimeBeforeCuts)(e,t);return f(e,r,n)},f=function(e,t,n){return c.info("seek",t),e.getPlaybackMode()===a.BEFORE_PLAY?d(e,t,n):h(e,t,n)},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.video;return c.info("seekBeforePlay",t),new Promise((function(o,a){c.info("time ".concat(t,": seek beforeplay"));var s="playing"===e.getPlaybackMode();i.style.visibility="hidden",(0,r.assign)(e.state,{seeking:!0}),c.info("time ".concat(t,": start stream by calling play")),(0,u.playWithoutCuts)(e).then((function(a){c.info("time ".concat(t,": jump to time after playing")),i.currentTime=t;var l=new Promise((function(r){s||!1===n.pause?(c.info("time: ".concat(t,": play after seek")),r()):(c.info("time: ".concat(t,": pause after seek")),(0,u.pause)(e).then(r))}));p(e).then((function(){return l})).then((function(){i.style.visibility="inherit",(0,r.assign)(e.state,{seeking:!1}),o(a)}))})).catch((function(t){i.style.visibility="inherit",(0,r.assign)(e.state,{seeking:!1}),a(t)}))}))},h=function(e,t){return c.info("seekNow",t),new Promise((function(n){c.info("seekNow: start",t),e.video.currentTime=t,(0,r.assign)(e.state,{seeking:!0}),p(e).then((function(){(0,r.assign)(e.state,{seeking:!1}),c.info("seekNow: resolve",t),n()}))}))},v=function(e,t){return new Promise((function(n){"playing"===e.getPlaybackMode()?h(e,t).then(n):e.bind("playing",(function(){return h(e,t).then(n),e.unbind}))}))},p=function(e){var t=e.video;return new Promise((function(e){t.seeking?(c.info("waiting for seek"),(0,i.elemBind)(t,"seeked",(function(){return c.info("seeked"),e(),i.elemUnbind}))):(c.info("no wait for seek"),e())}))},g=function(e){var t=e.state,n=e.video;return Boolean(t.seeking||n.seeking)}},281(e,t,n){n.d(t,{BEFORE_PLAY:()=>i,getPlaybackMode:()=>o});var r=n(12).wlog.getPrefixedFunctions("SimpleVideo"),i="beforeplay",o=function(e){var t=e.video;try{return e.state.hasPlayed?e.state.fakeEnded||t.ended?"ended":t.paused?"paused":"playing":i}catch(e){return r.warn(e),"unknown"}}},282(e,t,n){n.r(t),n.d(t,{cancelFullscreen:()=>q,captureCurrentFrame:()=>U,getCurrentTime:()=>P,getDuration:()=>x,getPlaybackRate:()=>C,getPreload:()=>B,getState:()=>T,getVolume:()=>E,isInFullscreen:()=>I,isInitializingFromUnmuted:()=>D,isMuted:()=>j,isSourceOfBrowserEvent:()=>M,mute:()=>R,onEnterFullscreen:()=>L,onHeightChange:()=>V,onLeaveFullscreen:()=>F,onWidthChange:()=>N,pause:()=>w,play:()=>m,playType:()=>b,playWithoutCuts:()=>y,requestFullscreen:()=>H,setCurrentTime:()=>_,setCurrentTimeWithoutCuts:()=>k,setPlaybackRate:()=>O,setVolume:()=>S,supportsPlaybackRate:()=>A,unmute:()=>W});var r=n(3),i=n(12),o=n(9),a=n(4),u=n(283),s=n(284);function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return l(c,"_invoke",function(n,r,i){var o,u,s,c=0,l=i||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,u=0,s=e,d.n=n,a}};function h(n,r){for(u=n,s=r,t=0;!f&&c&&!i&&t<l.length;t++){var i,o=l[t],h=d.p,v=o[2];n>3?(i=v===r)&&(s=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(u=0,d.v=r,d.n=o[1]):h<v&&(i=n<3||o[0]>r||r>v)&&(o[4]=n,o[5]=r,d.n=v,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,v){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,v),u=l,s=v;(t=u<2?e:s)||!f;){o||(u?u<3?(u>1&&(d.n=-1),h(u,s)):d.n=s:d.v=s);try{if(c=2,o){if(u||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=o.return)&&t.call(o),u<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){o=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,i,o),!0),c}var a={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(l(t={},r,(function(){return this})),t),h=f.prototype=u.prototype=Object.create(d);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return s.prototype=f,l(h,"constructor",f),l(f,"constructor",s),s.displayName="GeneratorFunction",l(f,i,"GeneratorFunction"),l(h),l(h,i,"Generator"),l(h,r,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),(c=function(){return{w:o,m:v}})()}function l(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}l=function(e,t,n,r){function o(t,n){l(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function f(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,i)}var d=i.wlog.getPrefixedFunctions("SimpleVideo"),h=(0,o.cachedDetect)(),v="play",p="play-silently",g="cannot-play",m=function(e,t){var n=(0,s.trimStartFromCuts)(e);return e.state.fakeEnded||e.video.currentTime<n?e.seek(0,{pause:!1}).then((function(n){return y(e,(0,a.merge)({},t,{playType:v}))})):y(e,t)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.video,i=t.playType||b(e,t);return null==e.state.issuedPlay&&i!==g&&(e.state.issuedPlay=!0),new Promise((function(o,a){e.state.lastPlayRejected=!1;var u=e.getPlaybackMode();if(d.info("play: start",i),"playing"===u)d.info("play: already playing, resolve"),o(v);else if(i===g)a(new Error("Cannot issue play."));else{i===p&&e.mute(),e.trigger("beforeplay");var s=n.play();if(s&&s.then&&s.catch)s.then((function(){d.info("play: got",i,"resolve"),o(i)})).catch(function(){var r,u=(r=c().m((function r(u){var s,l;return c().w((function(r){for(;;)switch(r.p=r.n){case 0:if(d.notice(u),e.state.lastPlayRejected=!0,s=null!=t.silentAutoplay?t.silentAutoplay:e.attributes.silentAutoplay,i!==v||e.isMuted()||"allow"!==s&&null!=s){r.n=5;break}return e.mute(),r.p=1,r.n=2,n.play();case 2:d.info("play: got silent fallback, resolve"),o(p),r.n=4;break;case 3:r.p=3,l=r.v,e.unmute(),a(l);case 4:r.n=6;break;case 5:d.notice("play: rejected"),a(u);case 6:return r.a(2)}}),r,null,[[1,3]])})),function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){f(o,n,i,a,u,"next",e)}function u(e){f(o,n,i,a,u,"throw",e)}a(void 0)}))});return function(e){return u.apply(this,arguments)}}());else{setTimeout((function(){h.ios.version&&h.ios.version<10.1&&n.paused&&a(new Error("Video still paused after play issued."))}),10);e.bind("playing",(function(){return d.info("play: got playing, resolve"),o(i),r.elemUnbind}))}}}))},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("playing"===e.getPlaybackMode())return v;if(e.isInitializingFromUnmuted())return v;if((0,r.inUserEventContext)())return v;var n=e.attributes,i=null!=t.silentAutoplay?t.silentAutoplay:n.silentAutoplay;return!0===i?e.isMuted()?v:p:!1===i?v:"allow"===i||null==i?h.chrome||h.firefox||h.edge||(h.safari||h.ios.version&&h.ios.version>=12)||e.isMuted()?v:p:v},w=function(e){var t=e.video;return d.info("pause"),new Promise((function(e){d.info("pause: start"),t.pause(),(0,r.safeRequestAnimationFrame)((function(){d.info("pause: resolve"),e()}))}))},_=function(e,t){var n=(0,u.getTimeBeforeCuts)(e,t);return k(e,n)},k=function(e,t){d.info("setCurrentTime",t),e.video.currentTime=t},P=function(e){return(0,s.getCurrentTimeAfterCuts)(e)},T=function(e){return{playbackMode:e.getPlaybackMode(),currentTime:e.getCurrentTime(),volume:e.getVolume(),playbackRate:e.getPlaybackRate()}},S=function(e,t){d.info("setVolume",t),e.video.volume=t},E=function(e){return e.video.volume},A=function(e){return null!=e.video.playbackRate},O=function(e,t){d.info("setPlaybackRate",t),A(e)?e.video.playbackRate=t:d.info("playbackRate is not supported on",e.video)},C=function(e){return A(e)?e.video.playbackRate:1},x=function(e){return(0,s.getDurationAfterCuts)(e)},M=function(e,t){return t.target==e.video},j=function(e){var t=e.video;return!!(t.muted||e.state.loadedMetadata&&0===t.volume||e.state.hasPlayed&&t.audioTracks&&0===t.audioTracks.length)},B=function(e){return e.video.getAttribute("preload")},R=function(e){e.video.muted=!0,e.video.setAttribute("muted","muted")},W=function(e){e.video.muted=!1,e.video.removeAttribute("muted")},L=function(e){e.state.isInFullscreen=!0;var t=e.attributes.backgroundColor||"#000";e.video.style.backgroundColor=t},F=function(e){e.state.isInFullscreen=!1,e.video.style.backgroundColor="transparent",e.setAttributes({fitStrategy:e.state.fitStrategyBeforeFullscreen||"auto"}),delete e.state.fitStrategyBeforeFullscreen,e.fit()},D=function(e){var t=e.state;return t.isInitializingFromOtherEngine&&t.otherEnginePlayed&&!t.otherEngineWasMuted},I=function(e){return!!e.state.isInFullscreen},N=function(e){},V=function(e){},H=function(e){return e.state||(e.state={}),e.state.fitStrategyBeforeFullscreen=e.attributes.fitStrategy,e.setAttributes({fitStrategy:"contain"}),e.fit(),(0,r.elemRequestFullscreen)(e.video)},q=function(e){return e.setAttributes({fitStrategy:e.state.fitStrategyBeforeFullscreen||"auto"}),e.fit(),(0,r.elemCancelFullscreen)(e.video)},U=function(e){var t=e.video,n=document.createElement("canvas");n.width=t.videoWidth,n.height=t.videoHeight,n.getContext("2d").drawImage(t,0,0,n.width,n.height);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.toDataURL.apply(n,i)}},283(e,t,n){function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(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.")}()}function i(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}n.d(t,{getCurrentTimeAfterCuts:()=>c,getCuts:()=>f,getDurationAfterCuts:()=>a,getDurationBeforeCuts:()=>o,getTimeAfterCuts:()=>s,getTimeBeforeCuts:()=>u});var o=function(e){var t=e.attributes;return null!=t.duration?t.duration:e.video.readyState>=2?e.video.duration:null},a=function(e){var t=f(e),n=o(e);if(t.length<1)return n;var r=n;return t.forEach((function(e){r-=e.end-e.start})),r},u=function(e,t){var n=o(e),r=f(e),i=0,a=0,u=0;return r.forEach((function(e){var n=e.start-a;if((u+=n)<=t+i){var r=e.end-e.start;i+=r,u+=r}a=e.end})),Math.min(n,t+i)},s=function(e,t){var n=f(e);if(n.length<1)return t;var r=t;return n.forEach((function(e){e.start<=t&&(r-=Math.min(t,e.end)-e.start)})),Math.max(0,r)},c=function(e){return s(e,e.video.currentTime)},l=Object.freeze([]),f=function(e){var t=e.attributes,n=t.cuts,r=t.trimStart,i=t.trimEnd;if(e._cuts&&n===e._rawCuts)return e._cuts;if(!n&&null==r&&null==i)return l;e._rawCuts=n,e._cuts=d(e);var o={start:e.attributes.trimStart,end:e.attributes.trimEnd};return e._cuts=h(e,o,e._cuts),Object.freeze(e._cuts),e._cuts},d=function(e){var t=o(e),n=e.attributes,r=n.cuts,i=n.trimStart,a=n.trimEnd;if(!r)return[];var u=r.map((function(n){var r=null!=n.start?v(e,n.start):0,i=null!=n.end&&-1!==n.end?v(e,n.end):t;return i>r?{start:r,end:i}:null})).filter(Boolean);null!=i&&u.push({start:0,end:i}),null!=a&&u.push({start:a,end:t}),u=u.sort((function(e,t){return e.start-t.start}));var s={start:0,end:0};return u=u.map((function(e){return e.end<s.end?null:(e.start<s.end&&(e.start=s.end),s=e,e)})).filter(Boolean)},h=function(e,t,n){var i=r(n),a=o(e),u=t.start,s=t.end,c=i[0],l=i[i.length-1],f=c&&(0===c.start||c.start<0)?c:void 0,d=l&&(l.end>=a||l.end<0)?l:void 0;if(null!=u)if(u>=0){var h={start:0,end:u};f?i.splice(0,1,h):i.unshift(h)}else f&&i.shift();if(null!=s)if(s>=0){var v={start:s,end:a};d?i.splice(i.length-1,1,v):i.push(v)}else d&&i.pop();return i},v=function(e,t){var n=o(e);return Math.min(n,Math.max(0,t))}},284(e,t,n){n.d(t,{enforceCuts:()=>d,getCurrentTimeAfterCuts:()=>i.getCurrentTimeAfterCuts,getDurationAfterCuts:()=>i.getDurationAfterCuts,getTrim:()=>c,setCuts:()=>l,setTrim:()=>p,teardownCuts:()=>h,trimStartFromCuts:()=>u});var r=n(9),i=n(283),o=n(280),a=(0,r.cachedDetect)(),u=function(e){var t=(0,i.getCuts)(e);return t.length<1||t[0].start>0?0:t[0].end},s=function(e){var t=(0,i.getCuts)(e),n=(0,i.getDurationBeforeCuts)(e);return t.length<1||t[t.length-1].end<n?-1:t[t.length-1].start},c=function(e){return{start:u(e),end:s(e)}},l=function(e,t){e.attributes.cuts=t,t!==e._rawCuts&&(e._cuts=void 0,e._rawCuts=void 0),d(e)},f=function(e,t){return t||(t={current:null}),t.current=requestAnimationFrame((function(){!1!==e()&&f(e,t)})),function(){cancelAnimationFrame(t.current)}},d=function(e){if(!e._stopEnforcingCuts&&0!==(0,i.getCuts)(e).length){var t=function(){e._stopEnforcingCutsViaRafLoop&&(e._stopEnforcingCutsViaRafLoop(),e._stopEnforcingCutsViaRafLoop=void 0)},n=[e.on("playing",(function(){t(),e._stopEnforcingCutsViaRafLoop=f((function(){if(!e.state.seeking&&!e.video.seeking)return v(e),!!e._stopEnforcingCutsViaRafLoop&&void 0}))})),e.on("pause",t),e.on("ended",t),e.on("beforeplay",t),e.on("timeupdate",(function(){v(e)}))];e._stopEnforcingCuts=function(){t(),n.forEach((function(e){return e()})),e._stopEnforcingCuts=void 0}}},h=function(e){e._stopEnforcingCuts&&(e._stopEnforcingCuts(),e._stopEnforcingCuts=void 0)},v=function(e){if("beforeplay"!==e.getPlaybackMode()){var t=e.video.currentTime,n=(0,i.getCuts)(e),r=-1,u=n.filter((function(e,n){return e.start<=t&&t<e.end&&r<0&&(r=n),e.start<=t&&t<e.end}))[0],s=(0,i.getDurationBeforeCuts)(e);if(e.state.fakeEnded&&(0,i.getTimeAfterCuts)(e,t)<(0,i.getDurationAfterCuts)(e)-.1&&(e.state.fakeEnded=!1),u){var c=g(n,r);if(c<s-.1){var l=a.ios.version>0?.09:1e-6;(0,o.seekWithoutCuts)(e,c+l)}else e.state.fakeEnded||(e.state.fakeEnded=!0,e.attributes.loop?(e.trigger("ended"),e.seek(0).then((function(){return e.play()}))):(e.pause(),e.trigger("ended")))}}},p=function(e,t){var n=t.start,r=t.end;null!=n&&(n>=0?e.attributes.trimStart=t.start:delete e.attributes.trimStart),null!=r&&(r>=0?e.attributes.trimEnd=t.end:delete e.attributes.trimEnd),e._cuts=void 0,v(e),d(e)},g=function(e,t){if(t>=e.length)return-1;for(var n=e[t].end,r=t;r<e.length;r+=1){var i=e[r];if(i.start>n)break;i.start===n&&(n=i.end)}return n}},285(e,t,n){n.d(t,{onReady:()=>i});var r=n(12).wlog.getPrefixedFunctions("SimpleVideo"),i=function(e){var t=e.video;null==e.state&&(e.state={});var n=e.state;return n.onReadyPromise||(n.onReadyPromise=new Promise((function(i){if(n.hasBeenReady)i();else{if(t.readyState>=2)r.info("ready readyState",t.src,t.readyState),n.hasBeenReady=!0,i();else{e.bind("loadstart",(function(){r.info("ready loadstart"),n.hasBeenReady=!0,i()}))}setTimeout((function(){n.hasBeenReady||(n.hasBeenReady=!0,i())}),200)}}))),n.onReadyPromise}},286(e,t,n){n.d(t,{changeQuality:()=>v,changeStream:()=>g,changeStreamWithoutLoad:()=>p,changeVideo:()=>y,isChangingVideo:()=>m,stopStreaming:()=>h});var r=n(12),i=n(3),o=n(61),a=n(287),u=n(278);function s(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof u?r:u,l=Object.create(s.prototype);return c(l,"_invoke",function(n,r,i){var o,u,s,c=0,l=i||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,u=0,s=e,d.n=n,a}};function h(n,r){for(u=n,s=r,t=0;!f&&c&&!i&&t<l.length;t++){var i,o=l[t],h=d.p,v=o[2];n>3?(i=v===r)&&(s=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=n<2&&h<o[1])?(u=0,d.v=r,d.n=o[1]):h<v&&(i=n<3||o[0]>r||r>v)&&(o[4]=n,o[5]=r,d.n=v,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,l,v){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,v),u=l,s=v;(t=u<2?e:s)||!f;){o||(u?u<3?(u>1&&(d.n=-1),h(u,s)):d.n=s:d.v=s);try{if(c=2,o){if(u||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=o.return)&&t.call(o),u<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((t=(f=d.n<0)?s:n.call(r,d))!==a)break}catch(t){o=e,u=1,s=t}finally{c=1}}return{value:t,done:f}}}(n,i,o),!0),l}var a={};function u(){}function l(){}function f(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(c(t={},r,(function(){return this})),t),h=f.prototype=u.prototype=Object.create(d);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=f,c(h,"constructor",f),c(f,"constructor",l),l.displayName="GeneratorFunction",c(f,i,"GeneratorFunction"),c(h),c(h,i,"Generator"),c(h,r,(function(){return this})),c(h,"toString",(function(){return"[object Generator]"})),(s=function(){return{w:o,m:v}})()}function c(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}c=function(e,t,n,r){function o(t,n){c(e,t,(function(e){return this._invoke(t,n,e)}))}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},c(e,t,n,r)}function l(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,i)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,u,"next",e)}function u(e){l(o,r,i,a,u,"throw",e)}a(void 0)}))}}var d=r.wlog.getPrefixedFunctions("SimpleVideo"),h=function(e){try{if(e.state.destroyed)return;d.info("stopStreaming");var t=e.video;t.src="".concat(u.srcProtocolAndHost(t.getAttribute("src")),"/tiny.mp4"),t.load()}catch(e){d.notice(e)}},v=function(e,t,n,r){var i=e.selectableAssets(),a=(0,o.findClosestAssetByQuality)(i,t);return"beforeplay"===e.getPlaybackMode()?(p(e,a),Promise.resolve()):g(e,a,n,r)},p=function(e,t){d.info("changeStreamWithoutLoad",t&&t.slug,t);var n=e.video;if((0,i.elemInDom)(n)){var r=u.properAssetUrl(t.url,t.container);e.state={eventContext:e.state.eventContext},e._currentAsset=t,n.src=r;var o=function(e){for(var t=e.video,n=[],r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];1===i.nodeType&&"source"===i.tagName.toLowerCase()&&n.push(i)}return n}(e);o.length>0&&(o[0].src=r)}},g=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];d.info("changeStream",n,r,t&&t.slug,t);var o=e.video;return e.asset=t,new Promise((function(a){var c=u.properAssetUrl(t.url,t.container);if(r||c!==o.getAttribute("src")){var l=e.getState();e.state.seeking=!0,(0,i.elemBind)(o,"loadstart",f(s().m((function t(){return s().w((function(t){for(;;)switch(t.n){case 0:if(!r){t.n=1;break}o.style.visibility="visible",e.state.seeking=!1,a(),t.n=8;break;case 1:if(!(l.currentTime>2)){t.n=7;break}return t.n=2,e.seek(l.currentTime);case 2:if("playing"!==l.playbackMode){t.n=4;break}return t.n=3,e.play();case 3:e.state.seeking=!1,o.style.visibility="visible",a(),t.n=6;break;case 4:return t.n=5,e.pause();case 5:o.style.visibility="visible",e.state.seeking=!1,a();case 6:t.n=8;break;case 7:"playing"===l.playbackMode&&e.play(),o.style.visibility="visible",e.state.seeking=!1,a();case 8:return e.setPlaybackRate(l.playbackRate),t.a(2,i.elemUnbind)}}),t)})))),o.style.visibility="hidden",p(e,t,r),"beforeplay"===l.playbackMode||n||e.play()}else a()}))},m=function(e){return!!e.state.isChangingVideo},y=function(e,t,n){return b(e),e.state.isChangingVideo=!0,w(e,t,n),new Promise((function(t){g(e,e.defaultAsset()).then((function(){e.state.isChangingVideo=!1,t()}))}))},b=function(e){var t=e.state.eventContext;e.destroy(),e.state.eventContext=t},w=function(e,t,n){a.setupProperties(e,t,n),a.setupBindingsAndLoops(e,e.allAssets,n)}},287(e,t,n){n.d(t,{fromOtherEngine:()=>f,injectVideo:()=>l,killBindingsAndStopLoops:()=>h,setupBindingsAndLoops:()=>d,setupProperties:()=>c});var r=n(3),i=n(278),o=n(288),a=n(289),u=n(290),s=n(284),c=function(e,t,n){var r=t.assets;0===r.length&&(r=[{}]),e.mediaData=t,e.allAssets=r,e.attributes=n},l=function(e){e._currentAsset=e.defaultAsset(),e.video=i.createElement(e.uuid,e._currentAsset,e.attributes),e.onReady(),(0,r.elemAppend)(e.root,e.video)},f=function(e,t){var n=t.isMuted(),r=t.hasIssuedPlay();"Audio"===t.mediaData.mediaType?l(e):e.video=t.getMediaElement(),e.onReady(),e.bind("loadstart",(function(){return setTimeout((function(){e.state.isInitializingFromOtherEngine=!1}),0),e.unbind})),i.setupVideoElemAttributes(e.video,e.defaultAsset(),e.attributes),i.setupVideoElemStyles(e.video,e.attributes),e.state.eventContext=t.eventContext(),e.root.appendChild(e.video),e._currentAsset=e.defaultAsset(),e.changeStreamWithoutLoad(e.defaultAsset()),e.state.isInitializingFromOtherEngine=!0,e.state.otherEngineWasMuted=n,e.state.otherEnginePlayed=r,e.video.load()},d=function(e){a.setup(e),(0,s.enforceCuts)(e),u.setup(e),o.setup(e)},h=function(e){u.teardown(e),(0,s.teardownCuts)(e),o.teardown(e),a.teardown(e)}},288(e,t,n){n.d(t,{setup:()=>a,teardown:()=>u});var r=n(4),i=n(63),o=function(e){var t=e.attributes;return(null!=t.eventLoopDuration?t.eventLoopDuration:300)/e.getPlaybackRate()},a=function(e){null==e.state&&(e.state={}),"playing"===e.getPlaybackMode()&&(e.state.hasPlayed=!0),e.bind("playing",(function(){e.state.hasPlayed=!0})),e.bind("waiting",(function(){e.state.gotWaiting=!0})),e.bind("loadedmetadata",(function(){e.state.loadedMetadata=!0})),(0,r.assign)(e.state,{lastPlaybackMode:e.getPlaybackMode(),lastTimePosition:e.getCurrentTime(),lastEventLoopDuration:o(e)});var t="".concat(e.uuid,".custom_state_and_events");i.globalEventLoop.add(t,o(e),(function(){(0,r.assign)(e.state,{lastTimePosition:e.getCurrentTime(),lastPlaybackMode:e.getPlaybackMode(),lastEventLoopDuration:o(e)}),i.globalEventLoop.interval(t,o(e))}))},u=function(e){var t="".concat(e.uuid,".custom_state_and_events");i.globalEventLoop.remove(t)}},289(e,t,n){n.d(t,{setup:()=>u,teardown:()=>s});var r=n(4),i=n(3),o=n(63),a=function(e){var t=e.attributes;return(null!=t.eventLoopDuration?t.eventLoopDuration:300)/e.getPlaybackRate()},u=function(e){null==e.state&&(e.state={}),e.state.waiting=-1;var t="".concat(e.uuid,".waiting_events");o.globalEventLoop.add(t,a(e),(function(){c(e),o.globalEventLoop.interval(t,a(e))}))},s=function(e){var t="".concat(e.uuid,".waiting_events");o.globalEventLoop.remove(t)},c=function(e){var t=e.video,n=e.state,o=n.lastPlaybackMode,u=n.gotWaiting&&"beforeplay"===e.getPlaybackMode()||"playing"===e.getPlaybackMode(),s="playing"===o||"beforeplay"===o&&!n.lastPlayRejected,c=n.lastEventLoopDuration||a(e);if(u&&s)if(e.getCurrentTime()===n.lastTimePosition){var f=n.startedWaitingAt;f?(n.waiting=((new Date).getTime()-f)/1e3,e.trigger("custom-waiting",n.waiting)):((0,r.assign)(n,{startedWaitingAt:(new Date).getTime()-c,waiting:c/1e3}),e.trigger("custom-waiting",c/1e3),(0,i.elemBind)(t,"timeupdate",(function(){return l(e),i.elemUnbind})))}else l(e);else l(e)},l=function(e){var t=e.state.waiting;(0,r.assign)(e.state,{waiting:-1,startedWaitingAt:null}),null!=t&&t>=0&&e.trigger("custom-done-waiting",t)}},290(e,t,n){n.d(t,{setup:()=>o,teardown:()=>a});var r=n(3),i=["beforeplay","canplay","canplaythrough","ended","error","loadeddata","loadedmetadata","loadstart","pause","playing","progress","ratechange","seeked","seeking","volumechange","timeupdate","waiting","webkitbeginfullscreen","webkitendfullscreen","webkitplaybacktargetavailabilitychanged"],o=function(e){for(var t=0;t<i.length;t++){var n=i[t];!function(t,n){var i="_marshalEvent_".concat(n);e[i]=e[i]||function(r){null==e.state&&(e.state={}),("playing"!==n||"playing"===n&&!t.paused)&&(e.state.eventContext=r,e.trigger(n,r),e.state.eventContext=null)},(0,r.elemBind)(t,n,e[i])}(e.video,n)}},a=function(e){for(var t=0;t<i.length;t++){var n=i[t],o="_marshalEvent_".concat(n);(0,r.elemUnbind)(e.video,n,e[o])}}},291(e,t,n){n.d(t,{fixWebkitControlsBug:()=>u});var r=n(9),i=n(12),o=(0,r.cachedDetect)(),a=i.wlog.getPrefixedFunctions("SimpleVideo"),u=function(e){var t=e.video;if(o.browser.webkit){a.info("fixWebkitControlsBug");var n=t.getAttribute("controls");t.setAttribute("controls","controls"),t.removeAttribute("controls"),null!=n&&t.setAttribute("controls",n)}}},292(e,t,n){n.d(t,{fit:()=>l,onHeightChange:()=>u,onWidthChange:()=>a});var r=n(3),i=n(61),o=(0,n(9).cachedDetect)(),a=function(e,t){return e.setAttributes({width:t}),l(e)},u=function(e,t){return e.setAttributes({height:t}),l(e)},s="contain",c="fill",l=function(e){var t=e.attributes.fitStrategy||f(e);return t===s?h(e):"cover"===t?d(e):t===c?v(e):h(e)},f=function(e){var t=e.attributes.height,n=e.attributes.width,r=(0,i.originalAspect)(e.allAssets),a=t*r,u=2*Math.floor(n/r/2),l=Math.abs(u-t),f=Math.abs(a-n),d=o.firefox&&o.browser.mozilla&&o.browser.version>=36;return(o.browser.webkit||d)&&l>0&&l<=10&&f>0&&f<=10?c:s},d=function(e){var t=e.video,n=(0,i.videoAspect)(e.allAssets),a=(0,r.elemWidth)(e.root)/(0,r.elemHeight)(e.root);o.edge?a<=n?(0,r.elemStyle)(t,{height:"100%",left:"50%",objectFit:"contain",position:"relative",top:"50%",transform:"translate(-50%,-50%)",width:"1920px"}):(0,r.elemStyle)(t,{height:"1088px",left:"50%",objectFit:"contain",position:"relative",top:"50%",transform:"translate(-50%,-50%)",width:"100%"}):(0,r.elemStyle)(t,{objectFit:"cover"})},h=function(e){var t=e.video,n={height:"100%",width:"100%",objectFit:"contain"};(0,r.elemStyle)(t,n)},v=function(e){var t=e.video,n={height:"100%",width:"100%",objectFit:"fill"};(0,r.elemStyle)(t,n)}},293(e,t,n){n.d(t,{getDiagnosticData:()=>a});var r=n(294),i=n(25),o=function(e){try{return e()}catch(e){return"ERROR: ".concat(e.message)}},a=function(e){var t=""!==i.TAGGED_VERSION&&i.TAGGED_VERSION.length>0?i.TAGGED_VERSION:r.PLAYER_VERSION,n={};return n.player_version=t,n.state=e.state,n.attributes=e.attributes,n.currentAsset=e.currentAsset(),n.currentAsset&&n.currentAsset.url&&n.currentAsset.url.length>100&&(n.currentAsset.url="".concat(n.currentAsset.url.substring(0,97),"...")),n.selectedAsset=e.selectedAsset(),n.selectedAsset&&n.selectedAsset.url&&n.selectedAsset.url.length>100&&(n.selectedAsset.url="".concat(n.selectedAsset.url.substring(0,97),"...")),n.getState=o((function(){return e.getState()})),n.getDuration=o((function(){return e.getDuration()})),n.getPlaybackRate=o((function(){return e.getPlaybackRate()})),n.getPlaybackMode=o((function(){return e.getPlaybackMode()})),n.isSeeking=o((function(){return e.isSeeking()})),n.getCurrentTime=o((function(){return e.getCurrentTime()})),n.activeBufferRange=o((function(){return e.activeBufferRange()})),n.sequentialBufferedRange=o((function(){return e.sequentialBufferedRange()})),n.getVolume=o((function(){return e.getVolume()})),n.timeBeforeEndOfBuffer=o((function(){return e.timeBeforeEndOfBuffer()})),n.lastBufferedTime=o((function(){return e.lastBufferedTime()})),n.totalBuffered=o((function(){return e.totalBuffered()})),n.anyBuffered=o((function(){return e.anyBuffered()})),n.getPreload=o((function(){return e.getPreload()})),n.rawVideoProps=o((function(){return s(e)})),n},u=["autoplay","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","muted","networkState","paused","playbackRate","preload","readyState","seeking","src","startDate","volume"],s=function(e){for(var t=e.video,n={},r=0;r<u.length;r++){var i=u[r],o=t[i];n[i]=o}return n}},294(e,t,n){n.d(t,{PLAYER_VERSION:()=>r});var r="main"},295(e,t,n){n.d(t,{PUBLIC_METHODS:()=>r,delegatePublicMethods:()=>i});var r=["activeBufferRange","addTextTracks","anyBuffered","bind","bindNamed","bufferInfo","canDownloadMedia","cancelFullscreen","captureCurrentFrame","changeQuality","changeStream","changeStreamWithoutLoad","changeVideo","currentAsset","defaultAsset","destroy","diagnosticData","eventContext","fit","getAudioTracks","getCurrentQuality","getCurrentTime","getCuts","getDuration","getDurationBeforeCuts","getMediaElement","getMediaType","getPlaybackMode","getPlaybackRate","getPreload","getState","getTimeAfterCuts","getTimeBeforeCuts","getTrim","getVolume","hasIssuedPlay","isChangingVideo","isInitializingFromUnmuted","isInFullscreen","isMuted","isSeeking","isSourceOfBrowserEvent","lastBufferedTime","mute","onEnterFullscreen","onHeightChange","onLeaveFullscreen","onMediaDataChanged","onPlayed","onReady","onWidthChange","pause","play","playType","removeTextTracks","requestFullscreen","reset","seek","seekOnPlay","selectedAsset","selectableAssets","selectableQualities","selectedQuality","sequentialBufferedRange","setAttributes","setCurrentTime","setPlaybackRate","setCuts","setTrim","setVolume","showFirstFrame","stopStreaming","timeBeforeEndOfBuffer","totalBuffered","totalPlayed","trigger","unbind","unbindNamed","unbindAllInNamespace","unmute","updateStartPosition"],i=function(e,t){!function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];t[i]||function(e){t[e]=function(){var t=n.call(this);return t?t[e].apply(t,arguments):null}}(i)}}(r,e,t)}},296(e,t,n){n.d(t,{default:()=>i});var r=n(16);null==r.Wistia.engines&&(r.Wistia.engines={});const i=function(e,t){r.Wistia.engines[e]=t}},297(e,t,n){n.d(t,{addTextTracks:()=>o,removeTextTracks:()=>a});var r=n(28),i=n(3),o=function(e,t){var n=(0,r.seqId)("wistia_captions_");e.forEach((function(e){var r=document.createElement("track");r.kind=e.kind||"captions",r.label=e.native_name,r.srclang=e.language,r.src=e.src,r._wistiaCaptionsId=e._wistiaCaptionsId||n,t.appendChild(r,{wistiaGridCaller:!0})}))},a=function(e,t){for(var n=Array.prototype.slice.call(t.childNodes),r=0;r<n.length;r++){var o=n[r];/^track$/i.test(o.tagName)&&o._wistiaCaptionsId===e&&(0,i.elemRemove)(o)}}},298(e,t,n){function r(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,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{PlaybackEngine:()=>o});var o=function(){return e=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.mediaData=n,this.attributes=r,this.unbinds=[]},(t=[{key:"destroy",value:function(){this.unbinds.forEach((function(e){"function"==typeof e&&e()})),this._bindings={}}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},303(e,t,n){n.d(t,{default:()=>_});var r=n(4),i=n(61),o=n(28),a=n(9),u=n(277),s=n(304),c=n(296),l=n(298);function f(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,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function h(e,t,n){return t=p(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var m=(0,a.cachedDetect)(),y=u.default.delegatePublicMethods,b=u.default.mediaDataWithAssets,w=function(e){function t(e,n,i,a){var s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=h(this,t,[e,n,i,a])).uuid=(0,o.seqId)("wistia_manual_quality_video_"),s.root=e,s.state={selectedQuality:"auto"},s.mediaData=n,s.allAssets=n.assets,s.attributes=i||{},s.name="ManualQualityVideo";var c=(0,r.clone)(s.attributes);return"metadata"===i.preload&&m.chrome&&(c.preload="none"),s.simpleVideo=new u.default(s.root,s.mediaDataForSimpleVideo(),c,a),s}return function(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&&g(e,t)}(t,e),n=t,(a=[{key:"mediaDataForSimpleVideo",value:function(){return b(this.mediaData,this.assetsForSimpleVideo())}},{key:"defaultAsset",value:function(){return s.bestAsset(this)}},{key:"selectableAssets",value:function(){return s.selectable(this)}},{key:"selectedQuality",value:function(){return"auto"===this.state.selectedQuality?"auto":this.simpleVideo.selectedQuality()}},{key:"onEnterFullscreen",value:function(){var e=this.simpleVideo.onEnterFullscreen();return"auto"===this.state.selectedQuality&&this.changeQuality("auto"),e}},{key:"onLeaveFullscreen",value:function(){var e=this.simpleVideo.onLeaveFullscreen();return"auto"===this.state.selectedQuality&&this.changeQuality("auto"),e}},{key:"assetsForSimpleVideo",value:function(){var e=this.selectableAssets();return e=(0,i.moveToFront)(e,this.defaultAsset())}},{key:"setAttributes",value:function(e){(0,r.assign)(this.attributes,e),this.simpleVideo.setAttributes(e)}},{key:"changeQuality",value:function(e,t,n){this.state.selectedQuality=e;var r=s.selectableWithoutAuto(this),o="auto"===e?this.defaultAsset():(0,i.findClosestAssetByQuality)(r,e);return"beforeplay"===this.getPlaybackMode()?(this.changeStreamWithoutLoad(o),Promise.resolve()):this.changeStream(o,t,n)}}])&&f(n.prototype,a),c&&f(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,c}(l.PlaybackEngine);y(w.prototype,(function(){return this.simpleVideo})),(0,c.default)("ManualQualityVideo",w);const _=w},304(e,t,n){n.d(t,{bestAsset:()=>h,selectable:()=>l,selectableWithoutAuto:()=>f});var r=n(272),i=n(4),o=n(61),a=n(12),u=n(305),s=a.wlog.getPrefixedFunctions("asset_selection"),c=(0,r.makeCacheable)("asset_selection"),l=function(e){return[d()].concat(f(e))},f=function(e){return(0,u.selectableAssets)(E(e),{hdr:e.attributes.allowHdr})},d=function(){return{bitrate:"variable",ext:"variable",height:"variable",public:!0,size:"variable",type:"variable",url:"",width:"variable",slug:"auto",display_name:"Auto"}},h=function(e){var t=e.attributes;return s.info("bestAsset"),t.qualityMin>0||t.qualityMax<=2160?w(e)||m(e):e.isInFullscreen()?(s.info("infullscreen"),v(e)):(s.info("default"),S(e)||m(e))},v=function(e){return e.attributes.supportsHd?(s.info("supportsHd=true"),p(e)):(s.info("supportsHd=false"),g(e))},p=function(e){return T(e)||S(e)||P(e)||k(e)},g=function(e){return S(e)||m(e)},m=function(e){return c(e,"md_or_sd",(function(){return e.attributes.width>=720&&P(e)||k(e)}))},y=function(e){var t=e.attributes;return{qualityMin:t.qualityMin,qualityMax:t.qualityMax}},b=function(e,t){return(0,o.playable)(E(e),t)},w=function(e){return(0,o.mp4)(E(e),y(e))},_=function(e,t){return b(e,(0,i.assign)(y(e),t))},k=function(e){return c(e,"sd_asset",(function(){return function(e){return(0,o.iphone)(E(e),y(e))}(e)||w(e)||function(e,t){return(0,o.iphone)(E(e),t)}(e)||b(e)}))},P=function(e){return c(e,"md_asset",(function(){return _(e,{width:[720,980],sortBy:"width desc, bitrate desc"})}))},T=function(e){return c(e,"hd_asset",(function(){return _(e,{width:[980,2e3],sortBy:"width desc, bitrate desc"})}))},S=function(e){var t=e.attributes;return null!=t.savedBandwidth?_(e,{bitrate:[0,t.savedBandwidth],width:[0,2e3],sortBy:"width desc, bitrate desc"})||m(e):null},E=function(e){return e.allAssets}},305(e,t,n){n.d(t,{selectableAssets:()=>u});var r=n(9),i=n(4),o=n(61),a=(0,r.cachedDetect)(),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{hdr:!1},n=(0,o.filter)(e,{container:a.video.webm?/webm|mp4/:"mp4",sortBy:"width asc, bitrate desc",public:!0,status:o.READY});return n=(0,i.filter)(n,(function(r,o){if("webm"===r.container)return!0;if(a.hdr&&t.hdr){var u=n[o+1],s=n[o-1],c="hdr_video"===(null==u?void 0:u.type)&&u.width===r.width,l="hdr_video"===(null==s?void 0:s.type)&&s.width===r.width;if((c||l)&&"hdr_video"!==r.type)return!1}else if("hdr_video"===r.type)return!1;return 0===(0,i.filter)(e,(function(e){return"webm"===e.container&&e.width===r.width})).length}))}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{__webpack_require__.d(__webpack_exports__,{default:()=>e});const e=__webpack_require__(303).default})();const __webpack_exports__default=__webpack_exports__.default;export{__webpack_exports__default as default};
//# debugId=31ccb6c1-ec07-43f6-8503-da1d8c8536ab
//# sourceMappingURL=manual_quality_video.js.map