PageSourceSearch

https://cdn.mida.so/js/mida-integration.js?v=

js mida.so collected 2026-10-02 03:42:00 UTC 43,807 bytes, 1 lines download raw bytes

1void 0===window.executeWithRetry&&(window.executeWithRetry=(t,e,n,o={})=>{const i={maxRetries:5,retryInterval:2e3,enableLogging:!1,...o};let a=0;const r=()=>{if(e())try{n()}catch(e){i.enableLogging&&console.error(t+" execution failed:",e)}else a<i.maxRetries?(a++,i.enableLogging&&console.warn(`${t} not ready, retrying... (${a}/${i.maxRetries})`),setTimeout(r,i.retryInterval)):i.enableLogging&&console.error(`${t} not ready after ${i.maxRetries} retries`)};r()});var executeWithRetry=window.executeWithRetry;function getCookieValue(e){try{var t=document.cookie.match(new RegExp("(?:^|;\\s*)"+e+"=([^;]+)"));return t&&t[1]?decodeURIComponent(t[1]):null}catch(e){return null}}function getSegmentAnonymousId(){var e=null;try{e=localStorage.getItem("ajs_anonymous_id")}catch(e){}if(!(e=e||getCookieValue("ajs_anonymous_id")))return null;try{e=JSON.parse(e)}catch(e){}return"string"==typeof e&&e?e:null}function midaStaggerIntegrationStep(e){function t(){try{e()}catch(e){console.error("Error in window.executeIntegration:",e)}}var n=Date.now(),o=Math.max(n,window._midaIntegrationNextAt),n=o-n;window._midaIntegrationNextAt=o+window._midaIntegrationStaggerMs,n<=0?t():setTimeout(t,n)}void 0===window._midaIntegrationBootstrapDone&&(window._midaIntegrationBootstrapDone=!1),void 0===window._midaIntegrationStaggerMs&&(window._midaIntegrationStaggerMs=50),void 0===window._midaIntegrationNextAt&&(window._midaIntegrationNextAt=0),window.executeIntegration=(i={},a="mida_conversion")=>{if(null===(i=Object.assign({},i)).variant||void 0===i.variant||""===i.variant)return!1;let n=window.md_int_list[i.id];var e=window.midaDefaultIntegrations||{};n&&Object.keys(n).length?Object.keys(e).length&&(n=Object.assign({},e,n)):n=e;let r=!1;if(!n)return!1;0===Number(i.variant)&&(i.variant="Control");var d=Object.keys(n);if(d.length)for(let e=0;e<d.length;e++)try{let t=d[e],o=n[t];o&&midaStaggerIntegrationStep(function(){var e;"gtm"!==t||r||(r=!0,window.dataLayer=window.dataLayer||[],e=Object.assign({},i,{event:a}),window.dataLayer.push(e)),"ga4"===t&&(o.mode&&2===Number(o.mode)&&(!r||r&&"dataLayer"!==o.custom)?("dataLayer"===o.custom&&(r=!0),window[o.custom]=window[o.custom]||[],e=Object.assign({},i,{event:a}),window[o.custom].push(e)):"function"==typeof gtag?o.debugMode&&1===Number(o.debugMode)?o.format&&2===Number(o.format)?gtag("event",`${a}_${i.id}_`+i.variant.replace(/ /g,"_"),{debug_mode:!0}):gtag("event",a,Object.assign({},i,{debug_mode:!0})):o.format&&2===Number(o.format)?gtag("event",`${a}_${i.id}_`+i.variant.replace(/ /g,"_")):gtag("event",a,i):window.dataLayer&&(o.debugMode&&1===Number(o.debugMode)?o.format&&2===Number(o.format)?window.dataLayer.push({event:`${a}_${i.id}_`+i.variant.replace(/ /g,"_"),debug_mode:!0}):window.dataLayer.push(Object.assign({},i,{event:a,debug_mode:!0})):o.format&&2===Number(o.format)?window.dataLayer.push({event:`${a}_${i.id}_`+i.variant.replace(/ /g,"_")}):window.dataLayer.push(Object.assign({},i,{event:a})))),"hubspot"===t&&executeWithRetry(t,()=>"undefined"!=typeof _hsq&&_hsq,()=>{try{_hsq.push(["trackCustomBehavioralEvent",{name:a,properties:i}])}catch(e){console.error("Error calling Hubspot integration:",e)}}),"mixpanel"===t&&executeWithRetry(t,()=>"undefined"!=typeof mixpanel&&mixpanel&&"function"==typeof mixpanel.track,()=>{try{var e=i.uuid||window._h_uuid||"",t=a+"_"+i.id+"_"+e,n=Object.assign({},i,{$insert_id:t});mixpanel.track(a,n)}catch(e){console.error("Error calling Mixpanel integration:",e)}}),"amplitude"===t&&executeWithRetry(t,()=>"undefined"!=typeof amplitude&&amplitude&&"function"==typeof amplitude.track,()=>{try{amplitude.track(a,i)}catch(e){console.error("Error calling Amplitude integration:",e)}}),"posthog"===t&&(e=!1,e="mida_pageview"===a&&0!==o.sendPageview||"mida_conversion"===a&&0!==o.sendConversion||"mida_execute"===a||e)&&executeWithRetry(t,()=>"undefined"!=typeof posthog&&posthog&&"function"==typeof posthog.capture,()=>{try{posthog.capture(a,i)}catch(e){console.error("Error calling PostHog integration:",e)}}),"klaviyo"===t&&executeWithRetry(t,()=>"undefined"!=typeof klaviyo&&"function"==typeof klaviyo.track||window._learnq,()=>{try{"undefined"!=typeof klaviyo&&"function"==typeof klaviyo.track?klaviyo.track(a,i):window._learnq&&(window._learnq=window._learnq||[],window._learnq.push(["track",a,i]))}catch(e){console.error("Error calling Klaviyo integration:",e)}});let n={event:a,test_id:i.id,test_name:i.name,test_variant:i.variant,timestamp:i.timestamp,uuid:window._h_uuid};if("segment"===t&&executeWithRetry(t,()=>"undefined"!=typeof analytics&&analytics&&!!getSegmentAnonymousId(),()=>{try{if(o.oncePerSession&&1===Number(o.oncePerSession)){var e="_mida_seg_"+a+"_"+i.id;if(mida.getCookie(e))return;var t=window.cookie_domain||window.location.hostname;document.cookie=e+"=1;domain="+t+";path=/;SameSite=Lax"}o.mode&&Number(o.mode);o.mode&&1===Number(o.mode)?analytics.track(a,i):o.mode&&2===Number(o.mode)?analytics.identify(n):o.mode&&3===Number(o.mode)&&(analytics.track(a,i),analytics.identify(n))}catch(e){console.error("Error calling Segment integration:",e)}}),"http_webhook"===t&&(i.endpoint=o.endpoint,i.method=o.method,i.uuid=window._h_uuid,i.key=window._h_key,i.type="mida_conversion"===a?"conversion":"mida_execute"===a?"execute":"visit",o.status))try{mida.fetch("/integration/webhook","POST",i,()=>{})}catch(e){console.error(e)}"mc"===t&&executeWithRetry(t,()=>"function"==typeof window.clarity,()=>{try{window.clarity("set",a,`${a}_${i.id}_`+i.variant)}catch(e){console.error("Error calling Microsoft Clarity integration:",e)}}),"hotjar"===t&&executeWithRetry(t,()=>"function"==typeof window.hj||!0,()=>{try{window.hj=window.hj||function(){(hj.q=hj.q||[]).push(arguments)},hj("event",a+"_"+i.id),hj("event",`${a}_${i.id}_`+i.variant)}catch(e){console.error("Error calling Hotjar integration:",e)}},{maxRetries:5}),"cio"===t&&executeWithRetry(t,()=>"undefined"!=typeof _cio&&"function"==typeof _cio.track||window.cio&&"function"==typeof window.cio.track,()=>{try{"undefined"!=typeof _cio&&"function"==typeof _cio.track?_cio.track(a,i):window.cio&&"function"==typeof window.cio.track&&window.cio.track(a,i)}catch(e){console.error("Error calling Customer.io integration:",e)}}),"contentsquare"===t&&executeWithRetry(t,()=>!0,()=>{try{window._uxa=window._uxa||[],window._uxa.push(["trackDynamicVariable",{key:a,value:JSON.stringify({test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}])}catch(e){console.error("Error calling ContentSquare integration:",e)}},{maxRetries:5}),"heap"===t&&executeWithRetry(t,function(){return"undefined"!=typeof heap&&heap&&"function"==typeof heap.track}
1,function(){try{heap.track(a,i)}catch(e){console.error("Error calling Heap integration:",e)}}),"fullstory"===t&&executeWithRetry(t,function(){return"function"==typeof FS},function(){try{FS("trackEvent",{name:a,properties:{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp}})}catch(e){console.error("Error calling FullStory integration:",e)}}),"luckyorange"===t&&(window.LOQ=window.LOQ||[],window.LOQ.push(["ready",function(e){e.$internal.ready("events").then(function(){try{e.events.track(a+"_"+i.id+"_"+i.variant,{test_id:i.id,test_name:i.name,variant:i.variant})}catch(e){console.error("Error calling Lucky Orange integration:",e)}})}])),"pendo"===t&&executeWithRetry(t,function(){return"undefined"!=typeof pendo&&pendo&&"function"==typeof pendo.track},function(){try{pendo.track(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Pendo integration:",e)}}),"braze"===t&&executeWithRetry(t,function(){return"undefined"!=typeof braze&&"function"==typeof braze.logCustomEvent},function(){try{braze.logCustomEvent(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Braze integration:",e)}}),"logrocket"===t&&executeWithRetry(t,function(){return"undefined"!=typeof LogRocket&&LogRocket&&"function"==typeof LogRocket.track},function(){try{LogRocket.track(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling LogRocket integration:",e)}}),"mparticle"===t&&executeWithRetry(t,function(){return"undefined"!=typeof mParticle&&mParticle&&"function"==typeof mParticle.logEvent},function(){try{mParticle.logEvent(a,mParticle.EventType.Other,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling mParticle integration:",e)}}),"gainsightpx"===t&&executeWithRetry(t,function(){return"function"==typeof aptrinsic},function(){try{aptrinsic("track",a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Gainsight PX integration:",e)}}),"clevertap"===t&&executeWithRetry(t,function(){return"undefined"!=typeof clevertap&&clevertap&&clevertap.event&&"function"==typeof clevertap.event.push},function(){try{clevertap.event.push(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling CleverTap integration:",e)}}),"moengage"===t&&executeWithRetry(t,function(){return"undefined"!=typeof Moengage&&Moengage&&"function"==typeof Moengage.track_event},function(){try{Moengage.track_event(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling MoEngage integration:",e)}}),"mouseflow"===t&&executeWithRetry(t,function(){return void 0!==window._mfq},function(){try{window._mfq=window._mfq||[],window._mfq.push(["setVariable","mida_event",a]),window._mfq.push(["setVariable","mida_test_id",String(i.id)]),window._mfq.push(["setVariable","mida_test_name",i.name]),window._mfq.push(["setVariable","mida_variant",String(i.variant)]),window._mfq.push(["tag",a+"_"+i.id+"_"+i.variant])}catch(e){console.error("Error calling Mouseflow integration:",e)}}),"smartlook"===t&&executeWithRetry(t,function(){return"function"==typeof smartlook},function(){try{smartlook("track",a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Smartlook integration:",e)}}),"inspectlet"===t&&executeWithRetry(t,function(){return"undefined"!=typeof __insp&&__insp},function(){try{window.__insp=window.__insp||[],window.__insp.push(["tagSession",{mida_event:a,mida_test_id:i.id,mida_test_name:i.name,mida_variant:i.variant}])}catch(e){console.error("Error calling Inspectlet integration:",e)}}),"rudderstack"===t&&executeWithRetry(t,function(){return"undefined"!=typeof rudderanalytics&&rudderanalytics&&"function"==typeof rudderanalytics.track},function(){try{rudderanalytics.track(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling RudderStack integration:",e)}}),"kissmetrics"===t&&executeWithRetry(t,function(){return"undefined"!=typeof _kmq&&_kmq},function(){try{window._kmq=window._kmq||[],window._kmq.push(["record",a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp}])}catch(e){console.error("Error calling Kissmetrics integration:",e)}}),"woopra"===t&&executeWithRetry(t,function(){return"undefined"!=typeof woopra&&woopra&&"function"==typeof woopra.track},function(){try{woopra.track(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Woopra integration:",e)}}),"gosquared"===t&&executeWithRetry(t,function(){return"function"==typeof _gs},function(){try{_gs("event",a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling GoSquared integration:",e)}}),"piano"===t&&executeWithRetry(t,function(){return"undefined"!=typeof pa&&pa&&"function"==typeof pa.sendEvent},function(){try{pa.sendEvent(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Piano Analytics integration:",e)}}),"matomo"===t&&executeWithRetry(t,function(){return"undefined"!=typeof _paq&&_paq},function(){try{window._paq=window._paq||[],window._paq.push(["trackEvent","Mida",a,i.name+"_"+i.id+"_"+i.variant])}catch(e){console.error("Error calling Matomo integration:",e)}}),"plausible"===t&&executeWithRetry(t,function(){return"function"==typeof plausible},function(){try{plausible(a,{props:{test_id:String(i.id),test_name:i.name,variant:String(i.variant)}})}catch(e){console.error("Error calling Plausible integration:",e)}}),"yandex"===t&&executeWithRetry(t,function(){return"function"==typeof ym&&window.yaCounterID},function(){try{ym(window.yaCounterID,"reachGoal",a+"_"+i.id,{test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling Yandex Metrica integration:",e)}}),"countly"===t&&executeWithRetry(t,function(){return"undefined"!=typeof Countly&&Countly&&Countly.q},function(){try{Countly.q.push(["add_event",{key:a,segmentation:{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp}}])}catch(e){console.error("Error calling Countly integration:",e)}}),"june"===t&&executeWithRetry(t,function(){return"undefined"!=typeof analytics&&analytics&&"function"==typeof analytics.track},function(){try{analytics.track(a,{test_id:i.id,test_name:i.name,variant:i.variant,timestamp:i.timestamp})}catch(e){console.error("Error calling June.so integration:",e)}})})}catch(e){console.error("Error in window.executeIntegration:",e)}return!0},void 0===window.enabledform&&(window.enabledform={});var enabledform=window.enabledform,firedPageviewTests=(void 0===window.firedPageviewTests&&(window.firedPageviewTests=new Set),window.firedPageviewTests),firedConversionTests=(void 0===window.firedConversionTests&&(window.firedConversionTests=new Set),window.firedConversionTests);
1function midaIsCompleteFlagTruthy(e){return!0===e||1===e||"1"===e||1===Number(e)}function midaMergeCompleteFlags(){for(var e=0;e<arguments.length;e++)if(midaIsCompleteFlagTruthy(arguments[e]))return!0;return!1}void 0===window._midaPageLoadId&&(window._midaPageLoadId=Date.now()+"_"+Math.random().toString(36).substr(2,9)),window.canFirePageview=function(e){e=String(e);if(firedPageviewTests.has(e))return!1;var t="_mida_pv_"+e;try{var n=sessionStorage.getItem(t);if(n&&n===window._midaPageLoadId)return firedPageviewTests.add(e),!1;sessionStorage.setItem(t,window._midaPageLoadId)}catch(e){}return firedPageviewTests.add(e),!0},window.canFireConversionIntegration=function(e){e=String(e);if(firedConversionTests.has(e))return!1;var t="_mida_conv_"+e;try{var n=sessionStorage.getItem(t);if(n&&n===window._midaPageLoadId)return firedConversionTests.add(e),!1;sessionStorage.setItem(t,window._midaPageLoadId)}catch(e){}return firedConversionTests.add(e),!0},window.scheduleMidaPageview=function(){var t=Date.now();setTimeout(function e(){if(!window.mida||!window.mida.isRedirect){if(!window.mida||!window.mida.isLoaded)return 1e4<=Date.now()-t?window.mida&&window.mida.isRedirect?void 0:void window.mpw():void setTimeout(e,100);window.mpw()}},100)},mida.fetch("/integration/enabled/"+window._h_key,"GET",null,e=>{try{var r=JSON.parse(e);let o=!1,t=!1,n=!1,i=!1,a=!1;var d,c,s,m,u,w,l,f,p,h={};if(r&&r.length)for(let e=0;e<r.length;e++){var y=r[e];y.service.includes("form")&&(enabledform[y.service]=y),"hubspot"===y.service&&(o=!0),"klaviyo"===y.service&&(t=!0),"amplitude"===y.service&&(n=!0),"segment"===y.service&&(i=!0),"posthog"===y.service&&(a=!0),"ga4"===(h[y.service]=y).service?(Number(y.mode),y.custom):"gtm"===y.service&&0}window.midaDefaultIntegrations=h,window._midaIntegrationReady=!0,window._midaExecuteQueue&&window._midaExecuteQueue.length&&(window._midaExecuteQueue.forEach(function(e){try{window.executeIntegration(e.obj,e.mdc)}catch(e){}}),window._midaExecuteQueue=[]),window._midaShouldFireCrossdomainPageview&&window.mpw(!0),("typeform"in enabledform||"tallyform"in enabledform||"jotform"in enabledform||"calendly"in enabledform||"calcom"in enabledform||"fillout"in enabledform||o)&&(d=window.addEventListener?"addEventListener":"attachEvent",(0,window[d])("attachEvent"==d?"onmessage":"message",function(e){var t,n,e=e[e.message?"message":"data"];"typeform"in enabledform&&e.type&&"form-ready"==e.type&&(enabledform.typeform.formId&&e.formId===enabledform.typeform.formId||!enabledform.typeform.formId)&&console.log("[Mida] TypeForm integration ID "+e.formId),"typeform"in enabledform&&e.type&&"form-submit"==e.type&&(enabledform.typeform.formId&&e.formId===enabledform.typeform.formId||!enabledform.typeform.formId)&&(window.mdq?window.mdq.push(["track","typeform-submit",{formId:e.formId}]):mida.track("typeform-submit",{formId:e.formId})),"tallyform"in enabledform&&e.event&&"Tally.FormSubmitted"===e.event&&(enabledform.tallyform.formId&&e.payload.formId===enabledform.tallyform.formId||!enabledform.tallyform.formId)&&(window.mdq?window.mdq.push(["track","tallyform-submit",{formId:e.payload.formId}]):mida.track("tallyform-submit",{formId:e.payload.formId})),"jotform"in enabledform&&e.type&&"submission-completed"===e.action&&(enabledform.jotform.formId&&e.formID===enabledform.jotform.formId||!enabledform.jotform.formId)&&(window.mdq?window.mdq.push(["track","jotform-submit",{formId:e.formID}]):mida.track("jotform-submit",{formId:e.formID})),o&&e.meetingBookSucceeded&&(window.mdq?window.mdq.push(["track","hubspot-meeting-booked",{formId:e.meetingsPayload.formGuid}]):mida.track("hubspot-meeting-booked",{formId:e.meetingsPayload.formGuid})),o&&"hsFormCallback"===e.type&&"onFormSubmitted"===e.eventName&&(window.mdq?window.mdq.push(["track","hubspot-form-submit",{formId:e.id}]):mida.track("hubspot-form-submit",{formId:e.id})),"calendly"in enabledform&&e.event&&0===e.event.indexOf("calendly")&&(t="",n=e.payload||{},"calendly.event_scheduled"===e.event?t="calendly-scheduled":"calendly.date_and_time_selected"===e.event?t="calendly-date-selected":"calendly.event_type_viewed"===e.event&&(t="calendly-viewed"),t)&&(window.mdq?window.mdq.push(["track",t,{eventUri:n.event?n.event.uri:"",inviteeUri:n.inv
1itee?n.invitee.uri:""}]):mida.track(t,{eventUri:n.event?n.event.uri:"",inviteeUri:n.invitee?n.invitee.uri:""})),"fillout"in enabledform&&e.type&&("fillout_form_submitted"===e.type||"fillout.form_submitted"===e.type)&&(window.mdq?window.mdq.push(["track","fillout-submit",{formId:e.formId||(e.payload?e.payload.formId:"")}]):mida.track("fillout-submit",{formId:e.formId||(e.payload?e.payload.formId:"")}))},!1));try{window.scheduleMidaPageview()}catch(e){console.error("Error in Mida pageview tracking:",e)}if(i&&"undefined"!=typeof analytics&&"function"==typeof analytics.on&&analytics.on("track",function(e,t,n){window.mdq?window.mdq.push(["track",e,t]):mida.track(e,t)}),n&&"undefined"!=typeof amplitude&&"function"==typeof amplitude.logEvent){const g=amplitude.logEvent;amplitude.logEvent=function(e,t){return window.mdq?window.mdq.push(["track",e,t]):mida.track(e,t),g.apply(amplitude,arguments)}}a&&0!==(h.posthog||{}).receiveEvents&&executeWithRetry("posthog",function(){return"undefined"!=typeof posthog&&posthog&&"function"==typeof posthog.capture},function(){try{var o=posthog.capture.bind(posthog);posthog.capture=function(e,t,n){if(e&&0!==e.indexOf("mida_")&&0!==e.indexOf("$"))try{window.mdq?window.mdq.push(["track",e,t]):"undefined"!=typeof mida&&"function"==typeof mida.track&&mida.track(e,t)}catch(e){console.warn("Mida tracking error (PostHog continues):",e)}return o(e,t,n)}}catch(e){console.warn("PostHog integration setup error:",e)}},{maxRetries:10,retryInterval:1e3}),t&&("undefined"!=typeof klaviyo&&"function"==typeof klaviyo.track&&(c=klaviyo.track,klaviyo.track=function(e,t,n){try{window.mdq?window.mdq.push(["track",e,t]):"undefined"!=typeof mida&&"function"==typeof mida.track&&mida.track(e,t)}catch(e){console.warn("Mida tracking error (Klaviyo continues):",e)}return c.apply(klaviyo,arguments)}),window._learnq&&Array.isArray(window._learnq)&&(s=window._learnq.push,window._learnq.push=function(){var e,t,n=Array.prototype.slice.call(arguments);try{0<n.length&&Array.isArray(n[0])&&"track"===n[0][0]&&(e=n[0][1],t=n[0][2]||{},window.mdq?window.mdq.push(["track",e,t]):"undefined"!=typeof mida&&"function"==typeof mida.track&&mida.track(e,t))}catch(e){console.warn("Mida tracking error (_learnq continues):",e)}return s.apply(window._learnq,arguments)}),window.addEventListener("klaviyoForms",function(e){"submit"==e.detail.type&&(window.mdq?window.mdq.push(["track","klaviyo-form-submit",{formId:e.detail.formId}]):mida.track("klaviyo-form-submit",{formId:e.detail.formId}))})),"intercom"in enabledform&&executeWithRetry("intercom",function(){return"function"==typeof window.Intercom},function(){try{window.Intercom("onUserEmailSupplied",function(){window.mdq?window.mdq.push(["track","intercom-email-captured",{}]):mida.track("intercom-email-captured",{})}),window.Intercom("onShow",function(){window.mdq?window.mdq.push(["track","intercom-messenger-opened",{}]):mida.track("intercom-messenger-opened",{})}),window.Intercom("onHide",function(){window.mdq?window.mdq.push(["track","intercom-messenger-closed",{}]):mida.track("intercom-messenger-closed",{})});var t=!1;window.Intercom("onUnreadCountChange",function(e){!t&&1<=parseInt(e)&&(t=!0,window.mdq?window.mdq.push(["track","intercom-message-received",{}]):mida.track("intercom-message-received",{}))})}catch(e){console.warn("Intercom integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"crisp"in enabledform&&executeWithRetry("crisp",function(){return void 0!==window.$crisp&&window.$crisp},function(){try{window.$crisp.push(["on","session:loaded",function(){window.mdq?window.mdq.push(["track","crisp-session-loaded",{}]):mida.track("crisp-session-loaded",{})}]),window.$crisp.push(["on","message:sent",function(){window.mdq?window.mdq.push(["track","crisp-message-sent",{}]):mida.track("crisp-message-sent",{})}]),window.$crisp.push(["on","chat:opened",function(){window.mdq?window.mdq.push(["track","crisp-chat-opened",{}]):mida.track("crisp-chat-opened",{})}])}catch(e){console.warn("Crisp integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"drift"in enabledform&&executeWithRetry("drift",function(){return void 0!==window.drift&&window.drift&&"function"==typeof window.drift.on},function(){try{window.drift.on("emailCapture",function(e){window.mdq?window.mdq.push(["track","drift-email-captured",{email:e.data?e.data.email:""}
1]):mida.track("drift-email-captured",{email:e.data?e.data.email:""})}),window.drift.on("scheduling:meetingBooked",function(e){window.mdq?window.mdq.push(["track","drift-meeting-booked",{}]):mida.track("drift-meeting-booked",{})}),window.drift.on("conversation:firstInteraction",function(){window.mdq?window.mdq.push(["track","drift-conversation-started",{}]):mida.track("drift-conversation-started",{})})}catch(e){console.warn("Drift integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"calcom"in enabledform&&executeWithRetry("calcom",function(){return"function"==typeof window.Cal},function(){try{Cal("on",{action:"bookingSuccessfulV2",callback:function(e){e=(e.detail||{}).data||{};window.mdq?window.mdq.push(["track","calcom-booked",{eventType:e.eventType||""}]):mida.track("calcom-booked",{eventType:e.eventType||""})}})}catch(e){console.warn("Cal.com integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"survicate"in enabledform&&executeWithRetry("survicate",function(){return void 0!==window._sva&&window._sva&&"function"==typeof window._sva.addEventListener},function(){try{window._sva.addEventListener("survey_completed",function(e){window.mdq?window.mdq.push(["track","survicate-completed",{surveyId:e}]):mida.track("survicate-completed",{surveyId:e})}),window._sva.addEventListener("question_answered",function(e,t,n){window.mdq?window.mdq.push(["track","survicate-answered",{surveyId:e,questionId:t}]):mida.track("survicate-answered",{surveyId:e,questionId:t})})}catch(e){console.warn("Survicate integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"wistia"in enabledform&&((m=function(){document.querySelectorAll("wistia-player").forEach(function(t){t._midaTracked||(t._midaTracked=!0,t.addEventListener("play",function(){var e=t.getAttribute("media-id");window.mdq?window.mdq.push(["track","wistia-play",{mediaId:e}]):mida.track("wistia-play",{mediaId:e})}),t.addEventListener("ended",function(){var e=t.getAttribute("media-id");window.mdq?window.mdq.push(["track","wistia-ended",{mediaId:e}]):mida.track("wistia-ended",{mediaId:e})}),t.addEventListener("conversion",function(e){e=e.detail||{};window.mdq?window.mdq.push(["track","wistia-conversion",{type:e.type,email:e.email}]):mida.track("wistia-conversion",{type:e.type,email:e.email})}),t.addEventListener("percent-watched-change",function(e){var e=e.detail||{};.5<=e.percentWatched&&e.lastPercentWatched<.5&&(e=t.getAttribute("media-id"),window.mdq?window.mdq.push(["track","wistia-50-percent",{mediaId:e}]):mida.track("wistia-50-percent",{mediaId:e}))}))})})(),setTimeout(m,2e3),setTimeout(m,5e3)),"optinmonster"in enabledform&&(document.addEventListener("om.Optin.success",function(e){e=e.detail&&e.detail.Campaign?e.detail.Campaign.id:"";window.mdq?window.mdq.push(["track","optinmonster-conversion",{campaignId:e}]):mida.track("optinmonster-conversion",{campaignId:e})}),document.addEventListener("om.Campaign.afterShow",function(e){e=e.detail&&e.detail.Campaign?e.detail.Campaign.id:"";window.mdq?window.mdq.push(["track","optinmonster-shown",{campaignId:e}]):mida.track("optinmonster-shown",{campaignId:e})})),"wisepops"in enabledform&&executeWithRetry("wisepops",function(){return"function"==typeof wisepops},function(){try{wisepops("listen","after-form-submit",function(e){var t=e.target?e.target.id:"",n="";try{e.target&&e.target.elements&&e.target.elements.email&&(n=e.target.elements.email.value)}catch(e){}window.mdq?window.mdq.push(["track","wisepops-form-submit",{popupId:t,email:n}]):mida.track("wisepops-form-submit",{popupId:t,email:n})}),wisepops("listen","after-display",function(e){e=e.target?e.target.id:"";window.mdq?window.mdq.push(["track","wisepops-displayed",{popupId:e}]):mida.track("wisepops-displayed",{popupId:e})}),wisepops("listen","after-close",function(e){e=e.target?e.target.id:"";window.mdq?window.mdq.push(["track","wisepops-closed",{popupId:e}]):mida.track("wisepops-closed",{popupId:e})})}catch(e){console.warn("Wisepops integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"qualaroo"in enabledform&&executeWithRetry("qualaroo",function(){return"undefined"!=typeof _kiq&&_kiq},function(){try{window._kiq=window._kiq||[],window._kiq.push(["eventHandler","submit",function(e,t){window.mdq?window.mdq.push(["track","qualaroo-submit",{surveyId:t}]):mida.track("qualaroo-submit",{surveyId:t})}]),window._kiq.push(["eventHandler","show",function(e){window.mdq?window.mdq.push(["track","qualaroo-shown",{surveyId:e}]):mida.track("qualaroo-shown",{surveyId:e})}]),window._kiq.push(["eventHandler","close",function(e,t){window.mdq?window.mdq.push(["track","qualaroo-closed",{surveyId:e,closeReason:t}]):mida.track("qualaroo-closed",{surveyId:e,closeReason:t})}])}catch(e){console.warn("Qualaroo integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"justuno"in enabledform&&(u=window.ju_callback,w=window.ju_windowevent,window.ju_callback=function(e,t,n){if("function"==typeof u)try{u.apply(this,arguments)}catch(e){}var o=4===e?"justuno-email-signup":"justuno-engagement";window.mdq?window.mdq.push(["track",o,{engagementType:e,email:t||"",coupon:n||""}]):mida.track(o,{engagementType:e,email:t||"",coupon:n||""})},window.ju_windowevent=function(e,t){if("function"==typeof w)try{w.apply(this,arguments)}catch(e){}"load"===e&&(window.mdq?window.mdq.push(["track","justuno-popup-shown",{promoId:t}]):mida.track("justuno-popup-shown",{promoId:t})),"unload"===e&&(window.mdq?window.mdq.push(["track","justuno-popup-closed",{promoId:t}]):mida.track("justuno-popup-closed",{promoId:t}))}),"chameleon"in enabledform&&executeWithRetry("chameleon",function(){return"undefined"!=typeof chmln&&chmln&&"function"==typeof chmln.on},function(){try{chmln.on("tour:started",function(e){window.mdq?window.mdq.push(["track","chameleon-tour-started",{tourId:e.id||"",tourName:e.name||""}]):mida.track("chameleon-tour-started",{tourId:e.id||"",tourName:e.name||""})}),chmln.on("tour:completed",function(e){window.mdq?window.mdq.push(["track","chameleon-tour-completed",{tourId:e.id||"",tourName:e.name||""}]):mida.track("chameleon-tour-completed",{tourId:e.id||"",tourName:e.name||""})}),chmln.on("tour:exited",function(e){window.mdq?window.mdq.push(["track","chameleon-tour-exited",{tourId:e.id||"",tourName:e.name||""}]):mida.track("chameleon-tour-exited",{tourId:e.id||"",tourName:e.name||""})})}catch(e){console.warn("Chameleon integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"tawkto"in enabledform&&executeWithRetry("tawkto",function(){return"undefined"!=typeof Tawk_API&&Tawk_API},function(){try{var e=Tawk_API.onChatStarted,t=Tawk_API.onChatEnded,n=Tawk_API.onOfflineSubmit;Tawk_API.onChatStarted=function(){if("function"==typeof e)try{e.apply(this,arguments)}catch(e){}window.mdq?window.mdq.push(["track","tawkto-chat-started",{}]):mida.track("tawkto-chat-started",{})},Tawk_API.onChatEnded=function(){if("function"==typeof t)try{t.apply(this,arguments)}catch(e){}window.mdq?window.mdq.push(["track","tawkto-chat-ended",{}
1]):mida.track("tawkto-chat-ended",{})},Tawk_API.onOfflineSubmit=function(e){if("function"==typeof n)try{n.apply(this,arguments)}catch(e){}window.mdq?window.mdq.push(["track","tawkto-offline-submit",{}]):mida.track("tawkto-offline-submit",{})}}catch(e){console.warn("Tawk.to integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"tidio"in enabledform&&(l=function(){try{window.tidioChatApi.on("conversationStart",function(){window.mdq?window.mdq.push(["track","tidio-conversation-started",{}]):mida.track("tidio-conversation-started",{})}),window.tidioChatApi.on("messageFromVisitor",function(){window.mdq?window.mdq.push(["track","tidio-message-sent",{}]):mida.track("tidio-message-sent",{})}),window.tidioChatApi.on("preFormFilled",function(){window.mdq?window.mdq.push(["track","tidio-form-filled",{}]):mida.track("tidio-form-filled",{})})}catch(e){console.warn("Tidio integration error:",e)}},window.tidioChatApi?window.tidioChatApi.on("ready",l):document.addEventListener("tidioChat-ready",l)),"zendeskchat"in enabledform&&executeWithRetry("zendeskchat",function(){return"function"==typeof zE},function(){try{zE("webWidget:on","chat:start",function(){window.mdq?window.mdq.push(["track","zendesk-chat-started",{}]):mida.track("zendesk-chat-started",{})}),zE("webWidget:on","chat:end",function(){window.mdq?window.mdq.push(["track","zendesk-chat-ended",{}]):mida.track("zendesk-chat-ended",{})}),zE("webWidget:on","chat:connected",function(){window.mdq?window.mdq.push(["track","zendesk-chat-connected",{}]):mida.track("zendesk-chat-connected",{})})}catch(e){console.warn("Zendesk Chat integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"freshchat"in enabledform&&executeWithRetry("freshchat",function(){return void 0!==window.fcWidget&&window.fcWidget&&"function"==typeof window.fcWidget.on},function(){try{window.fcWidget.on("message:sent",function(){window.mdq?window.mdq.push(["track","freshchat-message-sent",{}]):mida.track("freshchat-message-sent",{})}),window.fcWidget.on("message:received",function(){window.mdq?window.mdq.push(["track","freshchat-message-received",{}]):mida.track("freshchat-message-received",{})}),window.fcWidget.on("user:statechange",function(e){e&&e.data&&"created"===e.data.userState&&(window.mdq?window.mdq.push(["track","freshchat-user-created",{}]):mida.track("freshchat-user-created",{}))})}catch(e){console.warn("Freshchat integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"vimeo"in enabledform&&(f=function(){document.querySelectorAll('iframe[src*="player.vimeo.com"]').forEach(function(e){if(!e._midaVimeoTracked&&"undefined"!=typeof Vimeo&&Vimeo.Player){e._midaVimeoTracked=!0;try{var t=new Vimeo.Player(e),n=(t.on("play",function(){window.mdq?window.mdq.push(["track","vimeo-play",{}]):mida.track("vimeo-play",{})}),t.on("ended",function(){window.mdq?window.mdq.push(["track","vimeo-ended",{}]):mida.track("vimeo-ended",{})}),!1);t.on("timeupdate",function(e){!n&&.5<=e.percent&&(n=!0,window.mdq?window.mdq.push(["track","vimeo-50-percent",{}]):mida.track("vimeo-50-percent",{}))})}catch(e){console.warn("Vimeo player setup error:",e)}}})},executeWithRetry("vimeo",function(){return"undefined"!=typeof Vimeo&&Vimeo.Player},function(){f(),setTimeout(f,2e3),setTimeout(f,5e3)},{maxRetries:10,retryInterval:1e3})),"youtube"in enabledform&&(window.addEventListener("message",function(e){if(-1!==e.origin.indexOf("youtube.com"))try{var t="string"==typeof e.data?JSON.parse(e.data):e.data;"onStateChange"===t.event&&(1===t.info&&(window.mdq?window.mdq.push(["track","youtube-play",{}]):mida.track("youtube-play",{})),0===t.info)&&(window.mdq?window.mdq.push(["track","youtube-ended",{}]):mida.track("youtube-ended",{}))}catch(e){}}),(p=function(){document.querySelectorAll('iframe[src*="youtube.com"]').forEach(function(e){if(!e._midaYTEnabled){e._midaYTEnabled=!0;try{e.contentWindow.postMessage('{"event":"listening","id":"mida"}',"*")}catch(e){}}})})(),setTimeout(p,2e3),setTimeout(p,5e3)),"appcues"in enabledform&&executeWithRetry("appcues",function(){return"undefined"!=typeof Appcues&&Appcues&&"function"==typeof Appcues.on},function(){try{Appcues.on("flow_started",function(e){window.mdq?window.mdq.push(["track","appcues-flow-started",{flowId:e.flowId||"",flowName:e.flowName||""}]):mida.track("appcues-flow-started",{flowId:e.flowId||"",flowName:e.flowName||""})}),Appcues.on("flow_completed",function(e){window.mdq?window.mdq.push(["track","appcues-flow-completed",{flowId:e.flowId||"",flowName:e.flowName||""}]):mida.track("appcues-flow-completed",{flowId:e.flowId||"",flowName:e.flowName||""})}),Appcues.on("flow_skipped",function(e){window.mdq?window.mdq.push(["track","appcues-flow-skipped",{flowId:e.flowId||"",flowName:e.flowName||""}]):mida.track("appcues-flow-skipped",{flowId:e.flowId||"",flowName:e.flowName||""})}),Appcues.on("step_completed",function(e){window.mdq?window.mdq.push(["track","appcues-step-completed",{flowId:e.flowId||"",stepId:e.stepId||""}]):mida.track("appcues-step-completed",{flowId:e.flowId||"",stepId:e.stepId||""})})}catch(e){console.warn("Appcues integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"userpilot"in enabledform&&executeWithRetry("userpilot",function(){return"undefined"!=typeof userpilot&&userpilot&&"function"==typeof userpilot.on},function(){try{userpilot.on("contentCompleted",function(e){window.mdq?window.mdq.push(["track","userpilot-content-completed",{contentId:e.contentId||"",contentType:e.contentType||""}]):mida.track("userpilot-content-completed",{contentId:e.contentId||"",contentType:e.contentType||""})}
1),userpilot.on("contentDismissed",function(e){window.mdq?window.mdq.push(["track","userpilot-content-dismissed",{contentId:e.contentId||"",contentType:e.contentType||""}]):mida.track("userpilot-content-dismissed",{contentId:e.contentId||"",contentType:e.contentType||""})}),userpilot.on("contentStarted",function(e){window.mdq?window.mdq.push(["track","userpilot-content-started",{contentId:e.contentId||"",contentType:e.contentType||""}]):mida.track("userpilot-content-started",{contentId:e.contentId||"",contentType:e.contentType||""})})}catch(e){console.warn("Userpilot integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"olark"in enabledform&&executeWithRetry("olark",function(){return"function"==typeof olark},function(){try{olark("api.chat.onBeginConversation",function(){window.mdq?window.mdq.push(["track","olark-conversation-started",{}]):mida.track("olark-conversation-started",{})}),olark("api.chat.onMessageToOperator",function(e){window.mdq?window.mdq.push(["track","olark-message-sent",{}]):mida.track("olark-message-sent",{})}),olark("api.chat.onOperatorsAvailable",function(){window.mdq?window.mdq.push(["track","olark-operators-available",{}]):mida.track("olark-operators-available",{})})}catch(e){console.warn("Olark integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"livechat"in enabledform&&executeWithRetry("livechat",function(){return"undefined"!=typeof LiveChatWidget&&LiveChatWidget&&"function"==typeof LiveChatWidget.on},function(){try{LiveChatWidget.on("new_event",function(e){"message"===e.type&&e.author&&"customer"===e.author.type&&(window.mdq?window.mdq.push(["track","livechat-message-sent",{}]):mida.track("livechat-message-sent",{}))}),LiveChatWidget.on("visibility_changed",function(e){"maximized"===e.visibility&&(window.mdq?window.mdq.push(["track","livechat-opened",{}]):mida.track("livechat-opened",{}))}),LiveChatWidget.on("customer_status_changed",function(e){"chatting"===e.status&&(window.mdq?window.mdq.push(["track","livechat-chat-started",{}]):mida.track("livechat-chat-started",{}))})}catch(e){console.warn("LiveChat integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"helpscout"in enabledform&&executeWithRetry("helpscout",function(){return"function"==typeof Beacon},function(){try{Beacon("on","open",function(){window.mdq?window.mdq.push(["track","helpscout-beacon-opened",{}]):mida.track("helpscout-beacon-opened",{})}),Beacon("on","article-viewed",function(e){window.mdq?window.mdq.push(["track","helpscout-article-viewed",{articleId:e.id||""}]):mida.track("helpscout-article-viewed",{articleId:e.id||""})}),Beacon("on","email-sent",function(){window.mdq?window.mdq.push(["track","helpscout-email-sent",{}]):mida.track("helpscout-email-sent",{})}),Beacon("on","chat-started",function(){window.mdq?window.mdq.push(["track","helpscout-chat-started",{}]):mida.track("helpscout-chat-started",{})})}catch(e){console.warn("Help Scout Beacon integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"userflow"in enabledform&&executeWithRetry("userflow",function(){return"undefined"!=typeof userflow&&userflow&&"function"==typeof userflow.on},function(){try{userflow.on("flowStarted",function(e){window.mdq?window.mdq.push(["track","userflow-flow-started",{flowId:e.flowId||""}]):mida.track("userflow-flow-started",{flowId:e.flowId||""})}),userflow.on("flowEnded",function(e){window.mdq?window.mdq.push(["track","userflow-flow-ended",{flowId:e.flowId||"",endReason:e.endReason||""}]):mida.track("userflow-flow-ended",{flowId:e.flowId||"",endReason:e.endReason||""})}),userflow.on("checklistTaskCompleted",function(e){window.mdq?window.mdq.push(["track","userflow-task-completed",{checklistId:e.checklistId||"",taskId:e.taskId||""}]):mida.track("userflow-task-completed",{checklistId:e.checklistId||"",taskId:e.taskId||""})})}catch(e){console.warn("Userflow integration error:",e)}},{maxRetries:10,retryInterval:1e3}),"paddle"in enabledform&&executeWithRetry("paddle",function(){return"undefined"!=typeof Paddle&&Paddle&&Paddle.Checkout},function(){try{var t=Paddle.Options&&Paddle.Options.eventCallback;Paddle.Options=Paddle.Options||{},Paddle.Options.eventCallback=function(e){if("function"==typeof t)try{t(e)}catch(e){}"Checkout.Loaded"===e.event&&(window.mdq?window.mdq.push(["track","paddle-checkout-opened",{}
1]):mida.track("paddle-checkout-opened",{})),"Checkout.Complete"===e.event&&(window.mdq?window.mdq.push(["track","paddle-checkout-completed",{productId:e.eventData?e.eventData.product_id:""}]):mida.track("paddle-checkout-completed",{productId:e.eventData?e.eventData.product_id:""})),"Checkout.Close"===e.event&&(window.mdq?window.mdq.push(["track","paddle-checkout-closed",{}]):mida.track("paddle-checkout-closed",{}))}}catch(e){console.warn("Paddle integration error:",e)}},{maxRetries:10,retryInterval:1e3})}catch(e){console.error(e)}window._midaIntegrationBootstrapDone=!0}),window.firePageviewConversion=function(o){try{var e=JSON.parse(localStorage.getItem("_abcache"))||[],i=JSON.parse(localStorage.getItem("_variant_result"))||{};e.length&&e.forEach(function(e){var t,n;e&&e.goal_profile_id&&Number(e.goal_profile_id)===Number(o)&&(t=e.test_id,n=i[t])&&(e={id:Number(t),name:e.test_name,variant:0===n.vaId?"Control":n.vaId,uuid:n.uuid||window._h_uuid,timestamp:+new Date},"function"!=typeof window.canFireConversionIntegration||window.canFireConversionIntegration(t))&&window.executeIntegration(e,"mida_conversion")})}catch(e){console.error("Error in firePageviewConversion:",e)}},window.getMidaTrackingState=function(e,t,n){var o=[];try{o.push(localStorage.getItem(e))}catch(e){}try{o.push(sessionStorage.getItem(e))}catch(e){}o.push(t);for(var i=0;i<o.length;i++){var a=o[i];if(a)try{var r="string"==typeof a?JSON.parse(a):a;if(r&&"object"==typeof r)return r}catch(e){}}return n},window.getMidaAbcacheState=function(){var e=[],t=[];try{var n=window.getMidaTrackingState("_abcache",null,null);Array.isArray(n)&&(e=n)}catch(e){}try{var o=window._abcache;o&&(t="string"==typeof o?JSON.parse(o):o),Array.isArray(t)||(t=[])}catch(e){t=[]}return t.length>e.length?t:e},window.mpw=function(e=!1){try{if(!window.mida||!window.mida.isRedirect){const o=window.getMidaTrackingState("_variant_result",window.vaId,{});if(e)mida.fetch("/test/exposure","POST",{uuid:window._h_uuid,key:window._h_key},e=>{try{var t=JSON.parse(e);t&&t.length&&t.forEach(e=>{var t={id:Number(e.test_id),name:e.test_name,variant:0===e.variant_id?"Control":e.variant_id,uuid:window._h_uuid,timestamp:+new Date},n=String(e.test_id),n=o[n]||o[e.test_id],n=midaMergeCompleteFlags(e.complete,n&&n.complete);window.canFirePageview(e.test_id)&&window.executeIntegration(t,"mida_pageview"),n&&window.canFireConversionIntegration(e.test_id)&&window.executeIntegration(t,"mida_conversion")})}catch(e){console.error("Error processing test exposure data:",e)}});else{const i="function"==typeof window.getMidaAbcacheState?window.getMidaAbcacheState():window.getMidaTrackingState("_abcache",window._abcache,[]);i.length&&Object.entries(o).forEach(([t,e])=>{var n,o=i.find(e=>e&&e.test_id&&e.test_id.toString()===t);o&&e&&"object"==typeof e&&void 0!==e.vaId&&(n={id:Number(t),name:o.test_name,variant:"0"===e.vaId.toString()?"Control":e.vaId,uuid:e.uuid,timestamp:+new Date},e=midaMergeCompleteFlags(e.complete,o&&o.complete),window.canFirePageview(t)&&window.executeIntegration(n,"mida_pageview"),e)&&window.canFireConversionIntegration(t)&&window.executeIntegration(n,"mida_conversion")})}}}catch(e){console.error("Error in Mida event tracking:",e)}};var previousUrl,integrationObserver,referrerDomain=document.referrer?new URL(document.referrer).hostname:"",isExternalReferrer=referrerDomain&&referrerDomain!==window.location.hostname,midaRedirectExists=mida.getCookie("mida_redirect"),nextJS=(window._midaShouldFireCrossdomainPageview=Boolean(isExternalReferrer||midaRedirectExists),null!==document.querySelector("script[src*='_next/static/']")),gatsby=null!==document.querySelector("#___gatsby"),rootElementExists=null!==document.getElementById("root"),vueExists="function"==typeof window.Vue,generatorMeta=document.querySelector('meta[name="generator"]'),isFramer=generatorMeta&&generatorMeta.content.includes("Framer"),isSPA=window.isSPA||nextJS||gatsby||rootElementExists||vueExists||isFramer;window.clearPageviewTracking=function(){firedPageviewTests.clear(),firedConversionTests.clear();try{for(var e=[],t=0;t<sessionStorage.length;t++){var n=sessionStorage.key(t);!n||0!==n.indexOf("_mida_pv_")&&0!==n.indexOf("_mida_conv_")||e.push(n)}for(var o=0;o<e.length;o++)sessionStorage.removeItem(e[o])}catch(e){}},isSPA&&(previousUrl=location.href,(integrationObserver=new MutationObserver(function(){location.href!==previousUrl&&(previousUrl=location.href,window.clearPageviewTracking(),setTimeout(function(){window.mpw()},100))})).observe(document,{subtree:!0,childList:!0}),window.addEventListener("popstate",function(){location.href!==previousUrl&&(previousUrl=location.href,window.clearPageviewTracking(),setTimeout(function(){window.mpw()},100))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.