"use strict";var DefaultPixel=(()=>{var Ob=Object.create;var Wo=Object.defineProperty,Pb=Object.defineProperties,Db=Object.getOwnPropertyDescriptor,Nb=Object.getOwnPropertyDescriptors,Hb=Object.getOwnPropertyNames,ss=Object.getOwnPropertySymbols,Ub=Object.getPrototypeOf,rl=Object.prototype.hasOwnProperty,_d=Object.prototype.propertyIsEnumerable;var z=Math.pow,bd=(e,t,n)=>t in e?Wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))rl.call(t,n)&&bd(e,n,t[n]);if(ss)for(var n of ss(t))_d.call(t,n)&&bd(e,n,t[n]);return e},S=(e,t)=>Pb(e,Nb(t));var Un=(e,t)=>{var n={};for(var r in e)rl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ss)for(var r of ss(e))t.indexOf(r)<0&&_d.call(e,r)&&(n[r]=e[r]);return n};var Bb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vb=(e,t)=>{for(var n in t)Wo(e,n,{get:t[n],enumerable:!0})},Ed=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hb(t))!rl.call(e,o)&&o!==n&&Wo(e,o,{get:()=>t[o],enumerable:!(r=Db(t,o))||r.enumerable});return e};var Wb=(e,t,n)=>(n=e!=null?Ob(Ub(e)):{},Ed(t||!e||!e.__esModule?Wo(n,"default",{value:e,enumerable:!0}):n,e)),Gb=e=>Ed(Wo({},"__esModule",{value:!0}),e);var R=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{a(n.next(l))}catch(c){o(c)}},s=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,s);a((n=n.apply(e,t)).next())});var Qm=Bb((l0,Zm)=>{"use strict";var W_=/^xn--/,G_=/[^\0-\x7F]/,K_=/[\x2E\u3002\uFF0E\uFF61]/g,$_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xl=35,At=Math.floor,Cl=String.fromCharCode;function hn(e){throw new RangeError($_[e])}function z_(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function jm(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(K_,".");let o=e.split("."),i=z_(o,t).join(".");return r+i}function qm(e){let t=[],n=0,r=e.length;for(;n<r;){let o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){let i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}var j_=e=>String.fromCodePoint(...e),q_=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},zm=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Xm=function(e,t,n){let r=0;for(e=n?At(e/700):e>>1,e+=At(e/t);e>xl*26>>1;r+=36)e=At(e/xl);return At(r+(xl+1)*e/(e+38))},Ym=function(e){let t=[],n=e.length,r=0,o=128,i=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&hn("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){let l=r;for(let d=1,m=36;;m+=36){a>=n&&hn("invalid-input");let f=q_(e.charCodeAt(a++));f>=36&&hn("invalid-input"),f>At((2147483647-r)/d)&&hn("overflow"),r+=f*d;let p=m<=i?1:m>=i+26?26:m-i;if(f<p)break;let g=36-p;d>At(2147483647/g)&&hn("overflow"),d*=g}let c=t.length+1;i=Xm(r-l,c,l==0),At(r/c)>2147483647-o&&hn("overflow"),o+=At(r/c),r%=c,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Jm=function(e){let t=[];e=qm(e);let n=e.length,r=128,o=0,i=72;for(let l of e)l<128&&t.push(Cl(l));let s=t.length,a=s;for(s&&t.push("-");a<n;){let l=2147483647;for(let d of e)d>=r&&d<l&&(l=d);let c=a+1;l-r>At((2147483647-o)/c)&&hn("overflow"),o+=(l-r)*c,r=l;for(let d of e)if(d<r&&++o>2147483647&&hn("overflow"),d===r){let m=o;for(let f=36;;f+=36){let p=f<=i?1:f>=i+26?26:f-i;if(m<p)break;let g=m-p,h=36-p;t.push(Cl(zm(p+g%h,0))),m=At(g/h)}t.push(Cl(zm(m,0))),i=Xm(o,c,a===s),o=0,++a}++o,++r}return t.join("")},X_=function(e){return jm(e,function(t){return W_.test(t)?Ym(t.slice(4).toLowerCase()):t})},Y_=function(e){return jm(e,function(t){return G_.test(t)?"xn--"+Jm(t):t})},J_={version:"2.3.1",ucs2:{decode:qm,encode:j_},decode:Ym,encode:Jm,toASCII:Y_,toUnicode:X_};Zm.exports=J_});var ov={};Vb(ov,{on:()=>xn,scheduler:()=>sS,submitForm:()=>iS});var Bn=e=>Array.isArray(e)&&e.every(t=>typeof t=="string");var Id=(e,t=!1)=>!e||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).flatMap(([n,r])=>Array.isArray(r)?[[n,r.filter(o=>typeof o=="string")]]:t&&typeof r=="string"?[[n,[r]]]:[])),Ld=e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.values(e).every(t=>t===null||typeof t=="string")?e:void 0,wd=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;let t=e;return typeof t.structureHash=="string"&&typeof t.contentHash=="string"&&(t.htmlFormId===null||typeof t.htmlFormId=="string")&&(t.formType===void 0||t.formType===null||typeof t.formType=="string")&&(t.id===void 0||typeof t.id=="string")&&(t.aliasIds===void 0||Bn(t.aliasIds))},Rd=e=>{var c,d,m,f,p;let t={knownForms:null,invalidLinkedForms:0};if(!e||typeof e!="object"||Array.isArray(e))return t;let n=e;if(!n.hashes||typeof n.hashes!="object"||Array.isArray(n.hashes)||!Bn(n.ids)||n.path!=null&&(typeof n.path!="object"||Array.isArray(n.path))||((c=n.path)==null?void 0:c.known)!==void 0&&typeof n.path.known!="boolean"||((d=n.path)==null?void 0:d.linked)!==void 0&&!Array.isArray(n.path.linked))return t;let r=(f=(m=n.path)==null?void 0:m.linked)!=null?f:[],o=r.filter(g=>!wd(g)||g.tracksPath!==void 0&&typeof g.tracksPath!="boolean").length;if(o>0)return{knownForms:null,invalidLinkedForms:o};let i=n.submissionOwnerIds,s=i&&typeof i=="object"&&!Array.isArray(i)&&Object.values(i).every(g=>typeof g=="string")?i:void 0,a=Ld(n.marketoNumericSubmissionOwners),l=Ld(n.marketoNumericPrimaryOwners);return{invalidLinkedForms:0,knownForms:u(S(u(u(u(u(u(u(u({hashes:Id(n.hashes),cosmeticStrippedHashes:Id(n.cosmeticStrippedHashes,!0),catalogCosmeticsUseNonAscii:Object.fromEntries(n.catalogCosmeticsUseNonAscii&&typeof n.catalogCosmeticsUseNonAscii=="object"&&!Array.isArray(n.catalogCosmeticsUseNonAscii)?Object.entries(n.catalogCosmeticsUseNonAscii).filter(([,g])=>typeof g=="boolean"):[]),ids:n.ids},Array.isArray(n.legacyTechnicalForms)?{legacyTechnicalForms:n.legacyTechnicalForms.filter(wd)}:{}),s?{submissionOwnerIds:s}:{}),a?{marketoNumericSubmissionOwners:a}:{}),l?{marketoNumericPrimaryOwners:l}:{}),Bn(n.schedulerFormIds)?{schedulerFormIds:n.schedulerFormIds}:{}),Bn(n.submissionAliases)?{submissionAliases:n.submissionAliases}:{}),Bn(n.ambiguousSubmissionIds)?{ambiguousSubmissionIds:n.ambiguousSubmissionIds}:{}),{path:{known:((p=n.path)==null?void 0:p.known)===!0,linked:r}}),Bn(n.pictured)&&{pictured:n.pictured})}},Kb=["catalog_unavailable","unchanged","never_catalogued","unresolved_alias"],$b=["content_drift","shape_drift","page_discovery"],uv=[...Kb,...$b],Vt=1e4,Go=.1;var se=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);var zb=/^[a-z][a-z0-9+.-]*:\/\/[^/?#]*/i;function jb(e){var i;let t=e.search(/[?#]/);if(t===-1)return{pathSource:e,query:""};let n=e.slice(0,t),r=e.slice(t),o=r.startsWith("?")&&(i=r.split("#")[0])!=null?i:"";return{pathSource:n,query:o}}var qb=e=>jb(e.replace(zb,"")).pathSource;function Ko(e){return e.replace(/[?#][\s\S]*$/,"")}var ol="pixel_pages.deleted_at IS NOT NULL OR pixel_pages.url IS NULL OR pixel_pages.url ~ '[?#]'",il="excluded.title IS NOT NULL AND (pixel_pages.deleted_at IS NOT NULL OR pixel_pages.title IS NULL OR (pixel_pages.title IS DISTINCT FROM excluded.title AND pixel_pages.updated_at < now() - interval '1 day'))",fv={url:`CASE WHEN ${ol} THEN COALESCE(excluded.url, pixel_pages.url) ELSE pixel_pages.url END`,title:`CASE WHEN ${il} THEN excluded.title ELSE pixel_pages.title END`,updatedAt:`CASE WHEN ${ol} OR (${il}) THEN now() ELSE pixel_pages.updated_at END`,needsUpdate:`((${ol}) OR (${il}))`};function gt(e){let t=`/${qb(e)}`.replace(/\/{2,}/g,"/").replace(/\/+$/,"");return t===""?"/":t}function Br(e,t){return e.includes(t)}var Td=["native_submit","enter_fallback"];var Fd=["html_capture_trigger","enter_fallback_mode","scheduler_matched","form_root","form_lookup"];var vd=(n=>(n.REDIRECT="redirect",n.DISPLAY_SCHEDULER="display_scheduler",n))(vd||{});var bv=new Set(Object.values(vd));function $o(e){return typeof e=="string"&&e.length>0}var Vn=6e4,Xb=45e3,Yb=5e3,_v=Vn-Yb-Xb;var Wn=600*1e3,Wt=128,sl=80,as=2e3;var ls=2e3,xd=1e5;var Ev=[...Td,"marketo_success"];function Jb(e){var n,r;if((e==null?void 0:e.type)!=="display_scheduler")return;let t=e.executionId;if(typeof t=="string"&&t.length>0)return t;if(typeof e.schedulerUrl=="string")try{let o=new URL(e.schedulerUrl);return(r=(n=o.searchParams.get("workflowExecutionId"))!=null?n:o.searchParams.get("workflow_execution_id"))!=null?r:void 0}catch(o){return}}function Vr(e){var r;if(!e||typeof e!="object")return;let t=e,n=(r=t.executionStatus)==null?void 0:r.id;return typeof n=="string"&&n.length>0?n:Jb(t.handoff)}var Le="817f1f2183aaa3d4ad54a50cb087a3d4e350deff";function Gt(e){if(!e)return null;let t=e.trim();if(!t)return null;let n;try{n=new URL(t)}catch(r){return null}return n.protocol!=="http:"&&n.protocol!=="https:"||n.username||n.password?null:`${n.origin}${n.pathname}`.replace(/\/+$/,"")||null}var I=class{static isVerbose(){return window.__defaultPixel__logging__verbose===!0}static formatMessage(t,n){return t?`${this.PREFIX} [${t}] ${n}`:`${this.PREFIX} ${n}`}static log(t,n,r,...o){let i=this.formatMessage(n,r);switch(t){case"debug":this.isVerbose()&&console.debug(i,...o);break;case"info":console.info(i,...o);break;case"warn":console.warn(i,...o);break;case"error":console.error(i,...o);break}}static debug(t,...n){this.log("debug",null,t,...n)}static info(t,...n){this.log("info",null,t,...n)}static warn(t,...n){this.log("warn",null,t,...n)}static error(t,...n){this.log("error",null,t,...n)}static module(t){return{debug:(n,...r)=>this.log("debug",t,n,...r),info:(n,...r)=>this.log("info",t,n,...r),warn:(n,...r)=>this.log("warn",t,n,...r),error:(n,...r)=>this.log("error",t,n,...r),success:(n,...r)=>this.log("debug",t,`\u2713 ${n}`,...r),found:(n,r)=>{let o=r!==void 0?`Found ${r} ${n}`:`Found ${n}`;this.log("debug",t,o)},sent:(n,...r)=>this.log("debug",t,`\u2192 Sent ${n}`,...r),received:(n,...r)=>this.log("debug",t,`\u2190 Received ${n}`,...r)}}};I.PREFIX="[Default.com]";var us=null,Wr=null,al=e=>{us=e,Wr=null},cs=e=>{let t=e.pathname;return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),{origin:e.origin,pathname:t}},Zb=e=>{let{origin:t,pathname:n}=cs(e);return`${t}${n}${e.search}${e.hash}`},Qb=e=>{try{let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"="),r=atob(n),o=new Uint8Array(new ArrayBuffer(r.length));for(let i=0;i<r.length;i++)o[i]=r.charCodeAt(i);return o.buffer}catch(t){return null}},e_=e=>{var o;if(typeof TextEncoder!="undefined")return new TextEncoder().encode(e);let t=[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);if(s>=55296&&s<=56319&&i+1<e.length){let a=e.charCodeAt(i+1);a>=56320&&a<=57343&&(s=65536+(s-55296<<10)+(a-56320),i++)}s<128?t.push(s):s<2048?t.push(192|s>>6,128|s&63):s<65536?t.push(224|s>>12,128|s>>6&63,128|s&63):t.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63)}let n=new ArrayBuffer(t.length),r=new Uint8Array(n);for(let i=0;i<t.length;i++)r[i]=(o=t[i])!=null?o:0;return n},t_=()=>R(null,null,function*(){var r;if(!us)return null;let e=(r=globalThis.crypto)==null?void 0:r.subtle;if(!e)return null;let t=atob(us),n=new Uint8Array(new ArrayBuffer(t.length));for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return e.importKey("spki",n,{name:"ECDSA",namedCurve:"P-256"},!1,["verify"])}),Cd=(e,t)=>R(null,null,function*(){var s;if(!us)return"signature_unverifiable";let n=(s=globalThis.crypto)==null?void 0:s.subtle;if(!n)return"signature_unverifiable";if(t.length===0)return"signature_rejected";let r;try{r=new URL(e)}catch(a){return"signature_rejected"}let o=Qb(t);if(!o)return"signature_rejected";let i;try{Wr!=null||(Wr=t_()),i=yield Wr}catch(a){return Wr=null,"signature_unverifiable"}if(!i)return"signature_unverifiable";try{let a=e_(Zb(r));return(yield n.verify({name:"ECDSA",hash:"SHA-256"},i,o,a))?"valid":"signature_rejected"}catch(a){return"signature_rejected"}});var n_=I.module("Config"),ll=class e{constructor(){this.config=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}initialize(t){var i;let n=(i=Gt(t.endpoint))!=null?i:t.endpoint,r=Gt(t.formsEndpoint),o=S(u({},t),{endpoint:n});r?o.formsEndpoint=r:delete o.formsEndpoint,this.config=o,al(t.schedulerHandoffVerifyKey||null),n_.success(`Config initialized with endpoint ${n}`)}get(){return this.config}getPublicKey(){var t;return((t=this.config)==null?void 0:t.publicKey)||null}getEndpoint(){var t;return((t=this.config)==null?void 0:t.endpoint)||null}getFormsEndpoint(){var t;return((t=this.config)==null?void 0:t.formsEndpoint)||null}isInitialized(){return this.config!==null}reset(){this.config=null,al(null)}},k=ll.getInstance();var Kt,Gr={},qe,Gn;function Ad(e){if(Kt!=null||(Kt=Math.random()<Go),!Kt)return;Gn!=null||(Gn={sampleRate:Go,disabledDefaultSubmitter:{schedulerMatched:0,schedulerUnmatched:0,saturated:!1}});let t=Gn.disabledDefaultSubmitter,n=e?"schedulerMatched":"schedulerUnmatched";t[n]>=Vt?t.saturated=!0:t[n]+=1}var $;function Md(e,t=window.location.pathname){var i,s;if(Kt!=null||(Kt=Math.random()<Go),!Kt)return;let n=gt(t)===t?"canonical":"normalized",r=(i=Gr[n])!=null?i:Gr[n]={counts:{},saturated:!1},o=(s=r.counts[e])!=null?s:0;o>=Vt?r.saturated=!0:r.counts[e]=o+1}function ul(e){qe!=null||(qe={rejectedCatalogs:0,invalidLinkedForms:0,saturated:!1});let t=qe.rejectedCatalogs+1,n=qe.invalidLinkedForms+e;qe.saturated||(qe.saturated=t>Vt||n>Vt),qe.rejectedCatalogs=Math.min(t,Vt),qe.invalidLinkedForms=Math.min(n,Vt)}function ue(e,t={}){var r,o,i,s,a,l,c,d,m;$!=null||($={counts:{},sameOriginFrames:0,maskedControls:0,eligibleControls:0,maxImageBytes:0,attempts:0,saturated:!1});let n=f=>(f>Vt&&($.saturated=!0),Math.min(f,Vt));if($.counts[e]=n(((r=$.counts[e])!=null?r:0)+1),t.drawFailure){let f=(o=$.drawFailures)!=null?o:$.drawFailures={};f[t.drawFailure]=n(((i=f[t.drawFailure])!=null?i:0)+1)}if(t.refusal){let f=(s=$.refusals)!=null?s:$.refusals={};f[t.refusal]=n(((a=f[t.refusal])!=null?a:0)+1)}$.sameOriginFrames=n($.sameOriginFrames+(t.frameContext==="same_origin"?1:0)),$.maskedControls=n($.maskedControls+((l=t.maskedControls)!=null?l:0)),$.eligibleControls=n($.eligibleControls+((c=t.eligibleControls)!=null?c:0)),$.attempts=n($.attempts+((d=t.attempts)!=null?d:0)),$.maxImageBytes=Math.max($.maxImageBytes,(m=t.imageBytes)!=null?m:0)}function cl(){let e=u(u(u(u({},Kt&&Object.keys(Gr).length>0&&{decisions:{sampleRate:Go,cohorts:Gr}}),qe&&{parsing:qe}),Gn&&{enterSkips:Gn}),$&&{pictures:$});return Gr={},qe=void 0,Gn=void 0,$=void 0,e}function ae(){if(document.querySelector('meta[name="default:pixel"][content="noform"]'))return!1;let t=[/\/login/i,/\/signin/i,/\/account/i,/\/checkout/i,/\/oauth/i,/\/admin\//i],n=window.location.pathname;return!t.some(r=>r.test(n))}var r_=/^[a-f\d]{40}$/i,Od=["core","sdk-core","catalog-overlay","index","sdk","analytics","sdk-analytics","form-capture"];function Pd(e){if(e===null||typeof e!="object"||Array.isArray(e))return{};let t="sdk_distribution"in e?e.sdk_distribution:void 0,n="sdk_build_sha"in e?e.sdk_build_sha:void 0,r=Od.find(o=>o===t);return u(u({},r&&{sdk_distribution:r}),typeof n=="string"&&r_.test(n)&&{sdk_build_sha:n})}var kd={core:"__dft_core_loaded","sdk-core":"__dft_sdk_core_loaded","catalog-overlay":"__dft_catalog_overlay_loaded",index:"__dft_loaded",sdk:"__dft_sdk_loaded",analytics:"__dft_analytics_started","sdk-analytics":"__dft_sdk_analytics_loaded"},o_=600*1e3,i_=["tag","bundle","index"];var s_=200,a_=8;function l_(e){if(e===!0)return!0;if(!(typeof e!="number"||!Number.isInteger(e))&&!(e<1||e>a_))return e}function Dd(e){if(!(typeof e!="string"||e.length===0||e.length>s_))try{let t=new URL(e);return t.protocol!=="https:"&&t.protocol!=="http:"||t.username||t.password?void 0:t.origin===e?t.origin:void 0}catch(t){return}}function u_(e){if(e===null||typeof e!="object"||Array.isArray(e))return{};let t=e,n=Array.isArray(t.co_loaded)?Od.filter(a=>t.co_loaded.includes(a)):[],r=t.key_wait_ms,o=i_.find(a=>a===t.analytics_skipped),i=Dd(t.script_origin),s=l_(t.script_fallback);return u(u(u(u(u({},n.length>0&&{co_loaded:n}),typeof r=="number"&&Number.isFinite(r)&&r>=0&&{key_wait_ms:Math.min(Math.round(r),o_)}),o&&{analytics_skipped:o}),i&&{script_origin:i}),s!==void 0&&{script_fallback:s})}function c_(e){if(e)try{return Dd(new URL(e).origin)}catch(t){return}}function Nd(e,t){let n=e,r=n.__dft_script_fallback,o=t!=null&&t.distribution&&r!==null&&typeof r=="object"&&!Array.isArray(r)?r[t.distribution]:void 0;return u_({co_loaded:Object.keys(kd).filter(i=>n[kd[i]]===!0),key_wait_ms:n.__dft_key_wait_ms,analytics_skipped:n.__dft_analytics_skipped,script_origin:c_(t==null?void 0:t.scriptSrc),script_fallback:o})}var Hd=()=>!0,Ud=()=>!0,Bd=()=>"default";function Vd(e){Hd=e}function D(){return Hd()}function Wd(e){Ud=e}function zo(){return Ud()}function Gd(e){Bd=e}function ds(){return Bd()}var d_=()=>Pd({sdk_distribution:"index",sdk_build_sha:"817f1f2183aaa3d4ad54a50cb087a3d4e350deff"}),Kd,$d,m_=typeof document=="undefined"?null:($d=(Kd=document.currentScript)==null?void 0:Kd.src)!=null?$d:null;function dl(){return{analyticsConsent:D(),marketingConsent:zo(),consentSource:ds()}}var ml=()=>u(u({},d_()),typeof window=="undefined"?{}:Nd(window,{distribution:"index",scriptSrc:m_}));var ge={FORM_SUBMISSION:{path:"/api/form-submission",routeName:"form submission"},FORM_INTERACTION:{path:"/api/form-interaction",routeName:"form interaction"},FORM_CATALOG:{path:"/api/form-catalog",routeName:"form catalog"},FORM_CATALOG_SKIP:{path:"/api/form-catalog/skip",routeName:"form catalog skip"},FORM_CATALOG_IMAGE:{path:"/api/form-catalog/image",routeName:"form catalog image"},FORM_CATALOG_IMAGE_FAILURE:{path:"/api/form-catalog/image/failure",routeName:"form catalog image failure"},KNOWN_FORMS:{path:"/api/pixel/known-forms",routeName:"known forms"},SCHEDULER_STYLE:{path:"/api/pixel/scheduler-style",routeName:"scheduler style"},SCHEDULER_CLICKABLE:{path:"/api/pixel/scheduler-clickable",routeName:"scheduler_clickable"},LOADING_MODAL:{path:"/api/pixel/loading-modal",routeName:"loading_modal"},NATIVE_SUBMIT_RELEASE:{path:"/api/pixel/native-submit-release",routeName:"native_submit_release"},SCHEDULER_HANDOFF_REJECT:{path:"/api/pixel/scheduler-handoff-reject",routeName:"scheduler handoff reject"},CATALOG_DIAGNOSTICS:{path:"/api/pixel/catalog-diagnostics",routeName:"catalog diagnostics"},CATALOG_SESSION:{path:"/api/pixel/catalog-session",routeName:"catalog session"},CATALOG_FORMS:{path:"/api/pixel/catalog-forms",routeName:"catalog add form"},CATALOG_RECATALOG:{path:"/api/pixel/catalog-forms/recatalog",routeName:"catalog recatalog form"}},Xv=Object.values(ge);var zd="/api/pixel/form-host-failure";var X={FORM_SUBMISSION:ge.FORM_SUBMISSION.path,FORM_INTERACTION:ge.FORM_INTERACTION.path,FORM_CATALOG:ge.FORM_CATALOG.path,FORM_CATALOG_SKIP:ge.FORM_CATALOG_SKIP.path,FORM_CATALOG_IMAGE:ge.FORM_CATALOG_IMAGE.path,FORM_CATALOG_IMAGE_FAILURE:ge.FORM_CATALOG_IMAGE_FAILURE.path,SCHEDULER_STYLE:ge.SCHEDULER_STYLE.path,SCHEDULER_HANDOFF_REJECT:ge.SCHEDULER_HANDOFF_REJECT.path,KNOWN_FORMS:ge.KNOWN_FORMS.path,SCHEDULER_CLICKABLE:ge.SCHEDULER_CLICKABLE.path,LOADING_MODAL:ge.LOADING_MODAL.path,NATIVE_SUBMIT_RELEASE:ge.NATIVE_SUBMIT_RELEASE.path,CATALOG_SESSION:ge.CATALOG_SESSION.path,CATALOG_FORMS:ge.CATALOG_FORMS.path,CATALOG_FORMS_RECATALOG:ge.CATALOG_RECATALOG.path,CATALOG_DIAGNOSTICS:ge.CATALOG_DIAGNOSTICS.path},ms=new Set(Object.values(X));var jd=!1;var f_=()=>typeof document!="undefined"&&document.visibilityState==="hidden";function qd(e){var i;let t=Gt(e.formsEndpoint),n=Gt(e.analyticsEndpoint);if(!ms.has(e.path)||f_()||!t||!n||t===n||!e.publicKey||jd)return;jd=!0;let r=JSON.stringify({publicKey:e.publicKey,path:e.path}),o=`${n}${zd}`;try{let s=new Blob([r],{type:"text/plain"});if(typeof navigator!="undefined"&&((i=navigator.sendBeacon)!=null&&i.call(navigator,o,s)))return}catch(s){}fetch(o,{method:"POST",headers:{"Content-Type":"text/plain"},body:r,keepalive:!0}).catch(()=>{})}var Fe=I.module("API"),Kn=()=>Date.now(),jo=!0,ps;function Yd(){return!!(ps&&ps.endpoint===Kr(X.FORM_SUBMISSION)&&ps.publicKey===k.getPublicKey())}function Kr(e){return ms.has(e)?k.getFormsEndpoint()||k.getEndpoint():k.getEndpoint()}function Jd(e){let t=k.getFormsEndpoint(),n=k.getEndpoint(),r=k.getPublicKey();!t||!n||!r||qd({path:e,formsEndpoint:t,analyticsEndpoint:n,publicKey:r})}function Zd(e){jo=e,Fe.debug(`Capture ${e?"enabled":"disabled"}`)}function $n(){return jo}function p_(e,t){if(t===null||typeof t!="object"||Array.isArray(t))return null;try{let n=JSON.stringify(S(u(u(u({},t),ml()),e===X.FORM_SUBMISSION?dl():{}),{pixel_build_id:Le}));return typeof n=="string"&&n.length>0?n:null}catch(n){return null}}function ve(e){let t=k.getPublicKey();t&&fl(X.SCHEDULER_HANDOFF_REJECT,{publicKey:t,reason:e})}function ht(e,t,n){if(!jo){Fe.debug("Capture disabled, skipping beacon");return}fl(e,t,n)}function fl(e,t,n){let r=n!==void 0?n:Kr(e);if(!r){Fe.debug("No endpoint configured, skipping beacon");return}let o=p_(e,t);if(o===null){Fe.debug("Beacon payload is not serializable JSON, skipping");return}let i=`${r}${e}`;try{let s=new Blob([o],{type:"text/plain"});navigator.sendBeacon(i,s)||(Fe.debug("sendBeacon failed, falling back to fetch"),fetch(i,{method:"POST",headers:{"Content-Type":"text/plain"},body:o,keepalive:!0}).catch(()=>{Fe.debug("Fetch fallback also failed")}))}catch(s){Fe.debug("Failed to send beacon")}}function qo(e,t,n){return jo?pl(e,t,n):(Fe.debug("Capture disabled, skipping request"),null)}function pl(e,t,n){let r=n!==void 0?n:Kr(e);if(!r)return Fe.debug("No endpoint configured, skipping request"),null;let o=k.getPublicKey();return o?{path:e,url:`${r}${e}`,body:JSON.stringify(u(S(u(u(u({},t),ml()),e===X.FORM_SUBMISSION?dl():{}),{publicKey:o}),e===X.FORM_SUBMISSION?{pixel_build_id:Le}:{}))}:(Fe.warn("No public key configured, skipping request"),null)}function gs(e,t,n){return R(this,null,function*(){try{let r=yield fetch(e.url,{method:"POST",headers:{"Content-Type":"text/plain"},body:e.body,keepalive:t,signal:n});return r.ok?(Fe.success(`Request to ${e.path} succeeded`),{outcome:"ok",response:r}):(Fe.warn(`Request to ${e.path} failed with status ${r.status}`),{outcome:"http",status:r.status,response:r})}catch(r){return n!=null&&n.aborted?{outcome:"transport"}:(Fe.warn(`Request to ${e.path} threw error`,r),Jd(e.path),{outcome:"transport"})}})}function Qd(e,t){return R(this,null,function*(){let n=qo(e,t);if(!n)return null;let r=yield gs(n,!1);return r.outcome==="ok"?r.response:null})}var g_=o=>R(null,[o],function*({prepared:e,publicKey:t,mode:n,options:r}){return fetch(e.url,u(u({method:"POST",headers:n==="json_auth"?{"Content-Type":"application/json",Authorization:`Bearer ${t}`}:{"Content-Type":"text/plain;charset=UTF-8"},body:e.body},r.keepalive!==void 0?{keepalive:r.keepalive&&b_(e.body)<=y_}:{}),r.signal?{signal:r.signal}:{}))}),h_=e=>e===401||e===415,S_=e=>({server_timing:fs(e,"server-timing"),x_vercel_id:fs(e,"x-vercel-id"),x_vercel_cache:fs(e,"x-vercel-cache"),x_matched_path:fs(e,"x-matched-path")});function gl(r,o){return R(this,arguments,function*(e,t,n={}){var c,d;let i=Kr(e);if(!i)return{success:!1,status:0,error:"No endpoint configured"};let s=k.getPublicKey();if(!s)return{success:!1,status:0,error:"No public key configured"};let a=pl(e,t,i);if(!a)return{success:!1,status:0,error:"Cannot prepare request"};let l=n.preferSimpleRequest?["simple_text","json_auth"]:["json_auth"];for(let[m,f]of l.entries()){let p=m===l.length-1,g=Kn();try{let h=yield g_({prepared:a,publicKey:s,mode:f,options:n}),b=Kn(),T=S_(h),v=yield(c=h.json)==null?void 0:c.call(h).catch(()=>{}),F=Kn(),E={request_mode:f,request_start_ms:g,headers_received_ms:b,body_parsed_ms:F,headers_wait_ms:Math.max(0,b-g),body_parse_ms:Math.max(0,F-b),total_duration_ms:Math.max(0,F-g)};if(!h.ok){let y={success:!1,status:h.status,body:v,headers:T,timing:E,error:`Request to ${e} failed with status ${h.status}`},C=f==="simple_text"&&h_(h.status);if(!p&&C)continue;return y}return{success:!0,status:h.status,body:v,headers:T,timing:E}}catch(h){let b={success:!1,status:0,timing:{request_mode:f,request_start_ms:g,headers_received_ms:g,body_parsed_ms:Kn(),headers_wait_ms:0,body_parse_ms:0,total_duration_ms:Math.max(0,Kn()-g)},error:h instanceof Error?h.message:"Unknown error"};if(!p&&f==="simple_text"&&e!==X.FORM_SUBMISSION)continue;return(d=n.signal)!=null&&d.aborted||Jd(e),b}}return{success:!1,status:0,error:"No request mode available"}})}var te={Redirect:"redirect",DisplayScheduler:"display_scheduler"},y_=64*1024;function b_(e){return new Blob([e]).size}var fs=(e,t)=>{var r,o;let n=(o=(r=e.headers)==null?void 0:r.get)==null?void 0:o.call(r,t);return n&&n.length>0?n:void 0};function hs(n){return R(this,arguments,function*(e,t={}){var s,a;if(!t.explicit&&!jo)return null;let r=Kn(),o=yield gl(X.FORM_SUBMISSION,e,u({preferSimpleRequest:!0,keepalive:!0},t.signal?{signal:t.signal}:{}));if(o.status===0)return null;let i={elapsedMs:Math.max(0,Kn()-r),requestId:(s=o.headers)==null?void 0:s.x_vercel_id,serverTiming:(a=o.headers)==null?void 0:a.server_timing};return o.success?!se(o.body)||typeof o.body.success!="boolean"?null:S(u({},o.body),{success:o.body.success,status:o.status,transport:i}):{success:!1,failure:"http_failure",status:o.status,error:o.error,transport:i}})}function em(e){let t=k.getPublicKey();t&&ht(X.LOADING_MODAL,u({publicKey:t},e))}function tm(e){let t=k.getPublicKey();t&&ht(X.SCHEDULER_CLICKABLE,S(u({},e),{publicKey:t}))}function nm(e){return R(this,null,function*(){let t=yield Qd(X.FORM_INTERACTION,e);if(!t)return null;try{return yield t.json()}catch(n){return Fe.warn("Failed to parse form interaction response",n),null}})}function rm(e){ae()&&fl(X.FORM_CATALOG,e)}function om(e){ht(X.FORM_CATALOG_SKIP,e)}function im(e){let t=k.getPublicKey();t&&ht(X.NATIVE_SUBMIT_RELEASE,u({publicKey:t},e))}var Xd={schedulerStyle:null,logoUrl:null,schedulerFormIds:[]};function sm(){return R(this,null,function*(){var t,n;let e=yield Qd(X.SCHEDULER_STYLE,{});if(!e)return Xd;try{let r=yield e.json();return{schedulerStyle:(t=r.schedulerStyle)!=null?t:null,logoUrl:(n=r.logoUrl)!=null?n:null,schedulerFormIds:Array.isArray(r.schedulerFormIds)?r.schedulerFormIds:[]}}catch(r){return Fe.warn("Failed to parse scheduler style response",r),Xd}})}function am(e,t){let n=k.getPublicKey();n&&ht(X.KNOWN_FORMS,{publicKey:n,diagnosticsOnly:!0,diagnostics:lm(e,t)})}function __(e,t){let n=gt(e);return{pathname:n,diagnostics:lm(e!==n,t)}}function lm(e,t){return u({build:Le,pathnameNormalized:e},t)}function hl(r){return R(this,arguments,function*(e,t={},n){if(!(n!=null&&n.explicit)&&!ae())return null;let o=pl(X.KNOWN_FORMS,__(e,t));if(!o)return null;let i=Kr(X.KNOWN_FORMS),s=k.getPublicKey(),a=yield gs(o,!1);if(a.outcome!=="ok")return null;let l=a.response;try{let c=yield l.json();if(i===Kr(X.KNOWN_FORMS)&&s===k.getPublicKey()&&(ps=c.submissionIdempotency===!0&&i&&s?{endpoint:i,publicKey:s}:void 0),c.knownForms===null)return null;let d=Rd(c.knownForms);return d.knownForms||ul(d.invalidLinkedForms),d.knownForms}catch(c){return ul(0),Fe.warn("Failed to parse known forms response",c),null}})}var Ss="__dftCatalog";var um="__dftCatalogBoot__";var cm,dm,E_=(dm=(cm=document.currentScript)==null?void 0:cm.src)!=null?dm:null,I_=()=>{var n;let t=Array.from(document.querySelectorAll("script[src]")).find(r=>/\/(index|core)\.js(\?|$)/.test(r.src));return(n=t==null?void 0:t.src)!=null?n:null},ys=e=>{let t=E_||I_();return t?t.replace(/[^/]+$/,e):null};var bs=I.module("Catalog"),mm=(e,t)=>{let n=null;try{n=w_(new URL(window.location.href))}catch(l){return}if(!n)return;let r=ys("catalog-overlay.js");if(!r){bs.warn("Cannot locate the catalog overlay bundle next to the pixel script");return}let o=k.getEndpoint(),i=S(u({token:n.token,endpoint:e},o&&o!==e?{analyticsEndpoint:o}:{}),{publicKey:t,pathname:gt(window.location.pathname),build:Le});window[um]=i;let{source:s}=n,a=document.createElement("script");a.async=!0,a.src=r,a.onload=()=>R_(s),a.onerror=()=>bs.warn("Failed to load the catalog overlay bundle; the launch token was left in the URL"),document.head.appendChild(a),bs.debug("Catalog mode requested, loading overlay")},fm=`${Ss}=`,pm=e=>{let t=e.hash.replace(/^#/,"");return t?t.split("&"):[]},gm=e=>e.startsWith(fm),L_=e=>{let t=e.slice(fm.length);try{return decodeURIComponent(t)}catch(n){return t}},w_=e=>{let t=pm(e).find(gm);if(t){let r=L_(t);if(r)return{token:r,source:"fragment"}}let n=e.searchParams.get(Ss);return n?{token:n,source:"query"}:null},R_=e=>{try{let t=new URL(window.location.href);e==="fragment"?t.hash=pm(t).filter(n=>!gm(n)).join("&"):t.searchParams.delete(Ss),window.history.replaceState(window.history.state,"",t.toString())}catch(t){bs.debug("Could not rewrite the URL to drop the catalog token")}};var St=null,Es=null,yl=!1,Xo=!1,hm=0,_s=null,Sm,Sl=new Set,ym=()=>{Sm=new Promise(e=>{_s=e})};ym();var bm=e=>{let t=Xo;return T_(),Xo=t,Es=e==null?null:gt(e),++hm},bl=()=>Es!==null&&Es!==gt(window.location.pathname),_l=(e,t)=>{if(t!==void 0&&t!==hm)return;St=e,(e==null?void 0:e.schedulerFormIds)!==void 0&&(Xo=!0),yl=!0,_s==null||_s();let n=ne();for(let r of[...Sl])r(n)},_m=e=>(Sl.add(e),()=>{Sl.delete(e)}),ne=()=>St?bl()?S(u({},St),{submissionOwnerIds:void 0,marketoNumericSubmissionOwners:void 0,marketoNumericPrimaryOwners:void 0,ambiguousSubmissionIds:void 0,path:S(u({},St.path),{linked:[]})}):St:null,dn=()=>!St||bl()?null:St.path.linked;var Em=e=>R(null,null,function*(){yl||(yield Promise.race([Sm,new Promise(t=>{setTimeout(t,e)})]))});function T_(){St=null,Xo=!1,Es=null,yl=!1,ym()}var Ke=()=>{var t,n;let e=ne();return e?e.submissionOwnerIds===void 0?[...e.ids,...(t=e.submissionAliases)!=null?t:[]]:[...Object.keys(e.submissionOwnerIds),...(n=e.ambiguousSubmissionIds)!=null?n:[]]:[]},Yo=()=>{var e;return((e=ne())==null?void 0:e.submissionAliases)!==void 0};function Im(){var e;if(Xo)return bl()?[]:(e=St==null?void 0:St.schedulerFormIds)!=null?e:[]}var wm=!1;function Rm(){let e=window.location.pathname;wm=gt(e)!==e;let t=bm(e);hl(e,cl()).then(n=>{_l(n,t)}).catch(()=>{_l(null,t)})}function El(){let e=cl();Object.keys(e).length!==0&&am(wm,e)}var Lm=!1;function Tm(){Lm||(Lm=!0,window.addEventListener("pagehide",El))}function Y(e){return(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE}function Fm(e){let t=e==null?void 0:e.nodeType;return t===Node.TEXT_NODE||t===Node.CDATA_SECTION_NODE||t===Node.COMMENT_NODE||t===Node.PROCESSING_INSTRUCTION_NODE}function G(e){return Y(e)&&e.localName==="input"}function et(e){return Y(e)&&e.localName==="select"}function zn(e){return Y(e)&&e.localName==="textarea"}function ce(e){return Y(e)&&e.localName==="form"}function Jo(e){return Y(e)&&e.localName==="button"}function jn(e){if(G(e)||zn(e)||et(e)||Jo(e))return ce(e.form)?e.form:null;if(!Y(e))return null;let t=e.closest("form");return ce(t)?t:null}function qn(e){return Y(e)&&e.localName==="iframe"}function vm(e){var t;return(t=e.ownerDocument)!=null?t:e}var mn="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",F_=new RegExp(`^${mn}$`,"i");function $r(e){return F_.test(e)}var Il="default-pixel-form-",v_=new RegExp(`^${Il}(${mn})$`,"i");function xm(e){let t=typeof e=="string"?e.trim():"";return $r(t)?t.toLowerCase():null}function Cm(e,t){let n=e.filter(r=>t.some(o=>r.structureHash===o.structureHash&&r.contentHash===o.contentHash));return n.length!==1||n[0].tracksPath===!1?null:n[0]}function fn(e){return`${Il}${e}`}function Am(e,t){if(!e.id)return null;let n=fn(e.id);return(t==null?void 0:t.submissionOwnerIds)!==void 0?t.submissionOwnerIds[n]===e.id?n:e.htmlFormId:t!=null&&t.ids.includes(n)&&e.htmlFormId!==n?e.htmlFormId:n}function le(e){return e.trim().toLowerCase().startsWith(Il)}function $t(e){let t=e.trim().match(v_);return t!=null&&t[1]?t[1].toLowerCase():null}var Zo="hsForm_",x_=new RegExp(`^${mn}-${mn}$`,"i"),C_=new RegExp(`^(${mn})_[0-9]+$`,"i"),A_=new RegExp(`(?:^|[^0-9a-f])(${mn})$`,"i"),Ll=e=>$r(e);function xe(e){var r,o;let t=e.trim();if(!t)return null;if(Ll(t))return t.toLowerCase();if(t.toLowerCase().startsWith(Zo.toLowerCase())){let i=t.slice(Zo.length);if(Ll(i))return i.toLowerCase();let s=i.match(C_);return(o=(r=s==null?void 0:s[1])==null?void 0:r.toLowerCase())!=null?o:null}let n=t.match(A_);return n!=null&&n[1]?n[1].toLowerCase():null}function Xn(e){var t;return(t=xe(e))!=null?t:e.trim().toLowerCase()}function M_(e){let t=e.trim();return!t||le(t)?!1:Ll(t)?!0:/^hsForm_/i.test(t)||/^hs_form_target_widget_/i.test(t)?xe(t)!=null:x_.test(t)}function Is(e,t){let n=e.trim();return!n||le(n)||xe(n)==null?!1:t==="hubspot"?!0:M_(n)}function Mm(e,t){var r;let n=e.trim();return Is(n,t==null?void 0:t.formType)&&(r=xe(n))!=null?r:n}function km(e,t){if(e==null&&t==null)return!0;if(e==null||t==null)return!1;if(e===t)return!0;if(le(e)||le(t))return!1;let n=xe(e),r=xe(t);return n!=null&&r!=null&&n.toLowerCase()===r.toLowerCase()}function Om(e){let t=e.trim();if(!t)return[];if(le(t))return[t];let n=[t],r=xe(t);return r&&(n.push(r),n.push(`${Zo}${r}`)),[...new Set(n)]}function Pm(e){return`(^|[^0-9a-f])${e}(_[0-9]+)?$`}var wl="mktoForm_",Dm="[0-9]+",k_=new RegExp(`^${wl}(${Dm})`,"i"),O_=new RegExp(`^${Dm}$`);function B(e){var n,r;let t=e.trim();return!t||le(t)?null:(r=(n=t.match(k_))==null?void 0:n[1])!=null?r:null}function Yn(e){let t=String(e).trim();return O_.test(t)?`${wl}${t}`:null}function tt(e,t){return t==="marketo"&&Yn(e)!=null}function P_(e){let t=e.trim();return!t||le(t)?!1:B(t)!=null}function zr(e,t){let n=e.trim();return!n||le(n)?!1:t==="marketo"&&Yn(n)!=null?!0:P_(n)}function yt(e,t){var o;let n=e.trim();if(!zr(n,t==null?void 0:t.formType))return n;let r=B(n);return r?`${wl}${r}`:(o=Yn(n))!=null?o:n}function pn(e,t){if(e==null&&t==null)return!0;if(e==null||t==null)return!1;if(e===t)return!0;let n=B(e),r=B(t);return n!=null&&r!=null&&n===r}function Nm(e,t){let n=e.trim();if(!n)return[];let r=[n],o=yt(n,{formType:t});return o!==n&&r.push(o),[...new Set(r)]}function Hm(e){return`^mktoForm_${e}([^0-9]|$)`}function D_(e,t,n){return n!=null&&n.formTypeIsAuthoritative&&t!=null?t==="hubspot"?Is(e,t):t==="marketo"?zr(e,t):!1:Is(e,t)||zr(e,t)}function Jn(e,t,n){return D_(e,t,n)?!(n!=null&&n.formTypeIsAuthoritative&&t==="hubspot")&&zr(e,t)?yt(e,{formType:t}):Mm(e,{formType:t}):e.trim()}function Zn(e,t){return zr(e,t)?Nm(e,t):Om(e)}function Um(e,t){var i,s;if(le(e))return null;let n=Jn(e,t),r=(i=B(e))!=null?i:B(n);if(r)return Hm(r);let o=(s=xe(e))!=null?s:xe(n);return o?Pm(o):null}function zt(e,t){return B(e!=null?e:"")!=null||B(t!=null?t:"")!=null?pn(e,t):km(e,t)}function Bm(e){let t=typeof e=="number"?String(e):typeof e=="string"?e.trim():"";if(!/^[1-9][0-9]{0,9}$/.test(t))return null;let n=Number(t);return!Number.isSafeInteger(n)||n>2147483647?null:n}function Vm(e){let t=[],n=e;for(let r=0;n&&r<=2;r++)t.push(n),n=n.parentElement;return t}function Wm(e){var n,r,o,i;let t=(r=(n=e.getAttribute)==null?void 0:n.call(e,"data-default-form-id"))==null?void 0:r.trim();return t||((i=(o=e.dataset)==null?void 0:o.defaultFormId)==null?void 0:i.trim())||""}function jt(e){return Vm(e).some(t=>!!Wm(t))}function gn(e){let t=Vm(e).map(Wm).filter(n=>n.length>0);return Array.from(new Set(t))}function Rl(){var e;return typeof window=="undefined"?{}:(e=window.__defaultPixel__)!=null?e:{}}function Gm(e){return Bm(e)}function Qo(e){return xm(e)}function N_(e){let t=e.form_id;return t?$t(t)?!0:e.form_type==="hubspot"?!1:!!Qo(t):!1}function Tl(e=Rl()){return Qo(e.pixelFormId)?!0:(Array.isArray(e.routedForms)?e.routedForms:[]).some(n=>!!Qo(n==null?void 0:n.pixelFormId))}function H_(...e){let t=Rl(),n=Array.isArray(t.routedForms)?t.routedForms:[],r=!1;for(let i of e){let s=Gm(i);if(s!=null){r=!0;for(let a of n){let l=Gm(a==null?void 0:a.nucleusFormId);if(l==null||l!==s)continue;let c=Qo(a==null?void 0:a.pixelFormId);if(c)return{pixelFormId:c,nucleusFormId:s}}}}if(r)return;let o=Qo(t.pixelFormId);return o?{pixelFormId:o,pageFallback:!0}:void 0}function Fl(e){let i=e,{js_route_candidates:t}=i,n=Un(i,["js_route_candidates"]),r=Tl(Rl());if(n.pixel_form_id)return r?S(u({},n),{js_route_bind_outcome:"already_set"}):n;let o=H_(...t!=null?t:[]);return o?o.pageFallback&&N_(n)?r?S(u({},n),{js_route_bind_outcome:"already_set"}):n:u(S(u({},n),{pixel_form_id:o.pixelFormId,js_route:!0,js_route_bind_outcome:o.pageFallback?"page_fallback":"bound"}),o.nucleusFormId!=null?{nucleus_form_id:o.nucleusFormId}:{}):r?S(u({},n),{js_route_bind_outcome:"unmapped"}):n}function U_(){var e;return typeof window=="undefined"?{}:(e=window.__defaultPixel__)!=null?e:{}}function vl(e){return e==null?[]:Array.isArray(e)?e.map(t=>String(t!=null?t:"").trim()).filter(t=>t.length>0):[]}function B_(e,t){return zt(e,t)}function Km(e,t){return e.some(n=>t.some(r=>B_(n,r)))}function Ct(e,...t){return e&&jt(e)?!0:V_(...t)}var Ls=null;function $m(e){Ls=e}function bt(...e){let t=U_(),n=vl(e),r=vl(t.excludeFormIds);if(r.length>0&&Km(n,r))return"excluded";if(t.captureFormIds==null)return null;let o=vl(t.captureFormIds);return o.length===0||n.length===0||!Km(n,o)?"not_allowlisted":null}function V_(...e){return bt(...e)==null}function we(e,t,n){var a,l;let r=String(e!=null?e:"").trim()||"unnamed",o=(a=t!=null?t:bt(r))!=null?a:"not_allowlisted",i=typeof window!="undefined"?window.location.hostname:"",s=(l=n==null?void 0:n.originHost)==null?void 0:l.trim();Ls==null||Ls(r,u(u(u(u(u(u({reason:o,pageHost:i},Tl()?{jsRoute:!0}:{}),s?{originHost:s}:{}),n!=null&&n.sourceKind?{sourceKind:n.sourceKind}:{}),n!=null&&n.embedState?{embedState:n.embedState}:{}),n!=null&&n.embedKind?{embedKind:n.embedKind}:{}),n!=null&&n.formType?{formType:n.formType}:{}))}function ws(e){function t(r,o){return e(r,o).ok}function n(r,o){let i=e(r,o);if(!i.ok)throw new Error(i.reason);return i.value}return{isValid:t,normalize:n}}function Rs(e){return{ok:!0,value:e}}function jr(e){return{ok:!1,reason:e}}var Al=Wb(Qm(),1);var Z_=String.raw`^[^@\s]+@[^@\s]+\.[^@\s]+$`,Q_=new RegExp(Z_),eE=/^[^@\s]+@[^@\s]+$/;function ef(e){if(typeof e!="string")return jr("Expected an email string");let n=e.trim().toLowerCase();return!eE.test(n)||!Q_.test(n)?jr("Expected a valid email"):Rs(n)}var{isValid:d0,normalize:m0}=ws(ef);function Qn(e){let t=ef(e);return t.ok?t.value:null}var tf,h0=((tf=Al.default)!=null?tf:Al).toUnicode,tE=String.raw`^[a-zA-Z0-9][a-zA-Z0-9\-\.]*\.[a-zA-Z]{2,}$`,nE=new RegExp(tE);function rE(e){if(typeof e!="string")return jr("Expected a domain string");let t=e.trim().toLowerCase();return nE.test(t)?Rs(t):jr("Expected a valid domain")}var{isValid:S0,normalize:y0}=ws(rE);function _t(e,t){let n=e.toLowerCase(),r=t.toLowerCase();return n===r||n.endsWith(`.${r}`)}var oE=I.module("Listener"),iE="__dft-catalog-overlay",nf=globalThis.WeakRef,Ol=e=>nf?new nf(e):{deref:()=>e},Ts=new Set,Fs=new WeakMap,uf=new WeakSet,rf=new WeakMap,ti=new Map,Ml=new WeakSet,ei=new WeakSet,of=new WeakSet;function kt(e){var n,r;let t=e;for(;t;){let o=nt(t)?t:Mt(t);if(!o)return!0;if(nt(o)){if(o.mode!=="open"||o.host.id===iE)return!1;t=o.host;continue}if(o.nodeType===Node.DOCUMENT_NODE)try{t=(r=(n=o.defaultView)==null?void 0:n.frameElement)!=null?r:null;continue}catch(i){return!0}return!0}return!0}var ni=e=>kt(e),nt=e=>e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e,Mt=e=>typeof e.getRootNode=="function"?e.getRootNode():null,vs=e=>{var t,n;return(n=(t=qr(e))!=null?t:e.ownerDocument)!=null?n:document},qr=e=>{let t=Mt(e);return t&&t!==e.ownerDocument&&nt(t)?t:null},cf=e=>qr(e)!==null,df=(e,t)=>{let n=sE(e,t);return(n?n.getAttribute("name")||n.id:void 0)||e.name||e.id||void 0},sE=(e,t)=>{var r;let n=mf(e,t);return(r=n[n.length-1])!=null?r:null},mf=(e,t)=>{let n=[],r=Mt(t),o=e;for(;;){let i=qr(o);if(!i||i===r)return[];let s=i.host;if(n.push(s),Mt(s)===r)return n;o=s}},ff=(e,t)=>[e.name,e.id,...mf(e,t).flatMap(n=>[n.getAttribute("name"),n.id])].filter(n=>!!n),er=e=>{var n;if(e&&!kt(e))return null;let t=e;for(;t;){let r=jn(t);if(r)return t===e||aE(t,r)?r:null;t=(n=qr(t))==null?void 0:n.host}return null},aE=(e,t)=>Array.prototype.includes.call(t.elements,e)||e.hasAttribute("name"),qt=e=>cf(e)?(ei.add(e),!0):e.isConnected?(ei.delete(e),!1):ei.has(e),lE=e=>uf.has(e),sf=64,af=new WeakMap,pf=(e,t)=>{var r;let n=(r=af.get(e))!=null?r:sf;if(e.size>=n){for(let o of e)o.deref()===void 0&&e.delete(o);af.set(e,Math.max(sf,e.size*2))}e.add(t)},lf=(e,t)=>{let n=e.host.ownerDocument,r=Fs.get(n);r||(r=new Set,Fs.set(n,r)),r.has(t)||pf(r,t)},Pl=e=>{if(!ni(e))return!1;if(lE(e)){let n=rf.get(e);n&&lf(e,n);for(let r of ti.keys())kl(r,e);return!1}uf.add(e);let t=Ol(e);rf.set(e,t),pf(Ts,t),lf(e,t);for(let n of ti.keys())kl(n,e);return!0},gf=e=>{var t,n;return((n=(t=Fs.get(e))==null?void 0:t.size)!=null?n:0)>0},kl=(e,t)=>{let n=ti.get(e);if(!(!n||n.has(t)||!ni(t))){n.add(t);try{e(t)}catch(r){n.delete(t),oE.warn("A shadow-root listener failed; that root is not captured",{error:r})}}},hf=(e,t)=>{e.nodeType===Node.ELEMENT_NODE&&t(e),e.querySelectorAll("*").forEach(n=>t(n))},Sf=e=>{let t=0;return hf(e,n=>{let r=n.shadowRoot;!r||!ni(r)||(Pl(r)&&(t+=1),t+=Sf(r))}),t},yf=e=>{var t,n;return e.nodeType===Node.DOCUMENT_NODE?e.defaultView:(n=(t=e.ownerDocument)==null?void 0:t.defaultView)!=null?n:null},Dl=e=>{var r;let t=(r=e==null?void 0:e.Element)==null?void 0:r.prototype;if(!t||of.has(t))return;of.add(t);let n=t.attachShadow;if(typeof n=="function")try{t.attachShadow=function(i){let s=n.call(this,i);return i.mode==="open"&&Pl(s),s}}catch(o){}},xs=e=>{ti.set(e,new WeakSet),Dl(window);for(let t of Ef())kl(e,t);return()=>{ti.delete(e)}},bf=e=>(Ml.delete(e),_f(e)),_f=e=>{if(!kt(e))return 0;if(Dl(yf(e)),e.nodeType===Node.DOCUMENT_NODE){let t=e;if(Ml.has(t))return 0;Ml.add(t)}return Sf(e)},Ef=(e=Ts)=>{let t=[];for(let n of e){let r=n.deref();if(r){t.push(r);continue}e.delete(n),Ts.delete(n)}return t},uE=e=>{let t=e?Fs.get(e):Ts;return t?Ef(t).filter(n=>ni(n)&&n.host.isConnected&&(!e||n.host.ownerDocument===e)):[]},If=(e,t,n,r)=>{e.querySelectorAll("form").forEach(o=>{!ce(o)||t.has(o)||(t.add(o),n.push(o),r&&ei.add(o))})},Ot=e=>kt(e)?(_f(e),[e,...uE(e)]):[],Xr=e=>{let t=[],n=new Set;for(let r of Ot(e))If(r,n,t,nt(r));return t},Cs=(e,t)=>{var o;let n=e.querySelectorAll("form");if(n.length===1)return ce(n[0])?n[0]:null;if(n.length>1)return null;let r=t!=null?t:Xr(e);return r.length===1&&(o=r[0])!=null?o:null},Nl=e=>{if(!kt(e))return{forms:[],hasIframe:!1};Dl(yf(e));let t=[],n=new Set,r=!1,o=i=>{let s=nt(i);qn(i)&&(r=!0),ce(i)&&!n.has(i)&&(n.add(i),t.push(i),(s||cf(i))&&ei.add(i)),If(i,n,t,s),hf(i,a=>{qn(a)&&(r=!0);let l=a.shadowRoot;!l||!ni(l)||(Pl(l),o(l))})};return o(e),{forms:t,hasIframe:r}};function Lf(e){var t,n,r,o;return(o=(r=(n=(t=e.ownerDocument)==null?void 0:t.defaultView)==null?void 0:n.HTMLFormElement)==null?void 0:r.prototype)!=null?o:HTMLFormElement.prototype}function Hl(e,t){var n,r;return(r=(n=Object.getOwnPropertyDescriptor(Lf(e),t))==null?void 0:n.get)==null?void 0:r.call(e)}function wf(e){return Hl(e,"noValidate")===!0}function Ul(e,t){let n=e[t];return typeof n=="function"?n:Lf(e)[t]}function M(e,t){let n=t==="class"?"className":t,r=e[n];if(typeof r=="string")return r;let o=Hl(e,n);return typeof o=="string"?o:e.getAttribute(t)||""}function ri(e){let t=Hl(e,"elements");return t&&typeof t.length=="number"?t:e.elements}function tr(e){let t=[],n=ri(e);for(let r=0;r<n.length;r++){let o=n[r];(G(o)||zn(o)||et(o))&&t.push(o)}return t}function Rf(e){return Jo(e)?e.type==="submit":G(e)&&(e.type==="submit"||e.type==="image")}function As(e,t){return Rf(t)&&t.form===e?t:void 0}function Bl(e,t){let n=As(e,t);return n?new FormData(e,n):new FormData(e)}function Vl(e){let t=[],n=ri(e);for(let s=0;s<n.length;s++){let a=n[s];Rf(a)&&t.push(a)}let r=Mt(e),i=(r&&"querySelectorAll"in r?r:e.ownerDocument).querySelectorAll("input");for(let s=0;s<i.length;s++){let a=i[s];!G(a)||a.type!=="image"||a.form!==e||t.push(a)}return t.sort((s,a)=>cE(s,a)?1:-1)}function Tf(e){var t;return(t=Vl(e)[0])!=null?t:null}function cE(e,t){var r,o,i;let n=(i=(o=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:o.Node.DOCUMENT_POSITION_PRECEDING)!=null?i:2;return(e.compareDocumentPosition(t)&n)!==0}function nr(e){var o;if(typeof e.getAttribute!="function")return null;let t=(o=e.getAttribute("data-default-form-id"))==null?void 0:o.trim();if(!t)return null;let n=le(t)?t:fn(t),r=$t(n);return r?fn(r):null}var dE=I.module("Frames"),mE=3;function oi(e){try{return e.contentDocument}catch(t){return null}}function Ms(e,t){let n=new Set([e]),r=!1,o=(i,s)=>{let a=0,l=0;for(let c of Ot(i)){if(r)return;for(let d of fE(c)){if(r)return;a+=1;let m=oi(d);if(m||l++,t(d,m)===!0){r=!0;return}!m||n.has(m)||s+1>=mE||(n.add(m),o(m,s+1))}}a>0&&dE.debug(`Walked ${a} frames at depth ${s}, ${l} unreachable`)};o(e,0)}var fE=e=>{let t=[];return e.querySelectorAll("iframe").forEach(n=>{qn(n)&&t.push(n)}),t};function pE(e,t){let n=new Set([e]);Ms(e,(r,o)=>{!o||n.has(o)||(n.add(o),t(o,r))})}function ii(e,t=document){if(!e)return null;let n=null;return Ms(t,r=>{if(r.contentWindow===e)return n=r,!0}),n}function si(e=document){let t=[e];return pE(e,n=>{t.push(n)}),t}var rt={PARDOT:"pardot",PARDOT_ACTION_HOSTS:["pardot.com"],HS_CLASS:/\bhs-form\b/i,HS_ID:/^hsForm_/,HS_ACTION_HOSTS:["hsforms.com","hubspot.com"],MKTO_CLASS:/\bmktoForm\b/i,MKTO_ID:/^mktoForm_/,MKTO_ACTION_HOSTS:["marketo.com","mktoweb.com"],META_PIXEL_HOSTS:["facebook.com","www.facebook.com"],META_PIXEL_PATH:"/tr"},gE={PASSWORD:/password/i,SECRET:/secret/i,TOKEN:/token/i,KEY:/(api|private|secret|access|stripe|signing|encryption)[_-]?key/i,AUTH:/auth/i,CREDENTIAL:/credential/i,SSN:/ssn/i,CREDIT_CARD:/credit.?card/i,CVV:/cvv/i,CVC:/cvc/i},Ff=Object.values(gE);function Wl(e,t){if(!e.getAttribute("action"))return!1;let n=M(e,"action"),r;try{r=new URL(n)}catch(i){return!1}let o=r.hostname;return t.some(i=>_t(o,i))}function xf(e){let t=M(e,"id"),n=e.className||"";return rt.HS_ID.test(t)?"id":rt.HS_CLASS.test(n)?"class":Wl(e,rt.HS_ACTION_HOSTS)?"action-host":e.querySelector('[name="hs_context"]')?"hs_context":null}function Cf(e){let t=M(e,"id"),n=e.className||"";return rt.MKTO_ID.test(t)?"id":rt.MKTO_CLASS.test(n)?"class":Wl(e,rt.MKTO_ACTION_HOSTS)?"action-host":e.querySelector('[name="munchkinId"], [id^="Mkto"]')?"input":null}function Af(e){let t=e.getAttribute("name")||"",n=M(e,"id");return Wl(e,rt.PARDOT_ACTION_HOSTS)?"action-host":t.includes(rt.PARDOT)?"name":n.includes(rt.PARDOT)?"id":e.querySelector('[name*="pardot"]')?"input":null}function Mf(e){return Af(e)!==null}function kf(e){return xf(e)!==null}function Of(e){return Cf(e)!==null}function Pf(e){let t=xf(e);if(t)return{vendor:"hubspot",reason:t};let n=Cf(e);if(n)return{vendor:"marketo",reason:n};let r=Af(e);return r?{vendor:"pardot",reason:r}:null}function Gl(e){var i,s;let t=M(e,"action");if(!t)return!1;let n;try{n=new URL(t)}catch(a){let l=(s=(i=e.ownerDocument.defaultView)==null?void 0:i.location)==null?void 0:s.href;if(!l)return!1;try{n=new URL(t,l)}catch(c){return!1}}let r=n.hostname.toLowerCase();return rt.META_PIXEL_HOSTS.includes(r)?(n.pathname.endsWith("/")?n.pathname.slice(0,-1):n.pathname)===rt.META_PIXEL_PATH:!1}function hE(e){var n;if(M(e,"id")==="goog-gt-votingForm")return!0;let t=M(e,"action");if(!t)return!1;try{let r=new URL(t,(n=e.ownerDocument.defaultView)==null?void 0:n.location.href);return r.hostname==="translate.googleapis.com"&&r.pathname==="/translate_voting"}catch(r){return!1}}var Df=e=>Gl(e)?"meta":hE(e)?"translate":null;function Re(e){if(!kt(e))return!0;let t=e;for(;t;){if(t.hasAttribute("data-default-ignore"))return!0;if(t.parentElement){t=t.parentElement;continue}let n=qr(t);if(n){t=n.host;continue}t=EE(t)}return!1}function SE(e,t){let n=e.getAttribute("data-form-id");if(n&&(xe(n)===t||n.toLowerCase()===t))return!0;let r=e.getAttribute("id");if(!r)return!1;if(xe(r)===t)return!0;let o=r.toLowerCase();return o===t||o===`${Zo.toLowerCase()}${t}`}function Sn(e){let t=Xn(e);return t?si().flatMap(n=>Ot(n).flatMap(r=>Array.from(r.querySelectorAll("[data-form-id], [id]")).filter(o=>SE(o,t)))):[]}function vf(e){var t;return(t=gn(e)[0])!=null?t:""}function yE(e){return gn(e).join("\0")}function bE(e){return e.filter(n=>!e.some(r=>r!==n&&r.contains(n))).map(n=>e.filter(r=>r===n||n.contains(r)))}function _E(e){var r,o,i,s;let t=new Set(e.map(vf).filter(a=>a.length>0));if(t.size>1)return null;let n=(r=[...t][0])!=null?r:"";return n.length>0?(i=(o=e.find(a=>vf(a)===n))!=null?o:e[0])!=null?i:null:(s=e[0])!=null?s:null}function Nf(e){var r;let t=Sn(e);if(t.length===0)return null;let n=[];for(let o of bE(t)){let i=_E(o);if(i==null)return null;n.push(i)}return new Set(n.map(yE)).size>1?null:(r=n[0])!=null?r:null}function ks(e){return Sn(e).some(Re)}function EE(e){var t,n;try{return(n=(t=e.ownerDocument.defaultView)==null?void 0:t.frameElement)!=null?n:null}catch(r){return null}}var Os=(m=>(m.TEXT="text",m.TEXTAREA="textarea",m.EMAIL="email",m.PHONE="phone",m.URL="url",m.NUMBER="number",m.BOOLEAN="boolean",m.DATE="date",m.SELECT="select",m.MULTISELECT="multiselect",m.HIDDEN="hidden",m))(Os||{}),oC={text:"string",textarea:"string",email:"email",phone:"phone",url:"url",number:"number",boolean:"boolean",date:"date",select:"select",multiselect:"multiselect",hidden:"string"};var IE=new Set(Object.values(Os));function Ps(e){return IE.has(e)}var Hf=(e,t)=>{switch(e){case"email":return"email";case"tel":return"phone";case"url":return"url";case"number":case"range":return"number";case"date":case"datetime-local":return"date";case"checkbox":return Array.isArray(t)&&t.length>0?"multiselect":"boolean";case"radio":case"select":case"select-one":return"select";case"select-multiple":return"multiselect";case"textarea":return"textarea";case"hidden":return"hidden";default:return"text"}},LE=e=>Ps(e)&&e!=="select"&&e!=="textarea";function ai(e){var n;let t=((n=e.input_type)==null?void 0:n.trim())||null;return LE(e.type)?e.type:e.type==="select"?t==="select-multiple"?"multiselect":"select":e.type==="textarea"?"textarea":e.type==="string"||e.type==="input"?t?Hf(t,e.options):"text":Hf(e.type,e.options)}var Kl=(e,t)=>ai(e)==="hidden"&&ai(t)!=="hidden",Uf=e=>{var t,n,r;return{type:(t=e.type)!=null?t:"input",input_type:(r=(n=e.inputType)!=null?n:e.input_type)!=null?r:null}},Ds=e=>{let t=new Map;return e.forEach((n,r)=>{let o=t.get(n.name);(!o||Kl(Uf(o.field),Uf(n)))&&t.set(n.name,{field:n,fieldOrder:r})}),[...t.values()].sort((n,r)=>n.fieldOrder-r.fieldOrder)};var li=e=>e==="hs_context"||/^g-recaptcha-response(?:-\d+)?$/.test(e);var wE={text:{tag:"input",inputType:"text"},textarea:{tag:"textarea",inputType:null},email:{tag:"input",inputType:"email"},phone:{tag:"input",inputType:"tel"},url:{tag:"input",inputType:"url"},number:{tag:"input",inputType:"number"},boolean:{tag:"input",inputType:"checkbox"},date:{tag:"input",inputType:"date"},select:{tag:"select",inputType:null},multiselect:{tag:"select",inputType:"select-multiple"},hidden:{tag:"input",inputType:"hidden"}};function Bf(e){return wE[e]}var Vf=new Intl.Collator("en"),Wf=(e,t)=>Vf.compare(e.name,t.name),RE=e=>{var t,n;return(n=(t=e.inputType)!=null?t:e.input_type)!=null?n:null},TE=e=>e==="select"||e==="textarea",Gf=e=>{let t=e.type==="string"?"text":e.type;if(Ps(t)&&!TE(t)){let{tag:n,inputType:r}=Bf(t);return{type:n,inputType:r}}return{type:e.type,inputType:RE(e)}},FE=e=>e?[...e].map(t=>{var n;return{value:t.value,label:(n=t.label)!=null?n:""}}).sort((t,n)=>Vf.compare(t.value,n.value)):null,$l=e=>JSON.stringify([...e].sort(Wf).map(t=>({name:t.name,type:Gf(t).type}))),rr=e=>JSON.stringify([...e].sort(Wf).map(t=>{var o,i,s;let{type:n,inputType:r}=Gf(t);return{name:t.name,type:n,inputType:r,label:(o=t.label)!=null?o:null,placeholder:(i=t.placeholder)!=null?i:null,required:(s=t.required)!=null?s:!1,options:FE(t.options)}}));function Kf(e){let t=0;if(typeof e!="string"||e.length===0)return String(t);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return t=t>>>0,Number(t).toString(32).toUpperCase()}var vE=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(32).toUpperCase()},or=e=>`${Kf(e)}${vE(e)}`;var Ns=e=>Ds(e).map(({field:t})=>t),Te=e=>or($l(Ns(e))),Pt=e=>or(rr(Ns(e))),xE=e=>Ns(e).map(t=>{var n,r;return S(u({},t),{label:null,placeholder:null,options:(r=(n=t.options)==null?void 0:n.map(o=>({value:o.value,label:""})))!=null?r:null})}),$f=e=>or(rr(xE(e))),zl=e=>{for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!0;return!1},zf=e=>{var t;for(let n of Ns(e)){if(n.label&&zl(n.label)||n.placeholder&&zl(n.placeholder))return!0;for(let r of(t=n.options)!=null?t:[])if(r.label&&zl(r.label))return!0}return!1};function jf(e){return typeof CSS!="undefined"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function qf(e,t){let n=(e.name||e.id||"").toLowerCase();return G(e)&&(e.type||"").toLowerCase()==="email"||n.includes("email")||(t!=null?t:"").toLowerCase().includes("email")}function Xf(e){return G(e)||zn(e)||et(e)?!0:Y(e)&&e.localName==="div"&&e.getAttribute("contenteditable")==="true"}function Yf(e){return e==="keydown"||e==="copy"?!1:["focus","blur","focusout","change","input","paste"].includes(e)}function Xt(e,t=void 0){return!(li(e)||Ff.some(n=>n.test(e))||t==="password")}function jl(e){var t;try{if(G(e)){if(e.type==="checkbox"||e.type==="radio")return e.checked?"true":"false";if(e.type==="file")return(t=e.files)!=null&&t.length?`${e.files.length} file(s) selected`:""}return e.value||""}catch(n){return""}}var Jf=e=>{if(e==null)return 0;let t=e instanceof Date?e.getTime():Date.parse(e);return Number.isFinite(t)?t:0},Zf=e=>{if(e==null)return Number.NEGATIVE_INFINITY;let t=e instanceof Date?e.getTime():Date.parse(e);return Number.isFinite(t)?t:Number.NEGATIVE_INFINITY},Qf=(e,t)=>{var n,r,o,i;return Number((n=t.canonical)!=null?n:!1)-Number((r=e.canonical)!=null?r:!1)||Zf(t.lastSeenAt)-Zf(e.lastSeenAt)||((o=e.source)!=null?o:0)-((i=t.source)!=null?i:0)||Jf(t.updatedAt)-Jf(e.updatedAt)||(e.id===t.id?0:e.id>t.id?-1:1)};var CE=e=>{var t,n;return(n=e.htmlFormIds)!=null?n:((t=e.aliasIds)!=null?t:[]).map(r=>({id:r}))};function ql(e,t){var n;return t!=null&&t.marketoNumericPrimaryOwners?t.marketoNumericPrimaryOwners[e]:((n=t==null?void 0:t.marketoNumericSubmissionOwners)==null?void 0:n[e])===void 0?void 0:null}function Hs(e,t,n){let r=[...new Set(t)].filter(s=>pn(s,e)).map(s=>{var a;return{id:s,ownerId:(a=n==null?void 0:n.submissionOwnerIds)==null?void 0:a[s]}}),o=B(Jn(e,"marketo")),i=o?ql(o,n):void 0;return o&&i!==void 0&&r.push({id:o,ownerId:i}),r}function AE(e,t,n){var c;let r=t==null?null:Um(t,n);if(!r||t==null)return[];let o=new RegExp(r,"i"),i=Jn(t,n).toLowerCase(),s=(c=B(t))!=null?c:B(i),a=d=>d!=null&&o.test(d)&&(s!=null||B(d)==null),l=e.flatMap(d=>{var f,p;let m={item:d,id:(f=d.id)!=null?f:"",updatedAt:d.updatedAt,canonical:((p=d.htmlFormId)==null?void 0:p.toLowerCase())===i};return[...a(d.htmlFormId)||s!=null&&d.formType==="marketo"&&d.htmlFormId===s?[S(u({},m),{lastSeenAt:d.lastSeenAt,source:0})]:[],...CE(d).filter(g=>a(g.id)).map(g=>{var h;return S(u({},m),{lastSeenAt:(h=g.lastSeenAt)!=null?h:null,source:1})})]});return[...new Set(l.sort(Qf).map(d=>d.item))]}var ep=(e,t,n,r)=>t==null||!tt(t,n)?zt(e,t):Zn(t,n).some(o=>zt(e,o)&&(!tt(o,n)||r==="marketo")),Yt=(e,t,n)=>ep(e.htmlFormId,t,n,e.formType)||t!=null&&e.formType==="marketo"&&e.htmlFormId!=null&&B(Jn(t,n))===e.htmlFormId,yn=(e,t,n)=>{var r;return t!=null&&((r=e.aliasIds)!=null?r:[]).some(o=>ep(o,t,n,e.formType))},Xl=(e,t,n)=>{if(t!=null)for(let r of Zn(t)){let o=e.filter(i=>i.htmlFormId===r);if(o.length>0)return o;if(n!=null&&n.includes(r))return[]}return e.filter(r=>Yt(r,t))},Yl=(e,t)=>t!=null&&e.id!=null&&$t(t)===e.id,ME=[Yt,yn,Yl];function kE(e,t,n,r="ranked"){if(t==null)return[e.filter(i=>i.htmlFormId==null)];let o=AE(e,t,n);return[...Zn(t,n).flatMap(i=>[e.filter(s=>s.htmlFormId===i&&(!tt(i,n)||s.formType==="marketo")),e.filter(s=>{var a;return((a=s.aliasIds)==null?void 0:a.includes(i))&&(!tt(i,n)||s.formType==="marketo")})]),e.filter(i=>Yl(i,t)),...r==="ranked"?o.map(i=>[i]):[o]]}function tp(e,t,n){let r,o=[];for(let i of kE(e,t,n.formType,n.vendorMatchMode)){if(i.length===0)continue;let s=i.filter(a=>n.tracksPage(a));if(s.length>0)return{tracking:s,firstExcluded:r,excluded:o};r!=null||(r=i),o.push(...i)}return{tracking:void 0,firstExcluded:r,excluded:o}}var Jl=(e,t)=>ME.some(n=>n(t,e)),ui=(e,t,n)=>Yt(t,e,n)||Yl(t,e)?!0:e!=null&&le(e)&&yn(t,e,n);function np(){let e=dn();return e?e.filter(t=>t.tracksPath!==!1):null}function Zl(e){return Ke().includes(e)||Yr(e)?e:yt(e)}function Yr(e){return B(e)!=null&&!Yo()}function Ql(e){var o,i;if(B(e)==null)return;let t=ne();if(!t||Yr(e))return null;let n=Ke();if(t.submissionOwnerIds===void 0)return n.some(s=>{var a;return zt(s,e)&&((a=t.ambiguousSubmissionIds)==null?void 0:a.includes(s))})?null:Zn(e,"marketo").some(s=>n.includes(s))?void 0:n.filter(s=>zt(s,e)).length>1?null:void 0;for(let s of Zn(e,"marketo"))if(n.includes(s))return(i=(o=t.submissionOwnerIds)==null?void 0:o[s])!=null?i:null;let r=Hs(e,n,t).map(({ownerId:s})=>s);if(r.length!==0)return r.every(s=>typeof s=="string"&&s===r[0])?r[0]:null}function rp(e){var n;let t=ne();return(t==null?void 0:t.ids.includes(e))===!0||((n=t==null?void 0:t.submissionAliases)==null?void 0:n.includes(e))===!0}function Bs(e,t,n=Xe(e)){var a,l,c,d,m,f,p,g;let r=np();if(!(r!=null&&r.length))return null;let o=M(e,"id");if(n!=="html"&&n!=="marketo"&&B(o)!=null)return null;if(tt(o,n)){let h=(l=(a=ne())==null?void 0:a.marketoNumericSubmissionOwners)==null?void 0:l[o.trim()];return typeof h=="string"&&(c=r.find(b=>b.id===h))!=null?c:null}let i=Ql(o);if(i!==void 0)return i===null?null:(d=r.find(h=>h.id===i))!=null?d:null;if(Yr(o)&&!Ke().includes(o))return null;if(o!==""){let h=ne(),b=(m=h==null?void 0:h.ambiguousSubmissionIds)==null?void 0:m.includes(o),T=b||(f=h==null?void 0:h.submissionOwnerIds)==null?void 0:f[o];if(T!==void 0)return(p=r.find(E=>E.id===T))!=null?p:null;let v=Xl(r,o,Ke());if(v.length===1)return v[0];if(v.length>1||b||Ke().some(E=>Yt({htmlFormId:E},o)))return null;let F=r.filter(E=>yn(E,o));if(F.length===1)return F[0];if(F.length>1||rp(o))return null}if(!t)return null;let s=[t,ip(e)].filter(h=>h!==void 0);return Cm((g=dn())!=null?g:[],s)}function Us(e){return Am(e,ne())}function eu(e,t,n,r){let o=tt(t,r)?t.trim():t;return o===""||!e.id||!yn(e,o)||zt(e.htmlFormId,o)?!1:n!==fn(e.id)}function op(e,t=Xe(e)){if(nr(e)||tt(M(e,"id"),t))return!0;let n=dn();if(!(n!=null&&n.length))return!0;let r=M(e,"id");if(Ql(r)!==void 0)return!0;if(r==="")return!1;let o=Ke();return Xl(n,r,o).length>0||o.some(s=>Yt({htmlFormId:s},r))?!0:n.some(s=>yn(s,r))}function ir(e,t,n=Xe(e)){var d,m;let r=nr(e);if(r)return r;let o=M(e,"id");if(n!=="html"&&n!=="marketo"&&B(o)!=null)return Jn(o,n,{formTypeIsAuthoritative:!0});if(Yr(o)&&!Ke().includes(o))return o;let i=Bs(e,t,n);if(i){let f=Us(i),p=M(e,"id");if(eu(i,p,f,n))return p;if(f)return f}if(tt(o,n))return o;if(Ql(o)!==void 0)return Zl(o);if(o!==""&&rp(o))return o;let s=np(),a=dn(),c=!qt(e)||t!=null&&((d=s==null?void 0:s[0])==null?void 0:d.structureHash)===t.structureHash&&((m=s==null?void 0:s[0])==null?void 0:m.contentHash)===t.contentHash;if((s==null?void 0:s.length)===1&&(a==null?void 0:a.length)===1&&c&&e.ownerDocument!=null&&Cs(e.ownerDocument)===e){let f=M(e,"id");if(f!==""&&Ke().some(g=>Yt({htmlFormId:g},f)))return Zl(f);let p=Us(s[0]);if(p)return p}return Zl(M(e,"id"))}var lp=I.module("FormCatalog"),OE=["submit","button","image","file","password"],sp=["page","pass","path"],PE=new Set(["submit","button","image","file"]);function up(e){let t=new Set,n=!1;for(let r of tr(e))r.name&&(G(r)&&PE.has(r.type)||(r.name==="pass"&&G(r)&&r.type==="password"&&(n=!0),t.add(r.name)));return!n||t.size!==sp.length?!1:sp.every(r=>t.has(r))}function cp(e,t){var i,s,a,l;if(e.id){let c=`label[for="${jf(e.id)}"]`,d=(i=t.querySelector(c))!=null?i:vs(e).querySelector(c);if(d!=null&&d.textContent)return d.textContent.trim()}let n=e.closest("label");if(n!=null&&n.textContent){let c=n.cloneNode(!0);c.querySelectorAll("input, select, textarea").forEach(f=>f.remove());let m=(s=c.textContent)==null?void 0:s.trim();if(m)return m}let r=e.getAttribute("aria-label");if(r)return r.trim();let o=e.getAttribute("aria-labelledby");if(o){let c=[];for(let d of o.split(/\s+/)){if(!d)continue;let m=(l=(a=vs(e).getElementById(d))==null?void 0:a.textContent)==null?void 0:l.trim();m&&c.push(m)}if(c.length>0)return c.join(" ")}return null}function DE(e){for(let t of e.children)if(t.tagName==="LEGEND")return t;return null}function NE(e,t){let n=e.querySelectorAll("input[name], textarea[name], select[name]"),r=!1;for(let o of n)if(o.name&&(r=!0,o.name!==t))return!1;return r}function HE(e){var i,s,a;let t=e.closest("fieldset");if(!t||!e.name||!NE(t,e.name))return null;let n=DE(t);if(n){let l=n.cloneNode(!0);l.querySelectorAll("input, select, textarea").forEach(d=>d.remove());let c=(i=l.textContent)==null?void 0:i.trim();if(c)return c}let r=t.getAttribute("aria-labelledby");if(!r)return null;let o=[];for(let l of r.split(/\s+/)){if(!l)continue;let c=(a=(s=vs(t).getElementById(l))==null?void 0:s.textContent)==null?void 0:a.trim();c&&o.push(c)}return o.length>0?o.join(" "):null}function UE(e,t){var n;if(et(e)){let r=[];for(let o=0;o<e.options.length;o++){let i=e.options[o];r.push({value:i.value||"",label:((n=i.textContent)==null?void 0:n.trim())||""})}return r.length>0?r:null}if(G(e)&&(e.type==="radio"||e.type==="checkbox")){let r=e.name,o=tr(t).filter(i=>G(i)&&i.name===r&&i.type===e.type);if(o.length>1)return o.map(i=>{let s=cp(i,t);return{value:i.value||"",label:s||i.value||""}})}return null}var tu=new WeakMap;function BE(e){if(tu.has(e))return tu.get(e);let t=VE(e);return tu.set(e,t),t}function VE(e){var r,o,i;let t=e.querySelectorAll("h1, h2, h3, h4");if(t.length>0){let s=(r=t[0].textContent)==null?void 0:r.trim();if(s&&s.length>0&&s.length<100)return s}let n=e.previousElementSibling;for(;n;){if(["H1","H2","H3","H4"].includes(n.tagName)){let s=(o=n.textContent)==null?void 0:o.trim();if(s&&s.length>0&&s.length<100)return s;break}if((i=n.previousElementSibling)!=null&&i.previousElementSibling)break;n=n.previousElementSibling}for(let s of Vl(e)){let a=WE(s);if(a)return a}return null}function WE(e){var t;if(Jo(e)){let n=(t=e.textContent)==null?void 0:t.trim();return n&&n.length>0&&n.length<100?n:null}if(e.type==="submit"){let n=e.value.trim();return n&&n.length>0&&n.length<100?n:null}return null}function Jr(e){return e.dataset.formName||BE(e)||e.getAttribute("name")||M(e,"id")||void 0}function Xe(e){return typeof e.getAttribute!="function"||typeof e.querySelector!="function"?"html":kf(e)?"hubspot":Of(e)?"marketo":Mf(e)?"pardot":"html"}function GE(e,t=!1){return!e.name||G(e)&&OE.includes(e.type)?!1:!Xt(e.name)&&!(t&&li(e.name))?(lp.debug("Skipping a non-capturable field"),!1):!0}function KE(e){return e.localName}function ap(e){return G(e)?e.type:et(e)&&e.multiple?"select-multiple":null}function dp(e,t=!1){let n=[],r=new Map;return tr(e).forEach((o,i)=>{if(!GE(o,t))return;let s=r.get(o.name);if(s!==void 0&&!Kl(S(u({},n[s]),{input_type:n[s].inputType}),{type:o.tagName.toLowerCase(),input_type:ap(o)})){lp.debug(`Skipping duplicate field name: ${o.name}`);return}let a=(G(o)||zn(o))&&o.placeholder||null,l="required"in o?o.required:!1,c=UE(o,e),d=c&&G(o)&&(o.type==="radio"||o.type==="checkbox")?HE(o):null,m=d!=null?d:cp(o,e),f={name:o.name,type:KE(o),inputType:ap(o),label:m,placeholder:a,required:l,fieldOrder:i,options:c};if(s!==void 0){n[s]=f;return}r.set(o.name,n.length),n.push(f)}),n}var mp=e=>tr(e).some(t=>li(t.name))?dp(e,!0):void 0;function ip(e){let t=mp(e);if(t)return{structureHash:Te(t),contentHash:Pt(t)}}function ci(e,t){let n=mp(e);return n&&S(u({},t),{fields:n})}function ot(e){var i;let t=dp(e),n=Ko(window.location.href),r=window.location.pathname,o=window.location.hostname;return{url:n,pathname:r,domain:o,formIdentifier:ir(e,{structureHash:Te(t),contentHash:Pt(t)})||null,formName:(i=Jr(e))!=null?i:null,formType:Xe(e),fields:t,detectedAt:new Date().toISOString()}}var Zr=e=>Gl(e)?"meta_pixel":Df(e)?"widget":Re(e)?"ignored":up(e)?"password_gate":null;var di=I.module("Attribution");function it(){return{href:window.location.href,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer}}function Qr(){return new URLSearchParams(window.location.search)}function mi(){try{return typeof window!="undefined"&&typeof window.localStorage!="undefined"}catch(e){return!1}}function bn(e){if(!mi())return null;try{return window.localStorage.getItem(e)}catch(t){return di.debug("Failed to read localStorage"),null}}function _n(e,t){if(mi())try{window.localStorage.setItem(e,t)}catch(n){di.debug("Failed to write localStorage")}}function eo(e){if(mi())try{window.localStorage.removeItem(e)}catch(t){di.debug("Failed to remove localStorage")}}function nu(e){if(mi())try{let t=window.localStorage,n=[];for(let r=0;r<t.length;r++){let o=t.key(r);o!=null&&o.startsWith(e)&&n.push(o)}for(let r of n)t.removeItem(r)}catch(t){di.debug("Failed to remove localStorage entries")}}function Vs(e,t){if(mi())try{let n=window.localStorage,r=Date.now(),o=[];for(let i=0;i<n.length;i++){let s=n.key(i);if(s===null||!s.startsWith(e))continue;let a=Number(n.getItem(s));(!Number.isFinite(a)||r-a>t)&&o.push(s)}for(let i of o)n.removeItem(i)}catch(n){di.debug("Failed to prune localStorage")}}function st(){return D()}var Jt=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];var sr="gclid";function fi(e){var n;let t={};for(let r of Jt){let o=(n=e.get(r))==null?void 0:n.trim();o&&(t[r]=o)}return t}function pi(e){var n;return((n=e.get(sr))==null?void 0:n.trim())||void 0}var _A=[...Jt,sr,"submission_url","referrer"];var[$E,zE,jE,qE,XE]=Jt,J={UTM_SOURCE:$E,UTM_MEDIUM:zE,UTM_CAMPAIGN:jE,UTM_TERM:qE,UTM_CONTENT:XE,GCLID:sr,REFERRER:"referrer",ANONYMOUS_ID:"anonymous_id",SESSION_ID:"session_id",EMBED:"embed",PAGE_EMBED:"page_embed",EMBED_LAYOUT:"embed_layout",WORKFLOW_EXECUTION_ID:"workflowExecutionId",TIMEOUT:"timeout",PIXEL_MOUNT_ID:"pixelMountId"},fp=[...Jt,J.GCLID,J.REFERRER],pp=[J.ANONYMOUS_ID,J.SESSION_ID],gp=[J.EMBED,J.PAGE_EMBED,J.EMBED_LAYOUT],hp=[J.WORKFLOW_EXECUTION_ID],Sp=[J.TIMEOUT,J.PIXEL_MOUNT_ID],YE=[...fp,...pp,...gp,...hp,...Sp],JE=[...pp,...gp,...hp,...Sp],LA=new Set(YE),wA=new Set(JE.map(e=>e.toLowerCase()));var RA=new Map(fp.map(e=>[e.toLowerCase(),e]));var Ws="_dflt_attr",_p=4320*60*60*1e3,ZE={version:1,first:null,latest:null,externalReferrer:null},Ep=(e,t)=>Number.isFinite(e)&&t-e<=_p,yp=e=>e.toLowerCase().replace(/^www\./,"");function gi(e,t){if(!e)return!1;try{return yp(new URL(e).hostname)!==yp(t)}catch(n){return!1}}function Gs(e,t){return Object.keys(e).length>0||!!t}function bp(e,t){if(!se(e)||typeof e.capturedAt!="number"||!Ep(e.capturedAt,t)||typeof e.referrer!="string"||typeof e.landingUrl!="string"||!se(e.utmParams))return null;let n={};for(let o of Jt){let i=e.utmParams[o];typeof i=="string"&&i.trim()&&(n[o]=i.trim())}let r=typeof e.gclid=="string"?e.gclid.trim():"";return S(u({utmParams:n},r?{gclid:r}:{}),{referrer:e.referrer,landingUrl:e.landingUrl,capturedAt:e.capturedAt})}function QE(e,t){return!se(e)||typeof e.capturedAt!="number"||!Ep(e.capturedAt,t)||typeof e.value!="string"||!e.value?null:{value:e.value,capturedAt:e.capturedAt}}function Ip(e,t){if(!e)return null;try{let n=JSON.parse(e);if(!se(n)||n.version!==1)return null;let r={version:1,first:bp(n.first,t),latest:bp(n.latest,t),externalReferrer:QE(n.externalReferrer,t)};return!r.first&&!r.latest&&!r.externalReferrer?null:r}catch(n){return null}}function Lp(e){return JSON.stringify(e)}function wp(e,t){var o;let n=e!=null?e:ZE,r={version:1,first:n.first,latest:n.latest,externalReferrer:n.externalReferrer};if(Gs(t.utmParams,t.gclid)){let i=S(u({utmParams:t.utmParams},t.gclid?{gclid:t.gclid}:{}),{referrer:t.referrer,landingUrl:t.landingUrl,capturedAt:t.now});r=S(u({},r),{first:(o=r.first)!=null?o:i,latest:i})}return!r.externalReferrer&&gi(t.referrer,t.pageHostname)&&(r=S(u({},r),{externalReferrer:{value:t.referrer,capturedAt:t.now}})),!r.first&&!r.latest&&!r.externalReferrer?null:r}function ru(e){var a;let t=e.record,n=t!=null&&t.latest&&e.now-t.latest.capturedAt<=_p?t.latest:null,r=Gs(e.currentUtmParams,e.currentGclid),o=r?e.currentUtmParams:(a=n==null?void 0:n.utmParams)!=null?a:{},i=r?e.currentGclid:n==null?void 0:n.gclid,s=e.documentReferrer;return gi(s,e.pageHostname)||(n&&gi(n.referrer,e.pageHostname)?s=n.referrer:t!=null&&t.externalReferrer&&(s=t.externalReferrer.value)),S(u({utmParams:o},i?{gclid:i}:{}),{referrer:s})}function to(){return pi(Qr())}function no(){return fi(Qr())}function ou(e=Date.now()){return st()?Ip(bn(Ws),e):null}function Ks(){eo(Ws)}function $s(e=Date.now()){if(!st())return;let t=it(),n="";try{n=new URL(t.href).hostname}catch(i){return}let r=Qr(),o=wp(ou(e),{utmParams:fi(r),gclid:pi(r),referrer:t.referrer,landingUrl:t.href,pageHostname:n,now:e});if(!o){Ks();return}_n(Ws,Lp(o))}function Rp(){try{return new URL(it().href).hostname}catch(e){return""}}function Tp(e=Date.now()){$s(e);let t=it();return ru({record:ou(e),currentUtmParams:no(),currentGclid:to(),documentReferrer:t.referrer,pageHostname:Rp(),now:e})}function zs(e,t=Date.now()){$s(t);let n=Rp(),r=ru({record:ou(t),currentUtmParams:{},documentReferrer:"",pageHostname:n,now:t});if(!Gs(fi(e.searchParams),pi(e.searchParams))){for(let i of Jt){let s=r.utmParams[i];s&&!e.searchParams.has(i)&&e.searchParams.set(i,s)}r.gclid&&!e.searchParams.has(sr)&&e.searchParams.set(sr,r.gclid)}r.referrer&&gi(r.referrer,n)&&!e.searchParams.has(J.REFERRER)&&e.searchParams.set(J.REFERRER,r.referrer)}var iu=null;function Fp(e){iu=e}function vp(){return iu?iu():null}var xp=Symbol.for("@workspace/forms-sdk:analytics-session-provider"),Cp=Symbol.for("@workspace/forms-sdk:analytics-anonymous-id-provider");function Ap(e){typeof window!="undefined"&&(window[Cp]=e)}function Mp(){var e,t;return typeof window=="undefined"?null:(t=(e=window[Cp])==null?void 0:e.call(window))!=null?t:null}function kp(e){typeof window!="undefined"&&(window[xp]=e)}function Op(){var e,t;return typeof window=="undefined"?null:(t=(e=window[xp])==null?void 0:e.call(window))!=null?t:null}var au=null,su=null,lu;function Pp(e,t){return R(this,null,function*(){return(yield fetch(e,{method:t,cache:"no-store",credentials:"same-origin"})).status})}function eI(e){return R(this,null,function*(){try{let t=yield Pp(e,"HEAD");if(t!==404&&t!==410)return!1;let n=yield Pp(e,"GET");return n===404||n===410}catch(t){return!1}})}function Dp(e){if(au!==e){au=e,lu=void 0;let t=eI(e);su=t,t.then(n=>{su===t&&(lu=n)})}return su}function Np(e){return au===e?lu:void 0}function ro(){if(typeof performance=="undefined"||typeof performance.getEntriesByType!="function")return;let[e]=performance.getEntriesByType("navigation"),t=e==null?void 0:e.responseStatus;return typeof t=="number"&&Number.isInteger(t)&&t>0?t:void 0}var js=null;function tI(){if(js)return js;let e,t,n;try{e=navigator.language||void 0}catch(r){e=void 0}try{t=Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch(r){t=void 0}try{n=typeof navigator.maxTouchPoints=="number"?navigator.maxTouchPoints:void 0}catch(r){n=void 0}return js=u(u(u({},e&&{browserLocale:e}),t&&{timeZone:t}),n!==void 0&&{maxTouchPoints:n}),js}function ar(){let e=k.get();if(!e)return null;let t=vp();if(!t)return null;let n=Tp(),r=ro(),o=it();return u(u(S(u({publicKey:e.publicKey,anonymousId:t.anonymousId,sessionId:t.sessionId,utmParams:n.utmParams},n.gclid&&{gclid:n.gclid}),{userAgent:navigator.userAgent,pageUrl:o.href,referrer:n.referrer,ts:Date.now(),client_build:Le}),r!==void 0&&{responseStatus:r}),tI())}var Ce=class{constructor(){this.isInitialized=!1}ensureNotInitialized(){return!this.isInitialized}markInitialized(){this.isInitialized=!0}get initialized(){return this.isInitialized}reset(){this.isInitialized=!1}};var Hp=(e,t)=>{var i;if(!t)return{send:!1,reason:"catalog_unavailable"};let n=t.ids.some(s=>Yt({htmlFormId:s,formType:ql(s,t)!==void 0?"marketo":void 0},e.htmlFormId,e.formType))||t.path.linked.some(s=>ui(e.htmlFormId,s,e.formType)),r=!!e.htmlFormId&&!n&&t.path.linked.some(s=>yn(s,e.htmlFormId,e.formType)),o=t.hashes[e.structureHash];if(o){if(!o.includes(e.contentHash))return r?{send:!1,reason:"unresolved_alias"}:{send:!0,reason:"content_drift"};let s=m=>m.structureHash===e.structureHash&&m.contentHash===e.contentHash,a=n?t.path.linked.filter(m=>ui(e.htmlFormId,m,e.formType)):t.path.linked,l=tp(a,e.htmlFormId,{tracksPage:m=>m.tracksPath!==!1,vendorMatchMode:"grouped",formType:e.formType}),d=((i=l.tracking)!=null?i:l.excluded).some(s);return!t.path.known||!d?r?{send:!1,reason:"unresolved_alias"}:{send:!0,reason:"page_discovery"}:{send:!1,reason:"unchanged"}}return e.htmlFormId&&n?{send:!0,reason:"shape_drift"}:r?{send:!1,reason:"unresolved_alias"}:{send:!1,reason:"never_catalogued"}};var nI=/[\uD800-\uDBFF]$/;function qs(e){let t=e==null?void 0:e.trim();return t&&(t.length>300?t.slice(0,300).replace(nI,""):t).trim()||void 0}var Up=["cal.com","calendly.com","meetings.hubspot.com"];var Xs="_dflt_catalog_skip:",hi="_dflt_form_picture:",Si="_dflt_form_capture_failed";function Bp(){nu(Xs),nu(hi),eo(Si)}var Vp=1440*60*1e3,Wp=e=>`${Xs}${or(e)}`;function Gp(e){if(!st())return!1;let t=Number(bn(Wp(e)));return Number.isFinite(t)&&t>0&&Date.now()-t<Vp}function Kp(e){st()&&(Vs(Xs,Vp),_n(Wp(e),String(Date.now())))}function $p(e,t){var r;if(!e)return null;let n;try{n=new URL(e,t).hostname.toLowerCase()}catch(o){return null}return(r=Up.find(o=>_t(n,o)))!=null?r:null}function zp(e,t){return((e==null?void 0:e.trim())||(t==null?void 0:t.trim())||"").slice(0,120)}function uu(){return qs(document.title)}var jp="__dftFormCapture__";var Ys=I.module("FormCatalog"),Js=null,iI=1440*60*1e3;function sI(){if(!st())return!1;let e=Number(bn(Si));return Number.isFinite(e)&&e>0&&Date.now()-e<iI}function aI(){st()&&_n(Si,String(Date.now()))}function lI(){eo(Si)}function qp(){let e=window[jp];return(e==null?void 0:e.version)===1?e.captureFormImage:null}function Xp(){return Js!=null||(Js=new Promise(e=>{let t=qp();if(t){e(t);return}if(sI()){Ys.debug("The form capture bundle failed to load in this browser within the last day"),e(null);return}let n=ys("form-capture.js");if(!n){Ys.debug("Cannot locate the form capture bundle next to the pixel script"),e(null);return}let r=document.createElement("script"),o=s=>{clearTimeout(i),r.onload=null,r.onerror=null,r.remove(),Ys.debug(s),aI(),e(null)},i=setTimeout(()=>o("The form capture bundle did not load in time"),2e4);r.async=!0,r.src=n,r.onload=()=>{clearTimeout(i),lI();let s=qp();s||Ys.debug("The form capture bundle is from another pixel build"),e(s)},r.onerror=()=>o("Failed to load the form capture bundle"),document.head.appendChild(r)})),Js}var Yp=["focusin","pointerdown","mousedown","keydown","input","change"],yi=new WeakSet,cu=new WeakSet;function Jp(e){let t=e.target;(jn(t)!==null||Y(t)&&ce(t.closest("form")))&&yi.add(Zp(e.currentTarget))}function du(e){var n,r;let t=(n=e.defaultView)==null?void 0:n.navigator.userActivation;return(r=t==null?void 0:t.hasBeenActive)!=null?r:!0}function Zp(e){return e.nodeType===9?e:e.ownerDocument}function Qp(e){let t=Zp(e);for(let n of Yp)e.addEventListener(n,Jp,{capture:!0,passive:!0});return cu.add(t),du(t)&&yi.add(t),()=>{for(let n of Yp)e.removeEventListener(n,Jp,!0);cu.delete(t),yi.delete(t)}}function mu(e){let t=e.ownerDocument;return yi.has(t)||!cu.has(t)||du(t)||t!==document&&(yi.has(document)||du(document))}var uI=["translated-ltr","translated-rtl"],tg=500;function eg(e=document){let t=e.documentElement;return t?uI.some(n=>t.classList.contains(n)):!1}function lr(e){return eg(e.ownerDocument)||eg(document)}function ng(e,t,n,r,o){var c,d;if(!r)return!1;let i=r.hashes[t];if(!(i!=null&&i.length)||i.includes(n))return!1;let s=(c=r.cosmeticStrippedHashes)==null?void 0:c[t];if(!(s!=null&&s.length))return!1;let a=$f(e);if(!s.includes(a))return!1;let l=(d=r.catalogCosmeticsUseNonAscii)==null?void 0:d[t];return l===!0||l!==!1?!1:zf(e)}function fu(e){return S(u({},e),{formName:null,fields:e.fields.map(cI)})}function cI(e){var t,n;return{name:e.name,type:e.type,inputType:e.inputType,required:e.required,fieldOrder:e.fieldOrder,options:(n=(t=e.options)==null?void 0:t.map(r=>({value:r.value})))!=null?n:e.options}}var ig=I.module("FormCatalog"),sg=10080*60*1e3,dI=900*1e3,Zs=new Set,mI=e=>`${hi}${Te(e)}:${Pt(e)}`,fI=e=>`${hi}${Te(e)}:attempt`,pI=.1,bi,Su=new Map,pu=new Map,gu=new Set,hu=Promise.resolve();function ag(){Zs.clear(),Su.clear(),pu.clear(),gu.clear(),bi=void 0,hu=Promise.resolve()}function rg(e,t){var r;let n=st()?Number(bn(e)):0;return Math.max((r=t.get(e))!=null?r:0,Number.isFinite(n)?n:0)}function lg(e,t){let n=Date.now();t.set(e,n),st()&&(Vs(hi,sg),_n(e,String(n)))}var gI=e=>{typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):setTimeout(e,0)};function hI(e){let t=hu.then(()=>new Promise(n=>gI(n))).then(e);return hu=t.catch(()=>{}),t}var SI=[15e3,45e3,12e4];function ug(e){return e.isConnected&&$n()&&ae()&&!Re(e)&&!lr(e)}function cg({form:e,fields:t,legacyShape:n}){var i;let r=ot(e),o=n?(i=ci(e,r))==null?void 0:i.fields:r.fields;return o!==void 0&&Te(o)===Te(t)}function dg(e,t,n){return R(this,null,function*(){let r=0;for(let o of[0,...SI]){if(o>0&&(yield new Promise(i=>setTimeout(i,o))),!ug(e.form)||!cg(e))return{kind:"cancelled",attempts:r};r++;try{let i=yield gl(t,n);if(!i.success&&i.status===0)return{kind:"unreachable",attempts:r};if(i.status!==404)return{kind:"answered",attempts:r,result:i}}catch(i){return{kind:"unreachable",attempts:r}}}return{kind:"catalog_missing",attempts:r}})}function yI(e,t){return R(this,null,function*(){let n=yield dg(e,X.FORM_CATALOG_IMAGE,S(u({fields:e.fields},t),{build:Le})),{attempts:r}=n;switch(n.kind){case"cancelled":return ue("cancelled",{attempts:r}),!1;case"unreachable":return ue("upload_failed",{attempts:r}),!1;case"catalog_missing":return ue("catalog_missing",{attempts:r}),!1;case"answered":return n.result.success?(ue("uploaded",{attempts:r}),!0):(ig.debug("Form picture was not accepted",{status:n.result.status}),ue("upload_failed",{attempts:r}),!1)}})}function bI(e,t){return R(this,null,function*(){let n=Te(e.fields);if(gu.has(n))return;let r={fields:e.fields,reason:t.reason,frameContext:t.frameContext,build:Le},o=yield dg(e,X.FORM_CATALOG_IMAGE_FAILURE,r);o.kind==="answered"?o.result.success?(gu.add(n),ue("failure_reported")):ue(o.result.status===429?"failure_report_rate_limited":o.result.status>=500?"failure_report_unavailable":"failure_report_failed"):ue(o.kind==="unreachable"?"failure_report_unreachable":o.kind==="catalog_missing"?"failure_report_catalog_missing":"failure_report_cancelled")})}function og(e){return ug(e.form)&&cg(e)?!0:(ue("cancelled"),!1)}function _I(e,t){return R(this,null,function*(){if(!og(e))return null;if(mu(e.form))return ue("unmaskable",{refusal:"touched"}),null;let n=yield Xp();return n?og(e)?n(e.form,{record:ue,touched:mu,onLastingFailure:t}):null:(ue("capture_unavailable"),null)})}function EI(e,t){return R(this,null,function*(){try{let n={},r=yield hI(()=>_I(e,o=>{n.failure=o}));r?(yield yI(e,r))&&lg(t,Su):n.failure&&(yield bI(e,n.failure))}catch(n){ue("draw_failed",{drawFailure:"render_failed"}),ig.debug("Form picture capture failed",{reason:n instanceof Error?n.message:String(n)})}finally{Zs.delete(t)}})}function yu(e,t,n){if(lr(e)){ue("translated");return}let r=e.getBoundingClientRect();if(r.width<1||r.height<1){ue("no_size");return}let o=mI(t),i=fI(t),s=rg(o,Su),a=rg(i,pu);if(Zs.has(o)||s&&Date.now()-s<sg||a&&Date.now()-a<dI){ue("throttled");return}Zs.add(o),lg(i,pu),EI({form:e,fields:t,legacyShape:n},o)}function Qs(e,t,n,r){r!=null&&r.pictured&&(r.pictured.includes(Te(t))||(bi!=null||(bi=Math.random()<pI),bi&&yu(e,t,n)))}var Ae=I.module("FormCatalog"),II={ignored:"Skipping ignored form",password_gate:"Skipping password-gate form",meta_pixel:"Skipping Meta Pixel beacon form",widget:"Skipping a third-party widget form"},LI=25,wI=(e,t)=>{var r;let n=Te(t.fields);return((r=e.legacyTechnicalForms)!=null?r:[]).some(o=>o.structureHash===n&&(t.formIdentifier?ui(t.formIdentifier,o,t.formType):o.htmlFormId==null))},mg=(e,t,n)=>{let r=ne(),o=n?n.legacy:ci(e,t),i=o!==void 0&&r!==null&&!r.hashes[Te(t.fields)]&&wI(r,o),s=i?o:t,a=Hp({structureHash:Te(s.fields),contentHash:Pt(s.fields),htmlFormId:s.formIdentifier,formType:s.formType},r);return{catalog:s,legacyShape:i,decision:n&&a.reason==="never_catalogued"?{send:!0,reason:"page_discovery"}:a}},RI=3e3,fg=5e3,bu=class e extends Ce{constructor(){super(...arguments);this.sentForms=new WeakMap;this.submittedCatalogs=new Map;this.scanTimeout=null;this.scannedWithoutCatalog=!1;this.unsubscribeFromCatalog=null;this.contentDriftGeneration=0;this.contentDriftWait=new WeakMap;this.contentDriftTimeouts=new Set;this.reportedSkips=new Set;this.skipOrdinals=new Map;this.emptyFormsSeenAt=new WeakMap;this.settleTimeouts=new Set}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){Ae.debug("Already initialized, skipping");return}this.markInitialized(),Ae.success("Form catalog tracker initialized"),this.unsubscribeFromCatalog=_m(n=>{!n||!this.scannedWithoutCatalog||(this.scannedWithoutCatalog=!1,Ae.debug("Catalog arrived after the scan gate expired, rescanning"),this.scheduleScan())}),this.scanAndSend()}onRouteChange(){this.submittedCatalogs.clear(),this.sentForms=new WeakMap,this.clearContentDriftWaits(),Ae.debug("Route changed, reset sent forms tracking"),this.scheduleScan()}onFormDomChanged(n){this.scheduleScan()}onFormSubmitted(n){var r;(r=this.prepareFormSubmission(n))==null||r()}prepareFormSubmission(n){if(!this.initialized||!n.isConnected||!ae()||Zr(n))return;let r=ot(n);if(r.fields.length===0)return;let o=this.contentDriftGeneration,i={catalog:r,legacy:ci(n,r),url:window.location.href,translated:lr(n)};return()=>{if(!(!this.initialized||o!==this.contentDriftGeneration||i.url!==window.location.href||!ae())){if(this.submittedCatalogs.delete(n),ne()!==null&&Np(i.url)===!1){this.considerForm(n,i);return}this.submittedCatalogs.set(n,i),this.submittedCatalogs.size>LI&&this.submittedCatalogs.delete(this.submittedCatalogs.keys().next().value),this.scheduleScan()}}}onNewFormDetected(n){this.onFormDomChanged(n)}onFrameAttached(){this.scheduleScan()}onFrameAdded(){this.scheduleScan()}onShadowRootsDiscovered(){this.scheduleScan()}scheduleScan(){this.scanTimeout&&clearTimeout(this.scanTimeout),this.scanTimeout=setTimeout(()=>{this.scanAndSend(),this.scanTimeout=null},200)}scanAndSend(){return R(this,null,function*(){if(!this.initialized){Ae.debug("Not initialized, skipping scan");return}if(!ae()){Ae.debug("Page not eligible for capture, skipping scan"),this.submittedCatalogs.clear();return}let n=this.contentDriftGeneration,r=window.location.href,o=yield Dp(r);if(n!==this.contentDriftGeneration||window.location.href!==r){Ae.debug("Navigated while checking page status, deferring to the next scan");return}if(o){Ae.debug("Page returned 404/410, skipping scan"),this.submittedCatalogs.clear();return}if(yield Em(RI),!(n!==this.contentDriftGeneration||window.location.href!==r)){if(!ae()){this.submittedCatalogs.clear();return}if(this.scannedWithoutCatalog=ne()===null,!this.scannedWithoutCatalog)for(let[i,s]of this.submittedCatalogs)this.submittedCatalogs.delete(i),s.url===r&&this.considerForm(i,s);this.skipOrdinals.clear();for(let i of si())for(let s of Xr(i))this.considerForm(s);for(let i of si())i.querySelectorAll("iframe[src]").forEach(s=>{if(Re(s))return;let a=$p(s.getAttribute("src"),i.baseURI);a&&this.reportSkip("scheduler_embed",this.skipDetailFor("scheduler_embed",a))})}})}considerForm(n,r){var f;let o=r?null:Zr(n);if(o){Ae.debug(II[o]),o==="password_gate"&&this.reportSkip("password_gate","");return}let i=(f=r==null?void 0:r.catalog)!=null?f:ot(n);if(i.fields.length===0){Ae.debug("Skipping form with no extractable fields");let p=this.skipDetailFor("no_fields",zp(i.formName,i.formIdentifier));this.hasSettledEmpty(n)&&this.reportSkip("no_fields",p);return}this.emptyFormsSeenAt.delete(n);let s=rr(i.fields),a=this.sentForms.get(n);if((a==null?void 0:a.fingerprint)===s){!a.translated&&n.isConnected&&Qs(n,a.fields,a.legacyShape,ne());return}let{catalog:l,decision:c,legacyShape:d}=mg(n,i,r);if(Md(c.reason),!c.send){Ae.debug(`Skipping catalog beacon: ${c.reason}`,{legacyShape:d}),c.reason==="unchanged"&&n.isConnected&&Qs(n,l.fields,d,ne());return}if((r==null?void 0:r.translated)||lr(n)){if(c.reason==="content_drift"){this.clearContentDriftWait(n),Ae.debug("Skipping catalog beacon: translated_content_drift");return}this.sendCatalog(n,fu(l),s,c.reason,d);return}if(c.reason==="content_drift"){this.scheduleContentDriftSend(n,r);return}this.sendCatalog(n,l,s,c.reason,d)}hasSettledEmpty(n){let r=Date.now(),o=this.emptyFormsSeenAt.get(n);if(o===void 0){this.emptyFormsSeenAt.set(n,r);let i=setTimeout(()=>{this.settleTimeouts.delete(i),this.scheduleScan()},fg);return this.settleTimeouts.add(i),!1}return r-o>=fg}scheduleContentDriftSend(n,r){let o=this.contentDriftGeneration,i=this.contentDriftWait.get(n),s=r!=null?r:(i==null?void 0:i.generation)===o?i.submitted:void 0;i&&(clearTimeout(i.timeout),this.contentDriftTimeouts.delete(i.timeout));let a=setTimeout(()=>{this.contentDriftTimeouts.delete(a),o===this.contentDriftGeneration&&(this.contentDriftWait.delete(n),this.flushContentDriftSend(n,s))},tg);this.contentDriftTimeouts.add(a),this.contentDriftWait.set(n,{timeout:a,generation:o,submitted:s})}flushContentDriftSend(n,r){var f,p;if(r&&(r.url!==window.location.href||!ae())||!r&&Zr(n))return;let o=(f=r==null?void 0:r.catalog)!=null?f:ot(n);if(o.fields.length===0)return;let i=rr(o.fields);if(((p=this.sentForms.get(n))==null?void 0:p.fingerprint)===i)return;let{catalog:s,decision:a,legacyShape:l}=mg(n,o,r);if(!a.send||a.reason!=="content_drift")return;if(r!=null&&r.translated||lr(n)){Ae.debug("Skipping catalog beacon: translated_content_drift");return}let c=Te(s.fields),d=Pt(s.fields),m=ng(s.fields,c,d,ne(),n);this.sendCatalog(n,m?fu(s):s,i,a.reason,l,m)}clearContentDriftWait(n){let r=this.contentDriftWait.get(n);r&&(clearTimeout(r.timeout),this.contentDriftTimeouts.delete(r.timeout),this.contentDriftWait.delete(n))}clearContentDriftWaits(){for(let n of this.contentDriftTimeouts)clearTimeout(n);this.contentDriftTimeouts.clear(),this.contentDriftGeneration++}skipDetailFor(n,r){var s;let o=`${n}\0${r}`,i=((s=this.skipOrdinals.get(o))!=null?s:0)+1;return this.skipOrdinals.set(o,i),`${r}#${i}`}reportSkip(n,r){if(ne()===null)return;let o=`${window.location.pathname}\0${n}\0${r}`;if(this.reportedSkips.has(o)||(this.reportedSkips.add(o),Gp(o)))return;let i=k.get();if(!i){Ae.warn("Cannot report skipped form: missing pixel config");return}let s=D()?uu():void 0;om(u({publicKey:i.publicKey,pageUrl:Ko(window.location.href),ts:Date.now(),kind:n,detail:r},s&&{pageTitle:s})),Kp(o)}sendCatalog(n,r,o,i,s,a=!1){let l=ar();if(!l){Ae.warn("Cannot send catalog: missing base context");return}let c=Ko(l.pageUrl),d=D(),m=d?uu():void 0,f=d?S(u(u({},r),l),{pageUrl:c,pageTitle:m}):S(u({},r),{publicKey:l.publicKey,pageUrl:c,ts:l.ts});s&&(f.legacyShape=!0),rm(f),a?ue("translated"):n.isConnected&&i==="shape_drift"?Qs(n,f.fields,s,ne()):n.isConnected&&yu(n,f.fields,s),this.sentForms.set(n,{fingerprint:o,fields:f.fields,legacyShape:s,translated:a}),this.clearContentDriftWait(n);let p=r.formName||r.formIdentifier||"unnamed";Ae.debug(`Sent catalog for form: ${p}`,{fields:r.fields.length,type:r.formType,reason:i})}reset(){var n;super.reset(),this.submittedCatalogs.clear(),this.sentForms=new WeakMap,this.reportedSkips=new Set,this.emptyFormsSeenAt=new WeakMap;for(let r of this.settleTimeouts)clearTimeout(r);this.settleTimeouts.clear(),this.scannedWithoutCatalog=!1,(n=this.unsubscribeFromCatalog)==null||n.call(this),this.unsubscribeFromCatalog=null,this.scanTimeout&&(clearTimeout(this.scanTimeout),this.scanTimeout=null),this.clearContentDriftWaits(),ag()}},Pe=bu.getInstance();var pg=/^\d+-\d+\//;function _u(e){return pg.test(e)}function Et(e){return e.replace(pg,"")||e}function TI(e,t){return e===t?!0:_u(e)===_u(t)?!1:Et(e)===Et(t)}function Eu(e){let t=new Map;for(let n of e){let r=Et(n),o=t.get(r);o?o.push(n):t.set(r,[n])}return n=>{var r;return((r=t.get(Et(n)))!=null?r:[]).filter(o=>TI(n,o))}}function ea(e){let t=new Map,n=new Set;for(let o of e)if(_u(o)){let i=Et(o),s=t.get(i);s?s.push(o):t.set(i,[o])}else n.add(o);let r=new Set;for(let[o,i]of t){for(let s of i)r.add(s);n.delete(o)}for(let o of n)r.add(o);return r}function gg(e,t,{hubspotAliases:n=!1}={}){let r=new Set(e),o=new Map;for(let f of t)o.has(f.key)||o.set(f.key,f);let i,s,a=f=>(i!=null||(i=Eu(e)),i(f)),l=f=>(s!=null||(s=Eu(o.keys())),s(f)),c=new Map,d=f=>{let p=o.get(f);if(p||!n)return p;let g=l(f);if(g.length!==1)return;let h=o.get(g[0]),b=c.get(h.key);return b===void 0&&(b=ea(a(h.key)).size===1,c.set(h.key,b)),b?h:void 0};return{answerFor:f=>{var h;if(r.has(f))return{status:"matched",key:f};if(!n)return{status:"missing"};let p=a(f);if(!p.length)return{status:"missing"};let g=p[0];return p.length===1&&((h=d(g))==null?void 0:h.key)===f?{status:"matched",key:g}:{status:"ambiguous"}},fieldFor:d,catalogKeysFor:l}}var ta={"'":"'","\u2018":"\u2019","\u201C":"\u201D",'"':'"',"`":"`","<":">","(":")","[":"]"},FI=new Set(".,;:!?"),vI=new Set(Object.keys(ta).map(e=>ta[e]));function hg(e){let t=0,n=e.length;for(;n>0&&FI.has(e[n-1]);)n--;for(;ta[e[t]];){let r=ta[e[t]];if(n-t<2||e[n-1]!==r)return null;t++,n--}return n>t&&vI.has(e[n-1])?null:e.slice(t,n)}var ur=["email","Email","work_email","Work_email","workEmail","WorkEmail"],xI=new Set(ur.map(e=>e.toLowerCase()));function cr(e){return xI.has(e.toLowerCase())}function Sg(e){let t=Qn(e);return t?Qn(hg(t)):null}function CI(e,t,n){var s,a;let r=Number(n.has(t.name))-Number(n.has(e.name));if(r)return r;let o=+(t.required===!0)-+(e.required===!0);if(o)return o;let i=((s=e.order)!=null?s:1/0)-((a=t.order)!=null?a:1/0);return i&&!Number.isNaN(i)?i:e.name<t.name?-1:e.name>t.name?1:0}function AI(e,t){let n=s=>{let a=s.toLowerCase();for(let l=0;l<ur.length;l++)if(ur[l].toLowerCase()===a)return l;return ur.length},r=n(e)-n(t);if(r)return r;let o=s=>{let a=ur.indexOf(s);return a===-1?ur.length:a},i=o(e)-o(t);return i||(e<t?-1:e>t?1:0)}function MI(e,t){var o,i;let n=+(t.required===!0)-+(e.required===!0);if(n)return n;let r=((o=e.order)!=null?o:1/0)-((i=t.order)!=null?i:1/0);return r&&!Number.isNaN(r)?r:AI(e.name,t.name)}function kI(e,t={},n){var p,g,h,b,T,v,F;let r=gg(Object.keys(e),(g=(p=t.fields)==null?void 0:p.map(E=>({key:E.name})))!=null?g:[],t),o=(b=(h=t.fields)==null?void 0:h.filter(E=>E.type==="email"))!=null?b:[],i=new Set(o.filter(E=>cr(E.name)).map(E=>E.name)),s=!1;if(t.hubspotAliases&&i.size===0){for(let E of o){let y=Et(E.name);cr(y)&&(ea(r.catalogKeysFor(y)).size===1?i.add(E.name):s=!0)}if(s&&i.size===0)return{status:"rejected",source:"declared",reason:"ambiguous_alias"}}let a=o.sort((E,y)=>CI(E,y,i)).map(E=>E.name),l=new Map(((T=t.fields)!=null?T:[]).map(E=>[E.name,E])),c=E=>[...new Set(E)].map(y=>{var C;return(C=l.get(y))!=null?C:{name:y,type:"hidden"}}).sort(MI).map(y=>y.name),d=c([...ur.filter(E=>{var y;return Object.prototype.hasOwnProperty.call(e,E)||((y=t.fields)==null?void 0:y.some(C=>C.name===E))}),...((v=t.fields)!=null?v:[]).filter(E=>cr(E.name)).map(E=>E.name)]);if(t.discovery==="declared"&&!a.length&&!d.length)return{status:"rejected",source:"none",reason:"no_declared_email"};let m=(E,y,C)=>{let O=!1;for(let x of E){if(y==="declared"&&O&&!i.has(x))break;let V=r.answerFor(x);if(V.status==="ambiguous")return u({status:"rejected",source:y,reason:"ambiguous_alias"},y==="declared"?{missingField:x}:{});if(V.status!=="matched"){if(C(x)){O=!0;continue}return u({status:"rejected",source:y,reason:"missing_exact_key"},y==="declared"?{missingField:E[0]}:{})}let W=Qn(e[V.key]);return W?u({status:"resolved",email:W,source:y,fieldKey:V.key},O?{recovered:!0}:{}):{status:"rejected",source:y,reason:"invalid_value"}}if(O)return u({status:"rejected",source:y,reason:"missing_exact_key"},y==="declared"?{missingField:E[0]}:{})};if(a.length){let E=m(a,"declared",y=>i.has(y));if((E==null?void 0:E.status)==="rejected"&&E.reason==="missing_exact_key"&&E.missingField!==void 0&&i.has(E.missingField)){let y=c(((F=t.fields)!=null?F:[]).filter(C=>C.type!=="email"&&cr(C.name)).map(C=>C.name));if(y.length){let C=m(y,"preferred",()=>!0);if((C==null?void 0:C.status)==="resolved")return S(u({},C),{recovered:!0});if((C==null?void 0:C.status)==="rejected"&&(C.reason==="invalid_value"||C.reason==="ambiguous_alias"))return C}}if(E)return E}if(d.length){let E=m(d,"preferred",()=>!0);if(E)return E}for(let E of Object.keys(e).filter(y=>y.toLowerCase().includes("email"))){let y=Sg(e[E]);if(y)return{status:"resolved",email:y,source:"named"}}if(t.discovery!=="named")for(let E of Object.values(e)){let y=Sg(E);if(y)return{status:"resolved",email:y,source:"whole_value"}}if(!n)return{status:"rejected",source:"none",reason:"no_candidate"};let f=n(e);return f?{status:"resolved",email:f,source:"text"}:{status:"rejected",source:"none",reason:"no_candidate"}}function yg(e,t={}){let n=kI(e,t);return n.status==="resolved"?n.email:void 0}var bg=new WeakMap,OI=1;function _i(e){let t=bg.get(e);if(t)return t;let n=`inst:${OI++}`;return bg.set(e,n),n}function na(e){if(!(e instanceof File)){if(Array.isArray(e)){let t=[];for(let n of e){let r=na(n);r!==void 0&&t.push(Array.isArray(r)?r:String(r))}return ra(t)}if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(e!=null)return String(e)}}function ra(e){let t=[],n=new Set;for(let r of e){let o=Array.isArray(r)?r:[r];for(let i of o){let s=String(i);!s||n.has(s)||(n.add(s),t.push(i))}}if(t.length!==0)return t.length===1?t[0]:t.map(String)}function _g(e){let t=Et(e);return cr(e)||cr(t)}function Eg(e,t){if(_g(e))return t.some(n=>n==="")?"":void 0}function Ig(e){if(e.checked)return e.value||"true"}function PI(e){var r;let t=new Map;for(let[o,i]of e.entries()){if(!Xt(o))continue;let s=na(i);if(s===void 0)continue;let a=t.get(o);a?a.push(s):t.set(o,[s])}let n=Object.create(null);for(let[o,i]of t){let s=(r=ra(i))!=null?r:Eg(o,i);s!==void 0&&(n[o]=s)}return n}function Lg(e,t,n){var o;if(!Xt(t))return;let r=na(n);r!==void 0&&(e[t]=Object.prototype.hasOwnProperty.call(e,t)&&(o=ra([e[t],r]))!=null?o:r)}function wg(e){var i,s;let t=new Map;for(let{name:a,raw:l}of e){if(!Xt(a))continue;let c=na(l);if(c===void 0)continue;let d=t.get(a);d?d.push(c):t.set(a,[c])}let n=[];for(let[a,l]of t){let c=(i=ra(l))!=null?i:Eg(a,l);c!==void 0&&n.push({name:a,value:c})}let r=new Map;for(let{name:a}of n){let l=Et(a);r.set(l,((s=r.get(l))!=null?s:0)+1)}let o=Object.create(null);for(let{name:a,value:l}of n){o[a]=l;let c=Et(a);c===a||r.get(c)!==1||!Xt(c)||c in o||(o[c]=l)}return o}function Ei(e,t=Xe(e)){var n;if(op(e,t))return ir(e,void 0,t);try{let r=ot(e);return r.fields.length===0?ir(e):(n=r.formIdentifier)!=null?n:ir(e)}catch(r){return ir(e)}}function Rg(e,t){let n=Ei(e);return u({responses:PI(t),form_id:n||void 0,form_name:Jr(e),form_instance_key:_i(e),form_class:M(e,"class")||void 0,form_action:M(e,"action")||void 0,form_method:M(e,"method")||void 0,form_type:"html",location:io()},oo(e))}function Tg(e,t,n){let r=t?Object.entries(t).map(([o,i])=>({name:o,raw:i})):[];return u({responses:wg(r),form_id:e.formId,form_type:"hubspot",location:io(),metadata:{conversionId:e.conversionId}},oo(n))}function Fg(e,t,n){let r=t&&t.length>0?t.map(o=>({name:o.name,raw:o.value})):[];return u({responses:wg(r),form_id:e,form_type:"hubspot",location:io(),metadata:{formId:e,version:"v4"}},oo(n))}function vg(e,t,n,r){let o=Object.create(null);return t&&Object.entries(t).forEach(([i,s])=>{Lg(o,i,s)}),u({responses:o,form_id:e,form_type:"marketo",location:io(),metadata:u({formId:e},n?{marketo_identity_source:n}:{})},oo(r))}function xg(e,t,n){var a,l,c,d,m;let r=Object.create(null);(((a=e==null?void 0:e.details)==null?void 0:a.data)||[]).forEach(f=>{let p=f.customKey||f.key||f.label;p&&Lg(r,p,f.value)});let i=n==null?void 0:n.trim(),s=String((c=(l=e==null?void 0:e.details)==null?void 0:l.form_id)!=null?c:"").trim();return u({responses:r,form_id:i||s||void 0,form_type:"paperform",location:io(),metadata:{submissionId:((d=e==null?void 0:e.details)==null?void 0:d.submission_id)||"",total:((m=e==null?void 0:e.details)==null?void 0:m.total)||0,embedId:(e==null?void 0:e.embed_id)||0,messageId:(e==null?void 0:e.id)||""}},oo(t))}function DI(e){let t=Object.create(null),n=new Map,r=[];for(let o of tr(e)){let i=o.name||o.id;if(!i)continue;let s=G(o)?o.type:o.localName;if(Xt(i,s)){if(G(o)&&(o.type==="checkbox"||o.type==="radio")){let a=n.get(i);a?a.push(o):n.set(i,[o]);continue}r.push(o)}}for(let[o,i]of n){let s=[],a=new Set;for(let l of i){let c=Ig(l);c===void 0||a.has(c)||(a.add(c),s.push(c))}s.length!==0&&(t[o]=s.length===1?s[0]:s)}for(let o of r){let i=o.name||o.id;if(!i)continue;if(et(o)&&o.multiple){let a=Array.from(o.selectedOptions,l=>l.value).filter(Boolean);if(a.length===0)continue;t[i]=a.length===1?a[0]:a;continue}let s=jl(o);s===""&&!_g(i)||(t[i]=s)}return t}function Cg(e,t,n,r){var m;let o=Ei(e)||void 0,i=r||t.name||t.id||void 0,s=G(t)?t.type:t.localName,a=[i,...ff(t,e)].filter(f=>!!f),l=!!i&&a.every(f=>Xt(f,s)),c;l&&(G(t)&&(t.type==="checkbox"||t.type==="radio")?c=(m=Ig(t))!=null?m:"":et(t)&&t.multiple?c=Array.from(t.selectedOptions,f=>f.value).filter(Boolean).join(";"):c=jl(t));let d=DI(e);return l&&i&&c!==void 0&&s!=="checkbox"&&s!=="radio"&&!(et(t)&&t.multiple)&&(d[i]=c),u(S(u({form_id:o,form_name:Jr(e),form_instance_key:_i(e),form_class:M(e,"class")||void 0,form_action:M(e,"action")||void 0,form_method:M(e,"method")||void 0,form_type:Xe(e)},Object.keys(d).length>0?{responses:d}:{}),{interaction:{fieldName:i,fieldType:s,eventType:n,fieldValue:c},location:io()}),oo(e))}function oo(e){if(!(e!=null&&e.getAttribute))return{};let t=gn(e);return t.length>0?{js_route_candidates:t}:{}}function io(){return it()}var NI=["accepted","skipped"],Ag=["submissions_disabled","page_not_allowed","form_unresolved"],Mg=["dispatched","pending","error"],kg=["no_valid_email","no_workflow_dispatched"],HI=[...NI,"absent","no_response"];function Og(e){if(!se(e)||!se(e.workflowOutcome))return null;let t=e.workflowOutcome.outcome;if(Br(Mg,t))return{outcome:t};let n=e.workflowOutcome.reason;return t==="skipped"&&Br(kg,n)?{outcome:"skipped",reason:n}:null}function dr(e){if(!se(e)||!se(e.submission))return null;if(e.submission.outcome==="accepted")return{outcome:"accepted"};let t=e.submission.reason;return e.submission.outcome==="skipped"&&Br(Ag,t)?{outcome:"skipped",reason:t}:null}function En(e){if(!se(e)||!se(e.workflow))return;let t=e.workflow.error;return $o(t)?t:void 0}function oa({failure:e,submission:t,workflowError:n}){var l;let r=$o(n)?n:void 0,o=!!(e||r),i=!e&&(t==null?void 0:t.outcome)==="accepted"&&r!==void 0,s=o?i?"receipt":"timeout":void 0,a=(l=t==null?void 0:t.outcome)!=null?l:e==="request_threw"||e==="null_response"?"no_response":"absent";return{failed:o,confirmed:i,errorVariant:s,outcome:i?"confirmed_error":o?"unconfirmed_failure":"removed",reason:e!=null?e:r?"workflow_error":"no_handoff",workflowErrorCode:r,submissionReceiptOutcome:a,submissionSkipReason:(t==null?void 0:t.outcome)==="skipped"?t.reason:void 0}}var Iu=(s=>(s.WEBSITE="website",s.SDK="sdk",s.API="api",s.AGENT="agent",s.EXTENSION="extension",s.HOSTED="hosted",s))(Iu||{});var UI=3,BI=200,VI=1e3,WI=(e,t)=>new Promise(n=>{let r=()=>{clearTimeout(o),t==null||t.removeEventListener("abort",r),n()},o=setTimeout(r,e);t==null||t.addEventListener("abort",r,{once:!0}),t!=null&&t.aborted&&r()}),Pg=e=>e==null||e.failure==="http_failure";function ia(e,t){return R(this,null,function*(){var m,f,p,g,h,b,T,v,F;if((m=t==null?void 0:t.signal)!=null&&m.aborted)return null;let n=performance.now(),r=t!=null&&t.explicit||t!=null&&t.signal?{explicit:t.explicit,signal:t.signal}:void 0,o=()=>r?hs(e,r):hs(e),i=0,s=0,a=yield o();!((f=t==null?void 0:t.signal)!=null&&f.aborted)&&Pg(a)&&Yd()&&performance.now()-n<Vn&&(i++,(p=t==null?void 0:t.onProgress)==null||p.call(t,{pending:!1,pollCount:s,retryCount:i}),a=yield o());let l=(a==null?void 0:a.outcome)==="pending"?a:void 0;(g=t==null?void 0:t.onProgress)==null||g.call(t,{pending:!!l,pollCount:s,retryCount:i});let c=!!(e.submission_id&&(l==null?void 0:l.submission_id)===e.submission_id);for(let E=0;c&&l&&!((h=t==null?void 0:t.signal)!=null&&h.aborted);E++){let y=Vn-(performance.now()-n);if(y<=0)break;let C=E<UI?BI:VI;yield WI(Math.min(C,y),t==null?void 0:t.signal);let O=Vn-(performance.now()-n);if(O<=0||(b=t==null?void 0:t.signal)!=null&&b.aborted)break;let x=new AbortController,V,W,L=new Promise(N=>{var _;W=()=>{x.abort(),N(null)},(_=t==null?void 0:t.signal)==null||_.addEventListener("abort",W,{once:!0}),V=setTimeout(()=>{x.abort(),N(null)},O)});s++,(T=t==null?void 0:t.onProgress)==null||T.call(t,{pending:!0,pollCount:s,retryCount:i});try{a=yield Promise.race([hs(e,S(u({},r),{signal:x.signal})),L])}finally{clearTimeout(V),W&&((v=t==null?void 0:t.signal)==null||v.removeEventListener("abort",W))}if(!Pg(a)){if((a==null?void 0:a.outcome)!=="pending"){l=void 0;break}a.submission_id===e.submission_id&&(l=a)}}let d=l!=null?l:a;return(F=t==null?void 0:t.onProgress)==null||F.call(t,{pending:(d==null?void 0:d.outcome)==="pending",pollCount:s,retryCount:i}),d?S(u({},d),{transport:S(u({},d.transport),{elapsedMs:Math.max(0,performance.now()-n),pollCount:s,retryCount:i})}):null})}var Lu="dft-scheduler",Dg=["displayed","slots_ready","availability_changed","closed","meeting_booked","meeting_cancelled","meeting_timeout"],GI=new Set(Dg),wu=e=>{if(!e||typeof e!="object")return null;let t=e;return t.source!==Lu||typeof t.type!="string"||!GI.has(t.type)?null:S(u({source:Lu,type:t.type},typeof t.mountId=="string"?{mountId:t.mountId}:{}),{payload:t.payload})};function so(e){if(!(!e||e==="null"))try{return new URL(e).hostname||void 0}catch(t){return}}function sa(e,t){return t?"frame":typeof window!="undefined"&&e===window?"window":"none"}function Dt(e,t){if(!e)return null;try{return t?new URL(e,t):new URL(e)}catch(n){return null}}function In(e){var n,r,o;let t=e.getAttribute("src")||e.src||"";return(o=(r=Dt(t,(n=e.ownerDocument)==null?void 0:n.baseURI))==null?void 0:r.href)!=null?o:""}function Ii(e){return Dt(In(e))}function aa(e,t){let n=Ii(t);return!n||!e||e==="null"?!1:n.origin===e}var KI=I.module("Scheduler"),ao=1e4,lo=()=>{KI.warn("Scheduler iframe failed to load","scheduler_frame_failed"),ve("scheduler_frame_failed")},$I="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",zI="clipboard-write",uo=e=>{e.setAttribute("sandbox",$I),e.setAttribute("allow",zI)};function Nt(){if(typeof crypto!="undefined"&&crypto.randomUUID)try{return crypto.randomUUID.call(crypto)}catch(e){}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Ng(){if(typeof crypto!="undefined"&&crypto.randomUUID)try{return`fb_${crypto.randomUUID.call(crypto)}`}catch(n){}let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,15);return`fb_${e}_${t}`}function Ru(e){try{let t=new URL(e),n=t.pathname,r="other";return n.startsWith("/book/")?r="book":n.startsWith("/embed/")&&(r="embed"),{pathKind:r,pathname:n,origin:t.origin}}catch(t){return{pathKind:"invalid"}}}function Hg(e){var a;let{pathKind:t,pathname:n}=Ru(e);if(t!=="book"&&t!=="embed")return null;let r;try{r=(a=n==null?void 0:n.split("/").filter(Boolean).map(decodeURIComponent))!=null?a:[]}catch(l){return null}if(r.length<3)return null;let o=r[1],i=r[2],s=r[3];return!o||!i?null:u({orgSlug:o,bookingParam:i},s?{hostSlug:s}:{})}function mr(e){try{let t=new URL(e);return t.pathname.startsWith("/book/")&&(t.pathname=t.pathname.replace("/book/","/embed/")),t.searchParams.set(J.EMBED,"true"),zs(t),t.toString()}catch(t){return e}}function Li(e){let t=new URL(e);return t.searchParams.set(J.PIXEL_MOUNT_ID,Nt()),t.toString()}var Ug=new WeakMap;function Bg(e,t,n){Ug.set(e,{src:e.src,workflowExecutionId:t,reused:n})}var Tu=new WeakMap,Vg=e=>{Tu.delete(e)},Fu=e=>{var t;return(t=Tu.get(e))!=null?t:{}};function jI(e,t){var r;let n=Fu(e);n[t]=Math.min(100,((r=n[t])!=null?r:0)+1),Tu.set(e,n)}function qI(e,t,n={}){var m,f;let r=new URL(e.src||"about:blank"),o=Ug.get(e),i=(o==null?void 0:o.src)===e.src?o:void 0,s=n.reused||(i==null?void 0:i.reused),a=r.searchParams.get(J.PIXEL_MOUNT_ID);if(t.mountId&&a&&t.mountId!==a)return"mount_mismatch";if(a&&s&&!t.mountId&&t.type!=="displayed"&&t.type!=="slots_ready"&&t.type!=="availability_changed")return"missing_mount_id";if(t.type!=="displayed"&&t.type!=="slots_ready"&&t.type!=="availability_changed")return;let l=t.payload,c=Hg(e.src);if(!l||c&&(l.orgSlug!==c.orgSlug||l.bookingParam!==c.bookingParam))return"scheduler_mismatch";let d=(f=(m=n.workflowExecutionId)!=null?m:r.searchParams.get(J.WORKFLOW_EXECUTION_ID))!=null?f:i==null?void 0:i.workflowExecutionId;if(s&&!d&&!t.mountId)return"missing_execution_id";if(d&&(t.type==="slots_ready"||s||l.workflowExecutionId!==void 0)&&l.workflowExecutionId!==d)return"execution_mismatch"}function co(e,t,n){let r=qI(e,t,n);return r&&jI(e,r),r===void 0}function wi(e){if(!e.isConnected)return!1;for(let r=e;r;r=r.parentElement){let o=getComputedStyle(r);if(r===e&&o.pointerEvents==="none"||o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse"||o.opacity==="0"||o.contentVisibility==="hidden"||r.hasAttribute("inert")||r.hidden)return!1}if(e.clientWidth<=0||e.clientHeight<=0)return!1;let{width:t,height:n}=e.getBoundingClientRect();return t>0&&n>0}function Ri(e,t,n){let r=e.src,o=e.isConnected,i=!1,s,a=()=>{if(!i){if(!e.isConnected&&o||e.src!==r){n==null||n();return}if(o||(o=e.isConnected),wi(e)){t(),n==null||n();return}s=requestAnimationFrame(a)}};return a(),()=>{i=!0,s!==void 0&&cancelAnimationFrame(s)}}var XI=I.module("Scheduler"),vu=class e{constructor(){this.listeners=new Map;this.allowedOrigins=new Set;this.pinnedFrames=new Set;this.framesSeenInDocument=new WeakSet;this.pinObservers=new WeakMap;this.pinEpoch=new WeakMap;this.foreignMessageReported=new WeakMap;this.unconnectedPinTimers=new WeakMap;this.dormantPins=new Set;this.listenerInstalled=!1;this.onMessage=t=>{var a;if(this.allowedOrigins.size>0&&!this.allowedOrigins.has(t.origin))return;let n=wu(t.data);if(!n||!this.acceptsPinnedSource(t.source))return;let r=(a=[...this.pinnedFrames,...this.dormantPins].find(l=>l.contentWindow===t.source))!=null?a:[...document.querySelectorAll("iframe")].find(l=>l.contentWindow===t.source);if(r&&(!r.isConnected||r.src&&!aa(t.origin,r)||!co(r,n,{reused:this.isFrameReused(r)})))return;let o=this.listeners.get(n.type);if(!o||o.size===0)return;let i=[...o].filter(l=>!l.frame||t.source===l.frame.contentWindow&&l.frame.src===l.src),s=r==null?void 0:r.src;i.forEach(l=>{var d;if(!o.has(l))return;let c=()=>{if(o.has(l))try{l.handler(n.payload)}catch(m){XI.warn(`Scheduler event handler for "${n.type}" threw`,m)}};if(r&&n.type==="slots_ready"&&!l.rawReadiness){if(r.src!==s)return;(d=l.pending.get(r))==null||d.cancel();let m={cancel:()=>{}};l.pending.set(r,m);let f=()=>{l.pending.get(r)===m&&l.pending.delete(r)};m.cancel=Ri(r,()=>{f(),r.src===s&&c()},f)}else c()})}}static getInstance(){return e.instance||(e.instance=new e),e.instance}isFrameReused(t){var n;return((n=this.pinEpoch.get(t))!=null?n:0)>1}setAllowedOrigins(t){this.allowedOrigins=new Set(t.filter(Boolean))}addAllowedOrigin(t){t&&this.allowedOrigins.add(t)}pinFrame(t,n){var i;let r=Math.max(((i=this.pinEpoch.get(t))!=null?i:0)+1,n!=null&&n.reused?2:1);this.pinEpoch.set(t,r),Vg(t),this.pinnedFrames.add(t),this.dormantPins.delete(t),this.framesSeenInDocument.delete(t),this.releaseFrameIfRemoved(t),this.watchPinnedFrame(t),this.armUnconnectedPinDeadline(t,r);let o=!1;return()=>{o||(o=!0,this.pinEpoch.get(t)===r&&this.dropPin(t))}}subscribe(t,n,r,o){this.ensureListenerInstalled();let i=this.listeners.get(t);i||(i=new Set,this.listeners.set(t,i));let s=S(u({handler:n},r&&{frame:r,src:r.src}),{rawReadiness:o==null?void 0:o.rawReadiness,pending:new Map});return i.add(s),()=>{i==null||i.delete(s);for(let a of s.pending.values())a.cancel();s.pending.clear()}}ensureListenerInstalled(){this.listenerInstalled||typeof window=="undefined"||(window.addEventListener("message",this.onMessage),this.listenerInstalled=!0)}watchPinnedFrame(t){var r;if(typeof document=="undefined"||!document.documentElement)return;(r=this.pinObservers.get(t))==null||r.disconnect();let n=new MutationObserver(()=>{this.pinObservers.get(t)===n&&this.releaseFrameIfRemoved(t)});this.pinObservers.set(t,n),n.observe(document.documentElement,{childList:!0,subtree:!0})}clearUnconnectedPinDeadline(t){let n=this.unconnectedPinTimers.get(t);n!=null&&(clearTimeout(n),this.unconnectedPinTimers.delete(t))}armUnconnectedPinDeadline(t,n){if(this.clearUnconnectedPinDeadline(t),typeof window=="undefined"||t.isConnected)return;let r=window.setTimeout(()=>{this.unconnectedPinTimers.delete(t),this.pinEpoch.get(t)===n&&(t.isConnected||(this.pinnedFrames.delete(t),this.dormantPins.add(t)))},ao);this.unconnectedPinTimers.set(t,r)}dropPin(t){this.clearUnconnectedPinDeadline(t);let n=this.pinObservers.get(t);n==null||n.disconnect(),this.pinObservers.delete(t),this.pinnedFrames.delete(t),this.dormantPins.delete(t),this.framesSeenInDocument.delete(t)}releaseFrameIfRemoved(t){if(this.dormantPins.has(t)){if(!t.isConnected)return;this.dormantPins.delete(t),this.pinnedFrames.add(t)}if(this.pinnedFrames.has(t)){if(t.isConnected){this.framesSeenInDocument.add(t),this.clearUnconnectedPinDeadline(t);return}this.framesSeenInDocument.has(t)&&(this.pinnedFrames.delete(t),this.dormantPins.add(t))}}noteForeignSchedulerMessage(){for(let t of this.pinnedFrames){let n=this.pinEpoch.get(t);if(n!=null&&this.foreignMessageReported.get(t)!==n){this.foreignMessageReported.set(t,n),ve("scheduler_message_rejected");return}}}acceptsPinnedSource(t){for(let n of[...this.pinnedFrames,...this.dormantPins])this.releaseFrameIfRemoved(n);if(this.pinnedFrames.size===0)return!0;if(t){for(let n of this.pinnedFrames)if(n.contentWindow!=null&&t===n.contentWindow)return!0}return this.noteForeignSchedulerMessage(),!1}},j=vu.getInstance();var Wg=["html","marketo","hubspot","paperform","sdk"];var xu="__default_scheduler_close__",Gg=":re:";var Ti=e=>{if(e&&typeof e=="object"){let n=e;return n.source!==xu||typeof n.mountId!="string"||!n.mountId||n.redirectUrl!==null&&typeof n.redirectUrl!="string"?null:{mountId:n.mountId,redirectUrl:n.redirectUrl}}let t=Kg(e);return t===void 0?null:{redirectUrl:t}},Kg=e=>{if(typeof e!="string")return;let t=`${xu}${Gg}`;if(!e.startsWith(t))return;let n=e.slice(t.length);return!n||n==="null"?null:n};var YI=["http:","https:"],JI=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,fr=e=>{try{return YI.includes(new URL(e).protocol)}catch(t){return!1}},la=e=>{let t=e.trim();return!t||fr(t)||JI.test(t)?t:`https://${t}`},ua=e=>{if(e==null)return;let t=e.trim();if(!t||t==="undefined"||t==="null")return;let n=la(t);return fr(n)?n:void 0},Cu=e=>{if(e!=null&&Number.isFinite(Number(e)))return Math.min(300,Math.max(0,Math.floor(Number(e))))};var zg="__default_scheduler_handoff__",$g=e=>{if(typeof e!="string")return;let t=e.trim();if(!t||t==="undefined"||t==="null")return;let n=la(t);return fr(n)?n:void 0},da=e=>{var s;if(!e||typeof e!="object")return null;let t=e,n=$g(t.redirectOnBooked),r=$g(t.redirectOnNotBooked),o=n!=null?Cu((s=t.redirectOnBookedDelaySeconds)!=null?s:10):void 0,i=t.hideClose===!0?!0:void 0;return n==null&&r==null&&o===void 0&&i==null?null:u(u(u(u({},n!=null&&{redirectOnBooked:n}),r!=null&&{redirectOnNotBooked:r}),o!==void 0&&{redirectOnBookedDelaySeconds:o}),i!=null&&{hideClose:i})};var Au=e=>{let t=da(e);return t?{type:zg,config:t}:null};var ZI=new Set(Object.values(Iu)),QI=new Set(Wg);function ku(e){if(!se(e))return;let t=jg(e.submittedAt),n=jg(e.submitToResponseMs,Wn);if(t===void 0||n===void 0)return;let r=eL(e.hiddenDuringWait),o=tL(e.warmupWaitMs,Wn),i=qg(e.listener,QI),s=Fi(e.pixelFormId,Wt),a=Fi(e.requestId,Wt),l=Fi(e.workflowExecutionId,Wt),c=Fi(e.sessionId,Wt),d=Fi(e.anonymousId,Wt),m=qg(e.submissionSource,ZI);if(r===Ye||o===Ye||i===Ye||s===Ye||a===Ye||l===Ye||c===Ye||d===Ye||m===Ye)return;let f={submittedAt:t,submitToResponseMs:n};return at(f,"hiddenDuringWait",r),at(f,"warmupWaitMs",o),at(f,"listener",i),at(f,"pixelFormId",s),at(f,"htmlFormId",Mu(e.htmlFormId,Wt)),at(f,"requestId",a),at(f,"workflowExecutionId",l),at(f,"serverTiming",Mu(e.serverTiming,as)),at(f,"sessionId",c),at(f,"anonymousId",d),at(f,"path",Mu(e.path,ls)),at(f,"submissionSource",m),f}var Ye=Symbol("invalid");function at(e,t,n){n!==void 0&&(e[t]=n)}function jg(e,t){if(!(typeof e!="number"||!Number.isInteger(e)||e<0)&&!(t!==void 0&&e>t))return e}function eL(e){if(e!==void 0)return typeof e!="boolean"?Ye:e}function tL(e,t){if(e!==void 0)return typeof e!="number"||!Number.isInteger(e)||e<0?Ye:Math.min(e,t)}function qg(e,t){if(e!==void 0)return typeof e!="string"||!t.has(e)?Ye:e}function Fi(e,t){if(e!==void 0)return typeof e!="string"||e.length>t?Ye:e}function Mu(e,t){if(typeof e!="string")return;let n=e.slice(0,t);return n.length>0?n:void 0}function de(e,...t){try{e==null||e(...t)}catch(n){I.module("Scheduler").warn("Scheduler diagnostic callback threw",n)}}function mo(e){if(typeof window=="undefined"||typeof window.requestAnimationFrame!="function"){setTimeout(e,0);return}window.requestAnimationFrame(()=>window.requestAnimationFrame(e))}function vi(e,t){return j.subscribe("displayed",()=>mo(t),e)}var nL=new Set(["relative","absolute","fixed","sticky"]),fo=e=>e?typeof e=="string"?document.querySelector(e):e:null,ma=new WeakMap,fa=e=>{let t=ma.get(e);if(!t){if(nL.has(getComputedStyle(e).position))return()=>{};t={count:0,previous:e.style.position},e.style.position="relative",ma.set(e,t)}let n=t;n.count+=1;let r=!1;return()=>{r||(r=!0,n.count-=1,!(n.count>0||ma.get(e)!==n)&&(ma.delete(e),e.style.position==="relative"&&(e.style.position=n.previous)))}};var lt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var Xg=Object.create(null);for(let e in lt)Object.hasOwn(lt,e)&&(Xg[lt[e]]=e);var $e={to:{},get:{}};$e.get=function(e){let t=e.slice(0,3).toLowerCase(),n,r;switch(t){case"hsl":{n=$e.get.hsl(e),r="hsl";break}case"hwb":{n=$e.get.hwb(e),r="hwb";break}default:{n=$e.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null};$e.get.rgb=function(e){if(!e)return null;let t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,i=/^(\w+)$/,s=[0,0,0,1],a,l,c;if(a=e.match(n)){for(c=a[2],a=a[1],l=0;l<3;l++){let d=l*2;s[l]=Number.parseInt(a.slice(d,d+2),16)}c&&(s[3]=Number.parseInt(c,16)/255)}else if(a=e.match(t)){for(a=a[1],c=a[3],l=0;l<3;l++)s[l]=Number.parseInt(a[l]+a[l],16);c&&(s[3]=Number.parseInt(c+c,16)/255)}else if(a=e.match(r)){for(l=0;l<3;l++)s[l]=Number.parseInt(a[l+1],10);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=e.match(o)){for(l=0;l<3;l++)s[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(s[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=e.match(i))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(lt,a[1])?(s=lt[a[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Ln(s[l],0,255);return s[3]=Ln(s[3],0,1),s};$e.get.hsl=function(e){if(!e)return null;let t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){let r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,i=Ln(Number.parseFloat(n[2]),0,100),s=Ln(Number.parseFloat(n[3]),0,100),a=Ln(Number.isNaN(r)?1:r,0,1);return[o,i,s,a]}return null};$e.get.hwb=function(e){if(!e)return null;let t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){let r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,i=Ln(Number.parseFloat(n[2]),0,100),s=Ln(Number.parseFloat(n[3]),0,100),a=Ln(Number.isNaN(r)?1:r,0,1);return[o,i,s,a]}return null};$e.to.hex=function(...e){return"#"+pa(e[0])+pa(e[1])+pa(e[2])+(e[3]<1?pa(Math.round(e[3]*255)):"")};$e.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};$e.to.rgb.percent=function(...e){let t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};$e.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};$e.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};$e.to.keyword=function(...e){return Xg[e.slice(0,3)]};function Ln(e,t,n){return Math.min(Math.max(t,e),n)}function pa(e){let t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var pr=$e;var Yg={};for(let e of Object.keys(lt))Yg[lt[e]]=e;var w={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Qt=w,Zt=z(6/29,3);function po(e){let t=e>.0031308?1.055*z(e,.4166666666666667)-.055:e*12.92;return Math.min(Math.max(0,t),1)}function go(e){return e>.04045?z((e+.055)/1.055,2.4):e/12.92}for(let e of Object.keys(w)){if(!("channels"in w[e]))throw new Error("missing channels property: "+e);if(!("labels"in w[e]))throw new Error("missing channel labels property: "+e);if(w[e].labels.length!==w[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:n}=w[e];delete w[e].channels,delete w[e].labels,Object.defineProperty(w[e],"channels",{value:t}),Object.defineProperty(w[e],"labels",{value:n})}w.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a,l;switch(i){case o:{a=0;break}case t:{a=(n-r)/s;break}case n:{a=2+(r-t)/s;break}case r:{a=4+(t-n)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);let c=(o+i)/2;return i===o?l=0:c<=.5?l=s/(i+o):l=s/(2-i-o),[a,l*100,c*100]};w.rgb.hsv=function(e){let t,n,r,o,i,s=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(s,a,l),d=c-Math.min(s,a,l),m=function(f){return(c-f)/6/d+1/2};if(d===0)o=0,i=0;else{switch(i=d/c,t=m(s),n=m(a),r=m(l),c){case s:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,i*100,c*100]};w.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],o=w.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};w.rgb.oklab=function(e){let t=go(e[0]/255),n=go(e[1]/255),r=go(e[2]/255),o=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),i=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),s=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),a=.2104542553*o+.793617785*i-.0040720468*s,l=1.9779984951*o-2.428592205*i+.4505937099*s,c=.0259040371*o+.7827717662*i-.808675766*s;return[a*100,l*100,c*100]};w.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[i*100,s*100,a*100,o*100]};function rL(e,t){return z(e[0]-t[0],2)+z(e[1]-t[1],2)+z(e[2]-t[2],2)}w.rgb.keyword=function(e){let t=Yg[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(let o of Object.keys(lt)){let i=lt[o],s=rL(e,i);s<n&&(n=s,r=o)}return r};w.keyword.rgb=function(e){return lt[e]};w.rgb.xyz=function(e){let t=go(e[0]/255),n=go(e[1]/255),r=go(e[2]/255),o=t*.4124564+n*.3575761+r*.1804375,i=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[o*100,i*100,s*100]};w.rgb.lab=function(e){let t=w.rgb.xyz(e),n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>Zt?z(n,1/3):7.787*n+16/116,r=r>Zt?z(r,1/3):7.787*r+16/116,o=o>Zt?z(o,1/3):7.787*o+16/116;let i=116*r-16,s=500*(n-r),a=200*(r-o);return[i,s,a]};w.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,o,i;if(n===0)return i=r*255,[i,i,i];let s=r<.5?r*(1+n):r+n-r*n,a=2*r-s,l=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?i=a+(s-a)*6*o:2*o<1?i=s:3*o<2?i=a+(s-a)*(2/3-o)*6:i=a,l[c]=i*255;return l};w.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;let s=(r+n)/2,a=r===0?2*o/(i+o):2*n/(r+n);return[t,a*100,s*100]};w.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}};w.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01),i,s;s=(2-n)*r;let a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,i*100,s*100]};w.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,o=n+r,i;o>1&&(n/=o,r/=o);let s=Math.floor(6*t),a=1-r;i=6*t-s,(s&1)!==0&&(i=1-i);let l=n+i*(a-n),c,d,m;switch(s){default:case 6:case 0:{c=a,d=l,m=n;break}case 1:{c=l,d=a,m=n;break}case 2:{c=n,d=a,m=l;break}case 3:{c=n,d=l,m=a;break}case 4:{c=l,d=n,m=a;break}case 5:{c=a,d=n,m=l;break}}return[c*255,d*255,m*255]};w.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[i*255,s*255,a*255]};w.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o,i,s;return o=t*3.2404542+n*-1.5371385+r*-.4985314,i=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,o=po(o),i=po(i),s=po(s),[o*255,i*255,s*255]};w.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>Zt?z(t,1/3):7.787*t+16/116,n=n>Zt?z(n,1/3):7.787*n+16/116,r=r>Zt?z(r,1/3):7.787*r+16/116;let o=116*n-16,i=500*(t-n),s=200*(n-r);return[o,i,s]};w.xyz.oklab=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),i=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),s=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),a=.2104542553*o+.793617785*i-.0040720468*s,l=1.9779984951*o-2.428592205*i+.4505937099*s,c=.0259040371*o+.7827717662*i-.808675766*s;return[a*100,l*100,c*100]};w.oklab.oklch=function(e){return w.lab.lch(e)};w.oklab.xyz=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=z(.999999998*t+.396337792*n+.215803758*r,3),i=z(1.000000008*t-.105561342*n-.063854175*r,3),s=z(1.000000055*t-.089484182*n-1.291485538*r,3),a=1.227013851*o-.55779998*i+.281256149*s,l=-.040580178*o+1.11225687*i-.071676679*s,c=-.076381285*o-.421481978*i+1.58616322*s;return[a*100,l*100,c*100]};w.oklab.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,o=z(t+.3963377774*n+.2158037573*r,3),i=z(t-.1055613458*n-.0638541728*r,3),s=z(t-.0894841775*n-1.291485548*r,3),a=po(4.0767416621*o-3.3077115913*i+.2309699292*s),l=po(-1.2684380046*o+2.6097574011*i-.3413193965*s),c=po(-.0041960863*o-.7034186147*i+1.707614701*s);return[a*255,l*255,c*255]};w.oklch.oklab=function(e){return w.lch.lab(e)};w.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],o,i,s;i=(t+16)/116,o=n/500+i,s=i-r/200;let a=z(i,3),l=z(o,3),c=z(s,3);return i=a>Zt?a:(i-16/116)/7.787,o=l>Zt?l:(o-16/116)/7.787,s=c>Zt?c:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]};w.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);let s=Math.sqrt(n*n+r*r);return[t,s,o]};w.lch.lab=function(e){let t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),s=n*Math.sin(o);return[t,i,s]};w.rgb.ansi16=function(e,t=null){let[n,r,o]=e,i=t===null?w.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(s+=60),s};w.hsv.ansi16=function(e){return w.rgb.ansi16(w.hsv.rgb(e),e[2])};w.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};w.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};w.ansi256.rgb=function(e){if(e=e[0],e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};w.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};w.hex.rgb=function(e){let t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));let r=Number.parseInt(n,16),o=r>>16&255,i=r>>8&255,s=r&255;return[o,i,s]};w.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i,a,l=s<1?i/(1-s):0;return s<=0?a=0:o===t?a=(n-r)/s%6:o===n?a=2+(r-t)/s:a=4+(t-n)/s,a/=6,a%=1,[a*360,s*100,l*100]};w.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};w.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};w.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let o=[0,0,0],i=t%1*6,s=i%1,a=1-s,l=0;switch(Math.floor(i)){case 0:{o[0]=1,o[1]=s,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=s;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=s,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};w.hcg.hsv=function(e){let t=e[1]/100,n=e[2]/100,r=t+n*(1-t),o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};w.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};w.hcg.hwb=function(e){let t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};w.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,o=r-t,i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};w.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};w.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};w.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};w.gray.hsl=function(e){return[0,0,e[0]]};w.gray.hsv=w.gray.hsl;w.gray.hwb=function(e){return[0,100,e[0]]};w.gray.cmyk=function(e){return[0,0,0,e[0]]};w.gray.lab=function(e){return[e[0],0,0]};w.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r};w.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function oL(){let e={},t=Object.keys(Qt);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function iL(e){let t=oL(),n=[e];for(t[e].distance=0;n.length>0;){let r=n.pop(),o=Object.keys(Qt[r]);for(let{length:i}=o,s=0;s<i;s++){let a=o[s],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function sL(e,t){return function(n){return t(e(n))}}function aL(e,t){let n=[t[e].parent,e],r=Qt[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=sL(Qt[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function lL(e){let t=iL(e),n={},r=Object.keys(t);for(let{length:o}=r,i=0;i<o;i++){let s=r[i];t[s].parent!==null&&(n[s]=aL(s,t))}return n}var Jg=lL;var ho={},uL=Object.keys(Qt);function cL(e){let t=function(...n){let r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function dL(e){let t=function(...n){let r=n[0];if(r==null)return r;r.length>1&&(n=r);let o=e(n);if(typeof o=="object")for(let{length:i}=o,s=0;s<i;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(let e of uL){ho[e]={},Object.defineProperty(ho[e],"channels",{value:Qt[e].channels}),Object.defineProperty(ho[e],"labels",{value:Qt[e].labels});let t=Jg(e),n=Object.keys(t);for(let r of n){let o=t[r];ho[e][r]=dL(o),ho[e][r].raw=cL(o)}}var ze=ho;var Zg=["keyword","gray","hex"],Ou={};for(let e of Object.keys(ze))Ou[[...ze[e].labels].sort().join("")]=e;var xi={};function he(e,t){if(!(this instanceof he))return new he(e,t);if(t&&t in Zg&&(t=null),t&&!(t in ze))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof he)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){let o=pr.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=ze[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=ze[this.model].channels;let o=Array.prototype.slice.call(e,0,r);this.color=Pu(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;let o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);let i=o.sort().join("");if(!(i in Ou))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=Ou[i];let{labels:s}=ze[this.model],a=[];for(n=0;n<s.length;n++)a.push(e[s[n]]);this.color=Pu(a)}if(xi[this.model])for(r=ze[this.model].channels,n=0;n<r;n++){let o=xi[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}he.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in pr.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);let n=t.valpha===1?t.color:[...t.color,this.valpha];return pr.to[t.model](...n)},percentString(e){let t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return pr.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=ze[this.model],{labels:n}=ze[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new he([...this.color.map(fL(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new he([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:re("rgb",0,me(255)),green:re("rgb",1,me(255)),blue:re("rgb",2,me(255)),hue:re(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:re("hsl",1,me(100)),lightness:re("hsl",2,me(100)),saturationv:re("hsv",1,me(100)),value:re("hsv",2,me(100)),chroma:re("hcg",1,me(100)),gray:re("hcg",2,me(100)),white:re("hwb",1,me(100)),wblack:re("hwb",2,me(100)),cyan:re("cmyk",0,me(100)),magenta:re("cmyk",1,me(100)),yellow:re("cmyk",2,me(100)),black:re("cmyk",3,me(100)),x:re("xyz",0,me(95.047)),y:re("xyz",1,me(100)),z:re("xyz",2,me(108.833)),l:re("lab",0,me(100)),a:re("lab",1),b:re("lab",2),keyword(e){return e!==void 0?new he(e):ze[this.model].keyword(this.color)},hex(e){return e!==void 0?new he(e):pr.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new he(e);let t=this.rgb().round().color,n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),pr.to.hex(...t)+n},rgbNumber(){let e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let o=r/255;t[n]=o<=.04045?o/12.92:z((o+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return he.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,i=2*o-1,s=n.alpha()-r.alpha(),a=((i*s===-1?i:(i+s)/(1+i*s))+1)/2,l=1-a;return he.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(let e of Object.keys(ze)){if(Zg.includes(e))continue;let{channels:t}=ze[e];he.prototype[e]=function(...n){return this.model===e?new he(this):n.length>0?new he(n,e):new he([...pL(ze[this.model][e].raw(this.color)),this.valpha],e)},he[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=Pu(n,t)),new he(r,e)}}function mL(e,t){return Number(e.toFixed(t))}function fL(e){return function(t){return mL(t,e)}}function re(e,t,n){e=Array.isArray(e)?e:[e];for(let r of e)(xi[r]||(xi[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function me(e){return function(t){return Math.max(0,Math.min(e,t))}}function pL(e){return Array.isArray(e)?e:[e]}function Pu(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var ga=he;var gL=/^(#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([\d.\s,%/]+\)|hsla?\([\d.\s,%/]+\)|[a-zA-Z]+)$/,hL=e=>gL.test(e.trim()),Qg=e=>{if(typeof e!="string")return null;let t=e.trim(),n=/^[a-z]+$/i.test(t)?t.toLowerCase():t;if(!hL(n))return null;try{return ga(n),n}catch(r){return null}},eh=e=>{if(typeof e!="string")return null;let t=e.trim();return t&&/^[A-Za-z0-9 -]+$/.test(t)?t:null};var th="hidden";var gr={backgroundColor:"#f0f0f0",textColor:"#000000",primaryFont:"Inter",buttonTextColor:"#ffffff",buttonBackgroundColor:"#000000",showDefaultFooter:!0,scrollbarVisibility:th,loadingModalBackground:"page",loadingModalTextColor:"",loadingModalUseBrandLogo:!0};var wn=(e,t=gr.backgroundColor)=>{var n;return(n=Qg(e))!=null?n:t};var nh=e=>{let t=eh(e);return t?{trimmed:t,token:`'${t}'`}:null},SL=(e,t)=>{let n=nh(e);return n?`https://fonts.googleapis.com/css2?family=${encodeURIComponent(n.trimmed).replace(/%20/g,"+")}:wght@${t.join(";")}&display=swap`:null},yL=[300,400,500,600,700],rh=e=>{let t=nh(e);return t&&t.trimmed!==gr.primaryFont?t:null},oh=e=>{let t=rh(e);return t?`${t.token},Inter,sans-serif`:null},ha=e=>{let t=rh(e);return t?SL(t.trimmed,yL):null},Ci="rgba(0, 0, 0, 0.5)",ih="24px",sh="85vh";var Se={body:"dftSchedulerError",title:"dftSchedulerError__title",description:"dftSchedulerError__description",action:"dftSchedulerError__action"},Je={background:"--dft-scheduler-error-bg",foreground:"--dft-scheduler-error-fg",font:"--dft-scheduler-error-font",buttonBackground:"--dft-scheduler-error-button-bg",buttonForeground:"--dft-scheduler-error-button-fg"},ah="720px",Du=200,Sa=(e=gr)=>{var t;return{[Je.background]:wn(e.backgroundColor),[Je.foreground]:wn(e.textColor,gr.textColor),[Je.font]:(t=oh(e.primaryFont))!=null?t:"",[Je.buttonBackground]:wn(e.buttonBackgroundColor,gr.buttonBackgroundColor),[Je.buttonForeground]:wn(e.buttonTextColor,gr.buttonTextColor)}},lh=`
.${Se.body} {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px;
  min-height: ${Du}px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(${Je.foreground}, inherit);
  font-family: var(${Je.font}, inherit);
}
.${Se.title} {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: inherit;
}
.${Se.description} {
  margin: 8px 0 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  opacity: 0.7;
  color: inherit;
}
.${Se.action} {
  appearance: none;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 8px 12px;
  border: 1px solid var(${Je.buttonBackground}, currentColor);
  border-radius: 10px;
  background: var(${Je.buttonBackground}, transparent);
  color: var(${Je.buttonForeground}, inherit);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
}
.${Se.action}:focus-visible {
  outline: 2px solid var(${Je.foreground}, currentColor);
  outline-offset: 3px;
}
`;var fe="dftDefaultLoadingModal",ya="dftDefaultLoadingModal__overlay",hr="dftDefaultLoadingModal__card",ba="dftDefaultLoadingModal__banner",Sr="dftDefaultLoadingModal__logo",_a="dftDefaultLoadingModal__progressRow",Ai="dftDefaultLoadingModal__progressLabel",Mi="dftDefaultLoadingModal__progressPercent",Nu="dftDefaultLoadingModal__progressStatus",Ea="dftDefaultLoadingModal__progressBar",ki="dftDefaultLoadingModal__progressBarFill",Ia="dftDefaultLoadingModal__steps",Ht="dftDefaultLoadingModal__step",Hu="dftDefaultLoadingModal__stepIcon",Uu="dftDefaultLoadingModal__stepText",yr="dftDefaultLoadingModal__stepDots",Oi="dftDefaultLoadingModal--noLogo",It="dftDefaultLoadingModal--contained",oe="dftDefaultLoadingModal--error",Bu="dftDefaultLoadingModal__style";var br=[{id:"processing",label:"Processing your submission."},{id:"routing",label:"Getting you to the right place..."},{id:"almost-there",label:"Hang tight..."}],bL='<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>',uh='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',_L='<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg>',EL={processing:uh,routing:_L,"almost-there":bL},ch=e=>{var t;return(t=EL[e])!=null?t:uh},Rn="data-state";var ie={bg:"--dft-modal-bg",fg:"--dft-modal-fg",font:"--dft-modal-font",overlay:"--dft-modal-overlay",overlayBlur:"--dft-modal-overlay-blur"},en=S(u({[ie.bg]:"#fff",[ie.fg]:"#18181b",[ie.font]:"inherit"},Sa()),{[ie.overlay]:Ci,[ie.overlayBlur]:"none"});var dh={receipt:{title:"We couldn't open scheduling",message:"Your details have been received. You can close this window."},timeout:{title:"This is taking longer than expected",message:"You can close this window."}},mh=80+Du,Vu=16,fh=`
.${fe} {
  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family: var(${ie.font}, inherit);
}

.${fe}.${It} {
  position: absolute;
  z-index: auto;
}

.${ya} {
  position: absolute;
  inset: 0;
  background: var(${ie.overlay}, ${Ci});
  backdrop-filter: var(${ie.overlayBlur}, none);
  -webkit-backdrop-filter: var(${ie.overlayBlur}, none);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: ${Vu}px;
  box-sizing: border-box;
}

.${hr} {
  width: 100%;
  max-width: 502px;
  background: var(${ie.bg}, #fff);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  color: var(${ie.fg}, #18181b);
  box-sizing: border-box;
}

.${ba} {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
}

.${Sr} {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.${fe}.${Oi} .${Sr} {
  display: none;
}

.${_a} {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.195px;
  box-sizing: border-box;
}

.${Ai} {
  color: currentColor;
  font-weight: 420;
  margin: 0 10px 0 0;
}

.${Mi} {
  color: currentColor;
  opacity: 0.6;
  font-weight: 500;
}

.${Nu} {
  color: currentColor;
  opacity: 0.6;
  font-weight: 420;
  margin-left: auto;
}

.${Ea} {
  width: 100%;
  height: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 9999px;
  overflow: hidden;
}

.${ki} {
  width: 0%;
  height: 100%;
  background: currentColor;
  border-radius: 9999px;
  transition: width 350ms ease;
}

.${Ia} {
  background: color-mix(in srgb, currentColor 6%, var(${ie.bg}, #fff));
  padding: 32px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.${Ht} {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 20px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.195px;
  color: currentColor;
  transition: opacity 200ms ease;
}

.${Ht}[${Rn}="pending"] {
  opacity: 0.4;
}

.${Ht}[${Rn}="completed"] {
  opacity: 0.6;
}

.${Ht}[${Rn}="active"] {
  font-weight: 500;
}

.${Hu} {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.${Uu} {
  margin: 0;
  white-space: nowrap;
}

.${yr} {
  display: none;
  margin-left: 4px;
  align-items: center;
  gap: 3px;
}

.${Ht}[${Rn}="active"] .${yr} {
  display: inline-flex;
}

.${yr} > span {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.5;
  animation: dft-default-modal-dot 1200ms infinite ease-in-out;
}

.${yr} > span:nth-child(2) {
  animation-delay: 150ms;
}

.${yr} > span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes dft-default-modal-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-1px); }
}

${lh}

.${fe} .${Se.body} {
  display: none;
  width: 100%;
}

.${fe}.${oe} .${ya} {
  background: ${Ci};
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.${fe}.${oe} .${hr} {
  max-width: ${ah};
  max-height: ${sh};
  overflow-y: auto;
  border-radius: ${ih};
  background: var(${Je.background});
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.${fe}.${oe} .${ba} {
  padding: 24px;
}

.${fe}.${oe} .${Sr} {
  display: none;
}

.${fe}.${oe} .${Se.body} {
  display: flex;
}

.${fe}.${oe} .${_a},
.${fe}.${oe} .${Ea},
.${fe}.${oe} .${Ia} {
  display: none;
}
`,IL=(e,t)=>`
        <div class="${Ht}" ${Rn}="${t}" data-step-id="${e.id}">
          <span class="${Hu}">${ch(e.id)}</span>
          <span class="${Uu}">${e.label}</span>
          <span class="${yr}" aria-hidden="true"><span></span><span></span><span></span></span>
        </div>`,ph=()=>{let e=br[0],t=0,n=br.map((r,o)=>IL(r,o===0?"active":"pending")).join("");return`
<div class="${fe}">
  <div class="${ya}">
    <div class="${hr}">
      <div class="${ba}">
        <img class="${Sr}" alt="" />
        <div class="${_a}" role="status" aria-live="polite">
          <span class="${Ai}">${e.label}</span>
          <span class="${Mi}">${t}%</span>
          <span class="${Nu}">loading...</span>
        </div>
        <div class="${Ea}">
          <div class="${ki}" style="width: ${t}%"></div>
        </div>
        <div class="${Se.body}" role="alert">
          <h2 class="${Se.title}"></h2>
          <p class="${Se.description}"></p>
          <button type="button" class="${Se.action}">Close</button>
        </div>
      </div>
      <div class="${Ia}">${n}
      </div>
    </div>
  </div>
</div>
`};var LL=3e3,bo=new Map,ye=new Map,tn=new WeakMap,Pi=new WeakMap,La=new WeakMap,wa=new WeakMap,Ra=new WeakMap,So=new Map,_o=e=>e==="active"||e==="timed-out",qu=e=>{let t=0;for(let n of ye.values())n.modal===e&&_o(n.state)&&(t+=1);return t},wL=e=>{for(let[t,n]of ye)n.state==="active"&&n.modal===e&&ye.set(t,S(u({},n),{state:"timed-out"}))},RL=e=>{for(let[t,n]of ye)n.state==="timed-out"&&n.modal===e&&ye.set(t,S(u({},n),{state:"superseded"}))},TL=e=>{for(let[t,n]of ye)n.modal===e&&ye.delete(t)},Tn=()=>typeof document=="undefined"?[]:Array.from(document.querySelectorAll(`.${fe}`)),Ze=e=>{var t;if(e){let n=ye.get(e);if(!n||!_o(n.state))return null;let r=n.modal;return!(r instanceof HTMLDivElement)||!r.parentElement?null:r}return(t=Tn()[0])!=null?t:null},Ni=e=>{let t=ye.get(e);return t?_o(t.state)?"owned":t.state:"released"},Ta="dft-loader-presentation-invalidated",Gu="dft-loader-presentation-changed",xa=(e,t)=>(e.addEventListener(Ta,t),()=>e.removeEventListener(Ta,t)),Sh=(e,t)=>(e.addEventListener(Gu,t),()=>e.removeEventListener(Gu,t));var yh=()=>Tn().filter(e=>e.style.display!=="none").length,De=e=>!!(e!=null&&e.isConnected&&e.classList.contains(oe)),bh=()=>Tn().filter(e=>e.classList.contains(oe)).length,_r=e=>{let t=bo.get(e);return t||(t={stepInterval:null,safetyTimeout:null,startedAt:Date.now()},bo.set(e,t)),t},Fa=e=>{let t=bo.get(e);t!=null&&t.stepInterval&&(clearInterval(t.stepInterval),t.stepInterval=null)},_h=e=>{let t=bo.get(e);t!=null&&t.safetyTimeout&&(clearTimeout(t.safetyTimeout),t.safetyTimeout=null)},FL=e=>{var t,n;Fa(e),_h(e),(n=(t=bo.get(e))==null?void 0:t.resizeObserver)==null||n.disconnect(),bo.delete(e)};var Ku=(e,t)=>{wa.has(e)||wa.set(e,fa(t))},Eh=e=>{var t;(t=wa.get(e))==null||t(),wa.delete(e)},$u=e=>{let t=Pi.get(e);t&&La.get(t)===e&&La.delete(t),Pi.delete(e)},gh=e=>{let t=_r(e);t.safetyTimeout||(t.startedAt=Date.now(),t.safetyTimeout=setTimeout(()=>{let n=Date.now()-t.startedAt,r=[],o=[];for(let s of ye.values())s.state==="active"&&s.modal===e&&s.onUnconfirmedTimeout&&(r.push(s.onUnconfirmedTimeout),o.push(Math.max(0,Date.now()-s.startedAt)));wL(e),Rh(e,"timeout");let i=r.length>0?r.map((s,a)=>{var l;return{handler:s,elapsedMs:(l=o[a])!=null?l:n}}):t.onUnconfirmedTimeout?[{handler:t.onUnconfirmedTimeout,elapsedMs:n}]:[];for(let s of i)try{s.handler(s.elapsedMs,e)}catch(a){}},Vn))},Ih=e=>{let t=null;try{if(t=ha(Ra.get(e)),!t||So.has(t))return;let n=t,r=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).find(c=>c.href===n);if(r!=null&&r.sheet){So.set(n,"loaded");return}let o=r!=null?r:document.createElement("link");o.rel="stylesheet",o.href=n;let i=c=>{So.set(n,c);for(let d of Tn())ha(Ra.get(d))===n&&yo(()=>Di(d,!0))},s=()=>{var c;l(),i("loaded"),(c=document.fonts)==null||c.ready.then(()=>{for(let d of Tn())Di(d)})},a=()=>{l(),i("failed")},l=()=>{o.removeEventListener("load",s),o.removeEventListener("error",a)};o.addEventListener("load",s),o.addEventListener("error",a),So.set(n,"pending"),r||document.head.appendChild(o)}catch(n){t&&So.set(t,"failed")}},vL=e=>{var t;try{let n=ha(Ra.get(e));return n?(t=So.get(n))!=null?t:"failed":"skipped"}catch(n){return"failed"}},xL=(e,t)=>{for(let[n,r]of Object.entries(t))e.style.setProperty(n,r)},zu=(e,t)=>{e.setAttribute(Rn,t)},CL=e=>Math.min(100,Math.round(e/br.length*100)),Wu=(e,t,n)=>{let r=e.querySelector(`.${Ai}`),o=e.querySelector(`.${Mi}`),i=e.querySelector(`.${ki}`),s=br[Math.min(t,br.length-1)];r&&s&&(r.textContent=s.label);let a=CL(n);o&&(o.textContent=`${a}%`),i&&(i.style.width=`${a}%`)},Lh=e=>{Fa(e);let t=Array.from(e.querySelectorAll(`.${Ht}`));if(t.length===0)return;let n=0;Wu(e,n,0),_r(e).stepInterval=setInterval(()=>{let r=t[n];r&&zu(r,"completed");let o=n+1;if(o>=t.length){Wu(e,t.length-1,t.length),Fa(e);return}n=o;let i=t[n];i&&zu(i,"active"),Wu(e,n,o)},LL)},AL=(e,t)=>{let n=e.querySelector(`.${Sr}`);n&&(t?(e.classList.remove(Oi),n.src=t):(e.classList.add(Oi),n.removeAttribute("src")))},va=(e,t)=>{var n;xL(e,t.theme),AL(e,t.logoUrl),Ra.set(e,(n=t.primaryFont)!=null?n:null),e.classList.contains(oe)&&(Ih(e),yo(()=>Di(e)))},ML=(e,t)=>{let n=Array.from(e.children).find(o=>o instanceof HTMLDivElement&&o.classList.contains(fe)&&o.classList.contains(It)===!!t&&!Pi.has(o));if(n)return n;let r=t?La.get(t):void 0;return r instanceof HTMLDivElement&&r.isConnected?r:null},kL=e=>{var n;let t=_r(e);(n=t.resizeObserver)==null||n.disconnect(),t.resizeObserver=void 0,RL(e),e.dispatchEvent(new Event(Ta)),e.classList.remove(oe),tn.delete(e);for(let r of[Se.title,Se.description]){let o=e.querySelector(`.${r}`);o&&(o.textContent="")}bh()===0&&document.removeEventListener("keydown",Xu),e.querySelectorAll(`.${Ht}`).forEach((r,o)=>{zu(r,o===0?"active":"pending")}),Lh(e)},Hi=(e={theme:u({},en),logoUrl:null},t={})=>{if(typeof document=="undefined")return null;let n=fo(t.target),r=n instanceof HTMLIFrameElement?void 0:n,o=r!=null?r:document.body,i=ML(o,r);if(i){r&&Pi.get(i)===r?($u(i),i.classList.add(It),r.appendChild(i)):r||$u(i);let a=_r(i);return t.onUnconfirmedTimeout&&(a.onUnconfirmedTimeout=t.onUnconfirmedTimeout),i.classList.contains(oe)&&kL(i),t.showProgress!==!1?i.style.display="":qu(i)===0&&(i.style.display="none"),r&&t.showProgress!==!1&&Ku(i,r),va(i,e),gh(i),i}if(!document.getElementById(Bu)){let a=document.createElement("style");a.id=Bu,a.textContent=fh,document.head.appendChild(a)}o.insertAdjacentHTML("beforeend",ph());let s=o.lastElementChild;return!(s instanceof HTMLDivElement)||!s.classList.contains(fe)?null:(t.onUnconfirmedTimeout&&(_r(s).onUnconfirmedTimeout=t.onUnconfirmedTimeout),t.showProgress===!1&&(s.style.display="none"),r&&(s.classList.add(It),t.showProgress!==!1&&Ku(s,r)),va(s,e),Lh(s),gh(s),s)},Xu=e=>{if(e.key!=="Escape")return;let t=document.activeElement,n=t instanceof Element?t.closest(`.${fe}`):null;if(n!=null&&n.classList.contains(oe)){ju(n,"escape");return}let r=Tn().filter(o=>o.classList.contains(oe));r.length===1&&ju(r[0],"escape")},yo=e=>{if(typeof requestAnimationFrame=="function"){requestAnimationFrame(e);return}e()},hh=e=>{let t=e.querySelector(`.${Se.title}`),n=e.querySelector(`.${Se.description}`);t&&(t.textContent=""),n&&(n.textContent=""),yo(()=>{let r=tn.get(e);if(!r||!e.isConnected||!e.classList.contains(oe))return;let o=dh[r.variant];t&&(t.textContent=o.title),n&&(n.textContent=o.message),Di(e)})},wh=e=>{var i;let t=e.classList.contains(It)?e.parentElement:null;if(!t)return{displayMode:"fullscreen"};let n=Math.max(0,Math.round(t.getBoundingClientRect().height)),r=e.querySelector(`.${hr}`),o=Math.max(mh,((i=r==null?void 0:r.scrollHeight)!=null?i:0)+Vu*2);return n>=o?(Ku(e,t),{displayMode:"inline",containerHeightPx:n}):(Eh(e),e.classList.remove(It),Pi.set(e,t),La.set(t,e),document.body.appendChild(e),{displayMode:"fallback_from_inline",containerHeightPx:n})},Di=(e,t=!1)=>{var o;let n=tn.get(e);if(!n||!e.isConnected)return;let r=`${n.displayMode}:${n.containerHeightPx}`;e.classList.contains(It)&&Object.assign(n,wh(e)),(t||`${n.displayMode}:${n.containerHeightPx}`!==r)&&e.dispatchEvent(new Event(Gu)),n.displayMode==="fallback_from_inline"&&((o=_r(e).resizeObserver)==null||o.disconnect())},Rh=(e,t)=>{let n=tn.get(e);if(n&&e.classList.contains(oe)){if(n.variant===t)return;n.upgraded||(n.upgraded=n.variant==="timeout"&&t==="receipt"),n.variant=t,hh(e);return}if(Fa(e),_h(e),e.style.display="",e.classList.add(oe),tn.set(e,S(u({variant:t,upgraded:!1,shownAt:Date.now()},wh(e)),{onDismissed:[]})),typeof ResizeObserver!="undefined"&&e.classList.contains(It)){let o=new ResizeObserver(()=>yo(()=>Di(e))),i=e.querySelector(`.${hr}`);i&&o.observe(i),e.parentElement&&o.observe(e.parentElement),_r(e).resizeObserver=o}Ih(e);let r=e.querySelector(`.${Se.action}`);r&&(r.onclick=()=>ju(e,"close_button")),document.addEventListener("keydown",Xu),hh(e),r&&yo(()=>{yo(()=>{!r.isConnected||!e.classList.contains(oe)||r.focus()})})},OL=(e,t)=>{var n;return e.isConnected?e.classList.contains(oe)?((n=tn.get(e))==null?void 0:n.variant)!==t:!0:!1},Yu=(e,t)=>!e||!OL(e,t)?!1:(Rh(e,t),!0),Th=e=>{if(!e)return{};let t=tn.get(e);return t?S(u({displayMode:t.displayMode,errorVariant:t.variant,errorUpgraded:t.upgraded},t.containerHeightPx!==void 0?{containerHeightPx:t.containerHeightPx}:{}),{errorShownAt:t.shownAt,fontLoad:vL(e)}):{displayMode:e.style.display==="none"?"hidden_loader":e.classList.contains(It)?"inline":"fullscreen"}},PL=()=>{bh()===0&&document.removeEventListener("keydown",Xu)},Ju=e=>{FL(e),TL(e),Eh(e),$u(e),e.remove(),PL()},ju=(e,t)=>{var r,o;let n=[...(o=(r=tn.get(e))==null?void 0:r.onDismissed)!=null?o:[]];for(let[i,s]of ye)s.modal!==e||s.state!=="timed-out"||(s.onDismissed&&n.push(s.onDismissed),ye.set(i,S(u({},s),{state:"dismissed",modal:null})));e.dispatchEvent(new Event(Ta));for(let i of n)try{i(t,e)}catch(s){}Ju(e)},Zu=e=>{Ju(e)};var Ui=(e,t)=>{let n=Symbol("loading-modal-lease"),s=t!=null?t:{},{onUnconfirmedTimeout:r,onDismissed:o}=s,i=Un(s,["onUnconfirmedTimeout","onDismissed"]);ye.set(n,u(u({state:"active",modal:null,startedAt:Date.now()},r?{onUnconfirmedTimeout:r}:{}),o?{onDismissed:o}:{}));try{let a=Hi(e,i),l=ye.get(n);return(l==null?void 0:l.state)==="active"&&ye.set(n,S(u({},l),{modal:a})),n}catch(a){throw ye.delete(n),a}},Qu=e=>{let t=ye.get(e);if(t!==void 0)return ye.delete(e),t},ec=e=>{if(!e.onDismissed||!_o(e.state))return;let t=e.modal?tn.get(e.modal):void 0;t&&De(e.modal)&&t.onDismissed.push(e.onDismissed)},Bi=({lease:e,modal:t})=>{if(e)return{wasShowingError:De(Ze(e)),removed:Er(e)};if(!(t!=null&&t.parentElement))return{wasShowingError:!1,removed:!1};let n=De(t);return Zu(t),{wasShowingError:n,removed:!0}},Vi=e=>Bi({lease:e}),Fn=e=>{let t=Qu(e);t&&ec(t)},Er=e=>{var n;let t=Qu(e);return t===void 0||!_o(t.state)||!((n=t.modal)!=null&&n.parentElement)?!1:qu(t.modal)!==0?(ec(t),!1):(Ju(t.modal),!0)},Fh=(e,t)=>{let n=Qu(e);if(n===void 0||!_o(n.state)||!n.modal)return!1;let r=qu(n.modal)===0&&Yu(n.modal,t);return ec(n),r};var Eo=(e,t)=>{var n;return typeof e=="object"?(n=e.loader)!=null?n:t:e!==!1};function Wi(e){var m;let t=e.loadingModalLease,n=t?Ze(t):(m=e.loadingModal)!=null?m:null,r=!!(t||e.loadingModal),o=!1,i=!1,s=new Set,a=!1,l=()=>!o&&(i||a||(t?Ni(t)==="owned":!n||n.parentElement!==null)),c=()=>!!(n!=null&&n.isConnected&&n.style.display!=="none"),d=(f=!1)=>{var h;if(!r)return;let p=l();if(r=!1,!t&&!p)return;f&&p&&(a=!0);let g=Bi({lease:t,modal:e.loadingModal});f&&p&&((h=e.onLoadingModalReleased)==null||h.call(e,g))};return{get mayPresent(){return l()},watchInvalidation(f){if(!l())return o=!0,f(),()=>{};if(!n||i)return()=>{};let p=xa(n,()=>{o=!0,f()}),g=()=>{p(),s.delete(g)};return s.add(g),g},markRevealed(){i=!0;for(let f of s)f()},get covering(){return r&&c()},release:d,reject(){if(r){if(De(t?Ze(t):n)){r=!1,t&&Fn(t);return}d()}},whenUncovered(f){let p,g=!1,h=()=>{if(!(g||!l())){if(c()){p=requestAnimationFrame(h);return}f()}};return h(),()=>{g=!0,p!==void 0&&cancelAnimationFrame(p)}}}}function Gi(e){return e.loadingModalLease&&(Ni(e.loadingModalLease)!=="owned"||!Ze(e.loadingModalLease))?(de(e.onFrameSkipped,"superseded_response"),null):Wi(e)}var Ir=I.module("Scheduler"),DL=".default.com",NL=".vercel.app",HL=["https:"],UL=["http:","https:"],BL=["development","local"],VL=()=>[DL],vh=(e,t)=>e.endsWith(t),tc=()=>BL.includes("production"),Io=e=>{try{return new URL(e)}catch(t){return null}},WL=e=>e==="vercel.app"||vh(e,NL),GL=e=>!1,xh=e=>{let t=e.hostname;return t==="localhost"||t==="127.0.0.1"||t==="0.0.0.0"||t==="[::1]"},nc=e=>e.protocol==="https:"?!0:e.protocol==="http:"&&xh(e),KL=e=>nc(e)?typeof window!="undefined"&&e.origin===window.location.origin?!0:tc()?xh(e):!1:!1,Ca=e=>{let t=Io(e);return t!=null&&KL(t)},$L=(e,t)=>t.some(n=>{if(n==null)return!1;let r=Io(n);return r!=null&&r.href===e.href}),zL=e=>{if(typeof window=="undefined"||!nc(e))return!1;let t=Io(window.location.href);return t?e.origin===t.origin&&e.pathname===t.pathname&&e.search===t.search:!1},jL=(e,t)=>{let n=Io(e);return n?$L(n,t)?fr(n.toString())?n.toString():null:zL(n)?n.toString():null:null},Ch=e=>[ua(e==null?void 0:e.redirectOnBooked),ua(e==null?void 0:e.redirectOnNotBooked)];var Ah=(e,t)=>{let n=jL(e,Ch(t));return n?(window.location.href=n,!0):(ve("close_redirect_rejected"),!1)},Lo=(e,t)=>{let n=(t==null?void 0:t.reportReject)!==!1;if(!e)return null;let r=Io(e);return r?WL(r.hostname)&&!GL(r.hostname)?(n&&ve("vercel_host_rejected"),Ir.warn("Rejected scheduler host","vercel_host_rejected"),null):tc()?r:VL().some(i=>vh(r.hostname,i))?HL.includes(r.protocol)?r:(n&&ve("scheduler_host_rejected"),Ir.warn("Rejected scheduler host","scheduler_host_rejected"),null):(n&&ve("scheduler_host_rejected"),Ir.warn("Rejected scheduler host","scheduler_host_rejected"),null):(tc()||(n&&ve("scheduler_host_rejected"),Ir.warn("Failed to parse scheduler URL")),null)},Aa=e=>{let t=Io(e);return t?nc(t)?t:(Ir.warn("Invalid redirect URL protocol",t.protocol),null):null},Mh=e=>{let t=Aa(e);return t?(window.location.href=t.toString(),!0):!1},kh=e=>{let t=e==null?void 0:e.trim();if(!t)return null;let n;try{n=new URL(t,window.location.href)}catch(r){return Ir.warn("Failed to parse thank-you URL",t),null}return UL.includes(n.protocol)?n:(Ir.warn("Invalid thank-you URL protocol",n.protocol),null)},Oh=e=>{window.location.assign(e)};var wo=(e,t)=>Ah(e,t),Ki=(e,t)=>Lo(e,t);var Ro=e=>Mh(e),Ph=e=>kh(e),Dh=e=>Oh(e);var ut=I.module("SDK"),Nh="__default_scheduler_modal__",To=null,Ma=new WeakMap,ka=new WeakMap;function XL(e){try{let t=new URL(e);return t.searchParams.set(J.EMBED_LAYOUT,"inline"),t.toString()}catch(t){return e}}var rc=ao,ct=()=>{};function Hh(e,t,n){let r=document.createElement("div");r.textContent="Loading scheduler...",r.setAttribute("role","status"),r.style.cssText=["position: absolute","inset: 0","display: flex","align-items: center","justify-content: center","background: #fff","color: #111",'font: 14px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',"z-index: 0"].join(";"),e.style.opacity="0",e.style.transition="opacity 120ms ease";let o=!1,i=()=>{o||(o=!0,r.remove(),e.style.opacity="1",n==null||n())};return e.addEventListener("load",i,{once:!0}),t.appendChild(r),{reveal:i,cleanup:()=>{e.removeEventListener("load",i),r.remove()}}}function ic(e){try{return new URL(e).origin}catch(t){return null}}var YL=[0,100,300,500,1e3,1500,2e3],$i=(e,t,n)=>{let r=n?Au(n):null;if(!r)return ct;let o=ic(t);if(!o)return ct;let i=!1,s=ct,a=()=>{var d;if(!i)try{(d=e.contentWindow)==null||d.postMessage(r,o)}catch(m){ut.warn("Failed to post scheduler handoff config to iframe")}},l=()=>{let d=[];for(let m of YL){let f=setTimeout(()=>{i||a()},m);d.push(f)}return()=>{for(let m of d)clearTimeout(m)}},c=()=>{s(),s=l()};return e.addEventListener("load",c),()=>{i=!0,s(),e.removeEventListener("load",c)}};function JL(e,t,n){let r=!!(n!=null&&n.redirectOnBooked),o=!!(n!=null&&n.redirectOnNotBooked),s=["meeting_booked","meeting_cancelled","meeting_timeout","closed"].map(a=>j.subscribe(a,()=>{a==="meeting_booked"&&r||a==="closed"&&o||e()},t));return()=>s.forEach(a=>a())}function oc(e,t,n,r){if(!t)return ut.warn("Skipping scheduler close listener \u2014 invalid Chronos URL"),ct;let o=i=>{if(i.origin!==t||i.source!==e.contentWindow)return;let s=Ti(i.data);if(!s||!co(e,{type:"closed",mountId:s.mountId},r))return;let a=s.redirectUrl;n(a)};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)}function ZL(e,t,n){if(typeof document=="undefined")return n!=null&&n.loadingModalLease&&Er(n.loadingModalLease),ut.warn("displaySchedulerModal called outside the browser"),()=>{};let r=Gi(n!=null?n:{});if(!r)return()=>{};let o=Ki(e);if(!o)return r.reject(),ut.warn("Invalid scheduler URL, dismissing modal"),()=>{};To==null||To();let i=document.getElementById(Nh);i&&i.remove();let s=ic(o.toString());s&&j.addAllowedOrigin(s);let a=Li(mr(o.toString())),l=document.createElement("div");l.id=Nh,l.style.cssText=["position: fixed","inset: 0","z-index: 2147483646","background: transparent"].join(";");let c=r.covering;c&&(l.style.visibility="hidden");let d=!c,m=null,f=()=>{if(!d){if(!r.mayPresent){A();return}d=!0,m&&clearTimeout(m),l.style.visibility="visible",r.release(!0),F()}},p=document.createElement("iframe");p.src=a,p.title="Scheduler",p.style.cssText=["position: absolute","inset: 0","width: 100%","height: 100%","border: none","display: block","background: transparent"].join(";"),uo(p),p.setAttribute("allowtransparency","true");let g=j.pinFrame(p),h=ct,b=!1,T=null,v=!1,F=()=>{b||v||!p.isConnected||l.style.visibility==="hidden"||p.style.opacity==="0"||(v=!0,r.markRevealed(),de(n==null?void 0:n.onFrameRevealed,p))},E=!1,y=!1,C=!1,O=()=>{C||y||(C=!0,lo())},x=c?{reveal:()=>{},cleanup:()=>{}}:Hh(p,l,F),V=()=>{if(!(b||E)){if(!r.mayPresent){A();return}E=!0,x.reveal(),f(),F()}},W=vi(p,V),L=()=>{y=!0,mo(V)};p.addEventListener("load",L,{once:!0});let N=$i(p,a,t),_=ct,A=(U="closed")=>{b||(b=!0,h(),de(n==null?void 0:n.onFrameClosed,p,U),g(),m&&clearTimeout(m),r.release(),W(),_(),x.cleanup(),N(),p.removeEventListener("load",L),p.removeEventListener("error",pe),T==null||T(),l.remove(),To===A&&(To=null))},pe=()=>{O(),A("frame_failed")};p.addEventListener("error",pe,{once:!0});let Q=!1;try{_=oc(p,s,Ee=>{A(),Ee&&wo(Ee,t)}),l.appendChild(p);let U=document.body;return U?(U.appendChild(l),U.contains(p)?(m=setTimeout(()=>{O(),c&&f()},rc),T=JL(A,p,t),To=A,ut.success(`Scheduler modal mounted (${a})`),Q=!0,h=r.watchInvalidation(A),b||de(n==null?void 0:n.onFrameMounted,p),A):()=>{}):()=>{}}catch(U){return ut.warn("Failed to mount scheduler modal",U),()=>{}}finally{Q||A()}}function QL(e,t,n,r,{loader:o=!1}={}){var pe,Q;if(typeof document=="undefined")return ut.warn("displaySchedulerInline called outside the browser"),()=>{};let i=Gi(r!=null?r:{});if(!i)return()=>{};let s=Ki(e);if(!s)return i.reject(),ut.warn("Invalid scheduler URL, dismissing modal"),()=>{};let a=fo(t);if(!a)return i.release(),ut.warn(`Scheduler target not found: ${String(t)}`),()=>{};let l=ic(s.toString());l&&j.addAllowedOrigin(l);let c=Li(XL(mr(s.toString())));if(a instanceof HTMLIFrameElement){let U=!!(a.src&&a.src!=="about:blank");(pe=Ma.get(a))==null||pe(),uo(a),a.src=c;let Ee=ct,ee=!1,xt=j.pinFrame(a,{reused:U}),ln=j.isFrameReused(a),Nn=$i(a,c,n),un=ct,We=!1,je=!1,P=()=>{je||We||(je=!0,lo())},Bt=setTimeout(P,rc),Hn=ct,K=i.covering,Ie=()=>{if(We=!0,!i.mayPresent){Oe();return}i.release(!0),K&&(Hn=i.whenUncovered(()=>{ee||(i.markRevealed(),de(r==null?void 0:r.onFrameRevealed,a))}))},Ge=()=>{P()};a.addEventListener("load",Ie,{once:!0}),a.addEventListener("error",Ge,{once:!0});let Oe=(Hr="closed")=>{ee||(ee=!0,Ee(),Hn(),i.release(),de(r==null?void 0:r.onFrameClosed,a,Hr),Ma.get(a)===Oe&&Ma.delete(a),clearTimeout(Bt),a.removeEventListener("load",Ie),a.removeEventListener("error",Ge),xt(),un(),Nn(),a.removeAttribute("src"))};return Ma.set(a,Oe),un=oc(a,l,Hr=>{Oe(),Hr&&wo(Hr,n)},{reused:ln}),Ee=i.watchInvalidation(Oe),ee||(ut.success(`Scheduler URL set on existing iframe (${c})`),ln?de(r==null?void 0:r.onFrameMounted,a,!0):de(r==null?void 0:r.onFrameMounted,a),K||(i.markRevealed(),de(r==null?void 0:r.onFrameRevealed,a))),Oe}(Q=ka.get(a))==null||Q();let d=o&&!(r!=null&&r.loadingModalLease)?Wi({loadingModal:Hi(void 0,{target:a})}):i,m=ct,f=document.createElement("iframe");f.src=c,f.style.cssText=["width: 100%","height: 100%","border: none","display: block"].join(";"),uo(f);let p=j.pinFrame(f),g=document.createElement("div");g.style.cssText=["position: relative","width: 100%","height: 100%"].join(";");let h=ct,b=!1,T=!1,v=!1,F=!1,E=()=>{F||v||(F=!0,lo())},y=setTimeout(E,rc),C=Hh(f,g,()=>{d.release(!0),m=d.whenUncovered(()=>{b||(d.markRevealed(),de(r==null?void 0:r.onFrameRevealed,f))})});f.addEventListener("load",()=>d.release(!0),{once:!0});let O=()=>{if(!(b||T)){if(!d.mayPresent){_();return}T=!0,C.reveal(),d.release(!0)}},x=vi(f,O),V=()=>{v=!0,mo(O)},W=()=>{E()};f.addEventListener("load",V,{once:!0}),f.addEventListener("error",W,{once:!0});let L=$i(f,c,n),N=ct,_=(U="closed")=>{b||(b=!0,h(),de(r==null?void 0:r.onFrameClosed,f,U),ka.get(a)===_&&ka.delete(a),clearTimeout(y),p(),x(),N(),C.cleanup(),m(),d.release(),L(),f.removeEventListener("load",V),f.removeEventListener("error",W),g.remove())};ka.set(a,_);let A=!1;try{return N=oc(f,l,U=>{_(),U&&wo(U,n)}),g.appendChild(f),a.appendChild(g),a.contains(f)?(ut.success(`Scheduler iframe mounted inline (${c})`),A=!0,h=d.watchInvalidation(_),b||de(r==null?void 0:r.onFrameMounted,f),_):()=>{}}catch(U){return ut.warn("Failed to mount inline scheduler",U),()=>{}}finally{A||_()}}function zi(e,t,n,r){return t===!1?()=>{}:t===!0||t===void 0?ZL(e,n,r):QL(e,t.target,n,r,{loader:Eo(t,!1)})}function Oa(e){let t={};for(let[n,r]of e)Object.defineProperty(t,n,{value:r,enumerable:!0,writable:!0,configurable:!0});return t}function ew(e){let t=[];for(let[n,r]of e)r!=null&&t.push([n,r]);return Oa(t)}function Uh(e){return ew(Object.entries(e))}var Me=e=>Number.isFinite(e)?Math.min(Wn,Math.max(0,Math.round(e))):0;function Fo(e){return u(u(u(u(u(u(u(u(u(u(u(u({},e.submissionAttemptId?{form_submission_attempt_id:e.submissionAttemptId}:{}),e.submissionPollCount!==void 0?{form_submission_poll_count:e.submissionPollCount}:{}),e.submissionRetryCount!==void 0?{form_submission_retry_count:e.submissionRetryCount}:{}),e.pixelFormId?{pixel_form_id:e.pixelFormId}:{}),e.htmlFormId?{html_form_id:e.htmlFormId.slice(0,Wt)}:{}),e.requestId?{request_id:e.requestId}:{}),e.workflowExecutionId?{workflow_execution_id:e.workflowExecutionId}:{}),e.serverTiming?{server_timing:e.serverTiming.slice(0,as)}:{}),e.sessionId?{sessionId:e.sessionId}:{}),e.anonymousId?{anonymousId:e.anonymousId}:{}),e.path?{path:e.path.slice(0,ls)}:{}),e.submissionSource?{submission_source:e.submissionSource}:{})}var nn=()=>performance.now(),tw={html:"html",marketo:"marketo",hubspot:"hubspot",paperform:"paperform",pardot:void 0},Bh=e=>tw[e];function Lr(e,t){var N;let n=(N=t==null?void 0:t.submittedAt)!=null?N:Date.now(),r=nn()-(t?Math.max(0,Date.now()-n):0),o=t?r+t.submitToResponseMs:void 0,i=t!=null?t:{},s=t==null?void 0:t.warmupWaitMs,a=!1,l="loading",c=!1,d=(t==null?void 0:t.hiddenDuringWait)===!0||typeof document!="undefined"&&document.visibilityState==="hidden",m=!1,f=!1,p,g,h,b,T,v,F,E,y=[];if(typeof document!="undefined"){let _=()=>{document.visibilityState==="hidden"&&(d=!0,m&&!f&&!c&&(c=!0,O({outcome:"pending"},!1)))};document.addEventListener("visibilitychange",_),y.push(()=>document.removeEventListener("visibilitychange",_))}let C=()=>{h==null||h();for(let _ of y)_();y=[]},O=(_,A=!0)=>{if(f)return;A&&(f=!0,C());let pe=_.outcome,Q=_.outcome==="clickable"?_.clickableAt:void 0,U=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({outcome:pe,display_mode:t?"landing":"embed",frame_reused:a,availability_state:l},_.outcome==="excluded"?{exclusion_reason:_.reason}:{}),T!==void 0?{submit_to_slots_ready_ms:Me(T-r)}:{}),b!==void 0?{submit_to_host_reveal_ms:Me(b-r)}:{}),T!==void 0&&b!==void 0?{slots_ready_to_reveal_ms:Me(b-T)}:{}),s!==void 0?{warmup_wait_ms:s}:{}),p?{message_rejections:Fu(p)}:{}),_.outcome==="clickable"?{signal:_.signal}:{}),_.outcome==="not_clickable"?{not_clickable_reason:_.reason}:{}),e.listener?{listener:e.listener}:{}),o!==void 0?{submit_to_response_ms:Me(o-r)}:{}),Q!==void 0&&o!==void 0?{response_to_clickable_ms:Me(Q-o)}:{}),Q!==void 0?{submit_to_clickable_ms:Me(Q-r)}:{}),_.outcome!=="clickable"?{waited_ms:Me(nn()-r)}:{}),v!==void 0?{submit_to_load_ms:Me(v-r),load_before_ready:Q===void 0||v<=Q}:{}),d?{hidden_during_wait:!0}:{}),Fo(u(u({},e),i)));tm(U)},x=()=>!!(p!=null&&p.isConnected&&p.src===g),V=()=>{!p||!x()||(h==null||h(),h=Ri(p,()=>{f||(b=nn(),W())}))},W=()=>{if(!(T===void 0||b===void 0||!x())){if(!wi(p)){V();return}O({outcome:"clickable",signal:"slots_ready",clickableAt:Math.max(T,b)})}},L=_=>{if(x()&&wi(p)&&b!==void 0&&F!==void 0&&E!==!1){O({outcome:"clickable",signal:"displayed",clickableAt:Math.max(F,b)});return}O({outcome:"not_clickable",reason:_==="timeout"&&E===!1?l==="error"?"frame_failed":l==="empty"?"no_slots":_:_})};return{markWarmupWait(_){s=Me(_)},redirectTiming(){return S(u(u(S(u(u({},e),i),{submittedAt:n}),d?{hiddenDuringWait:!0}:{}),s!==void 0?{warmupWaitMs:s}:{}),{submitToResponseMs:Me((o!=null?o:nn())-r)})},markResponse(_){f||o!==void 0||(o=nn(),i=_)},watch(_,A=!1){if(m||f)return;m=!0,p=_,g=_.src,Bg(_,i.workflowExecutionId,A),a=A,y.push(j.subscribe("slots_ready",()=>{l="ready",T!=null||(T=nn()),W()},_,{rawReadiness:!0}),j.subscribe("displayed",ee=>{var xt;l=(xt=ee==null?void 0:ee.availabilityState)!=null?xt:l,F!=null||(F=nn()),E=typeof(ee==null?void 0:ee.slotsReady)=="boolean"?ee.slotsReady:void 0,b!==void 0&&!wi(_)&&V()},_),j.subscribe("availability_changed",ee=>{l=ee.availabilityState},_),j.subscribe("closed",()=>{L("closed")},_));let pe=()=>{v!=null||(v=nn())};_.addEventListener("load",pe),y.push(()=>_.removeEventListener("load",pe));let Q=()=>O({outcome:"not_clickable",reason:"frame_failed"});_.addEventListener("error",Q),y.push(()=>{_.removeEventListener("error",Q)});let U=ee=>{ee.persisted||L("unloaded")};window.addEventListener("pagehide",U),y.push(()=>window.removeEventListener("pagehide",U));let Ee=setTimeout(()=>L(x()?"timeout":"closed"),15e3);y.push(()=>clearTimeout(Ee)),d&&!c&&(c=!0,O({outcome:"pending"},!1))},reveal(){!m||f||!p||y.push(Ri(p,()=>{f||(b!=null||(b=nn()),W())}))},close(_="closed"){m&&L(_)},dispose(_){if(!(m||f)){if(_||i.handoffType==="display_scheduler"){O({outcome:"excluded",reason:_!=null?_:"mount_failed"});return}f=!0,C()}}}}function wr(e){return e?{onFrameSkipped:t=>e.dispose(t),onFrameMounted:(t,n)=>e.watch(t,n),onFrameRevealed:()=>e.reveal(),onFrameClosed:(t,n)=>e.close(n)}:{}}function Lt(e){return u(u(u(u(u(u(u(u(u(u(u(u(u(u({elapsedMs:e.elapsedMs},e.submissionAttemptId?{submissionAttemptId:e.submissionAttemptId}:{}),e.submissionPollCount!==void 0?{submissionPollCount:e.submissionPollCount}:{}),e.submissionRetryCount!==void 0?{submissionRetryCount:e.submissionRetryCount}:{}),e.path?{path:e.path}:{}),e.submissionSource?{submissionSource:e.submissionSource}:{}),e.pixelFormId?{pixelFormId:e.pixelFormId}:{}),e.htmlFormId?{htmlFormId:e.htmlFormId}:{}),e.sessionId?{sessionId:e.sessionId}:{}),e.anonymousId?{anonymousId:e.anonymousId}:{}),e.requestId?{requestId:e.requestId}:{}),e.serverTiming?{serverTiming:e.serverTiming}:{}),e.handoffType?{handoffType:e.handoffType}:{}),$o(e.workflowError)?{workflowErrorCode:e.workflowError}:{}),e.workflowExecutionId?{workflowExecutionId:e.workflowExecutionId}:{})}function Rr(e,t,n,r={}){Pa(u(u({outcome:e,reason:t},Lt(n)),r))}var Vh=new WeakMap;function Pa(e){let t=e.modal,n=Date.now();if(!(t!=null&&t.isConnected)||!De(t)||e.outcome==="dismissed"){sc(e);return}let r=!1,o=!1,i=()=>{o||(o=!0,window.removeEventListener("pagehide",l),sc(e,n))},s=()=>{},a=xa(t,()=>l()),l=()=>{i(),r=!0,s(),a()},c=()=>{var d;r||((d=Vh.get(t))==null||d(),Vh.set(t,l),i(),s=Sh(t,()=>{sc(S(u({},e),{outcome:"presentation_updated",reason:"layout_changed",elapsedMs:e.elapsedMs+Math.max(0,Date.now()-n)}))}))};window.addEventListener("pagehide",l,{once:!0}),document.visibilityState!=="hidden"&&typeof requestAnimationFrame=="function"?requestAnimationFrame(c):c()}function sc(e,t=Date.now()){var l,c,d;let n=(l=e.workflowErrorCode)==null?void 0:l.slice(0,sl),r=e.requestId,o=(c=e.mountedLoaderCount)!=null?c:yh(),i=Th(e.modal),s=(d=e.displayMode)!=null?d:i.displayMode,a=i.errorShownAt!==void 0?e.elapsedMs-Math.max(0,t-i.errorShownAt):void 0;em(u(u(u(u(u(u(u(u(u(u(u(u(S(u(u(u({outcome:e.outcome},e.submissionReceiptOutcome?{submission_receipt_outcome:e.submissionReceiptOutcome}:{}),e.submissionSkipReason?{submission_skip_reason:e.submissionSkipReason}:{}),e.receiptFieldPresent!==void 0?{receipt_field_present:e.receiptFieldPresent}:{}),{reason:e.reason,elapsed_ms:Me(e.elapsedMs)}),typeof o=="number"?{mounted_loader_count:o}:{}),n?{workflow_error_code:n}:{}),i.errorVariant?{error_variant:i.errorVariant}:{}),i.errorUpgraded!==void 0?{error_upgraded:i.errorUpgraded}:{}),s?{display_mode:s}:{}),i.containerHeightPx!==void 0?{container_height_px:Math.min(xd,Math.max(0,Math.round(i.containerHeightPx)))}:{}),a!==void 0?{submit_to_error_ms:Me(a)}:{}),i.fontLoad?{font_load:i.fontLoad}:{}),e.schedulerArrivedLate!==void 0?{scheduler_arrived_late:e.schedulerArrivedLate}:{}),Fo(e)),r?{form_submission_request_id:r}:{}),e.handoffType?{handoff_type:e.handoffType.slice(0,sl)}:{}))}function ji(e){return e==null?"null_response":e.outcome==="pending"?"pending_exhausted":e.failure==="http_failure"||!e.success?"http_failure":void 0}var Wh=e=>e&&e.failure!=="http_failure"?{receiptFieldPresent:e.submission!==void 0}:{};function vn(e){var f;let{failed:t,errorVariant:n,outcome:r,reason:o,workflowErrorCode:i,submissionReceiptOutcome:s,submissionSkipReason:a}=oa(e),l=e.loadingModalLease?Ze(e.loadingModalLease):e.modal,c=(p={})=>{e.report&&Pa(u(S(u(S(u({},e.report),{outcome:r,reason:o,workflowErrorCode:i,submissionReceiptOutcome:s,submissionSkipReason:a}),Wh(e.response)),{modal:l}),p))};if(e.releaseSilently)return e.loadingModalLease&&Er(e.loadingModalLease),c({displayMode:"hidden_loader"}),!1;let d=p=>{let g=t&&De(l);return(p||g)&&(t||e.loaderEnabled!==!1)&&c(),p},m=n!=null?n:"timeout";return e.loadingModalLease?d(t?Fh(e.loadingModalLease,m):Er(e.loadingModalLease)):e.loaderEnabled?t?d(Yu(e.modal,m)):(f=e.modal)!=null&&f.isConnected?(Zu(e.modal),d(!0)):!1:!1}function Da(e){let{transport:t}=e.response;return vn(S(u({loaderEnabled:e.loaderEnabled},e.loadingModalLease?{loadingModalLease:e.loadingModalLease}:{}),{failure:"pending_exhausted",response:e.response,report:e.timeoutReported?void 0:Lt(S(u({},e.beacon),{requestId:t==null?void 0:t.requestId,serverTiming:t==null?void 0:t.serverTiming,submissionPollCount:t==null?void 0:t.pollCount,submissionRetryCount:t==null?void 0:t.retryCount}))}))}function Tr(e,t){let{confirmed:n,workflowErrorCode:r}=oa(t);e.sent("form submission",u(S(u(S(u({},t.fields),{confirmed:n}),t.failure?{failure:t.failure}:{}),{applied:t.applied}),r?{workflowError:r}:{}))}function Na(e,t,n){return{onUnconfirmedTimeout:(r,o)=>{n.pending||(Rr("pixel_safety_timeout","safety_timeout",u({elapsedMs:r},e),{submissionReceiptOutcome:"no_response",modal:o}),n.timeoutReported=!0)},onDismissed:(r,o)=>{Rr("dismissed",r,u({elapsedMs:Date.now()-t},e),{modal:o})}}}function vo(e){var d,m,f;let t=e.loadingModalLease;if(!t)return!1;let n=Ni(t);if(n==="owned")return!1;Fn(t);let{response:r}=e,o=dr(r),{reason:i,workflowErrorCode:s,submissionReceiptOutcome:a,submissionSkipReason:l}=oa({failure:(d=e.failure)!=null?d:ji(r),submission:o,workflowError:En(r)}),c=((f=(m=r==null?void 0:r.workflow)==null?void 0:m.handoff)==null?void 0:f.type)===te.DisplayScheduler;return Pa(S(u(u(S(u({},Lt(S(u({},e.beacon),{workflowError:s}))),{outcome:n==="dismissed"?"late_response_after_dismiss":"superseded_response",reason:n==="dismissed"?c?"handoff_after_timeout":i:"superseded_response",submissionReceiptOutcome:a}),l?{submissionSkipReason:l}:{}),Wh(r)),{schedulerArrivedLate:c})),!0}var Gh=null,Kh=e=>{Gh=e},Fr=()=>Gh;var zh=I.module("Scheduler");function Ua(e){let t=se(e)&&se(e.workflow)?e.workflow.handoff:void 0;if(!se(t))return;let n=t;if(n.type===te.DisplayScheduler&&typeof n.schedulerUrl=="string"&&n.schedulerUrl.length>0||n.type===te.Redirect&&typeof n.url=="string"&&n.url.length>0)return t}var Co="__default_pending_scheduler_handoff__",jh="__default_configured_scheduler_link__",xo="__dflt_scheduler_handoff",nw=30*6e4,rw=2*6e4,vr=null,ow=Promise.resolve(),Ao=()=>{if(typeof window=="undefined")return!1;try{return typeof window.sessionStorage!="undefined"}catch(e){return!1}},iw=e=>e.type===te.DisplayScheduler&&typeof e.timeout=="number"&&Number.isFinite(e.timeout)&&e.timeout>0?e.timeout*6e4+rw:nw,qh=e=>{var n;if((e==null?void 0:e.type)!==te.DisplayScheduler)return;let t={};return e.redirectOnBooked&&(t.redirectOnBooked=e.redirectOnBooked,t.redirectOnBookedDelaySeconds=(n=e.redirectOnBookedDelaySeconds)!=null?n:10),e.redirectOnNotBooked&&(t.redirectOnNotBooked=e.redirectOnNotBooked),e.hideClose&&(t.hideClose=!0),Object.keys(t).length>0?t:void 0},sw=e=>{if((e==null?void 0:e.type)!==te.DisplayScheduler||typeof e.redirectToSchedulerUrl!="string")return;let t=e.redirectToSchedulerUrl.trim();return t.length>0?t:void 0},aw=(e,t)=>{if(e.type!==te.DisplayScheduler)throw new Error("Expected display scheduler handoff");let n=qh(e),r=e.signature;return u(u(S(u({version:1},t?{timing:t}:{}),{expiresAt:Date.now()+iw(e),schedulerUrl:e.schedulerUrl}),n&&{handoffConfig:n}),r&&{signature:r})},Xh=e=>{var s;if(!se(e)||e.version!==1||typeof e.expiresAt!="number"||e.expiresAt<=Date.now()||typeof e.schedulerUrl!="string"||e.schedulerUrl.length===0)return null;let t=Lo(e.schedulerUrl);if(!t)return null;let n=ku(e.timing),r=n&&n.submittedAt<=Date.now()?n:void 0,o=(s=da(e.handoffConfig))!=null?s:void 0,i=typeof e.signature=="string"&&e.signature.length>0?e.signature:void 0;return u(u(u({schedulerUrl:t.toString()},r?{timing:r}:{}),o&&{handoffConfig:o}),i&&{signature:i})},lw=e=>{let t=encodeURIComponent(JSON.stringify(e));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},uw=e=>{try{let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"=");return JSON.parse(decodeURIComponent(atob(n)))}catch(t){return null}},$h=e=>{if(!Ao())return!1;try{return window.sessionStorage.setItem(Co,JSON.stringify(e)),!0}catch(t){return!1}},cw=()=>{if(!Ao())return!1;try{return window.sessionStorage.setItem(Co,JSON.stringify({version:1,expiresAt:0,schedulerUrl:"expired"})),!0}catch(e){return!1}},dw=()=>(Yh(),ac()?cw()?ac()==null:!1:!0),ac=()=>{if(!Ao())return null;try{let e=window.sessionStorage.getItem(Co);if(!e)return null;let t=Xh(JSON.parse(e));return t||window.sessionStorage.removeItem(Co),t}catch(e){try{window.sessionStorage.removeItem(Co)}catch(t){}return null}},Yh=()=>{if(Ao())try{window.sessionStorage.removeItem(Co)}catch(e){}},Jh=e=>{let t=e.startsWith("#")?e.slice(1):e;if(!t)return{payload:null,nextHash:null};let n=t.indexOf("?"),r=n>=0?t.slice(0,n):"",o=n>=0?t.slice(n+1):t,i=new URLSearchParams(o),s=i.get(xo);if(!s)return{payload:null,nextHash:null};i.delete(xo);let a=i.toString(),l=n>=0?a?`${r}?${a}`:r:a;return{payload:s,nextHash:l}},Zh=e=>{if(!e)return;let t=e.redirectOnBooked&&Ca(e.redirectOnBooked)?e.redirectOnBooked:void 0,n=e.redirectOnNotBooked&&Ca(e.redirectOnNotBooked)?e.redirectOnNotBooked:void 0;(e.redirectOnBooked&&!t||e.redirectOnNotBooked&&!n)&&ve("hash_redirect_dropped");let r=u(u(u({},t&&u({redirectOnBooked:t},e.redirectOnBookedDelaySeconds!==void 0&&{redirectOnBookedDelaySeconds:e.redirectOnBookedDelaySeconds})),n&&{redirectOnNotBooked:n}),e.hideClose&&{hideClose:!0});return Object.keys(r).length>0?r:void 0},mw=()=>{if(!Ao())return null;try{let e=window.sessionStorage.getItem(jh);if(!e)return null;let t=JSON.parse(e);return typeof t.origin!="string"||typeof t.pathname!="string"?null:{origin:t.origin,pathname:t.pathname}}catch(e){return null}},Qh=e=>{if(Ao())try{let t=cs(new URL(e));window.sessionStorage.setItem(jh,JSON.stringify(t))}catch(t){}};var eS=e=>{let t=mw();if(!t)return!1;try{let n=cs(new URL(e));return n.origin===t.origin&&n.pathname===t.pathname}catch(n){return!1}},fw=()=>{ve("unsigned_scheduler_rejected"),zh.warn("Rejected unsigned scheduler handoff","unsigned_scheduler_rejected")},pw=()=>{if(typeof window=="undefined")return null;let{payload:e}=Jh(window.location.hash);if(!e)return null;lc();let t=Xh(uw(e));if(!t)return null;if(eS(t.schedulerUrl)){vr=null;let n=Zh(t.handoffConfig);return u(u({schedulerUrl:t.schedulerUrl},t.timing?{timing:t.timing}:{}),n&&{handoffConfig:n})}return t.signature?(vr={pending:u(u({schedulerUrl:t.schedulerUrl},t.timing?{timing:t.timing}:{}),t.handoffConfig&&{handoffConfig:t.handoffConfig}),signature:t.signature},null):(vr=null,fw(),null)},lc=()=>{if(typeof window=="undefined")return;let{payload:e,nextHash:t}=Jh(window.location.hash);if(e)try{let n=new URL(window.location.href);n.hash=t!=null?t:"",window.history.replaceState(window.history.state,document.title,n.toString())}catch(n){}},gw=(e,t)=>{if(typeof window!="undefined")try{let n=new URL(e,window.location.href),r=lw(t),o=n.hash.startsWith("#")?n.hash.slice(1):n.hash;if(!o)return n.hash=`${xo}=${r}`,n.toString();let i=o.indexOf("?");if(i>=0){let s=o.slice(0,i),a=new URLSearchParams(o.slice(i+1));return a.set(xo,r),n.hash=`${s}?${a.toString()}`,n.toString()}if(o.includes("=")||o.includes("&")){let s=new URLSearchParams(o);return s.set(xo,r),n.hash=s.toString(),n.toString()}return n.hash=`${o}?${xo}=${r}`,n.toString()}catch(n){return}},Ha=e=>{if(typeof window=="undefined")return!1;try{return new URL(e,window.location.href).origin===window.location.origin}catch(t){return!1}},hw=(e,t,n)=>{let r=sw(e);if(!r||(e==null?void 0:e.type)!==te.DisplayScheduler)return;let o=t!=null?t:Lo(e.schedulerUrl,{reportReject:!1});if(!o)return;Qh(o.toString());let i=Aa(r);if(!i)return;let s=Ru(i.toString()).pathKind;(s==="book"||s==="embed")&&zs(i);let a=i.toString(),l=aw(e,n);if(Ha(a)&&$h(l))return a;let c=Ha(a)&&eS(l.schedulerUrl);if(!l.signature&&!c){Ha(a)&&ve("handoff_storage_unavailable");return}if(Ha(a)){if(!dw()){ve("handoff_storage_unavailable");return}if($h(l))return a}return gw(a,l)},Ba=(e,t)=>{if((e==null?void 0:e.type)!==te.DisplayScheduler)return null;let n=Lo(e.schedulerUrl);if(!n)return null;Qh(n.toString());let r=hw(e,n,t),o=qh(e);return u(u({schedulerUrl:n.toString()},r&&{redirectUrl:r}),o&&{handoffConfig:o})},Va=e=>{e&&Wi({loadingModalLease:e}).reject()},Sw=()=>{let e=ac();return e?(lc(),vr=null,e):pw()},yw=()=>{let e=vr;return vr=null,e};var uc=e=>{let t=Sw();if(t){try{e(t)}finally{xr()}return}let n=yw();n&&(ow=Cd(n.pending.schedulerUrl,n.signature).then(r=>{if(r!=="valid"){ve(r),zh.warn("Rejected signed scheduler handoff",r),xr();return}let o=Zh(n.pending.handoffConfig),i=u(u({schedulerUrl:n.pending.schedulerUrl},n.pending.timing?{timing:n.pending.timing}:{}),o&&{handoffConfig:o});try{e(i)}finally{xr()}}))},xr=()=>{vr=null,Yh(),lc()};var Wa=I.module("SDK"),bw=800;function _w(){var t;let e=document.activeElement;for(;(t=e==null?void 0:e.shadowRoot)!=null&&t.activeElement;)e=e.shadowRoot.activeElement;return er(e)}function Ew(e){var n;let t=document.getElementById(e);return ce(t)?t:(n=Xr(document).find(r=>M(r,"id")===e))!=null?n:null}function Iw(e){if(!e)return{};let t=Fd;return Oa(Object.entries(e).filter(([n])=>!t.includes(n)))}function Lw(e,t){var l;let n="none",r=e?Ew(e):null;if(r?n="html_id":(r=_w(),r&&(n="active_field")),!r&&t){let c=Xr(document),d=c.filter(m=>m.getAttribute("data-pixel-form-id")===t||m.getAttribute("data-form-id")===t);r=d.length===1&&(l=d[0])!=null?l:null,r&&(n="pixel_id"),r||(r=Cs(document,c),r&&(n="lone_form"))}if(!r)return{context:{},stamps:{form_lookup:n}};let o=Jr(r),i=M(r,"action"),s=M(r,"method"),a=M(r,"class");return{context:S(u(u(u(u({},o?{form_name:o}:{}),i?{form_action:i}:{}),a?{form_class:a}:{}),s?{form_method:s}:{}),{form_instance_key:_i(r)}),stamps:{form_lookup:n,form_root:qt(r)?"shadow":"document"}}}function tS(e,t=!0){return R(this,null,function*(){var p,g,h,b;let{pixelFormId:n,formId:r}=e;if(!n&&!r)return{success:!1,status:0,error:"pixelFormId or formId is required"};let o=e.responses?Uh(e.responses):{};if(Object.keys(o).length===0)return{success:!1,status:0,error:"responses must include at least one field"};let i=ar();if(!i)return{success:!1,status:0,error:"SDK not initialized \u2014 call DefaultPixelSDK.init() first"};let s=(g=(p=e.autoDisplayScheduler)!=null?p:t)!=null?g:!0,a=Eo(s,!1),l=Date.now(),c={pending:!1,timeoutReported:!1,showProgress:a},d=u(u(u(u({submissionAttemptId:Nt(),submissionPollCount:0,submissionRetryCount:0,path:it().pathname,submissionSource:"sdk"},n?{pixelFormId:n}:{}),r?{htmlFormId:r}:{}),i.sessionId?{sessionId:i.sessionId}:{}),i.anonymousId?{anonymousId:i.anonymousId}:{}),m=s!==!1?Ui((h=Fr())!=null?h:void 0,u(u({showProgress:a},typeof s=="object"?{target:s.target}:{}),Na(d,l,c))):void 0,f=Lr(S(u({},d),{listener:"sdk"}));try{return yield ww(S(u({},e),{responses:o}),i,s,l,d,m,f,c)}catch(T){if(m){let v=u({elapsedMs:Date.now()-l},d);vo({loadingModalLease:m,failure:"request_threw",beacon:v});let F=vn({loaderEnabled:c.showProgress,loadingModalLease:m,failure:"request_threw",report:Lt(v)});Tr(Wa,{failure:"request_threw",applied:F,fields:{formId:(b=e.pixelFormId)!=null?b:e.formId}})}throw T}finally{f.dispose()}})}function ww(e,t,n,r,o,i,s,a){return R(this,null,function*(){var xt,ln,Nn,un,We,je,P,Bt,Hn;let{pixelFormId:l,formId:c,responses:d,metadata:m}=e,f=S(u({},it()),{referrer:t.referrer}),{context:p,stamps:g}=Lw(c,l),h=S(u(u({responses:d,form_type:"html"},c?{form_id:c}:{}),p),{location:f,pixel_form_id:l}),b=performance.now(),{preEnrichment:T,crmPrematch:v}=yield nS(h,{maxWaitMs:bw});s.markWarmupWait(performance.now()-b);let F=o.submissionAttemptId,E=S(u(u(S(u({},t),{responses:d,submission_id:F}),l?{pixel_form_id:l}:{}),c?{form_id:c}:{}),{submission_source:"sdk",form_type:"html",location:f,metadata:u(u(u(u({},Iw(m)),g),T?{preEnrichment:T}:{}),v?{crmPrematch:v}:{})}),y=yield ia(E,{explicit:!0,onProgress:K=>{a.pending=K.pending,o.submissionPollCount=K.pollCount,o.submissionRetryCount=K.retryCount}}),C=Vr(y==null?void 0:y.workflow),O={requestId:(xt=y==null?void 0:y.transport)==null?void 0:xt.requestId,serverTiming:(ln=y==null?void 0:y.transport)==null?void 0:ln.serverTiming,workflowExecutionId:C,handoffType:(un=(Nn=y==null?void 0:y.workflow)==null?void 0:Nn.handoff)==null?void 0:un.type},x=(K={})=>u(u(u({elapsedMs:Date.now()-r},o),O),K),V=vo({loadingModalLease:i,response:y,beacon:x()});if(V&&s.dispose(),(y==null?void 0:y.outcome)==="pending")return i&&Da({response:y,loaderEnabled:a.showProgress,loadingModalLease:i,beacon:S(u({},o),{elapsedMs:Date.now()-r}),timeoutReported:a.timeoutReported}),{success:!1,status:(We=y.status)!=null?We:200,outcome:"pending",submissionId:(je=y.submission_id)!=null?je:F,error:"Form submission is still processing"};s.markResponse(O);let W=ji(y);if(y==null||W){let K=l!=null?l:c,Ie=(P=y==null?void 0:y.error)!=null?P:y==null||y.failure==="http_failure"?"Form submission request failed":"Form submission was not successful";if(Wa.warn(`submitForm failed for ${K}: ${Ie}`),i){let Ge=W!=null?W:"null_response",Oe=vn({loaderEnabled:a.showProgress,loadingModalLease:i,failure:Ge,workflowError:En(y),submission:dr(y),response:y,report:Lt(x())});Tr(Wa,{failure:Ge,applied:Oe,fields:{formId:l!=null?l:c}})}return{success:!1,status:(Bt=y==null?void 0:y.status)!=null?Bt:0,error:Ie}}let L=y,N=dr(L),_=En(L),A=V?null:Ua(L),pe=()=>{let K=O.workflowExecutionId;Rr("late_handoff","handoff_after_timeout",x(u(S(u({},A!=null&&A.type?{handoffType:A.type}:{}),{workflowError:_}),K?{workflowExecutionId:K}:{})),{schedulerArrivedLate:(A==null?void 0:A.type)===te.DisplayScheduler})},Q=K=>{K.wasShowingError&&K.removed&&pe()},U,Ee;if((A==null?void 0:A.type)===te.DisplayScheduler){let K=u(u({},i?{loadingModalLease:i,onLoadingModalReleased:Q}:{}),wr(s)),Ie=Ba(A,s.redirectTiming());if(!Ie)s.dispose("rejected_handoff"),Va(i);else{let Ge=mr(Ie.schedulerUrl);U={url:Ge},Ie.redirectUrl&&(Ro(Ie.redirectUrl)?Ee={url:Ie.redirectUrl}:xr());let Oe=!Ee&&n!==!1;Oe||s.dispose(Ee?"redirected":"disabled_display"),Oe?zi(Ge,n,Ie.handoffConfig,K):i&&Q(Vi(i))}}else if((A==null?void 0:A.type)===te.Redirect&&Ro(A.url))Ee={url:A.url},i&&Q(Vi(i));else if(i&&(A==null?void 0:A.type)===te.Redirect&&De(Ze(i)))Fn(i);else if(i){let K=O.workflowExecutionId,Ie=vn({loaderEnabled:a.showProgress,workflowError:_,submission:N,loadingModalLease:i,response:L,report:Lt(x(K?{workflowExecutionId:K}:{}))});Tr(Wa,{workflowError:_,submission:N,applied:Ie,fields:{formId:l!=null?l:c}})}let ee=Og(L);return u(u(u(u(S(u(u({success:!0,status:(Hn=L.status)!=null?Hn:200},L.outcome?{outcome:L.outcome}:{}),L.submission_id?{submissionId:L.submission_id}:{}),{workflow:L==null?void 0:L.workflow}),N?{submission:N}:{}),ee?{workflowOutcome:ee}:{}),U?{scheduler:U}:{}),Ee?{redirect:Ee}:{})})}var cc=!0;function rS(e){cc=e}function oS(){return cc}function dc(e){try{let t=new URL(e),n=new Set([t.origin]),r=t.hostname.toLowerCase();return r.startsWith("api.")&&n.add(`${t.protocol}//book.${r.slice(4)}`),[...n]}catch(t){return[]}}function xn(e,t){return j.subscribe(e,t)}function iS(e){return tS(e,cc)}var sS={onDisplayed:e=>xn("displayed",e),onSlotsReady:e=>xn("slots_ready",e),onClosed:e=>xn("closed",e),onMeetingBooked:e=>xn("meeting_booked",e),onMeetingCancelled:e=>xn("meeting_cancelled",e),onMeetingTimeout:e=>xn("meeting_timeout",e),display:zi};var mc=I.module("Scheduler"),aS="__DEFAULT_IFRAME__",Rw="999998",fc=(e,t,n={})=>{if(typeof document=="undefined")return!1;let r=Gi(n);if(!r)return!1;let o=r;if(document.getElementById(aS))return mc.debug("Scheduler iframe already present, skipping"),de(n.onFrameSkipped,"already_open"),o.release(),!0;let i=Ki(e);if(!i)return mc.warn("Invalid scheduler URL, dismissing modal"),o.reject(),!1;let s=fo(n.target),a=document.createElement("iframe"),l=new URL(mr(i.toString()));s&&l.searchParams.set(J.EMBED_LAYOUT,"inline"),a.src=Li(l.toString()),a.id=aS,a.height="100%",a.width="100%",a.style.border="none",a.style.top="0px",a.style.left="0px";let c=()=>{};s?(c=fa(s),a.style.position="absolute"):(a.style.position="fixed",a.style.zIndex=Rw),a.style.background="transparent",a.style.visibility="hidden",uo(a),j.addAllowedOrigin(i.origin);let d=j.pinFrame(a),m=!1,f=!1,p=()=>{},g=()=>{},h=!1,b=!1,T=null,v=null,F=()=>{b||h||(b=!0,lo())},E=setTimeout(F,ao),y=()=>{if(!(m||f)){if(!o.mayPresent){x();return}f=!0,clearTimeout(E),o.release(!0),p=o.whenUncovered(()=>{m||(a.style.visibility="visible",o.markRevealed(),de(n.onFrameRevealed,a))})}},C=$i(a,i.toString(),t),O=()=>{h=!0,mo(y)};function x(_="closed"){m||(m=!0,p(),g(),de(n.onFrameClosed,a,_),clearTimeout(E),d(),C(),a.removeEventListener("load",O),a.removeEventListener("error",V),T==null||T(),v==null||v(),window.removeEventListener("message",W),document.removeEventListener("keydown",L),a.remove(),c(),o.release())}function V(){F(),x("frame_failed")}let W=_=>{if(_.origin!==i.origin||_.source!==a.contentWindow)return;let A=Ti(_.data);if(!A||!co(a,{type:"closed",mountId:A.mountId}))return;let pe=A.redirectUrl;x(),pe&&wo(pe,t)},L=_=>{_.key==="Escape"&&x()};a.addEventListener("load",O),a.addEventListener("error",V),v=vi(a,y),T=j.subscribe("closed",()=>{t!=null&&t.redirectOnNotBooked||x()},a),window.addEventListener("message",W),document.addEventListener("keydown",L);let N=!1;try{let _=s!=null?s:document.body;return _?(_.appendChild(a),N=_.contains(a),N&&(g=o.watchInvalidation(x),m||de(n.onFrameMounted,a)),N&&!m):!1}catch(_){return!1}finally{N||x()}};function lS(){uc(e=>{var r;let t=e.timing?Lr(e.timing,e.timing):void 0,n=null;try{n=Hi((r=Fr())!=null?r:void 0),fc(e.schedulerUrl,e.handoffConfig,u(u({},n?{loadingModal:n}:{}),wr(t)))}catch(o){Bi({modal:n}),mc.warn("Failed to display pending scheduler handoff",o)}finally{t==null||t.dispose("mount_failed")}})}function Tw(e){if(e===void 0||!Number.isFinite(e))return;let t=Math.round(e);return{elapsed_ms:Me(t),elapsed_ms_clamped:t>Wn}}function pc(e){let t=Tw(e.elapsedMs);im(u(u(u(u(u(u(u(u({reason:e.reason,outcome:e.outcome},e.notResumedReason?{not_resumed_reason:e.notResumedReason}:{}),e.resumeMechanism?{resume_mechanism:e.resumeMechanism}:{}),e.listener?{listener:e.listener}:{}),e.captureTrigger?{capture_trigger:e.captureTrigger}:{}),e.marketoSuccessCallbackCount!==void 0?{marketo_success_callback_count:e.marketoSuccessCallbackCount}:{}),e.marketoVetoTrackingFailed?{marketo_veto_tracking_failed:!0}:{}),t!=null?t:{}),Fo(e)))}var wt=I.module("Form"),pS=!0,gS=new Map,hS=new Map,Ga=new Map;function gc(e){var o,i,s,a,l,c,d;let t=new Set,n=(o=e.form_id)==null?void 0:o.trim(),r=n||e.form_name||null;return r&&t.add(`form:${r}`),n&&$r(n)&&t.add(`pixel:${n.toLowerCase()}`),e.pixel_form_id&&t.add(`pixel:${e.pixel_form_id.toLowerCase()}`),t.size>0?[...t]:[["path",(i=e.location.pathname)!=null?i:"",(s=e.form_type)!=null?s:"",(a=e.form_action)!=null?a:"",(l=e.form_class)!=null?l:"",(c=e.form_method)!=null?c:"",(d=e.form_instance_key)!=null?d:""].join("|")]}function uS(e,t,n){let r=new Set;for(let i of t){let s=e.get(i);s&&r.add(s)}let o=null;for(let i of r){let s=vw(i,n);s&&(!o||!o.triggered&&s.triggered)&&(o=s),SS(e,i)}return o}function SS(e,t){for(let n of t.keys)e.get(n)===t&&e.delete(n)}function cS(e,t,n,r){let o=u({warmup:n,keys:[]},r.fieldName?{emailField:{name:r.fieldName,type:ai({type:r.fieldType})}}:{});for(let i of t){let s=e.get(i);s!=null&&s.warmup.triggered&&!n.triggered||(s&&SS(e,s),e.set(i,o),o.keys.push(i))}}var Fw=(e,t)=>R(null,null,function*(){let n=new Set;for(let s of e){let a=Ga.get(s);a&&n.add(a)}if(n.size===0)return;let r=Promise.all(n),o,i=new Promise(s=>{o=setTimeout(()=>s("capped"),t)});try{(yield Promise.race([r,i]))==="capped"&&wt.debug(`Warmup still in flight after ${t}ms; submitting without it`)}catch(s){}finally{clearTimeout(o)}});function vw(e,t){if(!e)return null;let n=e.warmup;if(!n.email)return n;let r=yg(t.responses,{fields:e.emailField?[e.emailField]:void 0,discovery:"named"});return!r||Qn(n.email)!==r?null:n}function yS(e){let t=gc(e);return{preEnrichment:uS(gS,t,e),crmPrematch:uS(hS,t,e)}}function nS(n,r){return R(this,arguments,function*(e,{maxWaitMs:t}){return yield Fw(gc(e),t),yS(e)})}function bS(){return pS}function be(){return $n()}function dS(e,t){return e!=null&&e.success?En(e)?{reason:"workflow_error",release:!1}:{reason:t?"handoff_rejected":"success_no_handoff",release:!0}:{reason:"request_failed",release:!1}}function mS(e){let t=e.loadingModalLease?Ze(e.loadingModalLease):null;return!e.loaderEnabled&&!!t&&!De(t)&&e.failure!==void 0&&e.failure!=="pending_exhausted"&&e.workflowError===void 0}function fS(e,t,n){if(!t.release){pc(S(u({},n),{reason:t.reason,outcome:"not_attempted"}));return}let r;try{r=e()}catch(o){wt.warn("Resuming the held form submit threw",o),r={resumed:!1,notResumedReason:"release_threw"}}pc(u(S(u({},n),{reason:t.reason}),r.resumed?{outcome:"resumed",resumeMechanism:r.mechanism}:{outcome:"not_resumed",notResumedReason:r.notResumedReason}))}function rn(i){return R(this,arguments,function*(e,{schedulerEnabled:t=!0,releaseNativeSubmit:n,releaseSource:r,warmupFormId:o}={}){var A,Q,U,Ee,ee,xt,ln,Nn,un;if(!be()){wt.debug("Capture disabled, skipping form submission");return}let s=e.form_id||e.form_name||"unknown",a=t?n:void 0,l=u(u({},r!=null?r:{}),e.form_id?{htmlFormId:e.form_id}:{}),c=ar();if(!c){wt.warn("Cannot send form submission: missing context"),a&&setTimeout(()=>{fS(a,{reason:"missing_context",release:!0},l)},0);return}let d=oS(),m=d&&typeof d=="object"?d:void 0,f=m==null?void 0:m.target,p=t&&Eo(m,!0),g=Fr(),h=Date.now(),b=Nt(),T={pending:!1,timeoutReported:!1},v=u(u(u({submissionAttemptId:b,submissionPollCount:0,submissionRetryCount:0,path:(A=e.location)==null?void 0:A.pathname,submissionSource:"website"},e.form_id?{htmlFormId:e.form_id}:{}),c.sessionId?{sessionId:c.sessionId}:{}),c.anonymousId?{anonymousId:c.anonymousId}:{}),F=t?Ui(g!=null?g:void 0,u(u({showProgress:p},f?{target:f}:{}),Na(v,h,T))):void 0,E=We=>{F&&We(Vi(F))},y=Fl(e),{preEnrichment:C,crmPrematch:O}=yS(o?S(u({},y),{form_id:o}):y),pe=y,{form_instance_key:x}=pe,V=Un(pe,["form_instance_key"]),W=S(u(S(u({},V),{submission_id:b}),c),{location:S(u({},V.location),{referrer:c.referrer}),metadata:u(u(u({},(Q=V.metadata)!=null?Q:{}),C?{preEnrichment:C}:{}),O?{crmPrematch:O}:{})});wt.debug(`Sending form submission: ${s}`);let L,N,_=t?Lr(S(u({},v),{listener:Bh(e.form_type)})):void 0;try{L=yield ia(W,{onProgress:cn=>{T.pending=cn.pending,v.submissionPollCount=cn.pollCount,v.submissionRetryCount=cn.retryCount}});let We=Vr(L==null?void 0:L.workflow),je={requestId:(U=L==null?void 0:L.transport)==null?void 0:U.requestId,serverTiming:(Ee=L==null?void 0:L.transport)==null?void 0:Ee.serverTiming,workflowExecutionId:We,handoffType:(xt=(ee=L==null?void 0:L.workflow)==null?void 0:ee.handoff)==null?void 0:xt.type};if(vo({loadingModalLease:F,response:L,beacon:u(u({elapsedMs:Date.now()-h},v),je)})){N={reason:"request_failed",release:!1};return}if((L==null?void 0:L.outcome)==="pending"){N={reason:"pending_exhausted",release:!1},Da({response:L,loaderEnabled:p,loadingModalLease:F,beacon:S(u({},v),{elapsedMs:Date.now()-h}),timeoutReported:T.timeoutReported});return}_==null||_.markResponse(je);let P=Ua(L),Bt=En(L),Hn=()=>{Rr("late_handoff","handoff_after_timeout",u(S(u(u({elapsedMs:Date.now()-h},v),P!=null&&P.type?{handoffType:P.type}:{}),{workflowError:Bt}),je),{schedulerArrivedLate:(P==null?void 0:P.type)===te.DisplayScheduler})},K=cn=>{cn.wasShowingError&&cn.removed&&Hn()};if((P==null?void 0:P.type)===te.DisplayScheduler&&P.schedulerUrl){let cn=F?De(Ze(F)):!1,yd=()=>cn?{reason:"handoff_rejected",release:!1}:dS(L,!0),Ur=Ba(P,_==null?void 0:_.redirectTiming());if(!Ur){_==null||_.dispose("rejected_handoff"),Va(F),N=yd();return}if(wt.sent("form submission",{formId:s,type:e.form_type,schedulerUrl:Ur.schedulerUrl}),Ur.redirectUrl){if(Ro(Ur.redirectUrl)){E(K),_==null||_.dispose("redirected");return}xr()}fc(Ur.schedulerUrl,Ur.handoffConfig,u(u(u({},f?{target:f}:{}),F?{loadingModalLease:F,onLoadingModalReleased:K}:{}),wr(_)))||(N=yd());return}if((P==null?void 0:P.type)===te.Redirect&&P.url&&Ro(P.url)){wt.sent("form submission",{formId:s,type:e.form_type,redirect:P.url}),E(K);return}if(F&&(P==null?void 0:P.type)===te.Redirect&&De(Ze(F))){Fn(F),N={reason:"handoff_rejected",release:!1};return}let Ie=dr(L),Ge=ji(L),Oe=mS({loaderEnabled:p,loadingModalLease:F,failure:Ge,workflowError:Bt}),Hr=vn(S(u(u({workflowError:Bt,submission:Ie,loaderEnabled:p,response:L,releaseSilently:Oe},F?{loadingModalLease:F}:{}),Ge?{failure:Ge}:{}),{report:Lt(u(u({elapsedMs:Date.now()-h},v),je))}));(L!=null&&L.success||Ge)&&Tr(wt,{failure:Ge,submission:Ie,workflowError:Bt,applied:Hr,fields:{formId:s,type:e.form_type}}),N=Oe?{reason:"request_failed",release:!0}:dS(L,(P==null?void 0:P.type)===te.Redirect&&!!P.url)}catch(We){wt.warn("Form submission threw",We),vo({loadingModalLease:F,failure:"request_threw",beacon:u({elapsedMs:Date.now()-h},v)});let je=mS({loaderEnabled:p,loadingModalLease:F,failure:"request_threw",workflowError:void 0}),P=vn(S(u({loaderEnabled:p,releaseSilently:je},F?{loadingModalLease:F}:{}),{failure:"request_threw",report:Lt(u({elapsedMs:Date.now()-h},v))}));Tr(wt,{failure:"request_threw",applied:P,fields:{formId:s,type:e.form_type}}),N={reason:"request_failed",release:je}}finally{if(_==null||_.dispose(),a&&N){let We=Vr(L==null?void 0:L.workflow);fS(a,N,u(u(u(u(S(u({},l),{submissionAttemptId:b,submissionPollCount:(ln=L==null?void 0:L.transport)==null?void 0:ln.pollCount,submissionRetryCount:(Nn=L==null?void 0:L.transport)==null?void 0:Nn.retryCount,elapsedMs:Date.now()-h}),c.sessionId?{sessionId:c.sessionId}:{}),c.anonymousId?{anonymousId:c.anonymousId}:{}),(un=L==null?void 0:L.transport)!=null&&un.requestId?{requestId:L.transport.requestId}:{}),We?{workflowExecutionId:We}:{}))}}})}function hc(e){return R(this,null,function*(){if(!be()||!pS||!D())return;let t=ar();if(!t){wt.warn("Cannot send form interaction: missing context");return}let n=Fl(e),c=n,{form_instance_key:r,js_route:o}=c,i=Un(c,["form_instance_key","js_route"]),s=u(u({},i),t),a=gc(n),l=R(null,null,function*(){let d=yield nm(s);d!=null&&d.preEnrichment&&cS(gS,a,d.preEnrichment,e.interaction),d!=null&&d.crmPrematch&&cS(hS,a,d.crmPrematch,e.interaction)});for(let d of a)Ga.set(d,l);try{yield l}finally{for(let d of a)Ga.get(d)===l&&Ga.delete(d)}})}var _S=Symbol.for("@workspace/forms-sdk:form-interaction-claimed");function ES(e){let t=e;return t[_S]?!1:(t[_S]=!0,!0)}var LS=new Set,wS=e=>{LS=new Set(e)},Cn=()=>({enabled:!1,resolvedHtmlFormId:null,pixelFormId:null}),qi=(e,t)=>{var n,r;return t.has(e)&&!((r=(n=ne())==null?void 0:n.ambiguousSubmissionIds)!=null&&r.includes(e))};function xw(e){var n;let t=((n=dn())!=null?n:[]).filter(r=>Jl(e,r));return t.length>0&&t.every(r=>r.tracksPath===!1)}function Sc(e,t){var s;if(qi(e,t))return e;if(B(e)==null||Ke().includes(e)||Yr(e))return null;let n=yt(e);if(qi(n,t))return n;let r=Ke();if(r.includes(n))return null;let o=[...t].filter(a=>pn(a,e)&&qi(a,t));return new Set(Hs(e,[...r,...o],ne()).map(({id:a,ownerId:l})=>l!=null?l:a)).size===1&&(s=o[0])!=null?s:null}function IS(e,t,n){var a;let r=Us(e),o=M(t,"id"),i=eu(e,o,r,Xe(t)),s=[i?null:r,i?null:e.htmlFormId,o!==""?o:null].find(l=>l!=null&&qi(l,n));return s?{enabled:!0,resolvedHtmlFormId:s,pixelFormId:(a=e.id)!=null?a:null}:null}var Ka=(e,t)=>{if(!t.resolvedHtmlFormId||e===t.resolvedHtmlFormId)return e;let n=$t(e);return n&&n===t.pixelFormId?e:t.resolvedHtmlFormId},Mo=(e,t,n=Xe(e))=>{var f;let r=Im(),o=r===void 0?LS:new Set(r),i=t||nr(e),s=i!=null?i:M(e,"id");if(tt(s,n)){let p=s.trim(),g=ne(),h=g==null?void 0:g.marketoNumericSubmissionOwners;if(h===void 0||h[p]===null)return Cn();let b=h[p];if(b!==void 0){let E=[fn(b),p].find(y=>{var C;return((C=g==null?void 0:g.submissionOwnerIds)==null?void 0:C[y])===b&&qi(y,o)});return E?{enabled:!0,resolvedHtmlFormId:E,pixelFormId:b}:Cn()}let T=Yn(s),v=Sc(T,o);return v?{enabled:!0,resolvedHtmlFormId:v,pixelFormId:null}:Cn()}if(i!==null){let p=Sc(i,o);if(p)return{enabled:!0,resolvedHtmlFormId:p,pixelFormId:$t(i)}}let a=Bs(e,void 0,n);if(a){let p=IS(a,e,o);if(p)return p}let l=M(e,"id");if(l!==""){let p=Sc(l,o);if(p&&(r!==void 0||!xw(l)))return{enabled:!0,resolvedHtmlFormId:p,pixelFormId:null}}if(o.size===0||!((f=dn())!=null&&f.length))return Cn();let c;try{c=ot(e)}catch(p){return I.module("Scheduler").warn("Form catalog extraction failed during scheduler matching",p),Cn()}if(c.fields.length===0)return Cn();let d={structureHash:Te(c.fields),contentHash:Pt(c.fields)},m=Bs(e,d,n);if(m){let p=IS(m,e,o);if(p)return p}return Cn()};var Cw=I.module("Listener"),dt=class extends Ce{constructor(){super(...arguments);this.log=Cw}ensureNotInitialized(){return this.isInitialized?(this.log.debug(`${this.getName()} already initialized, skipping`),!1):!0}markInitialized(){super.markInitialized(),this.log.success(`${this.getName()} listeners attached`)}cleanup(){}reset(){this.isInitialized&&this.cleanup(),super.reset()}};function Aw(e,t,n){return S(u({html_capture_trigger:t.trigger},t.enterFallbackMode?{enter_fallback_mode:t.enterFallbackMode}:{}),{scheduler_matched:n,form_root:qt(e)?"shadow":"document"})}function Mw(e){if(e.hasAttribute("list")||e.getAttribute("aria-expanded")==="true")return!0;let t=e;for(;t;){if((t.getAttribute("role")||"").toLowerCase()==="combobox")return!0;t=t.parentElement}return!1}function RS(e){if(!("key"in e))return!1;let t=e;return t.key==="Enter"&&!t.isComposing&&!t.metaKey&&!t.ctrlKey&&!t.altKey}var TS=new Set(["text","search","email","tel","url","password","number"]),kw=new Set([...TS,"date","month","week","time","datetime-local"]);function $a(e,t){return n=>{if(!kt(e))return;let r=n.target?Mt(n.target):null;r&&r!==e||t(n)}}var yc=64;function Ow(e){let t=0,n=ri(e);for(let r=0;r<n.length;r++){let o=n[r];if(!(!G(o)||!kw.has(o.type))&&(t+=1,t>1))return!0}return!1}function Pw(e){try{return e.matches(":disabled")}catch(t){return e.disabled}}function Dw(e,t){if(wf(e)||t!=null&&t.formNoValidate)return!1;let n=ri(e);for(let r=0;r<n.length;r++){let o=n[r];if(o==null||!("willValidate"in o))continue;let i=o;if(!(!i.willValidate||i.validity.valid))return!0}return!1}var Nw={hubspot:"HubSpot",marketo:"Marketo",pardot:"Pardot"},Xi=new WeakMap;function Hw(e,t){let n=!1,r=t.preventDefault.bind(t);t.preventDefault=()=>{n=!0,r()};let o=e.onsubmit;if(o){let i=(s=>{let a=o.call(e,s);return a===!1&&(n=!0),a});e.onsubmit=i,setTimeout(()=>{e.onsubmit===i&&(e.onsubmit=o)},0)}return setTimeout(()=>{t.preventDefault=r},0),()=>n}function Uw(e,t,n){Xi.set(e,n);try{let r=As(e,t),o=Ul(e,"requestSubmit");return r?o.call(e,r):o.call(e),Xi.has(e)?{resumed:!1,notResumedReason:"validation_blocked"}:{resumed:!0,mechanism:"request_submit"}}catch(r){return Ul(e,"submit").call(e),{resumed:!0,mechanism:"form_submit"}}finally{Xi.delete(e)}}var bc=class e extends dt{constructor(){super(...arguments);this.initializedRoots=new WeakSet;this.stopShadowWatch=null;this.formsCapturedThisTurn=new WeakSet;this.enterCapturePending=new WeakSet;this.heldEnterSuppressed=new WeakSet;this.filteredCaptureForms=new WeakSet;this.rootHandlers=new WeakMap;this.rootHandlerRefs=new Set;this.pruneRefsAt=yc}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"HTML"}cleanup(){var n;(n=this.stopShadowWatch)==null||n.call(this),this.stopShadowWatch=null;for(let r of this.rootHandlerRefs){let o=r.deref(),i=o&&this.rootHandlers.get(o);!o||!i||(o.removeEventListener("submit",i.submitHandler,{capture:!0}),o.removeEventListener("keydown",i.keydownHandler,{capture:!0}),o.removeEventListener("keyup",i.keyupHandler,{capture:!0}),i.interactionHandlers.forEach((s,a)=>{o.removeEventListener(a,s,{capture:nt(o)})}),i.stopWatchingTouches())}this.rootHandlerRefs.clear(),this.pruneRefsAt=yc,this.initializedRoots=new WeakSet,this.formsCapturedThisTurn=new WeakSet,this.enterCapturePending=new WeakSet,this.heldEnterSuppressed=new WeakSet,this.filteredCaptureForms=new WeakSet}noteHtmlCaptureFiltered(n){this.filteredCaptureForms.has(n)||(this.filteredCaptureForms.add(n),we(M(n,"id")||n.getAttribute("name")||"unnamed",bt(M(n,"id"),n.dataset.formId,n.dataset.defaultFormId)))}init(n=document){if(!kt(n))return;this.ensureShadowWatch();let r=nt(n);if(this.initializedRoots.has(n)){r||this.log.debug(`${this.getName()} already initialized for this document, skipping`);return}if(this.attachRoot(n),!r)for(let o of Ot(n))nt(o)&&this.init(o)}ensureShadowWatch(){if(this.stopShadowWatch)return;let n=null,r=!1;this.stopShadowWatch=()=>{r=!0,n==null||n()},n=xs(o=>{this.init(o)}),r&&n()}attachRoot(n){let r=$a(n,this.onSubmit.bind(this)),o=$a(n,this.onEnterKeyDown.bind(this)),i=$a(n,this.onEnterKeyUp.bind(this));n.addEventListener("submit",r,{capture:!0}),n.addEventListener("keydown",o,{capture:!0}),n.addEventListener("keyup",i,{capture:!0});let s=this.setupFormInteractionListeners(n),a=Qp(n);if(this.rootHandlers.set(n,{submitHandler:r,keydownHandler:o,keyupHandler:i,interactionHandlers:s,stopWatchingTouches:a}),this.rootHandlerRefs.size>=this.pruneRefsAt){for(let l of this.rootHandlerRefs)l.deref()===void 0&&this.rootHandlerRefs.delete(l);this.pruneRefsAt=Math.max(yc,this.rootHandlerRefs.size*2)}this.rootHandlerRefs.add(Ol(n)),this.initializedRoots.add(n),this.isInitialized||this.markInitialized()}onSubmit(n){let r=n.target;if(r==null||!("nodeType"in r))return;let o=r;if(!ce(o))return;let i=Xi.get(o);if(i!==void 0){Xi.delete(o),i&&n.stopImmediatePropagation();return}if(Pe.onFormSubmitted(o),!!be()){if(this.formsCapturedThisTurn.has(o)){Mo(o).enabled&&n.preventDefault();return}this.enterCapturePending.has(o)&&this.rememberEnterCapture(o),this.captureHtmlFormSubmission(o,n,this.htmlFormSkip(o),{trigger:"native_submit"})}}onEnterKeyDown(n){if(!RS(n))return;let r=n.target;if(r==null||!("nodeType"in r))return;let o=r;if(!G(o)||!TS.has(o.type)||Mw(o))return;let i=jn(o);if(!i)return;let s=be();if(n.repeat){s&&this.heldEnterSuppressed.has(i)&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation());return}let a=this.htmlFormSkip(i),l=s&&(!a||a==="capture-filter");s&&a&&a!=="capture-filter"&&this.logHtmlFormSkip(i,a);let c=Mo(i),d=Tf(i);if(d!=null&&Pw(d)){s&&Ad(c.enabled);return}if(this.formsCapturedThisTurn.has(i)||Dw(i,d))return;if(s&&c.enabled&&!a){n.stopPropagation(),n.stopImmediatePropagation(),this.heldEnterSuppressed.add(i),this.rememberEnterCapture(i),Pe.onFormSubmitted(i),this.captureHtmlFormSubmission(i,n,a,{trigger:"enter_fallback",enterFallbackMode:"immediate",schedulerMatch:c,submitter:d});return}if(d==null&&Ow(i))return;let m=Pe.prepareFormSubmission(i);if(!l&&!m)return;this.enterCapturePending.add(i);let f=l?Bl(i,d):void 0;setTimeout(()=>{this.enterCapturePending.delete(i),!this.formsCapturedThisTurn.has(i)&&n.defaultPrevented&&(m&&(!i.isConnected||ot(i).fields.length===0)&&m(),!(!l||!be())&&(this.rememberEnterCapture(i),this.captureHtmlFormSubmission(i,n,a,{trigger:"enter_fallback",enterFallbackMode:"deferred",schedulerMatch:c,formData:f})))},0)}onEnterKeyUp(n){if(!RS(n))return;let r=n.target;if(r==null||!("nodeType"in r))return;let o=jn(r);o&&this.heldEnterSuppressed.delete(o)}rememberEnterCapture(n){this.formsCapturedThisTurn.add(n),setTimeout(()=>{this.formsCapturedThisTurn.delete(n)},0)}htmlFormSkip(n){let r=Pf(n);return r||(Ct(n,M(n,"id"),n.dataset.formId,n.dataset.defaultFormId)?Zr(n):"capture-filter")}logHtmlFormSkip(n,r){if(r==="capture-filter"){this.log.debug("Skipping form (not in capture allowlist)");return}if(r==="meta_pixel"||r==="widget"){this.log.debug("Skipping a third-party widget form");return}if(r==="ignored"){this.log.debug("Skipping form (ignored by configuration)");return}if(r==="password_gate"){this.log.debug("Skipping password-gate form");return}let o=Nw[r.vendor],i=r.vendor==="pardot"?"Skipping as vendor form":`Skipping ${o} form (handled by ${o} listener)`;this.log.warn(i,{vendor:r.vendor,formId:M(n,"id")||n.getAttribute("name")||"unnamed",reason:r.reason})}captureHtmlFormSubmission(n,r,o,i){var T,v,F,E,y;if(o){this.logHtmlFormSkip(n,o),o==="capture-filter"&&this.noteHtmlCaptureFiltered(n);return}let s=(T=i.schedulerMatch)!=null?T:Mo(n),a=As(n,(v=i.submitter)!=null?v:r.type==="submit"&&"submitter"in r?r.submitter:null),l=r.defaultPrevented,c=s.enabled&&!l;s.enabled&&r.preventDefault();let d=c?Hw(n,r):null,m=(F=i.formData)!=null?F:Bl(n,a),f=Array.from(m.keys()).length;this.log.debug(`Form has ${f} fields`);let p=Rg(n,m),g=Aw(n,i,s.enabled);p.metadata=u(u({},(E=p.metadata)!=null?E:{}),g);let h=p.form_id;p.form_id=Ka((y=p.form_id)!=null?y:"",s)||void 0;let b=p.form_id||n.getAttribute("name")||"unnamed";s.enabled&&this.log.debug(`Intercepted scheduler-enabled form: ${b}`),this.log.found(`HTML form submission: ${b}`),rn(p,u({schedulerEnabled:s.enabled,warmupFormId:h},c?{releaseNativeSubmit:()=>d!=null&&d()?{resumed:!1,notResumedReason:"page_cancelled"}:Uw(n,a,i.trigger==="native_submit"),releaseSource:{listener:"html",captureTrigger:i.trigger}}:{})),this.log.sent("HTML form submission",u({formId:b,fieldCount:f},g))}setupFormInteractionListeners(n){let r=nt(n),o=r?["focusout","change","paste","copy"]:["focus","focusout","change","paste","copy"],i=new Map;return o.forEach(s=>{let a=$a(n,l=>{this.onInteraction(l,s)});i.set(s,a),n.addEventListener(s,a,{passive:!0,capture:r})}),this.log.debug("Form interaction listeners attached"),i}onInteraction(n,r){if(!be()||!bS())return;let o=n.target;if(o==null||!("nodeType"in o))return;let i=o;if(!Xf(i))return;let s=er(i);if(!(!s||Re(s)||Re(i))){if(!Ct(s,M(s,"id"),s.dataset.formId,s.dataset.defaultFormId)){this.noteHtmlCaptureFiltered(s);return}if(Yf(r)){let a=i,l=df(a,s);if(r==="change"&&qf(a,l)||!ES(n))return;let c=l||"unnamed",d=Cg(s,a,r,l),m=d.form_id||s.getAttribute("name")||"unnamed";this.log.debug(`Form interaction: ${r} on ${c} in ${m}`),hc(d)}}}},za=bc.getInstance();var Bw=["hsforms.net","hsforms.com"],Vw="forms.hubspot.com";function FS(e){return e===Vw?!0:Bw.some(t=>_t(e,t))}function Ww(e,t){let n=Dt(e);return!n||!FS(n.hostname)?!1:n.pathname.split("/").some(r=>xe(r)===t)}function _c(e,t=typeof location=="undefined"?"":location.origin){if(!e||e==="null")return!1;if(e===t)return!0;let n;try{n=new URL(e).hostname}catch(r){return!1}return FS(n)}function Ec(e,t){let n=Xn(t);if(!n)return!1;let r=oi(e);for(let o of Sn(t))if(o===e||o.contains(e)||r&&o.ownerDocument===r)return!0;return Ww(In(e),n)}function Gw(e){if(!e||e.length===0)return null;let t=null;for(let n=e.length-1;n>=0;n--){let r=e[n];r&&(t={getAttribute:o=>o==="data-default-form-id"?r:null,dataset:{defaultFormId:r},parentElement:t})}return t}function Ic(e,t){if(t&&jt(t))return t;let n=typeof document=="undefined"?null:Nf(e);return n&&jt(n)?n:t!=null?t:n}var Lc=class e extends dt{constructor(){super(...arguments);this.isPlatformAvailable=!1;this.isV4PlatformAvailable=!1;this.verifiedHubSpotEmbeds=new Map;this.readyV4Handler=null;this.readyMessageHandler=null;this.submissionMessageHandler=null;this.v4SubmissionHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"HubSpot"}init(){this.ensureNotInitialized()&&(this.verifiedHubSpotEmbeds.clear(),this.setupReadyListeners(),this.setupSubmissionListeners(),this.setupV4Listeners(),this.markInitialized())}cleanup(){this.readyV4Handler&&(window.removeEventListener("hs-form-event:on-ready",this.readyV4Handler),this.readyV4Handler=null),this.readyMessageHandler&&(window.removeEventListener("message",this.readyMessageHandler),this.readyMessageHandler=null),this.submissionMessageHandler&&(window.removeEventListener("message",this.submissionMessageHandler),this.submissionMessageHandler=null),this.v4SubmissionHandler&&(window.removeEventListener("hs-form-event:on-submission:success",this.v4SubmissionHandler),this.v4SubmissionHandler=null),this.isPlatformAvailable=!1,this.isV4PlatformAvailable=!1,this.verifiedHubSpotEmbeds.clear()}rememberVerifiedHubSpotEmbed(n){if(typeof n!="string"||!n.trim()||Sn(n).length===0)return;let r=Xn(n);if(!r)return;let o=Ic(n);this.verifiedHubSpotEmbeds.set(r,{ignored:ks(n),stampCandidates:o?gn(o):[]})}verifiedHubSpotEmbed(n){let r=Xn(n);return r?this.verifiedHubSpotEmbeds.get(r):void 0}hasVerifiedHubSpotEmbed(n){return Sn(n).length>0?!0:this.verifiedHubSpotEmbed(n)!=null}setupReadyListeners(){this.readyV4Handler=()=>{try{this.isV4PlatformAvailable=!0,this.log.found("HubSpot V4 platform")}catch(n){this.log.error("Error in HubSpot V4 ready listener",n)}},window.addEventListener("hs-form-event:on-ready",this.readyV4Handler),this.readyMessageHandler=n=>{var r,o;try{if(((r=n.data)==null?void 0:r.type)!=="hsFormCallback")return;let i=n.data.eventName;if(i!=="onFormReady"&&i!=="onFormSubmit"||!_c(n.origin))return;if(n.source===window)this.rememberVerifiedHubSpotEmbed(n.data.id);else if(typeof((o=n.data)==null?void 0:o.id)=="string"){let s=ii(n.source);s&&Ec(s,n.data.id)&&this.rememberVerifiedHubSpotEmbed(n.data.id)}i==="onFormReady"&&(this.isPlatformAvailable=!0,this.log.found("HubSpot platform"))}catch(i){this.log.error("Error in HubSpot ready listener",i)}},window.addEventListener("message",this.readyMessageHandler),this.log.debug("HubSpot ready listeners attached")}setupSubmissionListeners(){this.submissionMessageHandler=n=>{var r,o,i,s;try{if(!be())return;if(n.data.type==="hsFormCallback"&&n.data.eventName==="onFormSubmitted"&&(r=n==null?void 0:n.data)!=null&&r.id&&(i=(o=n==null?void 0:n.data)==null?void 0:o.data)!=null&&i.submissionValues){let a=n.data.id,l=ii(n.source),c={originHost:so(n.origin),sourceKind:sa(n.source,l),formType:"hubspot"};if(!_c(n.origin)){we(a,"untrusted_origin",c),this.log.debug("Skipping HubSpot form (untrusted origin)");return}if(n.source===window){if(!this.hasVerifiedHubSpotEmbed(a)){we(a,"missing_embed",c),this.log.debug(`Skipping HubSpot form (missing embed): ${a}`);return}}else if(!l||!Ec(l,a)){we(a,"untrusted_source",c),this.log.debug(`Skipping HubSpot form (untrusted source): ${a}`);return}let d=this.verifiedHubSpotEmbed(a),m=Sn(a).length===0;if(l&&Re(l)||ks(a)||m&&(d!=null&&d.ignored)){we(a,"ignored",S(u({},c),{embedState:m?"cached":"live"})),this.log.debug(`Skipping HubSpot form (ignored by configuration): ${a}`);return}let f=Ic(a,l),p=m&&!(f&&jt(f))&&(s=Gw(d==null?void 0:d.stampCandidates))!=null?s:f;if(!Ct(p,a)){we(a,bt(a),c),this.log.debug(`Skipping HubSpot form (not in capture allowlist): ${a}`);return}this.log.found(`HubSpot form submission: ${a}`);let g=Tg({conversionId:n.data.data.conversionId,formId:a},n.data.data.submissionValues,p);rn(g).catch(h=>{this.log.warn("Error sending HubSpot form submission",h)}),this.log.sent("HubSpot form submission",{formId:a})}}catch(a){this.log.warn("Error processing HubSpot form submission",a)}},window.addEventListener("message",this.submissionMessageHandler)}setupV4Listeners(){this.v4SubmissionHandler=n=>R(this,null,function*(){var r;try{if(!be())return;let o=n,i=(r=window.HubSpotFormsV4)==null?void 0:r.getFormFromEvent(o);if(!i){this.log.warn("Could not get form from HubSpot V4 event");return}let s=i.getFormId();if(ks(s)){we(s,"ignored",{embedState:"live"}),this.log.debug(`Skipping HubSpot V4 form (ignored by configuration): ${s}`);return}let a=Ic(s);if(!Ct(a,s)){we(s,bt(s),{formType:"hubspot"}),this.log.debug(`Skipping HubSpot V4 form (not in capture allowlist): ${s}`);return}this.log.found(`HubSpot V4 form submission: ${s}`);let l=yield i.getFormFieldValues();if(!l||(l==null?void 0:l.length)===0){this.log.warn("Could not get form field values from HubSpot V4");return}let c=l.length;this.log.debug(`Form has ${c} fields`);let d=Fg(s,l,a);rn(d).catch(m=>{this.log.warn("Error sending HubSpot V4 form submission",m)}),this.log.sent("HubSpot V4 form submission",{formId:s,fieldCount:c})}catch(o){this.log.warn("Error processing HubSpot V4 form submission",o)}}),window.addEventListener("hs-form-event:on-submission:success",this.v4SubmissionHandler)}isReady(){return this.isInitialized&&(this.isPlatformAvailable||this.isV4PlatformAvailable)}},vS=Lc.getInstance();var xS=new WeakMap;function Kw(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t=="function")}function $w(e){if(typeof e.offSuccess!="function")return[];let t=Array.prototype.filter,n=null;Array.prototype.filter=function(o,i){let s=t.call(this,o,i);return n===null&&Kw(this)&&(n=this.slice()),s};try{e.offSuccess(()=>{})}catch(r){n===null&&(n=[])}finally{Array.prototype.filter=t}return n!=null?n:[]}function zw(e){var d;let t=xS.get(e);if(t)return t;let n={followUpVetoed:!1,armed:!1},r=e.onSuccess.bind(e),o=(d=e.offSuccess)==null?void 0:d.bind(e),i=new Map,s=()=>{n.armed||(n.followUpVetoed=!1,n.armed=!0,queueMicrotask(()=>{n.armed=!1}))},a=m=>{let f=i.get(m);if(f)return f;let p=(g,h)=>{s();let b=m(g,h);return b===!1&&(n.followUpVetoed=!0),b};return i.set(m,p),p},l=$w(e);for(let m of l)o==null||o(m),r(a(m));if(e.onSuccess=m=>typeof m!="function"?(i.clear(),r()):r(a(m)),o&&(e.offSuccess=m=>{var f;return typeof m!="function"?o():o((f=i.get(m))!=null?f:m)}),typeof e.submit=="function"){let m=e.submit.bind(e);e.submit=f=>typeof f!="function"?m():m(a(f))}let c={registerPixelOnSuccess:m=>{r((f,p)=>(s(),m(f,p)))},isFollowUpVetoed:()=>n.followUpVetoed,capturedCallbackCount:l.length};return xS.set(e,c),c}function jw(e){let t=Ph(e);return t?(Dh(t.toString()),{resumed:!0,mechanism:"thank_you_url"}):{resumed:!1,notResumedReason:"no_thank_you_url"}}function wc(e){return!e||le(e)||B(e)==null?!1:e!==yt(e)}function CS(e){if(le(e))return"stamp";if(B(e)!=null)return wc(e)?"leftover":"get_id"}function AS(e){if(le(e.sentId))return"stamp";if(B(e.sentId)!=null)return wc(e.liveDomId)||wc(e.preRewriteId)?"leftover":e.choseGetId?"get_id":CS(e.sentId)}function qw(e,t){var c,d;let n=Ei(e,"marketo"),r=Xe(e),o=(r==="marketo"?n:Ei(e,r))||void 0,i=M(e,"id"),s=yt(i),a=Yn((d=(c=t.getId)==null?void 0:c.call(t))!=null?d:"");if(n&&n!==s)return{formId:n,source:CS(n),liveDomId:i,getId:a,interactionFormId:o};if(n&&B(n)==null){let m=Ke();if(!(Yo()&&a!=null&&!m.includes(n)&&m.some(p=>pn(p,a))))return{formId:n,source:void 0,liveDomId:i,getId:a,interactionFormId:o}}let l=a!=null?a:yt(n||i||"unnamed");return{formId:l,source:AS({sentId:l,liveDomId:i,preRewriteId:n||i,choseGetId:a!=null}),liveDomId:i,getId:a,interactionFormId:o}}var Rc=class e extends dt{constructor(){super(...arguments);this.isPlatformAvailable=!1}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Marketo"}init(){this.ensureNotInitialized()&&(window.MktoForms2?(this.isPlatformAvailable=!0,this.log.found("Marketo platform"),window.MktoForms2.whenReady(n=>{if(be())try{let r=n.getFormElem()[0],o=M(r,"id")||"unnamed";this.log.debug(`Marketo form ready: ${o}`);let i;try{i=zw(n)}catch(s){this.log.warn(`Marketo follow-up veto tracking failed: ${o}`,s),i={registerPixelOnSuccess:a=>n.onSuccess(a),isFollowUpVetoed:()=>!1}}i.registerPixelOnSuccess((s,a)=>{if(!be())return;let l=qw(r,n);if(Re(r)){this.log.debug(`Skipping Marketo form (ignored by configuration): ${l.formId}`);return}if(!Ct(r,l.formId,M(r,"id"))){we(l.formId,bt(l.formId)),this.log.debug(`Skipping Marketo form (not in capture allowlist): ${l.formId}`);return}let c=nr(r),d=le(l.formId)&&l.formId!==c,m=Mo(r,d?void 0:l.formId,"marketo"),f=Ka(l.formId,m),p=AS({sentId:f,liveDomId:l.liveDomId,preRewriteId:l.formId,choseGetId:l.getId!=null&&l.formId===l.getId});this.log.info("Marketo form identity",{"form.identity_source":p,"form.live_dom_id":l.liveDomId,"form.get_id":l.getId,"form.id_sent":f,"form.warmup_form_id":l.interactionFormId,"form.implicit_stamp":d,"form.scheduler_resolved_id":m.resolvedHtmlFormId,"form.scheduler_enabled":m.enabled,"form.alias_ownership_available":Yo(),"form.rewritten_for_scheduler":f!==l.formId}),this.log.found(`Marketo form submission: ${f}`);let g=Object.keys(s).length;this.log.debug(`Form has ${g} fields`);let h=vg(f,s,p,r);if(rn(h,u({schedulerEnabled:m.enabled,warmupFormId:l.interactionFormId},m.enabled?{releaseNativeSubmit:()=>i.isFollowUpVetoed()?{resumed:!1,notResumedReason:"marketo_vetoed"}:jw(a),releaseSource:u({listener:"marketo",captureTrigger:"marketo_success"},i.capturedCallbackCount===void 0?{marketoVetoTrackingFailed:!0}:{marketoSuccessCallbackCount:i.capturedCallbackCount})}:{})),this.log.sent("Marketo form submission",{formId:f,fieldCount:g}),m.enabled)return this.log.debug(`Blocked Marketo follow-up URL for scheduler form: ${f}`),!1})}catch(r){this.log.error("Error setting up Marketo form",r)}}),this.markInitialized()):this.log.debug("Marketo not detected on page"))}cleanup(){this.isPlatformAvailable=!1}isReady(){return this.isInitialized&&this.isPlatformAvailable}},Yi=Rc.getInstance();var Xw=["type","name","placeholder","required","aria-label","aria-labelledby","for","id","value"],Ji={childList:!0,subtree:!0,attributes:!0,attributeFilter:[...Xw],attributeOldValue:!0,characterData:!0};var Yw="input, textarea, select";function PS(e){let t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function MS(e){if(!Y(e))return!1;let t=e,n=t.tagName;return PS(t)||n==="OPTION"||n==="LABEL"||n==="LEGEND"?!0:t.querySelector(`${Yw}, option, label, legend`)!==null}function Jw(e,t){if(t==="value")return e.tagName==="OPTION";let n=e.tagName;return PS(e)||n==="LABEL"||n==="OPTION"}function kS(e){return e.closest("label, option, legend")!==null}var DS=new Set(["root","__next","__nuxt","app","application"]);function Zw(e){let t=n=>{if(!n)return!1;for(let r=0;r<n.length;r++){let o=n[r];if(o.nodeType===Node.TEXT_NODE||o.nodeType===Node.ELEMENT_NODE)return!0}return!1};return t(e.addedNodes)||t(e.removedNodes)}function Qw(e){let t=e.ownerDocument;if(e===t.documentElement||e===t.body)return!1;let n=e.id;return!(!n||DS.has(n)||e.querySelector("form"))}function eR(e){if(!Y(e))return[];let t=e,n=[];return t.id&&n.push(t.id),t.querySelectorAll("[id]").forEach(r=>{r.id&&n.push(r.id)}),n}function ja(e){let t=Mt(e);return t&&(nt(t)||t.nodeType===Node.DOCUMENT_NODE)?t:vm(e)}function tR(e){var t;for(let[n,r]of e){let o=n.querySelectorAll("[aria-labelledby]");for(let i=0;i<o.length;i++){let s=o[i];if(!s)continue;if(((t=s.getAttribute("aria-labelledby"))!=null?t:"").split(/\s+/).some(l=>r.has(l))){let l=ce(s)?s:er(s);if(l)return l}}}return null}var nR=100,rR=300,OS=1e3,oR=32,iR=(e,t)=>{let n=0,r=o=>{let i=e.ownerDocument.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),s=o.nodeType===Node.ELEMENT_NODE?o:i.nextNode();for(;s;){if(n+=1,n>t)return!1;let a=s.shadowRoot;if(a&&!r(a))return!1;s=i.nextNode()}return!0};return r(e)?n:null},sR=e=>{if(typeof window.requestIdleCallback=="function"){let n=window.requestIdleCallback(e,{timeout:nR});return()=>window.cancelIdleCallback(n)}let t=setTimeout(e,0);return()=>clearTimeout(t)},Tc=class e extends dt{constructor(){super(...arguments);this.observer=null;this.domContentLoadedHandler=null;this.observedFrameDocuments=new WeakSet;this.parserWatchedFrameDocuments=new WeakSet;this.observedShadows=new WeakSet;this.stopShadowWatch=null;this.pendingShadowScan=new Set;this.pendingShadowRemoval=new Set;this.heldShadowForm=null;this.heldShadowFrames=!1;this.cancelShadowScan=null;this.navigationWatchedFrames=new WeakSet}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Mutation"}init(){var n;this.ensureNotInitialized()&&(this.observer=new MutationObserver(r=>{var f;if(!be()){let p={left:OS};for(let g of r)g.type==="childList"&&g.addedNodes.forEach(h=>{if(!Y(h))return;let b=this.walkOrQueueShadow(h,!1,p);this.holdShadowNotice(b)});return}this.replayHeldShadowNotice();let o=null,i=!1,s={left:OS},a=new Map,l=p=>{o||!p||(o=ce(p)?p:er(p))},c=(p,g)=>{if(o||!g||DS.has(g))return;let h=a.get(p);h||(h=new Set,a.set(p,h)),h.add(g)},d=p=>{if(o||!p)return;let g=p.id?p:p.closest("[id]");!g||!Qw(g)||c(ja(g),g.id)},m=(p,g=ja(p))=>{if(!o)for(let h of eR(p))c(g,h)};for(let p of r){if(o&&i){if(p.type!=="childList")continue;p.addedNodes.forEach(g=>{Y(g)&&this.walkOrQueueShadow(g,!1,{left:0})});continue}if(p.type==="attributes"){if(!Y(p.target))continue;if(Jw(p.target,p.attributeName)&&l(p.target),p.attributeName==="id"){let g=ja(p.target);c(g,p.oldValue),c(g,p.target.id||null)}continue}if(p.type==="characterData"){let g=Fm(p.target)?p.target.parentElement:null;g&&kS(g)&&l(g),d(g);continue}if(p.type==="childList"){if(Y(p.target)){let g=kS(p.target);g&&l(p.target),(g||Zw(p))&&d(p.target)}p.addedNodes.forEach(g=>{var v;if(!Y(g))return;let h=g,b=this.walkOrQueueShadow(h,!1,s);if(b!=null&&b.hasIframe&&(i=!0),!i&&(qn(h)||h.querySelector("iframe"))&&(i=!0),o)return;if(ce(h)){o=h;return}let T=(v=h.querySelector("form"))!=null?v:b==null?void 0:b.forms[0];if(ce(T)){o=T;return}MS(g)&&Y(p.target)&&(l(p.target),l(h)),m(g)}),(f=p.removedNodes)==null||f.forEach(g=>{if(!o){if(Y(g)){gf(g.ownerDocument)&&this.walkOrQueueShadow(g,!0,{left:0});let h=ce(g)?g:g.querySelector("form");if(ce(h)){o=h;return}}MS(g)&&Y(p.target)&&(l(p.target),Y(g)&&l(g)),m(g,ja(p.target))}})}}!o&&a.size>0&&(o=tR(a)),i&&(this.attachToFrames(),Pe.onFrameAdded()),o&&Pe.onFormDomChanged(o),window.MktoForms2&&!Yi.initialized&&(this.log.debug("Marketo detected via mutation, setting up listeners"),Yi.init())}),(n=this.stopShadowWatch)==null||n.call(this),this.stopShadowWatch=xs(r=>{!this.observer||this.observedShadows.has(r)||(this.observedShadows.add(r),this.observer.observe(r,Ji))}),this.observe(),this.attachToFrames(),this.markInitialized())}attachToFrames(n=document){Ms(n,r=>{this.attachToFrameElement(r)})}attachToFrameElement(n){let r=oi(n);if(r){this.attachToFrame(n,r);return}this.watchFrameNavigation(n)}attachToFrame(n,r){za.init(r),this.watchFrameNavigation(n);let o=this.parserWatchedFrameDocuments;r.readyState==="loading"&&!o.has(r)&&(o.add(r),r.addEventListener("DOMContentLoaded",()=>{this.parserWatchedFrameDocuments===o&&this.rediscoverShadowRoots(r)},{once:!0})),this.observeFrameDocument(r)&&(this.log.debug("Observing frame document for form catalog changes"),Pe.onFrameAttached())}observeFrameDocument(n){return!this.observer||this.observedFrameDocuments.has(n)?!1:(this.observedFrameDocuments.add(n),this.observer.observe(n,Ji),!0)}watchFrameNavigation(n){this.navigationWatchedFrames.has(n)||(this.navigationWatchedFrames.add(n),n.addEventListener("load",()=>{this.attachToFrames(),Pe.onFrameAdded()}))}rediscoverShadowRoots(n){!this.initialized||bf(n)===0||(this.attachToFrames(),Pe.onShadowRootsDiscovered())}observe(){if(!this.observer)return;let n=document.documentElement;n&&(document.readyState==="loading"?this.domContentLoadedHandler||(this.domContentLoadedHandler=()=>{var r;this.rediscoverShadowRoots(document),(r=this.observer)==null||r.observe(n,Ji),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)},document.addEventListener("DOMContentLoaded",this.domContentLoadedHandler)):this.observer.observe(n,Ji))}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)}walkOrQueueShadow(n,r,o){if(!n.shadowRoot&&!n.firstElementChild)return null;let i=r?this.pendingShadowRemoval:this.pendingShadowScan;if(i.size<=oR){for(let a of i)if(a.contains(n))return null}let s=iR(n,Math.min(rR,o.left));return s!==null?(o.left-=s,Nl(n)):(i.add(n),this.cancelShadowScan||(this.cancelShadowScan=sR(()=>this.flushShadowScan())),null)}flushShadowScan(){var i;this.cancelShadowScan=null;let n=[...Array.from(this.pendingShadowScan).filter(s=>s.isConnected),...this.pendingShadowRemoval];this.pendingShadowScan.clear(),this.pendingShadowRemoval.clear();let r=this.heldShadowForm,o=this.heldShadowFrames;for(let s of n){let a=Nl(s);a.hasIframe&&(o=!0),r!=null||(r=(i=a.forms.find(l=>qt(l)))!=null?i:null)}if(!be()){this.heldShadowForm=r,this.heldShadowFrames=o;return}this.heldShadowForm=null,this.heldShadowFrames=!1,o&&this.attachToFrames(),r&&Pe.onFormDomChanged(r)}holdShadowNotice(n){var r,o;n&&(n.hasIframe&&(this.heldShadowFrames=!0),(o=this.heldShadowForm)!=null||(this.heldShadowForm=(r=n.forms.find(i=>qt(i)))!=null?r:null))}replayHeldShadowNotice(){let n=this.heldShadowForm,r=this.heldShadowFrames;!n&&!r||(this.heldShadowForm=null,this.heldShadowFrames=!1,r&&this.attachToFrames(),n&&Pe.onFormDomChanged(n))}cleanup(){var n,r;(n=this.stopShadowWatch)==null||n.call(this),this.stopShadowWatch=null,(r=this.cancelShadowScan)==null||r.call(this),this.cancelShadowScan=null,this.pendingShadowScan.clear(),this.pendingShadowRemoval.clear(),this.heldShadowForm=null,this.heldShadowFrames=!1,this.disconnect(),this.observedFrameDocuments=new WeakSet,this.parserWatchedFrameDocuments=new WeakSet,this.observedShadows=new WeakSet,this.navigationWatchedFrames=new WeakSet}},Fc=Tc.getInstance();var xc="paperform.co",BS="paperform,[paperform-id],[data-paperform-id]";function VS(e){let t=Dt(e);return!!(t&&_t(t.hostname,xc))}function WS(e){var o,i,s;let t=Dt(e);if(!t||!_t(t.hostname,xc))return"";let n=(i=(o=t.hostname.split(".")[0])==null?void 0:o.toLowerCase())!=null?i:"";if(n&&n!=="paperform"&&n!=="www")return n;let r=t.pathname.split("/").filter(Boolean);return((s=r[r.length-1])!=null?s:"").toLowerCase()}function qa(e){return(e.getAttribute("data-paperform-id")||e.getAttribute("paperform-id")||"").trim()}function aR(e){return(e.getAttribute("data-url")||e.getAttribute("url")||"").trim()}function Cc(e){return qa(e)?e:e.closest(BS)}function NS(e){return e.replace(/\/$/,"")}function Ac(e,t){return NS(e.pathname)===NS(t.pathname)}function vc(e,t){return Dt(aR(e),t)}function HS(e,t){var o;let n=Ii(t),r=vc(e,(o=t.ownerDocument)==null?void 0:o.baseURI);return!n||!r?!1:r.origin===n.origin&&Ac(r,n)}function US(e){return!!(e&&(e.protocol==="http:"||e.protocol==="https:"))}function lR(e){var o;let t=(o=e.ownerDocument)==null?void 0:o.baseURI,n=Dt((e.getAttribute("src")||"").trim(),t);if(US(n))return n;let r=Dt((e.getAttribute("data-src")||"").trim(),t);return US(r)?r:null}function GS(e){return e.hasAttribute("data-popup-button")||e.hasAttribute("popup-button")}function uR(e){return Ot(e).flatMap(t=>Array.from(t.querySelectorAll(BS)))}function cR(e){return Ot(e).flatMap(t=>Array.from(t.querySelectorAll("iframe")))}function dR(e){let t=e.ownerDocument;if(!t)return[];let n=uR(t),r=Ii(e),o=t.baseURI;if(r){let s=n.filter(a=>{var l;return((l=vc(a,o))==null?void 0:l.origin)===r.origin});if(s.length>0)return s.filter(a=>{let l=vc(a,o);return!!(l&&Ac(l,r))})}let i=WS(In(e));return i?n.filter(s=>qa(s).toLowerCase()===i):[]}function mR(e){let t=e.ownerDocument;if(!t)return[];let n=Ii(e);return n?cR(t).filter(r=>{if(Cc(r))return!1;let o=lR(r);return!!(o&&o.origin===n.origin&&Ac(o,n))}):[]}function fR(e,t){var s,a,l;if(t.length===0)return null;if(t.length===1)return(s=t[0])!=null?s:null;let n=t.filter(GS),r=n.length>0?n:t;if(r.length===1)return(a=r[0])!=null?a:null;let o=mR(e);if(o.length!==r.length)return null;let i=o.indexOf(e);return i>=0&&(l=r[i])!=null?l:null}function KS(e){return fR(e,dR(e))}function Mc(e){return Cc(e)||KS(e)}function $S(e){let t=so(e);return!!(t&&_t(t,xc))}function zS(e){let t=Mc(e);if(t){let n=qa(t);if(n)return n}return qa(e)||WS(In(e))}function jS(e){let t=In(e);if(t)return VS(t)?"paperform_co":"custom_domain"}function qS(e){if(VS(In(e)))return!0;let t=Cc(e);if(t&&HS(t,e))return!0;let n=KS(e);return!!(n&&GS(n)&&HS(n,e))}var XS="paperform:";function pR(e,t){return e&&jt(e)?e:t instanceof HTMLElement?t:e}var kc=class e extends dt{constructor(){super(...arguments);this.messageHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}getName(){return"Paperform"}init(){this.ensureNotInitialized()&&(this.messageHandler=n=>{if(be()&&!(typeof n.data!="string"||!n.data.startsWith(XS)))try{let r=JSON.parse(n.data.slice(XS.length));if((r==null?void 0:r.action)!=="submission")return;let o=ii(n.source),i=o?Mc(o):null,s=pR(o,i),a=o?zS(o):"",l=a||"unnamed",c=o?jS(o):void 0,d=u({originHost:so(n.origin),sourceKind:sa(n.source,o),formType:"paperform"},c?{embedKind:c}:{});if(!o||!qS(o)){we(l,"untrusted_source",d),this.log.debug(`Skipping Paperform form (untrusted source): ${l}`);return}if(!$S(n.origin)&&!aa(n.origin,o)){we(l,"untrusted_origin",d),this.log.debug("Skipping Paperform form (untrusted origin)");return}if(Re(o)||i instanceof HTMLElement&&i!==o&&Re(i)){we(l,"ignored",d),this.log.debug(`Skipping Paperform form (ignored by configuration): ${l}`);return}if(!Ct(s,l)){we(l,bt(l),d),this.log.debug(`Skipping Paperform form (not in capture allowlist): ${l}`);return}this.log.found(`Paperform submission: ${l}`);let m=xg(r,s,a||void 0);rn(m).catch(f=>{this.log.warn("Failed to send Paperform submission",f)}),this.log.sent("Paperform submission",{formId:l})}catch(r){this.log.warn("Error processing Paperform submission",r)}},window.addEventListener("message",this.messageHandler),this.markInitialized())}cleanup(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null)}},YS=kc.getInstance();function JS(){let e=!1;function t(){if(!ae()){I.debug("Capture disabled, skipping form listener setup");return}e||(za.init(),vS.init(),Yi.init(),YS.init(),Fc.init(),e=!0),Fc.attachToFrames()}return{setupFormListeners:t,refreshKnownFormsForCurrentPath:Rm}}var Oc=I.module("Lifecycle"),Pc=class e{constructor(){this.isInitialized=!1;this.isSetupInProgress=!1;this.readystatechangeHandler=null;this.domContentLoadedHandler=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}setup(t){if(this.isInitialized){Oc.debug("Already initialized, skipping");return}if(this.isSetupInProgress){Oc.debug("Setup already in progress, skipping");return}this.isSetupInProgress=!0;let n=()=>{if(this.isInitialized)return;this.isInitialized=!0;let r=t();r instanceof Promise&&r.catch(o=>{Oc.error("Initialization failed",o)}),this.cleanup()};document.readyState==="complete"||document.readyState==="interactive"?n():(this.readystatechangeHandler=()=>{document.readyState==="complete"&&n()},document.addEventListener("readystatechange",this.readystatechangeHandler),this.domContentLoadedHandler=()=>{n()},document.addEventListener("DOMContentLoaded",this.domContentLoadedHandler))}cleanup(){this.readystatechangeHandler&&(document.removeEventListener("readystatechange",this.readystatechangeHandler),this.readystatechangeHandler=null),this.domContentLoadedHandler&&(document.removeEventListener("DOMContentLoaded",this.domContentLoadedHandler),this.domContentLoadedHandler=null)}reset(){this.cleanup(),this.isInitialized=!1,this.isSetupInProgress=!1}},ZS=Pc.getInstance();function QS(e,t=50){let n;return()=>{n&&clearTimeout(n),n=window.setTimeout(()=>e(),t)}}var ey="__dft-route-change";function ty(e){let t=!0,{pushState:n,replaceState:r}=window.history,o=function(...a){let l=n.apply(this,a);return t&&e(),l},i=function(...a){let l=r.apply(this,a);return t&&e(),l};window.history.pushState=o,window.history.replaceState=i;let s=()=>{t&&e()};return window.addEventListener("popstate",s),window.addEventListener("hashchange",s),()=>{t=!1,window.history.pushState===o&&(window.history.pushState=n),window.history.replaceState===i&&(window.history.replaceState=r),window.removeEventListener("popstate",s),window.removeEventListener("hashchange",s)}}var Dc=class e extends Ce{constructor(){super(...arguments);this.stopHistory=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}setup(n){if(!this.ensureNotInitialized())return;this.markInitialized();let r=!0,o=QS(()=>{r&&(window.dispatchEvent(new Event(ey)),n())},50),i=ty(o);this.stopHistory=()=>{r=!1,i()}}reset(){var n;(n=this.stopHistory)==null||n.call(this),this.stopHistory=null,super.reset()}},gR=Dc.getInstance();function ny(e){gR.setup(e)}var FU=I.module("SDK");var Nc={color:"rgba(0, 0, 0, 0.15)",blur:"blur(8px)"};function hR(e){try{return ga(e).isDark()}catch(t){return!1}}function ry(e){return hR(e)?"#fafafa":"#18181b"}var SR=(e,t)=>{switch(t){case"page":return{overlay:e||en[ie.overlay],overlayBlur:"none"};case"none":return{overlay:"transparent",overlayBlur:"none"};case"blurred":return{overlay:Nc.color,overlayBlur:Nc.blur};case void 0:return{overlay:en[ie.overlay],overlayBlur:en[ie.overlayBlur]}}},oy=(e,t)=>{if(!e)return{theme:u({},en),logoUrl:t};let n=wn(e.backgroundColor,""),r=wn(e.loadingModalTextColor,""),{overlay:o,overlayBlur:i}=SR(n,e.loadingModalBackground);return{theme:S(u(u({},en),Sa(e)),{[ie.bg]:n||en[ie.bg],[ie.fg]:r||ry(n),[ie.overlay]:o,[ie.overlayBlur]:i}),logoUrl:e.loadingModalUseBrandLogo===!1?null:t,primaryFont:e.primaryFont}};var yR=I.module("SDK");function Hc(e){sm().then(({schedulerStyle:t,logoUrl:n,schedulerFormIds:r})=>{e==null||e(r);let o=oy(t,n);Kh(o);for(let i of Tn())va(i,o)}).catch(t=>{yR.warn("Failed to apply scheduler theme, loading modal will use default theme",t)})}var ay="data-default-preconnect",bR=e=>{try{return new URL(e).origin}catch(t){return null}},iy=(e,t)=>!!document.head.querySelector(`link[${ay}="1"][rel="${t}"][href="${e}"]`),sy=(e,t)=>{let n=document.createElement("link");n.rel=t,n.href=e,n.setAttribute(ay,"1"),t==="preconnect"&&(n.crossOrigin="anonymous"),document.head.appendChild(n)},ly=e=>{if(typeof document=="undefined")return;let t=new Set;for(let n of e){if(!n)continue;let r=bR(n);!r||t.has(r)||(t.add(r),iy(r,"dns-prefetch")||sy(r,"dns-prefetch"),iy(r,"preconnect")||sy(r,"preconnect"))}};function Uc(e){return e||"https://api.default.com"}var _R=I.module("Pixel"),ER=25,IR=200,Zi=null,Bc=new Set;function Vc(e,t){var o;if((o=e.__defaultPixel__)!=null&&o.key){t();return}if(Bc.add(t),Zi!=null)return;let n=Date.now(),r=0;Zi=e.setInterval(()=>{var a;r+=1;let i=!!((a=e.__defaultPixel__)!=null&&a.key);if(!i&&r<ER)return;Zi!=null&&e.clearInterval(Zi),Zi=null;let s=Bc;if(Bc=new Set,!i){_R.warn("No public key after 5s; the install snippet never set one");return}e.__dft_key_wait_ms=Date.now()-n;for(let l of s)l()},IR)}function LR(e){k.initialize({publicKey:e.publicKey,endpoint:e.endpoint,formsEndpoint:e.formsEndpoint,schedulerHandoffVerifyKey:e.schedulerHandoffVerifyKey})}function wR(e,t){ly([e,k.getFormsEndpoint(),...t])}function uy(e,t,n=[]){var s;let r=e.__defaultPixel__,o=r==null?void 0:r.key;if(!o)return null;LR({publicKey:o,endpoint:t,formsEndpoint:r.formsEndpoint,schedulerHandoffVerifyKey:r.schedulerHandoffVerifyKey});let i=(s=r.schedulerOrigins)!=null?s:dc(t);return j.setAllowedOrigins(i),r.autoDisplayScheduler!==void 0&&rS(r.autoDisplayScheduler),wR(t,[...n,...dc(t)]),o}function cy(e){return k.getFormsEndpoint()||Gt(e)||e}var dy=new WeakMap;function my(e,t=document){var i;let n=dy.get(t);if(n!=null&&n.has(e))return(i=n.get(e))!=null?i:null;n||(n=new Map,dy.set(t,n));let r=null,o=e.split(".");if(o.length>1&&!e.includes(":")&&!/^[\d.]+$/.test(e)){let s=`__dflt_cookie_scope_${Math.random().toString(36).slice(2)}`;for(let a=o.length-2;a>=0;a-=1){let l=o.slice(a).join("."),c=!1;try{t.cookie=`${s}=1; Domain=.${l}; Path=/; SameSite=Lax`,c=t.cookie.split(";").some(d=>d.trim()===`${s}=1`)}catch(d){break}finally{try{t.cookie=`${s}=; Domain=.${l}; Path=/; Max-Age=0; SameSite=Lax`}catch(d){}}if(c){r=l;break}}}return n.set(e,r),r}var RR="_dflt_",ko=365*24*60*60*1e3;function Cr(e){return`${RR}${e}`}function Wc(e,t,n,r,o=document){let i=my(r.hostname,o),s=i?`; Domain=.${i}`:"",a=r.protocol==="https:"?"; Secure":"";return`${e}=${encodeURIComponent(t)}; Max-Age=${Math.floor(n/1e3)}; Path=/${s}; SameSite=Lax${a}`}function fy(e,t){try{for(let n of t.cookie.split(";")){let[r,...o]=n.trim().split("=");if(r===e)return o.join("=")}}catch(n){}return null}function py(e,t=document){return fy(e,t)!==null}function gy(e,t=document){let n=fy(e,t);if(n===null)return null;try{return decodeURIComponent(n)}catch(r){return null}}var $c=1800*1e3,zc=I.module("Session");function hy(e){Vd(e)}function Sy(e){try{document.cookie=e}catch(t){zc.debug("Cookie access blocked")}}function Qi(e,t,n=ko){Sy(Wc(Cr(e),t,n,window.location))}function ke(e){return gy(Cr(e))}function TR(e){let t=Cr(e);py(t)&&Sy(Wc(t,"",0,window.location))}function An(e,t){try{let n=Cr(e);sessionStorage.setItem(n,t)}catch(n){zc.debug("Failed to set session storage")}}function mt(e){try{let t=Cr(e);return sessionStorage.getItem(t)}catch(t){return null}}function Oo(e){try{let t=Cr(e);sessionStorage.removeItem(t)}catch(t){zc.debug("Failed to remove session storage")}}var Gc=Symbol.for("default.withdrawn.identities"),Kc=typeof window=="undefined"?globalThis:window;function jc(e){var n,r;let t=(n=Kc[Gc])!=null?n:Kc[Gc]={};return(r=t[e])!=null?r:t[e]={seen:new Set,withdrawn:new Set}}function Ut(e,t){if(!t||e!=="aid"&&e!=="sid")return!1;let n=jc(e);return n.seen.add(t),n.withdrawn.has(t)}function yy(e,t){let n=ke(e);for(let r of[t,mt(e)])r&&r!==n&&jc(e).withdrawn.add(r)}function by(){for(let e of["aid","sid"]){let t=jc(e);for(let n of[ke(e),mt(e)])n&&t.seen.add(n);for(let n of t.seen)t.withdrawn.add(n)}}function qc(e){var t;return(t=ke(e))!=null?t:mt(e)}function Xc(e){let t=mt(e);if(t&&!Ut(e,t))return t;let n=ke(e);return Ut(e,n)?null:n}function Ar(e,t,n){if(e==="consent"){Qi(e,t,n),An(e,t);return}!D()||Ut(e,t)||(Qi(e,t,n),An(e,t))}function Po(e){let t=mt(e);return Ut(e,t)?null:t}function Do(e,t){!D()||Ut(e,t)||(An(e,t),Qi(e,t))}function No(e){TR(e),Oo(e)}function Yc(e){Oo(e)}var on="consent",Zc=1,Jc=Symbol.for("default.consent.revocations");function Ho(e){if(!e)return null;try{let t=JSON.parse(e);if(typeof t!="object"||t===null||t.v!==Zc||typeof t.analytics!="boolean"||typeof t.marketing!="boolean")return null;let n=Number.isInteger(t.r)&&t.r>=0?t.r:void 0;return u({analytics:t.analytics,marketing:t.marketing,v:t.v},n!==void 0&&{r:n})}catch(t){return null}}function Qc(e,t){var s;if(typeof window=="undefined")return!1;let n=window,r=(s=n[Jc])!=null?s:n[Jc]=new Map,o=r.get(e);r.set(e,t);let i=null;try{i=sessionStorage.getItem(e)}catch(a){}try{i!==String(t)&&sessionStorage.setItem(e,String(t))}catch(a){}return o!==void 0?o!==t:i!==null&&i!==String(t)}var _y=I.module("Consent");var es=Symbol.for("default.consent.fallback"),ts=typeof window=="undefined"?globalThis:window;function Ey(e,t){let n=Ho(e!=null?e:null);if(!n||!e)return null;let r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,"cookieAtWrite")?r.cookieAtWrite===t||!Ho(t)?n:null:Ho(t)?null:n}function Iy(e){let t=Ey(ts[es],e);if(t)return t;let n=mt(on),r=Ey(n,e);if(r&&n)return ts[es]=n,r;let o=Ho(e);if(o){let i=JSON.stringify(S(u({},o),{cookieAtWrite:e}));ts[es]=i,Ho(n)&&An(on,i)}return o}function Mn(){return Iy(ke(on))}function Ly(e){if(typeof e!="object"||e===null||Array.isArray(e))return _y.warn("Ignoring a consent payload that is not an object"),null;let t=e,n={};for(let r of["analytics","marketing"]){let o=t[r];o!==void 0&&(typeof o!="boolean"&&_y.warn(`Treating a non-boolean ${r} consent value as a denial`),n[r]=o===!0)}return n}function wy(e){var a,l,c,d,m,f;let t=ke(on),n=Iy(t),r=(l=(a=e.analytics)!=null?a:n==null?void 0:n.analytics)!=null?l:!0,o=(c=n==null?void 0:n.analytics)!=null?c:!0,i={analytics:r,marketing:(m=(d=e.marketing)!=null?d:n==null?void 0:n.marketing)!=null?m:!0,v:Zc,r:((f=n==null?void 0:n.r)!=null?f:0)+(o&&!r?1:0)},s=JSON.stringify(i);if(Qi(on,s),ke(on)===s)delete ts[es],Oo(on);else{let p=JSON.stringify(S(u({},i),{cookieAtWrite:t}));ts[es]=p,An(on,t===null?s:p)}}function Ry(){var e,t;return(t=(e=Mn())==null?void 0:e.r)!=null?t:0}var Uy="5.0.1";function Za(e,t){return new Promise(n=>setTimeout(n,e,t))}function FR(){return new Promise(e=>{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function vR(e,t=1/0){let{requestIdleCallback:n}=window;return n?new Promise(r=>n.call(window,()=>r(),{timeout:t})):Za(Math.min(e,t))}function By(e){return!!e&&typeof e.then=="function"}function Ty(e,t){try{let n=e();By(n)?n.then(r=>t(!0,r),r=>t(!1,r)):t(!0,n)}catch(n){t(!1,n)}}function Fy(e,t,n=16){return R(this,null,function*(){let r=Array(e.length),o=Date.now();for(let i=0;i<e.length;++i){r[i]=t(e[i],i);let s=Date.now();s>=o+n&&(o=s,yield FR())}return r})}function ns(e){return e.then(void 0,()=>{}),e}function xR(e,t){for(let n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function CR(e,t){return!xR(e,t)}function id(e){return parseInt(e)}function Rt(e){return parseFloat(e)}function sn(e,t){return typeof e=="number"&&isNaN(e)?t:e}function He(e){return e.reduce((t,n)=>t+(n?1:0),0)}function Vy(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{let n=1/t;return Math.round(e*n)/n}}function AR(e){var t,n;let r=`Unexpected syntax '${e}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(e),i=o[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=(c,d)=>{s[c]=s[c]||[],s[c].push(d)};for(;;){let c=a.exec(o[2]);if(!c)break;let d=c[0];switch(d[0]){case".":l("class",d.slice(1));break;case"#":l("id",d.slice(1));break;case"[":{let m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(d);if(m)l(m[1],(n=(t=m[4])!==null&&t!==void 0?t:m[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[i,s]}function MR(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function kn(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,a=t[0]&65535,l=t[1]>>>16,c=t[1]&65535,d=0,m=0,f=0,p=0;p+=i+c,f+=p>>>16,p&=65535,f+=o+l,m+=f>>>16,f&=65535,m+=r+a,d+=m>>>16,m&=65535,d+=n+s,d&=65535,e[0]=d<<16|m,e[1]=f<<16|p}function ft(e,t){let n=e[0]>>>16,r=e[0]&65535,o=e[1]>>>16,i=e[1]&65535,s=t[0]>>>16,a=t[0]&65535,l=t[1]>>>16,c=t[1]&65535,d=0,m=0,f=0,p=0;p+=i*c,f+=p>>>16,p&=65535,f+=o*c,m+=f>>>16,f&=65535,f+=i*l,m+=f>>>16,f&=65535,m+=r*c,d+=m>>>16,m&=65535,m+=o*l,d+=m>>>16,m&=65535,m+=i*a,d+=m>>>16,m&=65535,d+=n*c+r*l+o*a+i*s,d&=65535,e[0]=d<<16|m,e[1]=f<<16|p}function Uo(e,t){let n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function Qe(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function q(e,t){e[0]^=t[0],e[1]^=t[1]}var kR=[4283543511,3981806797],OR=[3301882366,444984403];function vy(e){let t=[0,e[0]>>>1];q(e,t),ft(e,kR),t[1]=e[0]>>>1,q(e,t),ft(e,OR),t[1]=e[0]>>>1,q(e,t)}var Xa=[2277735313,289559509],Ya=[1291169091,658871167],xy=[0,5],PR=[0,1390208809],DR=[0,944331445];function NR(e,t){let n=MR(e);t=t||0;let r=[0,n.length],o=r[1]%16,i=r[1]-o,s=[0,t],a=[0,t],l=[0,0],c=[0,0],d;for(d=0;d<i;d=d+16)l[0]=n[d+4]|n[d+5]<<8|n[d+6]<<16|n[d+7]<<24,l[1]=n[d]|n[d+1]<<8|n[d+2]<<16|n[d+3]<<24,c[0]=n[d+12]|n[d+13]<<8|n[d+14]<<16|n[d+15]<<24,c[1]=n[d+8]|n[d+9]<<8|n[d+10]<<16|n[d+11]<<24,ft(l,Xa),Uo(l,31),ft(l,Ya),q(s,l),Uo(s,27),kn(s,a),ft(s,xy),kn(s,PR),ft(c,Ya),Uo(c,33),ft(c,Xa),q(a,c),Uo(a,31),kn(a,s),ft(a,xy),kn(a,DR);l[0]=0,l[1]=0,c[0]=0,c[1]=0;let m=[0,0];switch(o){case 15:m[1]=n[d+14],Qe(m,48),q(c,m);case 14:m[1]=n[d+13],Qe(m,40),q(c,m);case 13:m[1]=n[d+12],Qe(m,32),q(c,m);case 12:m[1]=n[d+11],Qe(m,24),q(c,m);case 11:m[1]=n[d+10],Qe(m,16),q(c,m);case 10:m[1]=n[d+9],Qe(m,8),q(c,m);case 9:m[1]=n[d+8],q(c,m),ft(c,Ya),Uo(c,33),ft(c,Xa),q(a,c);case 8:m[1]=n[d+7],Qe(m,56),q(l,m);case 7:m[1]=n[d+6],Qe(m,48),q(l,m);case 6:m[1]=n[d+5],Qe(m,40),q(l,m);case 5:m[1]=n[d+4],Qe(m,32),q(l,m);case 4:m[1]=n[d+3],Qe(m,24),q(l,m);case 3:m[1]=n[d+2],Qe(m,16),q(l,m);case 2:m[1]=n[d+1],Qe(m,8),q(l,m);case 1:m[1]=n[d],q(l,m),ft(l,Xa),Uo(l,31),ft(l,Ya),q(s,l)}return q(s,r),q(a,r),kn(s,a),kn(a,s),vy(s),vy(a),kn(s,a),kn(a,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}function HR(e){var t;return u({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
`)},e)}function UR(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function BR(e){return typeof e!="function"}function VR(e,t){let n=ns(new Promise(r=>{let o=Date.now();Ty(e.bind(null,t),(...i)=>{let s=Date.now()-o;if(!i[0])return r(()=>({error:i[1],duration:s}));let a=i[1];if(BR(a))return r(()=>({value:a,duration:s}));r(()=>new Promise(l=>{let c=Date.now();Ty(a,(...d)=>{let m=s+Date.now()-c;if(!d[0])return l({error:d[1],duration:m});l({value:d[1],duration:m})})}))})}));return function(){return n.then(o=>o())}}function WR(e,t,n,r){let o=Object.keys(e).filter(s=>CR(n,s)),i=ns(Fy(o,s=>VR(e[s],t),r));return function(){return R(this,null,function*(){let a=yield i,l=yield Fy(a,m=>ns(m()),r),c=yield Promise.all(l),d={};for(let m=0;m<o.length;++m)d[o[m]]=c[m];return d})}}function Wy(){let e=window,t=navigator;return He(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function GR(){let e=window,t=navigator;return He(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Wy()}function rs(){let e=window,t=navigator;return He(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Tt(){let e=window,t=navigator;return He(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function sd(){let e=window,{HTMLElement:t,Document:n}=e;return He(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function os(){let e=window;return UR(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Gy(){var e,t;let n=window;return He(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function KR(){let e=window;return He([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function $R(){let e=window,{URLPattern:t}=e;return He(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function zR(){let e=window;return He(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function is(){let e=window,t=navigator,{CSS:n,HTMLButtonElement:r}=e;return He([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function jR(){if(navigator.platform==="iPad")return!0;let e=screen,t=e.width/e.height;return He(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function qR(){let e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function XR(){let e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function ad(){let e=rs(),t=Gy(),n=window,r=navigator,o="connection";return e?He([!("SharedWorker"in n),r[o]&&"ontypechange"in r[o],!("sinkId"in new Audio)])>=2:t?He(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function YR(){let e=navigator,t=window,n=Audio.prototype,{visualViewport:r}=t;return He(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function JR(){return eT()?-4:ZR()}function ZR(){let e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(QR())return-1;let n=4500,r=5e3,o=new t(1,r,44100),i=o.createOscillator();i.type="triangle",i.frequency.value=1e4;let s=o.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,i.connect(s),s.connect(o.destination),i.start(0);let[a,l]=tT(o),c=ns(a.then(d=>nT(d.getChannelData(0).subarray(n)),d=>{if(d.name==="timeout"||d.name==="suspended")return-3;throw d}));return()=>(l(),c)}function QR(){return Tt()&&!sd()&&!zR()}function eT(){return Tt()&&is()&&os()||rs()&&YR()&&$R()}function tT(e){let i=()=>{};return[new Promise((a,l)=>{let c=!1,d=0,m=0;e.oncomplete=g=>a(g.renderedBuffer);let f=()=>{setTimeout(()=>l(Cy("timeout")),Math.min(500,m+5e3-Date.now()))},p=()=>{try{let g=e.startRendering();switch(By(g)&&ns(g),e.state){case"running":m=Date.now(),c&&f();break;case"suspended":document.hidden||d++,c&&d>=3?l(Cy("suspended")):setTimeout(p,500);break}}catch(g){l(g)}};p(),i=()=>{c||(c=!0,m>0&&f())}}),i]}function nT(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Cy(e){let t=new Error(e);return t.name=e,t}function Ky(e,t,n=50){return R(this,null,function*(){var r,o,i;let s=document;for(;!s.body;)yield Za(n);let a=s.createElement("iframe");try{for(yield new Promise((l,c)=>{let d=!1,m=()=>{d=!0,l()},f=h=>{d=!0,c(h)};a.onload=m,a.onerror=f;let{style:p}=a;p.setProperty("display","block","important"),p.position="absolute",p.top="0",p.left="0",p.visibility="hidden",t&&"srcdoc"in a?a.srcdoc=t:a.src="about:blank",s.body.appendChild(a);let g=()=>{var h,b;d||(((b=(h=a.contentWindow)===null||h===void 0?void 0:h.document)===null||b===void 0?void 0:b.readyState)==="complete"?m():setTimeout(g,10))};g()});!(!((o=(r=a.contentWindow)===null||r===void 0?void 0:r.document)===null||o===void 0)&&o.body);)yield Za(n);return yield e(a,a.contentWindow)}finally{(i=a.parentNode)===null||i===void 0||i.removeChild(a)}})}function rT(e){let[t,n]=AR(e),r=document.createElement(t!=null?t:"div");for(let o of Object.keys(n)){let i=n[o].join(" ");o==="style"?oT(r.style,i):r.setAttribute(o,i)}return r}function oT(e,t){for(let n of t.split(";")){let r=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(r){let[,o,i,,s]=r;e.setProperty(o,i,s||"")}}}function iT(){let e=window;for(;;){let t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}var sT="mmMwWLliI0O&1",aT="48px",Bo=["monospace","sans-serif","serif"],Ay=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function lT(){return Ky((n,r)=>R(null,[n,r],function*(e,{document:t}){let o=t.body;o.style.fontSize=aT;let i=t.createElement("div");i.style.setProperty("visibility","hidden","important");let s={},a={},l=h=>{let b=t.createElement("span"),{style:T}=b;return T.position="absolute",T.top="0",T.left="0",T.fontFamily=h,b.textContent=sT,i.appendChild(b),b},c=(h,b)=>l(`'${h}',${b}`),d=()=>Bo.map(l),m=()=>{let h={};for(let b of Ay)h[b]=Bo.map(T=>c(b,T));return h},f=h=>Bo.some((b,T)=>h[T].offsetWidth!==s[b]||h[T].offsetHeight!==a[b]),p=d(),g=m();o.appendChild(i);for(let h=0;h<Bo.length;h++)s[Bo[h]]=p[h].offsetWidth,a[Bo[h]]=p[h].offsetHeight;return Ay.filter(h=>f(g[h]))}))}function uT(){let e=navigator.plugins;if(!e)return;let t=[];for(let n=0;n<e.length;++n){let r=e[n];if(!r)continue;let o=[];for(let i=0;i<r.length;++i){let s=r[i];o.push({type:s.type,suffixes:s.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}return t}function cT(){return dT(yT())}function dT(e){let t=!1,n,r,[o,i]=mT();return fT(o,i)?(t=pT(i),e?n=r="skipped":[n,r]=gT(o,i)):n=r="unsupported",{winding:t,geometry:n,text:r}}function mT(){let e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function fT(e,t){return!!(t&&e.toDataURL)}function pT(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function gT(e,t){hT(e,t);let n=ed(e),r=ed(e);return n!==r?["unstable","unstable"]:(ST(e,t),[ed(e),n])}function hT(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';let n="Cwm fjordbank gly \u{1F603}";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function ST(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(let[n,r,o]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(r,o,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function ed(e){return e.toDataURL()}function yT(){return Tt()&&is()&&os()}function bT(){let e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=id(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch(o){n=!1}let r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function _T(){return navigator.oscpu}function ET(){let e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))rs()&&KR()||t.push(e.languages);else if(typeof e.languages=="string"){let r=e.languages;r&&t.push(r.split(","))}return t}function IT(){return window.screen.colorDepth}function LT(){return sn(Rt(navigator.deviceMemory),void 0)}function wT(){if(!(Tt()&&is()&&os()))return RT()}function RT(){let e=screen,t=r=>sn(id(r),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var TT=2500,FT=10,Ja,td;function vT(){if(td!==void 0)return;let e=()=>{let t=rd();od(t)?td=setTimeout(e,TT):(Ja=t,td=void 0)};e()}function xT(){return vT(),()=>R(null,null,function*(){let e=rd();if(od(e)){if(Ja)return[...Ja];qR()&&(yield XR(),e=rd())}return od(e)||(Ja=e),e})}function CT(){if(Tt()&&is()&&os())return()=>Promise.resolve(void 0);let e=xT();return()=>R(null,null,function*(){let t=yield e(),n=r=>r===null?null:Vy(r,FT);return[n(t[0]),n(t[1]),n(t[2]),n(t[3])]})}function rd(){let e=screen;return[sn(Rt(e.availTop),null),sn(Rt(e.width)-Rt(e.availWidth)-sn(Rt(e.availLeft),0),null),sn(Rt(e.height)-Rt(e.availHeight)-sn(Rt(e.availTop),0),null),sn(Rt(e.availLeft),null)]}function od(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function AT(){return sn(id(navigator.hardwareConcurrency),void 0)}function MT(){var e;let t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){let r=new t().resolvedOptions().timeZone;if(r)return r}let n=-kT();return`UTC${n>=0?"+":""}${n}`}function kT(){let e=new Date().getFullYear();return Math.max(Rt(new Date(e,0,1).getTimezoneOffset()),Rt(new Date(e,6,1).getTimezoneOffset()))}function OT(){try{return!!window.sessionStorage}catch(e){return!0}}function PT(){try{return!!window.localStorage}catch(e){return!0}}function DT(){if(!(Wy()||GR()))try{return!!window.indexedDB}catch(e){return!0}}function NT(){return!!window.openDatabase}function HT(){return navigator.cpuClass}function UT(){let{platform:e}=navigator;return e==="MacIntel"&&Tt()&&!sd()?jR()?"iPad":"iPhone":e}function BT(){return navigator.vendor||""}function VT(){let e=[];for(let t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){let n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function WT(){let e=document;try{e.cookie="cookietest=1; SameSite=Strict;";let t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(t){return!1}}function GT(){let e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function KT(){return R(this,arguments,function*({debug:e}={}){if(!$T())return;let t=GT(),n=Object.keys(t),r=[].concat(...n.map(s=>t[s])),o=yield zT(r);e&&jT(t,o);let i=n.filter(s=>{let a=t[s];return He(a.map(c=>o[c]))>a.length*.6});return i.sort(),i})}function $T(){return Tt()||ad()}function zT(e){return R(this,null,function*(){var t;let n=document,r=n.createElement("div"),o=new Array(e.length),i={};My(r);for(let s=0;s<e.length;++s){let a=rT(e[s]);a.tagName==="DIALOG"&&a.show();let l=n.createElement("div");My(l),l.appendChild(a),r.appendChild(l),o[s]=a}for(;!n.body;)yield Za(50);n.body.appendChild(r);try{for(let s=0;s<e.length;++s)o[s].offsetParent||(i[e[s]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return i})}function My(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function jT(e,t){let n="DOM blockers debug:\n```";for(let r of Object.keys(e)){n+=`
${r}:`;for(let o of e[r])n+=`
  ${t[o]?"\u{1F6AB}":"\u27A1\uFE0F"} ${o}`}console.log(`${n}
\`\`\``)}function qT(){for(let e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function XT(){if(ky("inverted"))return!0;if(ky("none"))return!1}function ky(e){return matchMedia(`(inverted-colors: ${e})`).matches}function YT(){if(Oy("active"))return!0;if(Oy("none"))return!1}function Oy(e){return matchMedia(`(forced-colors: ${e})`).matches}var JT=100;function ZT(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=JT;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function QT(){if(Vo("no-preference"))return 0;if(Vo("high")||Vo("more"))return 1;if(Vo("low")||Vo("less"))return-1;if(Vo("forced"))return 10}function Vo(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function eF(){if(Py("reduce"))return!0;if(Py("no-preference"))return!1}function Py(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function tF(){if(Dy("reduce"))return!0;if(Dy("no-preference"))return!1}function Dy(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function nF(){if(Ny("high"))return!0;if(Ny("standard"))return!1}function Ny(e){return matchMedia(`(dynamic-range: ${e})`).matches}var H=Math,Ne=()=>0;function rF(){let e=H.acos||Ne,t=H.acosh||Ne,n=H.asin||Ne,r=H.asinh||Ne,o=H.atanh||Ne,i=H.atan||Ne,s=H.sin||Ne,a=H.sinh||Ne,l=H.cos||Ne,c=H.cosh||Ne,d=H.tan||Ne,m=H.tanh||Ne,f=H.exp||Ne,p=H.expm1||Ne,g=H.log1p||Ne,h=x=>H.pow(H.PI,x),b=x=>H.log(x+H.sqrt(x*x-1)),T=x=>H.log(x+H.sqrt(x*x+1)),v=x=>H.log((1+x)/(1-x))/2,F=x=>H.exp(x)-1/H.exp(x)/2,E=x=>(H.exp(x)+1/H.exp(x))/2,y=x=>H.exp(x)-1,C=x=>(H.exp(2*x)-1)/(H.exp(2*x)+1),O=x=>H.log(1+x);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:b(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:T(1),atanh:o(.5),atanhPf:v(.5),atan:i(.5),sin:s(-1e300),sinh:a(1),sinhPf:F(1),cos:l(10.000000000123),cosh:c(1),coshPf:E(1),tan:d(-1e300),tanh:m(1),tanhPf:C(1),exp:f(1),expm1:p(1),expm1Pf:y(1),log1p:g(10),log1pPf:O(10),powPI:h(-100)}}var oF="mmMwWLliI0fiflO&1",nd={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function iF(){return sF((e,t)=>{let n={},r={};for(let o of Object.keys(nd)){let[i={},s=oF]=nd[o],a=e.createElement("span");a.textContent=s,a.style.whiteSpace="nowrap";for(let l of Object.keys(i)){let c=i[l];c!==void 0&&(a.style[l]=c)}n[o]=a,t.append(e.createElement("br"),a)}for(let o of Object.keys(nd))r[o]=n[o].getBoundingClientRect().width;return r})}function sF(e,t=4e3){return Ky((n,r)=>{let o=r.document,i=o.body,s=i.style;s.width=`${t}px`,s.webkitTextSizeAdjust=s.textSizeAdjust="none",rs()?i.style.zoom=`${1/r.devicePixelRatio}`:Tt()&&(i.style.zoom="reset");let a=o.createElement("div");return a.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),i.appendChild(a),e(o,i)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function aF(){return navigator.pdfViewerEnabled}function lF(){let e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function uF(){let{ApplePaySession:e}=window;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(cF())return-3;try{return e.canMakePayments()?1:0}catch(t){return dF(t)}}var cF=iT;function dF(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function mF(){var e;let t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var $y=-1,zy=-2,fF=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),pF=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),gF=["FRAGMENT_SHADER","VERTEX_SHADER"],hF=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],jy="WEBGL_debug_renderer_info",SF="WEBGL_polygon_mode";function yF({cache:e}){var t,n,r,o,i,s;let a=qy(e);if(!a)return $y;if(!Yy(a))return zy;let l=Xy()?null:a.getExtension(jy);return{version:((t=a.getParameter(a.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=a.getParameter(a.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:l?(r=a.getParameter(l.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((o=a.getParameter(a.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:l?(i=a.getParameter(l.UNMASKED_RENDERER_WEBGL))===null||i===void 0?void 0:i.toString():"",shadingLanguageVersion:((s=a.getParameter(a.SHADING_LANGUAGE_VERSION))===null||s===void 0?void 0:s.toString())||""}}function bF({cache:e}){let t=qy(e);if(!t)return $y;if(!Yy(t))return zy;let n=t.getSupportedExtensions(),r=t.getContextAttributes(),o=[],i=[],s=[],a=[],l=[];if(r)for(let d of Object.keys(r))i.push(`${d}=${r[d]}`);let c=Hy(t);for(let d of c){let m=t[d];s.push(`${d}=${m}${fF.has(m)?`=${t.getParameter(m)}`:""}`)}if(n)for(let d of n){if(d===jy&&Xy()||d===SF&&IF())continue;let m=t.getExtension(d);if(!m){o.push(d);continue}for(let f of Hy(m)){let p=m[f];a.push(`${f}=${p}${pF.has(p)?`=${t.getParameter(p)}`:""}`)}}for(let d of gF)for(let m of hF){let f=_F(t,d,m);l.push(`${d}.${m}=${f.join(",")}`)}return a.sort(),s.sort(),{contextAttributes:i,parameters:s,shaderPrecisions:l,extensions:n,extensionParameters:a,unsupportedExtensions:o}}function qy(e){if(e.webgl)return e.webgl.context;let t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(let r of["webgl","experimental-webgl"]){try{n=t.getContext(r)}catch(o){}if(n)break}return e.webgl={context:n},n}function _F(e,t,n){let r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Hy(e){return Object.keys(e.__proto__).filter(EF)}function EF(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function Xy(){return Gy()}function IF(){return rs()||Tt()}function Yy(e){return typeof e.getParameter=="function"}function LF(){if(!(ad()||Tt()))return-2;if(!window.AudioContext)return-1;let t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function wF(){if(!window.Intl)return-1;let e=window.Intl.DateTimeFormat;if(!e)return-2;let t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}var RF={fonts:lT,domBlockers:KT,fontPreferences:iF,audio:JR,screenFrame:CT,canvas:cT,osCpu:_T,languages:ET,colorDepth:IT,deviceMemory:LT,screenResolution:wT,hardwareConcurrency:AT,timezone:MT,sessionStorage:OT,localStorage:PT,indexedDB:DT,openDatabase:NT,cpuClass:HT,platform:UT,plugins:uT,touchSupport:bT,vendor:BT,vendorFlavors:VT,cookiesEnabled:WT,colorGamut:qT,invertedColors:XT,forcedColors:YT,monochrome:ZT,contrast:QT,reducedMotion:eF,reducedTransparency:tF,hdr:nF,math:rF,pdfViewerEnabled:aF,architecture:lF,applePay:uF,privateClickMeasurement:mF,audioBaseLatency:LF,dateTimeLocale:wF,webGlBasics:yF,webGlExtensions:bF};function TF(e){return WR(RF,e,[])}var FF="$ if upgrade to Pro: https://fpjs.dev/pro";function vF(e){let t=xF(e),n=CF(t);return{score:t,comment:FF.replace(/\$/g,`${n}`)}}function xF(e){if(ad())return .4;if(Tt())return sd()&&!(is()&&os())?.5:.3;let t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function CF(e){return Vy(.99+.01*e,1e-4)}function AF(e){let t="";for(let n of Object.keys(e).sort()){let r=e[n],o="error"in r?"error":JSON.stringify(r.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return t}function Jy(e){return JSON.stringify(e,(t,n)=>n instanceof Error?HR(n):n,2)}function Zy(e){return NR(AF(e))}function MF(e){let t,n=vF(e);return{get visitorId(){return t===void 0&&(t=Zy(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:Uy}}function kF(e=50){return vR(e,e*2)}function OF(e,t){let n=Date.now();return{get(o){return R(this,null,function*(){let i=Date.now(),s=yield e(),a=MF(s);return(t||o!=null&&o.debug)&&console.log(`Copy the text below to get the debug data:

\`\`\`
version: ${a.version}
userAgent: ${navigator.userAgent}
timeBetweenLoadAndGet: ${i-n}
visitorId: ${a.visitorId}
components: ${Jy(s)}
\`\`\``),a})}}}function PF(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{let e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${Uy}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}function DF(){return R(this,arguments,function*(e={}){var t;(!((t=e.monitoring)!==null&&t!==void 0)||t)&&PF();let{delayFallback:n,debug:r}=e;yield kF(n);let o=TF({cache:{},debug:r});return OF(o,r)})}var Qy={load:DF,hashComponents:Zy,componentsToDebugString:Jy};var Ue=I.module("Identity");function NF(){var e;return(e=window.__dft_fingerprint_probe__)!=null||(window.__dft_fingerprint_probe__=Qy.load().then(t=>t.get()).then(t=>t.visitorId)),window.__dft_fingerprint_probe__}var ld=class e extends Ce{constructor(){super(...arguments);this.anonymousId=null;this.initPromise=null;this.generation=0}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){return R(this,null,function*(){return D(),this.initPromise?(Ue.debug("Init already in progress, returning existing promise"),this.initPromise):(Ue.debug("Initializing fingerprint manager"),this.initPromise=this.doInit(),this.initPromise)})}doInit(){return R(this,null,function*(){let n=D(),r=this.generation;if(!n)return Ue.debug("Analytics consent withheld, skipping FingerprintJS and using an ephemeral id"),this.adoptEphemeralId();let o=Xc("aid");if(o)return this.anonymousId=o,this.markInitialized(),Ue.success(`Restored anonymousId ${o.slice(0,8)}... from cache`),o;Ue.debug("No cached anonymousId, generating new one");try{Ue.debug("Loading FingerprintJS...");let i=yield NF(),s=D();return r!==this.generation||!s?(Ue.debug("Consent was revoked mid-init, discarding FingerprintJS result"),this.getAnonymousId()):(this.anonymousId=Ut("aid",i)?this.generateFallbackId():i,Ar("aid",this.anonymousId,ko),this.markInitialized(),Ue.success(`Generated anonymousId ${this.anonymousId.slice(0,8)}... via FingerprintJS`),this.anonymousId)}catch(i){Ue.warn("FingerprintJS failed, using fallback",i);let s=this.generateFallbackId(),a=D();return r!==this.generation||!a?(Ue.debug("Consent was revoked mid-init, discarding fallback result"),this.getAnonymousId()):(this.anonymousId=s,Ar("aid",this.anonymousId,ko),this.markInitialized(),Ue.success(`Generated fallback anonymousId ${this.anonymousId.slice(0,8)}...`),this.anonymousId)}})}adoptEphemeralId(){return this.anonymousId=this.generateFallbackId(),this.markInitialized(),Ue.success(`Generated ephemeral anonymousId ${this.anonymousId.slice(0,8)}...`),this.anonymousId}generateFallbackId(){return Ng()}getAnonymousId(){let n=D();if(this.anonymousId)return this.anonymousId;if(!n)return this.adoptEphemeralId();let r=Xc("aid");return r?(this.anonymousId=r,this.initialized||this.markInitialized(),Ue.debug(`Lazy-loaded anonymousId ${r.slice(0,8)}... from cache`),this.anonymousId):(this.initPromise?Ue.warn("getAnonymousId called while init in progress - generating emergency fallback"):Ue.error("getAnonymousId called before init started - generating emergency fallback"),this.anonymousId=this.generateFallbackId(),Ar("aid",this.anonymousId,ko),this.markInitialized(),this.anonymousId)}isReady(){return this.initialized&&this.anonymousId!==null}waitForReady(){return R(this,null,function*(){return D(),this.anonymousId?this.anonymousId:this.init()})}dropHeldId({withdrawn:n=!1}={}){n&&yy("aid",this.anonymousId),super.reset(),this.generation++,this.anonymousId=null,this.initPromise=null,window.__dft_fingerprint_probe__=void 0,Oo("aid")}reset(){this.dropHeldId(),No("aid")}},Be=ld.getInstance();var HF={ON:"on",OFF:"off",HANDLER_ERROR:"handler_error"};var Mr={HTTP:"http",TRANSPORT:"transport",UNPARSEABLE:"unparseable",MISSING_VECTOR:"missing_vector",HANDLER_ERROR:HF.HANDLER_ERROR,TIMEOUT:"timeout"},B2=[Mr.HTTP,Mr.TRANSPORT,Mr.UNPARSEABLE,Mr.MISSING_VECTOR,Mr.HANDLER_ERROR,Mr.TIMEOUT],Ft=u({NOT_SENT:"not_sent"},Mr),UF=60,eb=UF*1e3;var On={OFF:"website_intent_off",INCONCLUSIVE:"website_intent_inconclusive",INITIALIZATION_FAILED:"vector_initialization_failed"};var tb=1e4;var BF=["none","all","paths"];function nb(e){return typeof e=="string"&&BF.includes(e)}var VF=["all_scope","path_match","empty_paths","scope_off","path_disabled","org_disabled","legacy_no_pathname","page_unresolved","no_active_domains","lookup_error","no_vector_workflow"];var WF=e=>Br(VF,e),GF=e=>typeof e=="string"&&/^[a-f0-9]{16}$/.test(e);var rb={vectorScope:nb,decisionReason:WF,configRevision:GF};function kr(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let t=e,n={};for(let r of Object.keys(rb))rb[r](t[r])&&(n[r]=t[r]);return n}var vt={SESSION_START:"/api/session/start",SESSION_END:"/api/session/end",SESSION_REVEAL:"/api/session/reveal",PAGEVIEW:"/api/events/pageview",WEBSITE_INTENT:"/api/pixel/website-intent",WEBSITE_INTENT_CLIENT_SKIP:"/api/pixel/website-intent-client-skip",WEBSITE_INTENT_VECTOR_IDENTIFIED:"/api/pixel/website-intent-vector-identified",CAPTURE_FILTER_SKIP:"/api/pixel/capture-filter-skip"};var KF=I.module("API");function ib(e,t){var s,a;let n=k.getPublicKey();if(!n)return;let r=e.trim().slice(0,200);if(!r)return;let o=(s=t==null?void 0:t.pageHost)==null?void 0:s.trim().slice(0,253),i=(a=t==null?void 0:t.originHost)==null?void 0:a.trim().slice(0,253);ht(vt.CAPTURE_FILTER_SKIP,u(u(u(u(u(u(u(u({publicKey:n,html_form_id:r},t!=null&&t.reason?{reason:t.reason}:{}),o?{page_host:o}:{}),t!=null&&t.jsRoute?{js_route:!0}:{}),i?{origin_host:i}:{}),t!=null&&t.sourceKind?{source_kind:t.sourceKind}:{}),t!=null&&t.embedState?{embed_state:t.embedState}:{}),t!=null&&t.embedKind?{embed_kind:t.embedKind}:{}),t!=null&&t.formType?{form_type:t.formType}:{}),Or())}function Or(){let e=k.getEndpoint(),t="https://api.default.com";return!e||!t||e!=="https://api.default.com"?e:t}function sb(e){ht(vt.SESSION_START,e,Or())}function ud(e){ht(vt.SESSION_END,e,Or())}function ab(e){ht(vt.SESSION_REVEAL,e,Or())}function lb(e){ht(vt.PAGEVIEW,e,Or())}function an(e,t,n){return u({vector:null,unknownReason:e,clientRequestId:n},t!==void 0?{httpStatus:t}:{})}function ub(e,t){if(typeof e!="object"||e===null||!("vector"in e))return an(Ft.MISSING_VECTOR,void 0,t);let n=e.vector;return n===!0||n===!1?u({vector:n,clientRequestId:t},kr(e)):an(n===null?Ft.HANDLER_ERROR:Ft.MISSING_VECTOR,void 0,t)}function cb(e){return ub(e,"").vector}var $F=5e3;function ob(e){return R(this,null,function*(){try{return(yield fetch(e.url,{method:"POST",headers:{"Content-Type":"text/plain"},body:e.body,keepalive:!0})).ok}catch(t){return!1}})}function zF(e,t,n=!1){let r=Or(),o=S(u({},t),{build:Le}),i=qo(e,o,r);i&&ob(i).then(s=>{if(s||!n)return;let a=k.getEndpoint();if(!a||a===r)return;let l=qo(e,o,a);l&&ob(l)})}function Qa(e,t){let{pathname:n,clientRequestId:r,decision:o,fields:i,fallbackToPrimary:s}=t;zF(e,u(u(u(u({},o),r?{clientRequestId:r}:{}),n?{pathname:n}:{}),i),s)}function db(e){return!!(e.decisionReason||e.configRevision)}function jF(e,t,n){n.vector!==null||n.unknownReason===void 0||n.unknownReason!==Ft.NOT_SENT&&Qa(vt.WEBSITE_INTENT_CLIENT_SKIP,{pathname:e,clientRequestId:t,fields:u({unknownReason:n.unknownReason},n.httpStatus!==void 0?{httpStatus:n.httpStatus}:{}),fallbackToPrimary:!0})}function mb(e,t,n){Qa(vt.WEBSITE_INTENT_VECTOR_IDENTIFIED,{pathname:e,clientRequestId:t,decision:n})}function fb(e,t,n){db(n)&&Qa(vt.WEBSITE_INTENT_CLIENT_SKIP,{pathname:e,clientRequestId:t,decision:n,fields:{skipReason:On.OFF},fallbackToPrimary:!0})}function pb(e,t,n,r){db(r)&&Qa(vt.WEBSITE_INTENT_CLIENT_SKIP,{pathname:e,clientRequestId:t,decision:r,fields:{skipReason:On.INITIALIZATION_FAILED,initializationFailure:n},fallbackToPrimary:!0})}function gb(e,t){return R(this,null,function*(){let n=Nt(),r=new AbortController,o,i=new Promise(a=>{o=setTimeout(()=>{r.abort(),a(an(Ft.TIMEOUT,void 0,n))},$F)}),s;try{s=yield Promise.race([qF(e,r.signal,n,t),i])}finally{o!==void 0&&clearTimeout(o)}return jF(e,n,s),s})}function qF(e,t,n,r){return R(this,null,function*(){let o=qo(vt.WEBSITE_INTENT,S(u({},e?{pathname:e}:{}),{clientRequestId:n,vectorSdkState:r,build:Le}),Or());if(!o)return an(Ft.NOT_SENT,void 0,n);let i=yield gs(o,!1,t);if(i.outcome==="http")return an(Ft.HTTP,i.status,n);if(i.outcome==="transport")return an(Ft.TRANSPORT,void 0,n);try{let s=yield i.response.json();return ub(s,n)}catch(s){return t.aborted?an(Ft.TIMEOUT,void 0,n):(KF.warn("Failed to parse website intent response",s),an(Ft.UNPARSEABLE,void 0,n))}})}var hb=60*1e3,Z=I.module("Session"),cd=class e extends Ce{constructor(){super(...arguments);this.sessionId=null;this.lastActivity=null;this.lateRevealPending=null;this.sessionStartedWithAnalytics=!1;this.displacedTabSessionId=null;this.lrAtRequest=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(kp(()=>D()?this.touch().sessionId:null),!this.ensureNotInitialized()){Z.debug("Already initialized, skipping");return}Z.debug("Initializing session manager"),this.adoptSharedSession()||(this.endStaleSession(),Z.debug("No existing session found - starting new session"),this.startNewSession()),this.postInitialization()}adoptSharedSession(){let n=this.chooseSharedSession();return n&&this.sessionId&&this.lastActivity&&this.isSessionValid(this.lastActivity)&&n.lastActivity<this.lastActivity?{sessionId:this.sessionId,lastActivity:this.lastActivity,from:"sessionStorage"}:n?((this.sessionId!==n.sessionId||this.lastActivity!==n.lastActivity)&&this.restoreSession(n.from,n.sessionId,n.lastActivity),n):this.sessionId&&this.lastActivity&&this.isSessionValid(this.lastActivity)?{sessionId:this.sessionId,lastActivity:this.lastActivity,from:"sessionStorage"}:null}chooseSharedSession(){let n=this.readStoredSession(ke("sid"),ke("la"),"cookie"),r=this.readStoredSession(Po("sid"),Po("la"),"sessionStorage");return n.status==="valid"?(r.status!=="missing"&&r.sessionId!==n.sessionId&&(this.displacedTabSessionId=r.sessionId,r.status==="expired"&&this.handleExpiredSession(r.sessionId,r.lastActivity,"sessionStorage")),{sessionId:n.sessionId,lastActivity:n.lastActivity,from:n.from}):r.status==="valid"?{sessionId:r.sessionId,lastActivity:r.lastActivity,from:r.from}:null}readStoredSession(n,r,o){if(Ut("sid",n))return{status:"missing"};if(!n||r==null)return{status:"missing"};let i=Number(r);return Number.isNaN(i)?{status:"missing"}:this.isSessionValid(i)?{status:"valid",sessionId:n,lastActivity:i,from:o}:{status:"expired",sessionId:n,lastActivity:i}}restoreSession(n,r,o){this.sessionId=r,this.lastActivity=o,this.sessionStartedWithAnalytics=!0,n==="cookie"?(Do("sid",r),Do("la",String(o))):this.updateActivity();let i=n==="sessionStorage"?"sessionStorage":"cookie (shared across tabs)";Z.success(`Restored session ${this.formatSessionId(r)}... from ${i}`)}handleExpiredSession(n,r,o){let i=Math.round((Date.now()-r)/hb),s=o==="sessionStorage"?"Session":"Cookie session";Z.debug(`${s} expired ${i} minutes ago`),this.endExpiredSession(n,r)}postInitialization(){this.markInitialized(),Z.success("Session manager initialized")}formatSessionId(n){return n.slice(0,8)}isSessionValid(n){let r=Date.now()-n,o=r<$c;if(o){let i=Math.round(($c-r)/hb);Z.debug(`Session valid, ${i} minutes until timeout`)}return o}generateSessionId(){return Nt()}startNewSession(){this.displacedTabSessionId=null,this.lrAtRequest=null,this.sessionStartedWithAnalytics=D(),this.sessionId=this.generateSessionId(),this.lastActivity=Date.now(),Do("sid",this.sessionId),Do("la",this.lastActivity.toString()),Z.success(`Started new session ${this.formatSessionId(this.sessionId)}...`),this.sendSessionStart()}updateActivity(){this.sessionId&&(this.lastActivity=Date.now(),Do("la",this.lastActivity.toString()))}touch(){let n=D();return this.sessionId&&this.lastActivity&&this.isSessionValid(this.lastActivity)?(this.updateActivity(),{isNewSession:!1,sessionId:this.sessionId}):n&&this.adoptSharedSession()&&this.lastActivity&&this.isSessionValid(this.lastActivity)?(this.updateActivity(),{isNewSession:!1,sessionId:this.sessionId}):(this.sessionId&&this.lastActivity?Z.debug("Session timed out, rotating to new session"):Z.debug("No active session, starting new one"),this.endStaleSession(),this.startNewSession(),{isNewSession:!0,sessionId:this.sessionId})}endStaleSession(){if(this.sessionId&&this.lastActivity){this.endExpiredSession(this.sessionId,this.lastActivity);return}let n=this.readStoredSession(ke("sid"),ke("la"),"cookie"),r=this.readStoredSession(Po("sid"),Po("la"),"sessionStorage");r.status==="expired"?this.handleExpiredSession(r.sessionId,r.lastActivity,"sessionStorage"):n.status==="expired"&&this.handleExpiredSession(n.sessionId,n.lastActivity,"cookie")}endExpiredSession(n,r){Z.debug(`Ending expired session ${this.formatSessionId(n)}...`);let o=this.buildSessionEndPayload(n,r,"timeout",!1);o&&D()&&(ud(o),Z.sent("session end (expired)",{sessionId:this.formatSessionId(n),endedAt:new Date(r).toISOString()})),this.clearSessionStorage(),this.sessionId===n&&(this.sessionId=null,this.lastActivity=null)}endSession(n){this.sessionId&&(Z.debug(`Ending session (reason: ${n})`),this.sendSessionEnd(n),this.clearSessionState(),Z.success("Session ended and cleared from sessionStorage"))}clearSessionStorage(){Yc("sid"),Yc("la")}clearSessionState(){this.clearSessionStorage(),this.sessionId=null,this.lastActivity=null,this.sessionStartedWithAnalytics=!1,this.displacedTabSessionId=null,this.lrAtRequest=null}dropHeldSession(){super.reset(),this.sessionId=null,this.lastActivity=null,this.sessionStartedWithAnalytics=!1,this.clearSessionStorage()}reset(){this.dropHeldSession(),this.lateRevealPending=null,this.displacedTabSessionId=null,this.lrAtRequest=null,No("sid"),No("la"),No("lr")}sendSessionStart(){if(!D()){Z.debug("Analytics consent withheld, skipping session start");return}if(!this.sessionId){Z.warn("Cannot send session start: missing sessionId");return}let n=k.get();if(!n){Z.warn("Cannot send session start: missing config");return}let r=to(),o=ro(),i=qs(document.title),s=u(u(S(u(S(u({publicKey:n.publicKey,anonymousId:Be.getAnonymousId(),sessionId:this.sessionId,startedAt:this.lastActivity||Date.now(),pageUrl:window.location.href},i&&{pageTitle:i}),{referrer:document.referrer,utmParams:no()}),r&&{gclid:r}),{userAgent:navigator.userAgent}),o!==void 0&&{responseStatus:o}),this.consentFields());sb(s),s.marketingConsent&&$n()?this.stampLateRevealSent(this.sessionId):this.stampLateRevealPending(this.sessionId),Z.sent("session start",{sessionId:this.formatSessionId(this.sessionId)})}stampLateRevealSent(n){this.lateRevealPending=null,window.__dft_late_reveal_session__=n,Ar("lr",`sent:${n}`)}stampLateRevealPending(n){this.lateRevealPending=n,Ar("lr",`pending:${n}`)}sendSessionEnd(n){if(!D()){Z.debug("Analytics consent withheld, skipping session end");return}if(!this.sessionId)return;this.updateActivity();let r=this.buildSessionEndPayload(this.sessionId,this.lastActivity||Date.now(),n);r&&(ud(r),Z.sent("session end",{reason:n}))}buildSessionEndPayload(n,r,o,i=!0){let s=k.get();return s?u({publicKey:s.publicKey,anonymousId:Be.getAnonymousId(),sessionId:n,endedAt:r,reason:o},i?this.consentFields():{build:Le}):null}consentFields(){return{marketingConsent:zo(),consentSource:ds(),build:Le}}requestLateReveal(){var o;if(!D())return;let n=this.chooseSharedSession(),r=(o=n==null?void 0:n.sessionId)!=null?o:this.sessionId;r&&this.lateRevealWasSent(r)&&this.sessionIsLive(r,n)||(this.lrAtRequest==null&&(this.lrAtRequest={cookie:this.lateRevealMarker(ke("lr")),tab:this.lateRevealMarker(mt("lr"))}),n?this.stampLateRevealPending(n.sessionId):this.lateRevealPending=r!=null?r:!0)}sessionIsLive(n,r){return(r==null?void 0:r.sessionId)===n?!0:this.sessionId===n&&this.lastActivity!=null&&this.isSessionValid(this.lastActivity)}lateRevealWasSent(n){return window.__dft_late_reveal_session__===n||qc("lr")===`sent:${n}`}lateRevealIsPending(n){return this.lateRevealPending===!0||this.lateRevealPending===n||qc("lr")===`pending:${n}`}lateRevealMarker(n){return n!=null&&n.startsWith("pending:")?"pending":n!=null&&n.startsWith("sent:")?"sent":"absent"}flushLateReveal(){var l,c,d,m,f;if(!$n()||!D()||!zo())return;let n=k.get();if(!n||this.sessionId&&!this.sessionStartedWithAnalytics&&(this.sessionId=null,this.lastActivity=null,this.touch().isNewSession))return;let r=(l=this.displacedTabSessionId)!=null?l:Po("sid"),o=(d=(c=this.lrAtRequest)==null?void 0:c.cookie)!=null?d:this.lateRevealMarker(ke("lr")),i=(f=(m=this.lrAtRequest)==null?void 0:m.tab)!=null?f:this.lateRevealMarker(mt("lr")),s=this.adoptSharedSession();if(!s){this.lateRevealPending&&(this.lateRevealPending=null,this.touch());return}let a=s.sessionId;if(this.lateRevealWasSent(a)){this.lateRevealPending=null;return}this.lateRevealIsPending(a)&&(this.stampLateRevealSent(a),ab(u(S(u({publicKey:n.publicKey,anonymousId:Be.getAnonymousId(),sessionId:a,pageUrl:window.location.href,identitySource:s.from==="cookie"?"cookie":"tab"},r&&r!==a?{tabSessionId:r}:{}),{lrCookie:o,lrTab:i}),this.consentFields())),Z.sent("session reveal after marketing grant",{sessionId:this.formatSessionId(a)}))}sendSessionEndWithoutClearing(n){this.sessionId&&(Z.debug(`Sending session end beacon (reason: ${n}) without clearing state for potential reconciliation`),this.sendSessionEnd(n))}getSessionId(){let n=D(),r=ke("sid");if(this.sessionId&&(r==null||r===this.sessionId||Ut("sid",r)))return this.sessionId;if(n){let o=this.adoptSharedSession();if(o)return this.initialized||this.markInitialized(),o.sessionId}return this.sessionId?this.sessionId:(Z.warn("getSessionId called before init completed - generating session"),this.startNewSession(),this.markInitialized(),this.sessionId)}getLastActivity(){return this.lastActivity}isReady(){return this.initialized&&this.sessionId!==null}},_e=cd.getInstance();var Pn=I.module("Consent"),Sb={analytics:!0,marketing:!0},XF=()=>"_dflt_rev_index",dd=class e{constructor(){this.state=u({},Sb);this.source="default";this.storedSnapshot="null";this.listeners=[];this.observedRevocations=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){var r;let t=Mn(),n=this.noteRevocations((r=t==null?void 0:t.r)!=null?r:0);if(!t){n&&this.dropHeldIdentity();return}this.state={analytics:t.analytics,marketing:t.marketing},this.getConsentSource(),Pn.debug(`Restored consent state: ${JSON.stringify(this.state)}`),t.analytics?n&&this.dropHeldIdentity():(Pn.info("Restored analytics consent is withheld \u2014 purging any leftover persisted identity"),this.clearPersistedIdentity())}getConsent(){let t=this.state,{state:n,revocations:r}=this.sharedState();this.state=u({},n);let o=this.noteRevocations(r);return t.analytics&&!n.analytics?(Pn.info("Analytics consent revoked elsewhere \u2014 clearing persisted identity"),this.clearPersistedIdentity()):o&&n.analytics&&(Pn.info("Analytics consent was withdrawn and granted again elsewhere \u2014 dropping held identity"),this.dropHeldIdentity()),n}getConsentSource(){let t=Mn(),n=JSON.stringify(t);return t&&n!==this.storedSnapshot&&(this.source="stored",this.storedSnapshot=n),this.source}setConsent(t,n="api"){let r=Ly(t);if(!r)return;let o=this.state,{state:i,revocations:s}=this.sharedState(),a=this.noteRevocations(s),l=u(u({},i),r);this.state=l,this.source=n,this.persistConsent(l),this.noteRevocations(Ry()),o.analytics&&!l.analytics?(Pn.info("Analytics consent revoked \u2014 clearing persisted identity"),this.clearPersistedIdentity()):a&&l.analytics&&(Pn.info("Analytics consent was withdrawn and granted again elsewhere \u2014 dropping held identity"),this.dropHeldIdentity()),i.marketing&&!l.marketing&&Pn.info("Marketing consent revoked \u2014 future Vector loads/identify calls will be skipped (an already-injected Vector script cannot be retracted)"),Pn.success(`Consent updated: ${JSON.stringify(l)}`),this.listeners.forEach(c=>c(this.getConsent()))}onChange(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}noteRevocations(t){let n=Qc(XF(),t),r=this.observedRevocations!==null&&this.observedRevocations!==t;return this.observedRevocations=t,n||r}sharedState(){var n;let t=Mn();return t?{state:{analytics:t.analytics,marketing:t.marketing},revocations:(n=t.r)!=null?n:0}:{state:u({},this.state),revocations:0}}dropHeldIdentity(){Be.dropHeldId({withdrawn:!0}),_e.dropHeldSession(),Ks()}clearPersistedIdentity(){by(),Be.reset(),_e.reset(),Ks(),Bp()}persistConsent(t){wy(t),this.storedSnapshot=JSON.stringify(Mn())}reset(){this.state=u({},Sb),this.source="default",this.storedSnapshot="null",this.listeners=[],this.observedRevocations=null}},Ve=dd.getInstance();function yb(e,t=0){if(!e)return[];let n=[];for(let r of e.slice(t))!Array.isArray(r)||r[0]!=="setConsent"||n.push(r[1]);return n}var bb=new WeakSet;function _b(e){var i;if(typeof window=="undefined")return;let t=window.__defaultPixel__;if(!t)return;let n=(s,a)=>{t.consent=u(u({},t.consent),s),t.consentSource=a,e(s,a)},r=!bb.has(t);r&&t.consent&&!Mn()&&e(t.consent,(i=t.consentSource)!=null?i:"api");for(let s of yb(t.q))n(s,"queued");if(t.q=[],!r)return;bb.add(t);let o=t.consentSetterInstalled?t.setConsent:void 0;t.setConsent=s=>{o==null||o(s),n(s,"api")},t.consentSetterInstalled=!0}function Eb(){hy(()=>Ve.getConsent().analytics),Wd(()=>Ve.getConsent().marketing),Gd(()=>Ve.getConsentSource()),Ve.init(),_b((e,t)=>Ve.setConsent(e,t))}function Ib(e){let t=Ve.getConsent().marketing;return Ve.onChange(n=>{let r=!t&&n.marketing;t=n.marketing,r&&e()})}var pt=I.module("Vector"),Lb="https://cdn.vector.co/pixel.js",wb="89c23b71-2ba2-4fb3-90b6-e77270348967",el=class extends Error{constructor(n){super(n);this.reason=n}},Rb=eb,Tb=50,YF=3,JF=Rb;function md(e,t){return u(S(u(u({},e.vector?{on:!0}:{on:!1,skipReason:On.OFF,offRecorded:e.offRecorded}),t.clientRequestId?{clientRequestId:t.clientRequestId}:{}),{decisionSource:t.decisionSource,decisionAt:t.decisionAt}),kr(e))}function fd(e,t){return S(u({},kr(e)),{decisionSource:e.decisionSource,decisionAgeMs:Math.max(0,Date.now()-e.decisionAt),vectorSdkState:t})}function Fb(e,t){if(cb(e)===null)return!1;let n=e.at;return typeof n=="number"&&t>=n&&t-n<=Rb}function gd(e){let t=mt("wi");if(!t)return[];try{let n=JSON.parse(t);if(n.publicKey!==e||typeof n.pages!="object"||!n.pages)return[];let r=Date.now();return Object.entries(n.pages).filter(o=>Fb(o[1],r)).sort(([,o],[,i])=>o.at-i.at).map(([o,i])=>[o,u(u({vector:i.vector,at:i.at},kr(i)),i.offReported===!0?{offReported:!0}:{})])}catch(n){return[]}}function ZF(e,t){let n=gd(e).find(([r])=>r===t);return n?n[1]:null}function vb(e,t){let n={publicKey:e,pages:Object.fromEntries(t.slice(-Tb))};An("wi",JSON.stringify(n))}function QF(e,t,n,r){let o=gd(e).filter(([i])=>i!==t);o.push([t,u({vector:n,at:Date.now()},r)]),vb(e,o)}function ev(e,t){let n=gd(e);n.some(([r])=>r===t)&&vb(e,n.map(([r,o])=>[r,r===t?S(u({},o),{offReported:!0}):o]))}var pd=class e extends Ce{constructor(){super(...arguments);this.initPromise=null;this.pageAnswers=new Map;this.failedInitializations=0;this.retryNotBefore=0;this.reportedFailures=new Set}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){return R(this,null,function*(){return this.initPromise||(this.initPromise=this.performInit().finally(()=>{this.initPromise=null})),this.initPromise})}performInit(){return R(this,null,function*(){if(!Ve.getConsent().marketing){pt.debug("Marketing consent not granted, skipping Vector initialization");return}if(!wb){pt.warn("No VECTOR_PIXEL_ID configured, skipping Vector initialization");return}let n=k.getPublicKey();if(!n){pt.warn("No public key available, skipping Vector initialization");return}let r=yield this.resolveOnForCurrentPage(n);if(!r.on){this.reportSkippedDecision(n,r),pt.debug("Skipping Vector initialization for this page",{reason:r.skipReason,pathname:window.location.pathname,publicKeyPrefix:n.slice(0,8)});return}if(!Ve.getConsent().marketing){pt.debug("Marketing consent revoked while checking Website Intent, skipping");return}if(this.initialized)return;if(!this.mayAttemptLoad()){pt.debug("Backing off after failed Vector initialization",{failures:this.failedInitializations,pathname:window.location.pathname});return}let o={pathname:window.location.pathname,decision:r};try{yield this.loadScript();let i=yield this.resolveOnForCurrentPage(n);if(!i.on){this.reportSkippedDecision(n,i),pt.debug("Skipping Vector identify after script load",{reason:i.skipReason,pathname:window.location.pathname,publicKeyPrefix:n.slice(0,8)});return}if(!Ve.getConsent().marketing){pt.debug("Marketing consent revoked while the script was loading, skipping identify");return}o={pathname:window.location.pathname,decision:i},this.identify(n),this.markInitialized(),mb(window.location.pathname,i.clientRequestId,fd(i,"initialized")),pt.success("Vector initialized")}catch(i){this.failedInitializations+=1,this.retryNotBefore=Date.now()+JF;let s=i instanceof el?i.reason:"initialize_error";if(!this.reportedFailures.has(s)){this.reportedFailures.add(s);let{pathname:a,decision:l}=o;pb(a,l.clientRequestId,s,fd(l,this.sdkState()))}pt.warn("Failed to initialize Vector",i)}})}resolveOnForCurrentPage(n){return R(this,null,function*(){let r=window.location.pathname,o=yield this.resolveOnForPage(n,r);for(;window.location.pathname!==r;)r=window.location.pathname,o=yield this.resolveOnForPage(n,r);return o})}resolveOnForPage(n,r){return R(this,null,function*(){let o=this.pageAnswers.get(r);if(o&&Fb(o,Date.now()))return md(o,{clientRequestId:o.clientRequestId,decisionSource:o.decisionSource,decisionAt:o.at});let i=ZF(n,r);if(i!==null){let c=S(u({},i),{decisionSource:"session_storage",offRecorded:i.offReported===!0});return this.rememberPageAnswer(r,c),md(c,{decisionSource:"session_storage",decisionAt:i.at})}let s=yield gb(r,this.sdkState());if(s.vector===null)return pt.warn("Could not resolve Website Intent for this page, skipping Vector",S(u({reason:On.INCONCLUSIVE,unknownReason:s.unknownReason},s.httpStatus!==void 0?{httpStatus:s.httpStatus}:{}),{pathname:r,publicKeyPrefix:n.slice(0,8)})),{on:!1,skipReason:On.INCONCLUSIVE};let a=kr(s);QF(n,r,s.vector,a);let l=u(S(u({vector:s.vector},a),{decisionSource:"network",at:Date.now(),offRecorded:!0}),s.clientRequestId?{clientRequestId:s.clientRequestId}:{});return this.rememberPageAnswer(r,l),md(l,{clientRequestId:s.clientRequestId,decisionSource:"network",decisionAt:l.at})})}sdkState(){return this.initialized?"initialized":"not_initialized"}mayAttemptLoad(){return this.failedInitializations<YF&&Date.now()>=this.retryNotBefore}rememberPageAnswer(n,r){if(this.pageAnswers.delete(n),this.pageAnswers.set(n,r),this.pageAnswers.size>Tb){let o=this.pageAnswers.keys().next().value;o!==void 0&&this.pageAnswers.delete(o)}}reportSkippedDecision(n,r){if(r.skipReason!==On.OFF||r.offRecorded)return;let o=window.location.pathname,i=this.pageAnswers.get(o);i&&(i.offRecorded=!0),ev(n,o),fb(o,r.clientRequestId,fd(r,this.sdkState()))}loadScript(){var r;if(typeof((r=window.vector)==null?void 0:r.load)=="function")return Promise.resolve();let n=document.querySelector(`script[src="${Lb}"]`);return new Promise((o,i)=>{let s=n!=null?n:document.createElement("script");n||(s.src=Lb,s.async=!0);let a=()=>{clearTimeout(m),s.removeEventListener("load",c),s.removeEventListener("error",d)},l=f=>{a(),n||s.remove(),i(new el(f))},c=()=>{var f;if(typeof((f=window.vector)==null?void 0:f.load)!="function"){l("sdk_unavailable");return}a(),o()},d=()=>l("script_error");s.addEventListener("load",c),s.addEventListener("error",d);let m=setTimeout(()=>l("script_timeout"),tb);n||document.head.appendChild(s)})}identify(n){let r=window.vector;if(!r)throw new Error("Vector SDK not available after script load");let o=Be.getAnonymousId();r.partnerId=JSON.stringify({publicKey:n,anonymousId:o}),r.load(wb),pt.debug(`Identified with publicKey=${n.slice(0,8)}...`)}},hd=pd.getInstance();function xb(e){_e.requestLateReveal(),!(!e||!ae())&&e.then(()=>{!ae()||!Ve.getConsent().marketing||(hd.init(),_e.flushLateReveal())})}function tl(){typeof window!="undefined"&&(window.__dft_resume_marketing_grant__=tl),ae()&&(hd.init(),_e.flushLateReveal())}var Dn=I.module("Session"),Cb="__dflt_lc";function Ab(){return window[Cb]===!0}function Mb(e){window[Cb]=e}var Pr=null,Dr=null;function kb(){if(Ab()){Dn.debug("Lifecycle listeners already attached, skipping");return}(Pr||Dr)&&(Dn.debug("Removing existing lifecycle listeners before re-attaching"),rv()),Pr=tv,Dr=nv,window.addEventListener("pagehide",Pr),document.addEventListener("visibilitychange",Dr),Mb(!0),Dn.debug("Lifecycle listeners attached")}function tv(e){e.persisted?(Dn.debug("Page going to bfcache (back/forward) - updating activity"),_e.updateActivity()):(Dn.debug("Page unload detected - sending session end beacon (session continues if refreshed)"),_e.sendSessionEndWithoutClearing("page_unload"))}function nv(){document.visibilityState==="hidden"?(_e.updateActivity(),Dn.debug("Visibility hidden - activity updated")):document.visibilityState==="visible"&&(_e.touch(),Dn.debug("Visibility visible - session touched"))}function rv(){!Ab()&&!Pr&&!Dr||(Pr&&(window.removeEventListener("pagehide",Pr),Pr=null),Dr&&(document.removeEventListener("visibilitychange",Dr),Dr=null),Mb(!1),Dn.debug("Lifecycle listeners removed"))}var Nr=I.module("Pageview"),Sd=class e extends Ce{constructor(){super(...arguments);this.lastTrackedUrl=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){if(!this.ensureNotInitialized()){Nr.debug("Already initialized, skipping");return}this.markInitialized(),Nr.success("Pageview tracker initialized")}trackPageview(){let n=k.get();if(!this.initialized||!n){Nr.warn("Cannot track pageview: not initialized or missing config");return}if($s(),!D()){Nr.debug("Analytics consent withheld, skipping pageview");return}let r=window.location.href;if(this.lastTrackedUrl===r){Nr.debug("Skipping duplicate pageview for same URL");return}this.lastTrackedUrl=r;let{isNewSession:o,sessionId:i}=_e.touch(),s=new URL(r).pathname;Nr.debug(`Tracking pageview: ${s}`,{isNewSession:o,hasReferrer:!!document.referrer});let a=to(),l=ro(),c=u(S(u({publicKey:n.publicKey,anonymousId:Be.getAnonymousId(),sessionId:i,pageUrl:r,referrer:document.referrer,utmParams:no()},a&&{gclid:a}),{userAgent:navigator.userAgent,ts:Date.now(),isNewSession:o}),l!==void 0&&{responseStatus:l});lb(c),Nr.sent("pageview",{path:s,isNewSession:o})}resetLastTrackedUrl(){this.lastTrackedUrl=null}reset(){super.reset(),this.lastTrackedUrl=null}onRouteChange(){this.resetLastTrackedUrl(),this.trackPageview()}},nl=Sd.getInstance();$m(ib);(function(e){if(e.__dft_loaded){I.debug("Already loaded on this page, skipping duplicate script execution");return}e.__dft_loaded=!0;let t=()=>e.__dft_analytics_started?(e.__dft_analytics_skipped="index",!0):!1,{setupFormListeners:n,refreshKnownFormsForCurrentPath:r}=JS(),o=!1,i=null;function s(d){return R(this,null,function*(){if(o){I.debug("Already initialized, skipping");return}let m=Uc(d),f=uy(e,m,["https://book.default.com"]);if(!f){I.warn("No public key found. Please ensure the script is properly installed with a key."),Vc(e,()=>{s(d).catch(p=>I.error("Initialization failed",p))});return}o=!0,mm(cy(m),f),Eb(),t()||Ap(()=>Be.getAnonymousId()),Fp(()=>{var p,g;return{anonymousId:(p=Mp())!=null?p:Be.getAnonymousId(),sessionId:(g=Op())!=null?g:_e.touch().sessionId}}),t()||Ib(()=>xb(i)),c(),lS(),ny(()=>{if(c(),!!ae()){if(!i){a();return}i.then(()=>{n();let p=!t();p&&nl.onRouteChange(),r(),Pe.onRouteChange(),p&&tl()})}}),ae()&&(yield a())})}function a(){return i||(i=l()),i}function l(){return R(this,null,function*(){yield Be.init();let d=!t();d&&(_e.init(),nl.init(),nl.trackPageview(),tl()),Hc(wS),r(),Tm(),d&&kb(),n(),Pe.init()})}function c(){let d=ae();d||El(),Zd(d)}ZS.setup(s)})(window);return Gb(ov);})();
