@solomei-ai/intent 1.11.1 → 1.11.4

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.
@@ -2,5 +2,5 @@
2
2
  * © 2026 Solomei AI SRL. Proprietary and confidential.
3
3
  * DEBUG BUILD - Includes debug panel. NOT recommended for production.
4
4
  */
5
- import t from"html2canvas-pro";import e from"js-cookie";async function n(){const t=(new Intl.DateTimeFormat).resolvedOptions().timeZone,e=(t=>{const e=t<=0?"+":"-",n=Math.abs(t);return`${e}${String(Math.floor(n/60)).padStart(2,"0")}:${String(n%60).padStart(2,"0")}`})((new Date).getTimezoneOffset()),n=[];n.push(`Language: ${navigator.language}`),navigator.languages?.length&&n.push(`Languages: ${navigator.languages.join(", ")}`),n.push(`User agent: ${navigator.userAgent}`);const o=(()=>{if(!("userAgentData"in(t=navigator))||void 0===t.userAgentData)return;var t;const e=navigator.userAgentData,n=Array.isArray(e.brands)?e.brands.map(t=>`${t.brand} ${t.version}`).join(", "):void 0,o=e.platform?`${e.platform}${e.mobile?" (mobile)":""}`:void 0;return[n&&`UA brands: ${n}`,o&&`Platform: ${o}`].filter(Boolean).join(" | ")||void 0})();o&&n.push(o),n.push(`Timezone: ${t} (UTC${e})`),n.push(`Local time: ${(new Date).toString()}`);const i=window.devicePixelRatio||1;n.push(`Screen: ${screen.width}x${screen.height} @${i}x (avail ${screen.availWidth}x${screen.availHeight}, ${screen.colorDepth}-bit)`);const r=screen.orientation&&"type"in screen.orientation?screen.orientation.type:void 0;n.push(`Viewport: ${window.innerWidth}x${window.innerHeight}${r?`, orientation ${r}`:""}`),n.push(`CPU: ${navigator.hardwareConcurrency} cores`);const a=await async function(){const t=[];let e="browser API";if("connection"in(n=navigator)&&void 0!==n.connection){const e=navigator.connection;e?.effectiveType&&t.push(e.effectiveType),"number"==typeof e?.downlink&&t.push(`~${e.downlink} Mbps`),"number"==typeof e?.rtt&&t.push(`${e.rtt} ms`),e?.saveData&&t.push("saveData")}else{const n=((t=20)=>{const e=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType),n=e?Math.max(0,e.responseStart-e.requestStart):void 0,o=performance.getEntriesByType("resource").filter(t=>"resource"===t.entryType);let i=0,r=0;for(const e of o.slice(0,Math.max(0,t))){const t=e.encodedBodySize>0?e.encodedBodySize:e.transferSize>0?e.transferSize:0,n=e.duration;t>0&&n>0&&Number.isFinite(n)&&(i+=t,r+=n)}const a=r>0?8*i/r:void 0;return{downlinkMbps:"number"==typeof a?a/1e3:void 0,rttMs:n}})();"number"==typeof n.downlinkMbps&&t.push(`~${n.downlinkMbps.toFixed(1)} Mbps`),"number"==typeof n.rttMs&&t.push(`TTFB ~${Math.round(n.rttMs)} ms`),e="inferred"}var n;const o=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType);if(o){const e=Math.max(0,o.responseStart-o.requestStart);t.some(t=>t.startsWith("TTFB"))||t.push(`TTFB ~${Math.round(e)} ms`)}return t.length?`Network: ${t.join(", ")} (${e})`:void 0}();a&&n.push(a),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(pointer: coarse)").matches,e="function"==typeof matchMedia&&matchMedia("(pointer: fine)").matches;return`Pointer/Touch: ${t?"coarse":e?"fine":"unknown"}, maxTouchPoints ${navigator.maxTouchPoints}`})());const s=await(async()=>{var t;if("getBattery"in(t=navigator)&&"function"==typeof t.getBattery)try{const t=await navigator.getBattery(),e=Math.round(100*t.level);return`Battery: ${[`${Number.isFinite(e)?e:0}%`,t.charging?"charging":"not charging"].join(", ")}`}catch{}})();s&&n.push(s),n.push(`CookiesEnabled: ${navigator.cookieEnabled?"yes":"no"}; DNT: ${navigator.doNotTrack??"n/a"}`),n.push("Online: "+(navigator.onLine?"yes":"no")),document.referrer&&n.push(`Referrer: ${document.referrer}`),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)").matches;return`PWA: ${Boolean(navigator.serviceWorker?.controller)?"SW-controlled":"no SW"}, display-mode standalone: ${t?"yes":"no"}`})());const d=await async function(t=400){if("DeviceOrientationEvent"in window&&window.isSecureContext)return new Promise(e=>{let n=!1;const o=t=>{const i="number"==typeof t.beta?t.beta:void 0,r="number"==typeof t.gamma?t.gamma:void 0;if(void 0===i||void 0===r)return;if(n)return;n=!0,window.removeEventListener("deviceorientation",o);const a=((t,e)=>{const n=Math.abs(t),o=Math.abs(e);return n<15&&o<15?"flat":n>=60?"upright":"reclined"})(i,r);e(`Tilt: ${a} (β ${Math.round(i)}°, γ ${Math.round(r)}°)`)};window.setTimeout(()=>{n||(n=!0,window.removeEventListener("deviceorientation",o),e(void 0))},t),window.addEventListener("deviceorientation",o,{passive:!0})})}();d&&n.push(d);const c="enabled"===localStorage.getItem("intent:geo");return n.push(c?"Device geolocation: enabled":"Device geolocation: disabled"),n.join(" | ")}const o="data-intent-redact",i=new Set(["name","given-name","additional-name","family-name","nickname","username","email","tel","organization","organization-title","street-address","address-line1","address-line2","address-line3","address-level1","address-level2","address-level3","address-level4","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","bday","bday-day","bday-month","bday-year","sex","webauthn"]);function r(t){const e=(t=>{const e=(t.getAttribute?.("data-intent-redact-label")??"").trim();if(e)return e;const n=t.getAttribute?.("autocomplete")||"",i=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?n.toLowerCase().trim().split(/\s+/).filter(Boolean):[];if(t instanceof HTMLInputElement&&"password"===t.type)return"Password";for(const t of i){const e=a.get(t);if(e)return e}const r=t.getAttribute?.(o)?.toLowerCase();return"mask"===r?"Redacted":"Sensitive"})(t);return`<${e}>`}const a=new Map([["name","Name"],["given-name","First name"],["family-name","Last name"],["additional-name","Middle name"],["nickname","Nickname"],["username","Username"],["email","Email"],["tel","Phone"],["street-address","Street address"],["address-line1","Address line 1"],["address-line2","Address line 2"],["address-line3","Address line 3"],["address-level1","State/Province"],["address-level2","City"],["address-level3","District"],["address-level4","Neighborhood"],["postal-code","Postal code"],["country","Country code"],["country-name","Country name"],["cc-name","Cardholder name"],["cc-given-name","Cardholder first name"],["cc-family-name","Cardholder last name"],["cc-additional-name","Cardholder middle name"],["cc-number","Card number"],["cc-exp","Expiration date"],["cc-exp-month","Expiration month"],["cc-exp-year","Expiration year"],["cc-csc","Security code"],["cc-type","Card type"],["bday","Birthday"],["bday-day","Birth day"],["bday-month","Birth month"],["bday-year","Birth year"],["organization","Organization"],["organization-title","Job title"],["sex","Sex"],["webauthn","WebAuthn"]]);function s(t){return t.hasAttribute("data-html2canvas-ignore")||"ignore"===t.getAttribute(o)?.toLowerCase()}function d(t){const e=t.getAttribute(o);return""===e||"mask"===e?.toLowerCase()}function c(t){let e=t;for(;e&&e!==document.body;){if(s(e))return!0;e=e.parentElement??void 0}return!1}function l(t){return!(s(t)||!d(t)&&!(t=>{if(t instanceof HTMLInputElement){if("password"===t.type)return!0;if("search"===t.type)return!1;const e=t.getAttribute("role");if("searchbox"===e?.toLowerCase())return!1;if((t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>i.has(t)))return!0}return!!(t instanceof HTMLTextAreaElement&&(t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>i.has(t)))})(t))}function u(t){c(t)||(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?l(t)&&(t instanceof HTMLInputElement&&["date","datetime-local","month","time","week"].includes(t.type)&&(t.type="text"),t.value=r(t)):t.hasAttribute(o)&&d(t)&&(t.textContent=r(t)))}function m(t){t instanceof Element&&u(t);const e=t.querySelectorAll("input, textarea");for(const t of e)u(t);const n=t.querySelectorAll(`[${o}]`);for(const t of n)u(t)}const p="intent:consent",g="intent:geo",f="intent:debug-panel",v="intent:data-client-id",y="intent:data-base-url",b="https://intent.callimacus.ai";let h="";function w(){return h}function x(t){return e.get(t)}function E(t,n){const o=localStorage.getItem("intent:data-sid-max-age"),i=null===o?void 0:Number(o),r="number"==typeof n&&Number.isFinite(n)?n:"number"==typeof i&&Number.isFinite(i)?i:2592e3,a="https:"===window.location.protocol;e.set("intent_sid",t,{expires:r/86400,path:"/",sameSite:"Lax",...a&&{secure:!0}})}function S(){e.remove("intent_sid",{path:"/"})}function T(){const t=x("intent_sid");if("granted"!==localStorage.getItem(p))return t&&S(),void(h="");t?h=t:(h=crypto.randomUUID(),E(h))}function L(...t){try{"undefined"!=typeof localStorage&&"enabled"===localStorage.getItem("intent:debug")&&console.log(...t)}catch{}}function k(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}let $,M=!1,C=!1,I=!1,A=!1,D=!1;function z(){return"enabled"===localStorage.getItem(g)}function N(){M=!1,I=!1,D=!1}function B(){return!M&&z()&&!A&&D}let H,P=[],F=!1;function O(){try{return"enabled"===localStorage.getItem(f)}catch{return!1}}function U(t){try{localStorage.setItem(f,t?"enabled":"disabled"),t?_():$&&($.style.display="none")}catch{}}function j(){if(!$)return;const t=$.querySelector("#intent-debug-events"),e=$.querySelector("#intent-debug-count");if(!t||!e)return;if(0===P.length)return t.innerHTML='\n\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t</div>\n\t\t',void(e.textContent="0 events");const n=[...P].reverse();t.innerHTML=n.map(t=>(t=>{const e=new Date(t.timestamp).toLocaleTimeString(),n=t.img&&t.img.length>0,o=n?Math.round(.75*t.img.length/1024):0,i=k(t.event),r=k(JSON.stringify(t.props,null,2)),a=k(t.html),s=k(JSON.stringify(t.bbox,null,2));return`\n\t\t<div style="\n\t\t\tbackground: var(--solomei-color-card, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tpadding: 10px;\n\t\t\tmargin-bottom: 8px;\n\t\t">\n\t\t\t<div style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\tpadding-bottom: 8px;\n\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t">${i}</div>\n\t\t\t\t<div style="\n\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t">${e}</div>\n\t\t\t</div>\n\t\t\t${n?`\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="${t.img}" \n\t\t\t\t\t\tclass="intent-debug-screenshot" \n\t\t\t\t\t\tstyle="\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t" \n\t\t\t\t\t\ttitle="Click to view fullscreen"/>\n\t\t\t\t\t<div style="\n\t\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\tmargin-top: 4px;\n\t\t\t\t\t">Screenshot (~${o} KB)</div>\n\t\t\t\t</div>\n\t\t\t`:""}\n\t\t\t<details style="margin-top: 8px;">\n\t\t\t\t<summary style="\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\tuser-select: none;\n\t\t\t\t">View Details</summary>\n\t\t\t\t<div style="\n\t\t\t\t\tmargin-top: 8px;\n\t\t\t\t\tpadding: 8px;\n\t\t\t\t\tbackground: var(--solomei-color-secondary, #fafaf9);\n\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t">\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Properties:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">${r}</pre>\n\t\t\t\t\t${t.html?`\n\t\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>HTML:</strong></div>\n\t\t\t\t\t\t<pre style="\n\t\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t">${a}</pre>\n\t\t\t\t\t`:""}\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Bounding Box:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">${s}</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t`})(t)).join(""),e.textContent=`${P.length} event${1===P.length?"":"s"}`}function _(){if($)return void($.style.display="flex");const t=document.createElement("div");t.innerHTML='\n\t\t<div id="intent-debug-panel" data-intent-redact="ignore" style="\n\t\t\tposition: fixed;\n\t\t\ttop: 20px;\n\t\t\tright: 20px;\n\t\t\twidth: 400px;\n\t\t\tmax-height: 80vh;\n\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t\t\tz-index: 2147483647;\n\t\t\tfont-family: var(--solomei-font-primary, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif);\n\t\t\tfont-size: var(--solomei-font-size-base, 15px);\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t">\n\t\t\t<div id="intent-debug-header" style="\n\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\tpadding: 12px 15px;\n\t\t\t\tborder-radius: var(--solomei-radius-lg, 10px) var(--solomei-radius-lg, 10px) 0 0;\n\t\t\t\tcursor: move;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tuser-select: none;\n\t\t\t">\n\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); font-size: 14px;">Intent SDK Debug</div>\n\t\t\t\t<div style="display: flex; gap: 8px;">\n\t\t\t\t\t<button id="intent-debug-minimize" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">−</button>\n\t\t\t\t\t<button id="intent-debug-close" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">×</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="intent-debug-content" style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\toverflow: hidden;\n\t\t\t\tflex: 1;\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tpadding: 12px 15px;\n\t\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t">\n\t\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); color: var(--solomei-color-foreground, #212121); margin-bottom: 8px;">Event Log</div>\n\t\t\t\t\t<div style="display: flex; gap: 8px; align-items: center;">\n\t\t\t\t\t\t<button id="intent-debug-clear" style="\n\t\t\t\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\t\tborder: none;\n\t\t\t\t\t\t\tpadding: 6px 12px;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\t\t">Clear</button>\n\t\t\t\t\t\t<span id="intent-debug-count" style="color: var(--solomei-color-text-secondary, #979797); font-size: 12px;">0 events</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id="intent-debug-events" style="\n\t\t\t\t\tflex: 1;\n\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\tpadding: 10px;\n\t\t\t\t">\n\t\t\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t',$=t.firstElementChild,document.body.appendChild($);const e=$.querySelector("#intent-debug-close"),n=$.querySelector("#intent-debug-minimize"),o=$.querySelector("#intent-debug-clear");e?.addEventListener("click",()=>{U(!1)}),n?.addEventListener("click",()=>{(()=>{if(!$)return;const t=$.querySelector("#intent-debug-content"),e=$.querySelector("#intent-debug-minimize");t&&e&&(F=!F,F?(t.style.display="none",$.style.width="200px",e.textContent="+"):(t.style.display="flex",$.style.width="400px",e.textContent="−"))})()}),o?.addEventListener("click",()=>{P=[],j()}),(()=>{if(!$)return;const t=$.querySelector("#intent-debug-header");if(!t)return;let e=!1,n=0,o=0,i=0,r=0;t.addEventListener("mousedown",t=>{if("BUTTON"===t.target.tagName)return;e=!0;const n=$.getBoundingClientRect();i=t.clientX-n.left,r=t.clientY-n.top}),document.addEventListener("mousemove",t=>{if(!e||!$)return;t.preventDefault(),n=t.clientX-i,o=t.clientY-r;const a=window.innerWidth-$.offsetWidth,s=window.innerHeight-$.offsetHeight;n=Math.max(0,Math.min(n,a)),o=Math.max(0,Math.min(o,s)),$.style.left=`${n}px`,$.style.top=`${o}px`,$.style.right="auto"}),document.addEventListener("mouseup",()=>{e=!1})})(),$.addEventListener("click",t=>{const e=t.target;if(e.classList.contains("intent-debug-screenshot")){const t=e;t.src&&t.src.startsWith("data:image/")&&(t=>{const e=document.createElement("div");e.id="intent-debug-fullscreen-modal",e.setAttribute("data-intent-redact","ignore"),e.style.cssText="\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(0, 0, 0, 0.95);\n\t\tz-index: 2147483646;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcursor: zoom-out;\n\t";const n=document.createElement("div");n.style.cssText="\n\t\tmax-width: 95%;\n\t\tmax-height: 95%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t";const o=document.createElement("img");o.src=t,o.style.cssText="\n\t\tmax-width: 100%;\n\t\tmax-height: calc(95vh - 60px);\n\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.2));\n\t";const i=document.createElement("div");i.style.cssText="\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t";const r=document.createElement("button");r.textContent="✕ Close",r.style.cssText="\n\t\tpadding: 12px 24px;\n\t\tbackground: var(--solomei-color-primary-button-background, #262626);\n\t\tcolor: var(--solomei-color-primary-button-color, white);\n\t\tborder: none;\n\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\tfont-size: 14px;\n\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\tcursor: pointer;\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t";const a=document.createElement("div");a.textContent="Click anywhere or press ESC to close",a.style.cssText="\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t",i.appendChild(r),i.appendChild(a),n.appendChild(o),n.appendChild(i),e.appendChild(n);const s=()=>{e.remove()};e.addEventListener("click",s),r.addEventListener("click",t=>{t.stopPropagation(),s()}),o.addEventListener("click",t=>{t.stopPropagation()});const d=t=>{"Escape"===t.key&&(s(),document.removeEventListener("keydown",d))};document.addEventListener("keydown",d),document.body.appendChild(e)})(t.src)}}),j()}"undefined"!=typeof window&&O()&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{_()}):_());let q,W=0,R=!1;const X="__intent__sdk__initialized__",Y=["button","a[href]","a",'input[type="submit"]','input[type="button"]','[role="button"]','[role="link"]',"[onclick]"].join(",");function J(){return T(),"granted"===localStorage.getItem(p)&&Boolean(w())&&Boolean(localStorage.getItem(v)?.trim().length)}function K(){return!J()||C}async function V(e){return q&&await q,q=(async()=>{try{const n=performance.now(),o=performance.now(),i=(t=>{if(s(t))return"";const e=t.cloneNode(!1);return Array.from(t.attributes).forEach(({name:t,value:n})=>{e.setAttribute(t,n)}),t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=t.value):e.textContent=t.textContent,m(e),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.setAttribute("value",e.value),e.outerHTML})(e);L(`[Timing] serialize: ${(performance.now()-o).toFixed(2)}ms`);const r=e.getBoundingClientRect(),a=performance.now(),d={left:window.scrollX,top:window.scrollY,right:window.scrollX+window.innerWidth,bottom:window.scrollY+window.innerHeight},l=await t(document.body,{useCORS:!0,x:window.scrollX,y:window.scrollY,width:window.innerWidth,height:window.innerHeight,scale:.6,logging:!1,onclone(t,e){m(t)},ignoreElements(t){if(!(t instanceof Element))return!1;if(c(t))return!0;const e=t.getBoundingClientRect(),n=e.left+window.scrollX,o=e.top+window.scrollY,i=e.right+window.scrollX,r=e.bottom+window.scrollY,a=100;if(i<d.left-a||n>d.right+a||r<d.top-a||o>d.bottom+a){const e=window.getComputedStyle(t),{position:a}=e;if("fixed"===a||"absolute"===a){const t=500;return i<d.left-t||n>d.right+t||r<d.top-t||o>d.bottom+t}return!0}return!1}});L(`[Timing] html2canvas-pro: ${(performance.now()-a).toFixed(2)}ms`);const u=performance.now(),p=l.toDataURL("image/jpeg",.8);L(`[Timing] jpeg-encoding: ${(performance.now()-u).toFixed(2)}ms`);return L(`[Timing] capture-total: ${(performance.now()-n).toFixed(2)}ms`),{html:i,bbox:{x:r.x,y:r.y,w:r.width,h:r.height},img:p,fullCanvas:l}}finally{q=void 0}})(),q}function Z(){const t=localStorage.getItem(v),e={"Content-Type":"application/json"};t&&(e["x-sl-access-token"]=t);const n=w();return n&&(e["x-intent-sid"]=n),e}async function G(t,e,n,o){if(!J())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=l(n)?r(n):n.value);let a="",s={x:0,y:0,w:0,h:0},d="";const c=!("scroll"===t||"page-blur"===t||"page-focus"===t),u=Date.now();let m=o;c&&(("click"===t||"input-submit"===t||"pageview"===t)&&!m||!m&&u-W>=0)&&(m=await V(n),W=u),m&&(a=m.html,s=m.bbox,d=m.img);const p="page-blur"===t||"page-focus"===t||"pageview"===t,g={ts:Date.now(),event:t,props:i,html:p?"":a,bbox:s,img:d};(function(t,e,n,o,i){((t,e,n,o,i)=>{if(!O())return;const r={id:"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,timestamp:Date.now(),event:t,props:e,html:n,bbox:o,img:i};P.push(r),P.length>50&&P.shift(),j()})(t,e,n,o,i)})(t,i,p?"":a,s,d),await async function(t){const e=`${localStorage.getItem(y)??b}/events`,n=localStorage.getItem(v)??void 0,o=JSON.stringify({...t,clientId:n});try{if((await fetch(e,{method:"POST",headers:Z(),body:o,keepalive:!0,credentials:"omit"})).ok)return}catch{}try{await(async t=>{const e=`${localStorage.getItem(y)??b}/p.gif`;if(!(await fetch(e,{method:"POST",headers:Z(),body:JSON.stringify(t),keepalive:!0,credentials:"omit",cache:"no-store"})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(g)}async function Q(t={}){if(!J())return;const e="number"==typeof t.lat&&"number"==typeof t.lon;if(e&&M)return;if(!e&&R)return;const o=localStorage.getItem("intent:data-ip"),i={context:await n()};o&&(i.ip=o);for(const[e,n]of Object.entries(t))i[e]=n;await G("context",i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),e||(R=!0)}async function tt(){await(async(t,e)=>{const n=e(),o=z();if(!n||!o||M)return;if(!("geolocation"in navigator))return;if(A)return;A=!0,C=!0;const i={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator.permissions?.query({name:"geolocation"}))}catch(t){}await new Promise(t=>{let e=!1;const n=async(n,o,i)=>{e||(e=!0,Number.isFinite(n)&&Number.isFinite(o)&&(await(async(t,e,n)=>{await Q({lat:t,lon:e,source:"device",...n})})(n,o,i),M=!0),A=!1,C=!1,D=!0,t())};navigator.geolocation.getCurrentPosition(t=>{const e=t.coords;n(e.latitude,e.longitude,{accuracy:e.accuracy,altitude:"number"==typeof e.altitude?e.altitude:void 0,altitudeAccuracy:"number"==typeof e.altitudeAccuracy?e.altitudeAccuracy:void 0,heading:"number"==typeof e.heading?e.heading:void 0,speed:"number"==typeof e.speed?e.speed:void 0,timestamp:t.timestamp,visibility:document.visibilityState,focused:document.hasFocus()})},t=>{const e=t?.code,o={error:{code:e,name:1===e?"PERMISSION_DENIED":2===e?"POSITION_UNAVAILABLE":3===e?"TIMEOUT":"UNKNOWN",message:t?.message??""},online:navigator.onLine,visibility:document.visibilityState,focused:document.hasFocus(),secure:window.isSecureContext,proto:location.protocol,host:location.hostname};n(void 0,void 0,o)},i)})})(0,J)}function et(){(t=>{if(I||!z()||M)return;I=!0;const e=()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),t()};window.addEventListener("pointerdown",e,!0),window.addEventListener("keydown",e,!0)})(tt)}T();let nt=!document.hidden&&document.hasFocus(),ot=document.hasFocus();function it(){if(K())return;const t=!document.hidden&&document.hasFocus();t&&(ot=!0),ot||t?t!==nt&&(nt=t,G(t?"page-focus":"page-blur",{},document.body)):nt=t}function rt(){(()=>{const t=globalThis;return!t[X]&&(Object.defineProperty(t,X,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener("load",()=>{J()&&(Q(),(window.isSecureContext||"localhost"===location.hostname)&&(z()&&et(),window.addEventListener("focus",()=>{B()&&tt()}),document.addEventListener("visibilitychange",()=>{!document.hidden&&B()&&tt()})))}),window.addEventListener("storage",t=>{t.key===p&&("granted"===localStorage.getItem(p)?(R=!1,Q(),z()&&et()):(R=!1,N())),t.key===g&&(z()?et():N())}),window.addEventListener("load",()=>{J()&&G("pageview",{url:window.location.href,title:document.title,ref:document.referrer},document.body)}),addEventListener("pointerdown",(()=>{let t=0;return(...e)=>{const n=Date.now();n-t>=50&&(t=n,(t=>{if(K())return;const e=t.target instanceof Element?t.target.closest(Y):null;e instanceof HTMLElement&&(H=V(e))})(...e))}})(),{capture:!0,passive:!0}),addEventListener("click",async t=>{if(K())return;if(!(t.target instanceof Element))return;const e=t.target.closest(Y);if(!(e instanceof HTMLElement))return;const n=(o=e).getAttribute("aria-label")??o.title??o.textContent?.trim()??"<no visible label>";var o;(async()=>{const t=H?await H:void 0;H=void 0,G("click",{tag:e.tagName,label:n},e,t)})()},!0),addEventListener("keydown",t=>{if(!K()&&"Enter"===t.key){const e=t.target;if(e instanceof HTMLElement&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName)){const t=e instanceof HTMLInputElement?e.name:void 0;G("input-submit",{tag:e.tagName,name:t??(e.id||void 0)},e)}}},{capture:!0}),["focus","blur"].forEach(t=>{window.addEventListener(t,it)}),document.addEventListener("visibilitychange",it),window.addEventListener("scroll",(()=>{let t;return(...e)=>{void 0!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,(()=>{K()||G("scroll",{scrollX:window.scrollX,scrollY:window.scrollY},document.body)})(...e)},250)}})(),{passive:!0}),window.intent??={send(t,e){J()&&G(t,e,document.body)}})}function at(t,e){try{if(void 0===e)return;localStorage.setItem(t,e?"intent:consent"===t?"granted":"enabled":"disabled")}catch{}}function st(t){at("intent:consent",t)}function dt(t){at("intent:geo",t)}function ct(t){at("intent:debug",t)}function lt(t){t&&"undefined"!=typeof console&&console.warn&&console.warn("[Intent SDK] ⚠️ Debug panel is enabled. This feature is NOT recommended for production use. It exposes internal SDK behavior and should only be used during development."),(t=>{U(t)})(t)}function ut(t={}){localStorage.setItem("intent:data-client-id",t.clientId??""),localStorage.setItem("intent:data-ip",t.ip??""),localStorage.setItem("intent:data-base-url",t.baseUrl??"https://intent.callimacus.ai"),"number"==typeof t.sidMaxAgeSeconds&&localStorage.setItem("intent:data-sid-max-age",String(t.sidMaxAgeSeconds)),at("intent:consent",t.consent),at("intent:geo",t.geo),at("intent:debug",t.debug),void 0!==t.debugPanel&&lt(t.debugPanel),t.consent&&(x("intent_sid")||E("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,t.sidMaxAgeSeconds)),rt()}function mt(){return x("intent_sid")}function pt(){T()}function gt(){S()}function ft(t){Number.isFinite(t)&&localStorage.setItem("intent:data-sid-max-age",String(t));const e=x("intent_sid");e&&E(e,t)}export{gt as clearIntentSessionId,pt as ensureIntentSessionId,mt as getIntentSessionId,ut as initIntent,st as setConsent,ct as setDebug,lt as setDebugPanel,at as setFlag,dt as setGeo,ft as setIntentSessionMaxAge};
5
+ import t from"html2canvas-pro";import e from"js-cookie";async function n(){const t=(new Intl.DateTimeFormat).resolvedOptions().timeZone,e=(t=>{const e=t<=0?"+":"-",n=Math.abs(t);return`${e}${String(Math.floor(n/60)).padStart(2,"0")}:${String(n%60).padStart(2,"0")}`})((new Date).getTimezoneOffset()),n=[];n.push(`Language: ${navigator.language}`),navigator.languages?.length&&n.push(`Languages: ${navigator.languages.join(", ")}`),n.push(`User agent: ${navigator.userAgent}`);const o=(()=>{if(!("userAgentData"in(t=navigator))||void 0===t.userAgentData)return;var t;const e=navigator.userAgentData,n=Array.isArray(e.brands)?e.brands.map(t=>`${t.brand} ${t.version}`).join(", "):void 0,o=e.platform?`${e.platform}${e.mobile?" (mobile)":""}`:void 0;return[n&&`UA brands: ${n}`,o&&`Platform: ${o}`].filter(Boolean).join(" | ")||void 0})();o&&n.push(o),n.push(`Timezone: ${t} (UTC${e})`),n.push(`Local time: ${(new Date).toString()}`);const i=window.devicePixelRatio||1;n.push(`Screen: ${screen.width}x${screen.height} @${i}x (avail ${screen.availWidth}x${screen.availHeight}, ${screen.colorDepth}-bit)`);const r=screen.orientation&&"type"in screen.orientation?screen.orientation.type:void 0;n.push(`Viewport: ${window.innerWidth}x${window.innerHeight}${r?`, orientation ${r}`:""}`),n.push(`CPU: ${navigator.hardwareConcurrency} cores`);const a=await async function(){const t=[];let e="browser API";if("connection"in(n=navigator)&&void 0!==n.connection){const e=navigator.connection;e?.effectiveType&&t.push(e.effectiveType),"number"==typeof e?.downlink&&t.push(`~${e.downlink} Mbps`),"number"==typeof e?.rtt&&t.push(`${e.rtt} ms`),e?.saveData&&t.push("saveData")}else{const n=((t=20)=>{const e=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType),n=e?Math.max(0,e.responseStart-e.requestStart):void 0,o=performance.getEntriesByType("resource").filter(t=>"resource"===t.entryType);let i=0,r=0;for(const e of o.slice(0,Math.max(0,t))){const t=e.encodedBodySize>0?e.encodedBodySize:e.transferSize>0?e.transferSize:0,n=e.duration;t>0&&n>0&&Number.isFinite(n)&&(i+=t,r+=n)}const a=r>0?8*i/r:void 0;return{downlinkMbps:"number"==typeof a?a/1e3:void 0,rttMs:n}})();"number"==typeof n.downlinkMbps&&t.push(`~${n.downlinkMbps.toFixed(1)} Mbps`),"number"==typeof n.rttMs&&t.push(`TTFB ~${Math.round(n.rttMs)} ms`),e="inferred"}var n;const o=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType);if(o){const e=Math.max(0,o.responseStart-o.requestStart);t.some(t=>t.startsWith("TTFB"))||t.push(`TTFB ~${Math.round(e)} ms`)}return t.length?`Network: ${t.join(", ")} (${e})`:void 0}();a&&n.push(a),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(pointer: coarse)").matches,e="function"==typeof matchMedia&&matchMedia("(pointer: fine)").matches;return`Pointer/Touch: ${t?"coarse":e?"fine":"unknown"}, maxTouchPoints ${navigator.maxTouchPoints}`})());const s=await(async()=>{var t;if("getBattery"in(t=navigator)&&"function"==typeof t.getBattery)try{const t=await navigator.getBattery(),e=Math.round(100*t.level);return`Battery: ${[`${Number.isFinite(e)?e:0}%`,t.charging?"charging":"not charging"].join(", ")}`}catch{}})();s&&n.push(s),n.push(`CookiesEnabled: ${navigator.cookieEnabled?"yes":"no"}; DNT: ${navigator.doNotTrack??"n/a"}`),n.push("Online: "+(navigator.onLine?"yes":"no")),document.referrer&&n.push(`Referrer: ${document.referrer}`),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)").matches;return`PWA: ${Boolean(navigator.serviceWorker?.controller)?"SW-controlled":"no SW"}, display-mode standalone: ${t?"yes":"no"}`})());const d=await async function(t=400){if("DeviceOrientationEvent"in window&&window.isSecureContext)return new Promise(e=>{let n=!1;const o=t=>{const i="number"==typeof t.beta?t.beta:void 0,r="number"==typeof t.gamma?t.gamma:void 0;if(void 0===i||void 0===r)return;if(n)return;n=!0,window.removeEventListener("deviceorientation",o);const a=((t,e)=>{const n=Math.abs(t),o=Math.abs(e);return n<15&&o<15?"flat":n>=60?"upright":"reclined"})(i,r);e(`Tilt: ${a} (β ${Math.round(i)}°, γ ${Math.round(r)}°)`)};window.setTimeout(()=>{n||(n=!0,window.removeEventListener("deviceorientation",o),e(void 0))},t),window.addEventListener("deviceorientation",o,{passive:!0})})}();d&&n.push(d);const c="enabled"===localStorage.getItem("intent:geo");return n.push(c?"Device geolocation: enabled":"Device geolocation: disabled"),n.join(" | ")}const o="intent:consent",i="intent:geo",r="intent:debug-panel",a="intent:data-client-id",s="intent:data-base-url",d="https://intent.callimacus.ai";function c(...t){try{"undefined"!=typeof localStorage&&"enabled"===localStorage.getItem("intent:debug")&&console.log(...t)}catch{}}const l=Object.freeze(new Set(["textbox","combobox","searchbox"])),u=["input","textarea","select","[contenteditable]",...[...l].map(t=>`[role="${t}"]`)].join(", ");function m(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement}function p(t){if(m(t))return!0;if(t instanceof HTMLElement&&t.isContentEditable)return!0;const e=t.getAttribute("role")?.toLowerCase();return!(!e||!l.has(e))}function g(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}const f="data-intent-redact",v=new Set(["name","given-name","additional-name","family-name","nickname","username","email","tel","organization","organization-title","street-address","address-line1","address-line2","address-line3","address-level1","address-level2","address-level3","address-level4","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","bday","bday-day","bday-month","bday-year","sex","webauthn"]);function b(t){const e=(t=>{const e=(t.getAttribute?.("data-intent-redact-label")??"").trim();if(e)return e;const n=t.getAttribute?.("autocomplete")||"",o=p(t)?n.toLowerCase().trim().split(/\s+/).filter(Boolean):[];if(t instanceof HTMLInputElement&&"password"===t.type)return"Password";for(const t of o){const e=y.get(t);if(e)return e}const i=t.getAttribute?.(f)?.toLowerCase();return"mask"===i?"Redacted":"Sensitive"})(t);return`<${e}>`}const y=new Map([["name","Name"],["given-name","First name"],["family-name","Last name"],["additional-name","Middle name"],["nickname","Nickname"],["username","Username"],["email","Email"],["tel","Phone"],["street-address","Street address"],["address-line1","Address line 1"],["address-line2","Address line 2"],["address-line3","Address line 3"],["address-level1","State/Province"],["address-level2","City"],["address-level3","District"],["address-level4","Neighborhood"],["postal-code","Postal code"],["country","Country code"],["country-name","Country name"],["cc-name","Cardholder name"],["cc-given-name","Cardholder first name"],["cc-family-name","Cardholder last name"],["cc-additional-name","Cardholder middle name"],["cc-number","Card number"],["cc-exp","Expiration date"],["cc-exp-month","Expiration month"],["cc-exp-year","Expiration year"],["cc-csc","Security code"],["cc-type","Card type"],["bday","Birthday"],["bday-day","Birth day"],["bday-month","Birth month"],["bday-year","Birth year"],["organization","Organization"],["organization-title","Job title"],["sex","Sex"],["webauthn","WebAuthn"]]);function h(t){return t.hasAttribute("data-html2canvas-ignore")||"ignore"===t.getAttribute(f)?.toLowerCase()}function w(t){const e=t.getAttribute(f);return""===e||"mask"===e?.toLowerCase()}function x(t){let e=t;for(;e&&e!==document.body;){if(h(e))return!0;e=e.parentElement??void 0}return!1}function S(t){return!(h(t)||!w(t)&&!(t=>{if(t instanceof HTMLInputElement){if("password"===t.type)return!0;if("search"===t.type)return!1;const e=t.getAttribute("role");if("searchbox"===e?.toLowerCase())return!1;if((t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>v.has(t)))return!0}if(t instanceof HTMLTextAreaElement&&(t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>v.has(t)))return!0;if(t instanceof HTMLSelectElement&&(t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>v.has(t)))return!0;if(p(t)&&!m(t)){const e=t.getAttribute("role")?.toLowerCase();if("searchbox"===e)return!1;if((t.getAttribute("autocomplete")||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>v.has(t)))return!0}return!1})(t))}function E(t){if(!x(t))if(m(t)){if(S(t)){t instanceof HTMLInputElement&&["date","datetime-local","month","time","week"].includes(t.type)&&(t.type="text");const e=b(t);t.value=e,t.setAttribute("value",e)}}else p(t)?S(t)&&(t.textContent=b(t)):t.hasAttribute(f)&&w(t)&&(t.textContent=b(t))}function T(t){t instanceof Element&&E(t);const e=t.querySelectorAll(u);for(const t of e)E(t);const n=t.querySelectorAll(`[${f}]`);for(const t of n)E(t)}let L="";function k(){return L}function $(t){return e.get(t)}function C(t,n){const o=localStorage.getItem("intent:data-sid-max-age"),i=null===o?void 0:Number(o),r="number"==typeof n&&Number.isFinite(n)?n:"number"==typeof i&&Number.isFinite(i)?i:2592e3,a="https:"===window.location.protocol;e.set("intent_sid",t,{expires:r/86400,path:"/",sameSite:"Lax",...a&&{secure:!0}})}function M(){e.remove("intent_sid",{path:"/"})}function A(){const t=$("intent_sid");if("granted"!==localStorage.getItem(o))return t&&M(),void(L="");t?L=t:(L=crypto.randomUUID(),C(L))}let I,D=!1,z=!1,N=!1,B=!1,H=!1;function P(){return"enabled"===localStorage.getItem(i)}function O(){D=!1,N=!1,H=!1}function F(){return!D&&P()&&!B&&H}let U,j=[],_=!1;function q(){try{return"enabled"===localStorage.getItem(r)}catch{return!1}}function W(t){try{localStorage.setItem(r,t?"enabled":"disabled"),t?X():I&&(I.style.display="none")}catch{}}function R(){if(!I)return;const t=I.querySelector("#intent-debug-events"),e=I.querySelector("#intent-debug-count");if(!t||!e)return;if(0===j.length)return t.innerHTML='\n\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t</div>\n\t\t',void(e.textContent="0 events");const n=[...j].reverse();t.innerHTML=n.map(t=>(t=>{const e=new Date(t.timestamp).toLocaleTimeString(),n=t.img&&t.img.length>0,o=n?Math.round(.75*t.img.length/1024):0,i=g(t.event),r=g(JSON.stringify(t.props,null,2)),a=g(t.html),s=g(JSON.stringify(t.bbox,null,2));return`\n\t\t<div style="\n\t\t\tbackground: var(--solomei-color-card, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tpadding: 10px;\n\t\t\tmargin-bottom: 8px;\n\t\t">\n\t\t\t<div style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\tpadding-bottom: 8px;\n\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t">${i}</div>\n\t\t\t\t<div style="\n\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t">${e}</div>\n\t\t\t</div>\n\t\t\t${n?`\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="${t.img}" \n\t\t\t\t\t\tclass="intent-debug-screenshot" \n\t\t\t\t\t\tstyle="\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t" \n\t\t\t\t\t\ttitle="Click to view fullscreen"/>\n\t\t\t\t\t<div style="\n\t\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\tmargin-top: 4px;\n\t\t\t\t\t">Screenshot (~${o} KB)</div>\n\t\t\t\t</div>\n\t\t\t`:""}\n\t\t\t<details style="margin-top: 8px;">\n\t\t\t\t<summary style="\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\tuser-select: none;\n\t\t\t\t">View Details</summary>\n\t\t\t\t<div style="\n\t\t\t\t\tmargin-top: 8px;\n\t\t\t\t\tpadding: 8px;\n\t\t\t\t\tbackground: var(--solomei-color-secondary, #fafaf9);\n\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t">\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Properties:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">${r}</pre>\n\t\t\t\t\t${t.html?`\n\t\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>HTML:</strong></div>\n\t\t\t\t\t\t<pre style="\n\t\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t">${a}</pre>\n\t\t\t\t\t`:""}\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Bounding Box:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">${s}</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t`})(t)).join(""),e.textContent=`${j.length} event${1===j.length?"":"s"}`}function X(){if(I)return void(I.style.display="flex");const t=document.createElement("div");t.innerHTML='\n\t\t<div id="intent-debug-panel" data-intent-redact="ignore" style="\n\t\t\tposition: fixed;\n\t\t\ttop: 20px;\n\t\t\tright: 20px;\n\t\t\twidth: 400px;\n\t\t\tmax-height: 80vh;\n\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t\t\tz-index: 2147483647;\n\t\t\tfont-family: var(--solomei-font-primary, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif);\n\t\t\tfont-size: var(--solomei-font-size-base, 15px);\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t">\n\t\t\t<div id="intent-debug-header" style="\n\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\tpadding: 12px 15px;\n\t\t\t\tborder-radius: var(--solomei-radius-lg, 10px) var(--solomei-radius-lg, 10px) 0 0;\n\t\t\t\tcursor: move;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tuser-select: none;\n\t\t\t">\n\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); font-size: 14px;">Intent SDK Debug</div>\n\t\t\t\t<div style="display: flex; gap: 8px;">\n\t\t\t\t\t<button id="intent-debug-minimize" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">−</button>\n\t\t\t\t\t<button id="intent-debug-close" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">×</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="intent-debug-content" style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\toverflow: hidden;\n\t\t\t\tflex: 1;\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tpadding: 12px 15px;\n\t\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t">\n\t\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); color: var(--solomei-color-foreground, #212121); margin-bottom: 8px;">Event Log</div>\n\t\t\t\t\t<div style="display: flex; gap: 8px; align-items: center;">\n\t\t\t\t\t\t<button id="intent-debug-clear" style="\n\t\t\t\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\t\tborder: none;\n\t\t\t\t\t\t\tpadding: 6px 12px;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\t\t">Clear</button>\n\t\t\t\t\t\t<span id="intent-debug-count" style="color: var(--solomei-color-text-secondary, #979797); font-size: 12px;">0 events</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id="intent-debug-events" style="\n\t\t\t\t\tflex: 1;\n\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\tpadding: 10px;\n\t\t\t\t">\n\t\t\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t',I=t.firstElementChild,document.body.appendChild(I);const e=I.querySelector("#intent-debug-close"),n=I.querySelector("#intent-debug-minimize"),o=I.querySelector("#intent-debug-clear");e?.addEventListener("click",()=>{W(!1)}),n?.addEventListener("click",()=>{(()=>{if(!I)return;const t=I.querySelector("#intent-debug-content"),e=I.querySelector("#intent-debug-minimize");t&&e&&(_=!_,_?(t.style.display="none",I.style.width="200px",e.textContent="+"):(t.style.display="flex",I.style.width="400px",e.textContent="−"))})()}),o?.addEventListener("click",()=>{j=[],R()}),(()=>{if(!I)return;const t=I.querySelector("#intent-debug-header");if(!t)return;let e=!1,n=0,o=0,i=0,r=0;t.addEventListener("mousedown",t=>{if("BUTTON"===t.target.tagName)return;e=!0;const n=I.getBoundingClientRect();i=t.clientX-n.left,r=t.clientY-n.top}),document.addEventListener("mousemove",t=>{if(!e||!I)return;t.preventDefault(),n=t.clientX-i,o=t.clientY-r;const a=window.innerWidth-I.offsetWidth,s=window.innerHeight-I.offsetHeight;n=Math.max(0,Math.min(n,a)),o=Math.max(0,Math.min(o,s)),I.style.left=`${n}px`,I.style.top=`${o}px`,I.style.right="auto"}),document.addEventListener("mouseup",()=>{e=!1})})(),I.addEventListener("click",t=>{const e=t.target;if(e.classList.contains("intent-debug-screenshot")){const t=e;t.src&&t.src.startsWith("data:image/")&&(t=>{const e=document.createElement("div");e.id="intent-debug-fullscreen-modal",e.setAttribute("data-intent-redact","ignore"),e.style.cssText="\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(0, 0, 0, 0.95);\n\t\tz-index: 2147483646;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcursor: zoom-out;\n\t";const n=document.createElement("div");n.style.cssText="\n\t\tmax-width: 95%;\n\t\tmax-height: 95%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t";const o=document.createElement("img");o.src=t,o.style.cssText="\n\t\tmax-width: 100%;\n\t\tmax-height: calc(95vh - 60px);\n\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.2));\n\t";const i=document.createElement("div");i.style.cssText="\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t";const r=document.createElement("button");r.textContent="✕ Close",r.style.cssText="\n\t\tpadding: 12px 24px;\n\t\tbackground: var(--solomei-color-primary-button-background, #262626);\n\t\tcolor: var(--solomei-color-primary-button-color, white);\n\t\tborder: none;\n\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\tfont-size: 14px;\n\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\tcursor: pointer;\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t";const a=document.createElement("div");a.textContent="Click anywhere or press ESC to close",a.style.cssText="\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t",i.appendChild(r),i.appendChild(a),n.appendChild(o),n.appendChild(i),e.appendChild(n);const s=()=>{e.remove(),document.removeEventListener("keydown",d)};e.addEventListener("click",s),r.addEventListener("click",t=>{t.stopPropagation(),s()}),o.addEventListener("click",t=>{t.stopPropagation()});const d=t=>{"Escape"===t.key&&s()};document.addEventListener("keydown",d),document.body.appendChild(e)})(t.src)}}),R()}"undefined"!=typeof window&&q()&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{X()}):X());let Y,J=0,K=!1;const V="__intent__sdk__initialized__",Z=["button","a[href]","a",'input[type="submit"]','input[type="button"]','[role="button"]','[role="link"]',"[onclick]"].join(",");function G(){return A(),"granted"===localStorage.getItem(o)&&Boolean(k())&&Boolean(localStorage.getItem(a)?.trim().length)}function Q(){return!G()||z}async function tt(e){for(;Y;)await Y;return Y=(async()=>{try{const n=performance.now(),o=performance.now(),i=(t=>{if(h(t))return"";const e=t.cloneNode(!1);return Array.from(t.attributes).forEach(({name:t,value:n})=>{e.setAttribute(t,n)}),m(t)?m(e)&&(e.value=t.value):p(t)?e.innerHTML=t.innerHTML:e.textContent=t.textContent,T(e),m(e)&&e.setAttribute("value",e.value),e.outerHTML})(e);c(`[Timing] serialize: ${(performance.now()-o).toFixed(2)}ms`);const r=e.getBoundingClientRect(),a=performance.now(),s={left:window.scrollX,top:window.scrollY,right:window.scrollX+window.innerWidth,bottom:window.scrollY+window.innerHeight},d=await t(document.body,{useCORS:!0,x:window.scrollX,y:window.scrollY,width:window.innerWidth,height:window.innerHeight,scale:.6,logging:!1,onclone(t){T(t)},ignoreElements(t){if(!(t instanceof Element))return!1;if(x(t))return!0;const e=t.getBoundingClientRect(),n=e.left+window.scrollX,o=e.top+window.scrollY,i=e.right+window.scrollX,r=e.bottom+window.scrollY,a=100;if(i<s.left-a||n>s.right+a||r<s.top-a||o>s.bottom+a){const e=window.getComputedStyle(t),{position:a}=e;if("fixed"===a||"absolute"===a){const t=500;return i<s.left-t||n>s.right+t||r<s.top-t||o>s.bottom+t}return!0}return!1}});c(`[Timing] html2canvas-pro: ${(performance.now()-a).toFixed(2)}ms`);const l=performance.now(),u=d.toDataURL("image/jpeg",.8);c(`[Timing] jpeg-encoding: ${(performance.now()-l).toFixed(2)}ms`);return c(`[Timing] capture-total: ${(performance.now()-n).toFixed(2)}ms`),{html:i,bbox:{x:r.x,y:r.y,w:r.width,h:r.height},img:u,fullCanvas:d}}finally{Y=void 0}})(),Y}function et(){const t=localStorage.getItem(a),e={"Content-Type":"application/json"};t&&(e["x-sl-access-token"]=t);const n=k();return n&&(e["x-intent-sid"]=n),e}async function nt(t,e,n,o){if(!G())return;const i={...e,localTime:(new Date).toISOString()};p(n)&&(i.value=S(n)?b(n):(t=>m(t)?t.value:t instanceof HTMLElement?t.innerText:t.textContent??"")(n));let r="",c={x:0,y:0,w:0,h:0},l="";const u=!("scroll"===t||"page-blur"===t||"page-focus"===t),g=Date.now();let f=o;u&&(("click"===t||"input-submit"===t||"pageview"===t)&&!f||!f&&g-J>=0)&&(f=await tt(n),J=g),f&&(r=f.html,c=f.bbox,l=f.img);const v="page-blur"===t||"page-focus"===t||"pageview"===t,y={ts:Date.now(),event:t,props:i,html:v?"":r,bbox:c,img:l};(function(t,e,n,o,i){((t,e,n,o,i)=>{if(!q())return;const r={id:"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,timestamp:Date.now(),event:t,props:e,html:n,bbox:o,img:i};j.push(r),j.length>50&&j.shift(),R()})(t,e,n,o,i)})(t,i,v?"":r,c,l),await async function(t){const e=`${localStorage.getItem(s)??d}/events`,n=localStorage.getItem(a)??void 0,o=JSON.stringify({...t,clientId:n});try{if((await fetch(e,{method:"POST",headers:et(),body:o,keepalive:!0,credentials:"omit"})).ok)return}catch{}try{await(async t=>{const e=`${localStorage.getItem(s)??d}/p.gif`;if(!(await fetch(e,{method:"POST",headers:et(),body:JSON.stringify(t),keepalive:!0,credentials:"omit",cache:"no-store"})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(y)}async function ot(t={}){if(!G())return;const e="number"==typeof t.lat&&"number"==typeof t.lon;if(e&&D)return;if(!e&&K)return;const o=localStorage.getItem("intent:data-ip"),i={context:await n()};o&&(i.ip=o);for(const[e,n]of Object.entries(t))i[e]=n;await nt("context",i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),e||(K=!0)}async function it(){await(async(t,e)=>{const n=e(),o=P();if(!n||!o||D)return;if(!("geolocation"in navigator))return;if(B)return;B=!0,z=!0;const i={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator.permissions?.query({name:"geolocation"}))}catch(t){}await new Promise(t=>{let e=!1;const n=async(n,o,i)=>{e||(e=!0,Number.isFinite(n)&&Number.isFinite(o)&&(await(async(t,e,n)=>{await ot({lat:t,lon:e,source:"device",...n})})(n,o,i),D=!0),B=!1,z=!1,H=!0,t())};navigator.geolocation.getCurrentPosition(t=>{const e=t.coords;n(e.latitude,e.longitude,{accuracy:e.accuracy,altitude:"number"==typeof e.altitude?e.altitude:void 0,altitudeAccuracy:"number"==typeof e.altitudeAccuracy?e.altitudeAccuracy:void 0,heading:"number"==typeof e.heading?e.heading:void 0,speed:"number"==typeof e.speed?e.speed:void 0,timestamp:t.timestamp,visibility:document.visibilityState,focused:document.hasFocus()})},t=>{const e=t?.code,o={error:{code:e,name:1===e?"PERMISSION_DENIED":2===e?"POSITION_UNAVAILABLE":3===e?"TIMEOUT":"UNKNOWN",message:t?.message??""},online:navigator.onLine,visibility:document.visibilityState,focused:document.hasFocus(),secure:window.isSecureContext,proto:location.protocol,host:location.hostname};n(void 0,void 0,o)},i)})})(0,G)}function rt(){(t=>{if(N||!P()||D)return;N=!0;const e=()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),t()};window.addEventListener("pointerdown",e,!0),window.addEventListener("keydown",e,!0)})(it)}A();let at=!document.hidden&&document.hasFocus(),st=document.hasFocus();function dt(){if(Q())return;const t=!document.hidden&&document.hasFocus();t&&(st=!0),st||t?t!==at&&(at=t,nt(t?"page-focus":"page-blur",{},document.body)):at=t}function ct(){(()=>{const t=globalThis;return!t[V]&&(Object.defineProperty(t,V,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener("load",()=>{G()&&(ot(),(window.isSecureContext||"localhost"===location.hostname)&&(P()&&rt(),window.addEventListener("focus",()=>{F()&&it()}),document.addEventListener("visibilitychange",()=>{!document.hidden&&F()&&it()})))}),window.addEventListener("storage",t=>{t.key===o&&("granted"===localStorage.getItem(o)?(K=!1,ot(),P()&&rt()):(K=!1,O())),t.key===i&&(P()?rt():O())}),window.addEventListener("load",()=>{G()&&nt("pageview",{url:window.location.href,title:document.title,ref:document.referrer},document.body)}),addEventListener("pointerdown",(()=>{let t=0;return(...e)=>{const n=Date.now();n-t>=50&&(t=n,(t=>{if(Q())return;const e=t.target instanceof Element?t.target.closest(Z):null;e instanceof HTMLElement&&(U=tt(e))})(...e))}})(),{capture:!0,passive:!0}),addEventListener("click",async t=>{if(Q())return;if(!(t.target instanceof Element))return;const e=t.target.closest(Z);if(!(e instanceof HTMLElement))return;const n=(t=>{const e=t.getAttribute("aria-label")?.trim();if(e)return e;const n=t.title.trim();if(n)return n;const o=t.textContent?.trim();return o||"<no visible label>"})(e);(async()=>{const t=U?await U:void 0;U=void 0,nt("click",{tag:e.tagName,label:n},e,t)})()},!0),addEventListener("keydown",t=>{if(!Q()&&"Enter"===t.key){const e=t.target;if(!(e instanceof HTMLElement))return;const n=e.tagName;if("INPUT"===n||"TEXTAREA"===n)nt("input-submit",{tag:n,name:(e instanceof HTMLInputElement?e.name:void 0)??(e.id||void 0)},e);else if(p(e)){const t=(t=>{let e=t;for(;e&&e!==document.body;){const t=e.getAttribute("contenteditable");if("true"===t||""===t||"plaintext-only"===t)return e;e=e.parentElement}return null})(e)??e;if("newline"===t.dataset.intentEnter)return;const n=t.getAttribute("role")?.toLowerCase(),o=t.id||void 0;nt("input-submit",{tag:"CONTENTEDITABLE",role:n??"contenteditable",name:t.getAttribute("name")||t.getAttribute("aria-label")||o},t)}}},{capture:!0}),["focus","blur"].forEach(t=>{window.addEventListener(t,dt)}),document.addEventListener("visibilitychange",dt),window.addEventListener("scroll",(()=>{let t;return(...e)=>{void 0!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,(()=>{Q()||nt("scroll",{scrollX:window.scrollX,scrollY:window.scrollY},document.body)})(...e)},250)}})(),{passive:!0}),window.intent??={send(t,e){G()&&nt(t,e,document.body)}})}function lt(t,e){try{if(void 0===e)return;localStorage.setItem(t,e?"intent:consent"===t?"granted":"enabled":"disabled")}catch{}}function ut(t){lt("intent:consent",t)}function mt(t){lt("intent:geo",t)}function pt(t){lt("intent:debug",t)}function gt(t){t&&"undefined"!=typeof console&&console.warn&&console.warn("[Intent SDK] ⚠️ Debug panel is enabled. This feature is NOT recommended for production use. It exposes internal SDK behavior and should only be used during development."),(t=>{W(t)})(t)}function ft(t={}){localStorage.setItem("intent:data-client-id",t.clientId??""),localStorage.setItem("intent:data-ip",t.ip??""),localStorage.setItem("intent:data-base-url",t.baseUrl??"https://intent.callimacus.ai"),"number"==typeof t.sidMaxAgeSeconds&&localStorage.setItem("intent:data-sid-max-age",String(t.sidMaxAgeSeconds)),lt("intent:consent",t.consent),lt("intent:geo",t.geo),lt("intent:debug",t.debug),void 0!==t.debugPanel&&gt(t.debugPanel),t.consent&&($("intent_sid")||C("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,t.sidMaxAgeSeconds)),ct()}function vt(){return $("intent_sid")}function bt(){A()}function yt(){M()}function ht(t){Number.isFinite(t)&&localStorage.setItem("intent:data-sid-max-age",String(t));const e=$("intent_sid");e&&C(e,t)}export{yt as clearIntentSessionId,bt as ensureIntentSessionId,vt as getIntentSessionId,ft as initIntent,ut as setConsent,pt as setDebug,gt as setDebugPanel,lt as setFlag,mt as setGeo,ht as setIntentSessionMaxAge};
6
6
  //# sourceMappingURL=index.debug.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.debug.js","sources":["../../src/context.ts","../../src/redaction.ts","../../src/constants.ts","../../src/session.ts","../../src/utils.ts","../../src/geolocation.ts","../../src/debug-panel.ts","../../src/client.ts","../../src/debug-panel-proxy.ts","../../src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["async","buildContextString","tz","Intl","DateTimeFormat","resolvedOptions","timeZone","tzOff","mins","sign","abs","Math","String","floor","padStart","tzOffsetString","Date","getTimezoneOffset","lines","push","navigator","language","languages","length","join","userAgent","uaLine","n","userAgentData","u","brands","Array","isArray","map","b","brand","version","undefined","platform","mobile","filter","Boolean","getUaHintsLine","toString","dpr","window","devicePixelRatio","screen","width","height","availWidth","availHeight","colorDepth","orientation","type","innerWidth","innerHeight","hardwareConcurrency","net","parts","label","connection","c","effectiveType","downlink","rtt","saveData","inferred","limit","nav","performance","getEntriesByType","find","e","entryType","rttMs","max","responseStart","requestStart","entries","entry","totalBytes","totalMs","slice","bytes","encodedBodySize","transferSize","ms","duration","Number","isFinite","kbps","downlinkMbps","inferNetworkFromTimings","toFixed","round","navEntry","ttfbMs","some","p","startsWith","getNetworkLine","coarse","matchMedia","matches","fine","maxTouchPoints","getPointerLine","battery","getBattery","pct","level","charging","getBatteryLine","cookieEnabled","doNotTrack","onLine","document","referrer","standalone","serviceWorker","controller","getPwaLine","tilt","timeoutMs","isSecureContext","Promise","resolve","settled","onEvent","beta","gamma","removeEventListener","ab","ag","classifyTilt","setTimeout","addEventListener","passive","getTiltLine","geoEnabled","localStorage","getItem","intentRedactAttr","sensitiveAutocomplete","Set","placeholderFor","el","custom","getAttribute","trim","autocomplete","tokens","HTMLInputElement","HTMLTextAreaElement","toLowerCase","split","token","autocompleteLabels","get","redactAttr","getRedactionPlaceholderLabel","Map","hasRedactIgnore","hasAttribute","hasRedactMask","v","hasRedactIgnoreInHierarchy","current","body","parentElement","shouldMaskValue","role","t","has","isSensitiveControl","processElement","element","includes","value","textContent","redactDocument","clonedDoc","Element","inputs","querySelectorAll","input","markedElements","intentFlag","geoFlag","debugPanelFlag","clientIdKey","collectBaseKey","fallbackBaseUrl","sid","getSid","getCookie","name","Cookies","setSidCookie","maxAgeSeconds","raw","stored","maxAge","secure","location","protocol","set","expires","path","sameSite","clearSidCookie","remove","ensureSid","existing","crypto","randomUUID","debugLog","args","console","log","escapeHtml","unsafe","replace","panelElement","deviceGeoSent","geoModalActive","geoArmed","geoPending","geoTriedOnce","isGeoEnabled","resetGeoState","shouldRetryGeo","lastCapture","eventLog","isMinimized","isDebugPanelEnabled","setDebugPanel","enabled","setItem","showDebugPanel","style","display","updateEventList","eventsContainer","querySelector","countElement","innerHTML","sortedEvents","reverse","event","time","timestamp","toLocaleTimeString","hasImage","img","imageSize","escapedEventName","escapedPropsJson","JSON","stringify","props","escapedHtml","html","escapedBboxJson","bbox","createEventHTML","container","createElement","firstElementChild","appendChild","closeBtn","minimizeBtn","clearBtn","content","toggleMinimize","header","isDragging","currentX","currentY","initialX","initialY","target","tagName","rect","getBoundingClientRect","clientX","left","clientY","top","preventDefault","maxX","offsetWidth","maxY","offsetHeight","min","right","setupDragging","classList","contains","src","imageSrc","modal","id","setAttribute","cssText","imageContainer","controls","instructions","closeModal","stopPropagation","handleEscape","key","showFullscreenImage","readyState","captureInProgress","lastShotAt","baselineSent","INIT_MARK","clickSelector","canSend","blocked","capture","captureStartTime","now","serializeStart","cloned","cloneNode","from","attributes","forEach","outerHTML","getRedactedElementHTML","bboxRaw","snapStart","viewportRect","scrollX","scrollY","bottom","fullCanvas","html2canvas","useCORS","x","y","scale","logging","onclone","clonedElement","ignoreElements","node","nodeRect","margin","getComputedStyle","position","largeMargin","jpegStart","toDataURL","w","h","baseHeaders","clientId","headers","sendEvent","eventName","pre","sendProps","localTime","toISOString","requiresScreenshot","cap","skipHtml","payload","ts","eventData","random","shift","debugPanelModule.logEventToDebugPanel","logEventToDebugPanel","url","fetch","method","keepalive","credentials","ok","cache","Error","pixelBodyFallback","transmit","emitContextUpdate","extra","wantsDevice","lat","lon","ipAttr","context","ip","k","Object","handleRequestDeviceGeoOnce","onSuccess","canRequest","precheck","opts","enableHighAccuracy","maximumAge","timeout","permissions","query","done","meta","source","geolocation","getCurrentPosition","coords","latitude","longitude","accuracy","altitude","altitudeAccuracy","heading","speed","visibility","visibilityState","focused","hasFocus","err","code","error","message","online","proto","host","hostname","requestDeviceGeoOnce","handleArmGeoOnFirstGesture","requestGeo","fire","armGeoOnFirstGesture","lastActive","hidden","hadFocusOnce","updateFocus","active","initRuntime","g","globalThis","defineProperty","configurable","enumerable","writable","markInitialized","href","title","ref","last","targetEl","closest","HTMLElement","fn","throttle","tag","evt","timer","clearTimeout","debounce","intent","send","setFlag","yes","setConsent","granted","setGeo","setDebug","warn","debugPanelModule.setDebugPanel","setDebugPanelImpl","initIntent","baseUrl","sidMaxAgeSeconds","consent","geo","debug","debugPanel","getIntentSessionId","ensureIntentSessionId","clearIntentSessionId","setIntentSessionMaxAge","seconds","cur"],"mappings":";;;;wDAgMOA,eAAeC,IACrB,MAAMC,GAAK,IAAIC,KAAKC,gBAAiBC,kBAAkBC,SACjDC,EA7KP,CAAwBC,IACvB,MAAMC,EAAOD,GAAQ,EAAI,IAAM,IACzBE,EAAMC,KAAKD,IAAIF,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AQjC,ECiFE6O,CAAkB7O,EAEpB,CAEM,SAAU8O,GAAW1E,EAAoB,IAC9CrQ,aAAakG,QAAQ,wBAAyBmK,EAAK1C,UAAY,IAC/D3N,aAAakG,QAAQ,iBAAkBmK,EAAKP,IAAM,IAClD9P,aAAakG,QAAQ,uBAAwBmK,EAAK2E,SAAW,gCACxB,iBAA1B3E,EAAK4E,kBACfjV,aAAakG,QAAQ,0BAA2BnO,OAAOsY,EAAK4E,mBAG7DX,GAAQ,iBAAkBjE,EAAK6E,SAC/BZ,GAAQ,aAAcjE,EAAK8E,KAC3Bb,GAAQ,eAAgBjE,EAAK+E,YAGL5b,IAApB6W,EAAKgF,YACRrP,GAAcqK,EAAKgF,YAGhBhF,EAAK6E,UACS3R,EAAU,eAK1BG,EAH+B,oBAAXgB,QAAuD,mBAAtBA,OAAOC,WACzDD,OAAOC,aACP,GAAGxM,KAAKoT,SAASzT,KAAK2W,WACP4B,EAAK4E,mBAIzBnC,IACD,UAEgBwC,KACf,OAAO/R,EAAU,aAClB,UAEgBgS,KACf/Q,GACD,UAEgBgR,KACflR,GACD,CAEM,SAAUmR,GAAuBC,GAClC9Y,OAAOC,SAAS6Y,IACnB1V,aAAakG,QAAQ,0BAA2BnO,OAAO2d,IAGxD,MAAMC,EAAMpS,EAAU,cAClBoS,GACHjS,EAAaiS,EAAKD,EAEpB"}
1
+ {"version":3,"file":"index.debug.js","sources":["../../src/context.ts","../../src/constants.ts","../../src/utils.ts","../../src/redaction.ts","../../src/session.ts","../../src/geolocation.ts","../../src/debug-panel.ts","../../src/client.ts","../../src/debug-panel-proxy.ts","../../src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["async","buildContextString","tz","Intl","DateTimeFormat","resolvedOptions","timeZone","tzOff","mins","sign","abs","Math","String","floor","padStart","tzOffsetString","Date","getTimezoneOffset","lines","push","navigator","language","languages","length","join","userAgent","uaLine","n","userAgentData","u","brands","Array","isArray","map","b","brand","version","undefined","platform","mobile","filter","Boolean","getUaHintsLine","toString","dpr","window","devicePixelRatio","screen","width","height","availWidth","availHeight","colorDepth","orientation","type","innerWidth","innerHeight","hardwareConcurrency","net","parts","label","connection","c","effectiveType","downlink","rtt","saveData","inferred","limit","nav","performance","getEntriesByType","find","e","entryType","rttMs","max","responseStart","requestStart","entries","entry","totalBytes","totalMs","slice","bytes","encodedBodySize","transferSize","ms","duration","Number","isFinite","kbps","downlinkMbps","inferNetworkFromTimings","toFixed","round","navEntry","ttfbMs","some","p","startsWith","getNetworkLine","coarse","matchMedia","matches","fine","maxTouchPoints","getPointerLine","battery","getBattery","pct","level","charging","getBatteryLine","cookieEnabled","doNotTrack","onLine","document","referrer","standalone","serviceWorker","controller","getPwaLine","tilt","timeoutMs","isSecureContext","Promise","resolve","settled","onEvent","beta","gamma","removeEventListener","ab","ag","classifyTilt","setTimeout","addEventListener","passive","getTiltLine","geoEnabled","localStorage","getItem","intentFlag","geoFlag","debugPanelFlag","clientIdKey","collectBaseKey","fallbackBaseUrl","debugLog","args","console","log","editableRoles","Object","freeze","Set","editableSelector","r","isNativeFormControl","el","HTMLInputElement","HTMLTextAreaElement","HTMLSelectElement","isEditableElement","HTMLElement","isContentEditable","role","getAttribute","toLowerCase","has","escapeHtml","unsafe","replace","intentRedactAttr","sensitiveAutocomplete","placeholderFor","custom","trim","autocomplete","tokens","split","token","autocompleteLabels","get","redactAttr","getRedactionPlaceholderLabel","Map","hasRedactIgnore","hasAttribute","hasRedactMask","v","hasRedactIgnoreInHierarchy","current","body","parentElement","shouldMaskValue","t","isSensitiveControl","processElement","element","includes","placeholder","value","setAttribute","textContent","redactDocument","clonedDoc","Element","inputs","querySelectorAll","input","markedElements","sid","getSid","getCookie","name","Cookies","setSidCookie","maxAgeSeconds","raw","stored","maxAge","secure","location","protocol","set","expires","path","sameSite","clearSidCookie","remove","ensureSid","existing","crypto","randomUUID","panelElement","deviceGeoSent","geoModalActive","geoArmed","geoPending","geoTriedOnce","isGeoEnabled","resetGeoState","shouldRetryGeo","lastCapture","eventLog","isMinimized","isDebugPanelEnabled","setDebugPanel","enabled","setItem","showDebugPanel","style","display","updateEventList","eventsContainer","querySelector","countElement","innerHTML","sortedEvents","reverse","event","time","timestamp","toLocaleTimeString","hasImage","img","imageSize","escapedEventName","escapedPropsJson","JSON","stringify","props","escapedHtml","html","escapedBboxJson","bbox","createEventHTML","container","createElement","firstElementChild","appendChild","closeBtn","minimizeBtn","clearBtn","content","toggleMinimize","header","isDragging","currentX","currentY","initialX","initialY","target","tagName","rect","getBoundingClientRect","clientX","left","clientY","top","preventDefault","maxX","offsetWidth","maxY","offsetHeight","min","right","setupDragging","classList","contains","src","imageSrc","modal","id","cssText","imageContainer","controls","instructions","closeModal","handleEscape","stopPropagation","key","showFullscreenImage","readyState","captureInProgress","lastShotAt","baselineSent","INIT_MARK","clickSelector","canSend","blocked","capture","captureStartTime","now","serializeStart","cloned","cloneNode","from","attributes","forEach","outerHTML","getRedactedElementHTML","bboxRaw","snapStart","viewportRect","scrollX","scrollY","bottom","fullCanvas","html2canvas","useCORS","x","y","scale","logging","onclone","ignoreElements","node","nodeRect","margin","getComputedStyle","position","largeMargin","jpegStart","toDataURL","w","h","baseHeaders","clientId","headers","sendEvent","eventName","pre","sendProps","localTime","toISOString","innerText","getEditableValue","requiresScreenshot","cap","skipHtml","payload","ts","eventData","random","shift","debugPanelModule.logEventToDebugPanel","logEventToDebugPanel","url","fetch","method","keepalive","credentials","ok","cache","Error","pixelBodyFallback","transmit","emitContextUpdate","extra","wantsDevice","lat","lon","ipAttr","context","ip","k","handleRequestDeviceGeoOnce","onSuccess","canRequest","precheck","opts","enableHighAccuracy","maximumAge","timeout","permissions","query","done","meta","source","geolocation","getCurrentPosition","coords","latitude","longitude","accuracy","altitude","altitudeAccuracy","heading","speed","visibility","visibilityState","focused","hasFocus","err","code","error","message","online","proto","host","hostname","requestDeviceGeoOnce","handleArmGeoOnFirstGesture","requestGeo","fire","armGeoOnFirstGesture","lastActive","hidden","hadFocusOnce","updateFocus","active","initRuntime","g","globalThis","defineProperty","configurable","enumerable","writable","markInitialized","href","title","ref","last","targetEl","closest","fn","throttle","aria","text","visibleLabel","tag","editable","attr","getContentEditableAncestor","dataset","intentEnter","evt","timer","clearTimeout","debounce","intent","send","setFlag","yes","setConsent","granted","setGeo","setDebug","warn","debugPanelModule.setDebugPanel","setDebugPanelImpl","initIntent","baseUrl","sidMaxAgeSeconds","consent","geo","debug","debugPanel","getIntentSessionId","ensureIntentSessionId","clearIntentSessionId","setIntentSessionMaxAge","seconds","cur"],"mappings":";;;;wDAgMOA,eAAeC,IACrB,MAAMC,GAAK,IAAIC,KAAKC,gBAAiBC,kBAAkBC,SACjDC,EA7KP,CAAwBC,IACvB,MAAMC,EAAOD,GAAQ,EAAI,IAAM,IACzBE,EAAMC,KAAKD,IAAIF,GAGrB,MAAO,GAAGC,IAFCG,OAAOD,KAAKE,MAAMH,EAAM,KAAKI,SAAS,EAAG,QACzCF,OAAOF,EAAM,IAAII,SAAS,EAAG,MAEzC,EAuKeC,EAAe,IAAIC,MAAOC,qBAElCC,EAAkB,GAExBA,EAAMC,KAAK,aAAaC,UAAUC,YAC9BD,UAAUE,WAAWC,QACxBL,EAAMC,KAAK,cAAcC,UAAUE,UAAUE,KAAK,SAGnDN,EAAMC,KAAK,eAAeC,UAAUK,aACpC,MAAMC,EAzGP,MACC,KAtFO,kBADOC,EAuFHP,kBAtF+C,IAApBO,EAAEC,cAuFvC,OAxFF,IAAeD,EA2Fd,MAAME,EAAIT,UAAUQ,cACdE,EAASC,MAAMC,QAAQH,EAAEC,QAAUD,EAAEC,OAAOG,IAAIC,GAAK,GAAGA,EAAEC,SAASD,EAAEE,WAAWZ,KAAK,WAAQa,EAC7FC,EAAWT,EAAES,SAAW,GAAGT,EAAES,WAAWT,EAAEU,OAAS,YAAc,UAAOF,EAE9E,MADe,CAACP,GAAU,cAAcA,IAAUQ,GAAY,aAAaA,KAAYE,OAAOC,SAChFjB,KAAK,aAAUa,CAC9B,EA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1Q,aAAa8G,QAAQ,uBAAwBkK,EAAKkF,SAAW,gCACxB,iBAA1BlF,EAAKmF,kBACfnW,aAAa8G,QAAQ,0BAA2B/O,OAAOiZ,EAAKmF,mBAG7DX,GAAQ,iBAAkBxE,EAAKoF,SAC/BZ,GAAQ,aAAcxE,EAAKqF,KAC3Bb,GAAQ,eAAgBxE,EAAKsF,YAGL9c,IAApBwX,EAAKuF,YACR3P,GAAcoK,EAAKuF,YAGhBvF,EAAKoF,UACS1R,EAAU,eAK1BG,EAH+B,oBAAXgB,QAAuD,mBAAtBA,OAAOC,WACzDD,OAAOC,aACP,GAAG3N,KAAK+T,SAASpU,KAAKuX,WACP2B,EAAKmF,mBAIzB1C,IACD,UAEgB+C,KACf,OAAO9R,EAAU,aAClB,UAEgB+R,KACf9Q,GACD,UAEgB+Q,KACfjR,GACD,CAEM,SAAUkR,GAAuBC,GAClCha,OAAOC,SAAS+Z,IACnB5W,aAAa8G,QAAQ,0BAA2B/O,OAAO6e,IAGxD,MAAMC,EAAMnS,EAAU,cAClBmS,GACHhS,EAAagS,EAAKD,EAEpB"}
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * © 2026 Solomei AI SRL. Proprietary and confidential.
3
3
  */
4
- import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){return t-=235,o()[t]}function o(){const t=["some","type","upright","9sVKIcF","coarse","475110kMzTYq","platform","isFinite","(pointer: coarse)","Pointer/Touch: ","intent:geo","no SW","Screen: ","PWA: ","fine","connection","; DNT: ","toFixed","number","Online: ","(display-mode: standalone)"," (mobile)","Language: ","Referrer: ","getEntriesByType"," (UTC","(pointer: fine)","UA brands: ","userAgentData","filter","Network: ","round","mobile","availHeight","responseStart","getItem","padStart","colorDepth","saveData","6680tPqpqH","4102626BSMwhy","1312291mcrgqZ","join","slice","length","abs","Viewport: ","5195120UyZYjd","10845wuQvfM","push","CPU: ","gamma","effectiveType"," (β ","referrer","Battery: ","isArray","toString","userAgent","encodedBodySize"," | ","undefined","cookieEnabled","getBattery","max","3903512mOeeZi"," ms","inferred","timeZone","beta","setTimeout","find","TTFB ~","-bit)","serviceWorker","deviceorientation","21rZfozS","yes","SW-controlled","resource","availWidth","doNotTrack","devicePixelRatio","transferSize","matches","innerWidth","duration","Device geolocation: disabled","isSecureContext","DateTimeFormat","entryType","removeEventListener","343438wsDLae","requestStart","resolvedOptions","brands","rtt",", display-mode standalone: ","User agent: ","charging","addEventListener",", orientation ","controller","flat","downlink","unknown","brand",", maxTouchPoints ","getTimezoneOffset","n/a","rttMs","function","navigation","orientation","languages","downlinkMbps"," Mbps","CookiesEnabled: ","height","Platform: ","map","°, γ "];return(o=()=>t)()}async function r(){const t=n,e=(new(Intl[t(304)]))[t(309)]()[t(283)],o=(t=>{const e=n,o=t<=0?"+":"-",r=Math.abs(t);return""+o+String(Math.floor(r/60))[e(251)](2,"0")+":"+String(r%60).padStart(2,"0")})((new Date)[t(323)]()),r=[];r[t(264)](t(237)+navigator.language),navigator[t(329)]?.[t(259)]&&r[t(264)]("Languages: "+navigator[t(329)].join(", ")),r[t(264)](t(313)+navigator[t(273)]);const i=function(){const t=n;if(!(t=>{const e=n;return"userAgentData"in t&&typeof t[e(243)]!==e(276)})(navigator))return;const e=navigator[t(243)],o=Array[t(271)](e.brands)?e[t(310)][t(335)](e=>e[t(321)]+" "+e.version)[t(257)](", "):void 0,r=e[t(343)]?""+e[t(343)]+(e[t(247)]?t(236):""):void 0;return[o&&t(242)+o,r&&t(334)+r].filter(Boolean)[t(257)](" | ")||void 0}();i&&r.push(i),r.push("Timezone: "+e+t(240)+o+")"),r[t(264)]("Local time: "+(new Date)[t(272)]());const a=window[t(297)]||1;r.push(t(349)+screen.width+"x"+screen[t(333)]+" @"+a+"x (avail "+screen[t(295)]+"x"+screen[t(248)]+", "+screen[t(252)]+t(288));const s=screen[t(328)]&&t(338)in screen[t(328)]?screen.orientation[t(338)]:void 0;r[t(264)](t(261)+window[t(300)]+"x"+window.innerHeight+(s?t(316)+s:"")),r[t(264)](t(265)+navigator.hardwareConcurrency+" cores");const c=await async function(){const t=n,e=[];let o="browser API";if((t=>{const e=n;return"connection"in t&&typeof t[e(352)]!==e(276)})(navigator)){const n=navigator.connection;n?.[t(267)]&&e[t(264)](n[t(267)]),typeof n?.[t(319)]===t(355)&&e[t(264)]("~"+n[t(319)]+t(331)),typeof n?.[t(311)]===t(355)&&e[t(264)](n.rtt+t(281)),n?.[t(253)]&&e.push(t(253))}else{const r=((t=20)=>{const e=n,o=performance.getEntriesByType(e(327))[e(286)](t=>t[e(305)]===e(327)),r=o?Math[e(279)](0,o[e(249)]-o[e(308)]):void 0,i=performance[e(239)](e(294))[e(244)](t=>t[e(305)]===e(294));let a=0,s=0;for(const n of i[e(258)](0,Math[e(279)](0,t))){const t=n[e(274)]>0?n[e(274)]:n[e(298)]>0?n.transferSize:0,o=n[e(301)];t>0&&o>0&&Number.isFinite(o)&&(a+=t,s+=o)}const c=s>0?8*a/s:void 0;return{downlinkMbps:typeof c===e(355)?c/1e3:void 0,rttMs:r}})();typeof r[t(330)]===t(355)&&e[t(264)]("~"+r[t(330)][t(354)](1)+t(331)),typeof r[t(325)]===t(355)&&e[t(264)](t(287)+Math[t(246)](r[t(325)])+t(281)),o=t(282)}const r=performance[t(239)](t(327))[t(286)](e=>e[t(305)]===t(327));if(r){const n=Math.max(0,r[t(249)]-r[t(308)]);!e[t(337)](t=>t.startsWith("TTFB"))&&e[t(264)](t(287)+Math.round(n)+t(281))}return e[t(259)]?t(245)+e.join(", ")+" ("+o+")":void 0}();c&&r[t(264)](c),r[t(264)]((()=>{const t=n,e=typeof matchMedia===t(326)&&matchMedia(t(345))[t(299)],o="function"==typeof matchMedia&&matchMedia(t(241))[t(299)],r=t(e?341:o?351:320),i=navigator.maxTouchPoints;return t(346)+r+t(322)+i})());const d=await async function(){const t=n;if((t=>{const e=n;return"getBattery"in t&&typeof t[e(278)]===e(326)})(navigator))try{const e=await navigator[t(278)](),n=Math.round(100*e.level),o=[(Number[t(344)](n)?n:0)+"%",e[t(314)]?t(314):"not charging"];return t(270)+o[t(257)](", ")}catch{}}();d&&r[t(264)](d),r.push(t(332)+(navigator[t(277)]?t(292):"no")+t(353)+(navigator[t(296)]??t(324))),r[t(264)](t(356)+(navigator.onLine?"yes":"no")),document[t(269)]&&r.push(t(238)+document[t(269)]),r.push((()=>{const t=n,e=typeof matchMedia===t(326)&&matchMedia(t(235)).matches,o=Boolean(navigator[t(289)]?.[t(317)]);return t(350)+t(o?293:348)+t(312)+(e?t(292):"no")})());const l=await async function(t=400){const e=n;if("DeviceOrientationEvent"in window&&window[e(303)])return new Promise(o=>{const r=e;let i=!1;const a=t=>{const e=n,r=typeof t[e(284)]===e(355)?t[e(284)]:void 0,s=typeof t.gamma===e(355)?t[e(266)]:void 0;if(void 0===r||void 0===s)return;if(i)return;i=!0,window[e(306)](e(290),a);const c=((t,e)=>{const o=n,r=Math[o(260)](t),i=Math[o(260)](e);return r<15&&i<15?o(318):r>=60?o(339):"reclined"})(r,s);o("Tilt: "+c+e(268)+Math[e(246)](r)+e(336)+Math[e(246)](s)+"°)")};window[r(285)](()=>{i||(i=!0,window.removeEventListener(r(290),a),o(void 0))},t),window[r(315)]("deviceorientation",a,{passive:!0})})}();l&&r[t(264)](l);const u="enabled"===localStorage[t(250)](t(347));return r[t(264)](u?"Device geolocation: enabled":t(302)),r[t(257)](t(275))}(()=>{const t=n,e=o();for(;;)try{if(745980==parseInt(t(256))/1+-parseInt(t(307))/2*(parseInt(t(340))/3)+-parseInt(t(262))/4+-parseInt(t(342))/5+parseInt(t(255))/6+-parseInt(t(291))/7*(-parseInt(t(280))/8)+parseInt(t(263))/9*(-parseInt(t(254))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const i=p;function a(){const t=["month","Address line 1","bday","cc-exp-month","59992VrPLzb","body","4157343vjiKgI","cc-number","address-line2","State/Province","Birth day","Sex","cc-exp-year","datetime-local","Card number","hasAttribute","input, textarea","parentElement","address-level1","WebAuthn","Cardholder middle name","Birth month","mask","Job title","Expiration year","cc-type","toLowerCase","8011512hXFqPy","filter","some","get","email","address-line1","additional-name","7118uxuspB","type","address-line3","nickname","Country code","Expiration month","postal-code","organization","webauthn","Cardholder last name","street-address","bday-month","Address line 2","trim","cc-additional-name","name","cc-family-name","Middle name","Name","Address line 3","autocomplete","getAttribute","organization-title","24bqRXFi","Phone","26rPuYmV","380ACuJlW","Birthday","text","cc-name","address-level3","232855XZovOK","Cardholder first name","includes","role","11owbbyd","given-name","Security code","tel","8pDKWUe","split","42876IGyjaS","Username","password","textContent","Cardholder name","1677790FSwKLv","value","Postal code","bday-year","First name","Organization","sex","ignore","country-name","country","family-name","151BJrblp","address-level2","bday-day","Email","address-level4","username","search","week","cc-given-name","querySelectorAll","has","Birth year","cc-csc"];return(a=()=>t)()}(()=>{const t=p,e=a();for(;;)try{if(288240==parseInt(t(373))/1*(parseInt(t(420))/2)+-parseInt(t(339))/3*(parseInt(t(390))/4)+-parseInt(t(342))/5*(-parseInt(t(357))/6)+-parseInt(t(347))/7*(-parseInt(t(355))/8)+parseInt(t(392))/9+-parseInt(t(362))/10*(-parseInt(t(351))/11)+parseInt(t(413))/12*(-parseInt(t(341))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const s="data-intent-redact",c=new Set([i(331),i(352),i(419),i(372),i(423),i(378),"email",i(354),i(323),"organization-title","street-address",i(418),i(394),i(422),i(404),i(374),i(346),"address-level4","country",i(370),i(322),i(345),i(381),"cc-additional-name",i(332),i(393),"cc-exp",i(389),i(398),i(385),"cc-type",i(388),i(375),i(327),i(365),"sex",i(324)]);function d(t){return"<"+(t=>{const e=i,n=(t.getAttribute?.("data-intent-redact-label")??"")[e(329)]();if(n)return n;const o=t[e(337)]?.(e(336))||"",r=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?o.toLowerCase()[e(329)]()[e(356)](/\s+/)[e(414)](Boolean):[];if(t instanceof HTMLInputElement&&"password"===t[e(421)])return"Password";for(const t of r){const n=l[e(416)](t);if(n)return n}const a=t.getAttribute?.(s)?.[e(412)]();return a===e(408)?"Redacted":"Sensitive"})(t)+">"}const l=new Map([[i(331),i(334)],["given-name",i(366)],[i(372),"Last name"],["additional-name",i(333)],[i(423),"Nickname"],[i(378),i(358)],[i(417),i(376)],["tel",i(340)],[i(326),"Street address"],[i(418),i(387)],[i(394),i(328)],[i(422),i(335)],["address-level1",i(395)],["address-level2","City"],[i(346),"District"],[i(377),"Neighborhood"],[i(322),i(364)],[i(371),i(320)],[i(370),"Country name"],[i(345),i(361)],[i(381),i(348)],["cc-family-name",i(325)],[i(330),i(406)],[i(393),i(400)],["cc-exp","Expiration date"],[i(389),i(321)],[i(398),i(410)],[i(385),i(353)],[i(411),"Card type"],[i(388),i(343)],[i(375),i(396)],["bday-month",i(407)],[i(365),i(384)],[i(323),i(367)],[i(338),i(409)],[i(368),i(397)],["webauthn",i(405)]]);function u(t){const e=i;return t[e(401)]("data-html2canvas-ignore")||t[e(337)](s)?.[e(412)]()===e(369)}function p(t,e){return t-=320,a()[t]}function m(t){const e=i,n=t[e(337)](s);return""===n||"mask"===n?.[e(412)]()}function f(t){const e=i;let n=t;for(;n&&n!==document[e(391)];){if(u(n))return!0;n=n[e(403)]??void 0}return!1}function g(t){return!(u(t)||!m(t)&&!(t=>{const e=i;if(t instanceof HTMLInputElement){if(t[e(421)]===e(359))return!0;if(t[e(421)]===e(379))return!1;const n=t[e(337)](e(350));if("searchbox"===n?.[e(412)]())return!1;if((t[e(336)]||"")[e(412)]().trim()[e(356)](/\s+/).filter(Boolean)[e(415)](t=>c[e(383)](t)))return!0}return!!(t instanceof HTMLTextAreaElement&&(t[e(336)]||"").toLowerCase()[e(329)]().split(/\s+/).filter(Boolean).some(t=>c[e(383)](t)))})(t))}function h(t){const e=i;f(t)||(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?g(t)&&(t instanceof HTMLInputElement&&["date",e(399),e(386),"time",e(380)][e(349)](t[e(421)])&&(t[e(421)]=e(344)),t[e(363)]=d(t)):t[e(401)](s)&&m(t)&&(t[e(360)]=d(t)))}function v(t){const e=i;t instanceof Element&&h(t);const n=t[e(382)](e(402));for(const t of n)h(t);const o=t[e(382)]("["+s+"]");for(const t of o)h(t)}const b=S;(()=>{const t=S,e=k();for(;;)try{if(681583==-parseInt(t(332))/1+-parseInt(t(336))/2*(-parseInt(t(329))/3)+parseInt(t(333))/4+-parseInt(t(330))/5*(-parseInt(t(327))/6)+-parseInt(t(326))/7+parseInt(t(334))/8*(parseInt(t(328))/9)+-parseInt(t(325))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const y="intent:consent",w="intent:geo",x=b(324),I="intent:debug-panel";function S(t,e){return t-=324,k()[t]}const T=b(337);function k(){const t=["36925xdnCbO","intent:data-sid-max-age","504851IfvJxe","4550432IZpnVr","96ARKSUv","https://intent.callimacus.ai","510478YBdktd","intent:data-client-id","intent:debug","15886260iJdBnG","1844430TVnhIL","834nfvXWr","464391NXzcOk","3EbKkTn"];return(k=()=>t)()}const E="intent:data-base-url",M=b(331),L=b(335);function A(t,e){return t-=433,B()[t]}(()=>{const t=A,e=B();for(;;)try{if(383216==-parseInt(t(451))/1+-parseInt(t(453))/2+-parseInt(t(435))/3+parseInt(t(448))/4*(-parseInt(t(444))/5)+parseInt(t(433))/6*(parseInt(t(454))/7)+-parseInt(t(450))/8*(parseInt(t(447))/9)+-parseInt(t(436))/10*(-parseInt(t(440))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let D="";function C(){return D}function z(t){return e[A(452)](t)}function N(t,n){const o=A,r=localStorage[o(441)](M),i=null===r?void 0:Number(r),a=typeof n===o(434)&&Number[o(439)](n)?n:typeof i===o(434)&&Number[o(439)](i)?i:2592e3,s="https:"===window[o(438)].protocol;e[o(446)](o(437),t,{expires:a/86400,path:"/",sameSite:o(445),...s&&{secure:!0}})}function H(){const t=A;e[t(443)](t(437),{path:"/"})}function B(){const t=["224IiliBz","13704UJvDAK","number","2170119hANfrF","20JSJnXT","intent_sid","location","isFinite","12381765wNpCoG","getItem","randomUUID","remove","2150920LAIomm","Lax","set","9DXLdJT","4JEoHqH","granted","2668664KjSQzZ","431273ddUyeJ","get","45378cQHzpl"];return(B=()=>t)()}function P(){const t=A,e=z(t(437));if(!(()=>{const t=A;return localStorage[t(441)](y)===t(449)})())return e&&H(),void(D="");e?D=e:(D=crypto[t(442)](),N(D))}function O(t,e){return t-=331,j()[t]}function U(...t){const e=O;try{typeof localStorage!==e(338)&&"enabled"===localStorage.getItem(x)&&console.log(...t)}catch{}}function j(){const t=["&quot;","153zZYNeD","148AXPTqD","12657uXTeKV","2519340MNIjHH","&#039;","6lUbPjy","&lt;","now","50rhjLnA","73736DdFmeb","replace","undefined","3102778AVFlBy","10956143SXvEzz","13355KOpkTV","276357fraMvm"];return(j=()=>t)()}function F(t){const e=O;return t.replace(/&/g,"&amp;")[e(337)](/</g,e(333))[e(337)](/>/g,"&gt;")[e(337)](/"/g,e(343))[e(337)](/'/g,e(331))}function J(t,e){return t-=493,K()[t]}function K(){const t=["speed","TIMEOUT","UNKNOWN","hostname","168838IIgOBv","hasFocus","6BDBAUq","PERMISSION_DENIED","702241xVMCKV","isFinite","message","altitudeAccuracy","query","permissions","91024jFLkUh","9159752HQobVN","heading","code","now","longitude","coords","accuracy","protocol","2839685aafxAJ","timestamp","addEventListener","108543IrKtsy","POSITION_UNAVAILABLE","56lBKexa","pointerdown","number","altitude","removeEventListener","canRequest","1889793VLfFhT"];return(K=()=>t)()}(()=>{const t=O,e=j();for(;;)try{if(332035==parseInt(t(346))/1*(-parseInt(t(335))/2)+parseInt(t(342))/3+parseInt(t(345))/4*(parseInt(t(341))/5)+parseInt(t(332))/6*(-parseInt(t(339))/7)+parseInt(t(336))/8*(parseInt(t(344))/9)+-parseInt(t(347))/10+parseInt(t(340))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),(()=>{const t=J,e=K();for(;;)try{if(827910==-parseInt(t(498))/1+parseInt(t(494))/2+parseInt(t(516))/3*(parseInt(t(518))/4)+-parseInt(t(513))/5*(parseInt(t(496))/6)+parseInt(t(505))/7+-parseInt(t(504))/8+parseInt(t(524))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let X=!1,q=!1,W=!1,V=!1,R=!1;function Y(){return"enabled"===localStorage.getItem(w)}function Z(){X=!1,W=!1,R=!1}function _(){return!X&&Y()&&!V&&R}const G=ot;function Q(){const t=["200px"," event","mouseup","readyState","1227490XHZjAG","</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t","</pre>\n\t\t\t\t\t","removeEventListener","✕ Close",'\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="',"1103226GqSnrP","map","mousedown","html","textContent","intent-debug-screenshot","click","3875876zZgMnD",'\n\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t</div>\n\t\t',"max","intent-debug-fullscreen-modal","none","5356992WZfPJl","reverse","innerWidth","contains","undefined","createElement","classList","3000348WojjiN","loading","join","body","innerHTML","src","setAttribute",'\n\t\t\t<details style="margin-top: 8px;">\n\t\t\t\t<summary style="\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\tuser-select: none;\n\t\t\t\t">View Details</summary>\n\t\t\t\t<div style="\n\t\t\t\t\tmargin-top: 8px;\n\t\t\t\t\tpadding: 8px;\n\t\t\t\t\tbackground: var(--solomei-color-secondary, #fafaf9);\n\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t">\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Properties:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">',"#intent-debug-minimize","div","\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(0, 0, 0, 0.95);\n\t\tz-index: 2147483646;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcursor: zoom-out;\n\t","offsetHeight","img","getItem","function","bbox","startsWith"," KB)</div>\n\t\t\t\t</div>\n\t\t\t","random","right","cssText",'\n\t\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>HTML:</strong></div>\n\t\t\t\t\t\t<pre style="\n\t\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t">',"clientX",'" \n\t\t\t\t\t\tclass="intent-debug-screenshot" \n\t\t\t\t\t\tstyle="\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t" \n\t\t\t\t\t\ttitle="Click to view fullscreen"/>\n\t\t\t\t\t<div style="\n\t\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\tmargin-top: 4px;\n\t\t\t\t\t">Screenshot (~',"</div>\n\t\t\t</div>\n\t\t\t","top","round","querySelector","#intent-debug-content","display","left","2gDktpH","#intent-debug-count","data:image/","data-intent-redact","4488953NDOTTt","\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t","18750104Unkmbo","event","flex","\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t","now","preventDefault","stringify","enabled","length","keydown","target","innerHeight","auto","props","clientY","style","min","width","disabled","offsetWidth",'\n\t\t<div id="intent-debug-panel" data-intent-redact="ignore" style="\n\t\t\tposition: fixed;\n\t\t\ttop: 20px;\n\t\t\tright: 20px;\n\t\t\twidth: 400px;\n\t\t\tmax-height: 80vh;\n\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t\t\tz-index: 2147483647;\n\t\t\tfont-family: var(--solomei-font-primary, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif);\n\t\t\tfont-size: var(--solomei-font-size-base, 15px);\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t">\n\t\t\t<div id="intent-debug-header" style="\n\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\tpadding: 12px 15px;\n\t\t\t\tborder-radius: var(--solomei-radius-lg, 10px) var(--solomei-radius-lg, 10px) 0 0;\n\t\t\t\tcursor: move;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tuser-select: none;\n\t\t\t">\n\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); font-size: 14px;">Intent SDK Debug</div>\n\t\t\t\t<div style="display: flex; gap: 8px;">\n\t\t\t\t\t<button id="intent-debug-minimize" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">−</button>\n\t\t\t\t\t<button id="intent-debug-close" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">×</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="intent-debug-content" style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\toverflow: hidden;\n\t\t\t\tflex: 1;\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tpadding: 12px 15px;\n\t\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t">\n\t\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); color: var(--solomei-color-foreground, #212121); margin-bottom: 8px;">Event Log</div>\n\t\t\t\t\t<div style="display: flex; gap: 8px; align-items: center;">\n\t\t\t\t\t\t<button id="intent-debug-clear" style="\n\t\t\t\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\t\tborder: none;\n\t\t\t\t\t\t\tpadding: 6px 12px;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\t\t">Clear</button>\n\t\t\t\t\t\t<span id="intent-debug-count" style="color: var(--solomei-color-text-secondary, #979797); font-size: 12px;">0 events</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id="intent-debug-events" style="\n\t\t\t\t\tflex: 1;\n\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\tpadding: 10px;\n\t\t\t\t">\n\t\t\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t',"timestamp","\n\t\tmax-width: 95%;\n\t\tmax-height: 95%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t","tagName","toLocaleTimeString","appendChild","stopPropagation","Click anywhere or press ESC to close","addEventListener"];return(Q=()=>t)()}(()=>{const t=ot,e=Q();for(;;)try{if(560065==-parseInt(t(269))/1*(parseInt(t(319))/2)+-parseInt(t(288))/3+-parseInt(t(276))/4+-parseInt(t(263))/5+parseInt(t(281))/6+parseInt(t(323))/7+parseInt(t(325))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let $,tt=[],et=!1;function nt(){const t=ot;if(!$)return;const e=$[t(315)]("#intent-debug-events"),n=$[t(315)](t(320));if(!e||!n)return;if(0===tt[t(333)])return e[t(292)]=t(277),void(n[t(273)]="0 events");const o=[...tt][t(282)]();e.innerHTML=o[t(270)](t=>(t=>{const e=ot,n=new Date(t[e(251)])[e(254)](),o=t[e(300)]&&t[e(300)][e(333)]>0,r=o?Math[e(314)](.75*t[e(300)].length/1024):0,i=F(t[e(326)]),a=F(JSON[e(331)](t[e(338)],null,2)),s=F(t.html),c=F(JSON[e(331)](t[e(303)],null,2));return'\n\t\t<div style="\n\t\t\tbackground: var(--solomei-color-card, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tpadding: 10px;\n\t\t\tmargin-bottom: 8px;\n\t\t">\n\t\t\t<div style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\tpadding-bottom: 8px;\n\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t">'+i+'</div>\n\t\t\t\t<div style="\n\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t">'+n+e(312)+(o?e(268)+t[e(300)]+e(311)+r+e(305):"")+e(295)+a+e(265)+(t[e(272)]?e(309)+s+e(265):"")+'\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Bounding Box:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">'+c+e(264)})(t))[t(290)](""),n.textContent=tt[t(333)]+t(260)+(1===tt[t(333)]?"":"s")}function ot(t,e){return t-=249,Q()[t]}function rt(){const t=ot;if($)return void($[t(340)][t(317)]=t(327));const e=document[t(286)](t(297));e.innerHTML=ot(250),$=e.firstElementChild,document[t(291)].appendChild($);const n=$.querySelector("#intent-debug-close"),o=$[t(315)](t(296)),r=$[t(315)]("#intent-debug-clear");n?.[t(258)](t(275),()=>{!function(t){const e=ot;try{localStorage.setItem(I,e(t?332:343)),t?rt():(()=>{const t=ot;$&&($[t(340)][t(317)]=t(280))})()}catch{}}(!1)}),o?.addEventListener(t(275),()=>{(()=>{const t=ot;if(!$)return;const e=$[t(315)](t(316)),n=$[t(315)](t(296));e&&n&&(et=!et,et?(e[t(340)].display=t(280),$.style[t(342)]=t(259),n[t(273)]="+"):(e[t(340)].display=t(327),$[t(340)][t(342)]="400px",n[t(273)]="−"))})()}),r?.[t(258)](t(275),()=>{tt=[],nt()}),(()=>{const t=ot;if(!$)return;const e=$[t(315)]("#intent-debug-header");if(!e)return;let n=!1,o=0,r=0,i=0,a=0;e[t(258)](t(271),e=>{const o=t;if("BUTTON"===e.target[o(253)])return;n=!0;const r=$.getBoundingClientRect();i=e[o(310)]-r[o(318)],a=e[o(339)]-r[o(313)]}),document[t(258)]("mousemove",e=>{const s=t;if(!n||!$)return;e[s(330)](),o=e[s(310)]-i,r=e[s(339)]-a;const c=window[s(283)]-$[s(249)],d=window[s(336)]-$[s(299)];o=Math[s(278)](0,Math[s(341)](o,c)),r=Math[s(278)](0,Math[s(341)](r,d)),$[s(340)][s(318)]=o+"px",$[s(340)][s(313)]=r+"px",$[s(340)][s(307)]=s(337)}),document[t(258)](t(261),()=>{n=!1})})(),$.addEventListener(t(275),e=>{const n=t,o=e[n(335)];if(o[n(287)][n(284)](n(274))){const t=o;t.src&&t[n(293)][n(304)](n(321))&&(t=>{const e=ot,n=document.createElement("div");n.id=e(279),n[e(294)](e(322),"ignore"),n.style[e(308)]=e(298);const o=document.createElement(e(297));o[e(340)][e(308)]=e(252);const r=document[e(286)]("img");r[e(293)]=t,r.style[e(308)]="\n\t\tmax-width: 100%;\n\t\tmax-height: calc(95vh - 60px);\n\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.2));\n\t";const i=document[e(286)](e(297));i[e(340)].cssText=e(328);const a=document[e(286)]("button");a[e(273)]=e(267),a[e(340)].cssText="\n\t\tpadding: 12px 24px;\n\t\tbackground: var(--solomei-color-primary-button-background, #262626);\n\t\tcolor: var(--solomei-color-primary-button-color, white);\n\t\tborder: none;\n\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\tfont-size: 14px;\n\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\tcursor: pointer;\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t";const s=document[e(286)](e(297));s[e(273)]=e(257),s[e(340)][e(308)]=e(324),i.appendChild(a),i[e(255)](s),o.appendChild(r),o[e(255)](i),n[e(255)](o);const c=()=>{n.remove()};n.addEventListener(e(275),c),a[e(258)](e(275),t=>{t[e(256)](),c()}),r[e(258)](e(275),t=>{t[e(256)]()});const d=t=>{const n=e;"Escape"===t.key&&(c(),document[n(266)]("keydown",d))};document.addEventListener(e(334),d),document[e(291)][e(255)](n)})(t.src)}}),nt()}function it(){var t=["3pbJaLo","4685535ftQyCu","5103ksMlXh","38858FqqQwi","[Intent SDK] Debug panel is not available in this build. ","logEventToDebugPanel","warn","4fSDhvF","6247989XuluOK","setDebugPanel","4861722tdSDPX","5448xgfDPD","10864630hTbCem","7LLdfCP","1685006oEBgmU"];return(it=()=>t)()}function at(t,e){return t-=224,it()[t]}typeof window!==G(285)&&function(){const t=ot;try{return localStorage[t(301)](I)===t(332)}catch{return!1}}()&&(document[G(262)]===G(289)?document[G(258)]("DOMContentLoaded",()=>{rt()}):rt()),Symbol,(()=>{for(var t=at,e=it();;)try{if(588166==parseInt(t(230))/1+parseInt(t(226))/2*(parseInt(t(227))/3)+parseInt(t(234))/4*(parseInt(t(228))/5)+-parseInt(t(237))/6*(-parseInt(t(225))/7)+parseInt(t(238))/8*(-parseInt(t(229))/9)+-parseInt(t(224))/10+-parseInt(t(235))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const st=ct;function ct(t,e){return t-=443,yt()[t]}(()=>{const t=ct,e=yt();for(;;)try{if(439838==parseInt(t(520))/1+-parseInt(t(451))/2+-parseInt(t(526))/3*(parseInt(t(473))/4)+-parseInt(t(532))/5*(parseInt(t(510))/6)+-parseInt(t(485))/7+-parseInt(t(509))/8+parseInt(t(477))/9*(parseInt(t(512))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let dt,lt,ut=0,pt=!1;const mt=st(501),ft=["button","a[href]","a",st(475),st(507),st(496),st(508),st(517)].join(",");function gt(){return P(),(()=>{const t=st;return localStorage[t(460)](y)===t(445)})()&&Boolean(C())&&(()=>{const t=st;return Boolean(localStorage[t(460)](T)?.[t(457)]().length)})()}function ht(){return!gt()||q}async function vt(e){return lt&&await lt,lt=(async()=>{const n=ct;try{const o=performance[n(453)](),r=performance[n(453)](),i=(t=>{const e=st;if(u(t))return"";const n=t[e(476)](!1);return Array[e(464)](t[e(500)])[e(533)](({name:t,value:o})=>{n[e(465)](t,o)}),t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(n[e(489)]=t[e(489)]):n[e(492)]=t[e(492)],v(n),(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&n[e(465)]("value",n[e(489)]),n[e(469)]})(e);U("[Timing] serialize: "+(performance[n(453)]()-r)[n(529)](2)+"ms");const a=e[n(466)](),s=performance[n(453)](),c={left:window.scrollX,top:window.scrollY,right:window[n(488)]+window[n(450)],bottom:window[n(463)]+window[n(458)]},d=await t(document[n(505)],{useCORS:!0,x:window[n(488)],y:window.scrollY,width:window[n(450)],height:window.innerHeight,scale:.6,logging:!1,onclone(t,e){v(t)},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(f(t))return!0;const o=t.getBoundingClientRect(),r={left:o[e(535)]+window[e(488)],top:o[e(504)]+window[e(463)],right:o[e(452)]+window[e(488)],bottom:o[e(472)]+window[e(463)]},i=100;if(r[e(452)]<c[e(535)]-i||r[e(535)]>c.right+i||r[e(472)]<c[e(504)]-i||r[e(504)]>c[e(472)]+i){const n=window[e(497)](t),{position:o}=n;if("fixed"===o||o===e(459)){const t=500;return r[e(452)]<c[e(535)]-t||r[e(535)]>c[e(452)]+t||r.bottom<c.top-t||r[e(504)]>c[e(472)]+t}return!0}return!1}}),l=performance[n(453)]()-s;U(n(515)+l[n(529)](2)+"ms");const p=performance[n(453)](),m=d[n(467)](n(478),.8),g=performance.now()-p;U(n(443)+g[n(529)](2)+"ms");return U("[Timing] capture-total: "+(performance[n(453)]()-o)[n(529)](2)+"ms"),{html:i,bbox:{x:a.x,y:a.y,w:a[n(518)],h:a[n(536)]},img:m,fullCanvas:d}}finally{lt=void 0}})(),lt}function bt(){const t=st,e=localStorage[t(460)](T),n={"Content-Type":t(486)};e&&(n["x-sl-access-token"]=e);const o=C();return o&&(n[t(447)]=o),n}function yt(){const t=["closest","[onclick]","width","/events","721335jPVtNi","number","blur","TEXTAREA","name","key","2479479KHzyMS","device","localhost","toFixed","html","stringify","5ucknQq","forEach","bbox","left","height","[Timing] jpeg-encoding: ","lon","granted","entries","x-intent-sid","visibilitychange","target","innerWidth","558702iJzGyl","right","now","getAttribute","tagName","context","trim","innerHeight","absolute","getItem","INPUT","storage","scrollY","from","setAttribute","getBoundingClientRect","toDataURL","addEventListener","outerHTML","load","pointerdown","bottom","4YOAimi","focus",'input[type="submit"]',"cloneNode","27swnNxY","image/jpeg","POST","pixel body fallback failed","intent","click","href","scroll","4754218eTTlpV","application/json","hostname","scrollX","value","lat","page-blur","textContent","img","page-focus","hidden",'[role="button"]',"getComputedStyle","toISOString","referrer","attributes","__intent__sdk__initialized__","hasFocus","defineProperty","top","body","/p.gif",'input[type="button"]','[role="link"]',"4836672lABLqJ","3357474wMSGBl","aria-label","8892280XEsQMI","input-submit","omit","[Timing] html2canvas-pro: "];return(yt=()=>t)()}async function wt(t,e,n,o){const r=st;if(!gt())return;const i={...e,localTime:(new Date)[r(498)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=g(n)?d(n):n[r(489)]);let a="",s={x:0,y:0,w:0,h:0},c="";const l=!("scroll"===t||t===r(491)||"page-focus"===t),u=Date[r(453)](),p=u-ut>=0;let m=o;const f="click"===t||t===r(513)||"pageview"===t;l&&(f&&!m||!m&&p)&&(m=await vt(n),ut=u),m&&(a=m[r(530)],s=m[r(534)],c=m[r(493)]);const h="page-blur"===t||t===r(494)||"pageview"===t,v={ts:Date.now(),event:t,props:i,html:h?"":a,bbox:s,img:c};await async function(t){const e=st,n=(localStorage[e(460)](E)??L)+e(519),o=localStorage.getItem(T)??void 0,r=JSON.stringify({...t,clientId:o});try{if((await fetch(n,{method:e(479),headers:bt(),body:r,keepalive:!0,credentials:e(514)})).ok)return}catch{}try{await(async t=>{const e=st,n=(localStorage[e(460)](E)??L)+e(506);if(!(await fetch(n,{method:e(479),headers:bt(),body:JSON[e(531)](t),keepalive:!0,credentials:e(514),cache:"no-store"})).ok)throw new Error(e(480))})(t)}catch{}}(v)}async function xt(t={}){const e=st;if(!gt())return;const n=typeof t[e(490)]===e(521)&&typeof t[e(444)]===e(521);if(n&&X)return;if(!n&&pt)return;const o=localStorage[e(460)]("intent:data-ip"),i={context:await r()};o&&(i.ip=o);for(const[n,o]of Object[e(446)](t))i[n]=o;await wt(e(456),i,document[e(505)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),!n&&(pt=!0)}async function It(){await(async(t,e)=>{const n=J,o={canRequest:e(),geoEnabled:Y(),deviceGeoSent:X};if(!o[n(523)]||!o.geoEnabled||o.deviceGeoSent)return;if(!("geolocation"in navigator))return;if(V)return;V=!0,q=!0;const r={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[n(508)]();try{await(navigator[n(503)]?.[n(502)]({name:"geolocation"}))}catch(t){}await new Promise(t=>{let e=!1;const n=async(n,o,r)=>{const i=J;e||(e=!0,Number.isFinite(n)&&Number[i(499)](o)&&(await(async(t,e,n)=>{const o=ct;await xt({lat:t,lon:e,source:o(527),...n})})(n,o,r),X=!0),V=!1,q=!1,R=!0,t())};navigator.geolocation.getCurrentPosition(t=>{const e=J,o=t[e(510)];n(o.latitude,o[e(509)],{accuracy:o[e(511)],altitude:typeof o[e(521)]===e(520)?o[e(521)]:void 0,altitudeAccuracy:typeof o[e(501)]===e(520)?o[e(501)]:void 0,heading:typeof o[e(506)]===e(520)?o[e(506)]:void 0,speed:typeof o[e(525)]===e(520)?o[e(525)]:void 0,timestamp:t[e(514)],visibility:document.visibilityState,focused:document[e(495)]()})},t=>{const e=J,o=t?.[e(507)],r={error:{code:o,name:e(1===o?497:2===o?517:3===o?526:527),message:t?.[e(500)]??""},online:navigator.onLine,visibility:document.visibilityState,focused:document[e(495)](),secure:window.isSecureContext,proto:location[e(512)],host:location[e(493)]};n(void 0,void 0,r)},r)})})(0,gt)}function St(){(t=>{const e=J;if(W||!Y()||X)return;W=!0;const n=()=>{const e=J;window[e(522)](e(519),n,!0),window[e(522)]("keydown",n,!0),t()};window[e(515)](e(519),n,!0),window.addEventListener("keydown",n,!0)})(It)}P();let Tt=!document[st(495)]&&document.hasFocus(),kt=document[st(502)]();function Et(){const t=st;if(ht())return;const e=!document[t(495)]&&document.hasFocus();e&&(kt=!0),kt||e?e!==Tt&&(Tt=e,wt(t(e?494:491),{},document[t(505)])):Tt=e}function Mt(){const t=st;(()=>{const t=globalThis;return!t[mt]&&(Object[st(503)](t,mt,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(468)](t(470),()=>{const e=t;gt()&&(xt(),(window.isSecureContext||location[e(487)]===e(528))&&(Y()&&St(),window[e(468)](e(474),()=>{_()&&It()}),document.addEventListener("visibilitychange",()=>{!document[e(495)]&&_()&&It()})))}),window.addEventListener(t(462),e=>{const n=t;e[n(525)]===y&&((()=>{const t=st;return localStorage.getItem(y)===t(445)})()?(pt=!1,xt(),Y()&&St()):(pt=!1,Z())),e[n(525)]===w&&(Y()?St():Z())}),window[t(468)]("load",()=>{const e=t;gt()&&wt("pageview",{url:window.location[e(483)],title:document.title,ref:document[e(499)]},document[e(505)])}),addEventListener(t(471),(()=>{let e=0;return(...n)=>{const o=Date[O(334)]();o-e>=50&&(e=o,(e=>{const n=t;if(ht())return;const o=e[n(449)]instanceof Element?e[n(449)][n(516)](ft):null;o instanceof HTMLElement&&(dt=vt(o))})(...n))}})(),{capture:!0,passive:!0}),addEventListener(t(482),async e=>{const n=t;if(ht())return;if(!(e[n(449)]instanceof Element))return;const o=e[n(449)].closest(ft);if(!(o instanceof HTMLElement))return;const r=(t=>{const e=st;return t[e(454)](e(511))??t.title??t[e(492)]?.[e(457)]()??"<no visible label>"})(o);(async()=>{const t=dt?await dt:void 0;dt=void 0,wt("click",{tag:o.tagName,label:r},o,t)})()},!0),addEventListener("keydown",e=>{const n=t;if(!ht()&&"Enter"===e[n(525)]){const t=e.target;if(t instanceof HTMLElement&&(t.tagName===n(461)||t[n(455)]===n(523))){const e=t instanceof HTMLInputElement?t[n(524)]:void 0;wt("input-submit",{tag:t.tagName,name:e??(t.id||void 0)},t)}}},{capture:!0}),[t(474),t(522)][t(533)](e=>{window[t(468)](e,Et)}),document[t(468)](t(448),Et),window[t(468)](t(484),(()=>{let e;return(...n)=>{void 0!==e&&window.clearTimeout(e),e=window.setTimeout(()=>{e=void 0,(()=>{const e=t;ht()||wt(e(484),{scrollX:window.scrollX,scrollY:window.scrollY},document.body)})(...n)},250)}})(),{passive:!0}),window[t(481)]??={send(e,n){const o=t;gt()&&wt(e,n,document[o(505)])}})}function Lt(t,e){return t-=195,Ct()[t]}function At(t,e){const n=Lt;try{if(void 0===e)return;localStorage[n(196)](t,e?t===n(219)?n(223):n(221):"disabled")}catch{}}function Dt(t){At(Lt(219),t)}function Ct(){const t=["112739foAkgj","number","geo","829473iJvPEr","[Intent SDK] ⚠️ Debug panel is enabled. This feature is NOT recommended for production use. ","setItem","warn","3325smyfrJ","debug","intent:data-ip","sidMaxAgeSeconds","11290JWMLAr","7624HLphbU","974XYfsdi","intent:data-sid-max-age","undefined","4tfSyMP","consent","isFinite","now","It exposes internal SDK behavior and should only be used during development.","debugPanel","https://intent.callimacus.ai","395991ciEwCZ","randomUUID","174WWyvrr","intent:geo","613tveFEP","intent:consent","baseUrl","enabled","intent:data-base-url","granted","intent_sid","100aURuHl","intent:debug","5418972cIfXtK"];return(Ct=()=>t)()}function zt(t){At("intent:geo",t)}function Nt(t){At("intent:debug",t)}function Ht(t){}function Bt(t={}){const e=Lt;localStorage[e(196)]("intent:data-client-id",t.clientId??""),localStorage.setItem(e(200),t.ip??""),localStorage[e(196)](e(222),t[e(220)]??e(213)),typeof t[e(201)]===e(229)&&localStorage.setItem(e(205),String(t.sidMaxAgeSeconds)),At("intent:consent",t[e(208)]),At(e(217),t[e(230)]),At(e(226),t[e(199)]),e(212),t.consent&&(z(e(224))||N(typeof crypto!==e(206)&&"function"==typeof crypto[e(215)]?crypto.randomUUID():Date[e(210)]()+"-"+Math.random(),t.sidMaxAgeSeconds)),Mt()}function Pt(){return z("intent_sid")}function Ot(){P()}function Ut(){H()}function jt(t){const e=Lt;Number[e(209)](t)&&localStorage[e(196)](e(205),String(t));const n=z(e(224));n&&N(n,t)}(()=>{const t=Lt,e=Ct();for(;;)try{if(449955==-parseInt(t(218))/1*(-parseInt(t(204))/2)+-parseInt(t(231))/3*(-parseInt(t(207))/4)+-parseInt(t(202))/5*(parseInt(t(216))/6)+parseInt(t(198))/7*(-parseInt(t(203))/8)+parseInt(t(214))/9+-parseInt(t(225))/10*(parseInt(t(228))/11)+parseInt(t(227))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();export{Ut as clearIntentSessionId,Ot as ensureIntentSessionId,Pt as getIntentSessionId,Bt as initIntent,Dt as setConsent,Nt as setDebug,Ht as setDebugPanel,At as setFlag,zt as setGeo,jt as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){return t-=368,o()[t]}function o(){const t=["function","reclined","brand","devicePixelRatio","Tilt: ","cookieEnabled"," (UTC","navigation","User agent: ","padStart"," | "," ms","transferSize","toFixed","DeviceOrientationEvent","colorDepth","rttMs","platform","1796HXZEWT","DateTimeFormat","entryType","max","type","innerWidth","enabled","Referrer: ","timeZone","join","referrer","1970448cWCwhi","-bit)","getBattery","doNotTrack","length","rtt","level","PWA: ","getEntriesByType"," cores","Device geolocation: disabled","maxTouchPoints","filter","round","°, γ ",", orientation "," (mobile)","Device geolocation: enabled","hardwareConcurrency","deviceorientation","inferred","1003341izWbfI","13533303VNNCvw","70456gPZZde","encodedBodySize","coarse","language","no SW"," (β ","beta","gamma","isSecureContext","(pointer: fine)","charging","userAgentData","; DNT: ","abs","requestStart","Platform: ","Battery: ","find","connection","Online: ","Network: ","fine","1791093bibqaF","removeEventListener","x (avail ","CookiesEnabled: ","5153244YWTqap"," Mbps","addEventListener","Pointer/Touch: ","yes","startsWith","effectiveType","Languages: ","resolvedOptions","resource","number","TTFB ~","duration","matches","isArray","undefined",", display-mode standalone: ","TTFB","not charging","languages","brands","floor","1395urMUih","Timezone: ","SW-controlled","getTimezoneOffset","downlinkMbps","toString","Viewport: ","(pointer: coarse)","push","setTimeout","flat","map","height","Language: ","isFinite","CPU: ","innerHeight","orientation","685PvZBFf"];return(o=()=>t)()}async function r(){const t=n,e=(new(Intl[t(459)]))[t(407)]()[t(466)],o=(t=>{const e=n,o=t<=0?"+":"-",r=Math[e(386)](t);return""+o+String(Math[e(420)](r/60))[e(449)](2,"0")+":"+String(r%60)[e(449)](2,"0")})((new Date)[t(424)]()),r=[];r[t(429)](t(434)+navigator[t(376)]),navigator[t(418)]?.length&&r[t(429)](t(406)+navigator.languages[t(467)](", ")),r.push(t(448)+navigator.userAgent);const i=function(){const t=n;if(!(t=>{const e=n;return e(384)in t&&typeof t[e(384)]!==e(414)})(navigator))return;const e=navigator.userAgentData,o=Array[t(413)](e[t(419)])?e.brands[t(432)](e=>e[t(442)]+" "+e.version)[t(467)](", "):void 0,r=e[t(457)]?""+e.platform+(e.mobile?t(485):""):void 0;return[o&&"UA brands: "+o,r&&t(388)+r][t(481)](Boolean)[t(467)](t(450))||void 0}();i&&r[t(429)](i),r[t(429)](t(422)+e+t(446)+o+")"),r[t(429)]("Local time: "+(new Date)[t(426)]());const a=window[t(443)]||1;r[t(429)]("Screen: "+screen.width+"x"+screen[t(433)]+" @"+a+t(397)+screen.availWidth+"x"+screen.availHeight+", "+screen[t(455)]+t(470));const s=screen.orientation&&"type"in screen[t(438)]?screen[t(438)][t(462)]:void 0;r[t(429)](t(427)+window[t(463)]+"x"+window[t(437)]+(s?t(484)+s:"")),r[t(429)](t(436)+navigator[t(368)]+t(478));const c=await async function(){const t=n,e=[];let o="browser API";if((t=>{const e=n;return e(391)in t&&void 0!==t[e(391)]})(navigator)){const n=navigator.connection;n?.effectiveType&&e.push(n[t(405)]),"number"==typeof n?.downlink&&e[t(429)]("~"+n.downlink+t(400)),typeof n?.rtt===t(409)&&e[t(429)](n[t(474)]+t(451)),n?.saveData&&e[t(429)]("saveData")}else{const r=((t=20)=>{const e=n,o=performance[e(477)](e(447))[e(390)](t=>t.entryType===e(447)),r=o?Math[e(461)](0,o.responseStart-o[e(387)]):void 0,i=performance[e(477)](e(408))[e(481)](t=>t[e(460)]===e(408));let a=0,s=0;for(const n of i.slice(0,Math[e(461)](0,t))){const t=n[e(374)]>0?n[e(374)]:n[e(452)]>0?n[e(452)]:0,o=n[e(411)];t>0&&o>0&&Number[e(435)](o)&&(a+=t,s+=o)}const c=s>0?8*a/s:void 0;return{downlinkMbps:typeof c===e(409)?c/1e3:void 0,rttMs:r}})();typeof r[t(425)]===t(409)&&e[t(429)]("~"+r.downlinkMbps[t(453)](1)+" Mbps"),"number"==typeof r[t(456)]&&e[t(429)](t(410)+Math[t(482)](r[t(456)])+t(451)),o=t(370)}const r=performance[t(477)](t(447))[t(390)](e=>e[t(460)]===t(447));if(r){const n=Math[t(461)](0,r.responseStart-r[t(387)]);!e.some(e=>e[t(404)](t(416)))&&e[t(429)](t(410)+Math.round(n)+" ms")}return e[t(473)]?t(393)+e[t(467)](", ")+" ("+o+")":void 0}();c&&r[t(429)](c),r[t(429)]((()=>{const t=n,e=typeof matchMedia===t(440)&&matchMedia(t(428))[t(412)],o=typeof matchMedia===t(440)&&matchMedia(t(382))[t(412)],r=e?t(375):o?t(394):"unknown",i=navigator[t(480)];return t(402)+r+", maxTouchPoints "+i})());const d=await async function(){const t=n;if((t=>{const e=n;return e(471)in t&&typeof t[e(471)]===e(440)})(navigator))try{const e=await navigator.getBattery(),n=Math[t(482)](100*e[t(475)]),o=[(Number[t(435)](n)?n:0)+"%",e[t(383)]?t(383):t(417)];return t(389)+o[t(467)](", ")}catch{}}();d&&r[t(429)](d),r[t(429)](t(398)+(navigator[t(445)]?t(403):"no")+t(385)+(navigator[t(472)]??"n/a")),r[t(429)](t(392)+(navigator.onLine?"yes":"no")),document[t(468)]&&r[t(429)](t(465)+document[t(468)]),r[t(429)]((()=>{const t=n,e=typeof matchMedia===t(440)&&matchMedia("(display-mode: standalone)")[t(412)],o=Boolean(navigator.serviceWorker?.controller);return t(476)+t(o?423:377)+t(415)+(e?t(403):"no")})());const l=await async function(t=400){const e=n;if(e(454)in window&&window[e(381)])return new Promise(o=>{const r=e;let i=!1;const a=t=>{const e=n,r=typeof t[e(379)]===e(409)?t[e(379)]:void 0,s="number"==typeof t[e(380)]?t[e(380)]:void 0;if(void 0===r||void 0===s)return;if(i)return;i=!0,window[e(396)](e(369),a);const c=((t,e)=>{const o=n,r=Math[o(386)](t),i=Math[o(386)](e);return r<15&&i<15?o(431):r>=60?"upright":o(441)})(r,s);o(e(444)+c+e(378)+Math[e(482)](r)+e(483)+Math[e(482)](s)+"°)")};window[r(430)](()=>{const t=r;i||(i=!0,window[t(396)](t(369),a),o(void 0))},t),window[r(401)](r(369),a,{passive:!0})})}();l&&r[t(429)](l);const u=localStorage.getItem("intent:geo")===t(464);return r[t(429)](t(u?486:479)),r[t(467)](" | ")}(()=>{const t=n,e=o();for(;;)try{if(986493==-parseInt(t(371))/1+-parseInt(t(469))/2+parseInt(t(395))/3+-parseInt(t(458))/4*(parseInt(t(439))/5)+-parseInt(t(399))/6+parseInt(t(372))/7+parseInt(t(373))/8*(parseInt(t(421))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const i=c;(()=>{const t=c,e=f();for(;;)try{if(635338==parseInt(t(502))/1*(parseInt(t(507))/2)+parseInt(t(500))/3*(parseInt(t(495))/4)+parseInt(t(503))/5+parseInt(t(506))/6*(-parseInt(t(510))/7)+-parseInt(t(504))/8*(parseInt(t(499))/9)+parseInt(t(508))/10*(-parseInt(t(505))/11)+-parseInt(t(498))/12*(-parseInt(t(509))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const a=i(497),s="intent:geo";function c(t,e){return t-=493,f()[t]}const d=i(501),l=i(494),u="intent:data-client-id",p="intent:data-base-url",m=i(493);function f(){const t=["12qDQfwS","6930eYHjhr","3yiHFZE","intent:debug","720376PPtyhg","1828915nFXsNR","3272AIHoeH","3289wINTwU","636TpRTeZ","2uTwLnX","38500RAXTuJ","15001779SBlrpG","31220ItmeEb","intent:data-sid-max-age","intent:debug-panel","1336144bhaRfQ","https://intent.callimacus.ai","intent:consent"];return(f=()=>t)()}const g=i(496),h=v;function b(...t){const e=v;try{"undefined"!=typeof localStorage&&localStorage.getItem(d)===e(441)&&console[e(446)](...t)}catch{}}function v(t,e){return t-=425,x()[t]}(()=>{const t=v,e=x();for(;;)try{if(536209==-parseInt(t(428))/1+-parseInt(t(432))/2*(parseInt(t(438))/3)+parseInt(t(442))/4+-parseInt(t(440))/5*(parseInt(t(458))/6)+-parseInt(t(445))/7+parseInt(t(443))/8+parseInt(t(427))/9*(parseInt(t(426))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const y=Object[h(454)](new Set([h(448),"combobox",h(439)])),w=[h(457),h(461),h(435),h(450),...[...y][h(425)](t=>h(460)+t+'"]')][h(431)](", ");function x(){const t=["innerText","select","has","setTimeout","3Hqgsts","searchbox","10okdjhx","enabled","3969368FnMZrp","480536sARkkx","role","3257765FerNUU","log","&gt;","textbox","replace","[contenteditable]","value","body","parentElement","freeze","now","isContentEditable","input","1318404TkEMTZ","&quot;",'[role="',"textarea","getAttribute","map","54370SHkXZl","1359hRYjXK","157262TUAunn","contenteditable","plaintext-only","join","550124XZkxga","&amp;"];return(x=()=>t)()}function I(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement}function S(t){const e=h;if(I(t))return!0;if(t instanceof HTMLElement&&t[e(456)])return!0;const n=t[e(462)](e(444))?.toLowerCase();return!(!n||!y[e(436)](n))}function k(t){const e=h;return t[e(449)](/&/g,e(433)).replace(/</g,"&lt;")[e(449)](/>/g,e(447))[e(449)](/"/g,e(459))[e(449)](/'/g,"&#039;")}const T=C;(()=>{const t=C,e=P();for(;;)try{if(384498==-parseInt(t(512))/1*(parseInt(t(519))/2)+parseInt(t(505))/3+-parseInt(t(506))/4+-parseInt(t(498))/5*(parseInt(t(469))/6)+-parseInt(t(465))/7*(-parseInt(t(515))/8)+parseInt(t(476))/9*(parseInt(t(492))/10)+parseInt(t(541))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const E=T(516),M=T(534),L=new Set([T(547),T(542),T(517),T(501),T(533),"username","email",T(487),"organization",T(462),T(510),"address-line1",T(562),T(466),T(472),T(461),"address-level3",T(527),T(484),T(521),"postal-code","cc-name",T(567),"cc-additional-name",T(483),T(482),T(537),T(463),T(561),T(491),T(485),T(530),T(566),T(480),"bday-year",T(473),"webauthn"]);function C(t,e){return t-=460,P()[t]}function A(t){return"<"+(t=>{const e=T,n=(t[e(513)]?.(M)??"")[e(493)]();if(n)return n;const o=t[e(513)]?.(e(523))||"",r=S(t)?o.toLowerCase().trim().split(/\s+/)[e(564)](Boolean):[];if(t instanceof HTMLInputElement&&"password"===t[e(500)])return e(528);for(const t of r){const n=H[e(526)](t);if(n)return n}const i=t.getAttribute?.(E)?.[e(460)]();return e("mask"===i?553:518)})(t)+">"}const H=new Map([[T(547),T(495)],[T(542),T(470)],[T(501),"Last name"],["additional-name",T(548)],[T(533),T(467)],["username",T(497)],[T(560),T(499)],[T(487),"Phone"],[T(510),T(538)],[T(529),"Address line 1"],[T(562),T(536)],[T(466),T(557)],[T(472),T(468)],[T(461),T(531)],[T(502),T(549)],["address-level4",T(543)],["postal-code",T(552)],[T(484),T(565)],[T(521),T(496)],[T(475),T(524)],[T(567),"Cardholder first name"],["cc-family-name",T(504)],[T(488),T(507)],[T(482),T(477)],["cc-exp",T(479)],["cc-exp-month","Expiration month"],[T(561),T(486)],[T(491),T(525)],[T(485),T(503)],["bday","Birthday"],[T(566),T(508)],[T(480),T(540)],[T(544),T(532)],[T(535),T(514)],[T(462),T(522)],[T(473),"Sex"],["webauthn",T(545)]]);function N(t){const e=T;return t[e(539)](e(489))||t.getAttribute(E)?.[e(460)]()===e(556)}function D(t){const e=T,n=t[e(513)](E);return""===n||"mask"===n?.[e(460)]()}function z(t){const e=T;let n=t;for(;n&&n!==document[e(550)];){if(N(n))return!0;n=n[e(471)]??void 0}return!1}function B(t){return!(N(t)||!D(t)&&!(t=>{const e=T;if(t instanceof HTMLInputElement){if(t.type===e(464))return!0;if(t.type===e(554))return!1;const n=t.getAttribute(e(558));if("searchbox"===n?.[e(460)]())return!1;if((t[e(523)]||"")[e(460)]()[e(493)]()[e(509)](/\s+/).filter(Boolean).some(t=>L.has(t)))return!0}if(t instanceof HTMLTextAreaElement&&(t[e(523)]||"")[e(460)]()[e(493)]()[e(509)](/\s+/)[e(564)](Boolean)[e(551)](t=>L[e(474)](t)))return!0;if(t instanceof HTMLSelectElement&&(t[e(523)]||"")[e(460)]().trim()[e(509)](/\s+/).filter(Boolean)[e(551)](t=>L[e(474)](t)))return!0;if(S(t)&&!I(t)){const n=t[e(513)]("role")?.[e(460)]();if("searchbox"===n)return!1;if((t[e(513)](e(523))||"")[e(460)]()[e(493)]()[e(509)](/\s+/)[e(564)](Boolean)[e(551)](t=>L[e(474)](t)))return!0}return!1})(t))}function P(){const t=["258zTeuGo","First name","parentElement","address-level1","sex","has","cc-name","927PMsHjA","Card number","setAttribute","Expiration date","bday-month","textContent","cc-number","cc-family-name","country","cc-type","Expiration year","tel","cc-additional-name","data-html2canvas-ignore","month","cc-csc","26150isXfOq","trim","datetime-local","Name","Country name","Username","86545mUzrfT","Email","type","family-name","address-level3","Card type","Cardholder last name","322818uwHhlt","2209488QYMZJY","Cardholder middle name","Birth day","split","street-address","week","1sLMNXd","getAttribute","Organization","1576EFkvoO","data-intent-redact","additional-name","Sensitive","285518dHEyre","date","country-name","Job title","autocomplete","Cardholder name","Security code","get","address-level4","Password","address-line1","bday","City","Birth year","nickname","data-intent-redact-label","organization","Address line 2","cc-exp","Street address","hasAttribute","Birth month","13623929ehuHUH","given-name","Neighborhood","bday-year","WebAuthn","querySelectorAll","name","Middle name","District","body","some","Postal code","Redacted","search","value","ignore","Address line 3","role","text","email","cc-exp-year","address-line2","time","filter","Country code","bday-day","cc-given-name","toLowerCase","address-level2","organization-title","cc-exp-month","password","7406ItTBUz","address-line3","Nickname","State/Province"];return(P=()=>t)()}function U(t){const e=T;if(!z(t))if(I(t)){if(B(t)){t instanceof HTMLInputElement&&[e(520),e(494),e(490),e(563),e(511)].includes(t[e(500)])&&(t[e(500)]=e(559));const n=A(t);t[e(555)]=n,t[e(478)]("value",n)}}else S(t)?B(t)&&(t[e(481)]=A(t)):t[e(539)](E)&&D(t)&&(t[e(481)]=A(t))}function O(t){const e=T;t instanceof Element&&U(t);const n=t[e(546)](w);for(const t of n)U(t);const o=t[e(546)]("["+E+"]");for(const t of o)U(t)}function j(){const t=["37896CJMPrY","178052xuGKqD","18894807sQEMHU","1852542aJpyxG","number","265wdhfGV","2855116JMhQoM","608538JaQgCN","8BSMSJM","getItem","isFinite","42608GPNdWx","intent_sid","randomUUID","Lax","location","https:"];return(j=()=>t)()}function F(t,e){return t-=118,j()[t]}(()=>{const t=F,e=j();for(;;)try{if(363568==-parseInt(t(119))/1+parseInt(t(129))/2+-parseInt(t(121))/3+-parseInt(t(124))/4+-parseInt(t(123))/5*(parseInt(t(118))/6)+parseInt(t(125))/7+-parseInt(t(126))/8*(-parseInt(t(120))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let R="";function X(){return R}function W(t){return e.get(t)}function q(t,n){const o=F,r=localStorage[o(127)](m),i=null===r?void 0:Number(r),a=typeof n===o(122)&&Number[o(128)](n)?n:"number"==typeof i&&Number.isFinite(i)?i:2592e3,s=window[o(133)].protocol===o(134);e.set(o(130),t,{expires:a/86400,path:"/",sameSite:o(132),...s&&{secure:!0}})}function J(){e.remove(F(130),{path:"/"})}function Y(){const t=F,e=W(t(130));if("granted"!==localStorage[F(127)](a))return e&&J(),void(R="");e?R=e:(R=crypto[t(131)](),q(R))}function Z(t,e){return t-=237,_()[t]}function _(){const t=["7539120jXsPzm","4637206jQZmuG","altitude","onLine","PERMISSION_DENIED","permissions","enabled","96iQmYHf","pointerdown","isSecureContext","UNKNOWN","9452lVOofn","POSITION_UNAVAILABLE","hasFocus","number","geolocation","query","2SkgEPI","keydown","9714612UhoWCZ","canRequest","heading","isFinite","accuracy","24soTUda","17045NidwHc","altitudeAccuracy","visibilityState","deviceGeoSent","latitude","2574bGTkUL","now","geoEnabled","8zvCKUw","addEventListener","timestamp","14370rvywWD","86220OtoVuA","longitude","speed","getItem","getCurrentPosition"];return(_=()=>t)()}(()=>{const t=Z,e=_();for(;;)try{if(473043==-parseInt(t(261))/1*(parseInt(t(241))/2)+parseInt(t(273))/3*(-parseInt(t(277))/4)+-parseInt(t(249))/5*(parseInt(t(248))/6)+-parseInt(t(267))/7*(parseInt(t(257))/8)+parseInt(t(266))/9+parseInt(t(260))/10*(-parseInt(t(254))/11)+parseInt(t(243))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let G=!1,K=!1,V=!1,Q=!1,$=!1;function tt(){const t=Z;return localStorage[t(264)](s)===t(272)}function et(){G=!1,V=!1,$=!1}function nt(){return!G&&tt()&&!Q&&$}function ot(){const t=["src","width","loading","length","randomUUID","push",'</div>\n\t\t\t\t<div style="\n\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t">',"classList","display","textContent","</div>\n\t\t\t</div>\n\t\t\t","mousemove","flex"," KB)</div>\n\t\t\t\t</div>\n\t\t\t","getBoundingClientRect","intent-debug-screenshot","2029080hhRhap","style","target","#intent-debug-count","remove","#intent-debug-clear","innerHeight","button","\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t","addEventListener","props","85016foXVQw","64qKEHmG","innerWidth","mouseup","offsetHeight","\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t","#intent-debug-events","200px",'\n\t\t<div style="\n\t\t\tbackground: var(--solomei-color-card, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tpadding: 10px;\n\t\t\tmargin-bottom: 8px;\n\t\t">\n\t\t\t<div style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\tpadding-bottom: 8px;\n\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t">',"click","html","function","reverse","400px",'" \n\t\t\t\t\t\tclass="intent-debug-screenshot" \n\t\t\t\t\t\tstyle="\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t" \n\t\t\t\t\t\ttitle="Click to view fullscreen"/>\n\t\t\t\t\t<div style="\n\t\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\tmargin-top: 4px;\n\t\t\t\t\t">Screenshot (~',"img","mousedown","map","BUTTON","none","readyState","createElement","clientY","event","right","join","key","undefined",'\n\t\t<div id="intent-debug-panel" data-intent-redact="ignore" style="\n\t\t\tposition: fixed;\n\t\t\ttop: 20px;\n\t\t\tright: 20px;\n\t\t\twidth: 400px;\n\t\t\tmax-height: 80vh;\n\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t\t\tz-index: 2147483647;\n\t\t\tfont-family: var(--solomei-font-primary, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif);\n\t\t\tfont-size: var(--solomei-font-size-base, 15px);\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t">\n\t\t\t<div id="intent-debug-header" style="\n\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\tpadding: 12px 15px;\n\t\t\t\tborder-radius: var(--solomei-radius-lg, 10px) var(--solomei-radius-lg, 10px) 0 0;\n\t\t\t\tcursor: move;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tuser-select: none;\n\t\t\t">\n\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); font-size: 14px;">Intent SDK Debug</div>\n\t\t\t\t<div style="display: flex; gap: 8px;">\n\t\t\t\t\t<button id="intent-debug-minimize" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">−</button>\n\t\t\t\t\t<button id="intent-debug-close" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">×</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="intent-debug-content" style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\toverflow: hidden;\n\t\t\t\tflex: 1;\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tpadding: 12px 15px;\n\t\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t">\n\t\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); color: var(--solomei-color-foreground, #212121); margin-bottom: 8px;">Event Log</div>\n\t\t\t\t\t<div style="display: flex; gap: 8px; align-items: center;">\n\t\t\t\t\t\t<button id="intent-debug-clear" style="\n\t\t\t\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\t\tborder: none;\n\t\t\t\t\t\t\tpadding: 6px 12px;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\t\t">Clear</button>\n\t\t\t\t\t\t<span id="intent-debug-count" style="color: var(--solomei-color-text-secondary, #979797); font-size: 12px;">0 events</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id="intent-debug-events" style="\n\t\t\t\t\tflex: 1;\n\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\tpadding: 10px;\n\t\t\t\t">\n\t\t\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t',"\n\t\tmax-width: 100%;\n\t\tmax-height: calc(95vh - 60px);\n\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.2));\n\t","tagName","now","data:image/","appendChild",'\n\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t</div>\n\t\t',"#intent-debug-content","getItem","auto","Escape"," event","#intent-debug-close","20lghKOF","41187mhPeOt","startsWith","offsetWidth","1412509isHDAU","653059ApjfeE","72073cyvceF","clientX","setItem","enabled","#intent-debug-minimize","setAttribute","stringify","innerHTML","ignore","</pre>\n\t\t\t\t\t","#intent-debug-header","random","div","DOMContentLoaded","stopPropagation","3448JfuljV","380YwDzXP","disabled","cssText","data-intent-redact","max",'\n\t\t\t<details style="margin-top: 8px;">\n\t\t\t\t<summary style="\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\tuser-select: none;\n\t\t\t\t">View Details</summary>\n\t\t\t\t<div style="\n\t\t\t\t\tmargin-top: 8px;\n\t\t\t\t\tpadding: 8px;\n\t\t\t\t\tbackground: var(--solomei-color-secondary, #fafaf9);\n\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t">\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Properties:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">',"387NpkFRJ","left",'\n\t\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>HTML:</strong></div>\n\t\t\t\t\t\t<pre style="\n\t\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t">',"timestamp","✕ Close","min","preventDefault","querySelector",'\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="'];return(ot=()=>t)()}const rt=dt;(()=>{const t=dt,e=ot();for(;;)try{if(230937==-parseInt(t(342))/1+-parseInt(t(296))/2*(-parseInt(t(337))/3)+parseInt(t(357))/4*(parseInt(t(358))/5)+parseInt(t(389))/6+-parseInt(t(340))/7+-parseInt(t(295))/8*(parseInt(t(364))/9)+-parseInt(t(336))/10*(-parseInt(t(341))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let it,at=[],st=!1;function ct(){const t=dt;if(!it)return;const e=it[t(371)](t(301)),n=it[t(371)](t(287));if(!e||!n)return;if(0===at[t(376)])return e.innerHTML=t(329),void(n[t(382)]="0 events");const o=[...at][t(307)]();e[t(349)]=o[t(312)](t=>(t=>{const e=dt,n=new Date(t[e(367)]).toLocaleTimeString(),o=t[e(310)]&&t.img[e(376)]>0,r=o?Math.round(.75*t[e(310)].length/1024):0,i=k(t[e(318)]),a=k(JSON[e(348)](t[e(294)],null,2)),s=k(t[e(305)]),c=k(JSON[e(348)](t.bbox,null,2));return e(303)+i+e(379)+n+e(383)+(o?e(372)+t[e(310)]+e(309)+r+e(386):"")+e(363)+a+e(351)+(t[e(305)]?e(366)+s+e(351):"")+'\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Bounding Box:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">'+c+"</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t"})(t))[t(320)](""),n[t(382)]=at[t(376)]+t(334)+(1===at[t(376)]?"":"s")}function dt(t,e){return t-=287,ot()[t]}function lt(){const t=dt;if(it)return void(it[t(390)].display=t(385));const e=document[t(316)](t(354));e[t(349)]=dt(323),it=e.firstElementChild,document.body[t(328)](it);const n=it[t(371)](t(335)),o=it[t(371)](t(346)),r=it[t(371)](t(289));n?.[t(293)](t(304),()=>{!function(t){const e=dt;try{localStorage[e(344)](l,e(t?345:359)),t?lt():(()=>{const t=dt;it&&(it[t(390)].display=t(314))})()}catch{}}(!1)}),o?.[t(293)](t(304),()=>{(()=>{const t=dt;if(!it)return;const e=it.querySelector(t(330)),n=it[t(371)]("#intent-debug-minimize");e&&n&&(st=!st,st?(e[t(390)][t(381)]=t(314),it[t(390)][t(374)]=t(302),n.textContent="+"):(e.style[t(381)]=t(385),it[t(390)].width=t(308),n[t(382)]="−"))})()}),r?.[t(293)](t(304),()=>{at=[],ct()}),(()=>{const t=dt;if(!it)return;const e=it[t(371)](t(352));if(!e)return;let n=!1,o=0,r=0,i=0,a=0;e[t(293)](t(311),e=>{const o=t;if(e[o(391)][o(325)]===o(313))return;n=!0;const r=it[o(387)]();i=e.clientX-r[o(365)],a=e.clientY-r.top}),document.addEventListener(t(384),e=>{const s=t;if(!n||!it)return;e[s(370)](),o=e[s(343)]-i,r=e[s(317)]-a;const c=window[s(297)]-it[s(339)],d=window[s(290)]-it[s(299)];o=Math[s(362)](0,Math[s(369)](o,c)),r=Math.max(0,Math[s(369)](r,d)),it[s(390)][s(365)]=o+"px",it[s(390)].top=r+"px",it[s(390)][s(319)]=s(332)}),document[t(293)](t(298),()=>{n=!1})})(),it[t(293)](t(304),e=>{const n=t,o=e[n(391)];if(o[n(380)].contains(n(388))){const t=o;t[n(373)]&&t[n(373)][n(338)](n(327))&&(t=>{const e=dt,n=document[e(316)](e(354));n.id="intent-debug-fullscreen-modal",n[e(347)](e(361),e(350)),n[e(390)][e(360)]="\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(0, 0, 0, 0.95);\n\t\tz-index: 2147483646;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcursor: zoom-out;\n\t";const o=document[e(316)](e(354));o[e(390)][e(360)]="\n\t\tmax-width: 95%;\n\t\tmax-height: 95%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t";const r=document[e(316)](e(310));r[e(373)]=t,r[e(390)][e(360)]=e(324);const i=document[e(316)](e(354));i[e(390)][e(360)]=e(292);const a=document[e(316)](e(291));a.textContent=e(368),a[e(390)][e(360)]="\n\t\tpadding: 12px 24px;\n\t\tbackground: var(--solomei-color-primary-button-background, #262626);\n\t\tcolor: var(--solomei-color-primary-button-color, white);\n\t\tborder: none;\n\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\tfont-size: 14px;\n\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\tcursor: pointer;\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t";const s=document.createElement("div");s[e(382)]="Click anywhere or press ESC to close",s[e(390)][e(360)]=e(300),i[e(328)](a),i[e(328)](s),o.appendChild(r),o[e(328)](i),n[e(328)](o);const c=()=>{n[e(288)](),document.removeEventListener("keydown",d)};n[e(293)](e(304),c),a[e(293)]("click",t=>{t[e(356)](),c()}),r[e(293)]("click",t=>{t[e(356)]()});const d=t=>{const n=e;t[n(321)]===n(333)&&c()};document[e(293)]("keydown",d),document.body.appendChild(n)})(t[n(373)])}}),ct()}function ut(){var t=["Use the debug build variant: @solomei-ai/intent/debug or intent.debug.umd.min.js","2804025LlvRME","222336ohaVIo","1253744EDBOnl","324gDWcvK","218208MDulXH","724892MMTRfv","218008sHgSmO","undefined","3WIcLqF","warn","3146862BdaWlW"];return(ut=()=>t)()}function pt(t,e){return t-=157,ut()[t]}"undefined"!=typeof window&&function(){const t=dt;try{return localStorage[t(331)](l)===t(345)}catch{return!1}}()&&(document[rt(315)]===rt(375)?document[rt(293)](rt(355),()=>{lt()}):lt()),(()=>{for(var t=pt,e=ut();;)try{if(397212==parseInt(t(168))/1+parseInt(t(164))/2*(-parseInt(t(158))/3)+-parseInt(t(166))/4+-parseInt(t(162))/5+parseInt(t(160))/6+-parseInt(t(167))/7+-parseInt(t(163))/8*(-parseInt(t(165))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const mt=xt;function ft(){const t=["scrollX","name","absolute","key","4217367chseOj","innerHTML",'input[type="button"]',"[Timing] html2canvas-pro: ","cloneNode","width","focus","value","[Timing] jpeg-encoding: ","pageview","top","innerWidth","load","attributes","12MHkwiC","aria-label","[Timing] serialize: ","getBoundingClientRect","getItem","1736972CRcRjy","trim","7047800MPZyfG","textContent","scroll","closest","getAttribute","addEventListener","INPUT","toLowerCase","359276pOFhIs","localhost","<no visible label>","stringify","img","href","title","number","lat",'input[type="submit"]',"granted","join","html","x-sl-access-token","storage","now","keydown","location","body","fixed","hasFocus","tagName",'[role="link"]',"input-submit","[onclick]","toISOString","from","page-focus","right","page-blur","application/json","outerHTML","/events","Enter","left","innerHeight","POST","visibilitychange","no-store","5zRPpfU","blur","getComputedStyle","a[href]","forEach","hidden","600389Xhpprc","setAttribute","scrollY","TEXTAREA","bbox","target","click","3922266RRMaXY","height","intentEnter","role","CONTENTEDITABLE","intent","length","omit","toFixed","bottom","1455264IuoIFN","lon","device"];return(ft=()=>t)()}(()=>{const t=xt,e=ft();for(;;)try{if(454429==-parseInt(t(478))/1+parseInt(t(531))/2*(parseInt(t(516))/3)+-parseInt(t(521))/4+-parseInt(t(472))/5*(-parseInt(t(485))/6)+-parseInt(t(502))/7+parseInt(t(523))/8+-parseInt(t(495))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let gt,ht,bt=0,vt=!1;const yt="__intent__sdk__initialized__",wt=["button",mt(475),"a",mt(442),mt(504),'[role="button"]',mt(455),mt(457)][mt(444)](",");function xt(t,e){return t-=440,ft()[t]}function It(){return Y(),(()=>{const t=mt;return localStorage.getItem(a)===t(443)})()&&Boolean(X())&&(()=>{const t=mt;return Boolean(localStorage[t(520)](u)?.[t(522)]()[t(491)])})()}function St(){return!It()||K}async function kt(e){for(;ht;)await ht;return ht=(async()=>{const n=xt;try{const o=performance[n(448)](),r=performance[n(448)](),i=(t=>{const e=mt;if(N(t))return"";const n=t[e(506)](!1);return Array[e(459)](t[e(515)])[e(476)](({name:t,value:o})=>{n[e(479)](t,o)}),I(t)?I(n)&&(n[e(509)]=t[e(509)]):S(t)?n[e(503)]=t.innerHTML:n[e(524)]=t.textContent,O(n),I(n)&&n[e(479)]("value",n[e(509)]),n[e(464)]})(e),a=performance.now()-r;b(n(518)+a[n(493)](2)+"ms");const s=e.getBoundingClientRect(),c=performance.now(),d={left:window.scrollX,top:window[n(480)],right:window.scrollX+window[n(513)],bottom:window[n(480)]+window[n(468)]},l=await t(document.body,{useCORS:!0,x:window.scrollX,y:window[n(480)],width:window[n(513)],height:window[n(468)],scale:.6,logging:!1,onclone(t){O(t)},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(z(t))return!0;const o=t[e(519)](),r={left:o[e(467)]+window[e(498)],top:o[e(512)]+window[e(480)],right:o[e(461)]+window[e(498)],bottom:o.bottom+window.scrollY},i=100;if(r[e(461)]<d.left-i||r[e(467)]>d[e(461)]+i||r[e(494)]<d[e(512)]-i||r[e(512)]>d[e(494)]+i){const n=window[e(474)](t),{position:o}=n;if(o===e(452)||o===e(500)){const t=500;return r[e(461)]<d[e(467)]-t||r[e(467)]>d[e(461)]+t||r.bottom<d[e(512)]-t||r.top>d.bottom+t}return!0}return!1}}),u=performance[n(448)]()-c;b(n(505)+u[n(493)](2)+"ms");const p=performance[n(448)](),m=l.toDataURL("image/jpeg",.8),f=performance[n(448)]()-p;b(n(510)+f[n(493)](2)+"ms");return b("[Timing] capture-total: "+(performance[n(448)]()-o)[n(493)](2)+"ms"),{html:i,bbox:{x:s.x,y:s.y,w:s[n(507)],h:s[n(486)]},img:m,fullCanvas:l}}finally{ht=void 0}})(),ht}function Tt(){const t=mt,e=localStorage[t(520)](u),n={"Content-Type":t(463)};e&&(n[t(446)]=e);const o=X();return o&&(n["x-intent-sid"]=o),n}async function Et(t,e,n,o){const r=mt;if(!It())return;const i={...e,localTime:(new Date)[r(458)]()};S(n)&&(i[r(509)]=B(n)?A(n):(t=>{const e=h;return I(t)?t[e(451)]:t instanceof HTMLElement?t[e(434)]:t.textContent??""})(n));let a="",s={x:0,y:0,w:0,h:0},c="";const d=!(t===r(525)||t===r(462)||"page-focus"===t),l=Date[r(448)](),m=l-bt>=0;let f=o;const b=t===r(484)||t===r(456)||t===r(511);d&&(b&&!f||!f&&m)&&(f=await kt(n),bt=l),f&&(a=f[r(445)],s=f[r(482)],c=f[r(535)]);const v="page-blur"===t||t===r(460)||t===r(511),y={ts:Date[r(448)](),event:t,props:i,html:v?"":a,bbox:s,img:c};await async function(t){const e=mt,n=(localStorage[e(520)](p)??g)+e(465),o=localStorage[e(520)](u)??void 0,r=JSON[e(534)]({...t,clientId:o});try{if((await fetch(n,{method:e(469),headers:Tt(),body:r,keepalive:!0,credentials:e(492)})).ok)return}catch{}try{await(async t=>{const e=mt,n=(localStorage[e(520)](p)??g)+"/p.gif";if(!(await fetch(n,{method:e(469),headers:Tt(),body:JSON[e(534)](t),keepalive:!0,credentials:e(492),cache:e(471)})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(y)}async function Mt(t={}){const e=mt;if(!It())return;const n=typeof t[e(441)]===e(440)&&"number"==typeof t[e(496)];if(n&&G)return;if(!n&&vt)return;const o=localStorage[e(520)]("intent:data-ip"),i={context:await r()};o&&(i.ip=o);for(const[e,n]of Object.entries(t))i[e]=n;await Et("context",i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),!n&&(vt=!0)}async function Lt(){await(async(t,e)=>{const n=Z,o={canRequest:e(),geoEnabled:tt(),deviceGeoSent:G};if(!o[n(244)]||!o[n(256)]||o[n(252)])return;if(!(n(239)in navigator))return;if(Q)return;Q=!0,K=!0;const r={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[n(255)]();try{await(navigator[n(271)]?.[n(240)]({name:n(239)}))}catch(t){}await new Promise(t=>{let e=!1;const o=async(n,o,r)=>{const i=Z;e||(e=!0,Number[i(246)](n)&&Number[i(246)](o)&&(await(async(t,e,n)=>{const o=xt;await Mt({lat:t,lon:e,source:o(497),...n})})(n,o,r),G=!0),Q=!1,K=!1,$=!0,t())};navigator.geolocation[n(265)](t=>{const e=Z,n=t.coords;o(n[e(253)],n[e(262)],{accuracy:n[e(247)],altitude:"number"==typeof n[e(268)]?n[e(268)]:void 0,altitudeAccuracy:"number"==typeof n[e(250)]?n[e(250)]:void 0,heading:typeof n.heading===e(238)?n[e(245)]:void 0,speed:typeof n.speed===e(238)?n[e(263)]:void 0,timestamp:t[e(259)],visibility:document[e(251)],focused:document[e(237)]()})},t=>{const e=Z,n=t?.code,r={error:{code:n,name:1===n?e(270):2===n?e(278):3===n?"TIMEOUT":e(276),message:t?.message??""},online:navigator[e(269)],visibility:document.visibilityState,focused:document[e(237)](),secure:window[e(275)],proto:location.protocol,host:location.hostname};o(void 0,void 0,r)},r)})})(0,It)}function Ct(){(t=>{const e=Z;if(V||!tt()||G)return;V=!0;const n=()=>{const e=Z;window.removeEventListener(e(274),n,!0),window.removeEventListener(e(242),n,!0),t()};window[e(258)]("pointerdown",n,!0),window.addEventListener(e(242),n,!0)})(Lt)}Y();let At=!document[mt(477)]&&document[mt(453)](),Ht=document.hasFocus();function Nt(){const t=mt;if(St())return;const e=!document[t(477)]&&document[t(453)]();e&&(Ht=!0),Ht||e?e!==At&&(At=e,Et(t(e?460:462),{},document[t(451)])):At=e}function Dt(){const t=mt;(()=>{const t=globalThis;return!t[yt]&&(Object.defineProperty(t,yt,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(528)]("load",()=>{const e=t;It()&&(Mt(),(window.isSecureContext||location.hostname===e(532))&&(tt()&&Ct(),window[e(528)](e(508),()=>{nt()&&Lt()}),document.addEventListener(e(470),()=>{!document[e(477)]&&nt()&&Lt()})))}),window[t(528)](t(447),e=>{const n=t;e[n(501)]===a&&((()=>{const t=mt;return localStorage.getItem(a)===t(443)})()?(vt=!1,Mt(),tt()&&Ct()):(vt=!1,et())),e[n(501)]===s&&(tt()?Ct():et())}),window[t(528)](t(514),()=>{const e=t;It()&&Et("pageview",{url:window[e(450)][e(536)],title:document[e(537)],ref:document.referrer},document[e(451)])}),addEventListener("pointerdown",(()=>{let e=0;return(...n)=>{const o=Date[v(455)]();o-e>=50&&(e=o,(e=>{const n=t;if(St())return;const o=e[n(483)]instanceof Element?e[n(483)][n(526)](wt):null;o instanceof HTMLElement&&(gt=kt(o))})(...n))}})(),{capture:!0,passive:!0}),addEventListener(t(484),async e=>{const n=t;if(St())return;if(!(e[n(483)]instanceof Element))return;const o=e[n(483)].closest(wt);if(!(o instanceof HTMLElement))return;const r=(t=>{const e=mt,n=t.getAttribute(e(517))?.[e(522)]();if(n)return n;const o=t.title[e(522)]();if(o)return o;const r=t[e(524)]?.[e(522)]();return r||e(533)})(o);(async()=>{const t=n,e=gt?await gt:void 0;gt=void 0,Et(t(484),{tag:o[t(454)],label:r},o,e)})()},!0),addEventListener(t(449),e=>{const n=t;if(!St()&&e.key===n(466)){const t=e.target;if(!(t instanceof HTMLElement))return;const o=t[n(454)];if(o===n(529)||o===n(481)){const e=t instanceof HTMLInputElement?t.name:void 0,r=t.id||void 0;Et(n(456),{tag:o,name:e??r},t)}else if(S(t)){const e=(t=>{const e=h;let n=t;for(;n&&n!==document[e(452)];){const t=n[e(462)](e(429));if("true"===t||""===t||t===e(430))return n;n=n[e(453)]}return null})(t)??t;if("newline"===e.dataset[n(487)])return;const o=e[n(527)](n(488))?.[n(530)](),r=e.id||void 0,i=e[n(527)](n(499))||e[n(527)](n(517))||r;Et(n(456),{tag:n(489),role:o??"contenteditable",name:i},e)}}},{capture:!0}),["focus",t(473)][t(476)](e=>{window[t(528)](e,Nt)}),document.addEventListener("visibilitychange",Nt),window[t(528)]("scroll",(()=>{let e;return(...n)=>{const o=v;void 0!==e&&window.clearTimeout(e),e=window[o(437)](()=>{e=void 0,(()=>{const e=t;St()||Et(e(525),{scrollX:window.scrollX,scrollY:window.scrollY},document.body)})(...n)},250)}})(),{passive:!0}),window[t(490)]??={send(e,n){const o=t;It()&&Et(e,n,document[o(451)])}})}function zt(){const t=["clientId","51339008bpMaCC","baseUrl","random","76BZScHn","warn","[Intent SDK] ⚠️ Debug panel is enabled. This feature is NOT recommended for production use. ","debugPanel","8873136gufjYG","debug","10641008XvqEFQ","randomUUID","185475zBjyjd","sidMaxAgeSeconds","3535348xaqpJV","consent","enabled","intent:consent","disabled","isFinite","geo","intent:debug","intent:data-sid-max-age","https://intent.callimacus.ai","5143527JNxqvm","It exposes internal SDK behavior and should only be used during development.","function","undefined","intent:geo","intent_sid","intent:data-base-url","setItem","number","now","201885IfEqPb"];return(zt=()=>t)()}function Bt(t,e){const n=Ft;try{if(void 0===e)return;localStorage[n(230)](t,e?"intent:consent"===t?"granted":n(215):n(217))}catch{}}function Pt(t){Bt(Ft(216),t)}function Ut(t){Bt(Ft(227),t)}function Ot(t){Bt(Ft(220),t)}function jt(t){}function Ft(t,e){return t-=212,zt()[t]}function Rt(t={}){const e=Ft;localStorage.setItem("intent:data-client-id",t[e(234)]??""),localStorage[e(230)]("intent:data-ip",t.ip??""),localStorage[e(230)](e(229),t[e(236)]??e(222)),typeof t.sidMaxAgeSeconds===e(231)&&localStorage[e(230)]("intent:data-sid-max-age",String(t[e(212)])),Bt(e(216),t[e(214)]),Bt(e(227),t[e(219)]),Bt("intent:debug",t[e(243)]),void 0!==t[e(241)]&&e(241),t[e(214)]&&(W("intent_sid")||q(typeof crypto!==e(226)&&typeof crypto.randomUUID===e(225)?crypto[e(245)]():Date[e(232)]()+"-"+Math[e(237)](),t[e(212)])),Dt()}function Xt(){return W("intent_sid")}function Wt(){Y()}function qt(){J()}function Jt(t){const e=Ft;Number[e(218)](t)&&localStorage[e(230)](e(221),String(t));const n=W(e(228));n&&q(n,t)}(()=>{const t=Ft,e=zt();for(;;)try{if(888831==parseInt(t(246))/1+-parseInt(t(213))/2+-parseInt(t(223))/3+parseInt(t(238))/4*(parseInt(t(233))/5)+-parseInt(t(242))/6+-parseInt(t(244))/7+parseInt(t(235))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();export{qt as clearIntentSessionId,Wt as ensureIntentSessionId,Xt as getIntentSessionId,Rt as initIntent,Pt as setConsent,Ot as setDebug,jt as setDebugPanel,Bt as setFlag,Ut as setGeo,Jt as setIntentSessionMaxAge};