@prodantix/sdk 0.8.0-beta.699 → 0.9.0-beta.777

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web.cjs CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var Ir=Object.defineProperty;var _r=(t,e,n)=>e in t?Ir(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n;var d=(t,e,n)=>_r(t,typeof e!="symbol"?e+"":e,n);var D=class extends Error{constructor(n,r,i){super(r,i);d(this,"code");this.code=n,this.name="ProdantixError";}},Z=class extends D{constructor(e){super("config",e),this.name="ConfigError";}},U=class extends D{constructor(n,r){super("validation",r);d(this,"field");this.field=n,this.name="ValidationError";}},f=class extends D{constructor(n,r,i){super("transport",n,i);d(this,"status");this.status=r,this.name="TransportError";}};function F(t){if(t)return t;let e=globalThis.fetch;if(typeof e=="function")return e.bind(globalThis)}function L(){let t=globalThis.AbortController;return t?new t:void 0}var Ft=t=>new Promise(e=>{setTimeout(e,t);});function C(t){return t.replace(/\/+$/,"")}var G=class{constructor(){d(this,"store",new Map);}getItem(e){return this.store.get(e)??null}removeItem(e){this.store.delete(e);}setItem(e,n){this.store.set(e,n);}},ee=class{constructor(e,n=()=>false){this.real=e;this.passes=n;d(this,"held",new G);d(this,"opened",false);}get isOpen(){return this.opened}open(){this.opened=true;}close(){this.opened=false;}target(e){return this.opened||this.passes(e)?this.real:this.held}getItem(e){return this.target(e).getItem(e)}removeItem(e){this.target(e).removeItem(e);}setItem(e,n){this.target(e).setItem(e,n);}};function Lt(){try{let t=globalThis.localStorage;if(t){let e="__pdx_probe__";return t.setItem(e,"1"),t.removeItem(e),t}}catch{return new G}return new G}var oe={now:()=>new Date};function ae(t){return t.toISOString()}function $t(){if(typeof window>"u"||typeof Intl>"u")return null;let t=Intl.DateTimeFormat().resolvedOptions().timeZone;return typeof t=="string"&&t!==""?t:null}function Pr(){return globalThis.crypto}function Ar(t){t[6]=t[6]&15|64,t[8]=t[8]&63|128;let e=[];for(let n=0;n<16;n+=1)e.push(t[n].toString(16).padStart(2,"0"));return `${e[0]}${e[1]}${e[2]}${e[3]}-${e[4]}${e[5]}-${e[6]}${e[7]}-${e[8]}${e[9]}-${e[10]}${e[11]}${e[12]}${e[13]}${e[14]}${e[15]}`}function Ve(){let t=Pr();if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<16;n+=1)e[n]=Math.floor(Math.random()*256);return Ar(e)}var Nt={uuid:Ve};var Fr=/^pdx_pub_(?:(?:live|test)_)?[a-z0-9]{32}$/;var Lr=/^(?:\$|[a-z])[a-z0-9_.]*$/;function de(t){let e=0;for(let n of t)e+=1;return e}function Rt(t){return Fr.test(t)}function $r(t){return Lr.test(t)}function Ot(t){let e=de(t);if(e<1||e>200)throw new U("distinct_id","distinct_id must be between 1 and 200 characters")}function Mt(t){let e=de(t);if(e<1||e>200)throw new U("event_name","event_name must be between 1 and 200 characters");if(!$r(t))throw new U("event_name","event_name must match /^(\\$|[a-z])[a-z0-9_.]*$/")}var Dt="prodantix-js",qt="0.8.0";var Nr=t=>{};function Kt(t){if(!t.apiKey||!Rt(t.apiKey))throw new Z("apiKey must be a public project key of the form pdx_pub_<32 lowercase alphanumerics>");if(!t.host)throw new Z("host is required (the ingest base URL)");let e=C(t.host),n=t.defaultProperties,r=t.storage??new G;return {apiKey:t.apiKey,autocapture:t.autocapture??false,clock:t.clock??oe,consent:t.consent,consentMode:t.consentMode,defaultProperties:typeof n=="function"?n:()=>n??{},describeElement:t.describeElement,flagsHost:t.flagsHost?C(t.flagsHost):e,flushAt:t.flushAt??20,flushIntervalMs:t.flushIntervalMs??1e4,host:e,ids:t.ids??Nt,locale:t.locale,maxQueueSize:t.maxQueueSize??1e3,maxRetries:t.maxRetries??3,namespace:W(t.apiKey),onError:t.onError??Nr,os:t.os,requestTimeoutMs:t.requestTimeoutMs??1e4,sdkName:t.sdkName??Dt,sdkVersion:t.sdkVersion??qt,sessionTracking:t.sessionTracking??false,sharedStorage:t.sharedStorage??r,socketFactory:t.socketFactory,storage:r,streamFlags:t.streamFlags??false,transport:t.transport}}function W(t){return t.slice(0,16)}var Ht="$cta_viewed",Bt="$cta_clicked",je="$cta_dismissed",Gt=(t,e)=>{let n={$cta_id:t.id,$cta_kind:t.kind,$cta_variant:t.variant.key,$cta_version:t.version},r=e===void 0?void 0:t.variant.content.buttons[e];return r&&e!==void 0&&(n.$cta_button=e,n.$cta_button_label=r.label,r.action.kind==="form"&&(n.$cta_form_id=r.action.value)),n},ue=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async ctas(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=new URLSearchParams({anonymous:String(e.anonymous),device:e.device,distinct_id:e.distinctId,language:e.language,url:e.url}),i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await n(`${this.host}/v1/ctas?${r.toString()}`,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(o.status<200||o.status>=300)throw new f(`ctas request failed with status ${o.status}`,o.status);return JSON.parse(await o.text()).ctas}finally{s!==void 0&&clearTimeout(s);}}};function Vt(t,e,n){Mt(t.eventName),Ot(t.distinctId);let r={distinct_id:t.distinctId,event_id:t.eventId??n.uuid(),event_name:t.eventName,properties:t.properties??{},schema_version:1,timestamp:ae(t.timestamp??e.now())};return t.context&&(r.context=t.context),t.sessionId&&(r.session_id=t.sessionId),r}var j=Symbol("absent");function Rr(t,e){if(t==="distinct_id")return e.distinctId;let n=e.properties??{};if(Object.prototype.hasOwnProperty.call(n,t))return n[t];let r=e.attributes??{};return Object.prototype.hasOwnProperty.call(r,t)?r[t]:j}function V(t){return t===j?"undefined":String(t)}function jt(t){return t===j?Number.NaN:Number(t)}function Ut(t){return t!==j&&t!==null&&t!==""}function Wt(t,e){if(!Array.isArray(e))return false;let n=V(t);return e.map(r=>String(r)).includes(n)}function zt(t,e){let n=Rr(t.attribute,e),r=t.value;switch(t.op){case "is_set":return Ut(n);case "is_not_set":return !Ut(n);case "eq":return V(n)===V(r===void 0?j:r);case "neq":return V(n)!==V(r===void 0?j:r);case "contains":return V(n).includes(V(r===void 0?j:r));case "in":return Wt(n,r);case "not_in":return Array.isArray(r)?!Wt(n,r):false;case "gt":return ce(n,r,(i,s)=>i>s);case "gte":return ce(n,r,(i,s)=>i>=s);case "lt":return ce(n,r,(i,s)=>i<s);case "lte":return ce(n,r,(i,s)=>i<=s);case "in_cohort":return typeof r=="string"&&r!==""&&(e.cohorts??[]).includes(r);case "not_in_cohort":return typeof r=="string"&&r!==""&&!(e.cohorts??[]).includes(r);default:return false}}function ce(t,e,n){let r=jt(t),i=e===void 0?Number.NaN:jt(e);return Number.isNaN(r)||Number.isNaN(i)?false:n(r,i)}function Jt(t,e){let n=`${t}:${e}`,r=2166136261;for(let i=0;i<n.length;i++)r^=n.charCodeAt(i),r=Math.imul(r,16777619);return (r>>>0)%100}function Ue(t,e){return t.targeting.length===0||t.targeting.every(n=>zt(n,e))}function Yt(t,e){let n=Jt(t.key,e.distinctId),r=t.variations??[];if(r.length===0)return t.rolloutPercentage>=100||n<t.rolloutPercentage?"true":"false";let i=0;for(let s=r.length-1;s>=0;s--)if(i+=r[s].weight,n<i)return r[s].key;return r[0].key}function We(t,e,n,r){for(let i of t.prerequisites??[]){if(r.includes(i.flagKey))return false;let s=e.find(a=>a.key===i.flagKey);if(!s||!s.enabled)return false;r.push(s.key);let o=We(s,e,n,r)&&Ue(s,n)&&Yt(s,n)===i.variationKey;if(r.pop(),!o)return false}return true}function le(t,e,n){return t.enabled?We(t,e,n,[t.key])?Ue(t,n)?t.rolloutPercentage>=100?{enabled:true,reason:"rollout_full"}:Jt(t.key,n.distinctId)<t.rolloutPercentage?{enabled:true,reason:"rollout"}:{enabled:false,reason:"rollout_excluded"}:{enabled:false,reason:"targeting"}:{enabled:false,reason:"prerequisite"}:{enabled:false,reason:"disabled"}}function Qt(t,e){let n={};for(let r of t)n[r.key]=le(r,t,e).enabled;return n}function ze(t,e,n){let r=t.variations??[],i=r[0];if(!i)return null;if(!t.enabled||!We(t,e,n,[t.key])||!Ue(t,n))return i;let s=Yt(t,n);return r.find(o=>o.key===s)??i}function Xt(t){return t.some(e=>e.targeting.some(n=>n.op==="in_cohort"||n.op==="not_in_cohort"))}function Zt(t){return `40${JSON.stringify(t)}`}function en(){return "3"}function tn(t){let e=t.charAt(0),n=t.slice(1);if(e==="2")return {kind:"ping"};if(e==="1")return {kind:"disconnect"};if(e==="0"){let o=Je(n);return {kind:"open",pingInterval:typeof o?.pingInterval=="number"?o.pingInterval:25e3,pingTimeout:typeof o?.pingTimeout=="number"?o.pingTimeout:2e4}}if(e!=="4")return {kind:"other"};let r=n.charAt(0),i=n.slice(1);if(r==="0")return {kind:"connected"};if(r==="1")return {kind:"disconnect"};if(r==="4"){let o=Je(i);return {kind:"connectError",message:typeof o?.message=="string"?o.message:"refused"}}if(r!=="2")return {kind:"other"};let s=Je(i);return !Array.isArray(s)||typeof s[0]!="string"?{kind:"other"}:{kind:"event",name:s[0],payload:s[1]}}function Je(t){try{return JSON.parse(t)}catch{return null}}var Or="/socket.io/?EIO=4&transport=websocket",Mr=250,pe=class{constructor(e){this.options=e;d(this,"socket",null);d(this,"heartbeat",null);d(this,"pending",null);d(this,"lastKey","");d(this,"ready",false);d(this,"closed",false);d(this,"heartbeatWindow",45e3);d(this,"factory");d(this,"setTimer");d(this,"clearTimer");this.factory=e.socketFactory??Dr,this.setTimer=e.setTimer??((n,r)=>setTimeout(n,r)),this.clearTimer=e.clearTimer??(n=>clearTimeout(n));}open(){if(this.socket||this.closed)return;let e=`${this.options.host.replace(/^http/,"ws").replace(/\/+$/,"")}${Or}`,n;try{n=this.factory(e);}catch{this.options.onClosed(false);return}this.socket=n,n.onmessage=r=>this.receive(String(r.data)),n.onerror=()=>n.close(),n.onclose=()=>this.fell();}close(){this.closed=true,this.stopHeartbeat(),this.pending!==null&&this.clearTimer(this.pending),this.pending=null;let e=this.socket;this.socket=null,e?.close();}receive(e){let n=tn(e);if(n.kind==="open"){this.armHeartbeat(n.pingInterval+n.pingTimeout),this.socket?.send(Zt({projectKey:this.options.projectKey}));return}if(n.kind==="ping"){this.armHeartbeat(),this.socket?.send(en());return}if(n.kind==="connectError"||n.kind==="disconnect"){this.stopHeartbeat(),this.socket?.close();return}if(n.kind==="event"){if(n.name==="ready"){this.ready=true;return}if(n.name==="flagChange"){let r=n.payload?.key;this.lastKey=typeof r=="string"?r:"",this.pending===null&&(this.pending=this.setTimer(()=>{this.pending=null,this.options.onChange(this.lastKey);},Mr));}}}fell(){this.stopHeartbeat();let e=this.ready;this.socket=null,this.ready=false,this.closed||this.options.onClosed(e);}armHeartbeat(e){e!==void 0&&(this.heartbeatWindow=e),this.stopHeartbeat(),this.heartbeat=this.setTimer(()=>this.socket?.close(),this.heartbeatWindow);}stopHeartbeat(){this.heartbeat!==null&&this.clearTimer(this.heartbeat),this.heartbeat=null;}};function Dr(t){let e=globalThis.WebSocket;if(!e)throw new f("no WebSocket");return new e(t)}var me=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async fetchAll(e){return (await this.fetchDecisions(e)).flags}async fetchDecisions(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=`${this.host}/v1/flags?distinct_id=${encodeURIComponent(e)}`,i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await n(r,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(!o.ok)throw new f(`flags request failed with status ${o.status}`,o.status);let a=JSON.parse(await o.text());return {flags:a.flags??{},variants:a.variants??{}}}finally{s!==void 0&&clearTimeout(s);}}async snapshot(){let e=this.fetch;if(!e)throw new f("no fetch implementation available in this runtime");let n=`${this.host}/v1/flags/snapshot`,r=L(),i=r?setTimeout(()=>r.abort(),this.requestTimeoutMs):void 0;try{let s=await e(n,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:r?.signal});if(!s.ok)throw new f(`flag snapshot request failed with status ${s.status}`,s.status);let o=JSON.parse(await s.text()),a={flags:o.flags??[],generatedAt:o.generatedAt};return typeof o.socketUrl=="string"&&o.socketUrl!==""&&(a.socketUrl=o.socketUrl),a}finally{i!==void 0&&clearTimeout(i);}}async memberships(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=`${this.host}/v1/flags/memberships?distinct_id=${encodeURIComponent(e)}`,i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await n(r,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(!o.ok)throw new f(`memberships request failed with status ${o.status}`,o.status);return JSON.parse(await o.text()).cohorts??[]}finally{s!==void 0&&clearTimeout(s);}}};var nn="$form_viewed",rn="$form_started",te=class extends Error{constructor(n,r,i){super(i);d(this,"fields");d(this,"status");this.name="FormRefusedError",this.status=n,this.fields=r;}},fe=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async request(e,n){let r=this.fetch;if(!r)throw new f("no fetch implementation available in this runtime");let i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o={authorization:`Bearer ${this.projectKey}`};n.body!==void 0&&(o["content-type"]="application/json");let a=await r(`${this.host}${e}`,{body:n.body,headers:o,method:n.method,signal:i?.signal});return {status:a.status,text:await a.text()}}finally{s!==void 0&&clearTimeout(s);}}async form(e,n){let{status:r,text:i}=await this.request(`/v1/forms/${encodeURIComponent(e)}?distinct_id=${encodeURIComponent(n)}`,{method:"GET"});if(r<200||r>=300)throw new f(`form request failed with status ${r}`,r);return JSON.parse(i)}async submit(e,n){let{status:r,text:i}=await this.request(`/v1/forms/${encodeURIComponent(e)}/submissions`,{body:JSON.stringify(n),method:"POST"});if(r>=200&&r<300)return JSON.parse(i).afterSubmit;let s=[],o=`form submission failed with status ${r}`;try{let a=JSON.parse(i);s=a.error?.fields??[],o=a.error?.message??o;}catch{s=[];}throw new te(r,s,o)}};var sn="$survey_shown",on="$survey_dismissed",an="$survey_sent",ge=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async surveys(e,n){let r=this.fetch;if(!r)throw new f("no fetch implementation available in this runtime");let i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await r(`${this.host}/v1/surveys?distinct_id=${encodeURIComponent(e)}${n?`&lang=${encodeURIComponent(n)}`:""}`,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(!o.ok)throw new f(`surveys request failed with status ${o.status}`,o.status);return JSON.parse(await o.text()).surveys??[]}finally{s!==void 0&&clearTimeout(s);}}},qr=864e5,he=t=>`${t.id}:${t.iteration}`;function Ye(t,e){return t.length===0?true:t.some(n=>{switch(n.matches){case "exact":return e===n.value;case "starts_with":return e.startsWith(n.value);default:return e.includes(n.value)}})}function dn(t,e,n,r,i){return t.kind!=="popover"||e.settled.includes(he(t))||t.showOnce&&e.settled.some(s=>s.startsWith(`${t.id}:`))||t.waitDays>0&&e.lastShownAt!==void 0&&r-e.lastShownAt<t.waitDays*qr||t.event&&t.event!==i?false:Ye(t.urls,n)}function ye(t,e){let n={$survey_id:t.id,$survey_iteration:t.iteration,$survey_name:t.name};for(let[r,i]of Object.entries(e))n[`$survey_response_${r}`]=i;return n}var Qe="$guide_shown",un="$guide_step_viewed",cn="$guide_step_missed",Xe="$guide_completed",Ze="$guide_dismissed",ln="$checklist_task_done",ve=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async guides(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=L(),i=r?setTimeout(()=>r.abort(),this.requestTimeoutMs):void 0;try{let s=await n(`${this.host}/v1/guides?distinct_id=${encodeURIComponent(e)}`,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:r?.signal});if(!s.ok)throw new f(`guides request failed with status ${s.status}`,s.status);return JSON.parse(await s.text()).guides??[]}finally{i!==void 0&&clearTimeout(i);}}},Kr=864e5,z=t=>`${t.id}:${t.iteration}`,be=(t,e)=>`${z(t)}:${e}`;function pn(t,e,n,r,i){return e.settled.includes(z(t))||t.showOnce&&e.settled.some(s=>s.startsWith(`${t.id}:`))||t.kind!=="checklist"&&t.waitDays>0&&e.lastShownAt!==void 0&&r-e.lastShownAt<t.waitDays*Kr||t.event&&t.event!==i?false:Ye(t.urls,n)}var et=(t,e)=>t.steps.filter(n=>e.done.includes(be(t,n.id))).map(n=>n.id),mn=(t,e)=>t.kind==="checklist"?t.steps.find(n=>n.event===e):void 0;function fn(t,e){let n={$guide_id:t.id,$guide_iteration:t.iteration,$guide_name:t.name};return e!==void 0&&(n.$guide_step_id=e),n}function ne(t){if(typeof t!="string")return;let e=Array.from(t).length;return e>=1&&e<=200?t:void 0}function ke(t,e){return `pdx.${t}.${e}`}var nt="consent",Hr=["identityLink","analytics","marketing","functional"];function tt(t){if(typeof t!="string")return null;try{let e=JSON.parse(t);if(e===null||typeof e!="object"||Array.isArray(e))return null;let n=e,r={};for(let i of Hr){let s=n[i];typeof s=="boolean"&&(r[i]=s);}return typeof n.version=="number"&&Number.isInteger(n.version)&&(r.version=n.version),Array.isArray(n.categories)&&n.categories.every(i=>typeof i=="string")&&(r.categories=n.categories),Object.keys(r).length===0?null:r}catch{return null}}var gn=t=>t.endsWith(`.${nt}`);function Se(t,e){return tt(t.getItem(ke(e,nt)))}function Br(t,e,n){let r=ke(e,nt),i=tt(JSON.stringify(n)),s=i===null?null:tt(JSON.stringify({...Se(t,e)??{},...i}));if(s===null){t.removeItem(r);return}t.setItem(r,JSON.stringify(s));}function hn(t,e,n,r){let i=ke(n,"anonymous_id"),s=ne(e.getItem(i))??ne(t.getItem(i));return e.setItem(i,r),t.setItem(i,r),s!==void 0&&s!==r?s:void 0}var xe=class{constructor(e,n,r,i){this.storage=e;this.shared=n;this.ids=r;this.namespace=i;d(this,"anonymousId");d(this,"distinctId");d(this,"identified");this.refresh();}refresh(){let e=ne(this.shared.getItem(this.key("anonymous_id"))),n=ne(this.storage.getItem(this.key("anonymous_id")));e?(this.anonymousId=e,n!==e&&this.storage.setItem(this.key("anonymous_id"),e)):n?(this.anonymousId=n,this.shared.setItem(this.key("anonymous_id"),n)):(this.anonymousId=this.ids.uuid(),this.shared.setItem(this.key("anonymous_id"),this.anonymousId),this.storage.setItem(this.key("anonymous_id"),this.anonymousId));let r=ne(this.storage.getItem(this.key("distinct_id")));r?(this.distinctId=r,this.identified=true):(this.distinctId=this.anonymousId,this.identified=false);}getAnonymousId(){return this.anonymousId}getDistinctId(){return this.distinctId}isIdentified(){return this.identified}snapshot(){return {anonymousId:this.anonymousId,distinctId:this.distinctId,identified:this.identified}}consent(){return Se(this.shared,this.namespace)}setConsent(e){Br(this.shared,this.namespace,e);}assumeAnonymousId(e){this.anonymousId=e,this.shared.setItem(this.key("anonymous_id"),e),this.storage.setItem(this.key("anonymous_id"),e),this.identified||(this.distinctId=e);}identify(e){let n=!this.identified||this.distinctId!==e,r=this.storage.getItem(this.key("linked_anonymous_id")),i=n||r!==this.anonymousId;return this.distinctId=e,this.identified=true,n&&this.storage.setItem(this.key("distinct_id"),e),!i||this.consent()?.identityLink===false?{changed:n}:(this.storage.setItem(this.key("linked_anonymous_id"),this.anonymousId),{anonymousToLink:this.anonymousId,changed:n})}reset(){this.anonymousId=this.ids.uuid(),this.distinctId=this.anonymousId,this.identified=false,this.shared.setItem(this.key("anonymous_id"),this.anonymousId),this.storage.setItem(this.key("anonymous_id"),this.anonymousId),this.storage.removeItem(this.key("distinct_id")),this.storage.removeItem(this.key("linked_anonymous_id"));}key(e){return ke(this.namespace,e)}};var we=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async inbox(e){let n=this.requireFetch(),r=`${this.host}/v1/messages?distinct_id=${encodeURIComponent(e)}`,i=await this.request(n,r,{headers:this.authHeaders(),method:"GET"});if(!i.ok)throw new f(`inbox request failed with status ${i.status}`,i.status);return JSON.parse(await i.text()).messages??[]}async markRead(e,n){let r=this.requireFetch(),i=`${this.host}/v1/messages/read`,s=await this.request(r,i,{body:JSON.stringify({distinct_id:n,message_id:e}),headers:{...this.authHeaders(),"content-type":"application/json"},method:"POST"});if(!s.ok)throw new f(`mark-read request failed with status ${s.status}`,s.status)}requireFetch(){if(!this.fetch)throw new f("no fetch implementation available in this runtime");return this.fetch}authHeaders(){return {authorization:`Bearer ${this.projectKey}`}}async request(e,n,r){let i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{return await e(n,{...r,signal:i?.signal})}finally{s!==void 0&&clearTimeout(s);}}};var Ee=class{constructor(e,n){this.maxSize=e;this.onOverflow=n;d(this,"events",[]);}get size(){return this.events.length}enqueue(e){this.events.push(e),this.enforceCap();}restore(e){this.events.push(...e),this.enforceCap();}requeue(e){this.events.unshift(...e),this.enforceCap();}drain(e){let n=e===void 0?this.events.length:Math.min(e,this.events.length);return this.events.splice(0,n)}snapshot(){return [...this.events]}enforceCap(){if(this.events.length<=this.maxSize)return;let e=this.events.splice(0,this.events.length-this.maxSize);this.onOverflow?.({dropped:e});}};var Gr={idleMs:18e5,maxMs:864e5,throttleMs:1e4};function yn(t){return `pdx.${t}.session`}function vn(t,e,n,r){let i={id:n.id,lastActivityAt:r,startedAt:n.startedAt};t.setItem(yn(e),JSON.stringify(i));}var Te=class{constructor(e,n,r,i,s=Gr){this.storage=e;this.ids=n;this.clock=r;this.namespace=i;this.options=s;}current(){return this.touch().id}startedAt(){return this.touch().startedAt}reset(){this.storage.removeItem(this.key());}touch(){let e=this.clock.now().getTime(),n=this.live(this.read(),e);if(n===void 0)return this.write({id:this.ids.uuid(),lastActivityAt:e,startedAt:e});if(e-n.lastActivityAt<=this.options.throttleMs)return n;let r=this.live(this.read(),e),i=r!==void 0&&r.id!==n.id?r:n;return this.write({...i,lastActivityAt:e})}live(e,n){if(e!==void 0&&!(n-e.lastActivityAt>this.options.idleMs||n-e.startedAt>this.options.maxMs))return e}write(e){return this.storage.setItem(this.key(),JSON.stringify(e)),e}read(){let e=this.storage.getItem(this.key());if(e)try{let n=JSON.parse(e);return typeof n.id=="string"&&typeof n.startedAt=="number"&&typeof n.lastActivityAt=="number"?{id:n.id,lastActivityAt:n.lastActivityAt,startedAt:n.startedAt}:void 0}catch{return}}key(){return yn(this.namespace)}};var w={autocapture:"$autocapture",createAlias:"$create_alias",featureFlagCalled:"$feature_flag_called",group:"$group",identify:"$identify",pageview:"$pageview",set:"$set",webVitals:"$web_vitals"};var bn=6e4;function Vr(t){return t.length*3<=bn||new TextEncoder().encode(t).length<=bn}function xn(t){return t>=400&&t<500&&t!==429}var J=class{constructor(e={}){d(this,"fetch");d(this,"maxRetries");d(this,"requestTimeoutMs");d(this,"baseDelayMs");d(this,"maxDelayMs");d(this,"sleep");d(this,"random");this.fetch=F(e.fetch),this.maxRetries=e.maxRetries??3,this.requestTimeoutMs=e.requestTimeoutMs??1e4,this.baseDelayMs=e.baseDelayMs??500,this.maxDelayMs=e.maxDelayMs??3e4,this.sleep=e.sleep??Ft,this.random=e.random??Math.random;}async send(e,n={}){let r=this.fetch;if(!r)throw new f("no fetch implementation available in this runtime");let i=JSON.stringify(e.body),s=n.keepalive===true&&Vr(i),o;for(let a=0;a<=this.maxRetries;a+=1){try{let c=await this.attempt(r,e,i,s);if(c.ok)return;if(xn(c.status))throw new f(`ingest rejected batch with status ${c.status}`,c.status);o=new f(`ingest transient status ${c.status}`,c.status);}catch(c){if(c instanceof f&&c.status!==void 0&&xn(c.status))throw c;o=c;}a<this.maxRetries&&await this.sleep(this.backoff(a));}throw new f("ingest delivery failed after retries",void 0,{cause:o})}async attempt(e,n,r,i){let s=L(),o=s?setTimeout(()=>s.abort(),this.requestTimeoutMs):void 0;try{return await e(n.url,{body:r,headers:{authorization:`Bearer ${n.projectKey}`,"content-type":"application/json"},...i?{keepalive:!0}:{},method:"POST",signal:s?.signal})}finally{o!==void 0&&clearTimeout(o);}}backoff(e){return Math.min(this.maxDelayMs,this.baseDelayMs*2**e)+this.random()*this.baseDelayMs}};var jr="queue",Ur=1e3,kn=3e4,rt=t=>{let e={};return t.avatar!==void 0&&(e.$avatar=t.avatar),t.email!==void 0&&(e.$email=t.email),t.name!==void 0&&(e.$name=t.name),t.phone!==void 0&&(e.$phone=t.phone),e},Ce=class{constructor(e){d(this,"config");d(this,"identity");d(this,"session");d(this,"queue");d(this,"transport");d(this,"flagsClient");d(this,"messagesClient");d(this,"surveysClient");d(this,"guidesClient");d(this,"captureListeners",new Set);d(this,"formsClient");d(this,"ctasClient");d(this,"context");d(this,"flushTimer");d(this,"flushing",false);d(this,"cachedFlags");d(this,"cachedSnapshot");d(this,"membershipCache");d(this,"stream");d(this,"shutDown",false);d(this,"exposures",new Set);d(this,"gates");d(this,"cookielessId");d(this,"storageListeners",new Set);let n=Kt(e),r=Se(n.sharedStorage,n.namespace)??n.consent??null;if(this.gates=[new ee(n.storage),new ee(n.sharedStorage,gn)],n.consentMode!=="banner"||r?.analytics===true)for(let o of this.gates)o.open();let[i,s]=this.gates;this.config={...n,sharedStorage:s,storage:i},this.identity=new xe(this.config.storage,this.config.sharedStorage,this.config.ids,this.config.namespace),this.config.consent!==void 0&&this.identity.setConsent(this.config.consent),this.session=this.config.sessionTracking?new Te(this.config.sharedStorage,this.config.ids,this.config.clock,this.config.namespace):void 0,this.queue=new Ee(this.config.maxQueueSize,({dropped:o})=>{this.config.onError(new D("queue_overflow",`event queue overflow: dropped ${o.length} oldest event(s)`));}),this.transport=this.config.transport??new J({maxRetries:this.config.maxRetries,requestTimeoutMs:this.config.requestTimeoutMs}),this.flagsClient=new me({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.messagesClient=new we({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.surveysClient=new ge({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.guidesClient=new ve({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.formsClient=new fe({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.ctasClient=new ue({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.context={sdk:this.config.sdkName,sdk_version:this.config.sdkVersion},this.config.os&&(this.context.os=this.config.os),this.config.locale&&(this.context.locale=this.config.locale),this.restoreQueue(),this.startTimer();}get distinctId(){return this.identity.getDistinctId()}get anonymousId(){return this.identity.getAnonymousId()}get isIdentified(){return this.identity.isIdentified()}get sessionId(){return this.session?.current()}get sessionStartedAt(){return this.session?.startedAt()}capture(e,n={}){try{this.identity.refresh();let r={...this.config.defaultProperties(),...n.element===void 0?{}:this.config.describeElement?.(n.element)??{},...n.properties??{}},i=Vt({context:this.context,distinctId:n.distinctId??this.identity.getDistinctId(),eventName:e,properties:r,sessionId:n.sessionId??this.session?.current(),timestamp:n.timestamp},this.config.clock,this.config.ids);this.enqueue(i);}catch(r){this.config.onError(r);}for(let r of this.captureListeners)try{r(e);}catch(i){this.config.onError(i);}}onCapture(e){return this.captureListeners.add(e),()=>{this.captureListeners.delete(e);}}identify(e,n={}){if(this.isCookieless())return;this.identity.refresh();let r=this.identity.identify(e),i={};r.anonymousToLink!==void 0&&(i.$anon_distinct_id=r.anonymousToLink);let s=$t(),o={...s===null?{}:{$timezone:s},...rt(n.traits??{}),...n.set??{}};Object.keys(o).length>0&&(i.$set=o),this.capture(w.identify,{properties:i});}link(e,n,r){if(this.isCookieless())return;let i={$anon_distinct_id:n},s=rt(r??{});Object.keys(s).length>0&&(i.$set=s),this.capture(w.identify,{distinctId:e,properties:i});}setConsent(e){this.identity.setConsent(e),e.analytics===true&&this.allowStorage(),e.analytics===false&&this.config.consentMode==="banner"&&this.forbidStorage();}isCookieless(){return !this.gates[0].isOpen}takeCookielessId(e){this.cookielessId=e,this.isCookieless()&&this.identity.assumeAnonymousId(e);}allowStorage(){if(this.isCookieless()){for(let e of this.gates)e.open();this.identity.refresh();for(let e of [...this.storageListeners])e();}}onStorageAllowed(e){return this.storageListeners.add(e),()=>{this.storageListeners.delete(e);}}forbidStorage(){if(!this.isCookieless()){for(let e of ["anonymous_id","distinct_id","linked_anonymous_id","session"])this.config.storage.removeItem(`pdx.${this.config.namespace}.${e}`),this.config.sharedStorage.removeItem(`pdx.${this.config.namespace}.${e}`);for(let e of this.gates)e.close();this.identity.refresh(),this.cookielessId!==void 0&&this.identity.assumeAnonymousId(this.cookielessId);}}consent(){return this.identity.consent()}alias(e){this.capture(w.createAlias,{properties:{alias:e}});}group(e,n,r){let i={$group_key:n,$group_type:e};r&&(i.$set=r),this.capture(w.group,{properties:i});}setPersonProperties(e,n){if(this.isCookieless())return;let r={};e&&(r.$set=e),n&&(r.$set_once=n),this.capture(w.set,{properties:r});}setPersonTraits(e){if(this.isCookieless())return;let n=rt(e);Object.keys(n).length!==0&&this.capture(w.set,{properties:{$set:n}});}async getAllFlags(){let e=this.identity.getDistinctId(),n=await this.flagsClient.fetchDecisions(e);return this.cachedFlags={distinctId:e,flags:n.flags,variants:n.variants??{}},n.flags}async isFeatureEnabled(e){let r=(await this.getAllFlags())[e]??false;return this.recordExposure(e,this.cachedFlags?.variants[e]?.key??String(r)),r}async getVariant(e){let n=await this.getAllFlags(),r=this.cachedFlags?.variants[e]??null;return this.recordExposure(e,r?.key??String(n[e]??false)),r}async getVariantLocal(e,n={}){let r=await this.flagSnapshot(),i=r.flags.find(c=>c.key===e),s=await this.localContext(n,r.flags),o=i?ze(i,r.flags,s):null,a=i?le(i,r.flags,s).enabled:false;return this.recordExposure(e,o?.key??String(a)),o?{key:o.key,value:o.value}:null}recordExposure(e,n){let r=`${this.identity.getDistinctId()} ${e} ${n}`;this.exposures.has(r)||(this.exposures.add(r),this.capture(w.featureFlagCalled,{properties:{$feature_flag:e,$feature_flag_response:n}}));}getCachedFlag(e){if(!(!this.cachedFlags||this.cachedFlags.distinctId!==this.distinctId))return this.cachedFlags.flags[e]}async getLocalFlags(e={}){let n=await this.flagSnapshot();return Qt(n.flags,await this.localContext(e,n.flags))}async isFeatureEnabledLocal(e,n={}){let r=await this.flagSnapshot(),i=r.flags.find(a=>a.key===e),s=await this.localContext(n,r.flags),o=i?le(i,r.flags,s).enabled:false;return this.recordExposure(e,(i?ze(i,r.flags,s)?.key:void 0)??String(o)),o}async localContext(e,n){let r=this.identity.getDistinctId(),i=e.cohorts;if(i===void 0&&Xt(n)){let s=this.config.clock.now().getTime();this.membershipCache&&this.membershipCache.distinctId===r&&s-this.membershipCache.fetchedAt<kn?i=this.membershipCache.cohorts:(i=await this.flagsClient.memberships(r),this.membershipCache={cohorts:i,distinctId:r,fetchedAt:s});}return {attributes:e.attributes,cohorts:i,distinctId:r,properties:e.properties}}async flagSnapshot(){let e=this.config.clock.now().getTime();if(this.cachedSnapshot&&e-this.cachedSnapshot.fetchedAt<kn)return this.cachedSnapshot.snapshot;let n=await this.flagsClient.snapshot();return this.cachedSnapshot={fetchedAt:e,snapshot:n},this.maybeStream(n),n}maybeStream(e){if(!this.config.streamFlags||this.shutDown||this.stream||!e.socketUrl)return;let n=new pe({host:e.socketUrl,onChange:()=>{this.cachedSnapshot=void 0,this.flagSnapshot().catch(r=>this.config.onError(r));},onClosed:r=>{this.stream=void 0,r&&this.maybeStream(e);},projectKey:this.config.apiKey,socketFactory:this.config.socketFactory});this.stream=n,n.open();}async getInbox(){return this.messagesClient.inbox(this.identity.getDistinctId())}async markMessageRead(e){await this.messagesClient.markRead(e,this.identity.getDistinctId());}async getSurveys(e){return this.surveysClient.surveys(this.identity.getDistinctId(),e??this.config.locale)}captureSurveyShown(e){this.capture(sn,{properties:ye(e,{})});}captureSurveyDismissed(e){this.capture(on,{properties:ye(e,{})});}captureSurveySent(e,n){this.capture(an,{properties:ye(e,n)});}async getGuides(){return this.guidesClient.guides(this.identity.getDistinctId())}captureGuide(e,n,r){this.capture(e,{properties:fn(n,r)});}async getForm(e){return this.formsClient.form(e,this.identity.getDistinctId())}async submitForm(e,n,r,i){let{$page_id:s,$page_variant:o}=this.config.defaultProperties();return this.formsClient.submit(e,{answers:n,challenge:r,distinctId:this.identity.getDistinctId(),isAnonymous:!this.identity.isIdentified(),pageUrl:typeof window>"u"?"":window.location.href,solution:i,...typeof s=="string"&&typeof o=="string"?{pageId:s,pageVariant:o}:{}})}async getCtas(e){return this.ctasClient.ctas({...e,anonymous:!this.identity.isIdentified(),distinctId:this.identity.getDistinctId()})}captureCta(e,n,r){this.capture(e,{properties:Gt(n,r)});}async flush(){if(this.flushing||this.queue.size===0)return;this.flushing=true;let e=this.queue.drain(Ur);try{await this.transport.send({body:{events:e,sent_at:ae(this.config.clock.now())},projectKey:this.config.apiKey,url:`${this.config.host}/v1/events`}),this.persistQueue();}catch(n){this.queue.requeue(e),this.persistQueue(),this.config.onError(n);}finally{this.flushing=false;}}reset(){this.session?.reset(),this.identity.reset(),this.cachedFlags=void 0,this.cachedSnapshot=void 0,this.membershipCache=void 0;}async shutdown(){this.shutDown=true,this.stopTimer(),this.stream?.close(),this.stream=void 0,await this.flush();}enqueue(e){this.queue.enqueue(e),this.persistQueue(),this.queue.size>=this.config.flushAt&&this.flush();}persistQueue(){try{this.config.storage.setItem(this.persistKey(),JSON.stringify(this.queue.snapshot()));}catch(e){this.config.onError(e);}}restoreQueue(){try{let e=this.config.storage.getItem(this.persistKey());if(!e)return;let n=JSON.parse(e);Array.isArray(n)&&this.queue.restore(n);}catch(e){this.config.onError(e);}}startTimer(){if(this.config.flushIntervalMs<=0)return;let e=setInterval(()=>{this.flush();},this.config.flushIntervalMs),n=e;typeof n.unref=="function"&&n.unref(),this.flushTimer=e;}stopTimer(){this.flushTimer!==void 0&&(clearInterval(this.flushTimer),this.flushTimer=void 0);}persistKey(){return `pdx.${this.config.namespace}.${jr}`}};var wn="data-prodantix",En="data-prodantix-action",Tn="data-prodantix-ignore",Y=300,it="data-pdx-no-capture",st="pdx-no-capture",Wr=new Set(["a","button","input","label","option","select","summary","textarea"]),zr=new Set(["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab","treeitem"]);function Jr(t){return Wr.has(t.tagName.toLowerCase())||zr.has((t.getAttribute("role")??"").trim().toLowerCase())}function ot(t){for(let e=t;e!==null;e=e.parentElement)if(Jr(e))return e;return t}function at(t){for(let e=t;e!==null;e=e.parentElement)if(e.getAttribute(Tn)!==null)return true;return false}function dt(t){for(let e=t;e!==null;e=e.parentElement)if(e.getAttribute(it)!==null||typeof e.className=="string"&&e.className.split(/\s+/).includes(st))return true;return false}function Ie(t){let e=new Set;return n=>{e.has(n.message)||(e.add(n.message),t(n));}}function Sn(t,e,n){let r=t.getAttribute(e);if(r===null)return;let i=r.trim();if(i!==""){if(i.length>Y){n(new D("validation",`${e} on a <${t.tagName.toLowerCase()}> is ${i.length} characters, over the ${Y}-character limit, so it was ignored: "${i.slice(0,40)}\u2026"`));return}return i}}function ut(t,e){let n={},r=Sn(t,wn,e);r!==void 0&&(n.$el_description=r,n.$el_description_source="annotation");let i=Sn(t,En,e);return i!==void 0&&(n.$el_action=i),n}function Cn(t,e){return !Yr(t)||at(t)||dt(t)?{}:ut(ot(t),e)}function Yr(t){return typeof t=="object"&&t!==null&&typeof t.tagName=="string"&&typeof t.getAttribute=="function"}var Qr="$form_submitted",Xr=new Set(["button","file","hidden","image","password","reset","submit"]),In=/(card|cc-?num|cvc|cvv|iban|security.?code)/i,Zr=t=>(t.getAttribute("autocomplete")??"").startsWith("cc-")||In.test(t.name)||In.test(t.id),ei=t=>{let e=t.name.toLowerCase();return t instanceof HTMLInputElement&&t.type==="email"||e==="email"||t.getAttribute("autocomplete")==="email"?"$email":e==="name"||e==="full_name"||e==="fullname"||t.getAttribute("autocomplete")==="name"?"$name":null},ti=(t,e)=>{if(t.closest("[data-prodantix-ignore]")||t.hasAttribute("data-prodantix-form"))return null;let n={},r={};for(let i of Array.from(t.elements)){if(!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement||i instanceof HTMLTextAreaElement)||!i.name||i.closest("[data-prodantix-ignore]")||Zr(i)||i instanceof HTMLInputElement&&(Xr.has(i.type)||(i.type==="checkbox"||i.type==="radio")&&!i.checked))continue;let s=i.value.trim();if(s==="")continue;n[i.name]=s;let o=ei(i);o&&(r[o]=s);}return {$answers:n,$form_id:t.id||`${e}#${Array.from(t.ownerDocument.forms).indexOf(t)}`,$page_url:t.ownerDocument.location?.href??"",$set:r,collected:true}},_n=(t,e=document)=>{let n=r=>{if(r.target instanceof HTMLFormElement){let i=ti(r.target,e.location?.pathname??"");i&&t.capture(Qr,{properties:i});}};return e.addEventListener("submit",n,true),()=>e.removeEventListener("submit",n,true)};var ni=1e3,ri=5e3,ii=50,ct=class{constructor(){d(this,"fcp");d(this,"lcp");d(this,"cls");d(this,"window",{end:0,start:0,sum:0});d(this,"interactions",new Map);}add(e){if(e.entryType==="paint"&&e.name==="first-contentful-paint"&&(this.fcp=e.startTime),e.entryType==="largest-contentful-paint"&&(this.lcp=e.startTime),e.entryType==="layout-shift"&&!e.hadRecentInput&&e.value!==void 0){let n=this.window.sum>0&&e.startTime-this.window.end<ni&&e.startTime-this.window.start<ri;this.window=n?{end:e.startTime,start:this.window.start,sum:this.window.sum+e.value}:{end:e.startTime,start:e.startTime,sum:e.value},this.cls=Math.max(this.cls??0,this.window.sum);}e.entryType==="event"&&e.interactionId!==void 0&&e.interactionId>0&&this.interactions.set(e.interactionId,Math.max(this.interactions.get(e.interactionId)??0,e.duration));}properties(e){let n={};if(this.lcp!==void 0&&(n.$lcp_ms=Math.round(this.lcp)),this.fcp!==void 0&&(n.$fcp_ms=Math.round(this.fcp)),this.cls!==void 0&&(n.$cls=Math.round(this.cls*1e4)/1e4),this.interactions.size>0){let r=[...this.interactions.values()].sort((i,s)=>s-i);n.$inp_ms=Math.round(r[Math.min(r.length-1,Math.floor(r.length/ii))]??0);}return e!==void 0&&(n.$ttfb_ms=Math.round(e)),n}},si=[{type:"paint"},{type:"largest-contentful-paint"},{type:"layout-shift"},{durationThreshold:40,type:"event"}];function Pn(t,e){let n=new ct,r=[];for(let o of si){let a=e.observer(c=>{for(let u of c)n.add(u);});if(a!==void 0)try{a.observe({...o,buffered:!0}),r.push(a);}catch{a.disconnect();}}let i=false,s=()=>{if(i)return;let o=n.properties(e.firstByte());if(Object.keys(o).length===0)return;i=true;let a=e.path();t.capture(w.webVitals,{properties:a===void 0?o:{...o,$pathname:a}});};return e.addEventListener("visibilitychange",()=>{e.isHidden()&&s();}),e.addEventListener("pagehide",s),()=>{for(let o of r)o.disconnect();}}function An(){if(!(typeof window>"u"||typeof document>"u"||typeof PerformanceObserver>"u"))return {addEventListener:(t,e)=>(t==="pagehide"?window:document).addEventListener(t,e),firstByte:()=>{let t=performance.getEntriesByType("navigation")[0];return t instanceof PerformanceNavigationTiming&&t.responseStart>0?t.responseStart:void 0},isHidden:()=>document.visibilityState==="hidden",observer:t=>{try{return new PerformanceObserver(e=>t(e.getEntries()))}catch{return}},path:()=>window.location?.pathname}}var oi=new Set(["input","select","textarea"]),ai=new Set(["email","password","tel"]);function Pe(){return globalThis.location}function Fn(){return globalThis.document}function di(){return globalThis.window??globalThis}function ui(t){return typeof t=="object"&&t!==null&&typeof t.tagName=="string"}function _e(t,e){let n;try{n=new URL(t,e);}catch{return}return n.protocol==="http:"||n.protocol==="https:"?`${n.origin}${n.pathname}`:n.protocol}function Ln(){let t=Pe(),e=Fn(),n={};if(t){let r=_e(t.href);r&&(n.$current_url=r),n.$pathname=t.pathname,n.$host=t.host;}if(e){e.title&&(n.$title=e.title);let r=e.referrer?_e(e.referrer):void 0;r&&(n.$referrer=r);}return n}function ci(t){return typeof t.className=="string"?t.className:""}function li(t){return oi.has(t.tagName.toLowerCase())||ai.has((t.getAttribute("type")??"").toLowerCase())}function pi(t,e,n){let r={$el_tag:t.tagName.toLowerCase(),$event_type:"click"};if(e)return r;let i=n?t.textContent?.trim():void 0;i&&(r.$el_text=i.slice(0,255)),t.id&&(r.$el_id=t.id);let s=ci(t);s&&(r.$el_classes=s);let o=t.getAttribute("href"),a=o?_e(o,Pe()?.href):void 0;return a&&(r.$el_href=a),r}function lt(t){return (t??"").replace(/\s+/g," ").trim()}function re(t,e){return {$el_description:t,$el_description_source:e}}function mi(t,e,n){if(!e&&n){let o=lt(t.getAttribute("aria-label"));if(o!==""&&o.length<=Y)return re(o,"aria_label");let a=lt(t.textContent);if(a!==""&&a.length<=Y)return re(a,"text")}let r=e?null:t.getAttribute("href"),i=r?_e(r,Pe()?.href):void 0;if(i)return re(i,"href");let s=lt(t.getAttribute("role")).toLowerCase();return s===""?re(t.tagName.toLowerCase(),"tag"):re(s,"role")}function fi(t,e){let n=new Set,r=(u,l)=>{if(n.has(u))return false;try{return l()}catch(p){return n.add(u),e(new D("config",`autocapture maskSelectors entry "${u}" is not a valid selector`,{cause:p})),false}},i=(u,l)=>u.matches?r(l,()=>u.matches?.(l)===!0):false,s=u=>{let l=u.querySelector?.bind(u);return l?l(`[${it}], .${st}`)!==null||t.some(p=>r(p,()=>l(p)!==null)):false},o=u=>{for(let l=u;l;l=l.parentElement){let p=l;if(t.some(x=>i(p,x)))return true}return false},a=u=>{for(let l=u;l;l=l.parentElement)if(li(l))return true;return false},c=u=>dt(u)||o(u);return {holdsMasked:s,isMasked:u=>c(u)||a(u),isOptedOut:c}}function gi(t){let e=globalThis.history,n=di(),r="",i=()=>{let a=Pe(),c=a?`${a.pathname}${a.search}`:"";c!==r&&(r=c,t.capture(w.pageview,{properties:Ln()}));};if(i(),!e||!n)return ()=>{};let s=e.pushState.bind(e),o=e.replaceState.bind(e);return e.pushState=(...a)=>{s(...a),i();},e.replaceState=(...a)=>{o(...a),i();},n.addEventListener("popstate",i),()=>{e.pushState=s,e.replaceState=o,n.removeEventListener("popstate",i);}}function hi(t,e){let n=Fn();if(!n)return ()=>{};let r=e.onError??(()=>{}),i=fi(e.maskSelectors??[],r),s=Ie(r),o=e.captureElementText??false,a=c=>{let u=c.target;if(!ui(u)||at(u))return;let l=ot(u),p=i.isMasked(u)||i.holdsMasked(l),x=i.isOptedOut(u)?{}:ut(l,s),$=x.$el_description===void 0?mi(l,p,o):{};t.capture(w.autocapture,{properties:{...Ln(),...pi(l,p,o),...$,...x}});};return n.addEventListener("click",a,true),()=>n.removeEventListener("click",a,true)}function $n(t,e={}){let n=[];(e.pageviews??true)&&n.push(gi(t)),(e.clicks??true)&&n.push(hi(t,e)),e.collectForms===true&&typeof document<"u"&&n.push(_n(t));let r=e.webVitals===false?void 0:An();return r!==void 0&&n.push(Pn(t,r)),()=>{for(let i of n)i();}}function yi(){return globalThis.document?.visibilityState==="hidden"}var Ae=class{constructor(e={}){d(this,"fetchTransport");this.fetchTransport=new J(e);}async send(e){await this.fetchTransport.send(e,{keepalive:yi()});}};var pt="prodantix:consent-ready",mt="prodantix:consent",Nn="__prodantixConsent";var Rn=(t,e)=>{t.takeCookielessId(e.anonymousId),e.consent!==null?t.setConsent(e.consent):e.rule==="notice"&&t.allowStorage();},On=(t,e)=>{let n=e[Nn];n&&Rn(t,n);let r=s=>{let o=s.detail;o&&Rn(t,o);},i=s=>{let o=s.detail;o&&t.setConsent(o);};return e.addEventListener(pt,r),e.addEventListener(mt,i),()=>{e.removeEventListener(pt,r),e.removeEventListener(mt,i);}};var vi=/^\d{1,3}(\.\d{1,3}){3}$/,bi=/^[a-z0-9.-]+$/i;function Mn(){return Math.random().toString(36).slice(2,12)}function Fe(t,e){let n=`${e}=`,r=[];for(let i of t.cookie.split(";")){let s=i.trim();s.startsWith(n)&&r.push(s.slice(n.length));}return r}function ie(t,e,n){let r=["Path=/",`Max-Age=${e}`,"SameSite=Lax"];return t&&r.push(`Domain=${t}`),n&&r.push("Secure"),r.join("; ")}function Dn(t,e,n,r){try{let i=`pdx_probe_${r()}`,s=r();t.cookie=`${i}=${s}; ${ie(e,60,n)}`;let o=Fe(t,i).includes(s);t.cookie=`${i}=; ${ie(e,0,n)}`;let a=Fe(t,i).includes(s);return o&&!a}catch{return false}}function gt(t){let e=t.replace(/^\[|\]$/g,"").toLowerCase();if(e.includes(":")||vi.test(e)||!e.includes("."))return [];let n=e.split("."),r=[];for(let i=n.length-2;i>=0;i-=1)r.push(n.slice(i).join("."));return r}function qn(t,e,n,r=Mn){for(let i of gt(t))if(Dn(e,i,n,r))return i}function xi(t){let e=new Map,n=JSON.parse(decodeURIComponent(t));if(n===null||typeof n!="object"||Array.isArray(n))return e;for(let[r,i]of Object.entries(n))typeof i=="string"&&e.set(r,i);return e}var ft=class{constructor(e,n,r,i){this.jar=e;this.name=n;this.domain=r;this.secure=i;}getItem(e){return this.read().get(e)??null}setItem(e,n){let r=this.read();r.set(e,n),this.write(r);}removeItem(e){let n=this.read();n.delete(e)&&this.write(n);}read(){try{let e=Fe(this.jar,this.name);e.length>1&&this.domain&&(this.jar.cookie=`${this.name}=; ${ie(void 0,0,this.secure)}`,e=Fe(this.jar,this.name));let n=e[0];return n?xi(n):new Map}catch{return new Map}}write(e){try{if(e.size===0){this.jar.cookie=`${this.name}=; ${ie(this.domain,0,this.secure)}`;return}let n=encodeURIComponent(JSON.stringify(Object.fromEntries(e)));this.jar.cookie=`${this.name}=${n}; ${ie(this.domain,31536e3,this.secure)}`;}catch{return}}};function ki(){return globalThis.document}function Si(){return globalThis.location?.hostname??""}function wi(){return globalThis.location?.protocol==="https:"}function Ei(t){if(t===void 0)return;let e=t.startsWith(".")?t.slice(1):t;return bi.test(e)?e.toLowerCase():void 0}function ht(t){let e="jar"in t?t.jar:ki();if(!e||globalThis.navigator?.cookieEnabled===false)return null;let r=t.random??Mn,i=t.secure??wi(),s=t.hostname??Si();try{let o=Ei(t.domain)??qn(s,e,i,r);return Dn(e,o,i,r)?new ft(e,t.name,o,i):null}catch{return null}}var Ti=["am","ar","bn","de","en","es","et","fil","fr","hi","id","ja","ko","pt","ru","sw","vi","zh"],Kn=t=>{let e=(t??"").toLowerCase().split("-")[0]??"";return Ti.find(n=>n===e)??"en"};var Ci=/^\$(survey|guide|checklist)_/,Hn=()=>({guides:{done:[],settled:[]},surveys:{settled:[]}});function Ii(t,e){try{let n=t.getItem(e);if(n===null)return Hn();let r=JSON.parse(n);return {guides:{done:r.guides?.done??[],lastShownAt:r.guides?.lastShownAt,settled:r.guides?.settled??[]},surveys:{lastShownAt:r.surveys?.lastShownAt,settled:r.surveys?.settled??[]}}}catch{return Hn()}}function Bn(t,e,n){let r=n();return r?Promise.resolve(r):new Promise(i=>{let s=t.document.createElement("script");s.src=e,s.async=true,s.onload=()=>i(n()??null),s.onerror=()=>i(null),t.document.head.append(s);})}function Gn(t,e,n){let r=`pdx_engage_${n.namespace}`,i=Ii(n.storage,r),s=()=>{try{n.storage.setItem(r,JSON.stringify(i));}catch(y){n.onError(y);}},o=Kn(e.document.documentElement.lang||e.navigator.language),a=[],c=[],u=false,l=false,p=new Map,x=()=>Bn(e,`${n.edgeHost}/surveys.js`,()=>e.prodantixSurveys),$=()=>Bn(e,`${n.edgeHost}/guides.js`,()=>e.prodantixGuides),_=async y=>{if(u)return;let g=a.find(A=>dn(A,i.surveys,e.location.href,Date.now(),y));if(!g)return;u=true;let T=await x();if(!T){u=false;return}let E=()=>{i.surveys.settled=[...i.surveys.settled.filter(A=>A!==he(g)),he(g)],s(),u=false;};T.showSurvey(e.document,g,o,{onDismissed:()=>{t.captureSurveyDismissed(g),E();},onSent:A=>{t.captureSurveySent(g,A),E();},onShown:()=>{i.surveys.lastShownAt=Date.now(),s(),t.captureSurveyShown(g);}});},R=y=>{i.guides.settled=[...i.guides.settled.filter(g=>g!==z(y)),z(y)],s();},H=async y=>{let g=c.filter(v=>!p.has(v.id)&&pn(v,i.guides,e.location.href,Date.now(),y)),T=g.filter(v=>v.kind==="checklist"),E=l?void 0:g.find(v=>v.kind!=="checklist");if(T.length===0&&!E)return;E&&(l=true);let A=await $();if(!A){l=false;return}for(let v of T)p.has(v.id)||p.set(v.id,A.showChecklist(e.document,v,o,et(v,i.guides),{onDismissed:()=>{t.captureGuide(Ze,v),R(v),p.delete(v.id);},onShown:()=>t.captureGuide(Qe,v)}));if(!E)return;(E.kind==="tooltip"?A.showTooltip:A.showTour)(e.document,E,o,{onCompleted:()=>{t.captureGuide(Xe,E),R(E),l=false;},onDismissed:()=>{t.captureGuide(Ze,E),R(E),l=false;},onMissed:v=>t.captureGuide(cn,E,v),onShown:()=>{i.guides.lastShownAt=Date.now(),s(),t.captureGuide(Qe,E);},onStep:v=>t.captureGuide(un,E,v)});},X=y=>{for(let g of c){let T=mn(g,y);!T||i.guides.done.includes(be(g,T.id))||i.guides.settled.includes(z(g))||(i.guides.done=[...i.guides.done,be(g,T.id)],t.captureGuide(ln,g,T.id),p.get(g.id)?.markDone(T.id),et(g,i.guides).length===g.steps.length&&(t.captureGuide(Xe,g),R(g),p.get(g.id)?.close(),p.delete(g.id)),s());}},O=y=>{n.surveys&&_(y).catch(n.onError),n.guides&&H(y).catch(n.onError);},M=t.onCapture(y=>{Ci.test(y)||(X(y),O(y));}),P=()=>O();e.addEventListener("popstate",P);let K=async()=>{let y=E=>(n.onError(E),[]),[g,T]=await Promise.all([n.surveys?t.getSurveys(e.document.documentElement.lang||e.navigator.language).catch(y):[],n.guides?t.getGuides().catch(y):[]]);a=g,c=T,O();};return e.document.readyState==="loading"?e.document.addEventListener("DOMContentLoaded",()=>void K(),{once:true}):K(),()=>{M(),e.removeEventListener("popstate",P);for(let y of p.values())y.close();p.clear();}}var Un="_pdx",Wn="~",_i=200,Pi=/^\d+$/;function zn(t,e,n,r){let i=Fi(t.href);if(i===void 0||vt(i.search).some(bt))return;let s=Vn(i.hostname,n);s===void 0||s===Vn(r,n)||(i.search=`${i.search}${i.search?"&":"?"}${Un}=${Ai(e)}`,t.href=i.href);}function Ai(t){return [t.anonymousId,t.sessionId,String(t.sessionStartedAt)].map($i).join(Wn)}function Jn(t){let e=vt(t).find(bt);if(e===void 0)return;let n=Li(e).split(Wn);if(n.length!==3)return;let r=Le(n[0]),i=Le(n[1]),s=Le(n[2]);if(!(!jn(r)||!jn(i)||!Ni(s)))return {anonymousId:r,sessionId:i,sessionStartedAt:Number(s)}}function Yn(t,e){let n=vt(e.search),r=n.filter(s=>!bt(s));if(r.length===n.length)return;let i=r.length>0?`?${r.join("&")}`:"";t.replaceState(t.state,"",`${e.pathname}${i}${e.hash}`);}function Qn(t){if(t.location===void 0||typeof t.location.search!="string")return;let e=Jn(t.location.search);if(e===void 0)return;let n=hn(t.storage,t.shared,t.namespace,e.anonymousId);return vn(t.shared,t.namespace,{id:e.sessionId,startedAt:e.sessionStartedAt},t.now),t.history!==void 0&&Yn(t.history,t.location),n}function yt(t,e,n){if(n.length===0)return ()=>{};let r=i=>{let s=Mi(i.target);if(s===void 0)return;let o=Ri(e);o!==void 0&&zn(s,o,n,t.location?.hostname??"");};return t.addEventListener("click",r,true),t.addEventListener("auxclick",r,true),()=>{t.removeEventListener("click",r,true),t.removeEventListener("auxclick",r,true);}}function Fi(t){try{let e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e:void 0}catch{return}}function Vn(t,e){let n=e.map(r=>r.replace(/^\./,"").toLowerCase());return gt(t).find(r=>n.includes(r))}function vt(t){return t.replace(/^\?/,"").split("&").filter(e=>e!=="")}function bt(t){let e=t.indexOf("=");return Le(e===-1?t:t.slice(0,e))===Un}function Li(t){let e=t.indexOf("=");return e===-1?"":t.slice(e+1)}function $i(t){return encodeURIComponent(t).replace(/~/g,"%7E")}function Le(t){try{return decodeURIComponent(t)}catch{return}}function jn(t){if(t===void 0)return false;let e=de(t);return e>=1&&e<=_i}function Ni(t){return t!==void 0&&Pi.test(t)&&Number.isSafeInteger(Number(t))}function Ri(t){if(t.consent?.()?.identityLink===false)return;let e=t.sessionId,n=t.sessionStartedAt;if(!(e===void 0||n===void 0))return {anonymousId:t.anonymousId,sessionId:e,sessionStartedAt:n}}function Oi(t){return typeof t.tagName=="string"&&t.tagName.toUpperCase()==="A"&&typeof t.href=="string"}function Mi(t){let e=typeof t=="object"?t:null;for(;e;){if(Oi(e))return e;e=e.parentElement??null;}}var Xn={maskAllInputs:true,maskAllText:false},Di=new Set(["email","password","tel"]);function Zn(t){return t.replace(/\S/g,"*")}function $e(t,e,n){return qi(e)||n.maskAllInputs?Zn(t):t}function Ne(t,e){return e.maskAllText?Zn(t):t}function qi(t){return Di.has((t??"").toLowerCase())}var Ki=5e3,Re=class{constructor(e){this.options=e;d(this,"buffer",[]);d(this,"seq",0);d(this,"maxEvents");this.maxEvents=Math.min(Math.max(1,e.maxEvents),Ki);}add(e){return this.buffer.push(e),this.buffer.length>=this.maxEvents?this.flush():null}flush(){if(this.buffer.length===0)return null;let e=this.buffer;this.buffer=[];let n={distinct_id:this.options.distinctId(),events:e,masked:this.options.masked,schema_version:1,seq:this.seq,session_id:this.options.sessionId,timestamp:new Date(this.options.now()).toISOString()};return this.seq+=1,n}};var xt=1,kt=3,Hi=9,Oe=class{constructor(){d(this,"next",1);}allocate(){let e=this.next;return this.next+=1,e}},Bi=new Set(["NOSCRIPT","SCRIPT"]);function Me(t,e,n,r){if(t.nodeType===kt){let i=e.allocate();return r?.(t,i),{id:i,textContent:Ne(t.textValue??"",n),type:"text"}}if(t.nodeType===Hi){let i=e.allocate();return r?.(t,i),{childNodes:er(t,e,n,r),id:i,type:"document"}}if(t.nodeType===xt){let i=t.tagName??"";if(Bi.has(i))return null;let s=e.allocate();return r?.(t,s),{attributes:Gi(t,n),childNodes:er(t,e,n,r),id:s,tagName:i,type:"element"}}return null}function er(t,e,n,r){let i=[];for(let s of t.childNodes??[]){let o=Me(s,e,n,r);o&&i.push(o);}return i}function Gi(t,e){let n={};for(let r of t.attributes??[])n[r.name]=r.value;return t.inputValue!==void 0&&(n.value=$e(t.inputValue,t.inputType,e)),n}async function tr(t,e){let n=`${C(e.replayHost)}/v1/replay`;return (await e.fetch(n,{body:JSON.stringify(t),headers:{authorization:`Bearer ${e.apiKey}`,"content-type":"application/json"},method:"POST"})).ok}var nr=new Set(["INPUT","SELECT","TEXTAREA"]),De=class{constructor(e){this.options=e;d(this,"allocator",new Oe);d(this,"mirror",new Map);d(this,"chunker");d(this,"fetchImpl");d(this,"observer");d(this,"timer");d(this,"started",false);this.chunker=new Re({distinctId:e.distinctId,masked:e.mask.maskAllInputs,maxEvents:e.maxEvents,now:e.now,sessionId:e.sessionId}),this.fetchImpl=F(e.fetch);}start(){if(this.started)return;let e=Vi(),n=e?.documentElement;!e||!n||!this.fetchImpl||(this.started=true,this.captureFullSnapshot(n),this.observeMutations(n),this.observeInteractions(e),this.timer=setInterval(()=>this.upload(this.chunker.flush()),this.options.flushIntervalMs));}stop(){this.started&&(this.started=false,this.observer?.disconnect(),this.timer&&clearInterval(this.timer),this.upload(this.chunker.flush()));}captureFullSnapshot(e){let n=Me(this.adapt(e),this.allocator,this.options.mask,(r,i)=>{let s=r.ref;s&&this.mirror.set(s,i);});n&&this.push(2,{node:n});}observeMutations(e){let n=globalThis.MutationObserver;n&&(this.observer=new n(r=>{for(let i of r)this.handleMutation(i);}),this.observer.observe(e,{attributes:true,characterData:true,childList:true,subtree:true}));}handleMutation(e){if(e.type==="characterData"){let n=this.mirror.get(e.target);n!==void 0&&this.push(3,{texts:[{id:n,value:Ne(e.target.textContent??"",this.options.mask)}]});return}if(e.type==="attributes"&&e.attributeName){let n=this.mirror.get(e.target),r=e.target;n!==void 0&&this.push(3,{attributes:[{attributes:{[e.attributeName]:r.getAttribute(e.attributeName)??""},id:n}]});return}if(e.type==="childList"){let n=this.mirror.get(e.target);if(n===void 0)return;for(let r of Array.from(e.addedNodes)){let i=Me(this.adapt(r),this.allocator,this.options.mask,(s,o)=>{let a=s.ref;a&&this.mirror.set(a,o);});i&&this.push(3,{adds:[{node:i,parentId:n}]});}for(let r of Array.from(e.removedNodes)){let i=this.mirror.get(r);i!==void 0&&(this.push(3,{removes:[{id:i,parentId:n}]}),this.mirror.delete(r));}}}observeInteractions(e){e.addEventListener("input",n=>{let r=n.target;if(!r||!nr.has(r.tagName))return;let i=this.mirror.get(r);i!==void 0&&this.push(3,{input:{id:i,value:$e(r.value??"",r.type,this.options.mask)}});},true),e.addEventListener("scroll",n=>{let r=n.target,i=r?this.mirror.get(r):void 0;this.push(3,{scroll:{id:i??0,x:r?.scrollLeft??0,y:r?.scrollTop??0}});},true);}adapt(e){let n={childNodes:[],nodeType:e.nodeType,ref:e};if(e.nodeType===kt)return n.textValue=e.textContent??"",n;if(e.nodeType===xt){let r=e;if(n.tagName=r.tagName,n.attributes=Array.from(r.attributes).map(i=>({name:i.name,value:i.value})),nr.has(r.tagName)){let i=r;n.inputType=i.type,n.inputValue=i.value??"";}}return n.childNodes=Array.from(e.childNodes).map(r=>this.adapt(r)),n}push(e,n){let r=this.chunker.add({data:n,timestamp:this.options.now(),type:e});r&&this.upload(r);}upload(e){!e||!this.fetchImpl||tr(e,{apiKey:this.options.apiKey,fetch:this.fetchImpl,replayHost:this.options.replayHost}).catch(n=>this.options.onError?.(n));}};function Vi(){return globalThis.document}function rr(t){let e=new De({apiKey:t.apiKey,distinctId:t.distinctId,flushIntervalMs:t.flushIntervalMs??5e3,mask:{...Xn,...t.mask},maxEvents:t.maxEvents??200,now:t.now??(()=>Date.now()),onError:t.onError,replayHost:t.replayHost,sessionId:t.sessionId??Ve()});return e.start(),e}var ir=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],sr=["gclid","gbraid","wbraid","fbclid","msclkid","ttclid","li_fat_id","twclid"];var St=(t,e)=>{let n=new URLSearchParams(t),r={};for(let i of [...ir,...sr]){let s=n.get(i)?.trim();s&&(r[i]=s.slice(0,255));}return e&&(r.$session_referrer=e),r},ji=t=>{let e={};for(let n of [...ir,...sr])t[n]!==void 0&&(e[`$initial_${n}`]=t[n]);return e.$initial_referrer=t.$session_referrer??"$direct",e},Ui=(t,e)=>{let n=t.getItem(e);if(n)try{let r=JSON.parse(n);return typeof r.sessionId=="string"&&typeof r.properties=="object"&&r.properties!==null?{properties:r.properties,sessionId:r.sessionId}:void 0}catch{return}},or=(t,e)=>{let n=`pdx_${e}_session_touch`,r=`pdx_${e}_first_touch`;return {forSession:(i,s,o)=>{if(i===void 0)return {};let a=Ui(t,n);if(a!==void 0&&a.sessionId===i)return a.properties;let c=St(s,o);return t.setItem(n,JSON.stringify({properties:c,sessionId:i})),t.getItem(r)?c:(t.setItem(r,"1"),{...c,$set_once:ji(c)})}}};var qe=t=>`prodantix-cta:${t}`,ar=t=>{try{let e=window.localStorage.getItem(qe(t));return e===null?null:Number(e)}catch{return null}},dr=t=>{try{return window.sessionStorage.getItem(qe(t))!==null}catch{return false}},ur=(t,e)=>{try{window.localStorage.setItem(qe(t),String(e)),window.sessionStorage.setItem(qe(t),String(e));}catch{return}},cr=(t,e,n,r)=>e===null?true:t.kind==="once"?false:t.kind==="session"?!n:r-e>=t.value*864e5;var B={am:{back:"\u1270\u1218\u1208\u1235",close:"\u12DD\u130B",closed:"\u12ED\u1205 \u1245\u133D \u12A0\u1201\u1295 \u121D\u120B\u123E\u127D\u1295 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",failed:"\u1218\u120B\u12AD \u12A0\u120D\u1270\u127B\u1208\u121D\u1362 \u12A5\u1295\u12F0\u1308\u1293 \u12ED\u121E\u12AD\u1229\u1362",invalid:"\u12ED\u1205 \u1218\u120D\u1235 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",next:"\u1240\u1323\u12ED",poweredBy:"\u1260Prodantix \u12E8\u1270\u1230\u122B",required:"\u12ED\u1205 \u12EB\u1235\u1348\u120D\u130B\u120D\u1362",sending:"\u1260\u1218\u120B\u12AD \u120B\u12ED\u2026",step:"\u12F0\u1228\u1303 {step} \u12A8{total}",submit:"\u120B\u12AD",thanks:"\u12A5\u1293\u1218\u1230\u130D\u1293\u1208\u1295\u1362"},ar:{back:"\u0631\u062C\u0648\u0639",close:"\u0625\u063A\u0644\u0627\u0642",closed:"\u0644\u0627 \u064A\u0642\u0628\u0644 \u0647\u0630\u0627 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0631\u062F\u0648\u062F\u064B\u0627 \u0627\u0644\u0622\u0646.",failed:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",invalid:"\u0647\u0630\u0647 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629.",next:"\u0627\u0644\u062A\u0627\u0644\u064A",poweredBy:"\u0645\u062F\u0639\u0648\u0645 \u0645\u0646 Prodantix",required:"\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628.",sending:"\u062C\u0627\u0631\u064D \u0627\u0644\u0625\u0631\u0633\u0627\u0644\u2026",step:"\u0627\u0644\u062E\u0637\u0648\u0629 {step} \u0645\u0646 {total}",submit:"\u0625\u0631\u0633\u0627\u0644",thanks:"\u0634\u0643\u0631\u064B\u0627 \u0644\u0643."},bn:{back:"\u09AA\u09C7\u099B\u09A8\u09C7",close:"\u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",closed:"\u098F\u0987 \u09AB\u09B0\u09CD\u09AE\u099F\u09BF \u098F\u0996\u09A8 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A8\u09BF\u099A\u09CD\u099B\u09C7 \u09A8\u09BE\u0964",failed:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09AF\u09BE\u09AF\u09BC\u09A8\u09BF\u0964 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8\u0964",invalid:"\u098F\u0987 \u0989\u09A4\u09CD\u09A4\u09B0\u099F\u09BF \u0997\u09CD\u09B0\u09B9\u09A3\u09AF\u09CB\u0997\u09CD\u09AF \u09A8\u09AF\u09BC\u0964",next:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",poweredBy:"Prodantix \u09A6\u09CD\u09AC\u09BE\u09B0\u09BE \u099A\u09BE\u09B2\u09BF\u09A4",required:"\u098F\u099F\u09BF \u0986\u09AC\u09B6\u09CD\u09AF\u0995\u0964",sending:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09B9\u099A\u09CD\u099B\u09C7\u2026",step:"\u09A7\u09BE\u09AA {step} / {total}",submit:"\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",thanks:"\u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6\u0964"},de:{back:"Zur\xFCck",close:"Schlie\xDFen",closed:"Dieses Formular nimmt gerade keine Antworten an.",failed:"Senden fehlgeschlagen. Bitte erneut versuchen.",invalid:"Diese Antwort wird nicht angenommen.",next:"Weiter",poweredBy:"Bereitgestellt von Prodantix",required:"Dieses Feld ist erforderlich.",sending:"Wird gesendet\u2026",step:"Schritt {step} von {total}",submit:"Absenden",thanks:"Vielen Dank."},en:{back:"Back",close:"Close",closed:"This form is not accepting responses right now.",failed:"This could not be sent. Try again.",invalid:"This answer is not accepted.",next:"Next",poweredBy:"Powered by Prodantix",required:"This is required.",sending:"Sending\u2026",step:"Step {step} of {total}",submit:"Submit",thanks:"Thank you."},es:{back:"Atr\xE1s",close:"Cerrar",closed:"Este formulario no acepta respuestas ahora.",failed:"No se pudo enviar. Int\xE9ntalo de nuevo.",invalid:"Esta respuesta no se acepta.",next:"Siguiente",poweredBy:"Con la tecnolog\xEDa de Prodantix",required:"Este campo es obligatorio.",sending:"Enviando\u2026",step:"Paso {step} de {total}",submit:"Enviar",thanks:"Gracias."},et:{back:"Tagasi",close:"Sulge",closed:"See vorm ei v\xF5ta praegu vastuseid vastu.",failed:"Saatmine eba\xF5nnestus. Proovi uuesti.",invalid:"Seda vastust ei v\xF5eta vastu.",next:"Edasi",poweredBy:"Toetab Prodantix",required:"See on kohustuslik.",sending:"Saatmine\u2026",step:"Samm {step}/{total}",submit:"Saada",thanks:"Ait\xE4h."},fil:{back:"Bumalik",close:"Isara",closed:"Hindi tumatanggap ng sagot ang form na ito ngayon.",failed:"Hindi naipadala. Subukan ulit.",invalid:"Hindi tinatanggap ang sagot na ito.",next:"Susunod",poweredBy:"Pinapagana ng Prodantix",required:"Kailangan ito.",sending:"Ipinapadala\u2026",step:"Hakbang {step} sa {total}",submit:"Ipadala",thanks:"Salamat."},fr:{back:"Retour",close:"Fermer",closed:"Ce formulaire n\u2019accepte plus de r\xE9ponses pour le moment.",failed:"L\u2019envoi a \xE9chou\xE9. R\xE9essayez.",invalid:"Cette r\xE9ponse n\u2019est pas accept\xE9e.",next:"Suivant",poweredBy:"Propuls\xE9 par Prodantix",required:"Ce champ est obligatoire.",sending:"Envoi\u2026",step:"\xC9tape {step} sur {total}",submit:"Envoyer",thanks:"Merci."},hi:{back:"\u092A\u0940\u091B\u0947",close:"\u092C\u0902\u0926 \u0915\u0930\u0947\u0902",closed:"\u092F\u0939 \u092B\u093C\u0949\u0930\u094D\u092E \u0905\u092D\u0940 \u091C\u0935\u093E\u092C \u0928\u0939\u0940\u0902 \u0932\u0947 \u0930\u0939\u093E \u0939\u0948\u0964",failed:"\u092D\u0947\u091C\u093E \u0928\u0939\u0940\u0902 \u091C\u093E \u0938\u0915\u093E\u0964 \u092B\u093F\u0930 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",invalid:"\u092F\u0939 \u091C\u0935\u093E\u092C \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",next:"\u0906\u0917\u0947",poweredBy:"Prodantix \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u0902\u091A\u093E\u0932\u093F\u0924",required:"\u092F\u0939 \u091C\u093C\u0930\u0942\u0930\u0940 \u0939\u0948\u0964",sending:"\u092D\u0947\u091C\u093E \u091C\u093E \u0930\u0939\u093E \u0939\u0948\u2026",step:"\u091A\u0930\u0923 {step} / {total}",submit:"\u092D\u0947\u091C\u0947\u0902",thanks:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926\u0964"},id:{back:"Kembali",close:"Tutup",closed:"Formulir ini sedang tidak menerima tanggapan.",failed:"Gagal mengirim. Coba lagi.",invalid:"Jawaban ini tidak diterima.",next:"Berikutnya",poweredBy:"Didukung oleh Prodantix",required:"Wajib diisi.",sending:"Mengirim\u2026",step:"Langkah {step} dari {total}",submit:"Kirim",thanks:"Terima kasih."},ja:{back:"\u623B\u308B",close:"\u9589\u3058\u308B",closed:"\u3053\u306E\u30D5\u30A9\u30FC\u30E0\u306F\u73FE\u5728\u56DE\u7B54\u3092\u53D7\u3051\u4ED8\u3051\u3066\u3044\u307E\u305B\u3093\u3002",failed:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",invalid:"\u3053\u306E\u56DE\u7B54\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3002",next:"\u6B21\u3078",poweredBy:"Powered by Prodantix",required:"\u5FC5\u9808\u9805\u76EE\u3067\u3059\u3002",sending:"\u9001\u4FE1\u4E2D\u2026",step:"\u30B9\u30C6\u30C3\u30D7 {step}/{total}",submit:"\u9001\u4FE1",thanks:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3057\u305F\u3002"},ko:{back:"\uC774\uC804",close:"\uB2EB\uAE30",closed:"\uC774 \uC591\uC2DD\uC740 \uC9C0\uAE08 \uC751\uB2F5\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",failed:"\uBCF4\uB0B4\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",invalid:"\uC774 \uB2F5\uBCC0\uC740 \uBC1B\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",next:"\uB2E4\uC74C",poweredBy:"Prodantix \uC81C\uACF5",required:"\uD544\uC218 \uD56D\uBAA9\uC785\uB2C8\uB2E4.",sending:"\uBCF4\uB0B4\uB294 \uC911\u2026",step:"{total}\uB2E8\uACC4 \uC911 {step}\uB2E8\uACC4",submit:"\uC81C\uCD9C",thanks:"\uAC10\uC0AC\uD569\uB2C8\uB2E4."},pt:{back:"Voltar",close:"Fechar",closed:"Este formul\xE1rio n\xE3o est\xE1 a aceitar respostas neste momento.",failed:"N\xE3o foi poss\xEDvel enviar. Tente novamente.",invalid:"Esta resposta n\xE3o \xE9 aceite.",next:"Seguinte",poweredBy:"Com tecnologia Prodantix",required:"Este campo \xE9 obrigat\xF3rio.",sending:"A enviar\u2026",step:"Passo {step} de {total}",submit:"Enviar",thanks:"Obrigado."},ru:{back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",closed:"\u042D\u0442\u0430 \u0444\u043E\u0440\u043C\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u044B.",failed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",invalid:"\u042D\u0442\u043E\u0442 \u043E\u0442\u0432\u0435\u0442 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",next:"\u0414\u0430\u043B\u0435\u0435",poweredBy:"\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 Prodantix",required:"\u042D\u0442\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.",sending:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430\u2026",step:"\u0428\u0430\u0433 {step} \u0438\u0437 {total}",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",thanks:"\u0421\u043F\u0430\u0441\u0438\u0431\u043E."},sw:{back:"Rudi",close:"Funga",closed:"Fomu hii haipokei majibu kwa sasa.",failed:"Imeshindwa kutuma. Jaribu tena.",invalid:"Jibu hili halikubaliki.",next:"Endelea",poweredBy:"Inaendeshwa na Prodantix",required:"Hii inahitajika.",sending:"Inatuma\u2026",step:"Hatua {step} kati ya {total}",submit:"Tuma",thanks:"Asante."},vi:{back:"Quay l\u1EA1i",close:"\u0110\xF3ng",closed:"Bi\u1EC3u m\u1EABu n\xE0y hi\u1EC7n kh\xF4ng nh\u1EADn c\xE2u tr\u1EA3 l\u1EDDi.",failed:"Kh\xF4ng g\u1EEDi \u0111\u01B0\u1EE3c. H\xE3y th\u1EED l\u1EA1i.",invalid:"C\xE2u tr\u1EA3 l\u1EDDi n\xE0y kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn.",next:"Ti\u1EBFp",poweredBy:"\u0110\u01B0\u1EE3c h\u1ED7 tr\u1EE3 b\u1EDFi Prodantix",required:"Tr\u01B0\u1EDDng n\xE0y l\xE0 b\u1EAFt bu\u1ED9c.",sending:"\u0110ang g\u1EEDi\u2026",step:"B\u01B0\u1EDBc {step}/{total}",submit:"G\u1EEDi",thanks:"C\u1EA3m \u01A1n b\u1EA1n."},zh:{back:"\u4E0A\u4E00\u6B65",close:"\u5173\u95ED",closed:"\u6B64\u8868\u5355\u76EE\u524D\u4E0D\u63A5\u53D7\u56DE\u590D\u3002",failed:"\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",invalid:"\u6B64\u56DE\u7B54\u65E0\u6548\u3002",next:"\u4E0B\u4E00\u6B65",poweredBy:"\u7531 Prodantix \u63D0\u4F9B\u652F\u6301",required:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879\u3002",sending:"\u6B63\u5728\u53D1\u9001\u2026",step:"\u7B2C {step} \u6B65\uFF0C\u5171 {total} \u6B65",submit:"\u63D0\u4EA4",thanks:"\u8C22\u8C22\u3002"}},Ke=t=>{let e=(t??"").toLowerCase().split("-")[0]??"";return e in B?e:"en"};var b="prodantix-cta",lr="prodantix-cta-style",Wi=`.${b}{font-family:system-ui,sans-serif;color:var(--pdx-text);background:var(--pdx-background);border-radius:var(--pdx-radius);box-sizing:border-box;padding:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
1
+ 'use strict';var Ir=Object.defineProperty;var _r=(t,e,n)=>e in t?Ir(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n;var d=(t,e,n)=>_r(t,typeof e!="symbol"?e+"":e,n);var D=class extends Error{constructor(n,r,i){super(r,i);d(this,"code");this.code=n,this.name="ProdantixError";}},Z=class extends D{constructor(e){super("config",e),this.name="ConfigError";}},U=class extends D{constructor(n,r){super("validation",r);d(this,"field");this.field=n,this.name="ValidationError";}},f=class extends D{constructor(n,r,i){super("transport",n,i);d(this,"status");this.status=r,this.name="TransportError";}};function F(t){if(t)return t;let e=globalThis.fetch;if(typeof e=="function")return e.bind(globalThis)}function L(){let t=globalThis.AbortController;return t?new t:void 0}var Ft=t=>new Promise(e=>{setTimeout(e,t);});function C(t){return t.replace(/\/+$/,"")}var G=class{constructor(){d(this,"store",new Map);}getItem(e){return this.store.get(e)??null}removeItem(e){this.store.delete(e);}setItem(e,n){this.store.set(e,n);}},ee=class{constructor(e,n=()=>false){this.real=e;this.passes=n;d(this,"held",new G);d(this,"opened",false);}get isOpen(){return this.opened}open(){this.opened=true;}close(){this.opened=false;}target(e){return this.opened||this.passes(e)?this.real:this.held}getItem(e){return this.target(e).getItem(e)}removeItem(e){this.target(e).removeItem(e);}setItem(e,n){this.target(e).setItem(e,n);}};function Lt(){try{let t=globalThis.localStorage;if(t){let e="__pdx_probe__";return t.setItem(e,"1"),t.removeItem(e),t}}catch{return new G}return new G}var oe={now:()=>new Date};function ae(t){return t.toISOString()}function $t(){if(typeof window>"u"||typeof Intl>"u")return null;let t=Intl.DateTimeFormat().resolvedOptions().timeZone;return typeof t=="string"&&t!==""?t:null}function Pr(){return globalThis.crypto}function Ar(t){t[6]=t[6]&15|64,t[8]=t[8]&63|128;let e=[];for(let n=0;n<16;n+=1)e.push(t[n].toString(16).padStart(2,"0"));return `${e[0]}${e[1]}${e[2]}${e[3]}-${e[4]}${e[5]}-${e[6]}${e[7]}-${e[8]}${e[9]}-${e[10]}${e[11]}${e[12]}${e[13]}${e[14]}${e[15]}`}function Ve(){let t=Pr();if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<16;n+=1)e[n]=Math.floor(Math.random()*256);return Ar(e)}var Nt={uuid:Ve};var Fr=/^pdx_pub_(?:(?:live|test)_)?[a-z0-9]{32}$/;var Lr=/^(?:\$|[a-z])[a-z0-9_.]*$/;function de(t){let e=0;for(let n of t)e+=1;return e}function Rt(t){return Fr.test(t)}function $r(t){return Lr.test(t)}function Ot(t){let e=de(t);if(e<1||e>200)throw new U("distinct_id","distinct_id must be between 1 and 200 characters")}function Mt(t){let e=de(t);if(e<1||e>200)throw new U("event_name","event_name must be between 1 and 200 characters");if(!$r(t))throw new U("event_name","event_name must match /^(\\$|[a-z])[a-z0-9_.]*$/")}var Dt="prodantix-js",qt="0.9.0";var Nr=t=>{};function Kt(t){if(!t.apiKey||!Rt(t.apiKey))throw new Z("apiKey must be a public project key of the form pdx_pub_<32 lowercase alphanumerics>");if(!t.host)throw new Z("host is required (the ingest base URL)");let e=C(t.host),n=t.defaultProperties,r=t.storage??new G;return {apiKey:t.apiKey,autocapture:t.autocapture??false,clock:t.clock??oe,consent:t.consent,consentMode:t.consentMode,defaultProperties:typeof n=="function"?n:()=>n??{},describeElement:t.describeElement,flagsHost:t.flagsHost?C(t.flagsHost):e,flushAt:t.flushAt??20,flushIntervalMs:t.flushIntervalMs??1e4,host:e,ids:t.ids??Nt,locale:t.locale,maxQueueSize:t.maxQueueSize??1e3,maxRetries:t.maxRetries??3,namespace:W(t.apiKey),onError:t.onError??Nr,os:t.os,requestTimeoutMs:t.requestTimeoutMs??1e4,sdkName:t.sdkName??Dt,sdkVersion:t.sdkVersion??qt,sessionTracking:t.sessionTracking??false,sharedStorage:t.sharedStorage??r,socketFactory:t.socketFactory,storage:r,streamFlags:t.streamFlags??false,transport:t.transport}}function W(t){return t.slice(0,16)}var Ht="$cta_viewed",Bt="$cta_clicked",je="$cta_dismissed",Gt=(t,e)=>{let n={$cta_id:t.id,$cta_kind:t.kind,$cta_variant:t.variant.key,$cta_version:t.version},r=e===void 0?void 0:t.variant.content.buttons[e];return r&&e!==void 0&&(n.$cta_button=e,n.$cta_button_label=r.label,r.action.kind==="form"&&(n.$cta_form_id=r.action.value)),n},ue=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async ctas(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=new URLSearchParams({anonymous:String(e.anonymous),device:e.device,distinct_id:e.distinctId,language:e.language,url:e.url}),i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await n(`${this.host}/v1/ctas?${r.toString()}`,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(o.status<200||o.status>=300)throw new f(`ctas request failed with status ${o.status}`,o.status);return JSON.parse(await o.text()).ctas}finally{s!==void 0&&clearTimeout(s);}}};function Vt(t,e,n){Mt(t.eventName),Ot(t.distinctId);let r={distinct_id:t.distinctId,event_id:t.eventId??n.uuid(),event_name:t.eventName,properties:t.properties??{},schema_version:1,timestamp:ae(t.timestamp??e.now())};return t.context&&(r.context=t.context),t.sessionId&&(r.session_id=t.sessionId),r}var j=Symbol("absent");function Rr(t,e){if(t==="distinct_id")return e.distinctId;let n=e.properties??{};if(Object.prototype.hasOwnProperty.call(n,t))return n[t];let r=e.attributes??{};return Object.prototype.hasOwnProperty.call(r,t)?r[t]:j}function V(t){return t===j?"undefined":String(t)}function jt(t){return t===j?Number.NaN:Number(t)}function Ut(t){return t!==j&&t!==null&&t!==""}function Wt(t,e){if(!Array.isArray(e))return false;let n=V(t);return e.map(r=>String(r)).includes(n)}function zt(t,e){let n=Rr(t.attribute,e),r=t.value;switch(t.op){case "is_set":return Ut(n);case "is_not_set":return !Ut(n);case "eq":return V(n)===V(r===void 0?j:r);case "neq":return V(n)!==V(r===void 0?j:r);case "contains":return V(n).includes(V(r===void 0?j:r));case "in":return Wt(n,r);case "not_in":return Array.isArray(r)?!Wt(n,r):false;case "gt":return ce(n,r,(i,s)=>i>s);case "gte":return ce(n,r,(i,s)=>i>=s);case "lt":return ce(n,r,(i,s)=>i<s);case "lte":return ce(n,r,(i,s)=>i<=s);case "in_cohort":return typeof r=="string"&&r!==""&&(e.cohorts??[]).includes(r);case "not_in_cohort":return typeof r=="string"&&r!==""&&!(e.cohorts??[]).includes(r);default:return false}}function ce(t,e,n){let r=jt(t),i=e===void 0?Number.NaN:jt(e);return Number.isNaN(r)||Number.isNaN(i)?false:n(r,i)}function Jt(t,e){let n=`${t}:${e}`,r=2166136261;for(let i=0;i<n.length;i++)r^=n.charCodeAt(i),r=Math.imul(r,16777619);return (r>>>0)%100}function Ue(t,e){return t.targeting.length===0||t.targeting.every(n=>zt(n,e))}function Yt(t,e){let n=Jt(t.key,e.distinctId),r=t.variations??[];if(r.length===0)return t.rolloutPercentage>=100||n<t.rolloutPercentage?"true":"false";let i=0;for(let s=r.length-1;s>=0;s--)if(i+=r[s].weight,n<i)return r[s].key;return r[0].key}function We(t,e,n,r){for(let i of t.prerequisites??[]){if(r.includes(i.flagKey))return false;let s=e.find(a=>a.key===i.flagKey);if(!s||!s.enabled)return false;r.push(s.key);let o=We(s,e,n,r)&&Ue(s,n)&&Yt(s,n)===i.variationKey;if(r.pop(),!o)return false}return true}function le(t,e,n){return t.enabled?We(t,e,n,[t.key])?Ue(t,n)?t.rolloutPercentage>=100?{enabled:true,reason:"rollout_full"}:Jt(t.key,n.distinctId)<t.rolloutPercentage?{enabled:true,reason:"rollout"}:{enabled:false,reason:"rollout_excluded"}:{enabled:false,reason:"targeting"}:{enabled:false,reason:"prerequisite"}:{enabled:false,reason:"disabled"}}function Qt(t,e){let n={};for(let r of t)n[r.key]=le(r,t,e).enabled;return n}function ze(t,e,n){let r=t.variations??[],i=r[0];if(!i)return null;if(!t.enabled||!We(t,e,n,[t.key])||!Ue(t,n))return i;let s=Yt(t,n);return r.find(o=>o.key===s)??i}function Xt(t){return t.some(e=>e.targeting.some(n=>n.op==="in_cohort"||n.op==="not_in_cohort"))}function Zt(t){return `40${JSON.stringify(t)}`}function en(){return "3"}function tn(t){let e=t.charAt(0),n=t.slice(1);if(e==="2")return {kind:"ping"};if(e==="1")return {kind:"disconnect"};if(e==="0"){let o=Je(n);return {kind:"open",pingInterval:typeof o?.pingInterval=="number"?o.pingInterval:25e3,pingTimeout:typeof o?.pingTimeout=="number"?o.pingTimeout:2e4}}if(e!=="4")return {kind:"other"};let r=n.charAt(0),i=n.slice(1);if(r==="0")return {kind:"connected"};if(r==="1")return {kind:"disconnect"};if(r==="4"){let o=Je(i);return {kind:"connectError",message:typeof o?.message=="string"?o.message:"refused"}}if(r!=="2")return {kind:"other"};let s=Je(i);return !Array.isArray(s)||typeof s[0]!="string"?{kind:"other"}:{kind:"event",name:s[0],payload:s[1]}}function Je(t){try{return JSON.parse(t)}catch{return null}}var Or="/socket.io/?EIO=4&transport=websocket",Mr=250,pe=class{constructor(e){this.options=e;d(this,"socket",null);d(this,"heartbeat",null);d(this,"pending",null);d(this,"lastKey","");d(this,"ready",false);d(this,"closed",false);d(this,"heartbeatWindow",45e3);d(this,"factory");d(this,"setTimer");d(this,"clearTimer");this.factory=e.socketFactory??Dr,this.setTimer=e.setTimer??((n,r)=>setTimeout(n,r)),this.clearTimer=e.clearTimer??(n=>clearTimeout(n));}open(){if(this.socket||this.closed)return;let e=`${this.options.host.replace(/^http/,"ws").replace(/\/+$/,"")}${Or}`,n;try{n=this.factory(e);}catch{this.options.onClosed(false);return}this.socket=n,n.onmessage=r=>this.receive(String(r.data)),n.onerror=()=>n.close(),n.onclose=()=>this.fell();}close(){this.closed=true,this.stopHeartbeat(),this.pending!==null&&this.clearTimer(this.pending),this.pending=null;let e=this.socket;this.socket=null,e?.close();}receive(e){let n=tn(e);if(n.kind==="open"){this.armHeartbeat(n.pingInterval+n.pingTimeout),this.socket?.send(Zt({projectKey:this.options.projectKey}));return}if(n.kind==="ping"){this.armHeartbeat(),this.socket?.send(en());return}if(n.kind==="connectError"||n.kind==="disconnect"){this.stopHeartbeat(),this.socket?.close();return}if(n.kind==="event"){if(n.name==="ready"){this.ready=true;return}if(n.name==="flagChange"){let r=n.payload?.key;this.lastKey=typeof r=="string"?r:"",this.pending===null&&(this.pending=this.setTimer(()=>{this.pending=null,this.options.onChange(this.lastKey);},Mr));}}}fell(){this.stopHeartbeat();let e=this.ready;this.socket=null,this.ready=false,this.closed||this.options.onClosed(e);}armHeartbeat(e){e!==void 0&&(this.heartbeatWindow=e),this.stopHeartbeat(),this.heartbeat=this.setTimer(()=>this.socket?.close(),this.heartbeatWindow);}stopHeartbeat(){this.heartbeat!==null&&this.clearTimer(this.heartbeat),this.heartbeat=null;}};function Dr(t){let e=globalThis.WebSocket;if(!e)throw new f("no WebSocket");return new e(t)}var me=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async fetchAll(e){return (await this.fetchDecisions(e)).flags}async fetchDecisions(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=`${this.host}/v1/flags?distinct_id=${encodeURIComponent(e)}`,i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await n(r,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(!o.ok)throw new f(`flags request failed with status ${o.status}`,o.status);let a=JSON.parse(await o.text());return {flags:a.flags??{},variants:a.variants??{}}}finally{s!==void 0&&clearTimeout(s);}}async snapshot(){let e=this.fetch;if(!e)throw new f("no fetch implementation available in this runtime");let n=`${this.host}/v1/flags/snapshot`,r=L(),i=r?setTimeout(()=>r.abort(),this.requestTimeoutMs):void 0;try{let s=await e(n,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:r?.signal});if(!s.ok)throw new f(`flag snapshot request failed with status ${s.status}`,s.status);let o=JSON.parse(await s.text()),a={flags:o.flags??[],generatedAt:o.generatedAt};return typeof o.socketUrl=="string"&&o.socketUrl!==""&&(a.socketUrl=o.socketUrl),a}finally{i!==void 0&&clearTimeout(i);}}async memberships(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=`${this.host}/v1/flags/memberships?distinct_id=${encodeURIComponent(e)}`,i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await n(r,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(!o.ok)throw new f(`memberships request failed with status ${o.status}`,o.status);return JSON.parse(await o.text()).cohorts??[]}finally{s!==void 0&&clearTimeout(s);}}};var nn="$form_viewed",rn="$form_started",te=class extends Error{constructor(n,r,i){super(i);d(this,"fields");d(this,"status");this.name="FormRefusedError",this.status=n,this.fields=r;}},fe=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async request(e,n){let r=this.fetch;if(!r)throw new f("no fetch implementation available in this runtime");let i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o={authorization:`Bearer ${this.projectKey}`};n.body!==void 0&&(o["content-type"]="application/json");let a=await r(`${this.host}${e}`,{body:n.body,headers:o,method:n.method,signal:i?.signal});return {status:a.status,text:await a.text()}}finally{s!==void 0&&clearTimeout(s);}}async form(e,n){let{status:r,text:i}=await this.request(`/v1/forms/${encodeURIComponent(e)}?distinct_id=${encodeURIComponent(n)}`,{method:"GET"});if(r<200||r>=300)throw new f(`form request failed with status ${r}`,r);return JSON.parse(i)}async submit(e,n){let{status:r,text:i}=await this.request(`/v1/forms/${encodeURIComponent(e)}/submissions`,{body:JSON.stringify(n),method:"POST"});if(r>=200&&r<300)return JSON.parse(i).afterSubmit;let s=[],o=`form submission failed with status ${r}`;try{let a=JSON.parse(i);s=a.error?.fields??[],o=a.error?.message??o;}catch{s=[];}throw new te(r,s,o)}};var sn="$survey_shown",on="$survey_dismissed",an="$survey_sent",ge=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async surveys(e,n){let r=this.fetch;if(!r)throw new f("no fetch implementation available in this runtime");let i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{let o=await r(`${this.host}/v1/surveys?distinct_id=${encodeURIComponent(e)}${n?`&lang=${encodeURIComponent(n)}`:""}`,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:i?.signal});if(!o.ok)throw new f(`surveys request failed with status ${o.status}`,o.status);return JSON.parse(await o.text()).surveys??[]}finally{s!==void 0&&clearTimeout(s);}}},qr=864e5,he=t=>`${t.id}:${t.iteration}`;function Ye(t,e){return t.length===0?true:t.some(n=>{switch(n.matches){case "exact":return e===n.value;case "starts_with":return e.startsWith(n.value);default:return e.includes(n.value)}})}function dn(t,e,n,r,i){return t.kind!=="popover"||e.settled.includes(he(t))||t.showOnce&&e.settled.some(s=>s.startsWith(`${t.id}:`))||t.waitDays>0&&e.lastShownAt!==void 0&&r-e.lastShownAt<t.waitDays*qr||t.event&&t.event!==i?false:Ye(t.urls,n)}function ye(t,e){let n={$survey_id:t.id,$survey_iteration:t.iteration,$survey_name:t.name};for(let[r,i]of Object.entries(e))n[`$survey_response_${r}`]=i;return n}var Qe="$guide_shown",un="$guide_step_viewed",cn="$guide_step_missed",Xe="$guide_completed",Ze="$guide_dismissed",ln="$checklist_task_done",ve=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async guides(e){let n=this.fetch;if(!n)throw new f("no fetch implementation available in this runtime");let r=L(),i=r?setTimeout(()=>r.abort(),this.requestTimeoutMs):void 0;try{let s=await n(`${this.host}/v1/guides?distinct_id=${encodeURIComponent(e)}`,{headers:{authorization:`Bearer ${this.projectKey}`},method:"GET",signal:r?.signal});if(!s.ok)throw new f(`guides request failed with status ${s.status}`,s.status);return JSON.parse(await s.text()).guides??[]}finally{i!==void 0&&clearTimeout(i);}}},Kr=864e5,z=t=>`${t.id}:${t.iteration}`,be=(t,e)=>`${z(t)}:${e}`;function pn(t,e,n,r,i){return e.settled.includes(z(t))||t.showOnce&&e.settled.some(s=>s.startsWith(`${t.id}:`))||t.kind!=="checklist"&&t.waitDays>0&&e.lastShownAt!==void 0&&r-e.lastShownAt<t.waitDays*Kr||t.event&&t.event!==i?false:Ye(t.urls,n)}var et=(t,e)=>t.steps.filter(n=>e.done.includes(be(t,n.id))).map(n=>n.id),mn=(t,e)=>t.kind==="checklist"?t.steps.find(n=>n.event===e):void 0;function fn(t,e){let n={$guide_id:t.id,$guide_iteration:t.iteration,$guide_name:t.name};return e!==void 0&&(n.$guide_step_id=e),n}function ne(t){if(typeof t!="string")return;let e=Array.from(t).length;return e>=1&&e<=200?t:void 0}function ke(t,e){return `pdx.${t}.${e}`}var nt="consent",Hr=["identityLink","analytics","marketing","functional"];function tt(t){if(typeof t!="string")return null;try{let e=JSON.parse(t);if(e===null||typeof e!="object"||Array.isArray(e))return null;let n=e,r={};for(let i of Hr){let s=n[i];typeof s=="boolean"&&(r[i]=s);}return typeof n.version=="number"&&Number.isInteger(n.version)&&(r.version=n.version),Array.isArray(n.categories)&&n.categories.every(i=>typeof i=="string")&&(r.categories=n.categories),Object.keys(r).length===0?null:r}catch{return null}}var gn=t=>t.endsWith(`.${nt}`);function Se(t,e){return tt(t.getItem(ke(e,nt)))}function Br(t,e,n){let r=ke(e,nt),i=tt(JSON.stringify(n)),s=i===null?null:tt(JSON.stringify({...Se(t,e)??{},...i}));if(s===null){t.removeItem(r);return}t.setItem(r,JSON.stringify(s));}function hn(t,e,n,r){let i=ke(n,"anonymous_id"),s=ne(e.getItem(i))??ne(t.getItem(i));return e.setItem(i,r),t.setItem(i,r),s!==void 0&&s!==r?s:void 0}var xe=class{constructor(e,n,r,i){this.storage=e;this.shared=n;this.ids=r;this.namespace=i;d(this,"anonymousId");d(this,"distinctId");d(this,"identified");this.refresh();}refresh(){let e=ne(this.shared.getItem(this.key("anonymous_id"))),n=ne(this.storage.getItem(this.key("anonymous_id")));e?(this.anonymousId=e,n!==e&&this.storage.setItem(this.key("anonymous_id"),e)):n?(this.anonymousId=n,this.shared.setItem(this.key("anonymous_id"),n)):(this.anonymousId=this.ids.uuid(),this.shared.setItem(this.key("anonymous_id"),this.anonymousId),this.storage.setItem(this.key("anonymous_id"),this.anonymousId));let r=ne(this.storage.getItem(this.key("distinct_id")));r?(this.distinctId=r,this.identified=true):(this.distinctId=this.anonymousId,this.identified=false);}getAnonymousId(){return this.anonymousId}getDistinctId(){return this.distinctId}isIdentified(){return this.identified}snapshot(){return {anonymousId:this.anonymousId,distinctId:this.distinctId,identified:this.identified}}consent(){return Se(this.shared,this.namespace)}setConsent(e){Br(this.shared,this.namespace,e);}assumeAnonymousId(e){this.anonymousId=e,this.shared.setItem(this.key("anonymous_id"),e),this.storage.setItem(this.key("anonymous_id"),e),this.identified||(this.distinctId=e);}identify(e){let n=!this.identified||this.distinctId!==e,r=this.storage.getItem(this.key("linked_anonymous_id")),i=n||r!==this.anonymousId;return this.distinctId=e,this.identified=true,n&&this.storage.setItem(this.key("distinct_id"),e),!i||this.consent()?.identityLink===false?{changed:n}:(this.storage.setItem(this.key("linked_anonymous_id"),this.anonymousId),{anonymousToLink:this.anonymousId,changed:n})}reset(){this.anonymousId=this.ids.uuid(),this.distinctId=this.anonymousId,this.identified=false,this.shared.setItem(this.key("anonymous_id"),this.anonymousId),this.storage.setItem(this.key("anonymous_id"),this.anonymousId),this.storage.removeItem(this.key("distinct_id")),this.storage.removeItem(this.key("linked_anonymous_id"));}key(e){return ke(this.namespace,e)}};var we=class{constructor(e){d(this,"fetch");d(this,"host");d(this,"projectKey");d(this,"requestTimeoutMs");this.fetch=F(e.fetch),this.host=C(e.host),this.projectKey=e.projectKey,this.requestTimeoutMs=e.requestTimeoutMs??1e4;}async inbox(e){let n=this.requireFetch(),r=`${this.host}/v1/messages?distinct_id=${encodeURIComponent(e)}`,i=await this.request(n,r,{headers:this.authHeaders(),method:"GET"});if(!i.ok)throw new f(`inbox request failed with status ${i.status}`,i.status);return JSON.parse(await i.text()).messages??[]}async markRead(e,n){let r=this.requireFetch(),i=`${this.host}/v1/messages/read`,s=await this.request(r,i,{body:JSON.stringify({distinct_id:n,message_id:e}),headers:{...this.authHeaders(),"content-type":"application/json"},method:"POST"});if(!s.ok)throw new f(`mark-read request failed with status ${s.status}`,s.status)}requireFetch(){if(!this.fetch)throw new f("no fetch implementation available in this runtime");return this.fetch}authHeaders(){return {authorization:`Bearer ${this.projectKey}`}}async request(e,n,r){let i=L(),s=i?setTimeout(()=>i.abort(),this.requestTimeoutMs):void 0;try{return await e(n,{...r,signal:i?.signal})}finally{s!==void 0&&clearTimeout(s);}}};var Ee=class{constructor(e,n){this.maxSize=e;this.onOverflow=n;d(this,"events",[]);}get size(){return this.events.length}enqueue(e){this.events.push(e),this.enforceCap();}restore(e){this.events.push(...e),this.enforceCap();}requeue(e){this.events.unshift(...e),this.enforceCap();}drain(e){let n=e===void 0?this.events.length:Math.min(e,this.events.length);return this.events.splice(0,n)}snapshot(){return [...this.events]}enforceCap(){if(this.events.length<=this.maxSize)return;let e=this.events.splice(0,this.events.length-this.maxSize);this.onOverflow?.({dropped:e});}};var Gr={idleMs:18e5,maxMs:864e5,throttleMs:1e4};function yn(t){return `pdx.${t}.session`}function vn(t,e,n,r){let i={id:n.id,lastActivityAt:r,startedAt:n.startedAt};t.setItem(yn(e),JSON.stringify(i));}var Te=class{constructor(e,n,r,i,s=Gr){this.storage=e;this.ids=n;this.clock=r;this.namespace=i;this.options=s;}current(){return this.touch().id}startedAt(){return this.touch().startedAt}reset(){this.storage.removeItem(this.key());}touch(){let e=this.clock.now().getTime(),n=this.live(this.read(),e);if(n===void 0)return this.write({id:this.ids.uuid(),lastActivityAt:e,startedAt:e});if(e-n.lastActivityAt<=this.options.throttleMs)return n;let r=this.live(this.read(),e),i=r!==void 0&&r.id!==n.id?r:n;return this.write({...i,lastActivityAt:e})}live(e,n){if(e!==void 0&&!(n-e.lastActivityAt>this.options.idleMs||n-e.startedAt>this.options.maxMs))return e}write(e){return this.storage.setItem(this.key(),JSON.stringify(e)),e}read(){let e=this.storage.getItem(this.key());if(e)try{let n=JSON.parse(e);return typeof n.id=="string"&&typeof n.startedAt=="number"&&typeof n.lastActivityAt=="number"?{id:n.id,lastActivityAt:n.lastActivityAt,startedAt:n.startedAt}:void 0}catch{return}}key(){return yn(this.namespace)}};var w={autocapture:"$autocapture",createAlias:"$create_alias",featureFlagCalled:"$feature_flag_called",group:"$group",identify:"$identify",pageview:"$pageview",set:"$set",webVitals:"$web_vitals"};var bn=6e4;function Vr(t){return t.length*3<=bn||new TextEncoder().encode(t).length<=bn}function xn(t){return t>=400&&t<500&&t!==429}var J=class{constructor(e={}){d(this,"fetch");d(this,"maxRetries");d(this,"requestTimeoutMs");d(this,"baseDelayMs");d(this,"maxDelayMs");d(this,"sleep");d(this,"random");this.fetch=F(e.fetch),this.maxRetries=e.maxRetries??3,this.requestTimeoutMs=e.requestTimeoutMs??1e4,this.baseDelayMs=e.baseDelayMs??500,this.maxDelayMs=e.maxDelayMs??3e4,this.sleep=e.sleep??Ft,this.random=e.random??Math.random;}async send(e,n={}){let r=this.fetch;if(!r)throw new f("no fetch implementation available in this runtime");let i=JSON.stringify(e.body),s=n.keepalive===true&&Vr(i),o;for(let a=0;a<=this.maxRetries;a+=1){try{let c=await this.attempt(r,e,i,s);if(c.ok)return;if(xn(c.status))throw new f(`ingest rejected batch with status ${c.status}`,c.status);o=new f(`ingest transient status ${c.status}`,c.status);}catch(c){if(c instanceof f&&c.status!==void 0&&xn(c.status))throw c;o=c;}a<this.maxRetries&&await this.sleep(this.backoff(a));}throw new f("ingest delivery failed after retries",void 0,{cause:o})}async attempt(e,n,r,i){let s=L(),o=s?setTimeout(()=>s.abort(),this.requestTimeoutMs):void 0;try{return await e(n.url,{body:r,headers:{authorization:`Bearer ${n.projectKey}`,"content-type":"application/json"},...i?{keepalive:!0}:{},method:"POST",signal:s?.signal})}finally{o!==void 0&&clearTimeout(o);}}backoff(e){return Math.min(this.maxDelayMs,this.baseDelayMs*2**e)+this.random()*this.baseDelayMs}};var jr="queue",Ur=1e3,kn=3e4,rt=t=>{let e={};return t.avatar!==void 0&&(e.$avatar=t.avatar),t.email!==void 0&&(e.$email=t.email),t.name!==void 0&&(e.$name=t.name),t.phone!==void 0&&(e.$phone=t.phone),e},Ce=class{constructor(e){d(this,"config");d(this,"identity");d(this,"session");d(this,"queue");d(this,"transport");d(this,"flagsClient");d(this,"messagesClient");d(this,"surveysClient");d(this,"guidesClient");d(this,"captureListeners",new Set);d(this,"formsClient");d(this,"ctasClient");d(this,"context");d(this,"flushTimer");d(this,"flushing",false);d(this,"cachedFlags");d(this,"cachedSnapshot");d(this,"membershipCache");d(this,"stream");d(this,"shutDown",false);d(this,"exposures",new Set);d(this,"gates");d(this,"cookielessId");d(this,"storageListeners",new Set);let n=Kt(e),r=Se(n.sharedStorage,n.namespace)??n.consent??null;if(this.gates=[new ee(n.storage),new ee(n.sharedStorage,gn)],n.consentMode!=="banner"||r?.analytics===true)for(let o of this.gates)o.open();let[i,s]=this.gates;this.config={...n,sharedStorage:s,storage:i},this.identity=new xe(this.config.storage,this.config.sharedStorage,this.config.ids,this.config.namespace),this.config.consent!==void 0&&this.identity.setConsent(this.config.consent),this.session=this.config.sessionTracking?new Te(this.config.sharedStorage,this.config.ids,this.config.clock,this.config.namespace):void 0,this.queue=new Ee(this.config.maxQueueSize,({dropped:o})=>{this.config.onError(new D("queue_overflow",`event queue overflow: dropped ${o.length} oldest event(s)`));}),this.transport=this.config.transport??new J({maxRetries:this.config.maxRetries,requestTimeoutMs:this.config.requestTimeoutMs}),this.flagsClient=new me({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.messagesClient=new we({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.surveysClient=new ge({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.guidesClient=new ve({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.formsClient=new fe({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.ctasClient=new ue({host:this.config.flagsHost,projectKey:this.config.apiKey,requestTimeoutMs:this.config.requestTimeoutMs}),this.context={sdk:this.config.sdkName,sdk_version:this.config.sdkVersion},this.config.os&&(this.context.os=this.config.os),this.config.locale&&(this.context.locale=this.config.locale),this.restoreQueue(),this.startTimer();}get distinctId(){return this.identity.getDistinctId()}get anonymousId(){return this.identity.getAnonymousId()}get isIdentified(){return this.identity.isIdentified()}get sessionId(){return this.session?.current()}get sessionStartedAt(){return this.session?.startedAt()}capture(e,n={}){try{this.identity.refresh();let r={...this.config.defaultProperties(),...n.element===void 0?{}:this.config.describeElement?.(n.element)??{},...n.properties??{}},i=Vt({context:this.context,distinctId:n.distinctId??this.identity.getDistinctId(),eventName:e,properties:r,sessionId:n.sessionId??this.session?.current(),timestamp:n.timestamp},this.config.clock,this.config.ids);this.enqueue(i);}catch(r){this.config.onError(r);}for(let r of this.captureListeners)try{r(e);}catch(i){this.config.onError(i);}}onCapture(e){return this.captureListeners.add(e),()=>{this.captureListeners.delete(e);}}identify(e,n={}){if(this.isCookieless())return;this.identity.refresh();let r=this.identity.identify(e),i={};r.anonymousToLink!==void 0&&(i.$anon_distinct_id=r.anonymousToLink);let s=$t(),o={...s===null?{}:{$timezone:s},...rt(n.traits??{}),...n.set??{}};Object.keys(o).length>0&&(i.$set=o),this.capture(w.identify,{properties:i});}link(e,n,r){if(this.isCookieless())return;let i={$anon_distinct_id:n},s=rt(r??{});Object.keys(s).length>0&&(i.$set=s),this.capture(w.identify,{distinctId:e,properties:i});}setConsent(e){this.identity.setConsent(e),e.analytics===true&&this.allowStorage(),e.analytics===false&&this.config.consentMode==="banner"&&this.forbidStorage();}isCookieless(){return !this.gates[0].isOpen}takeCookielessId(e){this.cookielessId=e,this.isCookieless()&&this.identity.assumeAnonymousId(e);}allowStorage(){if(this.isCookieless()){for(let e of this.gates)e.open();this.identity.refresh();for(let e of [...this.storageListeners])e();}}onStorageAllowed(e){return this.storageListeners.add(e),()=>{this.storageListeners.delete(e);}}forbidStorage(){if(!this.isCookieless()){for(let e of ["anonymous_id","distinct_id","linked_anonymous_id","session"])this.config.storage.removeItem(`pdx.${this.config.namespace}.${e}`),this.config.sharedStorage.removeItem(`pdx.${this.config.namespace}.${e}`);for(let e of this.gates)e.close();this.identity.refresh(),this.cookielessId!==void 0&&this.identity.assumeAnonymousId(this.cookielessId);}}consent(){return this.identity.consent()}alias(e){this.capture(w.createAlias,{properties:{alias:e}});}group(e,n,r){let i={$group_key:n,$group_type:e};r&&(i.$set=r),this.capture(w.group,{properties:i});}setPersonProperties(e,n){if(this.isCookieless())return;let r={};e&&(r.$set=e),n&&(r.$set_once=n),this.capture(w.set,{properties:r});}setPersonTraits(e){if(this.isCookieless())return;let n=rt(e);Object.keys(n).length!==0&&this.capture(w.set,{properties:{$set:n}});}async getAllFlags(){let e=this.identity.getDistinctId(),n=await this.flagsClient.fetchDecisions(e);return this.cachedFlags={distinctId:e,flags:n.flags,variants:n.variants??{}},n.flags}async isFeatureEnabled(e){let r=(await this.getAllFlags())[e]??false;return this.recordExposure(e,this.cachedFlags?.variants[e]?.key??String(r)),r}async getVariant(e){let n=await this.getAllFlags(),r=this.cachedFlags?.variants[e]??null;return this.recordExposure(e,r?.key??String(n[e]??false)),r}async getVariantLocal(e,n={}){let r=await this.flagSnapshot(),i=r.flags.find(c=>c.key===e),s=await this.localContext(n,r.flags),o=i?ze(i,r.flags,s):null,a=i?le(i,r.flags,s).enabled:false;return this.recordExposure(e,o?.key??String(a)),o?{key:o.key,value:o.value}:null}recordExposure(e,n){let r=`${this.identity.getDistinctId()} ${e} ${n}`;this.exposures.has(r)||(this.exposures.add(r),this.capture(w.featureFlagCalled,{properties:{$feature_flag:e,$feature_flag_response:n}}));}getCachedFlag(e){if(!(!this.cachedFlags||this.cachedFlags.distinctId!==this.distinctId))return this.cachedFlags.flags[e]}async getLocalFlags(e={}){let n=await this.flagSnapshot();return Qt(n.flags,await this.localContext(e,n.flags))}async isFeatureEnabledLocal(e,n={}){let r=await this.flagSnapshot(),i=r.flags.find(a=>a.key===e),s=await this.localContext(n,r.flags),o=i?le(i,r.flags,s).enabled:false;return this.recordExposure(e,(i?ze(i,r.flags,s)?.key:void 0)??String(o)),o}async localContext(e,n){let r=this.identity.getDistinctId(),i=e.cohorts;if(i===void 0&&Xt(n)){let s=this.config.clock.now().getTime();this.membershipCache&&this.membershipCache.distinctId===r&&s-this.membershipCache.fetchedAt<kn?i=this.membershipCache.cohorts:(i=await this.flagsClient.memberships(r),this.membershipCache={cohorts:i,distinctId:r,fetchedAt:s});}return {attributes:e.attributes,cohorts:i,distinctId:r,properties:e.properties}}async flagSnapshot(){let e=this.config.clock.now().getTime();if(this.cachedSnapshot&&e-this.cachedSnapshot.fetchedAt<kn)return this.cachedSnapshot.snapshot;let n=await this.flagsClient.snapshot();return this.cachedSnapshot={fetchedAt:e,snapshot:n},this.maybeStream(n),n}maybeStream(e){if(!this.config.streamFlags||this.shutDown||this.stream||!e.socketUrl)return;let n=new pe({host:e.socketUrl,onChange:()=>{this.cachedSnapshot=void 0,this.flagSnapshot().catch(r=>this.config.onError(r));},onClosed:r=>{this.stream=void 0,r&&this.maybeStream(e);},projectKey:this.config.apiKey,socketFactory:this.config.socketFactory});this.stream=n,n.open();}async getInbox(){return this.messagesClient.inbox(this.identity.getDistinctId())}async markMessageRead(e){await this.messagesClient.markRead(e,this.identity.getDistinctId());}async getSurveys(e){return this.surveysClient.surveys(this.identity.getDistinctId(),e??this.config.locale)}captureSurveyShown(e){this.capture(sn,{properties:ye(e,{})});}captureSurveyDismissed(e){this.capture(on,{properties:ye(e,{})});}captureSurveySent(e,n){this.capture(an,{properties:ye(e,n)});}async getGuides(){return this.guidesClient.guides(this.identity.getDistinctId())}captureGuide(e,n,r){this.capture(e,{properties:fn(n,r)});}async getForm(e){return this.formsClient.form(e,this.identity.getDistinctId())}async submitForm(e,n,r,i){let{$page_id:s,$page_variant:o}=this.config.defaultProperties();return this.formsClient.submit(e,{answers:n,challenge:r,distinctId:this.identity.getDistinctId(),isAnonymous:!this.identity.isIdentified(),pageUrl:typeof window>"u"?"":window.location.href,solution:i,...typeof s=="string"&&typeof o=="string"?{pageId:s,pageVariant:o}:{}})}async getCtas(e){return this.ctasClient.ctas({...e,anonymous:!this.identity.isIdentified(),distinctId:this.identity.getDistinctId()})}captureCta(e,n,r){this.capture(e,{properties:Gt(n,r)});}async flush(){if(this.flushing||this.queue.size===0)return;this.flushing=true;let e=this.queue.drain(Ur);try{await this.transport.send({body:{events:e,sent_at:ae(this.config.clock.now())},projectKey:this.config.apiKey,url:`${this.config.host}/v1/events`}),this.persistQueue();}catch(n){this.queue.requeue(e),this.persistQueue(),this.config.onError(n);}finally{this.flushing=false;}}reset(){this.session?.reset(),this.identity.reset(),this.cachedFlags=void 0,this.cachedSnapshot=void 0,this.membershipCache=void 0;}async shutdown(){this.shutDown=true,this.stopTimer(),this.stream?.close(),this.stream=void 0,await this.flush();}enqueue(e){this.queue.enqueue(e),this.persistQueue(),this.queue.size>=this.config.flushAt&&this.flush();}persistQueue(){try{this.config.storage.setItem(this.persistKey(),JSON.stringify(this.queue.snapshot()));}catch(e){this.config.onError(e);}}restoreQueue(){try{let e=this.config.storage.getItem(this.persistKey());if(!e)return;let n=JSON.parse(e);Array.isArray(n)&&this.queue.restore(n);}catch(e){this.config.onError(e);}}startTimer(){if(this.config.flushIntervalMs<=0)return;let e=setInterval(()=>{this.flush();},this.config.flushIntervalMs),n=e;typeof n.unref=="function"&&n.unref(),this.flushTimer=e;}stopTimer(){this.flushTimer!==void 0&&(clearInterval(this.flushTimer),this.flushTimer=void 0);}persistKey(){return `pdx.${this.config.namespace}.${jr}`}};var wn="data-prodantix",En="data-prodantix-action",Tn="data-prodantix-ignore",Y=300,it="data-pdx-no-capture",st="pdx-no-capture",Wr=new Set(["a","button","input","label","option","select","summary","textarea"]),zr=new Set(["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab","treeitem"]);function Jr(t){return Wr.has(t.tagName.toLowerCase())||zr.has((t.getAttribute("role")??"").trim().toLowerCase())}function ot(t){for(let e=t;e!==null;e=e.parentElement)if(Jr(e))return e;return t}function at(t){for(let e=t;e!==null;e=e.parentElement)if(e.getAttribute(Tn)!==null)return true;return false}function dt(t){for(let e=t;e!==null;e=e.parentElement)if(e.getAttribute(it)!==null||typeof e.className=="string"&&e.className.split(/\s+/).includes(st))return true;return false}function Ie(t){let e=new Set;return n=>{e.has(n.message)||(e.add(n.message),t(n));}}function Sn(t,e,n){let r=t.getAttribute(e);if(r===null)return;let i=r.trim();if(i!==""){if(i.length>Y){n(new D("validation",`${e} on a <${t.tagName.toLowerCase()}> is ${i.length} characters, over the ${Y}-character limit, so it was ignored: "${i.slice(0,40)}\u2026"`));return}return i}}function ut(t,e){let n={},r=Sn(t,wn,e);r!==void 0&&(n.$el_description=r,n.$el_description_source="annotation");let i=Sn(t,En,e);return i!==void 0&&(n.$el_action=i),n}function Cn(t,e){return !Yr(t)||at(t)||dt(t)?{}:ut(ot(t),e)}function Yr(t){return typeof t=="object"&&t!==null&&typeof t.tagName=="string"&&typeof t.getAttribute=="function"}var Qr="$form_submitted",Xr=new Set(["button","file","hidden","image","password","reset","submit"]),In=/(card|cc-?num|cvc|cvv|iban|security.?code)/i,Zr=t=>(t.getAttribute("autocomplete")??"").startsWith("cc-")||In.test(t.name)||In.test(t.id),ei=t=>{let e=t.name.toLowerCase();return t instanceof HTMLInputElement&&t.type==="email"||e==="email"||t.getAttribute("autocomplete")==="email"?"$email":e==="name"||e==="full_name"||e==="fullname"||t.getAttribute("autocomplete")==="name"?"$name":null},ti=(t,e)=>{if(t.closest("[data-prodantix-ignore]")||t.hasAttribute("data-prodantix-form"))return null;let n={},r={};for(let i of Array.from(t.elements)){if(!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement||i instanceof HTMLTextAreaElement)||!i.name||i.closest("[data-prodantix-ignore]")||Zr(i)||i instanceof HTMLInputElement&&(Xr.has(i.type)||(i.type==="checkbox"||i.type==="radio")&&!i.checked))continue;let s=i.value.trim();if(s==="")continue;n[i.name]=s;let o=ei(i);o&&(r[o]=s);}return {$answers:n,$form_id:t.id||`${e}#${Array.from(t.ownerDocument.forms).indexOf(t)}`,$page_url:t.ownerDocument.location?.href??"",$set:r,collected:true}},_n=(t,e=document)=>{let n=r=>{if(r.target instanceof HTMLFormElement){let i=ti(r.target,e.location?.pathname??"");i&&t.capture(Qr,{properties:i});}};return e.addEventListener("submit",n,true),()=>e.removeEventListener("submit",n,true)};var ni=1e3,ri=5e3,ii=50,ct=class{constructor(){d(this,"fcp");d(this,"lcp");d(this,"cls");d(this,"window",{end:0,start:0,sum:0});d(this,"interactions",new Map);}add(e){if(e.entryType==="paint"&&e.name==="first-contentful-paint"&&(this.fcp=e.startTime),e.entryType==="largest-contentful-paint"&&(this.lcp=e.startTime),e.entryType==="layout-shift"&&!e.hadRecentInput&&e.value!==void 0){let n=this.window.sum>0&&e.startTime-this.window.end<ni&&e.startTime-this.window.start<ri;this.window=n?{end:e.startTime,start:this.window.start,sum:this.window.sum+e.value}:{end:e.startTime,start:e.startTime,sum:e.value},this.cls=Math.max(this.cls??0,this.window.sum);}e.entryType==="event"&&e.interactionId!==void 0&&e.interactionId>0&&this.interactions.set(e.interactionId,Math.max(this.interactions.get(e.interactionId)??0,e.duration));}properties(e){let n={};if(this.lcp!==void 0&&(n.$lcp_ms=Math.round(this.lcp)),this.fcp!==void 0&&(n.$fcp_ms=Math.round(this.fcp)),this.cls!==void 0&&(n.$cls=Math.round(this.cls*1e4)/1e4),this.interactions.size>0){let r=[...this.interactions.values()].sort((i,s)=>s-i);n.$inp_ms=Math.round(r[Math.min(r.length-1,Math.floor(r.length/ii))]??0);}return e!==void 0&&(n.$ttfb_ms=Math.round(e)),n}},si=[{type:"paint"},{type:"largest-contentful-paint"},{type:"layout-shift"},{durationThreshold:40,type:"event"}];function Pn(t,e){let n=new ct,r=[];for(let o of si){let a=e.observer(c=>{for(let u of c)n.add(u);});if(a!==void 0)try{a.observe({...o,buffered:!0}),r.push(a);}catch{a.disconnect();}}let i=false,s=()=>{if(i)return;let o=n.properties(e.firstByte());if(Object.keys(o).length===0)return;i=true;let a=e.path();t.capture(w.webVitals,{properties:a===void 0?o:{...o,$pathname:a}});};return e.addEventListener("visibilitychange",()=>{e.isHidden()&&s();}),e.addEventListener("pagehide",s),()=>{for(let o of r)o.disconnect();}}function An(){if(!(typeof window>"u"||typeof document>"u"||typeof PerformanceObserver>"u"))return {addEventListener:(t,e)=>(t==="pagehide"?window:document).addEventListener(t,e),firstByte:()=>{let t=performance.getEntriesByType("navigation")[0];return t instanceof PerformanceNavigationTiming&&t.responseStart>0?t.responseStart:void 0},isHidden:()=>document.visibilityState==="hidden",observer:t=>{try{return new PerformanceObserver(e=>t(e.getEntries()))}catch{return}},path:()=>window.location?.pathname}}var oi=new Set(["input","select","textarea"]),ai=new Set(["email","password","tel"]);function Pe(){return globalThis.location}function Fn(){return globalThis.document}function di(){return globalThis.window??globalThis}function ui(t){return typeof t=="object"&&t!==null&&typeof t.tagName=="string"}function _e(t,e){let n;try{n=new URL(t,e);}catch{return}return n.protocol==="http:"||n.protocol==="https:"?`${n.origin}${n.pathname}`:n.protocol}function Ln(){let t=Pe(),e=Fn(),n={};if(t){let r=_e(t.href);r&&(n.$current_url=r),n.$pathname=t.pathname,n.$host=t.host;}if(e){e.title&&(n.$title=e.title);let r=e.referrer?_e(e.referrer):void 0;r&&(n.$referrer=r);}return n}function ci(t){return typeof t.className=="string"?t.className:""}function li(t){return oi.has(t.tagName.toLowerCase())||ai.has((t.getAttribute("type")??"").toLowerCase())}function pi(t,e,n){let r={$el_tag:t.tagName.toLowerCase(),$event_type:"click"};if(e)return r;let i=n?t.textContent?.trim():void 0;i&&(r.$el_text=i.slice(0,255)),t.id&&(r.$el_id=t.id);let s=ci(t);s&&(r.$el_classes=s);let o=t.getAttribute("href"),a=o?_e(o,Pe()?.href):void 0;return a&&(r.$el_href=a),r}function lt(t){return (t??"").replace(/\s+/g," ").trim()}function re(t,e){return {$el_description:t,$el_description_source:e}}function mi(t,e,n){if(!e&&n){let o=lt(t.getAttribute("aria-label"));if(o!==""&&o.length<=Y)return re(o,"aria_label");let a=lt(t.textContent);if(a!==""&&a.length<=Y)return re(a,"text")}let r=e?null:t.getAttribute("href"),i=r?_e(r,Pe()?.href):void 0;if(i)return re(i,"href");let s=lt(t.getAttribute("role")).toLowerCase();return s===""?re(t.tagName.toLowerCase(),"tag"):re(s,"role")}function fi(t,e){let n=new Set,r=(u,l)=>{if(n.has(u))return false;try{return l()}catch(p){return n.add(u),e(new D("config",`autocapture maskSelectors entry "${u}" is not a valid selector`,{cause:p})),false}},i=(u,l)=>u.matches?r(l,()=>u.matches?.(l)===!0):false,s=u=>{let l=u.querySelector?.bind(u);return l?l(`[${it}], .${st}`)!==null||t.some(p=>r(p,()=>l(p)!==null)):false},o=u=>{for(let l=u;l;l=l.parentElement){let p=l;if(t.some(x=>i(p,x)))return true}return false},a=u=>{for(let l=u;l;l=l.parentElement)if(li(l))return true;return false},c=u=>dt(u)||o(u);return {holdsMasked:s,isMasked:u=>c(u)||a(u),isOptedOut:c}}function gi(t){let e=globalThis.history,n=di(),r="",i=()=>{let a=Pe(),c=a?`${a.pathname}${a.search}`:"";c!==r&&(r=c,t.capture(w.pageview,{properties:Ln()}));};if(i(),!e||!n)return ()=>{};let s=e.pushState.bind(e),o=e.replaceState.bind(e);return e.pushState=(...a)=>{s(...a),i();},e.replaceState=(...a)=>{o(...a),i();},n.addEventListener("popstate",i),()=>{e.pushState=s,e.replaceState=o,n.removeEventListener("popstate",i);}}function hi(t,e){let n=Fn();if(!n)return ()=>{};let r=e.onError??(()=>{}),i=fi(e.maskSelectors??[],r),s=Ie(r),o=e.captureElementText??false,a=c=>{let u=c.target;if(!ui(u)||at(u))return;let l=ot(u),p=i.isMasked(u)||i.holdsMasked(l),x=i.isOptedOut(u)?{}:ut(l,s),$=x.$el_description===void 0?mi(l,p,o):{};t.capture(w.autocapture,{properties:{...Ln(),...pi(l,p,o),...$,...x}});};return n.addEventListener("click",a,true),()=>n.removeEventListener("click",a,true)}function $n(t,e={}){let n=[];(e.pageviews??true)&&n.push(gi(t)),(e.clicks??true)&&n.push(hi(t,e)),e.collectForms===true&&typeof document<"u"&&n.push(_n(t));let r=e.webVitals===false?void 0:An();return r!==void 0&&n.push(Pn(t,r)),()=>{for(let i of n)i();}}function yi(){return globalThis.document?.visibilityState==="hidden"}var Ae=class{constructor(e={}){d(this,"fetchTransport");this.fetchTransport=new J(e);}async send(e){await this.fetchTransport.send(e,{keepalive:yi()});}};var pt="prodantix:consent-ready",mt="prodantix:consent",Nn="__prodantixConsent";var Rn=(t,e)=>{t.takeCookielessId(e.anonymousId),e.consent!==null?t.setConsent(e.consent):e.rule==="notice"&&t.allowStorage();},On=(t,e)=>{let n=e[Nn];n&&Rn(t,n);let r=s=>{let o=s.detail;o&&Rn(t,o);},i=s=>{let o=s.detail;o&&t.setConsent(o);};return e.addEventListener(pt,r),e.addEventListener(mt,i),()=>{e.removeEventListener(pt,r),e.removeEventListener(mt,i);}};var vi=/^\d{1,3}(\.\d{1,3}){3}$/,bi=/^[a-z0-9.-]+$/i;function Mn(){return Math.random().toString(36).slice(2,12)}function Fe(t,e){let n=`${e}=`,r=[];for(let i of t.cookie.split(";")){let s=i.trim();s.startsWith(n)&&r.push(s.slice(n.length));}return r}function ie(t,e,n){let r=["Path=/",`Max-Age=${e}`,"SameSite=Lax"];return t&&r.push(`Domain=${t}`),n&&r.push("Secure"),r.join("; ")}function Dn(t,e,n,r){try{let i=`pdx_probe_${r()}`,s=r();t.cookie=`${i}=${s}; ${ie(e,60,n)}`;let o=Fe(t,i).includes(s);t.cookie=`${i}=; ${ie(e,0,n)}`;let a=Fe(t,i).includes(s);return o&&!a}catch{return false}}function gt(t){let e=t.replace(/^\[|\]$/g,"").toLowerCase();if(e.includes(":")||vi.test(e)||!e.includes("."))return [];let n=e.split("."),r=[];for(let i=n.length-2;i>=0;i-=1)r.push(n.slice(i).join("."));return r}function qn(t,e,n,r=Mn){for(let i of gt(t))if(Dn(e,i,n,r))return i}function xi(t){let e=new Map,n=JSON.parse(decodeURIComponent(t));if(n===null||typeof n!="object"||Array.isArray(n))return e;for(let[r,i]of Object.entries(n))typeof i=="string"&&e.set(r,i);return e}var ft=class{constructor(e,n,r,i){this.jar=e;this.name=n;this.domain=r;this.secure=i;}getItem(e){return this.read().get(e)??null}setItem(e,n){let r=this.read();r.set(e,n),this.write(r);}removeItem(e){let n=this.read();n.delete(e)&&this.write(n);}read(){try{let e=Fe(this.jar,this.name);e.length>1&&this.domain&&(this.jar.cookie=`${this.name}=; ${ie(void 0,0,this.secure)}`,e=Fe(this.jar,this.name));let n=e[0];return n?xi(n):new Map}catch{return new Map}}write(e){try{if(e.size===0){this.jar.cookie=`${this.name}=; ${ie(this.domain,0,this.secure)}`;return}let n=encodeURIComponent(JSON.stringify(Object.fromEntries(e)));this.jar.cookie=`${this.name}=${n}; ${ie(this.domain,31536e3,this.secure)}`;}catch{return}}};function ki(){return globalThis.document}function Si(){return globalThis.location?.hostname??""}function wi(){return globalThis.location?.protocol==="https:"}function Ei(t){if(t===void 0)return;let e=t.startsWith(".")?t.slice(1):t;return bi.test(e)?e.toLowerCase():void 0}function ht(t){let e="jar"in t?t.jar:ki();if(!e||globalThis.navigator?.cookieEnabled===false)return null;let r=t.random??Mn,i=t.secure??wi(),s=t.hostname??Si();try{let o=Ei(t.domain)??qn(s,e,i,r);return Dn(e,o,i,r)?new ft(e,t.name,o,i):null}catch{return null}}var Ti=["am","ar","bn","de","en","es","et","fil","fr","hi","id","ja","ko","pt","ru","sw","vi","zh"],Kn=t=>{let e=(t??"").toLowerCase().split("-")[0]??"";return Ti.find(n=>n===e)??"en"};var Ci=/^\$(survey|guide|checklist)_/,Hn=()=>({guides:{done:[],settled:[]},surveys:{settled:[]}});function Ii(t,e){try{let n=t.getItem(e);if(n===null)return Hn();let r=JSON.parse(n);return {guides:{done:r.guides?.done??[],lastShownAt:r.guides?.lastShownAt,settled:r.guides?.settled??[]},surveys:{lastShownAt:r.surveys?.lastShownAt,settled:r.surveys?.settled??[]}}}catch{return Hn()}}function Bn(t,e,n){let r=n();return r?Promise.resolve(r):new Promise(i=>{let s=t.document.createElement("script");s.src=e,s.async=true,s.onload=()=>i(n()??null),s.onerror=()=>i(null),t.document.head.append(s);})}function Gn(t,e,n){let r=`pdx_engage_${n.namespace}`,i=Ii(n.storage,r),s=()=>{try{n.storage.setItem(r,JSON.stringify(i));}catch(y){n.onError(y);}},o=Kn(e.document.documentElement.lang||e.navigator.language),a=[],c=[],u=false,l=false,p=new Map,x=()=>Bn(e,`${n.edgeHost}/surveys.js`,()=>e.prodantixSurveys),$=()=>Bn(e,`${n.edgeHost}/guides.js`,()=>e.prodantixGuides),_=async y=>{if(u)return;let g=a.find(A=>dn(A,i.surveys,e.location.href,Date.now(),y));if(!g)return;u=true;let T=await x();if(!T){u=false;return}let E=()=>{i.surveys.settled=[...i.surveys.settled.filter(A=>A!==he(g)),he(g)],s(),u=false;};T.showSurvey(e.document,g,o,{onDismissed:()=>{t.captureSurveyDismissed(g),E();},onSent:A=>{t.captureSurveySent(g,A),E();},onShown:()=>{i.surveys.lastShownAt=Date.now(),s(),t.captureSurveyShown(g);}});},R=y=>{i.guides.settled=[...i.guides.settled.filter(g=>g!==z(y)),z(y)],s();},H=async y=>{let g=c.filter(v=>!p.has(v.id)&&pn(v,i.guides,e.location.href,Date.now(),y)),T=g.filter(v=>v.kind==="checklist"),E=l?void 0:g.find(v=>v.kind!=="checklist");if(T.length===0&&!E)return;E&&(l=true);let A=await $();if(!A){l=false;return}for(let v of T)p.has(v.id)||p.set(v.id,A.showChecklist(e.document,v,o,et(v,i.guides),{onDismissed:()=>{t.captureGuide(Ze,v),R(v),p.delete(v.id);},onShown:()=>t.captureGuide(Qe,v)}));if(!E)return;(E.kind==="tooltip"?A.showTooltip:A.showTour)(e.document,E,o,{onCompleted:()=>{t.captureGuide(Xe,E),R(E),l=false;},onDismissed:()=>{t.captureGuide(Ze,E),R(E),l=false;},onMissed:v=>t.captureGuide(cn,E,v),onShown:()=>{i.guides.lastShownAt=Date.now(),s(),t.captureGuide(Qe,E);},onStep:v=>t.captureGuide(un,E,v)});},X=y=>{for(let g of c){let T=mn(g,y);!T||i.guides.done.includes(be(g,T.id))||i.guides.settled.includes(z(g))||(i.guides.done=[...i.guides.done,be(g,T.id)],t.captureGuide(ln,g,T.id),p.get(g.id)?.markDone(T.id),et(g,i.guides).length===g.steps.length&&(t.captureGuide(Xe,g),R(g),p.get(g.id)?.close(),p.delete(g.id)),s());}},O=y=>{n.surveys&&_(y).catch(n.onError),n.guides&&H(y).catch(n.onError);},M=t.onCapture(y=>{Ci.test(y)||(X(y),O(y));}),P=()=>O();e.addEventListener("popstate",P);let K=async()=>{let y=E=>(n.onError(E),[]),[g,T]=await Promise.all([n.surveys?t.getSurveys(e.document.documentElement.lang||e.navigator.language).catch(y):[],n.guides?t.getGuides().catch(y):[]]);a=g,c=T,O();};return e.document.readyState==="loading"?e.document.addEventListener("DOMContentLoaded",()=>void K(),{once:true}):K(),()=>{M(),e.removeEventListener("popstate",P);for(let y of p.values())y.close();p.clear();}}var Un="_pdx",Wn="~",_i=200,Pi=/^\d+$/;function zn(t,e,n,r){let i=Fi(t.href);if(i===void 0||vt(i.search).some(bt))return;let s=Vn(i.hostname,n);s===void 0||s===Vn(r,n)||(i.search=`${i.search}${i.search?"&":"?"}${Un}=${Ai(e)}`,t.href=i.href);}function Ai(t){return [t.anonymousId,t.sessionId,String(t.sessionStartedAt)].map($i).join(Wn)}function Jn(t){let e=vt(t).find(bt);if(e===void 0)return;let n=Li(e).split(Wn);if(n.length!==3)return;let r=Le(n[0]),i=Le(n[1]),s=Le(n[2]);if(!(!jn(r)||!jn(i)||!Ni(s)))return {anonymousId:r,sessionId:i,sessionStartedAt:Number(s)}}function Yn(t,e){let n=vt(e.search),r=n.filter(s=>!bt(s));if(r.length===n.length)return;let i=r.length>0?`?${r.join("&")}`:"";t.replaceState(t.state,"",`${e.pathname}${i}${e.hash}`);}function Qn(t){if(t.location===void 0||typeof t.location.search!="string")return;let e=Jn(t.location.search);if(e===void 0)return;let n=hn(t.storage,t.shared,t.namespace,e.anonymousId);return vn(t.shared,t.namespace,{id:e.sessionId,startedAt:e.sessionStartedAt},t.now),t.history!==void 0&&Yn(t.history,t.location),n}function yt(t,e,n){if(n.length===0)return ()=>{};let r=i=>{let s=Mi(i.target);if(s===void 0)return;let o=Ri(e);o!==void 0&&zn(s,o,n,t.location?.hostname??"");};return t.addEventListener("click",r,true),t.addEventListener("auxclick",r,true),()=>{t.removeEventListener("click",r,true),t.removeEventListener("auxclick",r,true);}}function Fi(t){try{let e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"?e:void 0}catch{return}}function Vn(t,e){let n=e.map(r=>r.replace(/^\./,"").toLowerCase());return gt(t).find(r=>n.includes(r))}function vt(t){return t.replace(/^\?/,"").split("&").filter(e=>e!=="")}function bt(t){let e=t.indexOf("=");return Le(e===-1?t:t.slice(0,e))===Un}function Li(t){let e=t.indexOf("=");return e===-1?"":t.slice(e+1)}function $i(t){return encodeURIComponent(t).replace(/~/g,"%7E")}function Le(t){try{return decodeURIComponent(t)}catch{return}}function jn(t){if(t===void 0)return false;let e=de(t);return e>=1&&e<=_i}function Ni(t){return t!==void 0&&Pi.test(t)&&Number.isSafeInteger(Number(t))}function Ri(t){if(t.consent?.()?.identityLink===false)return;let e=t.sessionId,n=t.sessionStartedAt;if(!(e===void 0||n===void 0))return {anonymousId:t.anonymousId,sessionId:e,sessionStartedAt:n}}function Oi(t){return typeof t.tagName=="string"&&t.tagName.toUpperCase()==="A"&&typeof t.href=="string"}function Mi(t){let e=typeof t=="object"?t:null;for(;e;){if(Oi(e))return e;e=e.parentElement??null;}}var Xn={maskAllInputs:true,maskAllText:false},Di=new Set(["email","password","tel"]);function Zn(t){return t.replace(/\S/g,"*")}function $e(t,e,n){return qi(e)||n.maskAllInputs?Zn(t):t}function Ne(t,e){return e.maskAllText?Zn(t):t}function qi(t){return Di.has((t??"").toLowerCase())}var Ki=5e3,Re=class{constructor(e){this.options=e;d(this,"buffer",[]);d(this,"seq",0);d(this,"maxEvents");this.maxEvents=Math.min(Math.max(1,e.maxEvents),Ki);}add(e){return this.buffer.push(e),this.buffer.length>=this.maxEvents?this.flush():null}flush(){if(this.buffer.length===0)return null;let e=this.buffer;this.buffer=[];let n={distinct_id:this.options.distinctId(),events:e,masked:this.options.masked,schema_version:1,seq:this.seq,session_id:this.options.sessionId,timestamp:new Date(this.options.now()).toISOString()};return this.seq+=1,n}};var xt=1,kt=3,Hi=9,Oe=class{constructor(){d(this,"next",1);}allocate(){let e=this.next;return this.next+=1,e}},Bi=new Set(["NOSCRIPT","SCRIPT"]);function Me(t,e,n,r){if(t.nodeType===kt){let i=e.allocate();return r?.(t,i),{id:i,textContent:Ne(t.textValue??"",n),type:"text"}}if(t.nodeType===Hi){let i=e.allocate();return r?.(t,i),{childNodes:er(t,e,n,r),id:i,type:"document"}}if(t.nodeType===xt){let i=t.tagName??"";if(Bi.has(i))return null;let s=e.allocate();return r?.(t,s),{attributes:Gi(t,n),childNodes:er(t,e,n,r),id:s,tagName:i,type:"element"}}return null}function er(t,e,n,r){let i=[];for(let s of t.childNodes??[]){let o=Me(s,e,n,r);o&&i.push(o);}return i}function Gi(t,e){let n={};for(let r of t.attributes??[])n[r.name]=r.value;return t.inputValue!==void 0&&(n.value=$e(t.inputValue,t.inputType,e)),n}async function tr(t,e){let n=`${C(e.replayHost)}/v1/replay`;return (await e.fetch(n,{body:JSON.stringify(t),headers:{authorization:`Bearer ${e.apiKey}`,"content-type":"application/json"},method:"POST"})).ok}var nr=new Set(["INPUT","SELECT","TEXTAREA"]),De=class{constructor(e){this.options=e;d(this,"allocator",new Oe);d(this,"mirror",new Map);d(this,"chunker");d(this,"fetchImpl");d(this,"observer");d(this,"timer");d(this,"started",false);this.chunker=new Re({distinctId:e.distinctId,masked:e.mask.maskAllInputs,maxEvents:e.maxEvents,now:e.now,sessionId:e.sessionId}),this.fetchImpl=F(e.fetch);}start(){if(this.started)return;let e=Vi(),n=e?.documentElement;!e||!n||!this.fetchImpl||(this.started=true,this.captureFullSnapshot(n),this.observeMutations(n),this.observeInteractions(e),this.timer=setInterval(()=>this.upload(this.chunker.flush()),this.options.flushIntervalMs));}stop(){this.started&&(this.started=false,this.observer?.disconnect(),this.timer&&clearInterval(this.timer),this.upload(this.chunker.flush()));}captureFullSnapshot(e){let n=Me(this.adapt(e),this.allocator,this.options.mask,(r,i)=>{let s=r.ref;s&&this.mirror.set(s,i);});n&&this.push(2,{node:n});}observeMutations(e){let n=globalThis.MutationObserver;n&&(this.observer=new n(r=>{for(let i of r)this.handleMutation(i);}),this.observer.observe(e,{attributes:true,characterData:true,childList:true,subtree:true}));}handleMutation(e){if(e.type==="characterData"){let n=this.mirror.get(e.target);n!==void 0&&this.push(3,{texts:[{id:n,value:Ne(e.target.textContent??"",this.options.mask)}]});return}if(e.type==="attributes"&&e.attributeName){let n=this.mirror.get(e.target),r=e.target;n!==void 0&&this.push(3,{attributes:[{attributes:{[e.attributeName]:r.getAttribute(e.attributeName)??""},id:n}]});return}if(e.type==="childList"){let n=this.mirror.get(e.target);if(n===void 0)return;for(let r of Array.from(e.addedNodes)){let i=Me(this.adapt(r),this.allocator,this.options.mask,(s,o)=>{let a=s.ref;a&&this.mirror.set(a,o);});i&&this.push(3,{adds:[{node:i,parentId:n}]});}for(let r of Array.from(e.removedNodes)){let i=this.mirror.get(r);i!==void 0&&(this.push(3,{removes:[{id:i,parentId:n}]}),this.mirror.delete(r));}}}observeInteractions(e){e.addEventListener("input",n=>{let r=n.target;if(!r||!nr.has(r.tagName))return;let i=this.mirror.get(r);i!==void 0&&this.push(3,{input:{id:i,value:$e(r.value??"",r.type,this.options.mask)}});},true),e.addEventListener("scroll",n=>{let r=n.target,i=r?this.mirror.get(r):void 0;this.push(3,{scroll:{id:i??0,x:r?.scrollLeft??0,y:r?.scrollTop??0}});},true);}adapt(e){let n={childNodes:[],nodeType:e.nodeType,ref:e};if(e.nodeType===kt)return n.textValue=e.textContent??"",n;if(e.nodeType===xt){let r=e;if(n.tagName=r.tagName,n.attributes=Array.from(r.attributes).map(i=>({name:i.name,value:i.value})),nr.has(r.tagName)){let i=r;n.inputType=i.type,n.inputValue=i.value??"";}}return n.childNodes=Array.from(e.childNodes).map(r=>this.adapt(r)),n}push(e,n){let r=this.chunker.add({data:n,timestamp:this.options.now(),type:e});r&&this.upload(r);}upload(e){!e||!this.fetchImpl||tr(e,{apiKey:this.options.apiKey,fetch:this.fetchImpl,replayHost:this.options.replayHost}).catch(n=>this.options.onError?.(n));}};function Vi(){return globalThis.document}function rr(t){let e=new De({apiKey:t.apiKey,distinctId:t.distinctId,flushIntervalMs:t.flushIntervalMs??5e3,mask:{...Xn,...t.mask},maxEvents:t.maxEvents??200,now:t.now??(()=>Date.now()),onError:t.onError,replayHost:t.replayHost,sessionId:t.sessionId??Ve()});return e.start(),e}var ir=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],sr=["gclid","gbraid","wbraid","fbclid","msclkid","ttclid","li_fat_id","twclid"];var St=(t,e)=>{let n=new URLSearchParams(t),r={};for(let i of [...ir,...sr]){let s=n.get(i)?.trim();s&&(r[i]=s.slice(0,255));}return e&&(r.$session_referrer=e),r},ji=t=>{let e={};for(let n of [...ir,...sr])t[n]!==void 0&&(e[`$initial_${n}`]=t[n]);return e.$initial_referrer=t.$session_referrer??"$direct",e},Ui=(t,e)=>{let n=t.getItem(e);if(n)try{let r=JSON.parse(n);return typeof r.sessionId=="string"&&typeof r.properties=="object"&&r.properties!==null?{properties:r.properties,sessionId:r.sessionId}:void 0}catch{return}},or=(t,e)=>{let n=`pdx_${e}_session_touch`,r=`pdx_${e}_first_touch`;return {forSession:(i,s,o)=>{if(i===void 0)return {};let a=Ui(t,n);if(a!==void 0&&a.sessionId===i)return a.properties;let c=St(s,o);return t.setItem(n,JSON.stringify({properties:c,sessionId:i})),t.getItem(r)?c:(t.setItem(r,"1"),{...c,$set_once:ji(c)})}}};var qe=t=>`prodantix-cta:${t}`,ar=t=>{try{let e=window.localStorage.getItem(qe(t));return e===null?null:Number(e)}catch{return null}},dr=t=>{try{return window.sessionStorage.getItem(qe(t))!==null}catch{return false}},ur=(t,e)=>{try{window.localStorage.setItem(qe(t),String(e)),window.sessionStorage.setItem(qe(t),String(e));}catch{return}},cr=(t,e,n,r)=>e===null?true:t.kind==="once"?false:t.kind==="session"?!n:r-e>=t.value*864e5;var B={am:{back:"\u1270\u1218\u1208\u1235",close:"\u12DD\u130B",closed:"\u12ED\u1205 \u1245\u133D \u12A0\u1201\u1295 \u121D\u120B\u123E\u127D\u1295 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",failed:"\u1218\u120B\u12AD \u12A0\u120D\u1270\u127B\u1208\u121D\u1362 \u12A5\u1295\u12F0\u1308\u1293 \u12ED\u121E\u12AD\u1229\u1362",invalid:"\u12ED\u1205 \u1218\u120D\u1235 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",next:"\u1240\u1323\u12ED",poweredBy:"\u1260Prodantix \u12E8\u1270\u1230\u122B",required:"\u12ED\u1205 \u12EB\u1235\u1348\u120D\u130B\u120D\u1362",sending:"\u1260\u1218\u120B\u12AD \u120B\u12ED\u2026",step:"\u12F0\u1228\u1303 {step} \u12A8{total}",submit:"\u120B\u12AD",thanks:"\u12A5\u1293\u1218\u1230\u130D\u1293\u1208\u1295\u1362"},ar:{back:"\u0631\u062C\u0648\u0639",close:"\u0625\u063A\u0644\u0627\u0642",closed:"\u0644\u0627 \u064A\u0642\u0628\u0644 \u0647\u0630\u0627 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0631\u062F\u0648\u062F\u064B\u0627 \u0627\u0644\u0622\u0646.",failed:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",invalid:"\u0647\u0630\u0647 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629.",next:"\u0627\u0644\u062A\u0627\u0644\u064A",poweredBy:"\u0645\u062F\u0639\u0648\u0645 \u0645\u0646 Prodantix",required:"\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628.",sending:"\u062C\u0627\u0631\u064D \u0627\u0644\u0625\u0631\u0633\u0627\u0644\u2026",step:"\u0627\u0644\u062E\u0637\u0648\u0629 {step} \u0645\u0646 {total}",submit:"\u0625\u0631\u0633\u0627\u0644",thanks:"\u0634\u0643\u0631\u064B\u0627 \u0644\u0643."},bn:{back:"\u09AA\u09C7\u099B\u09A8\u09C7",close:"\u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",closed:"\u098F\u0987 \u09AB\u09B0\u09CD\u09AE\u099F\u09BF \u098F\u0996\u09A8 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A8\u09BF\u099A\u09CD\u099B\u09C7 \u09A8\u09BE\u0964",failed:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09AF\u09BE\u09AF\u09BC\u09A8\u09BF\u0964 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8\u0964",invalid:"\u098F\u0987 \u0989\u09A4\u09CD\u09A4\u09B0\u099F\u09BF \u0997\u09CD\u09B0\u09B9\u09A3\u09AF\u09CB\u0997\u09CD\u09AF \u09A8\u09AF\u09BC\u0964",next:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",poweredBy:"Prodantix \u09A6\u09CD\u09AC\u09BE\u09B0\u09BE \u099A\u09BE\u09B2\u09BF\u09A4",required:"\u098F\u099F\u09BF \u0986\u09AC\u09B6\u09CD\u09AF\u0995\u0964",sending:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09B9\u099A\u09CD\u099B\u09C7\u2026",step:"\u09A7\u09BE\u09AA {step} / {total}",submit:"\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",thanks:"\u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6\u0964"},de:{back:"Zur\xFCck",close:"Schlie\xDFen",closed:"Dieses Formular nimmt gerade keine Antworten an.",failed:"Senden fehlgeschlagen. Bitte erneut versuchen.",invalid:"Diese Antwort wird nicht angenommen.",next:"Weiter",poweredBy:"Bereitgestellt von Prodantix",required:"Dieses Feld ist erforderlich.",sending:"Wird gesendet\u2026",step:"Schritt {step} von {total}",submit:"Absenden",thanks:"Vielen Dank."},en:{back:"Back",close:"Close",closed:"This form is not accepting responses right now.",failed:"This could not be sent. Try again.",invalid:"This answer is not accepted.",next:"Next",poweredBy:"Powered by Prodantix",required:"This is required.",sending:"Sending\u2026",step:"Step {step} of {total}",submit:"Submit",thanks:"Thank you."},es:{back:"Atr\xE1s",close:"Cerrar",closed:"Este formulario no acepta respuestas ahora.",failed:"No se pudo enviar. Int\xE9ntalo de nuevo.",invalid:"Esta respuesta no se acepta.",next:"Siguiente",poweredBy:"Con la tecnolog\xEDa de Prodantix",required:"Este campo es obligatorio.",sending:"Enviando\u2026",step:"Paso {step} de {total}",submit:"Enviar",thanks:"Gracias."},et:{back:"Tagasi",close:"Sulge",closed:"See vorm ei v\xF5ta praegu vastuseid vastu.",failed:"Saatmine eba\xF5nnestus. Proovi uuesti.",invalid:"Seda vastust ei v\xF5eta vastu.",next:"Edasi",poweredBy:"Toetab Prodantix",required:"See on kohustuslik.",sending:"Saatmine\u2026",step:"Samm {step}/{total}",submit:"Saada",thanks:"Ait\xE4h."},fil:{back:"Bumalik",close:"Isara",closed:"Hindi tumatanggap ng sagot ang form na ito ngayon.",failed:"Hindi naipadala. Subukan ulit.",invalid:"Hindi tinatanggap ang sagot na ito.",next:"Susunod",poweredBy:"Pinapagana ng Prodantix",required:"Kailangan ito.",sending:"Ipinapadala\u2026",step:"Hakbang {step} sa {total}",submit:"Ipadala",thanks:"Salamat."},fr:{back:"Retour",close:"Fermer",closed:"Ce formulaire n\u2019accepte plus de r\xE9ponses pour le moment.",failed:"L\u2019envoi a \xE9chou\xE9. R\xE9essayez.",invalid:"Cette r\xE9ponse n\u2019est pas accept\xE9e.",next:"Suivant",poweredBy:"Propuls\xE9 par Prodantix",required:"Ce champ est obligatoire.",sending:"Envoi\u2026",step:"\xC9tape {step} sur {total}",submit:"Envoyer",thanks:"Merci."},hi:{back:"\u092A\u0940\u091B\u0947",close:"\u092C\u0902\u0926 \u0915\u0930\u0947\u0902",closed:"\u092F\u0939 \u092B\u093C\u0949\u0930\u094D\u092E \u0905\u092D\u0940 \u091C\u0935\u093E\u092C \u0928\u0939\u0940\u0902 \u0932\u0947 \u0930\u0939\u093E \u0939\u0948\u0964",failed:"\u092D\u0947\u091C\u093E \u0928\u0939\u0940\u0902 \u091C\u093E \u0938\u0915\u093E\u0964 \u092B\u093F\u0930 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",invalid:"\u092F\u0939 \u091C\u0935\u093E\u092C \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",next:"\u0906\u0917\u0947",poweredBy:"Prodantix \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u0902\u091A\u093E\u0932\u093F\u0924",required:"\u092F\u0939 \u091C\u093C\u0930\u0942\u0930\u0940 \u0939\u0948\u0964",sending:"\u092D\u0947\u091C\u093E \u091C\u093E \u0930\u0939\u093E \u0939\u0948\u2026",step:"\u091A\u0930\u0923 {step} / {total}",submit:"\u092D\u0947\u091C\u0947\u0902",thanks:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926\u0964"},id:{back:"Kembali",close:"Tutup",closed:"Formulir ini sedang tidak menerima tanggapan.",failed:"Gagal mengirim. Coba lagi.",invalid:"Jawaban ini tidak diterima.",next:"Berikutnya",poweredBy:"Didukung oleh Prodantix",required:"Wajib diisi.",sending:"Mengirim\u2026",step:"Langkah {step} dari {total}",submit:"Kirim",thanks:"Terima kasih."},ja:{back:"\u623B\u308B",close:"\u9589\u3058\u308B",closed:"\u3053\u306E\u30D5\u30A9\u30FC\u30E0\u306F\u73FE\u5728\u56DE\u7B54\u3092\u53D7\u3051\u4ED8\u3051\u3066\u3044\u307E\u305B\u3093\u3002",failed:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",invalid:"\u3053\u306E\u56DE\u7B54\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3002",next:"\u6B21\u3078",poweredBy:"Powered by Prodantix",required:"\u5FC5\u9808\u9805\u76EE\u3067\u3059\u3002",sending:"\u9001\u4FE1\u4E2D\u2026",step:"\u30B9\u30C6\u30C3\u30D7 {step}/{total}",submit:"\u9001\u4FE1",thanks:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3057\u305F\u3002"},ko:{back:"\uC774\uC804",close:"\uB2EB\uAE30",closed:"\uC774 \uC591\uC2DD\uC740 \uC9C0\uAE08 \uC751\uB2F5\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",failed:"\uBCF4\uB0B4\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",invalid:"\uC774 \uB2F5\uBCC0\uC740 \uBC1B\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",next:"\uB2E4\uC74C",poweredBy:"Prodantix \uC81C\uACF5",required:"\uD544\uC218 \uD56D\uBAA9\uC785\uB2C8\uB2E4.",sending:"\uBCF4\uB0B4\uB294 \uC911\u2026",step:"{total}\uB2E8\uACC4 \uC911 {step}\uB2E8\uACC4",submit:"\uC81C\uCD9C",thanks:"\uAC10\uC0AC\uD569\uB2C8\uB2E4."},pt:{back:"Voltar",close:"Fechar",closed:"Este formul\xE1rio n\xE3o est\xE1 a aceitar respostas neste momento.",failed:"N\xE3o foi poss\xEDvel enviar. Tente novamente.",invalid:"Esta resposta n\xE3o \xE9 aceite.",next:"Seguinte",poweredBy:"Com tecnologia Prodantix",required:"Este campo \xE9 obrigat\xF3rio.",sending:"A enviar\u2026",step:"Passo {step} de {total}",submit:"Enviar",thanks:"Obrigado."},ru:{back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",closed:"\u042D\u0442\u0430 \u0444\u043E\u0440\u043C\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u044B.",failed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",invalid:"\u042D\u0442\u043E\u0442 \u043E\u0442\u0432\u0435\u0442 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",next:"\u0414\u0430\u043B\u0435\u0435",poweredBy:"\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 Prodantix",required:"\u042D\u0442\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.",sending:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430\u2026",step:"\u0428\u0430\u0433 {step} \u0438\u0437 {total}",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",thanks:"\u0421\u043F\u0430\u0441\u0438\u0431\u043E."},sw:{back:"Rudi",close:"Funga",closed:"Fomu hii haipokei majibu kwa sasa.",failed:"Imeshindwa kutuma. Jaribu tena.",invalid:"Jibu hili halikubaliki.",next:"Endelea",poweredBy:"Inaendeshwa na Prodantix",required:"Hii inahitajika.",sending:"Inatuma\u2026",step:"Hatua {step} kati ya {total}",submit:"Tuma",thanks:"Asante."},vi:{back:"Quay l\u1EA1i",close:"\u0110\xF3ng",closed:"Bi\u1EC3u m\u1EABu n\xE0y hi\u1EC7n kh\xF4ng nh\u1EADn c\xE2u tr\u1EA3 l\u1EDDi.",failed:"Kh\xF4ng g\u1EEDi \u0111\u01B0\u1EE3c. H\xE3y th\u1EED l\u1EA1i.",invalid:"C\xE2u tr\u1EA3 l\u1EDDi n\xE0y kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn.",next:"Ti\u1EBFp",poweredBy:"\u0110\u01B0\u1EE3c h\u1ED7 tr\u1EE3 b\u1EDFi Prodantix",required:"Tr\u01B0\u1EDDng n\xE0y l\xE0 b\u1EAFt bu\u1ED9c.",sending:"\u0110ang g\u1EEDi\u2026",step:"B\u01B0\u1EDBc {step}/{total}",submit:"G\u1EEDi",thanks:"C\u1EA3m \u01A1n b\u1EA1n."},zh:{back:"\u4E0A\u4E00\u6B65",close:"\u5173\u95ED",closed:"\u6B64\u8868\u5355\u76EE\u524D\u4E0D\u63A5\u53D7\u56DE\u590D\u3002",failed:"\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",invalid:"\u6B64\u56DE\u7B54\u65E0\u6548\u3002",next:"\u4E0B\u4E00\u6B65",poweredBy:"\u7531 Prodantix \u63D0\u4F9B\u652F\u6301",required:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879\u3002",sending:"\u6B63\u5728\u53D1\u9001\u2026",step:"\u7B2C {step} \u6B65\uFF0C\u5171 {total} \u6B65",submit:"\u63D0\u4EA4",thanks:"\u8C22\u8C22\u3002"}},Ke=t=>{let e=(t??"").toLowerCase().split("-")[0]??"";return e in B?e:"en"};var b="prodantix-cta",lr="prodantix-cta-style",Wi=`.${b}{font-family:system-ui,sans-serif;color:var(--pdx-text);background:var(--pdx-background);border-radius:var(--pdx-radius);box-sizing:border-box;padding:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
2
2
  .${b} *{box-sizing:border-box}
3
3
  .${b} h2{font-size:18px;line-height:1.3;margin:0;font-weight:700}
4
4
  .${b} p{margin:0;font-size:15px;line-height:1.5}
package/dist/web.js CHANGED
@@ -1,4 +1,4 @@
1
- import {Z as Z$1,e,d,u,s,b,c,h as h$1,_,t,S as S$1,U,V as V$1,P,M,L,J,O,H,B,N,E,I,F as F$1,G as G$1,z,k,j,i}from'./chunk-ZQWZ4CKH.js';import'./chunk-V77KYPOF.js';import {e as e$1,h,d as d$1,f,a as a$1}from'./chunk-5WTMO52O.js';import {a}from'./chunk-5XGN7UAV.js';var ft="data-prodantix",gt="data-prodantix-action",ht="data-prodantix-ignore",F=300,be="data-pdx-no-capture",ke="pdx-no-capture",xn=new Set(["a","button","input","label","option","select","summary","textarea"]),bn=new Set(["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab","treeitem"]);function kn(e){return xn.has(e.tagName.toLowerCase())||bn.has((e.getAttribute("role")??"").trim().toLowerCase())}function we(e){for(let t=e;t!==null;t=t.parentElement)if(kn(t))return t;return e}function Ee(e){for(let t=e;t!==null;t=t.parentElement)if(t.getAttribute(ht)!==null)return true;return false}function Se(e){for(let t=e;t!==null;t=t.parentElement)if(t.getAttribute(be)!==null||typeof t.className=="string"&&t.className.split(/\s+/).includes(ke))return true;return false}function Y(e){let t=new Set;return n=>{t.has(n.message)||(t.add(n.message),e(n));}}function mt(e,t,n){let r=e.getAttribute(t);if(r===null)return;let o=r.trim();if(o!==""){if(o.length>F){n(new a$1("validation",`${t} on a <${e.tagName.toLowerCase()}> is ${o.length} characters, over the ${F}-character limit, so it was ignored: "${o.slice(0,40)}\u2026"`));return}return o}}function Te(e,t){let n={},r=mt(e,ft,t);r!==void 0&&(n.$el_description=r,n.$el_description_source="annotation");let o=mt(e,gt,t);return o!==void 0&&(n.$el_action=o),n}function yt(e,t){return !wn(e)||Ee(e)||Se(e)?{}:Te(we(e),t)}function wn(e){return typeof e=="object"&&e!==null&&typeof e.tagName=="string"&&typeof e.getAttribute=="function"}var En="$form_submitted",Sn=new Set(["button","file","hidden","image","password","reset","submit"]),vt=/(card|cc-?num|cvc|cvv|iban|security.?code)/i,Tn=e=>(e.getAttribute("autocomplete")??"").startsWith("cc-")||vt.test(e.name)||vt.test(e.id),Cn=e=>{let t=e.name.toLowerCase();return e instanceof HTMLInputElement&&e.type==="email"||t==="email"||e.getAttribute("autocomplete")==="email"?"$email":t==="name"||t==="full_name"||t==="fullname"||e.getAttribute("autocomplete")==="name"?"$name":null},Pn=(e,t)=>{if(e.closest("[data-prodantix-ignore]")||e.hasAttribute("data-prodantix-form"))return null;let n={},r={};for(let o of Array.from(e.elements)){if(!(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)||!o.name||o.closest("[data-prodantix-ignore]")||Tn(o)||o instanceof HTMLInputElement&&(Sn.has(o.type)||(o.type==="checkbox"||o.type==="radio")&&!o.checked))continue;let a=o.value.trim();if(a==="")continue;n[o.name]=a;let i=Cn(o);i&&(r[i]=a);}return {$answers:n,$form_id:e.id||`${t}#${Array.from(e.ownerDocument.forms).indexOf(e)}`,$page_url:e.ownerDocument.location?.href??"",$set:r,collected:true}},xt=(e,t=document)=>{let n=r=>{if(r.target instanceof HTMLFormElement){let o=Pn(r.target,t.location?.pathname??"");o&&e.capture(En,{properties:o});}};return t.addEventListener("submit",n,true),()=>t.removeEventListener("submit",n,true)};var Ln=1e3,An=5e3,In=50,Ce=class{constructor(){a(this,"fcp");a(this,"lcp");a(this,"cls");a(this,"window",{end:0,start:0,sum:0});a(this,"interactions",new Map);}add(t){if(t.entryType==="paint"&&t.name==="first-contentful-paint"&&(this.fcp=t.startTime),t.entryType==="largest-contentful-paint"&&(this.lcp=t.startTime),t.entryType==="layout-shift"&&!t.hadRecentInput&&t.value!==void 0){let n=this.window.sum>0&&t.startTime-this.window.end<Ln&&t.startTime-this.window.start<An;this.window=n?{end:t.startTime,start:this.window.start,sum:this.window.sum+t.value}:{end:t.startTime,start:t.startTime,sum:t.value},this.cls=Math.max(this.cls??0,this.window.sum);}t.entryType==="event"&&t.interactionId!==void 0&&t.interactionId>0&&this.interactions.set(t.interactionId,Math.max(this.interactions.get(t.interactionId)??0,t.duration));}properties(t){let n={};if(this.lcp!==void 0&&(n.$lcp_ms=Math.round(this.lcp)),this.fcp!==void 0&&(n.$fcp_ms=Math.round(this.fcp)),this.cls!==void 0&&(n.$cls=Math.round(this.cls*1e4)/1e4),this.interactions.size>0){let r=[...this.interactions.values()].sort((o,a)=>a-o);n.$inp_ms=Math.round(r[Math.min(r.length-1,Math.floor(r.length/In))]??0);}return t!==void 0&&(n.$ttfb_ms=Math.round(t)),n}},Nn=[{type:"paint"},{type:"largest-contentful-paint"},{type:"layout-shift"},{durationThreshold:40,type:"event"}];function bt(e,t){let n=new Ce,r=[];for(let i of Nn){let s=t.observer(c=>{for(let d of c)n.add(d);});if(s!==void 0)try{s.observe({...i,buffered:!0}),r.push(s);}catch{s.disconnect();}}let o=false,a=()=>{if(o)return;let i=n.properties(t.firstByte());if(Object.keys(i).length===0)return;o=true;let s=t.path();e.capture(V$1.webVitals,{properties:s===void 0?i:{...i,$pathname:s}});};return t.addEventListener("visibilitychange",()=>{t.isHidden()&&a();}),t.addEventListener("pagehide",a),()=>{for(let i of r)i.disconnect();}}function kt(){if(!(typeof window>"u"||typeof document>"u"||typeof PerformanceObserver>"u"))return {addEventListener:(e,t)=>(e==="pagehide"?window:document).addEventListener(e,t),firstByte:()=>{let e=performance.getEntriesByType("navigation")[0];return e instanceof PerformanceNavigationTiming&&e.responseStart>0?e.responseStart:void 0},isHidden:()=>document.visibilityState==="hidden",observer:e=>{try{return new PerformanceObserver(t=>e(t.getEntries()))}catch{return}},path:()=>window.location?.pathname}}var On=new Set(["input","select","textarea"]),_n=new Set(["email","password","tel"]);function Q(){return globalThis.location}function wt(){return globalThis.document}function Mn(){return globalThis.window??globalThis}function Rn(e){return typeof e=="object"&&e!==null&&typeof e.tagName=="string"}function X(e,t){let n;try{n=new URL(e,t);}catch{return}return n.protocol==="http:"||n.protocol==="https:"?`${n.origin}${n.pathname}`:n.protocol}function Et(){let e=Q(),t=wt(),n={};if(e){let r=X(e.href);r&&(n.$current_url=r),n.$pathname=e.pathname,n.$host=e.host;}if(t){t.title&&(n.$title=t.title);let r=t.referrer?X(t.referrer):void 0;r&&(n.$referrer=r);}return n}function $n(e){return typeof e.className=="string"?e.className:""}function Fn(e){return On.has(e.tagName.toLowerCase())||_n.has((e.getAttribute("type")??"").toLowerCase())}function Dn(e,t,n){let r={$el_tag:e.tagName.toLowerCase(),$event_type:"click"};if(t)return r;let o=n?e.textContent?.trim():void 0;o&&(r.$el_text=o.slice(0,255)),e.id&&(r.$el_id=e.id);let a=$n(e);a&&(r.$el_classes=a);let i=e.getAttribute("href"),s=i?X(i,Q()?.href):void 0;return s&&(r.$el_href=s),r}function Pe(e){return (e??"").replace(/\s+/g," ").trim()}function V(e,t){return {$el_description:e,$el_description_source:t}}function Hn(e,t,n){if(!t&&n){let i=Pe(e.getAttribute("aria-label"));if(i!==""&&i.length<=F)return V(i,"aria_label");let s=Pe(e.textContent);if(s!==""&&s.length<=F)return V(s,"text")}let r=t?null:e.getAttribute("href"),o=r?X(r,Q()?.href):void 0;if(o)return V(o,"href");let a=Pe(e.getAttribute("role")).toLowerCase();return a===""?V(e.tagName.toLowerCase(),"tag"):V(a,"role")}function Bn(e,t){let n=new Set,r=(d,u)=>{if(n.has(d))return false;try{return u()}catch(l){return n.add(d),t(new a$1("config",`autocapture maskSelectors entry "${d}" is not a valid selector`,{cause:l})),false}},o=(d,u)=>d.matches?r(u,()=>d.matches?.(u)===!0):false,a=d=>{let u=d.querySelector?.bind(d);return u?u(`[${be}], .${ke}`)!==null||e.some(l=>r(l,()=>u(l)!==null)):false},i=d=>{for(let u=d;u;u=u.parentElement){let l=u;if(e.some(x=>o(l,x)))return true}return false},s=d=>{for(let u=d;u;u=u.parentElement)if(Fn(u))return true;return false},c=d=>Se(d)||i(d);return {holdsMasked:a,isMasked:d=>c(d)||s(d),isOptedOut:c}}function qn(e){let t=globalThis.history,n=Mn(),r="",o=()=>{let s=Q(),c=s?`${s.pathname}${s.search}`:"";c!==r&&(r=c,e.capture(V$1.pageview,{properties:Et()}));};if(o(),!t||!n)return ()=>{};let a=t.pushState.bind(t),i=t.replaceState.bind(t);return t.pushState=(...s)=>{a(...s),o();},t.replaceState=(...s)=>{i(...s),o();},n.addEventListener("popstate",o),()=>{t.pushState=a,t.replaceState=i,n.removeEventListener("popstate",o);}}function Kn(e,t){let n=wt();if(!n)return ()=>{};let r=t.onError??(()=>{}),o=Bn(t.maskSelectors??[],r),a=Y(r),i=t.captureElementText??false,s=c=>{let d=c.target;if(!Rn(d)||Ee(d))return;let u=we(d),l=o.isMasked(d)||o.holdsMasked(u),x=o.isOptedOut(d)?{}:Te(u,a),L=x.$el_description===void 0?Hn(u,l,i):{};e.capture(V$1.autocapture,{properties:{...Et(),...Dn(u,l,i),...L,...x}});};return n.addEventListener("click",s,true),()=>n.removeEventListener("click",s,true)}function St(e,t={}){let n=[];(t.pageviews??true)&&n.push(qn(e)),(t.clicks??true)&&n.push(Kn(e,t)),t.collectForms===true&&typeof document<"u"&&n.push(xt(e));let r=t.webVitals===false?void 0:kt();return r!==void 0&&n.push(bt(e,r)),()=>{for(let o of n)o();}}function Vn(){return globalThis.document?.visibilityState==="hidden"}var Z=class{constructor(t={}){a(this,"fetchTransport");this.fetchTransport=new Z$1(t);}async send(t){await this.fetchTransport.send(t,{keepalive:Vn()});}};var Le="prodantix:consent-ready",Ae="prodantix:consent",Tt="__prodantixConsent";var Ct=(e,t)=>{e.takeCookielessId(t.anonymousId),t.consent!==null?e.setConsent(t.consent):t.rule==="notice"&&e.allowStorage();},Pt=(e,t)=>{let n=t[Tt];n&&Ct(e,n);let r=a=>{let i=a.detail;i&&Ct(e,i);},o=a=>{let i=a.detail;i&&e.setConsent(i);};return t.addEventListener(Le,r),t.addEventListener(Ae,o),()=>{t.removeEventListener(Le,r),t.removeEventListener(Ae,o);}};var Gn=/^\d{1,3}(\.\d{1,3}){3}$/,Un=/^[a-z0-9.-]+$/i;function Lt(){return Math.random().toString(36).slice(2,12)}function ee(e,t){let n=`${t}=`,r=[];for(let o of e.cookie.split(";")){let a=o.trim();a.startsWith(n)&&r.push(a.slice(n.length));}return r}function G(e,t,n){let r=["Path=/",`Max-Age=${t}`,"SameSite=Lax"];return e&&r.push(`Domain=${e}`),n&&r.push("Secure"),r.join("; ")}function At(e,t,n,r){try{let o=`pdx_probe_${r()}`,a=r();e.cookie=`${o}=${a}; ${G(t,60,n)}`;let i=ee(e,o).includes(a);e.cookie=`${o}=; ${G(t,0,n)}`;let s=ee(e,o).includes(a);return i&&!s}catch{return false}}function Ne(e){let t=e.replace(/^\[|\]$/g,"").toLowerCase();if(t.includes(":")||Gn.test(t)||!t.includes("."))return [];let n=t.split("."),r=[];for(let o=n.length-2;o>=0;o-=1)r.push(n.slice(o).join("."));return r}function It(e,t,n,r=Lt){for(let o of Ne(e))if(At(t,o,n,r))return o}function jn(e){let t=new Map,n=JSON.parse(decodeURIComponent(e));if(n===null||typeof n!="object"||Array.isArray(n))return t;for(let[r,o]of Object.entries(n))typeof o=="string"&&t.set(r,o);return t}var Ie=class{constructor(t,n,r,o){this.jar=t;this.name=n;this.domain=r;this.secure=o;}getItem(t){return this.read().get(t)??null}setItem(t,n){let r=this.read();r.set(t,n),this.write(r);}removeItem(t){let n=this.read();n.delete(t)&&this.write(n);}read(){try{let t=ee(this.jar,this.name);t.length>1&&this.domain&&(this.jar.cookie=`${this.name}=; ${G(void 0,0,this.secure)}`,t=ee(this.jar,this.name));let n=t[0];return n?jn(n):new Map}catch{return new Map}}write(t){try{if(t.size===0){this.jar.cookie=`${this.name}=; ${G(this.domain,0,this.secure)}`;return}let n=encodeURIComponent(JSON.stringify(Object.fromEntries(t)));this.jar.cookie=`${this.name}=${n}; ${G(this.domain,31536e3,this.secure)}`;}catch{return}}};function Wn(){return globalThis.document}function zn(){return globalThis.location?.hostname??""}function Jn(){return globalThis.location?.protocol==="https:"}function Yn(e){if(e===void 0)return;let t=e.startsWith(".")?e.slice(1):e;return Un.test(t)?t.toLowerCase():void 0}function Oe(e){let t="jar"in e?e.jar:Wn();if(!t||globalThis.navigator?.cookieEnabled===false)return null;let r=e.random??Lt,o=e.secure??Jn(),a=e.hostname??zn();try{let i=Yn(e.domain)??It(a,t,o,r);return At(t,i,o,r)?new Ie(t,e.name,i,o):null}catch{return null}}var Xn=["am","ar","bn","de","en","es","et","fil","fr","hi","id","ja","ko","pt","ru","sw","vi","zh"],Nt=e=>{let t=(e??"").toLowerCase().split("-")[0]??"";return Xn.find(n=>n===t)??"en"};var Qn=/^\$(survey|guide|checklist)_/,Ot=()=>({guides:{done:[],settled:[]},surveys:{settled:[]}});function Zn(e,t){try{let n=e.getItem(t);if(n===null)return Ot();let r=JSON.parse(n);return {guides:{done:r.guides?.done??[],lastShownAt:r.guides?.lastShownAt,settled:r.guides?.settled??[]},surveys:{lastShownAt:r.surveys?.lastShownAt,settled:r.surveys?.settled??[]}}}catch{return Ot()}}function _t(e,t,n){let r=n();return r?Promise.resolve(r):new Promise(o=>{let a=e.document.createElement("script");a.src=t,a.async=true,a.onload=()=>o(n()??null),a.onerror=()=>o(null),e.document.head.append(a);})}function Mt(e,t,n){let r=`pdx_engage_${n.namespace}`,o=Zn(n.storage,r),a=()=>{try{n.storage.setItem(r,JSON.stringify(o));}catch(g){n.onError(g);}},i=Nt(t.document.documentElement.lang||t.navigator.language),s=[],c=[],d=false,u=false,l=new Map,x=()=>_t(t,`${n.edgeHost}/surveys.js`,()=>t.prodantixSurveys),L$1=()=>_t(t,`${n.edgeHost}/guides.js`,()=>t.prodantixGuides),T=async g=>{if(d)return;let m=s.find(P=>B(P,o.surveys,t.location.href,Date.now(),g));if(!m)return;d=true;let E=await x();if(!E){d=false;return}let w=()=>{o.surveys.settled=[...o.surveys.settled.filter(P=>P!==z(m)),z(m)],a(),d=false;};E.showSurvey(t.document,m,i,{onDismissed:()=>{e.captureSurveyDismissed(m),w();},onSent:P=>{e.captureSurveySent(m,P),w();},onShown:()=>{o.surveys.lastShownAt=Date.now(),a(),e.captureSurveyShown(m);}});},I$1=g=>{o.guides.settled=[...o.guides.settled.filter(m=>m!==L(g)),L(g)],a();},R=async g=>{let m=c.filter(h=>!l.has(h.id)&&N(h,o.guides,t.location.href,Date.now(),g)),E$1=m.filter(h=>h.kind==="checklist"),w=u?void 0:m.find(h=>h.kind!=="checklist");if(E$1.length===0&&!w)return;w&&(u=true);let P=await L$1();if(!P){u=false;return}for(let h of E$1)l.has(h.id)||l.set(h.id,P.showChecklist(t.document,h,i,O(h,o.guides),{onDismissed:()=>{e.captureGuide(I,h),I$1(h),l.delete(h.id);},onShown:()=>e.captureGuide(E,h)}));if(!w)return;(w.kind==="tooltip"?P.showTooltip:P.showTour)(t.document,w,i,{onCompleted:()=>{e.captureGuide(H,w),I$1(w),u=false;},onDismissed:()=>{e.captureGuide(I,w),I$1(w),u=false;},onMissed:h=>e.captureGuide(G$1,w,h),onShown:()=>{o.guides.lastShownAt=Date.now(),a(),e.captureGuide(E,w);},onStep:h=>e.captureGuide(F$1,w,h)});},H$1=g=>{for(let m of c){let E=P(m,g);!E||o.guides.done.includes(M(m,E.id))||o.guides.settled.includes(L(m))||(o.guides.done=[...o.guides.done,M(m,E.id)],e.captureGuide(J,m,E.id),l.get(m.id)?.markDone(E.id),O(m,o.guides).length===m.steps.length&&(e.captureGuide(H,m),I$1(m),l.get(m.id)?.close(),l.delete(m.id)),a());}},N$1=g=>{n.surveys&&T(g).catch(n.onError),n.guides&&R(g).catch(n.onError);},O$1=e.onCapture(g=>{Qn.test(g)||(H$1(g),N$1(g));}),C=()=>N$1();t.addEventListener("popstate",C);let M$1=async()=>{let g=w=>(n.onError(w),[]),[m,E]=await Promise.all([n.surveys?e.getSurveys(t.document.documentElement.lang||t.navigator.language).catch(g):[],n.guides?e.getGuides().catch(g):[]]);s=m,c=E,N$1();};return t.document.readyState==="loading"?t.document.addEventListener("DOMContentLoaded",()=>void M$1(),{once:true}):M$1(),()=>{O$1(),t.removeEventListener("popstate",C);for(let g of l.values())g.close();l.clear();}}var Ft="_pdx",Dt="~",er=200,tr=/^\d+$/;function Ht(e,t,n,r){let o=rr(e.href);if(o===void 0||Me(o.search).some(Re))return;let a=Rt(o.hostname,n);a===void 0||a===Rt(r,n)||(o.search=`${o.search}${o.search?"&":"?"}${Ft}=${nr(t)}`,e.href=o.href);}function nr(e){return [e.anonymousId,e.sessionId,String(e.sessionStartedAt)].map(ir).join(Dt)}function Bt(e){let t=Me(e).find(Re);if(t===void 0)return;let n=or(t).split(Dt);if(n.length!==3)return;let r=te(n[0]),o=te(n[1]),a=te(n[2]);if(!(!$t(r)||!$t(o)||!sr(a)))return {anonymousId:r,sessionId:o,sessionStartedAt:Number(a)}}function qt(e,t){let n=Me(t.search),r=n.filter(a=>!Re(a));if(r.length===n.length)return;let o=r.length>0?`?${r.join("&")}`:"";e.replaceState(e.state,"",`${t.pathname}${o}${t.hash}`);}function Kt(e){if(e.location===void 0||typeof e.location.search!="string")return;let t=Bt(e.location.search);if(t===void 0)return;let n=S$1(e.storage,e.shared,e.namespace,t.anonymousId);return U(e.shared,e.namespace,{id:t.sessionId,startedAt:t.sessionStartedAt},e.now),e.history!==void 0&&qt(e.history,e.location),n}function _e(e,t,n){if(n.length===0)return ()=>{};let r=o=>{let a=ur(o.target);if(a===void 0)return;let i=ar(t);i!==void 0&&Ht(a,i,n,e.location?.hostname??"");};return e.addEventListener("click",r,true),e.addEventListener("auxclick",r,true),()=>{e.removeEventListener("click",r,true),e.removeEventListener("auxclick",r,true);}}function rr(e){try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"?t:void 0}catch{return}}function Rt(e,t){let n=t.map(r=>r.replace(/^\./,"").toLowerCase());return Ne(e).find(r=>n.includes(r))}function Me(e){return e.replace(/^\?/,"").split("&").filter(t=>t!=="")}function Re(e){let t=e.indexOf("=");return te(t===-1?e:e.slice(0,t))===Ft}function or(e){let t=e.indexOf("=");return t===-1?"":e.slice(t+1)}function ir(e){return encodeURIComponent(e).replace(/~/g,"%7E")}function te(e){try{return decodeURIComponent(e)}catch{return}}function $t(e$1){if(e$1===void 0)return false;let t=e(e$1);return t>=1&&t<=er}function sr(e){return e!==void 0&&tr.test(e)&&Number.isSafeInteger(Number(e))}function ar(e){if(e.consent?.()?.identityLink===false)return;let t=e.sessionId,n=e.sessionStartedAt;if(!(t===void 0||n===void 0))return {anonymousId:e.anonymousId,sessionId:t,sessionStartedAt:n}}function dr(e){return typeof e.tagName=="string"&&e.tagName.toUpperCase()==="A"&&typeof e.href=="string"}function ur(e){let t=typeof e=="object"?e:null;for(;t;){if(dr(t))return t;t=t.parentElement??null;}}var Vt={maskAllInputs:true,maskAllText:false},cr=new Set(["email","password","tel"]);function Gt(e){return e.replace(/\S/g,"*")}function ne(e,t,n){return lr(t)||n.maskAllInputs?Gt(e):e}function re(e,t){return t.maskAllText?Gt(e):e}function lr(e){return cr.has((e??"").toLowerCase())}var pr=5e3,oe=class{constructor(t){this.options=t;a(this,"buffer",[]);a(this,"seq",0);a(this,"maxEvents");this.maxEvents=Math.min(Math.max(1,t.maxEvents),pr);}add(t){return this.buffer.push(t),this.buffer.length>=this.maxEvents?this.flush():null}flush(){if(this.buffer.length===0)return null;let t=this.buffer;this.buffer=[];let n={distinct_id:this.options.distinctId(),events:t,masked:this.options.masked,schema_version:1,seq:this.seq,session_id:this.options.sessionId,timestamp:new Date(this.options.now()).toISOString()};return this.seq+=1,n}};var $e=1,Fe=3,mr=9,ie=class{constructor(){a(this,"next",1);}allocate(){let t=this.next;return this.next+=1,t}},fr=new Set(["NOSCRIPT","SCRIPT"]);function se(e,t,n,r){if(e.nodeType===Fe){let o=t.allocate();return r?.(e,o),{id:o,textContent:re(e.textValue??"",n),type:"text"}}if(e.nodeType===mr){let o=t.allocate();return r?.(e,o),{childNodes:Ut(e,t,n,r),id:o,type:"document"}}if(e.nodeType===$e){let o=e.tagName??"";if(fr.has(o))return null;let a=t.allocate();return r?.(e,a),{attributes:gr(e,n),childNodes:Ut(e,t,n,r),id:a,tagName:o,type:"element"}}return null}function Ut(e,t,n,r){let o=[];for(let a of e.childNodes??[]){let i=se(a,t,n,r);i&&o.push(i);}return o}function gr(e,t){let n={};for(let r of e.attributes??[])n[r.name]=r.value;return e.inputValue!==void 0&&(n.value=ne(e.inputValue,e.inputType,t)),n}async function jt(e,t){let n=`${h(t.replayHost)}/v1/replay`;return (await t.fetch(n,{body:JSON.stringify(e),headers:{authorization:`Bearer ${t.apiKey}`,"content-type":"application/json"},method:"POST"})).ok}var Wt=new Set(["INPUT","SELECT","TEXTAREA"]),ae=class{constructor(t){this.options=t;a(this,"allocator",new ie);a(this,"mirror",new Map);a(this,"chunker");a(this,"fetchImpl");a(this,"observer");a(this,"timer");a(this,"started",false);this.chunker=new oe({distinctId:t.distinctId,masked:t.mask.maskAllInputs,maxEvents:t.maxEvents,now:t.now,sessionId:t.sessionId}),this.fetchImpl=e$1(t.fetch);}start(){if(this.started)return;let t=hr(),n=t?.documentElement;!t||!n||!this.fetchImpl||(this.started=true,this.captureFullSnapshot(n),this.observeMutations(n),this.observeInteractions(t),this.timer=setInterval(()=>this.upload(this.chunker.flush()),this.options.flushIntervalMs));}stop(){this.started&&(this.started=false,this.observer?.disconnect(),this.timer&&clearInterval(this.timer),this.upload(this.chunker.flush()));}captureFullSnapshot(t){let n=se(this.adapt(t),this.allocator,this.options.mask,(r,o)=>{let a=r.ref;a&&this.mirror.set(a,o);});n&&this.push(2,{node:n});}observeMutations(t){let n=globalThis.MutationObserver;n&&(this.observer=new n(r=>{for(let o of r)this.handleMutation(o);}),this.observer.observe(t,{attributes:true,characterData:true,childList:true,subtree:true}));}handleMutation(t){if(t.type==="characterData"){let n=this.mirror.get(t.target);n!==void 0&&this.push(3,{texts:[{id:n,value:re(t.target.textContent??"",this.options.mask)}]});return}if(t.type==="attributes"&&t.attributeName){let n=this.mirror.get(t.target),r=t.target;n!==void 0&&this.push(3,{attributes:[{attributes:{[t.attributeName]:r.getAttribute(t.attributeName)??""},id:n}]});return}if(t.type==="childList"){let n=this.mirror.get(t.target);if(n===void 0)return;for(let r of Array.from(t.addedNodes)){let o=se(this.adapt(r),this.allocator,this.options.mask,(a,i)=>{let s=a.ref;s&&this.mirror.set(s,i);});o&&this.push(3,{adds:[{node:o,parentId:n}]});}for(let r of Array.from(t.removedNodes)){let o=this.mirror.get(r);o!==void 0&&(this.push(3,{removes:[{id:o,parentId:n}]}),this.mirror.delete(r));}}}observeInteractions(t){t.addEventListener("input",n=>{let r=n.target;if(!r||!Wt.has(r.tagName))return;let o=this.mirror.get(r);o!==void 0&&this.push(3,{input:{id:o,value:ne(r.value??"",r.type,this.options.mask)}});},true),t.addEventListener("scroll",n=>{let r=n.target,o=r?this.mirror.get(r):void 0;this.push(3,{scroll:{id:o??0,x:r?.scrollLeft??0,y:r?.scrollTop??0}});},true);}adapt(t){let n={childNodes:[],nodeType:t.nodeType,ref:t};if(t.nodeType===Fe)return n.textValue=t.textContent??"",n;if(t.nodeType===$e){let r=t;if(n.tagName=r.tagName,n.attributes=Array.from(r.attributes).map(o=>({name:o.name,value:o.value})),Wt.has(r.tagName)){let o=r;n.inputType=o.type,n.inputValue=o.value??"";}}return n.childNodes=Array.from(t.childNodes).map(r=>this.adapt(r)),n}push(t,n){let r=this.chunker.add({data:n,timestamp:this.options.now(),type:t});r&&this.upload(r);}upload(t){!t||!this.fetchImpl||jt(t,{apiKey:this.options.apiKey,fetch:this.fetchImpl,replayHost:this.options.replayHost}).catch(n=>this.options.onError?.(n));}};function hr(){return globalThis.document}function zt(e){let t=new ae({apiKey:e.apiKey,distinctId:e.distinctId,flushIntervalMs:e.flushIntervalMs??5e3,mask:{...Vt,...e.mask},maxEvents:e.maxEvents??200,now:e.now??(()=>Date.now()),onError:e.onError,replayHost:e.replayHost,sessionId:e.sessionId??d()});return t.start(),t}var Jt=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],Yt=["gclid","gbraid","wbraid","fbclid","msclkid","ttclid","li_fat_id","twclid"];var De=(e,t)=>{let n=new URLSearchParams(e),r={};for(let o of [...Jt,...Yt]){let a=n.get(o)?.trim();a&&(r[o]=a.slice(0,255));}return t&&(r.$session_referrer=t),r},yr=e=>{let t={};for(let n of [...Jt,...Yt])e[n]!==void 0&&(t[`$initial_${n}`]=e[n]);return t.$initial_referrer=e.$session_referrer??"$direct",t},vr=(e,t)=>{let n=e.getItem(t);if(n)try{let r=JSON.parse(n);return typeof r.sessionId=="string"&&typeof r.properties=="object"&&r.properties!==null?{properties:r.properties,sessionId:r.sessionId}:void 0}catch{return}},Xt=(e,t)=>{let n=`pdx_${t}_session_touch`,r=`pdx_${t}_first_touch`;return {forSession:(o,a,i)=>{if(o===void 0)return {};let s=vr(e,n);if(s!==void 0&&s.sessionId===o)return s.properties;let c=De(a,i);return e.setItem(n,JSON.stringify({properties:c,sessionId:o})),e.getItem(r)?c:(e.setItem(r,"1"),{...c,$set_once:yr(c)})}}};var de=e=>`prodantix-cta:${e}`,Qt=e=>{try{let t=window.localStorage.getItem(de(e));return t===null?null:Number(t)}catch{return null}},Zt=e=>{try{return window.sessionStorage.getItem(de(e))!==null}catch{return false}},en=(e,t)=>{try{window.localStorage.setItem(de(e),String(t)),window.sessionStorage.setItem(de(e),String(t));}catch{return}},tn=(e,t,n,r)=>t===null?true:e.kind==="once"?false:e.kind==="session"?!n:r-t>=e.value*864e5;var $={am:{back:"\u1270\u1218\u1208\u1235",close:"\u12DD\u130B",closed:"\u12ED\u1205 \u1245\u133D \u12A0\u1201\u1295 \u121D\u120B\u123E\u127D\u1295 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",failed:"\u1218\u120B\u12AD \u12A0\u120D\u1270\u127B\u1208\u121D\u1362 \u12A5\u1295\u12F0\u1308\u1293 \u12ED\u121E\u12AD\u1229\u1362",invalid:"\u12ED\u1205 \u1218\u120D\u1235 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",next:"\u1240\u1323\u12ED",poweredBy:"\u1260Prodantix \u12E8\u1270\u1230\u122B",required:"\u12ED\u1205 \u12EB\u1235\u1348\u120D\u130B\u120D\u1362",sending:"\u1260\u1218\u120B\u12AD \u120B\u12ED\u2026",step:"\u12F0\u1228\u1303 {step} \u12A8{total}",submit:"\u120B\u12AD",thanks:"\u12A5\u1293\u1218\u1230\u130D\u1293\u1208\u1295\u1362"},ar:{back:"\u0631\u062C\u0648\u0639",close:"\u0625\u063A\u0644\u0627\u0642",closed:"\u0644\u0627 \u064A\u0642\u0628\u0644 \u0647\u0630\u0627 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0631\u062F\u0648\u062F\u064B\u0627 \u0627\u0644\u0622\u0646.",failed:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",invalid:"\u0647\u0630\u0647 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629.",next:"\u0627\u0644\u062A\u0627\u0644\u064A",poweredBy:"\u0645\u062F\u0639\u0648\u0645 \u0645\u0646 Prodantix",required:"\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628.",sending:"\u062C\u0627\u0631\u064D \u0627\u0644\u0625\u0631\u0633\u0627\u0644\u2026",step:"\u0627\u0644\u062E\u0637\u0648\u0629 {step} \u0645\u0646 {total}",submit:"\u0625\u0631\u0633\u0627\u0644",thanks:"\u0634\u0643\u0631\u064B\u0627 \u0644\u0643."},bn:{back:"\u09AA\u09C7\u099B\u09A8\u09C7",close:"\u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",closed:"\u098F\u0987 \u09AB\u09B0\u09CD\u09AE\u099F\u09BF \u098F\u0996\u09A8 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A8\u09BF\u099A\u09CD\u099B\u09C7 \u09A8\u09BE\u0964",failed:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09AF\u09BE\u09AF\u09BC\u09A8\u09BF\u0964 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8\u0964",invalid:"\u098F\u0987 \u0989\u09A4\u09CD\u09A4\u09B0\u099F\u09BF \u0997\u09CD\u09B0\u09B9\u09A3\u09AF\u09CB\u0997\u09CD\u09AF \u09A8\u09AF\u09BC\u0964",next:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",poweredBy:"Prodantix \u09A6\u09CD\u09AC\u09BE\u09B0\u09BE \u099A\u09BE\u09B2\u09BF\u09A4",required:"\u098F\u099F\u09BF \u0986\u09AC\u09B6\u09CD\u09AF\u0995\u0964",sending:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09B9\u099A\u09CD\u099B\u09C7\u2026",step:"\u09A7\u09BE\u09AA {step} / {total}",submit:"\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",thanks:"\u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6\u0964"},de:{back:"Zur\xFCck",close:"Schlie\xDFen",closed:"Dieses Formular nimmt gerade keine Antworten an.",failed:"Senden fehlgeschlagen. Bitte erneut versuchen.",invalid:"Diese Antwort wird nicht angenommen.",next:"Weiter",poweredBy:"Bereitgestellt von Prodantix",required:"Dieses Feld ist erforderlich.",sending:"Wird gesendet\u2026",step:"Schritt {step} von {total}",submit:"Absenden",thanks:"Vielen Dank."},en:{back:"Back",close:"Close",closed:"This form is not accepting responses right now.",failed:"This could not be sent. Try again.",invalid:"This answer is not accepted.",next:"Next",poweredBy:"Powered by Prodantix",required:"This is required.",sending:"Sending\u2026",step:"Step {step} of {total}",submit:"Submit",thanks:"Thank you."},es:{back:"Atr\xE1s",close:"Cerrar",closed:"Este formulario no acepta respuestas ahora.",failed:"No se pudo enviar. Int\xE9ntalo de nuevo.",invalid:"Esta respuesta no se acepta.",next:"Siguiente",poweredBy:"Con la tecnolog\xEDa de Prodantix",required:"Este campo es obligatorio.",sending:"Enviando\u2026",step:"Paso {step} de {total}",submit:"Enviar",thanks:"Gracias."},et:{back:"Tagasi",close:"Sulge",closed:"See vorm ei v\xF5ta praegu vastuseid vastu.",failed:"Saatmine eba\xF5nnestus. Proovi uuesti.",invalid:"Seda vastust ei v\xF5eta vastu.",next:"Edasi",poweredBy:"Toetab Prodantix",required:"See on kohustuslik.",sending:"Saatmine\u2026",step:"Samm {step}/{total}",submit:"Saada",thanks:"Ait\xE4h."},fil:{back:"Bumalik",close:"Isara",closed:"Hindi tumatanggap ng sagot ang form na ito ngayon.",failed:"Hindi naipadala. Subukan ulit.",invalid:"Hindi tinatanggap ang sagot na ito.",next:"Susunod",poweredBy:"Pinapagana ng Prodantix",required:"Kailangan ito.",sending:"Ipinapadala\u2026",step:"Hakbang {step} sa {total}",submit:"Ipadala",thanks:"Salamat."},fr:{back:"Retour",close:"Fermer",closed:"Ce formulaire n\u2019accepte plus de r\xE9ponses pour le moment.",failed:"L\u2019envoi a \xE9chou\xE9. R\xE9essayez.",invalid:"Cette r\xE9ponse n\u2019est pas accept\xE9e.",next:"Suivant",poweredBy:"Propuls\xE9 par Prodantix",required:"Ce champ est obligatoire.",sending:"Envoi\u2026",step:"\xC9tape {step} sur {total}",submit:"Envoyer",thanks:"Merci."},hi:{back:"\u092A\u0940\u091B\u0947",close:"\u092C\u0902\u0926 \u0915\u0930\u0947\u0902",closed:"\u092F\u0939 \u092B\u093C\u0949\u0930\u094D\u092E \u0905\u092D\u0940 \u091C\u0935\u093E\u092C \u0928\u0939\u0940\u0902 \u0932\u0947 \u0930\u0939\u093E \u0939\u0948\u0964",failed:"\u092D\u0947\u091C\u093E \u0928\u0939\u0940\u0902 \u091C\u093E \u0938\u0915\u093E\u0964 \u092B\u093F\u0930 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",invalid:"\u092F\u0939 \u091C\u0935\u093E\u092C \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",next:"\u0906\u0917\u0947",poweredBy:"Prodantix \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u0902\u091A\u093E\u0932\u093F\u0924",required:"\u092F\u0939 \u091C\u093C\u0930\u0942\u0930\u0940 \u0939\u0948\u0964",sending:"\u092D\u0947\u091C\u093E \u091C\u093E \u0930\u0939\u093E \u0939\u0948\u2026",step:"\u091A\u0930\u0923 {step} / {total}",submit:"\u092D\u0947\u091C\u0947\u0902",thanks:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926\u0964"},id:{back:"Kembali",close:"Tutup",closed:"Formulir ini sedang tidak menerima tanggapan.",failed:"Gagal mengirim. Coba lagi.",invalid:"Jawaban ini tidak diterima.",next:"Berikutnya",poweredBy:"Didukung oleh Prodantix",required:"Wajib diisi.",sending:"Mengirim\u2026",step:"Langkah {step} dari {total}",submit:"Kirim",thanks:"Terima kasih."},ja:{back:"\u623B\u308B",close:"\u9589\u3058\u308B",closed:"\u3053\u306E\u30D5\u30A9\u30FC\u30E0\u306F\u73FE\u5728\u56DE\u7B54\u3092\u53D7\u3051\u4ED8\u3051\u3066\u3044\u307E\u305B\u3093\u3002",failed:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",invalid:"\u3053\u306E\u56DE\u7B54\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3002",next:"\u6B21\u3078",poweredBy:"Powered by Prodantix",required:"\u5FC5\u9808\u9805\u76EE\u3067\u3059\u3002",sending:"\u9001\u4FE1\u4E2D\u2026",step:"\u30B9\u30C6\u30C3\u30D7 {step}/{total}",submit:"\u9001\u4FE1",thanks:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3057\u305F\u3002"},ko:{back:"\uC774\uC804",close:"\uB2EB\uAE30",closed:"\uC774 \uC591\uC2DD\uC740 \uC9C0\uAE08 \uC751\uB2F5\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",failed:"\uBCF4\uB0B4\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",invalid:"\uC774 \uB2F5\uBCC0\uC740 \uBC1B\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",next:"\uB2E4\uC74C",poweredBy:"Prodantix \uC81C\uACF5",required:"\uD544\uC218 \uD56D\uBAA9\uC785\uB2C8\uB2E4.",sending:"\uBCF4\uB0B4\uB294 \uC911\u2026",step:"{total}\uB2E8\uACC4 \uC911 {step}\uB2E8\uACC4",submit:"\uC81C\uCD9C",thanks:"\uAC10\uC0AC\uD569\uB2C8\uB2E4."},pt:{back:"Voltar",close:"Fechar",closed:"Este formul\xE1rio n\xE3o est\xE1 a aceitar respostas neste momento.",failed:"N\xE3o foi poss\xEDvel enviar. Tente novamente.",invalid:"Esta resposta n\xE3o \xE9 aceite.",next:"Seguinte",poweredBy:"Com tecnologia Prodantix",required:"Este campo \xE9 obrigat\xF3rio.",sending:"A enviar\u2026",step:"Passo {step} de {total}",submit:"Enviar",thanks:"Obrigado."},ru:{back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",closed:"\u042D\u0442\u0430 \u0444\u043E\u0440\u043C\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u044B.",failed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",invalid:"\u042D\u0442\u043E\u0442 \u043E\u0442\u0432\u0435\u0442 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",next:"\u0414\u0430\u043B\u0435\u0435",poweredBy:"\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 Prodantix",required:"\u042D\u0442\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.",sending:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430\u2026",step:"\u0428\u0430\u0433 {step} \u0438\u0437 {total}",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",thanks:"\u0421\u043F\u0430\u0441\u0438\u0431\u043E."},sw:{back:"Rudi",close:"Funga",closed:"Fomu hii haipokei majibu kwa sasa.",failed:"Imeshindwa kutuma. Jaribu tena.",invalid:"Jibu hili halikubaliki.",next:"Endelea",poweredBy:"Inaendeshwa na Prodantix",required:"Hii inahitajika.",sending:"Inatuma\u2026",step:"Hatua {step} kati ya {total}",submit:"Tuma",thanks:"Asante."},vi:{back:"Quay l\u1EA1i",close:"\u0110\xF3ng",closed:"Bi\u1EC3u m\u1EABu n\xE0y hi\u1EC7n kh\xF4ng nh\u1EADn c\xE2u tr\u1EA3 l\u1EDDi.",failed:"Kh\xF4ng g\u1EEDi \u0111\u01B0\u1EE3c. H\xE3y th\u1EED l\u1EA1i.",invalid:"C\xE2u tr\u1EA3 l\u1EDDi n\xE0y kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn.",next:"Ti\u1EBFp",poweredBy:"\u0110\u01B0\u1EE3c h\u1ED7 tr\u1EE3 b\u1EDFi Prodantix",required:"Tr\u01B0\u1EDDng n\xE0y l\xE0 b\u1EAFt bu\u1ED9c.",sending:"\u0110ang g\u1EEDi\u2026",step:"B\u01B0\u1EDBc {step}/{total}",submit:"G\u1EEDi",thanks:"C\u1EA3m \u01A1n b\u1EA1n."},zh:{back:"\u4E0A\u4E00\u6B65",close:"\u5173\u95ED",closed:"\u6B64\u8868\u5355\u76EE\u524D\u4E0D\u63A5\u53D7\u56DE\u590D\u3002",failed:"\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",invalid:"\u6B64\u56DE\u7B54\u65E0\u6548\u3002",next:"\u4E0B\u4E00\u6B65",poweredBy:"\u7531 Prodantix \u63D0\u4F9B\u652F\u6301",required:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879\u3002",sending:"\u6B63\u5728\u53D1\u9001\u2026",step:"\u7B2C {step} \u6B65\uFF0C\u5171 {total} \u6B65",submit:"\u63D0\u4EA4",thanks:"\u8C22\u8C22\u3002"}},ue=e=>{let t=(e??"").toLowerCase().split("-")[0]??"";return t in $?t:"en"};var v="prodantix-cta",nn="prodantix-cta-style",xr=`.${v}{font-family:system-ui,sans-serif;color:var(--pdx-text);background:var(--pdx-background);border-radius:var(--pdx-radius);box-sizing:border-box;padding:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
1
+ import {Z as Z$1,e,d,u,s,b,c,h as h$1,_,t,S as S$1,U,V as V$1,P,M,L,J,O,H,B,N,E,I,F as F$1,G as G$1,z,k,j,i}from'./chunk-3S3BR7QH.js';import'./chunk-V77KYPOF.js';import {e as e$1,h,d as d$1,f,a as a$1}from'./chunk-5WTMO52O.js';import {a}from'./chunk-5XGN7UAV.js';var ft="data-prodantix",gt="data-prodantix-action",ht="data-prodantix-ignore",F=300,be="data-pdx-no-capture",ke="pdx-no-capture",xn=new Set(["a","button","input","label","option","select","summary","textarea"]),bn=new Set(["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab","treeitem"]);function kn(e){return xn.has(e.tagName.toLowerCase())||bn.has((e.getAttribute("role")??"").trim().toLowerCase())}function we(e){for(let t=e;t!==null;t=t.parentElement)if(kn(t))return t;return e}function Ee(e){for(let t=e;t!==null;t=t.parentElement)if(t.getAttribute(ht)!==null)return true;return false}function Se(e){for(let t=e;t!==null;t=t.parentElement)if(t.getAttribute(be)!==null||typeof t.className=="string"&&t.className.split(/\s+/).includes(ke))return true;return false}function Y(e){let t=new Set;return n=>{t.has(n.message)||(t.add(n.message),e(n));}}function mt(e,t,n){let r=e.getAttribute(t);if(r===null)return;let o=r.trim();if(o!==""){if(o.length>F){n(new a$1("validation",`${t} on a <${e.tagName.toLowerCase()}> is ${o.length} characters, over the ${F}-character limit, so it was ignored: "${o.slice(0,40)}\u2026"`));return}return o}}function Te(e,t){let n={},r=mt(e,ft,t);r!==void 0&&(n.$el_description=r,n.$el_description_source="annotation");let o=mt(e,gt,t);return o!==void 0&&(n.$el_action=o),n}function yt(e,t){return !wn(e)||Ee(e)||Se(e)?{}:Te(we(e),t)}function wn(e){return typeof e=="object"&&e!==null&&typeof e.tagName=="string"&&typeof e.getAttribute=="function"}var En="$form_submitted",Sn=new Set(["button","file","hidden","image","password","reset","submit"]),vt=/(card|cc-?num|cvc|cvv|iban|security.?code)/i,Tn=e=>(e.getAttribute("autocomplete")??"").startsWith("cc-")||vt.test(e.name)||vt.test(e.id),Cn=e=>{let t=e.name.toLowerCase();return e instanceof HTMLInputElement&&e.type==="email"||t==="email"||e.getAttribute("autocomplete")==="email"?"$email":t==="name"||t==="full_name"||t==="fullname"||e.getAttribute("autocomplete")==="name"?"$name":null},Pn=(e,t)=>{if(e.closest("[data-prodantix-ignore]")||e.hasAttribute("data-prodantix-form"))return null;let n={},r={};for(let o of Array.from(e.elements)){if(!(o instanceof HTMLInputElement||o instanceof HTMLSelectElement||o instanceof HTMLTextAreaElement)||!o.name||o.closest("[data-prodantix-ignore]")||Tn(o)||o instanceof HTMLInputElement&&(Sn.has(o.type)||(o.type==="checkbox"||o.type==="radio")&&!o.checked))continue;let a=o.value.trim();if(a==="")continue;n[o.name]=a;let i=Cn(o);i&&(r[i]=a);}return {$answers:n,$form_id:e.id||`${t}#${Array.from(e.ownerDocument.forms).indexOf(e)}`,$page_url:e.ownerDocument.location?.href??"",$set:r,collected:true}},xt=(e,t=document)=>{let n=r=>{if(r.target instanceof HTMLFormElement){let o=Pn(r.target,t.location?.pathname??"");o&&e.capture(En,{properties:o});}};return t.addEventListener("submit",n,true),()=>t.removeEventListener("submit",n,true)};var Ln=1e3,An=5e3,In=50,Ce=class{constructor(){a(this,"fcp");a(this,"lcp");a(this,"cls");a(this,"window",{end:0,start:0,sum:0});a(this,"interactions",new Map);}add(t){if(t.entryType==="paint"&&t.name==="first-contentful-paint"&&(this.fcp=t.startTime),t.entryType==="largest-contentful-paint"&&(this.lcp=t.startTime),t.entryType==="layout-shift"&&!t.hadRecentInput&&t.value!==void 0){let n=this.window.sum>0&&t.startTime-this.window.end<Ln&&t.startTime-this.window.start<An;this.window=n?{end:t.startTime,start:this.window.start,sum:this.window.sum+t.value}:{end:t.startTime,start:t.startTime,sum:t.value},this.cls=Math.max(this.cls??0,this.window.sum);}t.entryType==="event"&&t.interactionId!==void 0&&t.interactionId>0&&this.interactions.set(t.interactionId,Math.max(this.interactions.get(t.interactionId)??0,t.duration));}properties(t){let n={};if(this.lcp!==void 0&&(n.$lcp_ms=Math.round(this.lcp)),this.fcp!==void 0&&(n.$fcp_ms=Math.round(this.fcp)),this.cls!==void 0&&(n.$cls=Math.round(this.cls*1e4)/1e4),this.interactions.size>0){let r=[...this.interactions.values()].sort((o,a)=>a-o);n.$inp_ms=Math.round(r[Math.min(r.length-1,Math.floor(r.length/In))]??0);}return t!==void 0&&(n.$ttfb_ms=Math.round(t)),n}},Nn=[{type:"paint"},{type:"largest-contentful-paint"},{type:"layout-shift"},{durationThreshold:40,type:"event"}];function bt(e,t){let n=new Ce,r=[];for(let i of Nn){let s=t.observer(c=>{for(let d of c)n.add(d);});if(s!==void 0)try{s.observe({...i,buffered:!0}),r.push(s);}catch{s.disconnect();}}let o=false,a=()=>{if(o)return;let i=n.properties(t.firstByte());if(Object.keys(i).length===0)return;o=true;let s=t.path();e.capture(V$1.webVitals,{properties:s===void 0?i:{...i,$pathname:s}});};return t.addEventListener("visibilitychange",()=>{t.isHidden()&&a();}),t.addEventListener("pagehide",a),()=>{for(let i of r)i.disconnect();}}function kt(){if(!(typeof window>"u"||typeof document>"u"||typeof PerformanceObserver>"u"))return {addEventListener:(e,t)=>(e==="pagehide"?window:document).addEventListener(e,t),firstByte:()=>{let e=performance.getEntriesByType("navigation")[0];return e instanceof PerformanceNavigationTiming&&e.responseStart>0?e.responseStart:void 0},isHidden:()=>document.visibilityState==="hidden",observer:e=>{try{return new PerformanceObserver(t=>e(t.getEntries()))}catch{return}},path:()=>window.location?.pathname}}var On=new Set(["input","select","textarea"]),_n=new Set(["email","password","tel"]);function Q(){return globalThis.location}function wt(){return globalThis.document}function Mn(){return globalThis.window??globalThis}function Rn(e){return typeof e=="object"&&e!==null&&typeof e.tagName=="string"}function X(e,t){let n;try{n=new URL(e,t);}catch{return}return n.protocol==="http:"||n.protocol==="https:"?`${n.origin}${n.pathname}`:n.protocol}function Et(){let e=Q(),t=wt(),n={};if(e){let r=X(e.href);r&&(n.$current_url=r),n.$pathname=e.pathname,n.$host=e.host;}if(t){t.title&&(n.$title=t.title);let r=t.referrer?X(t.referrer):void 0;r&&(n.$referrer=r);}return n}function $n(e){return typeof e.className=="string"?e.className:""}function Fn(e){return On.has(e.tagName.toLowerCase())||_n.has((e.getAttribute("type")??"").toLowerCase())}function Dn(e,t,n){let r={$el_tag:e.tagName.toLowerCase(),$event_type:"click"};if(t)return r;let o=n?e.textContent?.trim():void 0;o&&(r.$el_text=o.slice(0,255)),e.id&&(r.$el_id=e.id);let a=$n(e);a&&(r.$el_classes=a);let i=e.getAttribute("href"),s=i?X(i,Q()?.href):void 0;return s&&(r.$el_href=s),r}function Pe(e){return (e??"").replace(/\s+/g," ").trim()}function V(e,t){return {$el_description:e,$el_description_source:t}}function Hn(e,t,n){if(!t&&n){let i=Pe(e.getAttribute("aria-label"));if(i!==""&&i.length<=F)return V(i,"aria_label");let s=Pe(e.textContent);if(s!==""&&s.length<=F)return V(s,"text")}let r=t?null:e.getAttribute("href"),o=r?X(r,Q()?.href):void 0;if(o)return V(o,"href");let a=Pe(e.getAttribute("role")).toLowerCase();return a===""?V(e.tagName.toLowerCase(),"tag"):V(a,"role")}function Bn(e,t){let n=new Set,r=(d,u)=>{if(n.has(d))return false;try{return u()}catch(l){return n.add(d),t(new a$1("config",`autocapture maskSelectors entry "${d}" is not a valid selector`,{cause:l})),false}},o=(d,u)=>d.matches?r(u,()=>d.matches?.(u)===!0):false,a=d=>{let u=d.querySelector?.bind(d);return u?u(`[${be}], .${ke}`)!==null||e.some(l=>r(l,()=>u(l)!==null)):false},i=d=>{for(let u=d;u;u=u.parentElement){let l=u;if(e.some(x=>o(l,x)))return true}return false},s=d=>{for(let u=d;u;u=u.parentElement)if(Fn(u))return true;return false},c=d=>Se(d)||i(d);return {holdsMasked:a,isMasked:d=>c(d)||s(d),isOptedOut:c}}function qn(e){let t=globalThis.history,n=Mn(),r="",o=()=>{let s=Q(),c=s?`${s.pathname}${s.search}`:"";c!==r&&(r=c,e.capture(V$1.pageview,{properties:Et()}));};if(o(),!t||!n)return ()=>{};let a=t.pushState.bind(t),i=t.replaceState.bind(t);return t.pushState=(...s)=>{a(...s),o();},t.replaceState=(...s)=>{i(...s),o();},n.addEventListener("popstate",o),()=>{t.pushState=a,t.replaceState=i,n.removeEventListener("popstate",o);}}function Kn(e,t){let n=wt();if(!n)return ()=>{};let r=t.onError??(()=>{}),o=Bn(t.maskSelectors??[],r),a=Y(r),i=t.captureElementText??false,s=c=>{let d=c.target;if(!Rn(d)||Ee(d))return;let u=we(d),l=o.isMasked(d)||o.holdsMasked(u),x=o.isOptedOut(d)?{}:Te(u,a),L=x.$el_description===void 0?Hn(u,l,i):{};e.capture(V$1.autocapture,{properties:{...Et(),...Dn(u,l,i),...L,...x}});};return n.addEventListener("click",s,true),()=>n.removeEventListener("click",s,true)}function St(e,t={}){let n=[];(t.pageviews??true)&&n.push(qn(e)),(t.clicks??true)&&n.push(Kn(e,t)),t.collectForms===true&&typeof document<"u"&&n.push(xt(e));let r=t.webVitals===false?void 0:kt();return r!==void 0&&n.push(bt(e,r)),()=>{for(let o of n)o();}}function Vn(){return globalThis.document?.visibilityState==="hidden"}var Z=class{constructor(t={}){a(this,"fetchTransport");this.fetchTransport=new Z$1(t);}async send(t){await this.fetchTransport.send(t,{keepalive:Vn()});}};var Le="prodantix:consent-ready",Ae="prodantix:consent",Tt="__prodantixConsent";var Ct=(e,t)=>{e.takeCookielessId(t.anonymousId),t.consent!==null?e.setConsent(t.consent):t.rule==="notice"&&e.allowStorage();},Pt=(e,t)=>{let n=t[Tt];n&&Ct(e,n);let r=a=>{let i=a.detail;i&&Ct(e,i);},o=a=>{let i=a.detail;i&&e.setConsent(i);};return t.addEventListener(Le,r),t.addEventListener(Ae,o),()=>{t.removeEventListener(Le,r),t.removeEventListener(Ae,o);}};var Gn=/^\d{1,3}(\.\d{1,3}){3}$/,Un=/^[a-z0-9.-]+$/i;function Lt(){return Math.random().toString(36).slice(2,12)}function ee(e,t){let n=`${t}=`,r=[];for(let o of e.cookie.split(";")){let a=o.trim();a.startsWith(n)&&r.push(a.slice(n.length));}return r}function G(e,t,n){let r=["Path=/",`Max-Age=${t}`,"SameSite=Lax"];return e&&r.push(`Domain=${e}`),n&&r.push("Secure"),r.join("; ")}function At(e,t,n,r){try{let o=`pdx_probe_${r()}`,a=r();e.cookie=`${o}=${a}; ${G(t,60,n)}`;let i=ee(e,o).includes(a);e.cookie=`${o}=; ${G(t,0,n)}`;let s=ee(e,o).includes(a);return i&&!s}catch{return false}}function Ne(e){let t=e.replace(/^\[|\]$/g,"").toLowerCase();if(t.includes(":")||Gn.test(t)||!t.includes("."))return [];let n=t.split("."),r=[];for(let o=n.length-2;o>=0;o-=1)r.push(n.slice(o).join("."));return r}function It(e,t,n,r=Lt){for(let o of Ne(e))if(At(t,o,n,r))return o}function jn(e){let t=new Map,n=JSON.parse(decodeURIComponent(e));if(n===null||typeof n!="object"||Array.isArray(n))return t;for(let[r,o]of Object.entries(n))typeof o=="string"&&t.set(r,o);return t}var Ie=class{constructor(t,n,r,o){this.jar=t;this.name=n;this.domain=r;this.secure=o;}getItem(t){return this.read().get(t)??null}setItem(t,n){let r=this.read();r.set(t,n),this.write(r);}removeItem(t){let n=this.read();n.delete(t)&&this.write(n);}read(){try{let t=ee(this.jar,this.name);t.length>1&&this.domain&&(this.jar.cookie=`${this.name}=; ${G(void 0,0,this.secure)}`,t=ee(this.jar,this.name));let n=t[0];return n?jn(n):new Map}catch{return new Map}}write(t){try{if(t.size===0){this.jar.cookie=`${this.name}=; ${G(this.domain,0,this.secure)}`;return}let n=encodeURIComponent(JSON.stringify(Object.fromEntries(t)));this.jar.cookie=`${this.name}=${n}; ${G(this.domain,31536e3,this.secure)}`;}catch{return}}};function Wn(){return globalThis.document}function zn(){return globalThis.location?.hostname??""}function Jn(){return globalThis.location?.protocol==="https:"}function Yn(e){if(e===void 0)return;let t=e.startsWith(".")?e.slice(1):e;return Un.test(t)?t.toLowerCase():void 0}function Oe(e){let t="jar"in e?e.jar:Wn();if(!t||globalThis.navigator?.cookieEnabled===false)return null;let r=e.random??Lt,o=e.secure??Jn(),a=e.hostname??zn();try{let i=Yn(e.domain)??It(a,t,o,r);return At(t,i,o,r)?new Ie(t,e.name,i,o):null}catch{return null}}var Xn=["am","ar","bn","de","en","es","et","fil","fr","hi","id","ja","ko","pt","ru","sw","vi","zh"],Nt=e=>{let t=(e??"").toLowerCase().split("-")[0]??"";return Xn.find(n=>n===t)??"en"};var Qn=/^\$(survey|guide|checklist)_/,Ot=()=>({guides:{done:[],settled:[]},surveys:{settled:[]}});function Zn(e,t){try{let n=e.getItem(t);if(n===null)return Ot();let r=JSON.parse(n);return {guides:{done:r.guides?.done??[],lastShownAt:r.guides?.lastShownAt,settled:r.guides?.settled??[]},surveys:{lastShownAt:r.surveys?.lastShownAt,settled:r.surveys?.settled??[]}}}catch{return Ot()}}function _t(e,t,n){let r=n();return r?Promise.resolve(r):new Promise(o=>{let a=e.document.createElement("script");a.src=t,a.async=true,a.onload=()=>o(n()??null),a.onerror=()=>o(null),e.document.head.append(a);})}function Mt(e,t,n){let r=`pdx_engage_${n.namespace}`,o=Zn(n.storage,r),a=()=>{try{n.storage.setItem(r,JSON.stringify(o));}catch(g){n.onError(g);}},i=Nt(t.document.documentElement.lang||t.navigator.language),s=[],c=[],d=false,u=false,l=new Map,x=()=>_t(t,`${n.edgeHost}/surveys.js`,()=>t.prodantixSurveys),L$1=()=>_t(t,`${n.edgeHost}/guides.js`,()=>t.prodantixGuides),T=async g=>{if(d)return;let m=s.find(P=>B(P,o.surveys,t.location.href,Date.now(),g));if(!m)return;d=true;let E=await x();if(!E){d=false;return}let w=()=>{o.surveys.settled=[...o.surveys.settled.filter(P=>P!==z(m)),z(m)],a(),d=false;};E.showSurvey(t.document,m,i,{onDismissed:()=>{e.captureSurveyDismissed(m),w();},onSent:P=>{e.captureSurveySent(m,P),w();},onShown:()=>{o.surveys.lastShownAt=Date.now(),a(),e.captureSurveyShown(m);}});},I$1=g=>{o.guides.settled=[...o.guides.settled.filter(m=>m!==L(g)),L(g)],a();},R=async g=>{let m=c.filter(h=>!l.has(h.id)&&N(h,o.guides,t.location.href,Date.now(),g)),E$1=m.filter(h=>h.kind==="checklist"),w=u?void 0:m.find(h=>h.kind!=="checklist");if(E$1.length===0&&!w)return;w&&(u=true);let P=await L$1();if(!P){u=false;return}for(let h of E$1)l.has(h.id)||l.set(h.id,P.showChecklist(t.document,h,i,O(h,o.guides),{onDismissed:()=>{e.captureGuide(I,h),I$1(h),l.delete(h.id);},onShown:()=>e.captureGuide(E,h)}));if(!w)return;(w.kind==="tooltip"?P.showTooltip:P.showTour)(t.document,w,i,{onCompleted:()=>{e.captureGuide(H,w),I$1(w),u=false;},onDismissed:()=>{e.captureGuide(I,w),I$1(w),u=false;},onMissed:h=>e.captureGuide(G$1,w,h),onShown:()=>{o.guides.lastShownAt=Date.now(),a(),e.captureGuide(E,w);},onStep:h=>e.captureGuide(F$1,w,h)});},H$1=g=>{for(let m of c){let E=P(m,g);!E||o.guides.done.includes(M(m,E.id))||o.guides.settled.includes(L(m))||(o.guides.done=[...o.guides.done,M(m,E.id)],e.captureGuide(J,m,E.id),l.get(m.id)?.markDone(E.id),O(m,o.guides).length===m.steps.length&&(e.captureGuide(H,m),I$1(m),l.get(m.id)?.close(),l.delete(m.id)),a());}},N$1=g=>{n.surveys&&T(g).catch(n.onError),n.guides&&R(g).catch(n.onError);},O$1=e.onCapture(g=>{Qn.test(g)||(H$1(g),N$1(g));}),C=()=>N$1();t.addEventListener("popstate",C);let M$1=async()=>{let g=w=>(n.onError(w),[]),[m,E]=await Promise.all([n.surveys?e.getSurveys(t.document.documentElement.lang||t.navigator.language).catch(g):[],n.guides?e.getGuides().catch(g):[]]);s=m,c=E,N$1();};return t.document.readyState==="loading"?t.document.addEventListener("DOMContentLoaded",()=>void M$1(),{once:true}):M$1(),()=>{O$1(),t.removeEventListener("popstate",C);for(let g of l.values())g.close();l.clear();}}var Ft="_pdx",Dt="~",er=200,tr=/^\d+$/;function Ht(e,t,n,r){let o=rr(e.href);if(o===void 0||Me(o.search).some(Re))return;let a=Rt(o.hostname,n);a===void 0||a===Rt(r,n)||(o.search=`${o.search}${o.search?"&":"?"}${Ft}=${nr(t)}`,e.href=o.href);}function nr(e){return [e.anonymousId,e.sessionId,String(e.sessionStartedAt)].map(ir).join(Dt)}function Bt(e){let t=Me(e).find(Re);if(t===void 0)return;let n=or(t).split(Dt);if(n.length!==3)return;let r=te(n[0]),o=te(n[1]),a=te(n[2]);if(!(!$t(r)||!$t(o)||!sr(a)))return {anonymousId:r,sessionId:o,sessionStartedAt:Number(a)}}function qt(e,t){let n=Me(t.search),r=n.filter(a=>!Re(a));if(r.length===n.length)return;let o=r.length>0?`?${r.join("&")}`:"";e.replaceState(e.state,"",`${t.pathname}${o}${t.hash}`);}function Kt(e){if(e.location===void 0||typeof e.location.search!="string")return;let t=Bt(e.location.search);if(t===void 0)return;let n=S$1(e.storage,e.shared,e.namespace,t.anonymousId);return U(e.shared,e.namespace,{id:t.sessionId,startedAt:t.sessionStartedAt},e.now),e.history!==void 0&&qt(e.history,e.location),n}function _e(e,t,n){if(n.length===0)return ()=>{};let r=o=>{let a=ur(o.target);if(a===void 0)return;let i=ar(t);i!==void 0&&Ht(a,i,n,e.location?.hostname??"");};return e.addEventListener("click",r,true),e.addEventListener("auxclick",r,true),()=>{e.removeEventListener("click",r,true),e.removeEventListener("auxclick",r,true);}}function rr(e){try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"?t:void 0}catch{return}}function Rt(e,t){let n=t.map(r=>r.replace(/^\./,"").toLowerCase());return Ne(e).find(r=>n.includes(r))}function Me(e){return e.replace(/^\?/,"").split("&").filter(t=>t!=="")}function Re(e){let t=e.indexOf("=");return te(t===-1?e:e.slice(0,t))===Ft}function or(e){let t=e.indexOf("=");return t===-1?"":e.slice(t+1)}function ir(e){return encodeURIComponent(e).replace(/~/g,"%7E")}function te(e){try{return decodeURIComponent(e)}catch{return}}function $t(e$1){if(e$1===void 0)return false;let t=e(e$1);return t>=1&&t<=er}function sr(e){return e!==void 0&&tr.test(e)&&Number.isSafeInteger(Number(e))}function ar(e){if(e.consent?.()?.identityLink===false)return;let t=e.sessionId,n=e.sessionStartedAt;if(!(t===void 0||n===void 0))return {anonymousId:e.anonymousId,sessionId:t,sessionStartedAt:n}}function dr(e){return typeof e.tagName=="string"&&e.tagName.toUpperCase()==="A"&&typeof e.href=="string"}function ur(e){let t=typeof e=="object"?e:null;for(;t;){if(dr(t))return t;t=t.parentElement??null;}}var Vt={maskAllInputs:true,maskAllText:false},cr=new Set(["email","password","tel"]);function Gt(e){return e.replace(/\S/g,"*")}function ne(e,t,n){return lr(t)||n.maskAllInputs?Gt(e):e}function re(e,t){return t.maskAllText?Gt(e):e}function lr(e){return cr.has((e??"").toLowerCase())}var pr=5e3,oe=class{constructor(t){this.options=t;a(this,"buffer",[]);a(this,"seq",0);a(this,"maxEvents");this.maxEvents=Math.min(Math.max(1,t.maxEvents),pr);}add(t){return this.buffer.push(t),this.buffer.length>=this.maxEvents?this.flush():null}flush(){if(this.buffer.length===0)return null;let t=this.buffer;this.buffer=[];let n={distinct_id:this.options.distinctId(),events:t,masked:this.options.masked,schema_version:1,seq:this.seq,session_id:this.options.sessionId,timestamp:new Date(this.options.now()).toISOString()};return this.seq+=1,n}};var $e=1,Fe=3,mr=9,ie=class{constructor(){a(this,"next",1);}allocate(){let t=this.next;return this.next+=1,t}},fr=new Set(["NOSCRIPT","SCRIPT"]);function se(e,t,n,r){if(e.nodeType===Fe){let o=t.allocate();return r?.(e,o),{id:o,textContent:re(e.textValue??"",n),type:"text"}}if(e.nodeType===mr){let o=t.allocate();return r?.(e,o),{childNodes:Ut(e,t,n,r),id:o,type:"document"}}if(e.nodeType===$e){let o=e.tagName??"";if(fr.has(o))return null;let a=t.allocate();return r?.(e,a),{attributes:gr(e,n),childNodes:Ut(e,t,n,r),id:a,tagName:o,type:"element"}}return null}function Ut(e,t,n,r){let o=[];for(let a of e.childNodes??[]){let i=se(a,t,n,r);i&&o.push(i);}return o}function gr(e,t){let n={};for(let r of e.attributes??[])n[r.name]=r.value;return e.inputValue!==void 0&&(n.value=ne(e.inputValue,e.inputType,t)),n}async function jt(e,t){let n=`${h(t.replayHost)}/v1/replay`;return (await t.fetch(n,{body:JSON.stringify(e),headers:{authorization:`Bearer ${t.apiKey}`,"content-type":"application/json"},method:"POST"})).ok}var Wt=new Set(["INPUT","SELECT","TEXTAREA"]),ae=class{constructor(t){this.options=t;a(this,"allocator",new ie);a(this,"mirror",new Map);a(this,"chunker");a(this,"fetchImpl");a(this,"observer");a(this,"timer");a(this,"started",false);this.chunker=new oe({distinctId:t.distinctId,masked:t.mask.maskAllInputs,maxEvents:t.maxEvents,now:t.now,sessionId:t.sessionId}),this.fetchImpl=e$1(t.fetch);}start(){if(this.started)return;let t=hr(),n=t?.documentElement;!t||!n||!this.fetchImpl||(this.started=true,this.captureFullSnapshot(n),this.observeMutations(n),this.observeInteractions(t),this.timer=setInterval(()=>this.upload(this.chunker.flush()),this.options.flushIntervalMs));}stop(){this.started&&(this.started=false,this.observer?.disconnect(),this.timer&&clearInterval(this.timer),this.upload(this.chunker.flush()));}captureFullSnapshot(t){let n=se(this.adapt(t),this.allocator,this.options.mask,(r,o)=>{let a=r.ref;a&&this.mirror.set(a,o);});n&&this.push(2,{node:n});}observeMutations(t){let n=globalThis.MutationObserver;n&&(this.observer=new n(r=>{for(let o of r)this.handleMutation(o);}),this.observer.observe(t,{attributes:true,characterData:true,childList:true,subtree:true}));}handleMutation(t){if(t.type==="characterData"){let n=this.mirror.get(t.target);n!==void 0&&this.push(3,{texts:[{id:n,value:re(t.target.textContent??"",this.options.mask)}]});return}if(t.type==="attributes"&&t.attributeName){let n=this.mirror.get(t.target),r=t.target;n!==void 0&&this.push(3,{attributes:[{attributes:{[t.attributeName]:r.getAttribute(t.attributeName)??""},id:n}]});return}if(t.type==="childList"){let n=this.mirror.get(t.target);if(n===void 0)return;for(let r of Array.from(t.addedNodes)){let o=se(this.adapt(r),this.allocator,this.options.mask,(a,i)=>{let s=a.ref;s&&this.mirror.set(s,i);});o&&this.push(3,{adds:[{node:o,parentId:n}]});}for(let r of Array.from(t.removedNodes)){let o=this.mirror.get(r);o!==void 0&&(this.push(3,{removes:[{id:o,parentId:n}]}),this.mirror.delete(r));}}}observeInteractions(t){t.addEventListener("input",n=>{let r=n.target;if(!r||!Wt.has(r.tagName))return;let o=this.mirror.get(r);o!==void 0&&this.push(3,{input:{id:o,value:ne(r.value??"",r.type,this.options.mask)}});},true),t.addEventListener("scroll",n=>{let r=n.target,o=r?this.mirror.get(r):void 0;this.push(3,{scroll:{id:o??0,x:r?.scrollLeft??0,y:r?.scrollTop??0}});},true);}adapt(t){let n={childNodes:[],nodeType:t.nodeType,ref:t};if(t.nodeType===Fe)return n.textValue=t.textContent??"",n;if(t.nodeType===$e){let r=t;if(n.tagName=r.tagName,n.attributes=Array.from(r.attributes).map(o=>({name:o.name,value:o.value})),Wt.has(r.tagName)){let o=r;n.inputType=o.type,n.inputValue=o.value??"";}}return n.childNodes=Array.from(t.childNodes).map(r=>this.adapt(r)),n}push(t,n){let r=this.chunker.add({data:n,timestamp:this.options.now(),type:t});r&&this.upload(r);}upload(t){!t||!this.fetchImpl||jt(t,{apiKey:this.options.apiKey,fetch:this.fetchImpl,replayHost:this.options.replayHost}).catch(n=>this.options.onError?.(n));}};function hr(){return globalThis.document}function zt(e){let t=new ae({apiKey:e.apiKey,distinctId:e.distinctId,flushIntervalMs:e.flushIntervalMs??5e3,mask:{...Vt,...e.mask},maxEvents:e.maxEvents??200,now:e.now??(()=>Date.now()),onError:e.onError,replayHost:e.replayHost,sessionId:e.sessionId??d()});return t.start(),t}var Jt=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],Yt=["gclid","gbraid","wbraid","fbclid","msclkid","ttclid","li_fat_id","twclid"];var De=(e,t)=>{let n=new URLSearchParams(e),r={};for(let o of [...Jt,...Yt]){let a=n.get(o)?.trim();a&&(r[o]=a.slice(0,255));}return t&&(r.$session_referrer=t),r},yr=e=>{let t={};for(let n of [...Jt,...Yt])e[n]!==void 0&&(t[`$initial_${n}`]=e[n]);return t.$initial_referrer=e.$session_referrer??"$direct",t},vr=(e,t)=>{let n=e.getItem(t);if(n)try{let r=JSON.parse(n);return typeof r.sessionId=="string"&&typeof r.properties=="object"&&r.properties!==null?{properties:r.properties,sessionId:r.sessionId}:void 0}catch{return}},Xt=(e,t)=>{let n=`pdx_${t}_session_touch`,r=`pdx_${t}_first_touch`;return {forSession:(o,a,i)=>{if(o===void 0)return {};let s=vr(e,n);if(s!==void 0&&s.sessionId===o)return s.properties;let c=De(a,i);return e.setItem(n,JSON.stringify({properties:c,sessionId:o})),e.getItem(r)?c:(e.setItem(r,"1"),{...c,$set_once:yr(c)})}}};var de=e=>`prodantix-cta:${e}`,Qt=e=>{try{let t=window.localStorage.getItem(de(e));return t===null?null:Number(t)}catch{return null}},Zt=e=>{try{return window.sessionStorage.getItem(de(e))!==null}catch{return false}},en=(e,t)=>{try{window.localStorage.setItem(de(e),String(t)),window.sessionStorage.setItem(de(e),String(t));}catch{return}},tn=(e,t,n,r)=>t===null?true:e.kind==="once"?false:e.kind==="session"?!n:r-t>=e.value*864e5;var $={am:{back:"\u1270\u1218\u1208\u1235",close:"\u12DD\u130B",closed:"\u12ED\u1205 \u1245\u133D \u12A0\u1201\u1295 \u121D\u120B\u123E\u127D\u1295 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",failed:"\u1218\u120B\u12AD \u12A0\u120D\u1270\u127B\u1208\u121D\u1362 \u12A5\u1295\u12F0\u1308\u1293 \u12ED\u121E\u12AD\u1229\u1362",invalid:"\u12ED\u1205 \u1218\u120D\u1235 \u12A0\u12ED\u1240\u1260\u120D\u121D\u1362",next:"\u1240\u1323\u12ED",poweredBy:"\u1260Prodantix \u12E8\u1270\u1230\u122B",required:"\u12ED\u1205 \u12EB\u1235\u1348\u120D\u130B\u120D\u1362",sending:"\u1260\u1218\u120B\u12AD \u120B\u12ED\u2026",step:"\u12F0\u1228\u1303 {step} \u12A8{total}",submit:"\u120B\u12AD",thanks:"\u12A5\u1293\u1218\u1230\u130D\u1293\u1208\u1295\u1362"},ar:{back:"\u0631\u062C\u0648\u0639",close:"\u0625\u063A\u0644\u0627\u0642",closed:"\u0644\u0627 \u064A\u0642\u0628\u0644 \u0647\u0630\u0627 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0631\u062F\u0648\u062F\u064B\u0627 \u0627\u0644\u0622\u0646.",failed:"\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",invalid:"\u0647\u0630\u0647 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629.",next:"\u0627\u0644\u062A\u0627\u0644\u064A",poweredBy:"\u0645\u062F\u0639\u0648\u0645 \u0645\u0646 Prodantix",required:"\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628.",sending:"\u062C\u0627\u0631\u064D \u0627\u0644\u0625\u0631\u0633\u0627\u0644\u2026",step:"\u0627\u0644\u062E\u0637\u0648\u0629 {step} \u0645\u0646 {total}",submit:"\u0625\u0631\u0633\u0627\u0644",thanks:"\u0634\u0643\u0631\u064B\u0627 \u0644\u0643."},bn:{back:"\u09AA\u09C7\u099B\u09A8\u09C7",close:"\u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",closed:"\u098F\u0987 \u09AB\u09B0\u09CD\u09AE\u099F\u09BF \u098F\u0996\u09A8 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A8\u09BF\u099A\u09CD\u099B\u09C7 \u09A8\u09BE\u0964",failed:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09AF\u09BE\u09AF\u09BC\u09A8\u09BF\u0964 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8\u0964",invalid:"\u098F\u0987 \u0989\u09A4\u09CD\u09A4\u09B0\u099F\u09BF \u0997\u09CD\u09B0\u09B9\u09A3\u09AF\u09CB\u0997\u09CD\u09AF \u09A8\u09AF\u09BC\u0964",next:"\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",poweredBy:"Prodantix \u09A6\u09CD\u09AC\u09BE\u09B0\u09BE \u099A\u09BE\u09B2\u09BF\u09A4",required:"\u098F\u099F\u09BF \u0986\u09AC\u09B6\u09CD\u09AF\u0995\u0964",sending:"\u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09B9\u099A\u09CD\u099B\u09C7\u2026",step:"\u09A7\u09BE\u09AA {step} / {total}",submit:"\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",thanks:"\u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6\u0964"},de:{back:"Zur\xFCck",close:"Schlie\xDFen",closed:"Dieses Formular nimmt gerade keine Antworten an.",failed:"Senden fehlgeschlagen. Bitte erneut versuchen.",invalid:"Diese Antwort wird nicht angenommen.",next:"Weiter",poweredBy:"Bereitgestellt von Prodantix",required:"Dieses Feld ist erforderlich.",sending:"Wird gesendet\u2026",step:"Schritt {step} von {total}",submit:"Absenden",thanks:"Vielen Dank."},en:{back:"Back",close:"Close",closed:"This form is not accepting responses right now.",failed:"This could not be sent. Try again.",invalid:"This answer is not accepted.",next:"Next",poweredBy:"Powered by Prodantix",required:"This is required.",sending:"Sending\u2026",step:"Step {step} of {total}",submit:"Submit",thanks:"Thank you."},es:{back:"Atr\xE1s",close:"Cerrar",closed:"Este formulario no acepta respuestas ahora.",failed:"No se pudo enviar. Int\xE9ntalo de nuevo.",invalid:"Esta respuesta no se acepta.",next:"Siguiente",poweredBy:"Con la tecnolog\xEDa de Prodantix",required:"Este campo es obligatorio.",sending:"Enviando\u2026",step:"Paso {step} de {total}",submit:"Enviar",thanks:"Gracias."},et:{back:"Tagasi",close:"Sulge",closed:"See vorm ei v\xF5ta praegu vastuseid vastu.",failed:"Saatmine eba\xF5nnestus. Proovi uuesti.",invalid:"Seda vastust ei v\xF5eta vastu.",next:"Edasi",poweredBy:"Toetab Prodantix",required:"See on kohustuslik.",sending:"Saatmine\u2026",step:"Samm {step}/{total}",submit:"Saada",thanks:"Ait\xE4h."},fil:{back:"Bumalik",close:"Isara",closed:"Hindi tumatanggap ng sagot ang form na ito ngayon.",failed:"Hindi naipadala. Subukan ulit.",invalid:"Hindi tinatanggap ang sagot na ito.",next:"Susunod",poweredBy:"Pinapagana ng Prodantix",required:"Kailangan ito.",sending:"Ipinapadala\u2026",step:"Hakbang {step} sa {total}",submit:"Ipadala",thanks:"Salamat."},fr:{back:"Retour",close:"Fermer",closed:"Ce formulaire n\u2019accepte plus de r\xE9ponses pour le moment.",failed:"L\u2019envoi a \xE9chou\xE9. R\xE9essayez.",invalid:"Cette r\xE9ponse n\u2019est pas accept\xE9e.",next:"Suivant",poweredBy:"Propuls\xE9 par Prodantix",required:"Ce champ est obligatoire.",sending:"Envoi\u2026",step:"\xC9tape {step} sur {total}",submit:"Envoyer",thanks:"Merci."},hi:{back:"\u092A\u0940\u091B\u0947",close:"\u092C\u0902\u0926 \u0915\u0930\u0947\u0902",closed:"\u092F\u0939 \u092B\u093C\u0949\u0930\u094D\u092E \u0905\u092D\u0940 \u091C\u0935\u093E\u092C \u0928\u0939\u0940\u0902 \u0932\u0947 \u0930\u0939\u093E \u0939\u0948\u0964",failed:"\u092D\u0947\u091C\u093E \u0928\u0939\u0940\u0902 \u091C\u093E \u0938\u0915\u093E\u0964 \u092B\u093F\u0930 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964",invalid:"\u092F\u0939 \u091C\u0935\u093E\u092C \u0938\u094D\u0935\u0940\u0915\u093E\u0930 \u0928\u0939\u0940\u0902 \u0939\u0948\u0964",next:"\u0906\u0917\u0947",poweredBy:"Prodantix \u0926\u094D\u0935\u093E\u0930\u093E \u0938\u0902\u091A\u093E\u0932\u093F\u0924",required:"\u092F\u0939 \u091C\u093C\u0930\u0942\u0930\u0940 \u0939\u0948\u0964",sending:"\u092D\u0947\u091C\u093E \u091C\u093E \u0930\u0939\u093E \u0939\u0948\u2026",step:"\u091A\u0930\u0923 {step} / {total}",submit:"\u092D\u0947\u091C\u0947\u0902",thanks:"\u0927\u0928\u094D\u092F\u0935\u093E\u0926\u0964"},id:{back:"Kembali",close:"Tutup",closed:"Formulir ini sedang tidak menerima tanggapan.",failed:"Gagal mengirim. Coba lagi.",invalid:"Jawaban ini tidak diterima.",next:"Berikutnya",poweredBy:"Didukung oleh Prodantix",required:"Wajib diisi.",sending:"Mengirim\u2026",step:"Langkah {step} dari {total}",submit:"Kirim",thanks:"Terima kasih."},ja:{back:"\u623B\u308B",close:"\u9589\u3058\u308B",closed:"\u3053\u306E\u30D5\u30A9\u30FC\u30E0\u306F\u73FE\u5728\u56DE\u7B54\u3092\u53D7\u3051\u4ED8\u3051\u3066\u3044\u307E\u305B\u3093\u3002",failed:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",invalid:"\u3053\u306E\u56DE\u7B54\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3002",next:"\u6B21\u3078",poweredBy:"Powered by Prodantix",required:"\u5FC5\u9808\u9805\u76EE\u3067\u3059\u3002",sending:"\u9001\u4FE1\u4E2D\u2026",step:"\u30B9\u30C6\u30C3\u30D7 {step}/{total}",submit:"\u9001\u4FE1",thanks:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3057\u305F\u3002"},ko:{back:"\uC774\uC804",close:"\uB2EB\uAE30",closed:"\uC774 \uC591\uC2DD\uC740 \uC9C0\uAE08 \uC751\uB2F5\uC744 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",failed:"\uBCF4\uB0B4\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",invalid:"\uC774 \uB2F5\uBCC0\uC740 \uBC1B\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",next:"\uB2E4\uC74C",poweredBy:"Prodantix \uC81C\uACF5",required:"\uD544\uC218 \uD56D\uBAA9\uC785\uB2C8\uB2E4.",sending:"\uBCF4\uB0B4\uB294 \uC911\u2026",step:"{total}\uB2E8\uACC4 \uC911 {step}\uB2E8\uACC4",submit:"\uC81C\uCD9C",thanks:"\uAC10\uC0AC\uD569\uB2C8\uB2E4."},pt:{back:"Voltar",close:"Fechar",closed:"Este formul\xE1rio n\xE3o est\xE1 a aceitar respostas neste momento.",failed:"N\xE3o foi poss\xEDvel enviar. Tente novamente.",invalid:"Esta resposta n\xE3o \xE9 aceite.",next:"Seguinte",poweredBy:"Com tecnologia Prodantix",required:"Este campo \xE9 obrigat\xF3rio.",sending:"A enviar\u2026",step:"Passo {step} de {total}",submit:"Enviar",thanks:"Obrigado."},ru:{back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",closed:"\u042D\u0442\u0430 \u0444\u043E\u0440\u043C\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u044B.",failed:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",invalid:"\u042D\u0442\u043E\u0442 \u043E\u0442\u0432\u0435\u0442 \u043D\u0435 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",next:"\u0414\u0430\u043B\u0435\u0435",poweredBy:"\u0420\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 Prodantix",required:"\u042D\u0442\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435.",sending:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430\u2026",step:"\u0428\u0430\u0433 {step} \u0438\u0437 {total}",submit:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",thanks:"\u0421\u043F\u0430\u0441\u0438\u0431\u043E."},sw:{back:"Rudi",close:"Funga",closed:"Fomu hii haipokei majibu kwa sasa.",failed:"Imeshindwa kutuma. Jaribu tena.",invalid:"Jibu hili halikubaliki.",next:"Endelea",poweredBy:"Inaendeshwa na Prodantix",required:"Hii inahitajika.",sending:"Inatuma\u2026",step:"Hatua {step} kati ya {total}",submit:"Tuma",thanks:"Asante."},vi:{back:"Quay l\u1EA1i",close:"\u0110\xF3ng",closed:"Bi\u1EC3u m\u1EABu n\xE0y hi\u1EC7n kh\xF4ng nh\u1EADn c\xE2u tr\u1EA3 l\u1EDDi.",failed:"Kh\xF4ng g\u1EEDi \u0111\u01B0\u1EE3c. H\xE3y th\u1EED l\u1EA1i.",invalid:"C\xE2u tr\u1EA3 l\u1EDDi n\xE0y kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn.",next:"Ti\u1EBFp",poweredBy:"\u0110\u01B0\u1EE3c h\u1ED7 tr\u1EE3 b\u1EDFi Prodantix",required:"Tr\u01B0\u1EDDng n\xE0y l\xE0 b\u1EAFt bu\u1ED9c.",sending:"\u0110ang g\u1EEDi\u2026",step:"B\u01B0\u1EDBc {step}/{total}",submit:"G\u1EEDi",thanks:"C\u1EA3m \u01A1n b\u1EA1n."},zh:{back:"\u4E0A\u4E00\u6B65",close:"\u5173\u95ED",closed:"\u6B64\u8868\u5355\u76EE\u524D\u4E0D\u63A5\u53D7\u56DE\u590D\u3002",failed:"\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",invalid:"\u6B64\u56DE\u7B54\u65E0\u6548\u3002",next:"\u4E0B\u4E00\u6B65",poweredBy:"\u7531 Prodantix \u63D0\u4F9B\u652F\u6301",required:"\u6B64\u9879\u4E3A\u5FC5\u586B\u9879\u3002",sending:"\u6B63\u5728\u53D1\u9001\u2026",step:"\u7B2C {step} \u6B65\uFF0C\u5171 {total} \u6B65",submit:"\u63D0\u4EA4",thanks:"\u8C22\u8C22\u3002"}},ue=e=>{let t=(e??"").toLowerCase().split("-")[0]??"";return t in $?t:"en"};var v="prodantix-cta",nn="prodantix-cta-style",xr=`.${v}{font-family:system-ui,sans-serif;color:var(--pdx-text);background:var(--pdx-background);border-radius:var(--pdx-radius);box-sizing:border-box;padding:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
2
2
  .${v} *{box-sizing:border-box}
3
3
  .${v} h2{font-size:18px;line-height:1.3;margin:0;font-weight:700}
4
4
  .${v} p{margin:0;font-size:15px;line-height:1.5}
package/package.json CHANGED
@@ -63,5 +63,5 @@
63
63
  "sideEffects": false,
64
64
  "type": "module",
65
65
  "types": "./dist/index.d.ts",
66
- "version": "0.8.0-beta.699"
66
+ "version": "0.9.0-beta.777"
67
67
  }