var e={2(e){e.exports=window.Wistia.Preact},4(e,t,n){n.d(t,{getDeep:()=>r,isArray:()=>l,setDeep:()=>o});var 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)};const s=Array.prototype.slice,r=(e,t,n)=>{t="string"==typeof t?t.split("."):s.call(t);let r,o=e;for(;null!=e&&t.length;){let s=t.shift();void 0!==e[s]&&(h(e[s])||l(e[s]))||!n||(0===s?(e=o[r]=[])[s]={}:e[s]={}),o=e,r=s,e=i(e,s)?e[s]:void 0}return e},o=(e,t,n)=>a(e,t,n,!0),a=(e,t,n,i=!0)=>{const o=(t="string"==typeof t?t.split("."):s.call(t)).pop();null!=(e=r(e,t,!0))&&(h(e)||l(e))&&null!=o&&(i&&null==n?delete e[o]:e[o]=n)},c=/^\s*function Array()/,l=e=>null!=e&&e.push&&c.test(e.constructor),d=/^\s*function Object()/,h=e=>null!=e&&"object"==typeof e&&d.test(e.constructor)},7(e,t,n){let i;n.d(t,{z:()=>s});try{i=self,i.self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(e){i="undefined"!=typeof globalThis?globalThis:window}const s=i},9(e,t,n){var i=n(10),s=n(13);const r={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},o=function(){},a=function(e){const t=this;return null==e&&(e={}),t.error=(...e)=>t.log(0,e),t.warn=(...e)=>t.log(1,e),t.notice=(...e)=>t.log(1,e),t.info=(...e)=>t.log(3,e),t.debug=(...e)=>t.log(4,e),t.ctx=e,t.ctx.initializedAt||t.reset(),t},c=a.prototype;c.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()},c.setLevel=function(e){const t=this.logFunc(3);null!=r[e]?(this.ctx.level=r[e],t(`Log level set to "${e}" (${r[e]})`)):t(`Unknown log level "${e}"`)},c.setGrep=function(e){this.ctx.grep=e},c.setGrepv=function(e){this.ctx.grepv=e},c.first1000LogLines=function(){return this.ctx.first1000LogLines},c.last1000LogLines=function(){return this.ctx.last1000LogLines},c.matchedGrep=function(e){let t=!1;if(this.ctx.grep||this.ctx.grepv){let n=[];for(let t=0;t<e.length;t++)try{let i=e[t];n.push(i.toString&&i.toString())}catch(e){n.push("")}let i=n.join(" "),s=!this.ctx.grep||i.match(this.ctx.grep),r=!this.ctx.grepv||!i.match(this.ctx.grepv);t=s&&r}else t=!0;return t},c.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},c.messagesToLogLine=function(e,t,n){let i,s=[e,t];s=s.concat(n);try{i=s.join(" ")||"",i.length>200&&(i=i.slice(0,200))}catch(e){i="could not serialize"}return i},c.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))},c.log=function(e,t){const n=e<=this.ctx.level,s=e<4,r=(n||s)&&this.matchedGrep(t);let o;if(0===e&&(0,i.mj)("problem",{type:"error-logged",data:{messages:t}}),r&&(n||s)&&(o=this.now()),s&&r){const n=this.messagesToLogLine(e,o,t);this.persistLine(n)}if(n&&r){const n=this.logFunc(e);let i;1===t.length&&(i=t[0])instanceof Error?(n(i.message),i.stack&&n(i.stack)):n(...t)}};const l=function(...e){console.error.apply(console,e)},d=function(...e){console.warn.apply(console,e)},h=function(...e){console.info.apply(console,e)},u=function(...e){console.debug.apply(console,e)},g=function(e){console.log.apply(console,e)};c.logFunc=function(e){if(null==e&&(e=this.level),!console)return o;let t;return 0===e?t=l:1===e?t=d:3===e?t=h:4===e&&(t=u),t||(t=g),"function"!=typeof t&&(this.noConsoleLog=!0,t=o),t},c.maybePrefix=function(e,t){if(e){if("function"==typeof e)try{e=e()}catch(t){e=`prefix err "${t.message}"`}return e instanceof Array?e.concat(t):[e].concat(t)}return t},c.getPrefixedFunctions=function(e){return{log:(...t)=>this.log(0,this.maybePrefix(e,t)),error:(...t)=>this.log(0,this.maybePrefix(e,t)),warn:(...t)=>this.log(1,this.maybePrefix(e,t)),notice:(...t)=>this.log(1,this.maybePrefix(e,t)),info:(...t)=>this.log(3,this.maybePrefix(e,t)),debug:(...t)=>this.log(4,this.maybePrefix(e,t))}},s.s&&null==s.s.wlogCtx&&(s.s.wlogCtx={}),new a(s.s.wlogCtx)},10(e,t,n){n.d(t,{mj:()=>o,tJ:()=>r});var i=n(11),s=n(13);(0,i.R)(s.s),s.s.bind.bind(s.s);const r=s.s.on.bind(s.s),o=(s.s.off.bind(s.s),s.s.rebind.bind(s.s),s.s.trigger.bind(s.s));s.s.unbind.bind(s.s)},11(e,t,n){n.d(t,{R:()=>o});var i=n(12),s=n(13),r=n(16);s.s.bindable||(s.s.EventShepherdManager||(s.s.EventShepherdManager={}),s.s.bindable={bind(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;const n=this.embedElement||this.container;if(Object.keys(r.h).includes(e)&&n){const i=a(n);return void 0===s.s.EventShepherdManager[i]&&(s.s.EventShepherdManager[i]=new r.S),s.s.EventShepherdManager[i].addListener(e,n,t),this}if(t)return i.oI.call(this,e,t),this;s.s.warn&&s.s.warn(this.constructor.name,"bind","falsey value passed in as callback:",t)},unbind(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;const n=this.embedElement||this.container;if(Object.keys(r.h).includes(e)&&n){const i=a(n);return void 0===s.s.EventShepherdManager[i]||s.s.EventShepherdManager[i].removeListener(e,n,t),this}return t?i.Nw.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(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),()=>{this.crossTime.removeBinding(arguments[1],arguments[2])};if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),()=>{this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3])};const n=this.embedElement||this.container;if(Object.keys(r.h).includes(e)&&n){const i=a(n);return void 0===s.s.EventShepherdManager[i]&&(s.s.EventShepherdManager[i]=new r.S(n)),s.s.EventShepherdManager[i].addListener(e,n,t),()=>{s.s.EventShepherdManager[i].removeListener(e,n,t)}}return i.oI.call(this,e,t)},off(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]);const n=this.embedElement||this.container;if(Object.keys(r.h).includes(e)&&n){const i=a(n);return void 0===s.s.EventShepherdManager[i]?()=>{}:s.s.EventShepherdManager[i].removeListener(e,n,t)}return i.Nw.call(this,e,t)},rebind(e,t){return this.unbind(e,t),this.bind(e,t),this},trigger(e,...t){return i.hZ.call(this,e,...t),this},bindNamed(){return i.RX.apply(this,arguments)},unbindNamed(){return i._Z.apply(this,arguments)},unbindAllInNamespace(){return i.E0.apply(this,arguments)}});const o=function(e){for(let t in s.s.bindable){const n=s.s.bindable[t];e[t]||(e[t]=n)}},a=function(e){return e?.mediaId?e.mediaId:e?.id?e.id:void 0}},12(e,t,n){n.d(t,{E0:()=>g,Nw:()=>a,RX:()=>h,_Z:()=>u,hZ:()=>c,oI:()=>o});var i=n(13),s=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};const r=Array.prototype.slice,o=function(e,t){const n=this;return n._bindings||(n._bindings={}),n._bindings[e]||(n._bindings[e]=[]),n._bindings[e].push(t),function(){n.unbind(e,t)}},a=function(e,t){if(!this._bindings)return this;if(!this._bindings[e])return this;const n=[];for(let i=0;i<this._bindings[e].length;i++){let s=this._bindings[e][i];s!==t&&n.push(s)}this._bindings[e]=n},c=function(e,...t){return this._bindings&&null!=this._bindings.all&&l.apply(this,["all",e].concat(t)),l.apply(this,[e].concat(t))},l=function(e){if(!this._bindings)return this;if(!this._bindings[e])return this;const t=r.call(arguments,1);let n;const s=[...this._bindings[e]];for(let r=0;r<s.length;r++){let o=s[r];try{o.apply(this,t)===this.unbind&&(null==n&&(n=[]),n.push({event:e,fn:o}))}catch(e){if(this._throwTriggerErrors)throw e;i.s.error&&i.s.error(e)}}if(n)for(let e=0;e<n.length;e++){let t=n[e];this.unbind(t.event,t.fn)}return this},d=function(e,t){null==e._namedBindings&&(e._namedBindings={}),null==e._namedBindings[t]&&(e._namedBindings[t]={})},h=function(e,t,n,i){return this.unbindNamed(e,t),function(e,t,n,i,s){d(e,t),e._namedBindings[t][n]={event:i,fn:s}}(this,e,t,n,i),this.bind(n,i),function(){this.unbindNamed(e,t)}},u=function(e,t){d(this,e);const n=function(e,t,n){return d(e,t),e._namedBindings[t][n]}(this,e,t);if(n){const{event:e,fn:t}=n;this.unbind(e,t)}const i=this._namedBindings;return delete i[e][t],v(i[e])&&delete i[e],this},g=function(e){const t=this._namedBindings&&this._namedBindings[e];if(null==t)return this;for(let n in t)s(t,n)&&this.unbindNamed(e,n)},v=function(e){for(let t in e)if(s(e,t))return!1;return!0};var m;(m=function(){}.prototype).bind=o,m.unbind=a,m.on=o,m.off=a,m.rebind=function(e,t){return this.unbind(e,t),this.bind(e,t),{event:e,fn:t}},m.trigger=c,m.bindNamed=h,m.unbindNamed=u,m.unbindAllInNamespace=g},13(e,t,n){n.d(t,{s:()=>a});var i=n(2),s=n(14),r=n(15),o=n(7);o.z.Wistia??={},o.z.Wistia.Preact??={...i,hooks:s,compat:r},o.z.Wistia._destructors??={},o.z.Wistia._initializers??={},o.z.Wistia._remoteData??=new Map,o.z.Wistia.api??=()=>(console.error("Accessed Wistia.api() before it was initialized"),null),o.z.Wistia.defineControl??=()=>(console.error("Accessed Wistia.defineControl() before it was initialized"),null),o.z.Wistia.EventShepherdManager??={},o.z.Wistia.mixin??=(e,t={})=>{Object.keys(t).forEach((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])}))},o.z.Wistia.playlistMethods??=new Map,o.z.Wistia.PublicApi??=null,o.z.Wistia.uncacheMedia??=()=>(console.error("Accessed Wistia.uncacheMedia() before it was initialized"),null),o.z.Wistia.VisitorKey??=null,o.z.Wistia.visitorKey??=null,o.z.Wistia.wistia??=void 0,o.z.Wistia._liveStreamEventDataPromises??={},o.z.Wistia._mediaDataPromises??={},o.z.Wistia._liveStreamPollingPromises??={},o.z.Wistia.first??=()=>o.z.Wistia.api()??document.querySelector("wistia-player");const a=o.z.Wistia},14(e){e.exports=window.Wistia.Preact.hooks},15(e){e.exports=window.Wistia.Preact.compat},16(e,t,n){n.d(t,{S:()=>r,h:()=>i});const i={mutechange:n(17).MUTE_CHANGE_EVENT},s={mutechange:e=>e.isMuted};class r{constructor(){var e,t,n;e=this,n={},(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="convertedEventsMap"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}addListener(e,t,n){const r=i[e]??e;this.convertedEventsMap[r]??=[];const o=t=>{if(s[e]){const i=s[e](t.detail);n(i)}else n()};this.convertedEventsMap[r].push({givenCallback:n,eventListenerCallback:o}),t.addEventListener(r,o)}removeAllListeners(e){Object.keys(this.convertedEventsMap).forEach((t=>{this.convertedEventsMap[t]?.forEach((n=>{e.removeEventListener(t,n.eventListenerCallback)})),this.convertedEventsMap[t]=[]}))}removeListener(e,t,n){const s=i[e]??e,r=[];n?(t.removeEventListener(s,n),this.convertedEventsMap[s]&&(this.convertedEventsMap[s].forEach(((e,i)=>{e.givenCallback===n&&(r.push(i),t.removeEventListener(s,e.eventListenerCallback))})),r.forEach((e=>{this.convertedEventsMap[s]&&this.convertedEventsMap[s].splice(e,1)})))):this.convertedEventsMap[s]=[]}}},17(e,t,n){n.d(t,{MUTE_CHANGE_EVENT:()=>i});const i="mute-change"},36(e,t,n){n.d(t,{vJ:()=>a});var i=n(10),s=n(37),r=n(39),o=n(13);o.s._visitorTrackingDomain||(o.s._visitorTrackingDomain=location.hostname||""),o.s._visitorTracking||((()=>{const e=(0,s.y1)().visitorTrackingEnabled;null!=e&&((0,s.$B)((e=>delete e.visitorTrackingEnabled)),o.s._visitorTracking={},o.s._visitorTracking[o.s._visitorTrackingDomain]={isEnabled:e,updatedAt:Date.now()},(0,s.$B)((e=>e.visitorTracking=o.s._visitorTracking)))})(),o.s._visitorTracking=(0,s.y1)().visitorTracking||{});const a=e=>null==e?l():c(e);o.s.consent=a;const c=(e,t=o.s._visitorTrackingDomain)=>{"default"===e?delete o.s._visitorTracking[t]:o.s._visitorTracking[t]={isEnabled:"true"==`${e}`,updatedAt:Date.now()},(0,s.$B)((e=>e.visitorTracking=o.s._visitorTracking)),(0,i.mj)("visitortrackingchange",e),[...document.getElementsByTagName("wistia-player")].forEach((t=>{t.dispatchEvent(new CustomEvent("visitor-tracking-change",{detail:{isTrackingEnabled:e}}))}))},l=()=>{if("boolean"==typeof o.s._visitorTracking)return o.s._visitorTracking;if(o.s._visitorTracking){const e=(()=>{if(o.s._visitorTrackingDomain){const e=o.s._visitorTrackingDomain.split(".");for(;e.length>0;){const t=o.s._visitorTracking[e.join(".")],n=t&&t.isEnabled;if(null!=n)return n;e.shift()}}})();if(null!=e)return Boolean(e)}const e=(0,r.getAllApiHandles)();if(o.s.channel&&o.s.channel.all)try{e.push(...o.s.channel.all())}catch(e){}return!(e.some((e=>!0===(e._mediaData||e._galleryData||{}).privacyMode))||d())},d=()=>Object.values(o.s._privacyModeSources||{}).some(Boolean)},37(e,t,n){n.d(t,{$B:()=>a,y1:()=>o});var i=n(38),s=n(13);const r="wistia",o=()=>(0,i.Lg)(r),a=e=>(s.s._localStorage=(0,i.yo)(r,e),s.s._localStorage)},38(e,t,n){n.d(t,{Lg:()=>c,yo:()=>l});var i=n(13);const s=e=>{setTimeout((()=>{throw e}),0)},r="_namespacedLocalStorage",o=(e="wistia-test-localstorage")=>{try{if("undefined"==typeof localStorage)return!1;if(null!=i.s._localStorageWorks)return i.s._localStorageWorks;const t=localStorage.getItem(e);localStorage.removeItem(e),localStorage.setItem(e,t),localStorage.removeItem(e),i.s._localStorageWorks=!0}catch(e){i.s._localStorageWorks=!1}return i.s._localStorageWorks},a=()=>(null==i.s[r]&&(i.s[r]={}),i.s[r]),c=e=>{if(!o())return a()[e]||{};if(localStorage[e])try{return"null"===localStorage[e]?{}:JSON.parse(localStorage[e])}catch(e){s(e)}return{}},l=(e,t)=>{const n=c(e);try{t(n)}catch(e){s(e)}return((e,t)=>{if(!o())return null!=t&&"object"==typeof t&&(a()[e]=t),t;try{a()[e]=t,localStorage[e]=JSON.stringify(t)}catch(e){s(e)}return t})(e,n)}},39(e,t,n){n.d(t,{getAllApiHandles:()=>s}),n(9);var i=n(40);const s=()=>(void 0===(0,i.wData)("video")?[]:Object.values((0,i.wData)("video"))).concat(void 0===(0,i.wData)("iframe_api")?[]:Object.values((0,i.wData)("iframe_api")))},40(e,t,n){n.d(t,{wData:()=>r});var i=n(4),s=n(13);const r=(e,t)=>((0,i.isArray)(e)||(e=e.split(".")),null!=t&&(0,i.setDeep)(s.s,["_data"].concat(e),t),(0,i.getDeep)(s.s,["_data"].concat(e)))},248(e,t,n){n.d(t,{g:()=>r});var i=n(36),s=n(249);class r{constructor(e){this.measurementId=e.measurementId,this.customMap=e.customMap,this.sendTo=e.sendTo?{send_to:e.sendTo}:{},this.usePageGA4Config=e.usePageGA4Config,this.initializeGtag()}initializeGtag(){if(!(0,i.vJ)())return;const e=void 0===window.gtag;if(e&&(0,s.G)(this.measurementId),!this.usePageGA4Config||e){const e={send_page_view:!1,cookie_flags:"SameSite=None; Secure"};this.customMap&&(e.custom_map=this.customMap),window.gtag("config",this.measurementId,e)}}trackEvent(e,t){(0,i.vJ)()&&window.gtag("event",this.formatEventName(e),{...this.formatParams(t),...this.sendTo})}formatParams(e){let t={};return Object.keys(e).forEach((n=>{let i=n.replaceAll(" ","_").toLowerCase();t[i]=e[n]})),t}formatEventName(e){return`wistia_${e.replace(/[^a-z0-9]+/gi,"_").toLowerCase()}`}}},249(e,t,n){function i(e){(()=>{const e=document.getElementsByTagName("script");for(let t=0;t<e.length;t++)if(e[t].src.includes("www.googletagmanager.com/gtag/js"))return!0;return!1})()||function(e,t,n,i,s){e[i]=e[i]||[],e[i].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});let r=t.createElement("script");r.async=!0,r.src=`https://www.googletagmanager.com/gtag/js?id=${s}`,t.head.appendChild(r)}(window,document,0,"dataLayer",e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date)}n.d(t,{G:()=>i})}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{n.d(i,{a:()=>a});var e=n(36),t=n(10),s=n(248),r=n(13);function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class a extends r.s.Plugin.Base{constructor(n,i,s=console){super(n,i),o(this,"handleSecondChangeEvent",(e=>{this.secondsPlayedSinceLastReport+=1,this.secondsPlayedSinceLastReport>=60&&this.trackSecondsPlayedEvent()})),o(this,"trackConversionEvent",(()=>{this.trackEvent("Conversion")})),o(this,"trackConversionEventBriteEvent",(e=>{this.trackEvent(`Eventbrite Registration - ${e.eventId}`)})),o(this,"trackConversionLinkEvent",(e=>{this.trackEvent(`Clicked Link - ${e.link}`)})),o(this,"trackEvent",((e,t)=>{const n={event_category:this.eventCategory,event_label:this.media.name(),value:t,...this.customDimensions};this.gtag.trackEvent(e,n)})),o(this,"trackPercentPlayedEvent",((e,t)=>{[.25,.5,.75,.95].forEach((n=>{e>=n&&n>t&&(this.trackEvent(100*n+" Percent Played"),this.options.legacy&&this.trackEvent(100*n+"% Watched"))}))})),o(this,"trackPlayEvent",(()=>{this.trackEvent("Play"),this.media.unbind("play",this.trackPlayEvent)})),o(this,"trackSecondsPlayedEvent",(()=>{this.secondsPlayedSinceLastReport&&(this.trackEvent("Seconds Played",this.secondsPlayedSinceLastReport),this.options.legacy&&this.trackEvent("Seconds Watched",this.secondsPlayedSinceLastReport),this.secondsPlayedSinceLastReport=0)})),this.media=n,this.options=i,this.logger=s,this.secondsPlayedSinceLastReport=0;const r=this.media._optionSources();if(!r.customize?.plugin?.googleAnalytics4?.on)return;const a=this.initSendTo(),c=a||this.options.measurementId;(0,e.vJ)()&&!this.media.embedOptions().doNotTrack?(this.initGtag({...i,measurementId:c,sendTo:a}),this.initMediaBindings()):(0,t.tJ)("visitortrackingchange",(()=>{(0,e.vJ)()&&(this.initGtag({...i,measurementId:c,sendTo:a}),this.initMediaBindings())}))}get eventCategory(){return this.channelName?`Channel: ${this.channelName}`:this.media.isAudio()?"Audio":"Video"}get channelHashedId(){return this.media._mediaData.channelHashedId}get channelName(){if(r.s.channel&&this.channelHashedId){const e=r.s.channel(this.channelHashedId);if(e)return e.title()}return null}get customDimensions(){return{"Channel Hashed Id":this.channelHashedId,"Video Hashed Id":this.media.hashedId()}}initSendTo(){const e=this.media._optionSources(),t=e.global?.plugin?.googleAnalytics4?.measurementId,{usePageGA4Config:n,measurementId:i}=e.customize.plugin.googleAnalytics4;return t&&!n&&this.logger.log('Warning: The googleAnalytics4 plugin option, measurementId, has been ignored. Please turn on "Use page GA4 configuration" in your integration settings for the googleAnalytics4 measurement id to take effect.'),n?t:i}initGtag(e){this.gtag||(this.gtag=new s.g({measurementId:e.measurementId,customMap:e.customMap,usePageGA4Config:e.usePageGA4Config,sendTo:e.sendTo}))}initMediaBindings(){this.media.bind("conversion-eventbrite",this.trackConversionEventBriteEvent),this.media.bind("conversion-link",this.trackConversionLinkEvent),this.media.bind("conversion-postRoll",this.trackConversionLinkEvent),this.media.bind("conversion",this.trackConversionEvent),this.media.bind("percentwatchedchanged",this.trackPercentPlayedEvent),this.media.bind("play",this.trackPlayEvent),"loop"!==this.media._attrs.endVideoBehavior&&(this.media.bind("secondchange",this.handleSecondChangeEvent),this.media.bind("end",this.trackSecondsPlayedEvent),this.media.bind("pause",this.trackSecondsPlayedEvent))}}})();const s=i.a;export{s as GoogleAnalytics};
//# debugId=8333bc03-56ea-4e24-bf06-edc28a99fc6d
//# sourceMappingURL=googleAnalytics.js.map