@solomei-ai/intent 1.11.3 → 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.
package/dist/esm/index.debug.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* © 2026 Solomei AI SRL. Proprietary and confidential.
|
|
3
3
|
* DEBUG BUILD - Includes debug panel. NOT recommended for production.
|
|
4
4
|
*/
|
|
5
|
-
import t from"html2canvas-pro";import e from"js-cookie";async function n(){const t=(new Intl.DateTimeFormat).resolvedOptions().timeZone,e=(t=>{const e=t<=0?"+":"-",n=Math.abs(t);return`${e}${String(Math.floor(n/60)).padStart(2,"0")}:${String(n%60).padStart(2,"0")}`})((new Date).getTimezoneOffset()),n=[];n.push(`Language: ${navigator.language}`),navigator.languages?.length&&n.push(`Languages: ${navigator.languages.join(", ")}`),n.push(`User agent: ${navigator.userAgent}`);const o=(()=>{if(!("userAgentData"in(t=navigator))||void 0===t.userAgentData)return;var t;const e=navigator.userAgentData,n=Array.isArray(e.brands)?e.brands.map(t=>`${t.brand} ${t.version}`).join(", "):void 0,o=e.platform?`${e.platform}${e.mobile?" (mobile)":""}`:void 0;return[n&&`UA brands: ${n}`,o&&`Platform: ${o}`].filter(Boolean).join(" | ")||void 0})();o&&n.push(o),n.push(`Timezone: ${t} (UTC${e})`),n.push(`Local time: ${(new Date).toString()}`);const i=window.devicePixelRatio||1;n.push(`Screen: ${screen.width}x${screen.height} @${i}x (avail ${screen.availWidth}x${screen.availHeight}, ${screen.colorDepth}-bit)`);const r=screen.orientation&&"type"in screen.orientation?screen.orientation.type:void 0;n.push(`Viewport: ${window.innerWidth}x${window.innerHeight}${r?`, orientation ${r}`:""}`),n.push(`CPU: ${navigator.hardwareConcurrency} cores`);const a=await async function(){const t=[];let e="browser API";if("connection"in(n=navigator)&&void 0!==n.connection){const e=navigator.connection;e?.effectiveType&&t.push(e.effectiveType),"number"==typeof e?.downlink&&t.push(`~${e.downlink} Mbps`),"number"==typeof e?.rtt&&t.push(`${e.rtt} ms`),e?.saveData&&t.push("saveData")}else{const n=((t=20)=>{const e=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType),n=e?Math.max(0,e.responseStart-e.requestStart):void 0,o=performance.getEntriesByType("resource").filter(t=>"resource"===t.entryType);let i=0,r=0;for(const e of o.slice(0,Math.max(0,t))){const t=e.encodedBodySize>0?e.encodedBodySize:e.transferSize>0?e.transferSize:0,n=e.duration;t>0&&n>0&&Number.isFinite(n)&&(i+=t,r+=n)}const a=r>0?8*i/r:void 0;return{downlinkMbps:"number"==typeof a?a/1e3:void 0,rttMs:n}})();"number"==typeof n.downlinkMbps&&t.push(`~${n.downlinkMbps.toFixed(1)} Mbps`),"number"==typeof n.rttMs&&t.push(`TTFB ~${Math.round(n.rttMs)} ms`),e="inferred"}var n;const o=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType);if(o){const e=Math.max(0,o.responseStart-o.requestStart);t.some(t=>t.startsWith("TTFB"))||t.push(`TTFB ~${Math.round(e)} ms`)}return t.length?`Network: ${t.join(", ")} (${e})`:void 0}();a&&n.push(a),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(pointer: coarse)").matches,e="function"==typeof matchMedia&&matchMedia("(pointer: fine)").matches;return`Pointer/Touch: ${t?"coarse":e?"fine":"unknown"}, maxTouchPoints ${navigator.maxTouchPoints}`})());const s=await(async()=>{var t;if("getBattery"in(t=navigator)&&"function"==typeof t.getBattery)try{const t=await navigator.getBattery(),e=Math.round(100*t.level);return`Battery: ${[`${Number.isFinite(e)?e:0}%`,t.charging?"charging":"not charging"].join(", ")}`}catch{}})();s&&n.push(s),n.push(`CookiesEnabled: ${navigator.cookieEnabled?"yes":"no"}; DNT: ${navigator.doNotTrack??"n/a"}`),n.push("Online: "+(navigator.onLine?"yes":"no")),document.referrer&&n.push(`Referrer: ${document.referrer}`),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)").matches;return`PWA: ${Boolean(navigator.serviceWorker?.controller)?"SW-controlled":"no SW"}, display-mode standalone: ${t?"yes":"no"}`})());const d=await async function(t=400){if("DeviceOrientationEvent"in window&&window.isSecureContext)return new Promise(e=>{let n=!1;const o=t=>{const i="number"==typeof t.beta?t.beta:void 0,r="number"==typeof t.gamma?t.gamma:void 0;if(void 0===i||void 0===r)return;if(n)return;n=!0,window.removeEventListener("deviceorientation",o);const a=((t,e)=>{const n=Math.abs(t),o=Math.abs(e);return n<15&&o<15?"flat":n>=60?"upright":"reclined"})(i,r);e(`Tilt: ${a} (β ${Math.round(i)}°, γ ${Math.round(r)}°)`)};window.setTimeout(()=>{n||(n=!0,window.removeEventListener("deviceorientation",o),e(void 0))},t),window.addEventListener("deviceorientation",o,{passive:!0})})}();d&&n.push(d);const c="enabled"===localStorage.getItem("intent:geo");return n.push(c?"Device geolocation: enabled":"Device geolocation: disabled"),n.join(" | ")}const o="data-intent-redact",i=new Set(["name","given-name","additional-name","family-name","nickname","username","email","tel","organization","organization-title","street-address","address-line1","address-line2","address-line3","address-level1","address-level2","address-level3","address-level4","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","bday","bday-day","bday-month","bday-year","sex","webauthn"]);function r(t){const e=(t=>{const e=(t.getAttribute?.("data-intent-redact-label")??"").trim();if(e)return e;const n=t.getAttribute?.("autocomplete")||"",i=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?n.toLowerCase().trim().split(/\s+/).filter(Boolean):[];if(t instanceof HTMLInputElement&&"password"===t.type)return"Password";for(const t of i){const e=a.get(t);if(e)return e}const r=t.getAttribute?.(o)?.toLowerCase();return"mask"===r?"Redacted":"Sensitive"})(t);return`<${e}>`}const a=new Map([["name","Name"],["given-name","First name"],["family-name","Last name"],["additional-name","Middle name"],["nickname","Nickname"],["username","Username"],["email","Email"],["tel","Phone"],["street-address","Street address"],["address-line1","Address line 1"],["address-line2","Address line 2"],["address-line3","Address line 3"],["address-level1","State/Province"],["address-level2","City"],["address-level3","District"],["address-level4","Neighborhood"],["postal-code","Postal code"],["country","Country code"],["country-name","Country name"],["cc-name","Cardholder name"],["cc-given-name","Cardholder first name"],["cc-family-name","Cardholder last name"],["cc-additional-name","Cardholder middle name"],["cc-number","Card number"],["cc-exp","Expiration date"],["cc-exp-month","Expiration month"],["cc-exp-year","Expiration year"],["cc-csc","Security code"],["cc-type","Card type"],["bday","Birthday"],["bday-day","Birth day"],["bday-month","Birth month"],["bday-year","Birth year"],["organization","Organization"],["organization-title","Job title"],["sex","Sex"],["webauthn","WebAuthn"]]);function s(t){return t.hasAttribute("data-html2canvas-ignore")||"ignore"===t.getAttribute(o)?.toLowerCase()}function d(t){const e=t.getAttribute(o);return""===e||"mask"===e?.toLowerCase()}function c(t){let e=t;for(;e&&e!==document.body;){if(s(e))return!0;e=e.parentElement??void 0}return!1}function l(t){return!(s(t)||!d(t)&&!(t=>{if(t instanceof HTMLInputElement){if("password"===t.type)return!0;if("search"===t.type)return!1;const e=t.getAttribute("role");if("searchbox"===e?.toLowerCase())return!1;if((t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>i.has(t)))return!0}return!!(t instanceof HTMLTextAreaElement&&(t.autocomplete||"").toLowerCase().trim().split(/\s+/).filter(Boolean).some(t=>i.has(t)))})(t))}function u(t){c(t)||(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?l(t)&&(t instanceof HTMLInputElement&&["date","datetime-local","month","time","week"].includes(t.type)&&(t.type="text"),t.value=r(t)):t.hasAttribute(o)&&d(t)&&(t.textContent=r(t)))}function m(t){t instanceof Element&&u(t);const e=t.querySelectorAll("input, textarea");for(const t of e)u(t);const n=t.querySelectorAll(`[${o}]`);for(const t of n)u(t)}const p="intent:consent",g="intent:geo",f="intent:debug-panel",v="intent:data-client-id",y="intent:data-base-url",b="https://intent.callimacus.ai";let h="";function w(){return h}function x(t){return e.get(t)}function E(t,n){const o=localStorage.getItem("intent:data-sid-max-age"),i=null===o?void 0:Number(o),r="number"==typeof n&&Number.isFinite(n)?n:"number"==typeof i&&Number.isFinite(i)?i:2592e3,a="https:"===window.location.protocol;e.set("intent_sid",t,{expires:r/86400,path:"/",sameSite:"Lax",...a&&{secure:!0}})}function S(){e.remove("intent_sid",{path:"/"})}function T(){const t=x("intent_sid");if("granted"!==localStorage.getItem(p))return t&&S(),void(h="");t?h=t:(h=crypto.randomUUID(),E(h))}function L(...t){try{"undefined"!=typeof localStorage&&"enabled"===localStorage.getItem("intent:debug")&&console.log(...t)}catch{}}function k(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}let $,M=!1,C=!1,I=!1,A=!1,D=!1;function z(){return"enabled"===localStorage.getItem(g)}function N(){M=!1,I=!1,D=!1}function B(){return!M&&z()&&!A&&D}let H,P=[],F=!1;function O(){try{return"enabled"===localStorage.getItem(f)}catch{return!1}}function U(t){try{localStorage.setItem(f,t?"enabled":"disabled"),t?_():$&&($.style.display="none")}catch{}}function j(){if(!$)return;const t=$.querySelector("#intent-debug-events"),e=$.querySelector("#intent-debug-count");if(!t||!e)return;if(0===P.length)return t.innerHTML='\n\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t</div>\n\t\t',void(e.textContent="0 events");const n=[...P].reverse();t.innerHTML=n.map(t=>(t=>{const e=new Date(t.timestamp).toLocaleTimeString(),n=t.img&&t.img.length>0,o=n?Math.round(.75*t.img.length/1024):0,i=k(t.event),r=k(JSON.stringify(t.props,null,2)),a=k(t.html),s=k(JSON.stringify(t.bbox,null,2));return`\n\t\t<div style="\n\t\t\tbackground: var(--solomei-color-card, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tpadding: 10px;\n\t\t\tmargin-bottom: 8px;\n\t\t">\n\t\t\t<div style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tmargin-bottom: 8px;\n\t\t\t\tpadding-bottom: 8px;\n\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t">${i}</div>\n\t\t\t\t<div style="\n\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t">${e}</div>\n\t\t\t</div>\n\t\t\t${n?`\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="${t.img}" \n\t\t\t\t\t\tclass="intent-debug-screenshot" \n\t\t\t\t\t\tstyle="\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t" \n\t\t\t\t\t\ttitle="Click to view fullscreen"/>\n\t\t\t\t\t<div style="\n\t\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\tmargin-top: 4px;\n\t\t\t\t\t">Screenshot (~${o} KB)</div>\n\t\t\t\t</div>\n\t\t\t`:""}\n\t\t\t<details style="margin-top: 8px;">\n\t\t\t\t<summary style="\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\tuser-select: none;\n\t\t\t\t">View Details</summary>\n\t\t\t\t<div style="\n\t\t\t\t\tmargin-top: 8px;\n\t\t\t\t\tpadding: 8px;\n\t\t\t\t\tbackground: var(--solomei-color-secondary, #fafaf9);\n\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tcolor: var(--solomei-color-foreground, #212121);\n\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t">\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Properties:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">${r}</pre>\n\t\t\t\t\t${t.html?`\n\t\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>HTML:</strong></div>\n\t\t\t\t\t\t<pre style="\n\t\t\t\t\t\t\tmargin: 0 0 8px 0;\n\t\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\t\twhite-space: pre-wrap;\n\t\t\t\t\t\t\tword-break: break-word;\n\t\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t\t">${a}</pre>\n\t\t\t\t\t`:""}\n\t\t\t\t\t<div style="margin-bottom: 6px;"><strong>Bounding Box:</strong></div>\n\t\t\t\t\t<pre style="\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 8px;\n\t\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 6px);\n\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\t">${s}</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t`})(t)).join(""),e.textContent=`${P.length} event${1===P.length?"":"s"}`}function _(){if($)return void($.style.display="flex");const t=document.createElement("div");t.innerHTML='\n\t\t<div id="intent-debug-panel" data-intent-redact="ignore" style="\n\t\t\tposition: fixed;\n\t\t\ttop: 20px;\n\t\t\tright: 20px;\n\t\t\twidth: 400px;\n\t\t\tmax-height: 80vh;\n\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\tborder: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t\t\tz-index: 2147483647;\n\t\t\tfont-family: var(--solomei-font-primary, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif);\n\t\t\tfont-size: var(--solomei-font-size-base, 15px);\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t">\n\t\t\t<div id="intent-debug-header" style="\n\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\tpadding: 12px 15px;\n\t\t\t\tborder-radius: var(--solomei-radius-lg, 10px) var(--solomei-radius-lg, 10px) 0 0;\n\t\t\t\tcursor: move;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: center;\n\t\t\t\tuser-select: none;\n\t\t\t">\n\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); font-size: 14px;">Intent SDK Debug</div>\n\t\t\t\t<div style="display: flex; gap: 8px;">\n\t\t\t\t\t<button id="intent-debug-minimize" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">−</button>\n\t\t\t\t\t<button id="intent-debug-close" style="\n\t\t\t\t\t\tbackground: transparent;\n\t\t\t\t\t\tborder: 1px solid var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\twidth: 24px;\n\t\t\t\t\t\theight: 24px;\n\t\t\t\t\t\tborder-radius: var(--solomei-radius-sm, 4px);\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t">×</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id="intent-debug-content" style="\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\toverflow: hidden;\n\t\t\t\tflex: 1;\n\t\t\t">\n\t\t\t\t<div style="\n\t\t\t\t\tpadding: 12px 15px;\n\t\t\t\t\tborder-bottom: 1px solid var(--solomei-color-border, #e5e5e5);\n\t\t\t\t\tbackground: var(--solomei-color-background, white);\n\t\t\t\t">\n\t\t\t\t\t<div style="font-weight: var(--solomei-font-weight-semibold, 600); color: var(--solomei-color-foreground, #212121); margin-bottom: 8px;">Event Log</div>\n\t\t\t\t\t<div style="display: flex; gap: 8px; align-items: center;">\n\t\t\t\t\t\t<button id="intent-debug-clear" style="\n\t\t\t\t\t\t\tbackground: var(--solomei-color-primary, #262626);\n\t\t\t\t\t\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\t\t\t\t\t\tborder: none;\n\t\t\t\t\t\t\tpadding: 6px 12px;\n\t\t\t\t\t\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\t\t\tfont-weight: var(--solomei-font-weight-regular, 500);\n\t\t\t\t\t\t">Clear</button>\n\t\t\t\t\t\t<span id="intent-debug-count" style="color: var(--solomei-color-text-secondary, #979797); font-size: 12px;">0 events</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id="intent-debug-events" style="\n\t\t\t\t\tflex: 1;\n\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\tpadding: 10px;\n\t\t\t\t">\n\t\t\t\t\t<div style="color: var(--solomei-color-muted-foreground, #979797); text-align: center; padding: 20px;">\n\t\t\t\t\t\tNo events captured yet. Interact with the page to see events.\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t',$=t.firstElementChild,document.body.appendChild($);const e=$.querySelector("#intent-debug-close"),n=$.querySelector("#intent-debug-minimize"),o=$.querySelector("#intent-debug-clear");e?.addEventListener("click",()=>{U(!1)}),n?.addEventListener("click",()=>{(()=>{if(!$)return;const t=$.querySelector("#intent-debug-content"),e=$.querySelector("#intent-debug-minimize");t&&e&&(F=!F,F?(t.style.display="none",$.style.width="200px",e.textContent="+"):(t.style.display="flex",$.style.width="400px",e.textContent="−"))})()}),o?.addEventListener("click",()=>{P=[],j()}),(()=>{if(!$)return;const t=$.querySelector("#intent-debug-header");if(!t)return;let e=!1,n=0,o=0,i=0,r=0;t.addEventListener("mousedown",t=>{if("BUTTON"===t.target.tagName)return;e=!0;const n=$.getBoundingClientRect();i=t.clientX-n.left,r=t.clientY-n.top}),document.addEventListener("mousemove",t=>{if(!e||!$)return;t.preventDefault(),n=t.clientX-i,o=t.clientY-r;const a=window.innerWidth-$.offsetWidth,s=window.innerHeight-$.offsetHeight;n=Math.max(0,Math.min(n,a)),o=Math.max(0,Math.min(o,s)),$.style.left=`${n}px`,$.style.top=`${o}px`,$.style.right="auto"}),document.addEventListener("mouseup",()=>{e=!1})})(),$.addEventListener("click",t=>{const e=t.target;if(e.classList.contains("intent-debug-screenshot")){const t=e;t.src&&t.src.startsWith("data:image/")&&(t=>{const e=document.createElement("div");e.id="intent-debug-fullscreen-modal",e.setAttribute("data-intent-redact","ignore"),e.style.cssText="\n\t\tposition: fixed;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tbackground: rgba(0, 0, 0, 0.95);\n\t\tz-index: 2147483646;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tcursor: zoom-out;\n\t";const n=document.createElement("div");n.style.cssText="\n\t\tmax-width: 95%;\n\t\tmax-height: 95%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t";const o=document.createElement("img");o.src=t,o.style.cssText="\n\t\tmax-width: 100%;\n\t\tmax-height: calc(95vh - 60px);\n\t\tborder-radius: var(--solomei-radius-lg, 10px);\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.2));\n\t";const i=document.createElement("div");i.style.cssText="\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t";const r=document.createElement("button");r.textContent="✕ Close",r.style.cssText="\n\t\tpadding: 12px 24px;\n\t\tbackground: var(--solomei-color-primary-button-background, #262626);\n\t\tcolor: var(--solomei-color-primary-button-color, white);\n\t\tborder: none;\n\t\tborder-radius: var(--solomei-radius-button, 20px);\n\t\tfont-size: 14px;\n\t\tfont-weight: var(--solomei-font-weight-semibold, 600);\n\t\tcursor: pointer;\n\t\tbox-shadow: var(--solomei-shadow-box, 0 2px 10px rgba(0, 0, 0, 0.15));\n\t";const a=document.createElement("div");a.textContent="Click anywhere or press ESC to close",a.style.cssText="\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t",i.appendChild(r),i.appendChild(a),n.appendChild(o),n.appendChild(i),e.appendChild(n);const s=()=>{e.remove()};e.addEventListener("click",s),r.addEventListener("click",t=>{t.stopPropagation(),s()}),o.addEventListener("click",t=>{t.stopPropagation()});const d=t=>{"Escape"===t.key&&(s(),document.removeEventListener("keydown",d))};document.addEventListener("keydown",d),document.body.appendChild(e)})(t.src)}}),j()}"undefined"!=typeof window&&O()&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{_()}):_());let q,W=0,R=!1;const X="__intent__sdk__initialized__",Y=["button","a[href]","a",'input[type="submit"]','input[type="button"]','[role="button"]','[role="link"]',"[onclick]"].join(",");function J(){return T(),"granted"===localStorage.getItem(p)&&Boolean(w())&&Boolean(localStorage.getItem(v)?.trim().length)}function K(){return!J()||C}async function V(e){return q&&await q,q=(async()=>{try{const n=performance.now(),o=performance.now(),i=(t=>{if(s(t))return"";const e=t.cloneNode(!1);return Array.from(t.attributes).forEach(({name:t,value:n})=>{e.setAttribute(t,n)}),t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=t.value):e.textContent=t.textContent,m(e),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.setAttribute("value",e.value),e.outerHTML})(e);L(`[Timing] serialize: ${(performance.now()-o).toFixed(2)}ms`);const r=e.getBoundingClientRect(),a=performance.now(),d={left:window.scrollX,top:window.scrollY,right:window.scrollX+window.innerWidth,bottom:window.scrollY+window.innerHeight},l=await t(document.body,{useCORS:!0,x:window.scrollX,y:window.scrollY,width:window.innerWidth,height:window.innerHeight,scale:.6,logging:!1,onclone(t,e){m(t)},ignoreElements(t){if(!(t instanceof Element))return!1;if(c(t))return!0;const e=t.getBoundingClientRect(),n=e.left+window.scrollX,o=e.top+window.scrollY,i=e.right+window.scrollX,r=e.bottom+window.scrollY,a=100;if(i<d.left-a||n>d.right+a||r<d.top-a||o>d.bottom+a){const e=window.getComputedStyle(t),{position:a}=e;if("fixed"===a||"absolute"===a){const t=500;return i<d.left-t||n>d.right+t||r<d.top-t||o>d.bottom+t}return!0}return!1}});L(`[Timing] html2canvas-pro: ${(performance.now()-a).toFixed(2)}ms`);const u=performance.now(),p=l.toDataURL("image/jpeg",.8);L(`[Timing] jpeg-encoding: ${(performance.now()-u).toFixed(2)}ms`);return L(`[Timing] capture-total: ${(performance.now()-n).toFixed(2)}ms`),{html:i,bbox:{x:r.x,y:r.y,w:r.width,h:r.height},img:p,fullCanvas:l}}finally{q=void 0}})(),q}function Z(){const t=localStorage.getItem(v),e={"Content-Type":"application/json"};t&&(e["x-sl-access-token"]=t);const n=w();return n&&(e["x-intent-sid"]=n),e}async function G(t,e,n,o){if(!J())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=l(n)?r(n):n.value);let a="",s={x:0,y:0,w:0,h:0},d="";const c=!("scroll"===t||"page-blur"===t||"page-focus"===t),u=Date.now();let m=o;c&&(("click"===t||"input-submit"===t||"pageview"===t)&&!m||!m&&u-W>=0)&&(m=await V(n),W=u),m&&(a=m.html,s=m.bbox,d=m.img);const p="page-blur"===t||"page-focus"===t||"pageview"===t,g={ts:Date.now(),event:t,props:i,html:p?"":a,bbox:s,img:d};(function(t,e,n,o,i){((t,e,n,o,i)=>{if(!O())return;const r={id:"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,timestamp:Date.now(),event:t,props:e,html:n,bbox:o,img:i};P.push(r),P.length>50&&P.shift(),j()})(t,e,n,o,i)})(t,i,p?"":a,s,d),await async function(t){const e=`${localStorage.getItem(y)??b}/events`,n=localStorage.getItem(v)??void 0,o=JSON.stringify({...t,clientId:n});try{if((await fetch(e,{method:"POST",headers:Z(),body:o,keepalive:!0,credentials:"omit"})).ok)return}catch{}try{await(async t=>{const e=`${localStorage.getItem(y)??b}/p.gif`;if(!(await fetch(e,{method:"POST",headers:Z(),body:JSON.stringify(t),keepalive:!0,credentials:"omit",cache:"no-store"})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(g)}async function Q(t={}){if(!J())return;const e="number"==typeof t.lat&&"number"==typeof t.lon;if(e&&M)return;if(!e&&R)return;const o=localStorage.getItem("intent:data-ip"),i={context:await n()};o&&(i.ip=o);for(const[e,n]of Object.entries(t))i[e]=n;await G("context",i,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),e||(R=!0)}async function tt(){await(async(t,e)=>{const n=e(),o=z();if(!n||!o||M)return;if(!("geolocation"in navigator))return;if(A)return;A=!0,C=!0;const i={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator.permissions?.query({name:"geolocation"}))}catch(t){}await new Promise(t=>{let e=!1;const n=async(n,o,i)=>{e||(e=!0,Number.isFinite(n)&&Number.isFinite(o)&&(await(async(t,e,n)=>{await Q({lat:t,lon:e,source:"device",...n})})(n,o,i),M=!0),A=!1,C=!1,D=!0,t())};navigator.geolocation.getCurrentPosition(t=>{const e=t.coords;n(e.latitude,e.longitude,{accuracy:e.accuracy,altitude:"number"==typeof e.altitude?e.altitude:void 0,altitudeAccuracy:"number"==typeof e.altitudeAccuracy?e.altitudeAccuracy:void 0,heading:"number"==typeof e.heading?e.heading:void 0,speed:"number"==typeof e.speed?e.speed:void 0,timestamp:t.timestamp,visibility:document.visibilityState,focused:document.hasFocus()})},t=>{const e=t?.code,o={error:{code:e,name:1===e?"PERMISSION_DENIED":2===e?"POSITION_UNAVAILABLE":3===e?"TIMEOUT":"UNKNOWN",message:t?.message??""},online:navigator.onLine,visibility:document.visibilityState,focused:document.hasFocus(),secure:window.isSecureContext,proto:location.protocol,host:location.hostname};n(void 0,void 0,o)},i)})})(0,J)}function et(){(t=>{if(I||!z()||M)return;I=!0;const e=()=>{window.removeEventListener("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),t()};window.addEventListener("pointerdown",e,!0),window.addEventListener("keydown",e,!0)})(tt)}T();let nt=!document.hidden&&document.hasFocus(),ot=document.hasFocus();function it(){if(K())return;const t=!document.hidden&&document.hasFocus();t&&(ot=!0),ot||t?t!==nt&&(nt=t,G(t?"page-focus":"page-blur",{},document.body)):nt=t}function rt(){(()=>{const t=globalThis;return!t[X]&&(Object.defineProperty(t,X,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener("load",()=>{J()&&(Q(),(window.isSecureContext||"localhost"===location.hostname)&&(z()&&et(),window.addEventListener("focus",()=>{B()&&tt()}),document.addEventListener("visibilitychange",()=>{!document.hidden&&B()&&tt()})))}),window.addEventListener("storage",t=>{t.key===p&&("granted"===localStorage.getItem(p)?(R=!1,Q(),z()&&et()):(R=!1,N())),t.key===g&&(z()?et():N())}),window.addEventListener("load",()=>{J()&&G("pageview",{url:window.location.href,title:document.title,ref:document.referrer},document.body)}),addEventListener("pointerdown",(()=>{let t=0;return(...e)=>{const n=Date.now();n-t>=50&&(t=n,(t=>{if(K())return;const e=t.target instanceof Element?t.target.closest(Y):null;e instanceof HTMLElement&&(H=V(e))})(...e))}})(),{capture:!0,passive:!0}),addEventListener("click",async t=>{if(K())return;if(!(t.target instanceof Element))return;const e=t.target.closest(Y);if(!(e instanceof HTMLElement))return;const n=(o=e).getAttribute("aria-label")??o.title??o.textContent?.trim()??"<no visible label>";var o;(async()=>{const t=H?await H:void 0;H=void 0,G("click",{tag:e.tagName,label:n},e,t)})()},!0),addEventListener("keydown",t=>{if(!K()&&"Enter"===t.key){const e=t.target;if(e instanceof HTMLElement&&("INPUT"===e.tagName||"TEXTAREA"===e.tagName)){const t=e instanceof HTMLInputElement?e.name:void 0;G("input-submit",{tag:e.tagName,name:t??(e.id||void 0)},e)}}},{capture:!0}),["focus","blur"].forEach(t=>{window.addEventListener(t,it)}),document.addEventListener("visibilitychange",it),window.addEventListener("scroll",(()=>{let t;return(...e)=>{void 0!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,(()=>{K()||G("scroll",{scrollX:window.scrollX,scrollY:window.scrollY},document.body)})(...e)},250)}})(),{passive:!0}),window.intent??={send(t,e){J()&&G(t,e,document.body)}})}function at(t,e){try{if(void 0===e)return;localStorage.setItem(t,e?"intent:consent"===t?"granted":"enabled":"disabled")}catch{}}function st(t){at("intent:consent",t)}function dt(t){at("intent:geo",t)}function ct(t){at("intent:debug",t)}function lt(t){t&&"undefined"!=typeof console&&console.warn&&console.warn("[Intent SDK] ⚠️ Debug panel is enabled. This feature is NOT recommended for production use. It exposes internal SDK behavior and should only be used during development."),(t=>{U(t)})(t)}function ut(t={}){localStorage.setItem("intent:data-client-id",t.clientId??""),localStorage.setItem("intent:data-ip",t.ip??""),localStorage.setItem("intent:data-base-url",t.baseUrl??"https://intent.callimacus.ai"),"number"==typeof t.sidMaxAgeSeconds&&localStorage.setItem("intent:data-sid-max-age",String(t.sidMaxAgeSeconds)),at("intent:consent",t.consent),at("intent:geo",t.geo),at("intent:debug",t.debug),void 0!==t.debugPanel&<(t.debugPanel),t.consent&&(x("intent_sid")||E("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random()}`,t.sidMaxAgeSeconds)),rt()}function mt(){return x("intent_sid")}function pt(){T()}function gt(){S()}function ft(t){Number.isFinite(t)&&localStorage.setItem("intent:data-sid-max-age",String(t));const e=x("intent_sid");e&&E(e,t)}export{gt as clearIntentSessionId,pt as ensureIntentSessionId,mt as getIntentSessionId,ut as initIntent,st as setConsent,ct as setDebug,lt as setDebugPanel,at as setFlag,dt as setGeo,ft as setIntentSessionMaxAge};
|
|
5
|
+
import t from"html2canvas-pro";import e from"js-cookie";async function n(){const t=(new Intl.DateTimeFormat).resolvedOptions().timeZone,e=(t=>{const e=t<=0?"+":"-",n=Math.abs(t);return`${e}${String(Math.floor(n/60)).padStart(2,"0")}:${String(n%60).padStart(2,"0")}`})((new Date).getTimezoneOffset()),n=[];n.push(`Language: ${navigator.language}`),navigator.languages?.length&&n.push(`Languages: ${navigator.languages.join(", ")}`),n.push(`User agent: ${navigator.userAgent}`);const o=(()=>{if(!("userAgentData"in(t=navigator))||void 0===t.userAgentData)return;var t;const e=navigator.userAgentData,n=Array.isArray(e.brands)?e.brands.map(t=>`${t.brand} ${t.version}`).join(", "):void 0,o=e.platform?`${e.platform}${e.mobile?" (mobile)":""}`:void 0;return[n&&`UA brands: ${n}`,o&&`Platform: ${o}`].filter(Boolean).join(" | ")||void 0})();o&&n.push(o),n.push(`Timezone: ${t} (UTC${e})`),n.push(`Local time: ${(new Date).toString()}`);const i=window.devicePixelRatio||1;n.push(`Screen: ${screen.width}x${screen.height} @${i}x (avail ${screen.availWidth}x${screen.availHeight}, ${screen.colorDepth}-bit)`);const r=screen.orientation&&"type"in screen.orientation?screen.orientation.type:void 0;n.push(`Viewport: ${window.innerWidth}x${window.innerHeight}${r?`, orientation ${r}`:""}`),n.push(`CPU: ${navigator.hardwareConcurrency} cores`);const a=await async function(){const t=[];let e="browser API";if("connection"in(n=navigator)&&void 0!==n.connection){const e=navigator.connection;e?.effectiveType&&t.push(e.effectiveType),"number"==typeof e?.downlink&&t.push(`~${e.downlink} Mbps`),"number"==typeof e?.rtt&&t.push(`${e.rtt} ms`),e?.saveData&&t.push("saveData")}else{const n=((t=20)=>{const e=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType),n=e?Math.max(0,e.responseStart-e.requestStart):void 0,o=performance.getEntriesByType("resource").filter(t=>"resource"===t.entryType);let i=0,r=0;for(const e of o.slice(0,Math.max(0,t))){const t=e.encodedBodySize>0?e.encodedBodySize:e.transferSize>0?e.transferSize:0,n=e.duration;t>0&&n>0&&Number.isFinite(n)&&(i+=t,r+=n)}const a=r>0?8*i/r:void 0;return{downlinkMbps:"number"==typeof a?a/1e3:void 0,rttMs:n}})();"number"==typeof n.downlinkMbps&&t.push(`~${n.downlinkMbps.toFixed(1)} Mbps`),"number"==typeof n.rttMs&&t.push(`TTFB ~${Math.round(n.rttMs)} ms`),e="inferred"}var n;const o=performance.getEntriesByType("navigation").find(t=>"navigation"===t.entryType);if(o){const e=Math.max(0,o.responseStart-o.requestStart);t.some(t=>t.startsWith("TTFB"))||t.push(`TTFB ~${Math.round(e)} ms`)}return t.length?`Network: ${t.join(", ")} (${e})`:void 0}();a&&n.push(a),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(pointer: coarse)").matches,e="function"==typeof matchMedia&&matchMedia("(pointer: fine)").matches;return`Pointer/Touch: ${t?"coarse":e?"fine":"unknown"}, maxTouchPoints ${navigator.maxTouchPoints}`})());const s=await(async()=>{var t;if("getBattery"in(t=navigator)&&"function"==typeof t.getBattery)try{const t=await navigator.getBattery(),e=Math.round(100*t.level);return`Battery: ${[`${Number.isFinite(e)?e:0}%`,t.charging?"charging":"not charging"].join(", ")}`}catch{}})();s&&n.push(s),n.push(`CookiesEnabled: ${navigator.cookieEnabled?"yes":"no"}; DNT: ${navigator.doNotTrack??"n/a"}`),n.push("Online: "+(navigator.onLine?"yes":"no")),document.referrer&&n.push(`Referrer: ${document.referrer}`),n.push((()=>{const t="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)").matches;return`PWA: ${Boolean(navigator.serviceWorker?.controller)?"SW-controlled":"no SW"}, display-mode standalone: ${t?"yes":"no"}`})());const d=await async function(t=400){if("DeviceOrientationEvent"in window&&window.isSecureContext)return new Promise(e=>{let n=!1;const o=t=>{const i="number"==typeof t.beta?t.beta:void 0,r="number"==typeof t.gamma?t.gamma:void 0;if(void 0===i||void 0===r)return;if(n)return;n=!0,window.removeEventListener("deviceorientation",o);const a=((t,e)=>{const n=Math.abs(t),o=Math.abs(e);return n<15&&o<15?"flat":n>=60?"upright":"reclined"})(i,r);e(`Tilt: ${a} (β ${Math.round(i)}°, γ ${Math.round(r)}°)`)};window.setTimeout(()=>{n||(n=!0,window.removeEventListener("deviceorientation",o),e(void 0))},t),window.addEventListener("deviceorientation",o,{passive:!0})})}();d&&n.push(d);const c="enabled"===localStorage.getItem("intent:geo");return n.push(c?"Device geolocation: enabled":"Device geolocation: disabled"),n.join(" | ")}const o="intent:consent",i="intent:geo",r="intent:debug-panel",a="intent:data-client-id",s="intent:data-base-url",d="https://intent.callimacus.ai";function c(...t){try{"undefined"!=typeof localStorage&&"enabled"===localStorage.getItem("intent:debug")&&console.log(...t)}catch{}}const l=Object.freeze(new Set(["textbox","combobox","searchbox"])),u=["input","textarea","select","[contenteditable]",...[...l].map(t=>`[role="${t}"]`)].join(", ");function m(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement}function p(t){if(m(t))return!0;if(t instanceof HTMLElement&&t.isContentEditable)return!0;const e=t.getAttribute("role")?.toLowerCase();return!(!e||!l.has(e))}function g(t){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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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/redaction.ts","../../src/constants.ts","../../src/session.ts","../../src/utils.ts","../../src/geolocation.ts","../../src/debug-panel.ts","../../src/client.ts","../../src/debug-panel-proxy.ts","../../src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["async","buildContextString","tz","Intl","DateTimeFormat","resolvedOptions","timeZone","tzOff","mins","sign","abs","Math","String","floor","padStart","tzOffsetString","Date","getTimezoneOffset","lines","push","navigator","language","languages","length","join","userAgent","uaLine","n","userAgentData","u","brands","Array","isArray","map","b","brand","version","undefined","platform","mobile","filter","Boolean","getUaHintsLine","toString","dpr","window","devicePixelRatio","screen","width","height","availWidth","availHeight","colorDepth","orientation","type","innerWidth","innerHeight","hardwareConcurrency","net","parts","label","connection","c","effectiveType","downlink","rtt","saveData","inferred","limit","nav","performance","getEntriesByType","find","e","entryType","rttMs","max","responseStart","requestStart","entries","entry","totalBytes","totalMs","slice","bytes","encodedBodySize","transferSize","ms","duration","Number","isFinite","kbps","downlinkMbps","inferNetworkFromTimings","toFixed","round","navEntry","ttfbMs","some","p","startsWith","getNetworkLine","coarse","matchMedia","matches","fine","maxTouchPoints","getPointerLine","battery","getBattery","pct","level","charging","getBatteryLine","cookieEnabled","doNotTrack","onLine","document","referrer","standalone","serviceWorker","controller","getPwaLine","tilt","timeoutMs","isSecureContext","Promise","resolve","settled","onEvent","beta","gamma","removeEventListener","ab","ag","classifyTilt","setTimeout","addEventListener","passive","getTiltLine","geoEnabled","localStorage","getItem","intentRedactAttr","sensitiveAutocomplete","Set","placeholderFor","el","custom","getAttribute","trim","autocomplete","tokens","HTMLInputElement","HTMLTextAreaElement","toLowerCase","split","token","autocompleteLabels","get","redactAttr","getRedactionPlaceholderLabel","Map","hasRedactIgnore","hasAttribute","hasRedactMask","v","hasRedactIgnoreInHierarchy","current","body","parentElement","shouldMaskValue","role","t","has","isSensitiveControl","processElement","element","includes","value","textContent","redactDocument","clonedDoc","Element","inputs","querySelectorAll","input","markedElements","intentFlag","geoFlag","debugPanelFlag","clientIdKey","collectBaseKey","fallbackBaseUrl","sid","getSid","getCookie","name","Cookies","setSidCookie","maxAgeSeconds","raw","stored","maxAge","secure","location","protocol","set","expires","path","sameSite","clearSidCookie","remove","ensureSid","existing","crypto","randomUUID","debugLog","args","console","log","escapeHtml","unsafe","replace","panelElement","deviceGeoSent","geoModalActive","geoArmed","geoPending","geoTriedOnce","isGeoEnabled","resetGeoState","shouldRetryGeo","lastCapture","eventLog","isMinimized","isDebugPanelEnabled","setDebugPanel","enabled","setItem","showDebugPanel","style","display","updateEventList","eventsContainer","querySelector","countElement","innerHTML","sortedEvents","reverse","event","time","timestamp","toLocaleTimeString","hasImage","img","imageSize","escapedEventName","escapedPropsJson","JSON","stringify","props","escapedHtml","html","escapedBboxJson","bbox","createEventHTML","container","createElement","firstElementChild","appendChild","closeBtn","minimizeBtn","clearBtn","content","toggleMinimize","header","isDragging","currentX","currentY","initialX","initialY","target","tagName","rect","getBoundingClientRect","clientX","left","clientY","top","preventDefault","maxX","offsetWidth","maxY","offsetHeight","min","right","setupDragging","classList","contains","src","imageSrc","modal","id","setAttribute","cssText","imageContainer","controls","instructions","closeModal","stopPropagation","handleEscape","key","showFullscreenImage","readyState","captureInProgress","lastShotAt","baselineSent","INIT_MARK","clickSelector","canSend","blocked","capture","captureStartTime","now","serializeStart","cloned","cloneNode","from","attributes","forEach","outerHTML","getRedactedElementHTML","bboxRaw","snapStart","viewportRect","scrollX","scrollY","bottom","fullCanvas","html2canvas","useCORS","x","y","scale","logging","onclone","clonedElement","ignoreElements","node","nodeRect","margin","getComputedStyle","position","largeMargin","jpegStart","toDataURL","w","h","baseHeaders","clientId","headers","sendEvent","eventName","pre","sendProps","localTime","toISOString","requiresScreenshot","cap","skipHtml","payload","ts","eventData","random","shift","debugPanelModule.logEventToDebugPanel","logEventToDebugPanel","url","fetch","method","keepalive","credentials","ok","cache","Error","pixelBodyFallback","transmit","emitContextUpdate","extra","wantsDevice","lat","lon","ipAttr","context","ip","k","Object","handleRequestDeviceGeoOnce","onSuccess","canRequest","precheck","opts","enableHighAccuracy","maximumAge","timeout","permissions","query","done","meta","source","geolocation","getCurrentPosition","coords","latitude","longitude","accuracy","altitude","altitudeAccuracy","heading","speed","visibility","visibilityState","focused","hasFocus","err","code","error","message","online","proto","host","hostname","requestDeviceGeoOnce","handleArmGeoOnFirstGesture","requestGeo","fire","armGeoOnFirstGesture","lastActive","hidden","hadFocusOnce","updateFocus","active","initRuntime","g","globalThis","defineProperty","configurable","enumerable","writable","markInitialized","href","title","ref","last","targetEl","closest","HTMLElement","fn","throttle","tag","evt","timer","clearTimeout","debounce","intent","send","setFlag","yes","setConsent","granted","setGeo","setDebug","warn","debugPanelModule.setDebugPanel","setDebugPanelImpl","initIntent","baseUrl","sidMaxAgeSeconds","consent","geo","debug","debugPanel","getIntentSessionId","ensureIntentSessionId","clearIntentSessionId","setIntentSessionMaxAge","seconds","cur"],"mappings":";;;;wDAgMOA,eAAeC,IACrB,MAAMC,GAAK,IAAIC,KAAKC,gBAAiBC,kBAAkBC,SACjDC,EA7KP,CAAwBC,IACvB,MAAMC,EAAOD,GAAQ,EAAI,IAAM,IACzBE,EAAMC,KAAKD,IAAIF,GAGrB,MAAO,GAAGC,IAFCG,OAAOD,KAAKE,MAAMH,EAAM,KAAKI,SAAS,EAAG,QACzCF,OAAOF,EAAM,IAAII,SAAS,EAAG,MAEzC,EAuKeC,EAAe,IAAIC,MAAOC,qBAElCC,EAAkB,GAExBA,EAAMC,KAAK,aAAaC,UAAUC,YAC9BD,UAAUE,WAAWC,QACxBL,EAAMC,KAAK,cAAcC,UAAUE,UAAUE,KAAK,SAGnDN,EAAMC,KAAK,eAAeC,UAAUK,aACpC,MAAMC,EAzGP,MACC,KAtFO,kBADOC,EAuFHP,kBAtF+C,IAApBO,EAAEC,cAuFvC,OAxFF,IAAeD,EA2Fd,MAAME,EAAIT,UAAUQ,cACdE,EAASC,MAAMC,QAAQH,EAAEC,QAAUD,EAAEC,OAAOG,IAAIC,GAAK,GAAGA,EAAEC,SAASD,EAAEE,WAAWZ,KAAK,WAAQa,EAC7FC,EAAWT,EAAES,SAAW,GAAGT,EAAES,WAAWT,EAAEU,OAAS,YAAc,UAAOF,EAE9E,MADe,CAACP,GAAU,cAAcA,IAAU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,UAEgBgR,KACflR,GACD,CAEM,SAAUmR,GAAuBC,GAClC9Y,OAAOC,SAAS6Y,IACnB1V,aAAakG,QAAQ,0BAA2BnO,OAAO2d,IAGxD,MAAMC,EAAMpS,EAAU,cAClBoS,GACHjS,EAAaiS,EAAKD,EAEpB"}
|
|
1
|
+
{"version":3,"file":"index.debug.js","sources":["../../src/context.ts","../../src/constants.ts","../../src/utils.ts","../../src/redaction.ts","../../src/session.ts","../../src/geolocation.ts","../../src/debug-panel.ts","../../src/client.ts","../../src/debug-panel-proxy.ts","../../src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["async","buildContextString","tz","Intl","DateTimeFormat","resolvedOptions","timeZone","tzOff","mins","sign","abs","Math","String","floor","padStart","tzOffsetString","Date","getTimezoneOffset","lines","push","navigator","language","languages","length","join","userAgent","uaLine","n","userAgentData","u","brands","Array","isArray","map","b","brand","version","undefined","platform","mobile","filter","Boolean","getUaHintsLine","toString","dpr","window","devicePixelRatio","screen","width","height","availWidth","availHeight","colorDepth","orientation","type","innerWidth","innerHeight","hardwareConcurrency","net","parts","label","connection","c","effectiveType","downlink","rtt","saveData","inferred","limit","nav","performance","getEntriesByType","find","e","entryType","rttMs","max","responseStart","requestStart","entries","entry","totalBytes","totalMs","slice","bytes","encodedBodySize","transferSize","ms","duration","Number","isFinite","kbps","downlinkMbps","inferNetworkFromTimings","toFixed","round","navEntry","ttfbMs","some","p","startsWith","getNetworkLine","coarse","matchMedia","matches","fine","maxTouchPoints","getPointerLine","battery","getBattery","pct","level","charging","getBatteryLine","cookieEnabled","doNotTrack","onLine","document","referrer","standalone","serviceWorker","controller","getPwaLine","tilt","timeoutMs","isSecureContext","Promise","resolve","settled","onEvent","beta","gamma","removeEventListener","ab","ag","classifyTilt","setTimeout","addEventListener","passive","getTiltLine","geoEnabled","localStorage","getItem","intentFlag","geoFlag","debugPanelFlag","clientIdKey","collectBaseKey","fallbackBaseUrl","debugLog","args","console","log","editableRoles","Object","freeze","Set","editableSelector","r","isNativeFormControl","el","HTMLInputElement","HTMLTextAreaElement","HTMLSelectElement","isEditableElement","HTMLElement","isContentEditable","role","getAttribute","toLowerCase","has","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,IACrB,MAAMC,GAAK,IAAIC,KAAKC,gBAAiBC,kBAAkBC,SACjDC,EA7KP,CAAwBC,IACvB,MAAMC,EAAOD,GAAQ,EAAI,IAAM,IACzBE,EAAMC,KA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D,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(){const t=["TTFB","no SW","deviceorientation","283549mFdwqv","24edLGHN","Screen: ","345387bxMjae","(display-mode: standalone)","Platform: ","548952lwquyr","slice","(pointer: fine)","language","User agent: ","TTFB ~","Local time: ","reclined","undefined","downlink","round","charging","Battery: ","8103294KycWQm","isFinite","join","Network: ","encodedBodySize","unknown","max","brands","referrer","serviceWorker",", orientation ","coarse","intent:geo","browser API","onLine","responseStart","addEventListener","colorDepth"," Mbps",", maxTouchPoints ","enabled","beta","isSecureContext","languages","transferSize","getTimezoneOffset","level","Tilt: ","getEntriesByType","userAgentData"," (mobile)","filter","toFixed","entryType"," | ","Pointer/Touch: ","setTimeout"," (UTC","Online: "," cores","number","width","rtt","brand","removeEventListener","DateTimeFormat","matches","hardwareConcurrency","°, γ ","connection","Referrer: ","orientation","downlinkMbps","UA brands: ","SW-controlled","Device geolocation: disabled","Language: ","push","-bit)","x (avail ",", display-mode standalone: ","12840670rXhSqp","inferred","abs","some","; DNT: ","Timezone: ","yes","padStart","type","not charging","54dwizVS"," ms","floor","getBattery","navigation","resource","function","length","CPU: ","upright","timeZone","userAgent","requestStart","version","Viewport: ","gamma","getItem","rttMs","effectiveType","528095gaJOQU","innerWidth","16sqjKkZ","saveData","CookiesEnabled: ","1447154FRzcAz"];return(n=()=>t)()}function o(t,e){return t-=117,n()[t]}async function r(){const t=o,e=(new(Intl[t(223)])).resolvedOptions()[t(141)],n=(t=>{const e=o,n=t<=0?"+":"-",r=Math[e(123)](t);return""+n+String(Math[e(133)](r/60))[e(128)](2,"0")+":"+String(r%60).padStart(2,"0")})((new Date)[t(203)]()),r=[];r.push(t(234)+navigator[t(168)]),navigator[t(201)]?.length&&r[t(117)]("Languages: "+navigator[t(201)][t(180)](", ")),r.push(t(169)+navigator[t(142)]);const i=function(){const t=o;if(!(t=>{const e=o;return"userAgentData"in t&&typeof t[e(207)]!==e(173)})(navigator))return;const e=navigator[t(207)],n=Array.isArray(e[t(185)])?e.brands.map(e=>e[t(221)]+" "+e[t(144)])[t(180)](", "):void 0,r=e.platform?""+e.platform+(e.mobile?t(208):""):void 0;return[n&&t(231)+n,r&&t(164)+r].filter(Boolean)[t(180)](t(212))||void 0}();i&&r[t(117)](i),r[t(117)](t(126)+e+t(215)+n+")"),r[t(117)](t(171)+(new Date).toString());const a=window.devicePixelRatio||1;r.push(t(161)+screen[t(219)]+"x"+screen.height+" @"+a+t(119)+screen.availWidth+"x"+screen.availHeight+", "+screen[t(195)]+t(118));const s=screen.orientation&&"type"in screen[t(229)]?screen[t(229)][t(129)]:void 0;r[t(117)](t(145)+window[t(151)]+"x"+window.innerHeight+(s?t(188)+s:"")),r[t(117)](t(139)+navigator[t(225)]+t(217));const c=await async function(){const t=o,e=[];let n=t(191);if((t=>{const e=o;return e(227)in t&&typeof t[e(227)]!==e(173)})(navigator)){const n=navigator[t(227)];n?.[t(149)]&&e.push(n[t(149)]),typeof n?.[t(174)]===t(218)&&e[t(117)]("~"+n[t(174)]+t(196)),typeof n?.[t(220)]===t(218)&&e.push(n[t(220)]+t(132)),n?.[t(153)]&&e[t(117)](t(153))}else{const r=((t=20)=>{const e=o,n=performance[e(206)](e(135)).find(t=>"navigation"===t[e(211)]),r=n?Math[e(184)](0,n.responseStart-n[e(143)]):void 0,i=performance[e(206)](e(136))[e(209)](t=>t.entryType===e(136));let a=0,s=0;for(const n of i[e(166)](0,Math[e(184)](0,t))){const t=n[e(182)]>0?n[e(182)]:n[e(202)]>0?n[e(202)]:0,o=n.duration;t>0&&o>0&&Number[e(179)](o)&&(a+=t,s+=o)}const c=s>0?8*a/s:void 0;return{downlinkMbps:typeof c===e(218)?c/1e3:void 0,rttMs:r}})();typeof r[t(230)]===t(218)&&e[t(117)]("~"+r[t(230)][t(210)](1)+t(196)),typeof r[t(148)]===t(218)&&e[t(117)](t(170)+Math.round(r[t(148)])+" ms"),n=t(122)}const r=performance[t(206)](t(135)).find(e=>e[t(211)]===t(135));if(r){const n=Math[t(184)](0,r[t(193)]-r[t(143)]);!e[t(124)](e=>e.startsWith(t(156)))&&e[t(117)](t(170)+Math[t(175)](n)+t(132))}return e[t(138)]?t(181)+e[t(180)](", ")+" ("+n+")":void 0}();c&&r.push(c),r[t(117)]((()=>{const t=o,e=typeof matchMedia===t(137)&&matchMedia("(pointer: coarse)").matches,n=typeof matchMedia===t(137)&&matchMedia(t(167))[t(224)],r=e?t(189):n?"fine":t(183),i=navigator.maxTouchPoints;return t(213)+r+t(197)+i})());const d=await async function(){const t=o;if((t=>{const e=o;return e(134)in t&&typeof t[e(134)]===e(137)})(navigator))try{const e=await navigator[t(134)](),n=Math[t(175)](100*e[t(204)]),o=[(Number[t(179)](n)?n:0)+"%",e[t(176)]?t(176):t(130)];return t(177)+o.join(", ")}catch{}}();d&&r[t(117)](d),r[t(117)](t(154)+(navigator.cookieEnabled?t(127):"no")+t(125)+(navigator.doNotTrack??"n/a")),r[t(117)](t(216)+(navigator[t(192)]?"yes":"no")),document[t(186)]&&r[t(117)](t(228)+document.referrer),r[t(117)]((()=>{const t=o,e=typeof matchMedia===t(137)&&matchMedia(t(163))[t(224)],n=Boolean(navigator[t(187)]?.controller);return"PWA: "+t(n?232:157)+t(120)+(e?"yes":"no")})());const l=await async function(t=400){const e=o;if("DeviceOrientationEvent"in window&&window[e(200)])return new Promise(n=>{const r=e;let i=!1;const a=t=>{const e=o,r=typeof t[e(199)]===e(218)?t[e(199)]:void 0,s=typeof t[e(146)]===e(218)?t[e(146)]:void 0;if(void 0===r||void 0===s)return;if(i)return;i=!0,window[e(222)](e(158),a);const c=((t,e)=>{const n=o,r=Math[n(123)](t),i=Math.abs(e);return r<15&&i<15?"flat":n(r>=60?140:172)})(r,s);n(e(205)+c+" (β "+Math[e(175)](r)+e(226)+Math[e(175)](s)+"°)")};window[r(214)](()=>{const t=r;i||(i=!0,window[t(222)](t(158),a),n(void 0))},t),window[r(194)](r(158),a,{passive:!0})})}();l&&r[t(117)](l);const u=localStorage[t(147)](t(190))===t(198);return r[t(117)](u?"Device geolocation: enabled":t(233)),r[t(180)](t(212))}(()=>{const t=o,e=n();for(;;)try{if(588149==parseInt(t(162))/1+parseInt(t(155))/2+parseInt(t(165))/3*(parseInt(t(152))/4)+-parseInt(t(150))/5*(parseInt(t(131))/6)+-parseInt(t(159))/7*(-parseInt(t(160))/8)+parseInt(t(178))/9+-parseInt(t(121))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const i=a;function a(t,e){return t-=167,g()[t]}(()=>{const t=a,e=g();for(;;)try{if(421354==parseInt(t(216))/1*(-parseInt(t(219))/2)+parseInt(t(221))/3+parseInt(t(246))/4*(-parseInt(t(168))/5)+-parseInt(t(193))/6*(-parseInt(t(191))/7)+-parseInt(t(268))/8+parseInt(t(258))/9*(-parseInt(t(205))/10)+parseInt(t(225))/11*(parseInt(t(212))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const s=i(206),c=i(267),d=new Set([i(200),i(169),i(266),i(177),i(254),i(228),i(210),i(231),i(189),i(257),i(256),"address-line1","address-line2",i(273),"address-level1","address-level2","address-level3",i(170),i(227),i(190),i(171),i(196),i(222),i(197),"cc-family-name",i(213),i(217),i(198),i(247),i(180),i(255),i(207),i(187),i(173),i(229),i(252),i(271)]);function l(t){return"<"+(t=>{const e=i,n=(t[e(223)]?.(c)??"")[e(239)]();if(n)return n;const o=t[e(223)]?.(e(265))||"",r=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?o[e(236)]()[e(239)]().split(/\s+/)[e(263)](Boolean):[];if(t instanceof HTMLInputElement&&t[e(243)]===e(167))return"Password";for(const t of r){const n=u[e(260)](t);if(n)return n}const a=t.getAttribute?.(s)?.[e(236)]();return"mask"===a?"Redacted":e(230)})(t)+">"}const u=new Map([[i(200),i(272)],["given-name",i(270)],["family-name",i(209)],[i(266),i(241)],[i(254),i(248)],["username","Username"],["email",i(195)],[i(231),i(192)],[i(256),i(188)],[i(218),i(253)],[i(184),i(176)],["address-line3",i(215)],[i(262),i(182)],[i(234),"City"],["address-level3",i(242)],["address-level4",i(220)],[i(171),"Postal code"],[i(227),i(185)],["country-name","Country name"],[i(196),i(233)],[i(222),i(275)],[i(172),"Cardholder last name"],[i(197),"Cardholder middle name"],[i(213),i(250)],[i(217),i(211)],[i(198),i(237)],[i(247),"Expiration year"],[i(180),i(203)],[i(255),i(251)],["bday",i(244)],["bday-day",i(199)],[i(173),i(201)],[i(229),i(204)],[i(189),i(269)],[i(257),i(235)],[i(252),i(224)],["webauthn",i(264)]]);function p(t){const e=i;return t[e(181)](e(183))||t.getAttribute(s)?.[e(236)]()===e(208)}function m(t){const e=i,n=t[e(223)](s);return""===n||n?.toLowerCase()===e(202)}function f(t){const e=i;let n=t;for(;n&&n!==document[e(245)];){if(p(n))return!0;n=n.parentElement??void 0}return!1}function g(){const t=["cc-type","street-address","organization-title","2734281ErHKXC","input, textarea","get","split","address-level1","filter","WebAuthn","autocomplete","additional-name","data-intent-redact-label","3738280lhjkZK","Organization","First name","webauthn","Name","address-line3","has","Cardholder first name","password","545770iZTbgC","given-name","address-level4","postal-code","cc-family-name","bday-month","role","value","Address line 2","family-name","text","datetime-local","cc-csc","hasAttribute","State/Province","data-html2canvas-ignore","address-line2","Country code","querySelectorAll","bday-day","Street address","organization","country-name","65226msNTLC","Phone","174cGNyKN","textContent","Email","cc-name","cc-additional-name","cc-exp-month","Birth day","name","Birth month","mask","Security code","Birth year","20NkBNhd","data-intent-redact","bday","ignore","Last name","email","Expiration date","48rvcOpN","cc-number","includes","Address line 3","20405iafQFh","cc-exp","address-line1","22GpCXZu","Neighborhood","2303886jaDHXd","cc-given-name","getAttribute","Sex","2477299QkeimX","week","country","username","bday-year","Sensitive","tel","some","Cardholder name","address-level2","Job title","toLowerCase","Expiration month","time","trim","searchbox","Middle name","District","type","Birthday","body","8AyENEl","cc-exp-year","Nickname","parentElement","Card number","Card type","sex","Address line 1","nickname"];return(g=()=>t)()}function h(t){return!(p(t)||!m(t)&&!(t=>{const e=i;if(t instanceof HTMLInputElement){if(t.type===e(167))return!0;if("search"===t[e(243)])return!1;const n=t[e(223)](e(174));if(n?.[e(236)]()===e(240))return!1;if((t[e(265)]||"")[e(236)]()[e(239)]()[e(261)](/\s+/)[e(263)](Boolean).some(t=>d[e(274)](t)))return!0}return!!(t instanceof HTMLTextAreaElement&&(t[e(265)]||"")[e(236)]().trim()[e(261)](/\s+/).filter(Boolean)[e(232)](t=>d[e(274)](t)))})(t))}function v(t){const e=i;f(t)||(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?h(t)&&(t instanceof HTMLInputElement&&["date",e(179),"month",e(238),e(226)][e(214)](t[e(243)])&&(t[e(243)]=e(178)),t[e(175)]=l(t)):t[e(181)](s)&&m(t)&&(t[e(194)]=l(t)))}function b(t){const e=i;t instanceof Element&&v(t);const n=t[e(186)](e(259));for(const t of n)v(t);const o=t[e(186)]("["+s+"]");for(const t of o)v(t)}const y=w;function w(t,e){return t-=403,I()[t]}(()=>{const t=w,e=I();for(;;)try{if(948765==parseInt(t(409))/1+parseInt(t(418))/2+-parseInt(t(407))/3*(-parseInt(t(404))/4)+parseInt(t(405))/5+-parseInt(t(408))/6*(parseInt(t(411))/7)+-parseInt(t(417))/8*(parseInt(t(414))/9)+-parseInt(t(410))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const x="intent:consent";function I(){const t=["19411880NqCJrC","3292821ylnSGv","intent:data-ip","intent:data-sid-max-age","162657xKdhik","intent:geo","intent:data-client-id","512OOOQOD","2488622bCXVdt","intent:debug","9308CSScvl","6530075XAXFRX","intent:debug-panel","2391fCFhhC","24mbnvDh","1523292uDKPoG"];return(I=()=>t)()}const k=y(415),S=y(403),T=y(406),E=y(416),M=y(412),L="intent:data-base-url",C=y(413),A="https://intent.callimacus.ai";function N(){const t=["isFinite","778624UyaxMO","1580790kEFwlW","5497478zPQnyB","randomUUID","1062dzBdce","28rqRrlo","https:","getItem","location","set","445212SpakeE","4XfdHIy","remove","451435lMxzub","Lax","intent_sid","get","number","489524YbFpGR","36230nDJhLh"];return(N=()=>t)()}(()=>{const t=P,e=N();for(;;)try{if(653440==-parseInt(t(386))/1*(parseInt(t(400))/2)+parseInt(t(399))/3+parseInt(t(394))/4*(parseInt(t(402))/5)+-parseInt(t(390))/6+parseInt(t(391))/7+-parseInt(t(389))/8+-parseInt(t(393))/9*(-parseInt(t(387))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let z="";function D(){return z}function O(t){return e[P(405)](t)}function H(t,n){const o=P,r=localStorage[o(396)](C),i=null===r?void 0:Number(r),a=typeof n===o(385)&&Number.isFinite(n)?n:"number"==typeof i&&Number[o(388)](i)?i:2592e3,s=window[o(397)].protocol===o(395);e[o(398)]("intent_sid",t,{expires:a/86400,path:"/",sameSite:o(403),...s&&{secure:!0}})}function B(){const t=P;e[t(401)](t(404),{path:"/"})}function P(t,e){return t-=385,N()[t]}function F(){const t=P,e=O(t(404));if("granted"!==localStorage[P(396)](x))return e&&B(),void(z="");e?z=e:(z=crypto[t(392)](),H(z))}function U(){const t=["4552407mcFKXT","199740wNzRKD","replace","enabled","356JOFKad","27254IotkCp","&","<","18623ymrSXp","21nAlDaR",">","getItem","14988YZoKJe","2365816EIiEGK","clearTimeout","setTimeout","undefined","60firDfz","now","log","3534522WsazEh","6770cKgiAV"];return(U=()=>t)()}function W(...t){const e=X;try{typeof localStorage!==e(371)&&localStorage[e(366)](S)===e(358)&&console[e(352)](...t)}catch{}}function X(t,e){return t-=350,U()[t]}function j(t){const e=X;return t[e(357)](/&/g,e(361))[e(357)](/</g,e(362))[e(357)](/>/g,e(365))[e(357)](/"/g,""")[e(357)](/'/g,"'")}(()=>{const t=X,e=U();for(;;)try{if(675272==-parseInt(t(350))/1*(-parseInt(t(360))/2)+parseInt(t(367))/3*(-parseInt(t(359))/4)+-parseInt(t(356))/5+parseInt(t(353))/6+parseInt(t(364))/7*(-parseInt(t(368))/8)+-parseInt(t(355))/9+-parseInt(t(354))/10*(-parseInt(t(363))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),(()=>{const t=Z,e=Y();for(;;)try{if(297682==-parseInt(t(470))/1+-parseInt(t(455))/2*(-parseInt(t(471))/3)+-parseInt(t(453))/4+parseInt(t(466))/5+parseInt(t(448))/6*(-parseInt(t(468))/7)+-parseInt(t(464))/8+parseInt(t(463))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let K=!1,J=!1,R=!1,q=!1,Q=!1;function Y(){const t=["heading","905748skKlQN","pointerdown","hostname","hasFocus","query","1850032takPpp","isFinite","2oeTwiX","now","protocol","TIMEOUT","speed","altitudeAccuracy","UNKNOWN","message","5023665sdyoLs","1221488wkbZkP","getCurrentPosition","1223425FQKsBb","addEventListener","14cjfAMe","timestamp","35673SdHnhl","1342785pQNOjm","isSecureContext","permissions","geolocation","code","number","removeEventListener","visibilityState","latitude","accuracy","PERMISSION_DENIED","enabled","coords","keydown"];return(Y=()=>t)()}function Z(t,e){return t-=444,Y()[t]}function _(){const t=Z;return localStorage.getItem(k)===t(444)}function G(){K=!1,R=!1,Q=!1}function V(){return!K&&_()&&!q&&Q}const $=tt;function tt(t,e){return t-=257,at()[t]}(()=>{const t=tt,e=at();for(;;)try{if(593770==parseInt(t(281))/1+-parseInt(t(347))/2*(parseInt(t(289))/3)+parseInt(t(307))/4+parseInt(t(348))/5+parseInt(t(349))/6+parseInt(t(317))/7+-parseInt(t(345))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let et,nt=[],ot=!1;function rt(){const t=tt;if(!et)return;const e=et[t(350)](t(297)),n=et[t(350)]("#intent-debug-count");if(!e||!n)return;if(0===nt[t(257)])return e[t(313)]=t(339),void(n[t(260)]="0 events");const o=[...nt].reverse();e[t(313)]=o.map(t=>(t=>{const e=tt,n=new Date(t.timestamp)[e(312)](),o=t[e(308)]&&t[e(308)][e(257)]>0,r=o?Math.round(.75*t[e(308)][e(257)]/1024):0,i=j(t[e(311)]),a=j(JSON[e(293)](t[e(346)],null,2)),s=j(t.html),c=j(JSON[e(293)](t[e(338)],null,2));return e(276)+i+e(279)+n+e(267)+(o?e(351)+t[e(308)]+e(264)+r+e(284):"")+e(280)+a+e(325)+(t.html?e(292)+s+"</pre>\n\t\t\t\t\t":"")+e(263)+c+"</pre>\n\t\t\t\t</div>\n\t\t\t</details>\n\t\t</div>\n\t"})(t))[t(258)](""),n.textContent=nt[t(257)]+t(354)+(1===nt[t(257)]?"":"s")}function it(){const t=tt;if(et)return void(et[t(328)].display=t(290));const e=document[t(287)](t(335));e.innerHTML=tt(342),et=e[t(330)],document[t(316)][t(302)](et);const n=et.querySelector(t(344)),o=et[t(350)](t(327)),r=et[t(350)](t(275));n?.[t(322)](t(332),()=>{!function(t){const e=tt;try{localStorage[e(315)](T,e(t?326:343)),t?it():(()=>{const t=tt;et&&(et[t(328)][t(337)]=t(291))})()}catch{}}(!1)}),o?.addEventListener(t(332),()=>{(()=>{const t=tt;if(!et)return;const e=et[t(350)]("#intent-debug-content"),n=et[t(350)]("#intent-debug-minimize");e&&n&&(ot=!ot,ot?(e[t(328)][t(337)]="none",et[t(328)][t(299)]=t(266),n[t(260)]="+"):(e[t(328)].display=t(290),et.style[t(299)]=t(269),n[t(260)]="−"))})()}),r?.addEventListener(t(332),()=>{nt=[],rt()}),(()=>{const t=tt;if(!et)return;const e=et[t(350)](t(300));if(!e)return;let n=!1,o=0,r=0,i=0,a=0;e[t(322)](t(331),e=>{const o=t;if(e[o(283)][o(333)]===o(274))return;n=!0;const r=et[o(301)]();i=e.clientX-r[o(262)],a=e[o(286)]-r[o(282)]}),document[t(322)]("mousemove",e=>{const s=t;if(!n||!et)return;e[s(341)](),o=e.clientX-i,r=e[s(286)]-a;const c=window[s(296)]-et.offsetWidth,d=window.innerHeight-et.offsetHeight;o=Math[s(272)](0,Math[s(271)](o,c)),r=Math[s(272)](0,Math[s(271)](r,d)),et.style[s(262)]=o+"px",et.style[s(282)]=r+"px",et.style[s(261)]=s(340)}),document[t(322)](t(288),()=>{n=!1})})(),et[t(322)](t(332),e=>{const n=t,o=e[n(283)];if(o[n(319)][n(278)](n(324))){const t=o;t[n(295)]&&t[n(295)][n(353)]("data:image/")&&(t=>{const e=tt,n=document[e(287)](e(335));n.id=e(305),n[e(310)]("data-intent-redact","ignore"),n[e(328)][e(323)]=e(329);const o=document.createElement("div");o[e(328)][e(323)]=e(298);const r=document[e(287)](e(308));r.src=t,r[e(328)][e(323)]=e(273);const i=document[e(287)](e(335));i[e(328)].cssText="\n\t\tmargin-top: 20px;\n\t\tdisplay: flex;\n\t\tgap: 20px;\n\t\talign-items: center;\n\t";const a=document[e(287)](e(294));a[e(260)]=e(268),a.style[e(323)]=e(304);const s=document[e(287)](e(335));s[e(260)]=e(309),s[e(328)][e(323)]=e(336),i[e(302)](a),i[e(302)](s),o[e(302)](r),o.appendChild(i),n[e(302)](o);const c=()=>{n.remove()};n[e(322)](e(332),c),a[e(322)](e(332),t=>{t[e(321)](),c()}),r[e(322)](e(332),t=>{t[e(321)]()});const d=t=>{const n=e;t.key===n(303)&&(c(),document[n(320)](n(314),d))};document.addEventListener(e(314),d),document[e(316)].appendChild(n)})(t[n(295)])}}),rt()}function at(){const t=['\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',"auto","preventDefault",'\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',"disabled","#intent-debug-close","10921856zpXBPe","props","112478STZwAF","2946505jabppN","3245898XdVKwz","querySelector",'\n\t\t\t\t<div style="margin-bottom: 8px;">\n\t\t\t\t\t<img src="',"randomUUID","startsWith"," event","length","join","readyState","textContent","right","left",'\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">','" \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 (~',"push","200px","</div>\n\t\t\t</div>\n\t\t\t","✕ Close","400px","now","min","max","\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","BUTTON","#intent-debug-clear",'\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">',"function","contains",'</div>\n\t\t\t\t<div style="\n\t\t\t\t\tcolor: var(--solomei-color-text-secondary, #979797);\n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t">','\n\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">',"607709DMAdej","top","target"," KB)</div>\n\t\t\t\t</div>\n\t\t\t","DOMContentLoaded","clientY","createElement","mouseup","15kSwTOk","flex","none",'\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">',"stringify","button","src","innerWidth","#intent-debug-events","\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","width","#intent-debug-header","getBoundingClientRect","appendChild","Escape","\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-fullscreen-modal","random","1317964cezFQo","img","Click anywhere or press ESC to close","setAttribute","event","toLocaleTimeString","innerHTML","keydown","setItem","body","1208991WuBdtS","undefined","classList","removeEventListener","stopPropagation","addEventListener","cssText","intent-debug-screenshot","</pre>\n\t\t\t\t\t","enabled","#intent-debug-minimize","style","\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","firstElementChild","mousedown","click","tagName","loading","div","\n\t\tcolor: var(--solomei-color-primary-foreground, white);\n\t\tfont-size: 13px;\n\t","display","bbox"];return(at=()=>t)()}function st(t,e){return t-=203,ct()[t]}function ct(){var t=["490930nmZgUT","7AwrwbA","248742tYxYiv","setDebugPanel","8YXtIUq","4966136GaclGd","5136252argxkM","92930GofChH","1800fAzQLF","logEventToDebugPanel","warn","290642OQvPny","800032bpKfwf"];return(ct=()=>t)()}"undefined"!=typeof window&&function(){const t=tt;try{return localStorage.getItem(T)===t(326)}catch{return!1}}()&&(document[$(259)]===$(334)?document[$(322)]($(285),()=>{it()}):it()),Symbol,(()=>{for(var t=st,e=ct();;)try{if(508857==parseInt(t(214))/1*(parseInt(t(211))/2)+parseInt(t(215))/3+-parseInt(t(212))/4+-parseInt(t(213))/5+parseInt(t(206))/6+parseInt(t(205))/7*(parseInt(t(204))/8)+parseInt(t(208))/9*(-parseInt(t(207))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();const dt=kt;(()=>{const t=kt,e=Ct();for(;;)try{if(170851==-parseInt(t(399))/1*(parseInt(t(400))/2)+-parseInt(t(315))/3*(-parseInt(t(312))/4)+-parseInt(t(381))/5*(parseInt(t(327))/6)+parseInt(t(349))/7*(parseInt(t(339))/8)+-parseInt(t(331))/9*(parseInt(t(360))/10)+-parseInt(t(369))/11+parseInt(t(405))/12*(parseInt(t(318))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();let lt,ut,pt=0,mt=!1;const ft=dt(362),gt=["button",dt(397),"a",dt(347),dt(317),dt(364),dt(355),dt(358)][dt(406)](",");function ht(){return F(),"granted"===localStorage.getItem(x)&&Boolean(D())&&(()=>{const t=dt;return Boolean(localStorage[t(372)](E)?.[t(402)]()[t(408)])})()}function vt(){return!ht()||J}async function bt(e){return ut&&await ut,ut=(async()=>{const n=kt;try{const o=performance[n(334)](),r=performance[n(334)](),i=(t=>{const e=dt;if(p(t))return"";const n=t[e(365)](!1);return Array[e(384)](t[e(348)]).forEach(({name:t,value:o})=>{n[e(386)](t,o)}),t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(n[e(387)]=t[e(387)]):n.textContent=t[e(351)],b(n),(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&n.setAttribute(e(387),n[e(387)]),n[e(401)]})(e),a=performance.now()-r;W(n(325)+a[n(354)](2)+"ms");const s=e[n(363)](),c=performance[n(334)](),d={left:window.scrollX,top:window[n(352)],right:window[n(366)]+window.innerWidth,bottom:window.scrollY+window[n(323)]},l=await t(document[n(356)],{useCORS:!0,x:window[n(366)],y:window.scrollY,width:window[n(338)],height:window[n(323)],scale:.6,logging:!1,onclone(t,e){b(t)},ignoreElements(t){const e=n;if(!(t instanceof Element))return!1;if(f(t))return!0;const o=t[e(363)](),r={left:o.left+window[e(366)],top:o[e(393)]+window[e(352)],right:o[e(340)]+window[e(366)],bottom:o.bottom+window[e(352)]},i=100;if(r[e(340)]<d[e(380)]-i||r[e(380)]>d[e(340)]+i||r.bottom<d[e(393)]-i||r[e(393)]>d[e(330)]+i){const n=window[e(391)](t),{position:o}=n;if(o===e(329)||"absolute"===o){const t=500;return r[e(340)]<d.left-t||r[e(380)]>d[e(340)]+t||r[e(330)]<d[e(393)]-t||r[e(393)]>d[e(330)]+t}return!0}return!1}}),u=performance[n(334)]()-c;W(n(403)+u[n(354)](2)+"ms");const m=performance.now(),g=l.toDataURL(n(378),.8),h=performance.now()-m;W(n(407)+h[n(354)](2)+"ms");const v=performance[n(334)]()-o;return W(n(313)+v.toFixed(2)+"ms"),{html:i,bbox:{x:s.x,y:s.y,w:s.width,h:s.height},img:g,fullCanvas:l}}finally{ut=void 0}})(),ut}function yt(){const t=dt,e=localStorage[t(372)](E),n={"Content-Type":"application/json"};e&&(n["x-sl-access-token"]=e);const o=D();return o&&(n[t(326)]=o),n}async function wt(t,e,n,o){const r=dt;if(!ht())return;const i={...e,localTime:(new Date)[r(392)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[r(387)]=h(n)?l(n):n[r(387)]);let a="",s={x:0,y:0,w:0,h:0},c="";const d=!(t===r(374)||"page-blur"===t||t===r(335)),u=Date[r(334)](),p=u-pt>=0;let m=o;const f=t===r(341)||"input-submit"===t||t===r(353);d&&(f&&!m||!m&&p)&&(m=await bt(n),pt=u),m&&(a=m[r(342)],s=m[r(395)],c=m[r(383)]);const g=t===r(316)||t===r(335)||t===r(353),v={ts:Date[r(334)](),event:t,props:i,html:g?"":a,bbox:s,img:c};await async function(t){const e=dt,n=(localStorage[e(372)](L)??A)+e(314),o=localStorage.getItem(E)??void 0,r=JSON[e(398)]({...t,clientId:o});try{if((await fetch(n,{method:e(385),headers:yt(),body:r,keepalive:!0,credentials:e(350)})).ok)return}catch{}try{await(async t=>{const e=dt,n=(localStorage[e(372)](L)??A)+"/p.gif";if(!(await fetch(n,{method:"POST",headers:yt(),body:JSON[e(398)](t),keepalive:!0,credentials:e(350),cache:"no-store"})).ok)throw new Error("pixel body fallback failed")})(t)}catch{}}(v)}async function xt(t={}){const e=dt;if(!ht())return;const n=typeof t.lat===e(410)&&"number"==typeof t[e(346)];if(n&&K)return;if(!n&&mt)return;const o=localStorage[e(372)](M),i={context:await r()};o&&(i.ip=o);for(const[e,n]of Object.entries(t))i[e]=n;await wt(e(390),i,document[e(356)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),!n&&(mt=!0)}async function It(){await(async(t,e)=>{const n=Z,o=e(),r=_();if(!o||!r||K)return;if(!(n(474)in navigator))return;if(q)return;q=!0,J=!0;const i={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[n(456)]();try{await(navigator[n(473)]?.[n(452)]({name:n(474)}))}catch(t){}await new Promise(t=>{const e=n;let o=!1;const r=async(e,n,r)=>{const i=Z;o||(o=!0,Number.isFinite(e)&&Number[i(454)](n)&&(await(async(t,e,n)=>{const o=kt;await xt({lat:t,lon:e,source:o(343),...n})})(e,n,r),K=!0),q=!1,J=!1,Q=!0,t())};navigator[e(474)][e(465)](t=>{const e=Z,n=t[e(445)];r(n[e(479)],n.longitude,{accuracy:n[e(480)],altitude:typeof n.altitude===e(476)?n.altitude:void 0,altitudeAccuracy:"number"==typeof n[e(460)]?n[e(460)]:void 0,heading:typeof n[e(447)]===e(476)?n[e(447)]:void 0,speed:typeof n.speed===e(476)?n[e(459)]:void 0,timestamp:t[e(469)],visibility:document[e(478)],focused:document.hasFocus()})},t=>{const e=Z,n=t?.[e(475)],o={error:{code:n,name:1===n?e(481):2===n?"POSITION_UNAVAILABLE":e(3===n?458:461),message:t?.[e(462)]??""},online:navigator.onLine,visibility:document[e(478)],focused:document[e(451)](),secure:window[e(472)],proto:location[e(457)],host:location[e(450)]};r(void 0,void 0,o)},i)})})(0,ht)}function kt(t,e){return t-=311,Ct()[t]}function St(){(t=>{const e=Z;if(R||!_()||K)return;R=!0;const n=()=>{const e=Z;window[e(477)](e(449),n,!0),window[e(477)](e(446),n,!0),t()};window[e(467)](e(449),n,!0),window[e(467)]("keydown",n,!0)})(It)}F();let Tt=!document[dt(320)]&&document.hasFocus(),Et=document.hasFocus();function Mt(){const t=dt;if(vt())return;const e=!document.hidden&&document[t(396)]();e&&(Et=!0),Et||e?e!==Tt&&(Tt=e,wt(e?"page-focus":"page-blur",{},document[t(356)])):Tt=e}function Lt(){const t=dt;(()=>{const t=globalThis;return!t[ft]&&(Object[dt(371)](t,ft,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(359)](t(311),()=>{const e=t;ht()&&(xt(),(window[e(333)]||location[e(332)]===e(379))&&(_()&&St(),window[e(359)]("focus",()=>{V()&&It()}),document[e(359)](e(394),()=>{!document[e(320)]&&V()&&It()})))}),window[t(359)](t(368),e=>{e[t(336)]===x&&((()=>{const t=dt;return localStorage.getItem(x)===t(375)})()?(mt=!1,xt(),_()&&St()):(mt=!1,G())),e.key===k&&(_()?St():G())}),window[t(359)](t(311),()=>{const e=t;ht()&&wt("pageview",{url:window[e(409)].href,title:document[e(373)],ref:document[e(388)]},document.body)}),addEventListener(t(361),(()=>{let e=0;return(...n)=>{const o=Date[X(351)]();o-e>=50&&(e=o,(e=>{const n=t;if(vt())return;const o=e.target instanceof Element?e[n(319)][n(389)](gt):null;o instanceof HTMLElement&&(lt=bt(o))})(...n))}})(),{capture:!0,passive:!0}),addEventListener(t(341),async e=>{const n=t;if(vt())return;if(!(e[n(319)]instanceof Element))return;const o=e[n(319)][n(389)](gt);if(!(o instanceof HTMLElement))return;const r=(t=>{const e=dt;return t[e(321)](e(376))??t[e(373)]??t.textContent?.[e(402)]()??e(328)})(o);(async()=>{const t=n,e=lt?await lt:void 0;lt=void 0,wt(t(341),{tag:o[t(377)],label:r},o,e)})()},!0),addEventListener(t(344),e=>{const n=t;if(!vt()&&e[n(336)]===n(345)){const t=e.target;if(t instanceof HTMLElement&&(t[n(377)]===n(370)||t[n(377)]===n(357))){const e=t instanceof HTMLInputElement?t[n(367)]:void 0,o=t.id||void 0;wt(n(322),{tag:t[n(377)],name:e??o},t)}}},{capture:!0}),[t(324),t(404)][t(382)](e=>{window[t(359)](e,Mt)}),document[t(359)](t(394),Mt),window.addEventListener("scroll",(()=>{let e;return(...n)=>{const o=X;void 0!==e&&window[o(369)](e),e=window[o(370)](()=>{e=void 0,(()=>{const e=t;vt()||wt(e(374),{scrollX:window.scrollX,scrollY:window[e(352)]},document[e(356)])})(...n)},250)}})(),{passive:!0}),window[t(337)]??={send(e,n){const o=t;ht()&&wt(e,n,document[o(356)])}})}function Ct(){const t=["visibilitychange","bbox","hasFocus","a[href]","stringify","6161YVKrcp","12Wvdgkl","outerHTML","trim","[Timing] html2canvas-pro: ","blur","3843408kHtrrW","join","[Timing] jpeg-encoding: ","length","location","number","load","5448sWSnOA","[Timing] capture-total: ","/events","639mBpwMr","page-blur",'input[type="button"]',"13tGJoYB","target","hidden","getAttribute","input-submit","innerHeight","focus","[Timing] serialize: ","x-intent-sid","1034232UfcSEi","<no visible label>","fixed","bottom","3010158OopPsp","hostname","isSecureContext","now","page-focus","key","intent","innerWidth","32cCaMiO","right","click","html","device","keydown","Enter","lon",'input[type="submit"]',"attributes","212583pOZJlw","omit","textContent","scrollY","pageview","toFixed",'[role="link"]',"body","TEXTAREA","[onclick]","addEventListener","10idkKIW","pointerdown","__intent__sdk__initialized__","getBoundingClientRect",'[role="button"]',"cloneNode","scrollX","name","storage","189365xkwuSA","INPUT","defineProperty","getItem","title","scroll","granted","aria-label","tagName","image/jpeg","localhost","left","5qtwYkB","forEach","img","from","POST","setAttribute","value","referrer","closest","context","getComputedStyle","toISOString","top"];return(Ct=()=>t)()}function At(t,e){const n=Nt;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(386)?"granted":n(371):n(372))}catch{}}function Nt(t,e){return t-=369,zt()[t]}function zt(){const t=["intent:debug","number","29090QNJnid","enabled","disabled","10905552QRZouX","intent:data-client-id","931yiZcbZ","undefined","114dfWgvM","27879OJCEZs","geo","1639932xOnZsi","intent:data-sid-max-age","https://intent.callimacus.ai","clientId","function","sidMaxAgeSeconds","intent:consent","intent_sid","consent","intent:geo","now","It exposes internal SDK behavior and should only be used during development.","440YLwDJg","285887AaBATJ","baseUrl","126635qJIQWm","intent:data-base-url","4928BDlaEH","82024nRqYac","randomUUID","isFinite","debugPanel","setItem"];return(zt=()=>t)()}function Dt(t){At("intent:consent",t)}function Ot(t){At(Nt(389),t)}function Ht(t){At(Nt(403),t)}function Bt(t){}function Pt(t={}){const e=Nt;localStorage[e(402)](e(374),t[e(383)]??""),localStorage.setItem("intent:data-ip",t.ip??""),localStorage[e(402)](e(396),t[e(394)]??e(382)),typeof t[e(385)]===e(369)&&localStorage[e(402)](e(381),String(t[e(385)])),At("intent:consent",t.consent),At("intent:geo",t[e(379)]),At(e(403),t.debug),e(401),t[e(388)]&&(O(e(387))||H("undefined"!=typeof crypto&&typeof crypto[e(399)]===e(384)?crypto[e(399)]():Date[e(390)]()+"-"+Math.random(),t[e(385)])),Lt()}function Ft(){return O("intent_sid")}function Ut(){F()}function Wt(){B()}function Xt(t){const e=Nt;Number[e(400)](t)&&localStorage.setItem(e(381),String(t));const n=O(e(387));n&&H(n,t)}(()=>{const t=Nt,e=zt();for(;;)try{if(707309==-parseInt(t(393))/1+-parseInt(t(380))/2+parseInt(t(378))/3*(parseInt(t(392))/4)+parseInt(t(395))/5*(-parseInt(t(377))/6)+parseInt(t(375))/7*(parseInt(t(398))/8)+parseInt(t(373))/9+-parseInt(t(370))/10*(parseInt(t(397))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();export{Wt as clearIntentSessionId,Ut as ensureIntentSessionId,Ft as getIntentSessionId,Pt as initIntent,Dt as setConsent,Ht as setDebug,Bt as setDebugPanel,At as setFlag,Ot as setGeo,Xt 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",">","select",""","undefined","toLowerCase","body","isContentEditable","getAttribute","parentElement","'"];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,"&").replace(/</g,"<")[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};
|