@solomei-ai/intent 1.11.4 → 1.11.5

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="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};
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){const e=t.parentElement;if(e)return e;const{parentNode:n}=t;return n instanceof ShadowRoot&&n.host instanceof Element?n.host:void 0}function f(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}const v="data-intent-redact",b=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 h(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?.(v)?.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 w(t){return t.hasAttribute("data-html2canvas-ignore")||"ignore"===t.getAttribute(v)?.toLowerCase()}const x=new Set;function S(t){const e=t.getAttribute(v);if(null===e)return!1;const n=e.toLowerCase();return"ignore"!==n&&(""!==e&&"mask"!==n&&(t=>{if(x.has(t))return;x.add(t);const e=`[intent] Unsupported data-intent-redact value ${JSON.stringify(t)}. Supported values are "" or "mask" (redact), "ignore" (exclude from capture). Treating as "mask" to prevent data leaks.`;try{console.warn(e)}catch{}})(e),!0)}function E(t){let e=t;for(;e&&e!==document.body;){if(w(e))return!0;e=g(e)}return!1}function T(t){return!(w(t)||!S(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=>b.has(t)))return!0}if(t instanceof HTMLTextAreaElement&&(t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>b.has(t)))return!0;if(t instanceof HTMLSelectElement&&(t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>b.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=>b.has(t)))return!0}return!1})(t))}function L(t){if(!E(t))if(m(t)){if(T(t)){t instanceof HTMLInputElement&&["date","datetime-local","month","time","week"].includes(t.type)&&(t.type="text");const e=h(t);t.value=e,t.setAttribute("value",e)}}else p(t)?T(t)&&(t.textContent=h(t)):t.hasAttribute(v)&&S(t)&&(t.textContent=h(t))}function k(t,e){const n=[],o=[t];for(t instanceof Element&&t.shadowRoot&&o.push(t.shadowRoot);o.length>0;){const t=o.pop().querySelectorAll("*");for(const i of t)i.matches(e)&&n.push(i),i.shadowRoot&&o.push(i.shadowRoot)}return n}function $(t,e=new Set){const n=t instanceof Document?t:t.ownerDocument;if(n){if(e.has(n))return;e.add(n)}t instanceof Element&&L(t);for(const e of k(t,u))L(e);for(const e of k(t,`[${v}]`))L(e);for(const n of k(t,"iframe"))if(n instanceof HTMLIFrameElement)try{const t=n.contentDocument;t&&$(t,e)}catch{}}let C="";function M(){return C}function I(t){return e.get(t)}function A(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 D(){e.remove("intent_sid",{path:"/"})}function N(){const t=I("intent_sid");if("granted"!==localStorage.getItem(o))return t&&D(),void(C="");t?C=t:(C=crypto.randomUUID(),A(C))}let z,B=!1,H=!1,O=!1,P=!1,F=!1;function U(){return"enabled"===localStorage.getItem(i)}function j(){B=!1,O=!1,F=!1}function _(){return!B&&U()&&!P&&F}let R,W=[],q=!1;function X(){try{return"enabled"===localStorage.getItem(r)}catch{return!1}}function Y(t){try{localStorage.setItem(r,t?"enabled":"disabled"),t?K():z&&(z.style.display="none")}catch{}}function J(){if(!z)return;const t=z.querySelector("#intent-debug-events"),e=z.querySelector("#intent-debug-count");if(!t||!e)return;if(0===W.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=[...W].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=f(t.event),r=f(JSON.stringify(t.props,null,2)),a=f(t.html),s=f(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=`${W.length} event${1===W.length?"":"s"}`}function K(){if(z)return void(z.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',z=t.firstElementChild,document.body.appendChild(z);const e=z.querySelector("#intent-debug-close"),n=z.querySelector("#intent-debug-minimize"),o=z.querySelector("#intent-debug-clear");e?.addEventListener("click",()=>{Y(!1)}),n?.addEventListener("click",()=>{(()=>{if(!z)return;const t=z.querySelector("#intent-debug-content"),e=z.querySelector("#intent-debug-minimize");t&&e&&(q=!q,q?(t.style.display="none",z.style.width="200px",e.textContent="+"):(t.style.display="flex",z.style.width="400px",e.textContent="−"))})()}),o?.addEventListener("click",()=>{W=[],J()}),(()=>{if(!z)return;const t=z.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=z.getBoundingClientRect();i=t.clientX-n.left,r=t.clientY-n.top}),document.addEventListener("mousemove",t=>{if(!e||!z)return;t.preventDefault(),n=t.clientX-i,o=t.clientY-r;const a=window.innerWidth-z.offsetWidth,s=window.innerHeight-z.offsetHeight;n=Math.max(0,Math.min(n,a)),o=Math.max(0,Math.min(o,s)),z.style.left=`${n}px`,z.style.top=`${o}px`,z.style.right="auto"}),document.addEventListener("mouseup",()=>{e=!1})})(),z.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)}}),J()}"undefined"!=typeof window&&X()&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{K()}):K());let V,Z=0,G=!1;const Q="__intent__sdk__initialized__",tt=["button","a[href]","a",'input[type="submit"]','input[type="button"]','[role="button"]','[role="link"]',"[onclick]"].join(",");function et(){return N(),"granted"===localStorage.getItem(o)&&Boolean(M())&&Boolean(localStorage.getItem(a)?.trim().length)}function nt(){return!et()||H}async function ot(e){for(;V;)await V;return V=(async()=>{try{const n=performance.now(),o=performance.now(),i=(t=>{if(w(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,$(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)},ignoreElements(t){if(!(t instanceof Element))return!1;if(E(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{V=void 0}})(),V}function it(){const t=localStorage.getItem(a),e={"Content-Type":"application/json"};t&&(e["x-sl-access-token"]=t);const n=M();return n&&(e["x-intent-sid"]=n),e}async function rt(t,e,n,o){if(!et())return;const i={...e,localTime:(new Date).toISOString()};p(n)&&(i.value=T(n)?h(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-Z>=0)&&(f=await ot(n),Z=g),f&&(r=f.html,c=f.bbox,l=f.img);const v="page-blur"===t||"page-focus"===t||"pageview"===t,b={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(!X())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};W.push(r),W.length>50&&W.shift(),J()})(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:it(),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:it(),body:JSON.stringify(t),keepalive:!0,credentials:"omit",cache:"no-store"})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(b)}async function at(t={}){if(!et())return;const e="number"==typeof t.lat&&"number"==typeof t.lon;if(e&&B)return;if(!e&&G)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 rt("context",i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),e||(G=!0)}async function st(){await(async(t,e)=>{const n=e(),o=U();if(!n||!o||B)return;if(!("geolocation"in navigator))return;if(P)return;P=!0,H=!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 at({lat:t,lon:e,source:"device",...n})})(n,o,i),B=!0),P=!1,H=!1,F=!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,et)}function dt(){(t=>{if(O||!U()||B)return;O=!0;const e=()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),t()};window.addEventListener("pointerdown",e,!0),window.addEventListener("keydown",e,!0)})(st)}N();let ct=!document.hidden&&document.hasFocus(),lt=document.hasFocus();function ut(){if(nt())return;const t=!document.hidden&&document.hasFocus();t&&(lt=!0),lt||t?t!==ct&&(ct=t,rt(t?"page-focus":"page-blur",{},document.body)):ct=t}function mt(){(()=>{const t=globalThis;return!t[Q]&&(Object.defineProperty(t,Q,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener("load",()=>{et()&&(at(),(window.isSecureContext||"localhost"===location.hostname)&&(U()&&dt(),window.addEventListener("focus",()=>{_()&&st()}),document.addEventListener("visibilitychange",()=>{!document.hidden&&_()&&st()})))}),window.addEventListener("storage",t=>{t.key===o&&("granted"===localStorage.getItem(o)?(G=!1,at(),U()&&dt()):(G=!1,j())),t.key===i&&(U()?dt():j())}),window.addEventListener("load",()=>{et()&&rt("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(nt())return;const e=t.target instanceof Element?t.target.closest(tt):null;e instanceof HTMLElement&&(R=ot(e))})(...e))}})(),{capture:!0,passive:!0}),addEventListener("click",async t=>{if(nt())return;if(!(t.target instanceof Element))return;const e=t.target.closest(tt);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=R?await R:void 0;R=void 0,rt("click",{tag:e.tagName,label:n},e,t)})()},!0),addEventListener("keydown",t=>{if(!nt()&&"Enter"===t.key){const e=t.target;if(!(e instanceof HTMLElement))return;const n=e.tagName;if("INPUT"===n||"TEXTAREA"===n)rt("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;rt("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,ut)}),document.addEventListener("visibilitychange",ut),window.addEventListener("scroll",(()=>{let t;return(...e)=>{void 0!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,(()=>{nt()||rt("scroll",{scrollX:window.scrollX,scrollY:window.scrollY},document.body)})(...e)},250)}})(),{passive:!0}),window.intent??={send(t,e){et()&&rt(t,e,document.body)}})}function pt(t,e){try{if(void 0===e)return;localStorage.setItem(t,e?"intent:consent"===t?"granted":"enabled":"disabled")}catch{}}function gt(t){pt("intent:consent",t)}function ft(t){pt("intent:geo",t)}function vt(t){pt("intent:debug",t)}function bt(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=>{Y(t)})(t)}function ht(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)),pt("intent:consent",t.consent),pt("intent:geo",t.geo),pt("intent:debug",t.debug),void 0!==t.debugPanel&&bt(t.debugPanel),t.consent&&(I("intent_sid")||A("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,t.sidMaxAgeSeconds)),mt()}function yt(){return I("intent_sid")}function wt(){N()}function xt(){D()}function St(t){Number.isFinite(t)&&localStorage.setItem("intent:data-sid-max-age",String(t));const e=I("intent_sid");e&&A(e,t)}export{xt as clearIntentSessionId,wt as ensureIntentSessionId,yt as getIntentSessionId,ht as initIntent,gt as setConsent,vt as setDebug,bt as setDebugPanel,pt as setFlag,ft as setGeo,St as setIntentSessionMaxAge};
6
6
  //# sourceMappingURL=index.debug.js.map
@@ -1 +1 @@
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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DD,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"}
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","getAncestorCrossShadow","parent","parentElement","parentNode","ShadowRoot","host","Element","escapeHtml","unsafe","replace","intentRedactAttr","sensitiveAutocomplete","placeholderFor","custom","trim","autocomplete","tokens","split","token","autocompleteLabels","get","redactAttr","getRedactionPlaceholderLabel","Map","hasRedactIgnore","hasAttribute","warnedRedactValues","hasRedactMask","v","normalized","value","add","message","JSON","stringify","warn","warnUnsupportedRedactValue","hasRedactIgnoreInHierarchy","current","body","shouldMaskValue","t","isSensitiveControl","processElement","element","includes","placeholder","setAttribute","textContent","queryAllDeep","root","selector","out","stack","shadowRoot","all","pop","querySelectorAll","redactDocument","clonedDoc","visitedDocs","ownerDoc","Document","ownerDocument","input","iframe","HTMLIFrameElement","iframeDoc","contentDocument","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","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","online","proto","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","debugPanelModule.setDebugPanel","setDebugPanelImpl","initIntent","baseUrl","sidMaxAgeSeconds","consent","geo","debug","debugPanel","getIntentSessionId","ensureIntentSessionId","clearIntentSessionId","setIntentSessionMaxAge","seconds","cur"],"mappings":";;;;wDAgMOA,eAAeC,IACr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BC,GAClCtb,OAAOC,SAASqb,IACnBlY,aAAayI,QAAQ,0BAA2B1Q,OAAOmgB,IAGxD,MAAMC,EAAM9R,EAAU,cAClB8R,GACH3R,EAAa2R,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-=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};
4
+ import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){return t-=290,o()[t]}function o(){const t=["no SW","width","removeEventListener","function","isArray","userAgentData","userAgent","serviceWorker","rttMs","Tilt: ","not charging","TTFB","startsWith","abs","Languages: ","enabled","Local time: ","version","duration","6459666YNZaNb","SW-controlled","timeZone","coarse"," (mobile)","toFixed","map","Platform: ","deviceorientation","(pointer: coarse)","Battery: ","n/a","entryType","slice","find","orientation","doNotTrack","36hdewaK","navigation","reclined","intent:geo","innerWidth","responseStart","undefined","; DNT: ","CPU: ","length","(display-mode: standalone)"," | ","setTimeout","colorDepth","round","max","languages","hardwareConcurrency","innerHeight","saveData","cookieEnabled","requestStart",", display-mode standalone: ","matches","CookiesEnabled: ","getEntriesByType","charging","resolvedOptions","unknown","downlink","platform","1868780DBMRuv","-bit)","UA brands: ","Network: ","getTimezoneOffset","join","getBattery","filter","type","some","effectiveType","connection","inferred","x (avail ","downlinkMbps","number","floor","Timezone: ","DeviceOrientationEvent","3743080tqJzeK","isFinite","TTFB ~"," ms","yes","brands","PWA: "," Mbps","toString","Viewport: ","Language: ","padStart","upright","705508BnYqXM","beta","push","resource","language","rtt","Screen: ","3752470hDtagC","availWidth","1707186sSYoGL","flat"," (UTC","browser API","(pointer: fine)","Pointer/Touch: ","referrer","encodedBodySize",", orientation "," (β ","709957HsrsbR","7sldAjO"];return(o=()=>t)()}async function r(){const t=n,e=(new Intl.DateTimeFormat)[t(335)]()[t(293)],o=(t=>{const e=n,o=t<=0?"+":"-",r=Math[e(405)](t);return""+o+String(Math[e(355)](r/60))[e(369)](2,"0")+":"+String(r%60)[e(369)](2,"0")})((new Date)[t(343)]()),r=[];r[t(373)](t(368)+navigator[t(375)]),navigator[t(324)]?.[t(317)]&&r[t(373)](t(406)+navigator[t(324)][t(344)](", ")),r[t(373)]("User agent: "+navigator[t(398)]);const i=function(){const t=n;if(!(t=>{const e=n;return"userAgentData"in t&&typeof t[e(397)]!==e(314)})(navigator))return;const e=navigator.userAgentData,o=Array[t(396)](e[t(363)])?e[t(363)][t(297)](e=>e.brand+" "+e[t(409)])[t(344)](", "):void 0,r=e[t(338)]?""+e[t(338)]+(e.mobile?t(295):""):void 0;return[o&&t(341)+o,r&&t(298)+r][t(346)](Boolean)[t(344)](t(319))||void 0}();i&&r[t(373)](i),r[t(373)](t(356)+e+t(382)+o+")"),r[t(373)](t(408)+(new Date)[t(366)]());const a=window.devicePixelRatio||1;r[t(373)](t(377)+screen[t(393)]+"x"+screen.height+" @"+a+t(352)+screen[t(379)]+"x"+screen.availHeight+", "+screen[t(321)]+t(340));const s=screen.orientation&&t(347)in screen[t(306)]?screen[t(306)][t(347)]:void 0;r.push(t(367)+window[t(312)]+"x"+window[t(326)]+(s?t(388)+s:"")),r.push(t(316)+navigator[t(325)]+" cores");const c=await async function(){const t=n,e=[];let o=t(383);if((t=>{const e=n;return"connection"in t&&typeof t[e(350)]!==e(314)})(navigator)){const n=navigator[t(350)];n?.[t(349)]&&e[t(373)](n.effectiveType),"number"==typeof n?.[t(337)]&&e[t(373)]("~"+n[t(337)]+" Mbps"),typeof n?.rtt===t(354)&&e[t(373)](n[t(376)]+t(361)),n?.[t(327)]&&e[t(373)]("saveData")}else{const r=((t=20)=>{const e=n,o=performance[e(333)](e(309))[e(305)](t=>t[e(303)]===e(309)),r=o?Math[e(323)](0,o[e(313)]-o[e(329)]):void 0,i=performance[e(333)](e(374)).filter(t=>"resource"===t[e(303)]);let a=0,s=0;for(const n of i[e(304)](0,Math[e(323)](0,t))){const t=n[e(387)]>0?n[e(387)]:n.transferSize>0?n.transferSize:0,o=n[e(290)];t>0&&o>0&&Number[e(359)](o)&&(a+=t,s+=o)}const c=s>0?8*a/s:void 0;return{downlinkMbps:"number"==typeof c?c/1e3:void 0,rttMs:r}})();typeof r[t(353)]===t(354)&&e.push("~"+r[t(353)][t(296)](1)+t(365)),"number"==typeof r[t(400)]&&e[t(373)](t(360)+Math[t(322)](r.rttMs)+t(361)),o=t(351)}const r=performance[t(333)]("navigation").find(e=>e[t(303)]===t(309));if(r){const n=Math[t(323)](0,r[t(313)]-r[t(329)]);!e[t(348)](e=>e[t(404)](t(403)))&&e[t(373)](t(360)+Math[t(322)](n)+t(361))}return e[t(317)]?t(342)+e.join(", ")+" ("+o+")":void 0}();c&&r[t(373)](c),r[t(373)]((()=>{const t=n,e="function"==typeof matchMedia&&matchMedia(t(300))[t(331)],o="function"==typeof matchMedia&&matchMedia(t(384))[t(331)],r=e?t(294):o?"fine":t(336),i=navigator.maxTouchPoints;return t(385)+r+", maxTouchPoints "+i})());const d=await async function(){const t=n;var e;if("getBattery"in(e=navigator)&&typeof e.getBattery===n(395))try{const e=await navigator[t(345)](),n=Math[t(322)](100*e.level),o=[(Number.isFinite(n)?n:0)+"%",e[t(334)]?t(334):t(402)];return t(301)+o[t(344)](", ")}catch{}}();d&&r.push(d),r[t(373)](t(332)+(navigator[t(328)]?t(362):"no")+t(315)+(navigator[t(307)]??t(302))),r[t(373)]("Online: "+(navigator.onLine?t(362):"no")),document[t(386)]&&r[t(373)]("Referrer: "+document.referrer),r[t(373)]((()=>{const t=n,e=typeof matchMedia===t(395)&&matchMedia(t(318))[t(331)],o=Boolean(navigator[t(399)]?.controller);return t(364)+t(o?292:392)+t(330)+(e?t(362):"no")})());const l=await async function(t=400){const e=n;if(e(357)in window&&window.isSecureContext)return new Promise(o=>{const r=e;let i=!1;const a=t=>{const e=n,r=typeof t.beta===e(354)?t[e(372)]:void 0,s="number"==typeof t.gamma?t.gamma:void 0;if(void 0===r||void 0===s)return;if(i)return;i=!0,window.removeEventListener(e(299),a);const c=((t,e)=>{const o=n,r=Math.abs(t),i=Math.abs(e);return o(r<15&&i<15?381:r>=60?370:310)})(r,s);o(e(401)+c+e(389)+Math[e(322)](r)+"°, γ "+Math[e(322)](s)+"°)")};window[r(320)](()=>{const t=r;i||(i=!0,window[t(394)](t(299),a),o(void 0))},t),window.addEventListener(r(299),a,{passive:!0})})}();l&&r[t(373)](l);const u=localStorage.getItem(t(311))===t(407);return r[t(373)](u?"Device geolocation: enabled":"Device geolocation: disabled"),r[t(344)](" | ")}function i(t,e){return t-=160,u()[t]}(()=>{const t=n,e=o();for(;;)try{if(565441==parseInt(t(390))/1+-parseInt(t(339))/2+parseInt(t(380))/3+parseInt(t(371))/4+-parseInt(t(378))/5+-parseInt(t(291))/6*(parseInt(t(391))/7)+parseInt(t(358))/8*(parseInt(t(308))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const a=i;(()=>{const t=i,e=u();for(;;)try{if(180695==parseInt(t(172))/1*(-parseInt(t(176))/2)+-parseInt(t(170))/3*(parseInt(t(174))/4)+-parseInt(t(161))/5*(parseInt(t(163))/6)+-parseInt(t(162))/7+-parseInt(t(175))/8*(-parseInt(t(171))/9)+-parseInt(t(178))/10*(-parseInt(t(168))/11)+parseInt(t(166))/12*(parseInt(t(165))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const s=a(173),c="intent:geo",d=a(169),l=a(160);function u(){const t=["intent:data-ip","364CJMpDD","167160HbDZeF","intent:data-client-id","2442myTNLK","intent:debug","520887TbKPzR","9JWPnJf","38bZxCig","intent:consent","8gMTHyv","2859096aWfKpj","2292HoxruW","intent:data-base-url","6010KQEZDn","intent:debug-panel","28065dhEKPa","1143870EsBuxr","156yTpnpU"];return(u=()=>t)()}const p=a(167),m=a(164),f=a(177),g="https://intent.callimacus.ai",h=T;function b(...t){const e=T;try{typeof localStorage!==e(144)&&localStorage[e(136)](d)===e(118)&&console[e(120)](...t)}catch{}}(()=>{const t=T,e=I();for(;;)try{if(580099==parseInt(t(122))/1+parseInt(t(126))/2+-parseInt(t(130))/3+parseInt(t(139))/4*(-parseInt(t(129))/5)+parseInt(t(132))/6*(-parseInt(t(134))/7)+-parseInt(t(140))/8+parseInt(t(115))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const v=Object.freeze(new Set([h(114),h(123),"searchbox"])),y=["input",h(131),h(142),h(116),...[...v][h(119)](t=>h(128)+t+'"]')].join(", ");function w(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement}function x(t){const e=h;if(w(t))return!0;if(t instanceof HTMLElement&&t[e(110)])return!0;const n=t[e(111)](e(127))?.[e(108)]();return!(!n||!v.has(n))}function I(){const t=["textbox","26320959vbqqjW","[contenteditable]","true","enabled","map","log","value","625523UdqHxx","combobox","setTimeout","plaintext-only","563320KHyraD","role",'[role="',"9485NoyRoV","3080622momzND","textarea","1451244IBuxtx","replace","28afLLRY","textContent","getItem","host","now","528qPEqNz","8054888LgUXae","&gt;","select","&quot;","undefined","toLowerCase","body","isContentEditable","getAttribute","parentElement","&#039;"];return(I=()=>t)()}function S(t){const e=h,n=t[e(112)];if(n)return n;const{parentNode:o}=t;return o instanceof ShadowRoot&&o.host instanceof Element?o[e(137)]:void 0}function T(t,e){return t-=108,I()[t]}function k(t){const e=h;return t[e(133)](/&/g,"&amp;").replace(/</g,"&lt;")[e(133)](/>/g,e(141)).replace(/"/g,e(143))[e(133)](/'/g,e(113))}const E=C;function M(){const t=["value","cc-exp-year","3955231XeWaoG","Email","has","Neighborhood","additional-name","autocomplete","Job title","mask","Sex","date","cc-additional-name","Sensitive","1506184fEACgw","organization-title","clear","matches","month","bday-day","993nbammj","length","Card type","Country name","cc-number","add","includes","datetime-local","data-intent-redact","ignore","push","City","getAttribute","webauthn","password","family-name","cc-type","First name","toLowerCase","[intent] Unsupported data-intent-redact value ","Country code","address-level4","given-name","1828rfBKYv","Cardholder last name","ownerDocument","address-line3","filter","1997315lvhjBL","Expiration month","Phone","email","bday-month","setAttribute","stringify","type","Middle name","nickname","searchbox","split","tel","shadowRoot","organization","cc-exp","Username","Postal code","Redacted","data-intent-redact-label","search","cc-csc","Birth year","username","2624224BnnUHz","Cardholder first name","hasAttribute","bday-year","body","6HUbnFH","Address line 3","Expiration year","role","Organization","Address line 1","cc-family-name","trim","sex","text","pop",'"" or "mask" (redact), "ignore" (exclude from capture)',"data-html2canvas-ignore","Name","address-line1","cc-given-name","Last name","39829EIGoLO","postal-code","address-level1","address-line2","cc-exp-month","contentDocument","cc-name","bday","name","address-level2","Cardholder name","Card number","Password","2198574JFzzai","querySelectorAll","address-level3","Street address","country-name","street-address",'. Treating as "mask" to prevent data leaks.',"some","country",". Supported values are ","Birth month","textContent","week"];return(M=()=>t)()}(()=>{const t=C,e=M();for(;;)try{if(472348==-parseInt(t(406))/1+parseInt(t(326))/2+parseInt(t(332))/3*(parseInt(t(355))/4)+parseInt(t(360))/5*(-parseInt(t(389))/6)+-parseInt(t(434))/7+parseInt(t(384))/8+parseInt(t(419))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const L=E(340);function C(t,e){return t-=325,M()[t]}const D=E(379),N=new Set([E(414),E(354),E(438),E(347),E(369),E(383),"email",E(372),"organization",E(327),"street-address","address-line1",E(409),E(358),E(408),"address-level2",E(421),E(353),E(427),"country-name","postal-code",E(412),E(404),E(444),E(395),E(336),E(375),E(410),E(433),E(381),E(348),E(413),E(331),E(364),"bday-year","sex","webauthn"]);function z(t){return"<"+(t=>{const e=E,n=(t[e(344)]?.(D)??"")[e(396)]();if(n)return n;const o=t.getAttribute?.(e(439))||"",r=x(t)?o[e(350)]()[e(396)]()[e(371)](/\s+/)[e(359)](Boolean):[];if(t instanceof HTMLInputElement&&t[e(367)]===e(346))return e(418);for(const t of r){const e=A.get(t);if(e)return e}const i=t[e(344)]?.(L)?.[e(350)]();return i===e(441)?e(378):e(325)})(t)+">"}const A=new Map([["name",E(402)],[E(354),E(349)],[E(347),E(405)],["additional-name",E(368)],["nickname","Nickname"],[E(383),E(376)],[E(363),E(435)],[E(372),E(362)],[E(424),E(422)],[E(403),E(394)],[E(409),"Address line 2"],["address-line3",E(390)],[E(408),"State/Province"],[E(415),E(343)],[E(421),"District"],[E(353),E(437)],[E(407),E(377)],[E(427),E(352)],[E(423),E(335)],[E(412),E(416)],["cc-given-name",E(385)],[E(395),E(356)],[E(444),"Cardholder middle name"],[E(336),E(417)],[E(375),"Expiration date"],[E(410),E(361)],[E(433),E(391)],[E(381),"Security code"],[E(348),E(334)],[E(413),"Birthday"],[E(331),"Birth day"],[E(364),E(429)],[E(387),E(382)],[E(374),E(393)],[E(327),E(440)],[E(397),E(442)],[E(345),"WebAuthn"]]);function B(t){const e=E;return t.hasAttribute(e(401))||t[e(344)](L)?.[e(350)]()===e(341)}const H=new Set;function P(t){const e=E,n=t.getAttribute(L);if(null===n)return!1;const o=n[e(350)]();return o!==e(341)&&(""!==n&&o!==e(441)&&(t=>{const e=E;if(H[e(436)](t))return;H[e(337)](t);const n=JSON[e(366)](t),o=e(400),r=e(351)+n+e(428)+o+e(425);try{console.warn(r)}catch{}})(n),!0)}function j(t){const e=E;let n=t;for(;n&&n!==document[e(388)];){if(B(n))return!0;n=S(n)}return!1}function O(t){return!(B(t)||!P(t)&&!(t=>{const e=E;if(t instanceof HTMLInputElement){if(t[e(367)]===e(346))return!0;if(t.type===e(380))return!1;const n=t[e(344)](e(392));if(n?.[e(350)]()===e(370))return!1;if((t[e(439)]||"")[e(350)]()[e(396)]()[e(371)](/\s+/).filter(Boolean)[e(426)](t=>N.has(t)))return!0}if(t instanceof HTMLTextAreaElement&&(t[e(439)]||"")[e(350)]()[e(396)]()[e(371)](/\s+/)[e(359)](Boolean)[e(426)](t=>N[e(436)](t)))return!0;if(t instanceof HTMLSelectElement&&(t[e(439)]||"")[e(350)]().trim()[e(371)](/\s+/)[e(359)](Boolean).some(t=>N[e(436)](t)))return!0;if(x(t)&&!w(t)){const n=t[e(344)](e(392))?.[e(350)]();if("searchbox"===n)return!1;if((t[e(344)](e(439))||"").toLowerCase()[e(396)]().split(/\s+/).filter(Boolean).some(t=>N.has(t)))return!0}return!1})(t))}function F(t){const e=E;if(!j(t))if(w(t)){if(O(t)){t instanceof HTMLInputElement&&[e(443),e(339),e(330),"time",e(431)][e(338)](t[e(367)])&&(t[e(367)]=e(398));const n=z(t);t[e(432)]=n,t[e(365)](e(432),n)}}else x(t)?O(t)&&(t[e(430)]=z(t)):t[e(386)](L)&&P(t)&&(t[e(430)]=z(t))}function U(t,e){const n=E,o=[],r=[t];for(t instanceof Element&&t[n(373)]&&r[n(342)](t[n(373)]);r[n(333)]>0;){const t=r[n(399)]()[n(420)]("*");for(const i of t)i[n(329)](e)&&o.push(i),i[n(373)]&&r[n(342)](i[n(373)])}return o}function R(t,e=new Set){const n=E,o=t instanceof Document?t:t[n(357)];if(o){if(e[n(436)](o))return;e[n(337)](o)}t instanceof Element&&F(t);for(const e of U(t,y))F(e);for(const e of U(t,"["+L+"]"))F(e);for(const o of U(t,"iframe"))if(o instanceof HTMLIFrameElement)try{const t=o[n(411)];t&&R(t,e)}catch{}}function q(){const t=["https:","37826cWNhbj","42254289BfSpLM","15mwhNcg","getItem","get","4045570MuaWIR","3376554Dpqgcf","187908Lmpnjd","72VPKVPi","intent_sid","Lax","248zNVVNS","location","randomUUID","granted","27SIPOFx","108822fdxPkg","2753076FHhMbo","isFinite","protocol","number"];return(q=()=>t)()}function W(t,e){return t-=467,q()[t]}(()=>{const t=W,e=q();for(;;)try{if(707261==-parseInt(t(472))/1*(-parseInt(t(486))/2)+parseInt(t(470))/3+-parseInt(t(471))/4+parseInt(t(488))/5*(parseInt(t(481))/6)+-parseInt(t(480))/7*(parseInt(t(475))/8)+-parseInt(t(479))/9*(-parseInt(t(469))/10)+-parseInt(t(487))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let K="";function J(){return K}function X(t){return e[W(468)](t)}function Z(t,n){const o=W,r=localStorage[o(467)]("intent:data-sid-max-age"),i=null===r?void 0:Number(r),a=typeof n===o(484)&&Number[o(482)](n)?n:typeof i===o(484)&&Number[o(482)](i)?i:2592e3,s=window[o(476)][o(483)]===o(485);e.set(o(473),t,{expires:a/86400,path:"/",sameSite:o(474),...s&&{secure:!0}})}function _(){e.remove(W(473),{path:"/"})}function G(){const t=W,e=X(t(473));if(!(()=>{const t=W;return localStorage[t(467)](s)===t(478)})())return e&&_(),void(K="");e?K=e:(K=crypto[t(477)](),Z(K))}function V(t,e){return t-=308,it()[t]}(()=>{const t=V,e=it();for(;;)try{if(521754==-parseInt(t(325))/1*(-parseInt(t(316))/2)+parseInt(t(320))/3+-parseInt(t(321))/4*(-parseInt(t(337))/5)+-parseInt(t(324))/6+-parseInt(t(336))/7+-parseInt(t(341))/8+-parseInt(t(318))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let Y=!1,Q=!1,$=!1,tt=!1,et=!1;function nt(){return"enabled"===localStorage.getItem(c)}function ot(){Y=!1,$=!1,et=!1}function rt(){return!Y&&nt()&&!tt&&et}function it(){const t=["deviceGeoSent","timestamp","1971120BdSBAw","isSecureContext","query","hostname","PERMISSION_DENIED","number","isFinite","code","keydown","removeEventListener","geolocation","onLine","76yGzIfU","permissions","4291056XmdJKx","altitudeAccuracy","1708581gwWFel","3395432twCBTQ","POSITION_UNAVAILABLE","longitude","1119012UxZwyr","14159ZIosdE","latitude","speed","altitude","getCurrentPosition","protocol","TIMEOUT","hasFocus","canRequest","addEventListener","visibilityState","3674979rVPyjM","5yXFnFO","UNKNOWN"];return(it=()=>t)()}const at=st;function st(t,e){return t-=462,mt()[t]}(()=>{const t=st,e=mt();for(;;)try{if(729892==parseInt(t(515))/1*(parseInt(t(493))/2)+parseInt(t(530))/3+parseInt(t(509))/4*(-parseInt(t(516))/5)+-parseInt(t(503))/6*(-parseInt(t(497))/7)+parseInt(t(543))/8*(-parseInt(t(545))/9)+-parseInt(t(562))/10+-parseInt(t(558))/11*(-parseInt(t(469))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let ct,dt=[],lt=!1;function ut(){const t=st;try{return"enabled"===localStorage[t(534)](l)}catch{return!1}}function pt(){const t=st;if(!ct)return;const e=ct[t(490)]("#intent-debug-events"),n=ct[t(490)](t(525));if(!e||!n)return;if(0===dt[t(521)])return e.innerHTML=t(501),void(n[t(474)]=t(505));const o=[...dt].reverse();e[t(522)]=o[t(476)](t=>(t=>{const e=st,n=new Date(t[e(477)])[e(554)](),o=t.img&&t[e(535)][e(521)]>0,r=o?Math[e(488)](.75*t.img[e(521)]/1024):0,i=k(t[e(565)]),a=k(JSON[e(560)](t[e(475)],null,2)),s=k(t[e(500)]),c=k(JSON.stringify(t[e(538)],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+e(495)+n+e(492)+(o?e(462)+t[e(535)]+e(485)+r+e(547):"")+e(546)+a+e(517)+(t[e(500)]?'\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">'+s+e(517):"")+e(528)+c+e(531)})(t))[t(541)](""),n[t(474)]=dt[t(521)]+t(540)+(1===dt[t(521)]?"":"s")}function mt(){const t=["createElement","textContent","props","map","timestamp","#intent-debug-content","\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","style","setItem","Escape","target","right",'" \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 (~',"data:image/","addEventListener","round","BUTTON","querySelector","max","</div>\n\t\t\t</div>\n\t\t\t","94rXhvhf","mousemove",'</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">',"src","6895qRNDjU","now","clientX","html",'\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-close","4944wdvrri","cssText","0 events","randomUUID","auto","div","1889900RPIoNM","body","shift","contains","display","\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","13933FsMeqU","10RCfbSi","</pre>\n\t\t\t\t\t","\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t","none",'\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',"length","innerHTML","width","\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","#intent-debug-count","tagName","innerHeight",'\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">',"button","255750kxHruG","</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t","loading","200px","getItem","img","classList","clientY","bbox","Click anywhere or press ESC to close"," event","join","left","7766888GVPVAA","stopPropagation","9fwDBIu",'\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">'," KB)</div>\n\t\t\t\t</div>\n\t\t\t","400px","preventDefault","#intent-debug-clear","enabled","DOMContentLoaded","min","toLocaleTimeString","✕ Close","offsetHeight","top","187eTTGiU","click","stringify","intent-debug-screenshot","2267510OGBjDm","remove","innerWidth","event","intent-debug-fullscreen-modal",'\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="',"setAttribute","ignore","disabled","appendChild","undefined","flex","932268XcgCyT","firstElementChild","offsetWidth","readyState"];return(mt=()=>t)()}function ft(){const t=st;if(ct)return void(ct[t(480)].display=t(468));const e=document[t(473)]("div");e.innerHTML=st(520),ct=e[t(470)],document[t(510)][t(466)](ct);const n=ct.querySelector(t(502)),o=ct[t(490)]("#intent-debug-minimize"),r=ct[t(490)](t(550));n?.[t(487)](t(559),()=>{!function(t){const e=st;try{localStorage[e(481)](l,e(t?551:465)),t?ft():(()=>{const t=st;ct&&(ct[t(480)][t(513)]=t(519))})()}catch{}}(!1)}),o?.[t(487)]("click",()=>{(()=>{const t=st;if(!ct)return;const e=ct[t(490)](t(478)),n=ct.querySelector("#intent-debug-minimize");e&&n&&(lt=!lt,lt?(e[t(480)].display=t(519),ct.style[t(523)]=t(533),n.textContent="+"):(e[t(480)][t(513)]="flex",ct.style.width=t(548),n[t(474)]="−"))})()}),r?.[t(487)](t(559),()=>{dt=[],pt()}),(()=>{const t=st;if(!ct)return;const e=ct.querySelector("#intent-debug-header");if(!e)return;let n=!1,o=0,r=0,i=0,a=0;e[t(487)]("mousedown",e=>{const o=t;if(e[o(483)][o(526)]===o(489))return;n=!0;const r=ct.getBoundingClientRect();i=e[o(499)]-r.left,a=e[o(537)]-r[o(557)]}),document[t(487)](t(494),e=>{const s=t;if(!n||!ct)return;e[s(549)](),o=e.clientX-i,r=e[s(537)]-a;const c=window[s(564)]-ct[s(471)],d=window[s(527)]-ct[s(556)];o=Math[s(491)](0,Math[s(553)](o,c)),r=Math[s(491)](0,Math[s(553)](r,d)),ct[s(480)][s(542)]=o+"px",ct[s(480)][s(557)]=r+"px",ct[s(480)][s(484)]=s(507)}),document[t(487)]("mouseup",()=>{n=!1})})(),ct.addEventListener(t(559),e=>{const n=t,o=e[n(483)];if(o[n(536)][n(512)](n(561))){const t=o;t[n(496)]&&t.src.startsWith(n(486))&&(t=>{const e=st,n=document[e(473)](e(508));n.id=e(566),n[e(463)]("data-intent-redact",e(464)),n[e(480)][e(504)]="\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(473)](e(508));o[e(480)][e(504)]=e(514);const r=document[e(473)]("img");r[e(496)]=t,r[e(480)][e(504)]=e(479);const i=document[e(473)]("div");i[e(480)][e(504)]="\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t";const a=document[e(473)](e(529));a[e(474)]=e(555),a.style.cssText=e(524);const s=document[e(473)](e(508));s[e(474)]=e(539),s[e(480)].cssText=e(518),i[e(466)](a),i[e(466)](s),o[e(466)](r),o.appendChild(i),n[e(466)](o);const c=()=>{n[e(563)](),document.removeEventListener("keydown",d)};n[e(487)](e(559),c),a.addEventListener(e(559),t=>{t[e(544)](),c()}),r[e(487)](e(559),t=>{t[e(544)]()});const d=t=>{t.key===e(482)&&c()};document[e(487)]("keydown",d),document[e(510)][e(466)](n)})(t[n(496)])}}),pt()}function gt(t,e){return t-=292,ht()[t]}function ht(){var t=["6egYCGu","Use the debug build variant: @solomei-ai/intent/debug or intent.debug.umd.min.js","1636209rKLCcL","4drqRsd","16313wIRKkn","7635DUvcGy","20DLieot","setDebugPanel","703njigrS","775851OfZdfG","3453415CuDXqg","3444gdRlrH","8dIecSx","7685093NDWmKr","1282CRAphT"];return(ht=()=>t)()}typeof window!==at(467)&&ut()&&(document[at(472)]===at(532)?document[at(487)](at(552),()=>{ft()}):ft()),Symbol,(()=>{for(var t=gt,e=ht();;)try{if(311720==parseInt(t(298))/1*(-parseInt(t(304))/2)+parseInt(t(299))/3*(-parseInt(t(293))/4)+-parseInt(t(295))/5*(parseInt(t(305))/6)+-parseInt(t(300))/7*(-parseInt(t(302))/8)+-parseInt(t(292))/9*(-parseInt(t(296))/10)+-parseInt(t(294))/11*(parseInt(t(301))/12)+parseInt(t(303))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const bt=vt;function vt(t,e){return t-=426,yt()[t]}function yt(){const t=["9620982kpapgM","target","67010CZflVB","TEXTAREA","outerHTML","<no visible label>","html","fixed","5367761jdJzTR",'[role="button"]',"bbox","button","absolute","a[href]","location",'[role="link"]',"getComputedStyle","dataset","name","focus","hidden","lon","key","newline","toFixed","x-intent-sid","granted","pointerdown","defineProperty","x-sl-access-token","innerHTML","closest","no-store","application/json","INPUT","img","69294Ljohwz","getAttribute","input-submit","visibilitychange","blur","image/jpeg",'input[type="button"]',"/events","4833PfxZQs","[Timing] html2canvas-pro: ","lat","referrer",'input[type="submit"]',"page-blur","left","POST","[Timing] jpeg-encoding: ","forEach","aria-label","addEventListener","getBoundingClientRect","CONTENTEDITABLE","53315RCISHd","toLowerCase","bottom","body","load","[onclick]","right","trim","now","__intent__sdk__initialized__","entries","keydown","href","height","setAttribute","toDataURL","contenteditable","innerWidth","toISOString","hostname","click","intentEnter","pageview","top","isSecureContext","scroll","2714rrqzmn","omit","tagName","textContent","scrollY","scrollX","/p.gif","value","from","5431056azZbNh","number","getItem","1461yulZrN","width","page-focus","context","title","stringify","660ySKgaF"];return(yt=()=>t)()}(()=>{const t=vt,e=yt();for(;;)try{if(915051==-parseInt(t(496))/1+-parseInt(t(441))/2*(-parseInt(t(453))/3)+parseInt(t(459))/4*(-parseInt(t(518))/5)+-parseInt(t(460))/6+parseInt(t(468))/7+-parseInt(t(450))/8+parseInt(t(504))/9*(parseInt(t(462))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let wt,xt,It=0,St=!1;const Tt=bt(527),kt=[bt(471),bt(473),"a",bt(508),bt(502),bt(469),bt(475),bt(523)].join(",");function Et(){return G(),"granted"===localStorage[bt(452)](s)&&Boolean(J())&&(()=>{const t=bt;return Boolean(localStorage.getItem(p)?.[t(525)]().length)})()}function Mt(){return!Et()||Q}async function Lt(e){for(;xt;)await xt;return xt=(async()=>{const n=vt;try{const o=performance[n(526)](),r=performance[n(526)](),i=(t=>{const e=bt;if(B(t))return"";const n=t.cloneNode(!1);return Array[e(449)](t.attributes)[e(513)](({name:t,value:o})=>{n[e(429)](t,o)}),w(t)?w(n)&&(n.value=t[e(448)]):x(t)?n[e(490)]=t[e(490)]:n.textContent=t.textContent,R(n),w(n)&&n[e(429)]("value",n[e(448)]),n[e(464)]})(e);b("[Timing] serialize: "+(performance[n(526)]()-r)[n(484)](2)+"ms");const a=e[n(516)](),s=performance[n(526)](),c={left:window[n(446)],top:window[n(445)],right:window[n(446)]+window[n(432)],bottom:window[n(445)]+window.innerHeight},d=await t(document[n(521)],{useCORS:!0,x:window[n(446)],y:window.scrollY,width:window[n(432)],height:window.innerHeight,scale:.6,logging:!1,onclone(t){R(t)},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(j(t))return!0;const o=t[e(516)](),r={left:o[e(510)]+window[e(446)],top:o[e(438)]+window[e(445)],right:o[e(524)]+window[e(446)],bottom:o[e(520)]+window[e(445)]},i=100;if(r[e(524)]<c[e(510)]-i||r[e(510)]>c[e(524)]+i||r[e(520)]<c.top-i||r[e(438)]>c[e(520)]+i){const n=window[e(476)](t),{position:o}=n;if(o===e(467)||o===e(472)){const t=500;return r.right<c[e(510)]-t||r[e(510)]>c[e(524)]+t||r.bottom<c[e(438)]-t||r.top>c.bottom+t}return!0}return!1}}),l=performance[n(526)]()-s;b(n(505)+l[n(484)](2)+"ms");const u=performance[n(526)](),p=d[n(430)](n(501),.8),m=performance[n(526)]()-u;b(n(512)+m.toFixed(2)+"ms");return b("[Timing] capture-total: "+(performance[n(526)]()-o)[n(484)](2)+"ms"),{html:i,bbox:{x:a.x,y:a.y,w:a[n(454)],h:a[n(428)]},img:p,fullCanvas:d}}finally{xt=void 0}})(),xt}function Ct(){const t=bt,e=localStorage.getItem(p),n={"Content-Type":t(493)};e&&(n[t(489)]=e);const o=J();return o&&(n[t(485)]=o),n}async function Dt(t,e,n,o){const r=bt;if(!Et())return;const i={...e,localTime:(new Date)[r(433)]()};x(n)&&(i[r(448)]=O(n)?z(n):(t=>{const e=h;return w(t)?t[e(121)]:t instanceof HTMLElement?t.innerText:t[e(135)]??""})(n));let a="",s={x:0,y:0,w:0,h:0},c="";const d=!(t===r(440)||t===r(509)||"page-focus"===t),l=Date.now(),u=l-It>=0;let m=o;const b=t===r(435)||"input-submit"===t||"pageview"===t;d&&(b&&!m||!m&&u)&&(m=await Lt(n),It=l),m&&(a=m[r(466)],s=m[r(470)],c=m[r(495)]);const v=t===r(509)||"page-focus"===t||t===r(437),y={ts:Date[r(526)](),event:t,props:i,html:v?"":a,bbox:s,img:c};await async function(t){const e=bt,n=(localStorage[e(452)](f)??g)+e(503),o=localStorage.getItem(p)??void 0,r=JSON[e(458)]({...t,clientId:o});try{if((await fetch(n,{method:e(511),headers:Ct(),body:r,keepalive:!0,credentials:e(442)})).ok)return}catch{}try{await(async t=>{const e=bt,n=(localStorage.getItem(f)??g)+e(447);if(!(await fetch(n,{method:e(511),headers:Ct(),body:JSON[e(458)](t),keepalive:!0,credentials:e(442),cache:e(492)})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(y)}async function Nt(t={}){const e=bt;if(!Et())return;const n=typeof t[e(506)]===e(451)&&typeof t[e(481)]===e(451);if(n&&Y)return;if(!n&&St)return;const o=localStorage[e(452)](m),i={context:await r()};o&&(i.ip=o);for(const[n,o]of Object[e(528)](t))i[n]=o;await Dt(e(456),i,document[e(521)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),!n&&(St=!0)}async function zt(){await(async(t,e)=>{const n=V,o={canRequest:e(),geoEnabled:nt(),deviceGeoSent:Y};if(!o[n(333)]||!o.geoEnabled||o[n(339)])return;if(!(n(314)in navigator))return;if(tt)return;tt=!0,Q=!0;const r={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator[n(317)]?.[n(343)]({name:n(314)}))}catch(t){}await new Promise(t=>{const e=n;let o=!1;const i=async(e,n,r)=>{const i=V;o||(o=!0,Number.isFinite(e)&&Number[i(310)](n)&&(await(async(t,e,n)=>{await Nt({lat:t,lon:e,source:"device",...n})})(e,n,r),Y=!0),tt=!1,Q=!1,et=!0,t())};navigator[e(314)][e(329)](t=>{const e=V,n=t.coords;i(n[e(326)],n[e(323)],{accuracy:n.accuracy,altitude:"number"==typeof n[e(328)]?n[e(328)]:void 0,altitudeAccuracy:typeof n[e(319)]===e(309)?n.altitudeAccuracy:void 0,heading:typeof n.heading===e(309)?n.heading:void 0,speed:typeof n[e(327)]===e(309)?n[e(327)]:void 0,timestamp:t[e(340)],visibility:document[e(335)],focused:document[e(332)]()})},t=>{const e=V,n=t?.[e(311)],o={error:{code:n,name:e(1===n?308:2===n?322:3===n?331:338),message:t?.message??""},online:navigator[e(315)],visibility:document[e(335)],focused:document[e(332)](),secure:window[e(342)],proto:location[e(330)],host:location[e(344)]};i(void 0,void 0,o)},r)})})(0,Et)}function At(){(t=>{const e=V;if($||!nt()||Y)return;$=!0;const n=()=>{const e=V;window[e(313)]("pointerdown",n,!0),window.removeEventListener(e(312),n,!0),t()};window[e(334)]("pointerdown",n,!0),window[e(334)]("keydown",n,!0)})(zt)}G();let Bt=!document[bt(480)]&&document.hasFocus(),Ht=document.hasFocus();function Pt(){const t=bt;if(Mt())return;const e=!document.hidden&&document.hasFocus();e&&(Ht=!0),Ht||e?e!==Bt&&(Bt=e,Dt(t(e?455:509),{},document.body)):Bt=e}function jt(){const t=bt;(()=>{const t=globalThis;return!t[Tt]&&(Object[bt(488)](t,Tt,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(515)](t(522),()=>{const e=t;Et()&&(Nt(),(window[e(439)]||"localhost"===location[e(434)])&&(nt()&&At(),window[e(515)](e(479),()=>{rt()&&zt()}),document[e(515)](e(499),()=>{!document[e(480)]&&rt()&&zt()})))}),window[t(515)]("storage",e=>{const n=t;e[n(482)]===s&&((()=>{const t=bt;return localStorage[t(452)](s)===t(486)})()?(St=!1,Nt(),nt()&&At()):(St=!1,ot())),e[n(482)]===c&&(nt()?At():ot())}),window[t(515)](t(522),()=>{const e=t;Et()&&Dt(e(437),{url:window[e(474)][e(427)],title:document[e(457)],ref:document[e(507)]},document[e(521)])}),addEventListener(t(487),(()=>{let e=0;return(...n)=>{const o=Date[T(138)]();o-e>=50&&(e=o,(e=>{const n=t;if(Mt())return;const o=e.target instanceof Element?e[n(461)][n(491)](kt):null;o instanceof HTMLElement&&(wt=Lt(o))})(...n))}})(),{capture:!0,passive:!0}),addEventListener("click",async e=>{const n=t;if(Mt())return;if(!(e[n(461)]instanceof Element))return;const o=e[n(461)][n(491)](kt);if(!(o instanceof HTMLElement))return;const r=(t=>{const e=bt,n=t.getAttribute(e(514))?.[e(525)]();if(n)return n;const o=t[e(457)].trim();if(o)return o;const r=t[e(444)]?.trim();return r||e(465)})(o);(async()=>{const t=n,e=wt?await wt:void 0;wt=void 0,Dt(t(435),{tag:o[t(443)],label:r},o,e)})()},!0),addEventListener(t(426),e=>{const n=t;if(!Mt()&&"Enter"===e[n(482)]){const t=e[n(461)];if(!(t instanceof HTMLElement))return;const o=t[n(443)];if(o===n(494)||o===n(463)){const e=t instanceof HTMLInputElement?t.name:void 0,r=t.id||void 0;Dt(n(498),{tag:o,name:e??r},t)}else if(x(t)){const e=(t=>{const e=h;let n=t;for(;n&&n!==document[e(109)];){const t=n[e(111)]("contenteditable");if(t===e(117)||""===t||t===e(125))return n;n=n[e(112)]}return null})(t)??t;if(e[n(477)][n(436)]===n(483))return;const o=e.getAttribute("role")?.[n(519)](),r=e.id||void 0,i=e[n(497)](n(478))||e[n(497)](n(514))||r;Dt("input-submit",{tag:n(517),role:o??n(431),name:i},e)}}},{capture:!0}),["focus",t(500)][t(513)](e=>{window[t(515)](e,Pt)}),document.addEventListener(t(499),Pt),window[t(515)](t(440),(()=>{let e;return(...n)=>{const o=T;void 0!==e&&window.clearTimeout(e),e=window[o(124)](()=>{e=void 0,(()=>{const e=t;Mt()||Dt("scroll",{scrollX:window[e(446)],scrollY:window[e(445)]},document[e(521)])})(...n)},250)}})(),{passive:!0}),window.intent??={send(e,n){const o=t;Et()&&Dt(e,n,document[o(521)])}})}function Ot(t,e){const n=Ft;try{if(void 0===e)return;localStorage[n(141)](t,e?t===n(142)?n(166):"enabled":n(156))}catch{}}function Ft(t,e){return t-=132,_t()[t]}function Ut(t){Ot(Ft(142),t)}function Rt(t){Ot(Ft(151),t)}function qt(t){Ot("intent:debug",t)}function Wt(t){}function Kt(t={}){const e=Ft;localStorage[e(141)]("intent:data-client-id",t[e(149)]??""),localStorage[e(141)](e(159),t.ip??""),localStorage.setItem(e(143),t.baseUrl??e(165)),typeof t[e(160)]===e(153)&&localStorage[e(141)](e(133),String(t[e(160)])),Ot("intent:consent",t[e(154)]),Ot(e(151),t[e(139)]),Ot(e(140),t[e(135)]),void 0!==t[e(146)]&&e(146),t.consent&&(X("intent_sid")||Z(typeof crypto!==e(152)&&typeof crypto[e(162)]===e(134)?crypto[e(162)]():Date[e(132)]()+"-"+Math[e(148)](),t[e(160)])),jt()}function Jt(){return X("intent_sid")}function Xt(){G()}function Zt(){_()}function _t(){const t=["2676984zITjbi","1305478QCetFA","geo","intent:debug","setItem","intent:consent","intent:data-base-url","4231881IIvdhJ","204960OZcFlH","debugPanel","isFinite","random","clientId","1579711OrVWvQ","intent:geo","undefined","number","consent","10esXyOZ","disabled","2825130JbbuKl","1QtdvnT","intent:data-ip","sidMaxAgeSeconds","8pFjBIy","randomUUID","It exposes internal SDK behavior and should only be used during development.","warn","https://intent.callimacus.ai","granted","intent_sid","now","intent:data-sid-max-age","function","debug","1283865rgRwHT"];return(_t=()=>t)()}function Gt(t){const e=Ft;Number[e(147)](t)&&localStorage[e(141)](e(133),String(t));const n=X(e(167));n&&Z(n,t)}(()=>{const t=Ft,e=_t();for(;;)try{if(534905==parseInt(t(158))/1*(parseInt(t(138))/2)+parseInt(t(145))/3+-parseInt(t(137))/4+parseInt(t(136))/5+parseInt(t(157))/6+parseInt(t(150))/7*(parseInt(t(161))/8)+parseInt(t(144))/9*(-parseInt(t(155))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();export{Zt as clearIntentSessionId,Xt as ensureIntentSessionId,Jt as getIntentSessionId,Kt as initIntent,Ut as setConsent,qt as setDebug,Wt as setDebugPanel,Ot as setFlag,Rt as setGeo,Gt as setIntentSessionMaxAge};