@solomei-ai/intent 1.4.2 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * © 2025 Solomei AI SRL. Proprietary and confidential.
3
3
  */
4
- import t from"html2canvas-pro";async function e(){const t=a,e=[];if("connection"in(n=navigator)&&void 0!==n[a(269)]){const n=navigator[t(269)];n?.[t(303)]&&e[t(288)](n[t(303)]),"number"==typeof n?.[t(329)]&&e[t(288)](n[t(329)]+t(251)),typeof n?.[t(305)]===t(293)&&e[t(288)](n.rtt+t(260)),n?.[t(276)]&&e[t(288)]("saveData")}var n;const o=await async function(t,e=3e3,n=8,o=150){const i=a;if(!("fetch"in window)||!("ReadableStream"in window))return;const r=performance[i(277)]();let c,s=0;await Promise[i(350)](Array[i(307)]({length:n},async()=>{const n=i;for(;performance[n(277)]()-r<e+o;){const a=new AbortController,i=(t.includes("?")?"&":"?")+n(309)+Math[n(275)]().toString(36)[n(255)](2);try{const l=await fetch(t+i,{cache:n(359),signal:a.signal,mode:n(289)}),d=l[n(365)]?.[n(326)]();if(!d)break;for(;;){const t=performance[n(277)]();if(t-r>=e+o){a.abort();break}const{done:i,value:l}=await d[n(265)]();if(i)break;c??=t,t-(c??t)>=o&&(s+=l.byteLength)}}catch{}}}));const l=(c??r)+o,d=Math[i(341)](1,performance[i(277)]()-l),u=8*s/(d/1e3)/1e6;return Number[i(351)](u)&&u>0?u:void 0}(t(332),3e3,8,150),i=performance[t(259)](t(344)).find(e=>e[t(295)]===t(344));let r;if(i){const e=Math.max(0,i[t(296)]-i[t(252)]);r=t(266)+Math[t(278)](e)+t(260)}const c=[];if(typeof o===t(293)&&c[t(288)]("~"+o[t(349)](1)+t(251)),r&&c[t(288)](r),e[t(367)]&&c[t(288)](t(248)+e[t(331)](", ")),c[t(367)])return"Network: "+c.join(", ")+t(343)}function n(){const t=["removeEventListener","hint: ","innerHeight","availWidth"," Mbps","requestStart","version","filter","slice","Language: ","Languages: ","20CCPYvV","getEntriesByType"," ms","map","Screen: ","2RtOkIo","cookieEnabled","read","TTFB ~","gamma","timeZone","connection",", maxTouchPoints "," (UTC","12LgkkjO","brands","charging","random","saveData","now","round","addEventListener","flat","devicePixelRatio","controller","420637xRyPui","upright","178496hTSstN","Platform: ","fine","push","cors","1207677YVcOTb","maxTouchPoints","PWA: ","number","DateTimeFormat","entryType","responseStart","891830QHSaSO"," | "," cores","language","125290WKTYFF","Device geolocation: disabled","effectiveType","isSecureContext","rtt","languages","from","getTimezoneOffset","cb=","type","-bit)","availHeight","onLine","referrer","reclined","Timezone: ","Local time: ","userAgentData","resolvedOptions","User agent: ","658696RpqPec","getItem","width","°, γ ","isArray","getReader","586908rgEPcN","getBattery","downlink","level","join","/speedtest.bin","CPU: ",", orientation ","CookiesEnabled: ","n/a","padStart","function","matches","Pointer/Touch: ","max","yes"," (active test)","navigation","innerWidth","brand","; DNT: ","unknown","toFixed","all","isFinite","beta","Referrer: ","orientation","toString","hardwareConcurrency","deviceorientation",", display-mode standalone: ","no-store","undefined","platform","Viewport: ","(pointer: fine)","abs","body","(display-mode: standalone)","length","intent:geo","not charging"];return(n=function(){return t})()}function o(){const t=a;if(e=navigator,!(a(318)in e)||void 0===e.userAgentData)return;var e;const n=navigator[t(318)],o=Array[t(325)](n[t(273)])?n[t(273)][t(261)](e=>e[t(346)]+" "+e[t(253)])[t(331)](", "):void 0,i=n[t(361)]?n[t(361)]+(n.mobile?" (mobile)":""):void 0;return[o&&"UA brands: "+o,i&&t(286)+i][t(254)](Boolean)[t(331)](" | ")||void 0}function a(t,e){const o=n();return(a=function(t,e){return o[t-=246]})(t,e)}async function i(t=400){const e=a;if("DeviceOrientationEvent"in window&&window[e(304)])return new Promise(n=>{const o=e;let i=!1;const r=t=>{const e=a,o=typeof t[e(352)]===e(293)?t[e(352)]:void 0,c=typeof t.gamma===e(293)?t[e(267)]:void 0;if(void 0===o||void 0===c)return;if(i)return;i=!0,window[e(247)]("deviceorientation",r);const s=function(t,e){const n=a,o=Math[n(364)](t),i=Math[n(364)](e);return n(o<15&&i<15?280:o>=60?284:315)}(o,c);n("Tilt: "+s+" (β "+Math[e(278)](o)+e(324)+Math[e(278)](c)+"°)")};window.setTimeout(()=>{const t=a;i||(i=!0,window[t(247)](t(357),r),n(void 0))},t),window[o(279)](o(357),r,{passive:!0})})}async function r(){const t=a;if(function(t){const e=a;return e(328)in t&&typeof t[e(328)]===e(338)}(navigator))try{const e=await navigator.getBattery(),n=Math[t(278)](100*e[t(330)]);return"Battery: "+[(Number[t(351)](n)?n:0)+"%",e.charging?t(274):t(246)][t(331)](", ")}catch{return}}async function c(){const t=a,n=(new(Intl[t(294)]))[t(319)]()[t(268)],c=function(t){const e=a,n=t<=0?"+":"-",o=Math[e(364)](t);return""+n+String(Math.floor(o/60))[e(337)](2,"0")+":"+String(o%60)[e(337)](2,"0")}((new Date)[t(308)]()),s=[];s[t(288)](t(256)+navigator[t(300)]),navigator[t(306)]?.[t(367)]&&s[t(288)](t(257)+navigator.languages[t(331)](", ")),s.push(t(320)+navigator.userAgent);const l=o();l&&s.push(l),s[t(288)](t(316)+n+t(271)+c+")"),s.push(t(317)+(new Date)[t(355)]());const d=window[t(281)]||1;s[t(288)](t(262)+screen[t(323)]+"x"+screen.height+" @"+d+"x (avail "+screen[t(250)]+"x"+screen[t(312)]+", "+screen.colorDepth+t(311));const u=screen[t(354)]&&t(310)in screen[t(354)]?screen[t(354)][t(310)]:void 0;s[t(288)](t(362)+window[t(345)]+"x"+window[t(249)]+(u?t(334)+u:"")),s[t(288)](t(333)+navigator[t(356)]+t(299));const f=await e();f&&s[t(288)](f),s[t(288)](function(){const t=a,e=typeof matchMedia===t(338)&&matchMedia("(pointer: coarse)")[t(339)],n=typeof matchMedia===t(338)&&matchMedia(t(363))[t(339)],o=e?"coarse":t(n?287:348),i=typeof navigator[t(291)]===t(293)?navigator[t(291)]:0;return t(340)+o+t(270)+i}());const m=await r();m&&s.push(m),s[t(288)](t(335)+(navigator[t(264)]?"yes":"no")+t(347)+(navigator.doNotTrack??t(336))),s[t(288)]("Online: "+(navigator[t(313)]?t(342):"no")),document.referrer&&s[t(288)](t(353)+document[t(314)]),s[t(288)](function(){const t=a,e="function"==typeof matchMedia&&matchMedia(t(366))[t(339)],n=Boolean(navigator.serviceWorker?.[t(282)]);return t(292)+(n?"SW-controlled":"no SW")+t(358)+(e?t(342):"no")}());const p=await i();p&&s[t(288)](p);const h=typeof localStorage!==t(360)&&"enabled"===localStorage[t(322)](t(368));return s[t(288)](h?"Device geolocation: enabled":t(302)),s[t(331)](t(298))}!function(){const t=a,e=n();for(;;)try{if(215323===parseInt(t(301))/1*(-parseInt(t(263))/2)+parseInt(t(290))/3+-parseInt(t(285))/4*(parseInt(t(258))/5)+-parseInt(t(272))/6*(parseInt(t(283))/7)+parseInt(t(321))/8+parseInt(t(327))/9+parseInt(t(297))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const s=l;function l(t,e){const n=_();return(l=function(t,e){return n[t-=219]})(t,e)}!function(){const t=l,e=_();for(;;)try{if(719568===parseInt(t(316))/1+parseInt(t(434))/2+parseInt(t(378))/3*(-parseInt(t(350))/4)+-parseInt(t(222))/5*(parseInt(t(357))/6)+-parseInt(t(269))/7*(-parseInt(t(369))/8)+parseInt(t(423))/9*(parseInt(t(398))/10)+-parseInt(t(224))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,u="",f=0;const m="intent:consent",p="intent:geo";let h=!1,g=!1,w=!1,y=!1,v=!1,b=!1;const x=s(244),M=s(393),S=s(339),I="https://intent.callimacus.ai",T=s(232),E=s(294),L=["button",s(425),"a",'input[type="submit"]',s(309),s(228),s(220),"[onclick]"][s(300)](","),k=s(366),A=s(361),D=new Set(["name",s(286),s(317),"family-name",s(274),s(261),s(388),s(411),"organization",s(404),s(284),s(424),"address-line2",s(397),s(238),s(283),s(373),s(391),s(392),s(437),s(342),s(240),s(368),s(384),s(433),s(305),s(311),s(288),s(223),s(258),s(440),s(386),s(259),"bday-month",s(380),s(400),s(401)]);function H(t){return"<"+C(t)+">"}function C(t){const e=s,n=(t[e(426)]?.(A)??"")[e(333)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(320)]||"").toLowerCase()[e(333)]()[e(297)](/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&"password"===t[e(403)]?e(291):o[e(344)](t=>t[e(280)](e(331)))?e(355):o[e(344)](t=>[e(265),e(286),e(221),e(317),e(240),e(368),e(433)].includes(t))?"Name":o[e(335)](e(388))?e(347):o.includes(e(411))?e(322):o[e(344)](t=>t[e(280)](e(386)))?"Birthday":o[e(335)](e(400))?e(334):o[e(344)](t=>[e(284),e(424),e(219),e(397),"address-level1",e(283),e(373),e(391),e(342),e(392),e(437)].includes(t))?e(432):o[e(335)](e(307))||o[e(335)]("organization-title")?e(315):t[e(426)]?.(k)?.[e(379)]()===e(439)?e(235):e(257)}function N(t){const e=s;return t[e(268)]("data-html2canvas-ignore")||t.getAttribute(k)?.toLowerCase()===e(359)}function P(t){const e=s,n=t[e(426)](k);return""===n||n?.[e(379)]()===e(439)}function R(t){const e=s;if(t instanceof HTMLInputElement){if(t.type===e(408))return!0;if(t.type===e(279))return!1;const n=t.getAttribute(e(442));if(n&&n[e(379)]()===e(249))return!1;if((t[e(320)]||"")[e(379)]()[e(333)]()[e(297)](/\s+/)[e(343)](Boolean).some(t=>D[e(413)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(320)]||"").toLowerCase().trim()[e(297)](/\s+/).filter(Boolean)[e(344)](t=>D[e(413)](t)))return!0}return!1}function U(t){return!!P(t)||!!R(t)}function O(){const t=s,e=[],n=t=>{const e=l,n=t[e(273)]();if(n[e(436)]<=0||n[e(358)]<=0)return;const o=Math[e(270)](0,n[e(245)]),a=Math[e(270)](0,n.top),i=Math[e(270)](0,Math.min(n.right,window[e(230)])-o),r=Math[e(270)](0,Math[e(351)](n.bottom,window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(387)]("["+k+'="mask"], ['+k+t(354))[t(329)](o=>{const a=t,i=n(o);if(!i)return;const r=C(o)||a(235);e[a(302)]({...i,label:r})});return document[t(387)]("input, textarea")[t(329)](t=>{if(!P(o=t)&&!R(o))return;var o;if(N(t))return;const a=n(t);if(!a)return;const i=C(t);e.push({...a,label:i})}),e}const B=()=>localStorage[s(251)](m)===s(430);function F(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(326)].split("; ");for(const t of o)if(t.startsWith(n))return decodeURIComponent(t[e(293)](n[e(389)]))}function _(){const t=["hasFocus","granted","key","Address","cc-family-name","1354680JbUXud","undefined","width","country-name","label","mask","cc-type","context","role","address-line2",'[role="link"]',"family-name","5Jbeiit","cc-exp-year","10575257adbjZO","closest","altitudeAccuracy","isSecureContext",'[role="button"]',"strokeStyle","innerWidth","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","intent:data-sid-max-age","setTimeout","clearTimeout","Redacted","blur","pixel body fallback failed","address-level1","coords","cc-name","outerHTML","getCurrentPosition","error","intent:data-client-id","left","from","page-focus","visibilityState","searchbox","fillRect","getItem","floor","Path=/","number","POST","message","Sensitive","cc-csc","bday-day","Secure","username","function","Enter","readAsDataURL","name","textBaseline","canSend","hasAttribute","7TgSoJc","max","removeEventListener","randomUUID","getBoundingClientRect","nickname","onload","code","localhost","body","search","startsWith","lon","hidden","address-level2","street-address","Max-Age=","given-name","/p.gif","cc-exp-month","string","globalAlpha","Password","altitude","slice","__intent__sdk__initialized__","storage","lat","split","bbox","isFinite","join","innerHeight","push","now","enabled","cc-number","aria-label","organization","click",'input[type="button"]',"createElement","cc-exp","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","speed","toISOString","Organization","1165361fardkl","additional-name","TIMEOUT","target","autocomplete","permissions","Phone","INPUT","protocol","indexOf","cookie","SameSite=Lax","; Secure","forEach","input-submit","cc-","fillText","trim","Sex","includes","scrollY","FileReader error","deviceGeoSent","intent:data-base-url","tagName","setAttribute","postal-code","filter","some","accuracy","scroll","Email","disabled","x-intent-sid","32ObvPyr","min","application/json","onerror",'=""]',"Credit card","title","3430290bUsZMo","height","ignore","PERMISSION_DENIED","data-intent-redact-label","pointerdown","entries","location","result","data-intent-redact","geolocation","cc-given-name","7579856flNRuy","fillStyle","heading","focus","address-level3","referrer","html","attributes","Unexpected FileReader result type","480603QSvsSM","toLowerCase","bday-year","geoEnabled","scrollX","round","cc-additional-name","middle","bday","querySelectorAll","email","length","load","address-level4","country","intent:data-ip","omit","https:","no-store","address-line3","8150OSoQYB","stringify","sex","webauthn","getContext","type","organization-title","page-blur","value","textContent","password","pageview","hostname","tel","<no visible label>","has","host","visibilitychange","addEventListener","defineProperty","query","intent","random","device","onLine","8217hURjLn","address-line1","a[href]","getAttribute","strokeRect","#e5e7eb"];return(_=function(){return t})()}function j(t,e){const n=s,o=localStorage[n(251)](T),a=null==o?void 0:Number(o),i=Number.isFinite(e)?Number(e):typeof a===n(254)&&Number.isFinite(a)?a:86400,r=window.location[n(324)]===n(395),c=["intent_sid="+encodeURIComponent(t),n(285)+i,n(253),n(327)];r&&c.push(n(260)),document[n(326)]=c[n(300)]("; ")}function W(){const t=s,e="https:"===window[t(364)][t(324)];document.cookie=t(312)+(e?t(328):"")}function z(){const t=s,e=F("intent_sid");if(!B())return e&&W(),void(u="");if(e)return void(u=e);const n=typeof crypto!==t(435)&&typeof crypto[t(272)]===t(262)?crypto[t(272)]():Date[t(303)]()+"-"+Math[t(420)]();u=n,j(u)}function Y(){return z(),B()&&Boolean(u)&&(()=>{const t=s,e=localStorage[t(251)](x);return typeof e===t(289)&&e.trim()[t(389)]>0})()}function J(){return!Y()||w}async function q(e){const n=s,o=function(t){const e=s,n=t.cloneNode(!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(246)](t[e(376)]).forEach(({name:t,value:o})=>{n[e(341)](t,o)}),n[e(406)]=U(t)?H(t):t.value,t.disabled&&n[e(341)](e(348),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(376)])[e(329)](({name:t,value:o})=>{n[e(341)](t,o)}),n[e(406)]=U(t)?H(t):t[e(406)],t[e(348)]&&n.setAttribute(e(348),""),n.outerHTML):t[e(241)]}(e),a=e[n(273)](),i={useCORS:!0,...{x:window.scrollX,y:window[n(336)],width:window[n(230)],height:window[n(301)],scale:1},ignoreElements:t=>t instanceof Element&&N(t)},r=await t(document[n(278)],i),c=r[n(436)],l=r[n(358)],d=Math.max(c,l),u=.8*Math.max(window[n(230)],window[n(301)]),f=Math[n(351)](1,u/d),m=12/(a[n(358)]||1),p=Math[n(351)](1,Math.max(f,m)),h=Math[n(383)](c*p),g=Math.round(l*p),w=document[n(310)]("canvas");w[n(436)]=h,w.height=g;const y=w[n(402)]("2d");y.drawImage(r,0,0,c,l,0,0,h,g);const v=O();if(v.length){y.save(),y[n(290)]=1;for(const t of v){const e=Math[n(383)](t.x*p),o=Math[n(383)](t.y*p),a=Math[n(383)](t.w*p),i=Math[n(383)](t.h*p);y.fillStyle=n(428),y[n(250)](e,o,a,i),y[n(229)]="#9ca3af",y.lineWidth=Math[n(270)](1,Math[n(252)](.02*Math[n(351)](a,i))),y[n(427)](e,o,a,i);const r=Math[n(270)](10,Math.min(22,Math[n(252)](.35*i)));y.font=r+n(231),y[n(370)]="#374151",y.textAlign="center",y[n(266)]=n(385);const c="<"+(t[n(438)]?.[n(333)]().length?t[n(438)]:n(257))+">";y[n(332)](c,e+a/2,o+i/2,a-6)}y.restore()}const b=w.toDataURL("image/jpeg",.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(436)],h:a[n(358)]},img:b}}function X(){const t=s,e=localStorage[t(251)](x),n={"Content-Type":"application/json"};return e&&(n["x-sl-access-token"]=e),u&&(n[t(349)]=u),n}async function V(t,e){const n=s,o=(localStorage[n(251)](S)??I)+"/events",a=localStorage[n(251)](x)??void 0,i=JSON[n(399)]({...t,clientId:a});try{if((await fetch(o,{method:n(255),headers:X(),body:i,keepalive:e,credentials:n(394)})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(251)](S)??I)+n(287);if(!(await fetch(o,{method:n(255),headers:X(),body:JSON[n(399)](t),keepalive:e,credentials:"omit",cache:n(396)})).ok)throw new Error(n(237))}(t,e)}catch{}}async function G(t,e,n,o){const a=s;if(!Y())return;const i={...e,localTime:(new Date)[a(314)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(406)]=U(n)?H(n):n[a(406)]);let r="",c={x:0,y:0,w:0,h:0},l="";const d=!(t===a(346)||"page-blur"===t||t===a(247)),u=Date.now(),m=u-f>=5e3;let p=o;const h=t===a(308)||t===a(330)||t===a(409);d&&!p&&(h||m)&&(p=await q(n),f=u),p&&(r=p[a(375)],c=p[a(298)],l=p.img);const g="page-blur"===t||t===a(247)||"pageview"===t,w={ts:Date.now(),event:t,props:i,html:g?"":r,bbox:c,img:l},y="hidden"===document.visibilityState||"page-blur"===t;await V(w,y)}function K(){const t=s;return localStorage[t(251)](p)===t(304)}async function Q(t={}){const e=s;if(!Y())return;const n=typeof t[e(296)]===e(254)&&"number"==typeof t[e(281)];if(n&&g)return;if(!n&&h)return;const o=localStorage.getItem(M),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(363)](t))a[n]=o;await G(e(441),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?g=!0:h=!0}async function Z(){const t=s,e={canSend:Y(),geoEnabled:K(),deviceGeoSent:g};if(!e[t(267)]||!e[t(381)]||e[t(338)])return;const n={secure:window[t(227)],proto:location[t(324)],host:location[t(410)]};if(n.secure||(t(414),t(277)),!(t(367)in navigator))return;if(v)return;v=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(303)]();try{await(navigator[t(321)]?.[t(418)]({name:t(367)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=l;a||(a=!0,Date[i(303)](),Number[i(299)](t)&&Number[i(299)](n)&&await Q({lat:t,lon:n,source:i(421)}),v=!1,w=!1,b=!0,e())};navigator.geolocation[n(242)](t=>{const e=l,n=t[e(239)];i(n.latitude,n.longitude,(n[e(345)],"number"==typeof n[e(292)]&&n[e(292)],typeof n[e(226)]===e(254)&&n[e(226)],typeof n[e(371)]===e(254)&&n[e(371)],typeof n.speed===e(254)&&n[e(313)],t.timestamp,document[e(248)],document.hasFocus()))},t=>{const e=l,n=t?.[e(276)];1===n?e(360):2===n||(3!==n||e(318)),t?.[e(256)],navigator[e(422)],document[e(248)],document.hasFocus(),location[e(410)],i(void 0,void 0)},o)})}function $(){const t=s;if(y||!K()||g)return;y=!0;const e=()=>{const t=l;window.removeEventListener(t(362),e,!0),window[t(271)]("keydown",e,!0),Z()};window[t(416)](t(362),e,!0),window.addEventListener("keydown",e,!0)}z();let tt=!document[s(282)]&&document.hasFocus(),et=document[s(429)]();const nt=()=>{const t=s;if(J())return;const e=!document[t(282)]&&document[t(429)]();e&&(et=!0),et||e?e!==tt&&(tt=e,G(t(e?247:405),{},document.body)):tt=e};function ot(){const t=s;(function(){const t=s,e=globalThis;return!e[E]&&(Object[t(417)](e,E,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window.addEventListener(t(390),()=>{const e=t;Y()&&(Q(),(window[e(227)]||location.hostname===e(277))&&(K()&&$(),window[e(416)]("focus",()=>{!g&&K()&&!v&&b&&Z()}),document[e(416)](e(415),()=>{!document[e(282)]&&!g&&K()&&!v&&b&&Z()})))}),window[t(416)](t(295),e=>{const n=t;e[n(431)]===m&&("granted"===localStorage[s(251)](m)?(h=!1,Q(),K()&&$()):(h=!1,g=!1)),e[n(431)]===p&&(K()?$():g=!1)}),window[t(416)](t(390),()=>{const e=t;Y()&&G("pageview",{url:window[e(364)].href,title:document[e(356)],ref:document[e(374)]},document[e(278)])}),addEventListener(t(362),function(t,e){let n=0;return(...o)=>{const a=Date[l(303)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(J())return;const o=e[n(319)]instanceof Element?e[n(319)][n(225)](L):null;o instanceof HTMLElement&&(d=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(308),async e=>{const n=t;if(J())return;const o=e[n(319)]instanceof Element?e[n(319)][n(225)](L):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(426)](e(306))??t[e(356)]??t[e(407)]?.[e(333)]()??e(412)}(o),i=d?await d:void 0;d=void 0,await G(n(308),{tag:o[n(340)],label:a},o,i)},!0),addEventListener("keydown",e=>{const n=t;if(!J()&&e[n(431)]===n(263)){const t=e[n(319)];if(t instanceof HTMLElement&&(t[n(340)]===n(323)||"TEXTAREA"===t[n(340)])){const e=t instanceof HTMLInputElement?t.name:void 0,o=t.id||void 0;G(n(330),{tag:t[n(340)],name:e??o},t)}}},{capture:!0}),[t(372),t(236)][t(329)](t=>{window.addEventListener(t,nt)}),document.addEventListener(t(415),nt),window[t(416)]("scroll",function(t,e){let n;return(...o)=>{const a=l;void 0!==n&&window[a(234)](n),n=window[a(233)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;J()||G(e(346),{scrollX:window[e(382)],scrollY:window[e(336)]},document[e(278)])},250),{passive:!0}),window[t(419)]??={send(t,e){Y()&&G(t,e,document.body)}})}function at(t,e){const n=st;try{if(void 0===e)return;localStorage[n(370)](t,e?t===n(373)?n(374):n(378):"disabled")}catch{}}function it(t={}){const e=st;if(localStorage.setItem(e(385),t[e(376)]??""),localStorage[e(370)]("intent:data-ip",t.ip??""),localStorage[e(370)](e(387),t.baseUrl??e(386)),typeof t[e(368)]===e(375)&&localStorage[e(370)]("intent:data-sid-max-age",String(t[e(368)])),at(e(373),t[e(393)]),at(e(381),t.geo),t[e(393)]){if(!F(e(382))){j(typeof crypto!==e(388)&&typeof crypto.randomUUID===e(384)?crypto[e(367)]():Date.now()+"-"+Math[e(383)](),t[e(368)])}}ot()}function rt(){return F(st(382))}function ct(){z()}function st(t,e){const n=dt();return(st=function(t,e){return n[t-=367]})(t,e)}function lt(){W()}function dt(){const t=["1869TeAHDY","intent:consent","granted","number","clientId","1878HoNlWx","enabled","119425wAMGhx","54408xKLvBa","intent:geo","intent_sid","random","function","intent:data-client-id","https://intent.callimacus.ai","intent:data-base-url","undefined","1865736xDCHyF","7892cyaYCg","isFinite","8xrgixE","consent","69600UBrkcb","1113282imqKDV","randomUUID","sidMaxAgeSeconds","1135JynhNj","setItem","intent:data-sid-max-age"];return(dt=function(){return t})()}function ut(t){const e=st;Number[e(391)](t)&&localStorage[e(370)](e(371),String(t));const n=F(e(382));n&&j(n,t)}!function(){const t=st,e=dt();for(;;)try{if(313349===parseInt(t(379))/1+-parseInt(t(380))/2+parseInt(t(389))/3+-parseInt(t(390))/4*(parseInt(t(369))/5)+parseInt(t(377))/6*(-parseInt(t(372))/7)+parseInt(t(392))/8*(parseInt(t(395))/9)+parseInt(t(394))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ct as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,ut as setIntentSessionMaxAge};
4
+ import t from"html2canvas-pro";function e(){const t=["level","1644822kEKmSh","intent:geo","enabled","fine","timeZone","reclined","platform","15591771KRmhkA","userAgentData","getEntriesByType","join","removeEventListener","no SW","abs","setTimeout","padStart","5687658Jsmjcl","responseStart","flat","rtt","hardwareConcurrency","coarse","°, γ "," (mobile)","Pointer/Touch: ","Language: ","Online: ",", maxTouchPoints ","deviceorientation","effectiveType","serviceWorker","colorDepth","find","CookiesEnabled: ","undefined",", display-mode standalone: ","DeviceOrientationEvent","PWA: ","isArray","Platform: ","n/a","transferSize","brands","max","TTFB ~","encodedBodySize","Device geolocation: enabled"," ms","10060yXadrK","matches","yes","navigation","toString","function","UA brands: ","upright","Battery: ","Screen: ","Referrer: ","(display-mode: standalone)","toFixed","isSecureContext","Local time: ","Tilt: ","orientation","push","version","duration","Device geolocation: disabled","addEventListener","4103464uMQsVm","(pointer: coarse)","beta","inferred","-bit)","some","unknown","(pointer: fine)","Timezone: ","connection","devicePixelRatio","Languages: ","length","mobile","languages","x (avail ","type","14uZXNAD","User agent: ","floor","innerWidth","referrer","resource","filter","map","entryType","slice","requestStart","maxTouchPoints","getTimezoneOffset","downlink","doNotTrack","round","3176IVQwZd","909290SBRNWe","number","isFinite","downlinkMbps","528tyEHdC","charging"," | ","saveData","775004voXOmn","getBattery","resolvedOptions","language","rttMs","innerHeight","1PEZrUu","TTFB","availWidth"];return(e=function(){return t})()}function n(t,o){const a=e();return(n=function(t,e){return a[t-=151]})(t,o)}async function o(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(268)in t&&typeof t.connection!==e(223)}(navigator)){const n=navigator[t(268)];n?.[t(218)]&&e[t(254)](n[t(218)]),typeof n?.[t(167)]===t(172)&&e[t(254)]("~"+n[t(167)]+" Mbps"),"number"==typeof n?.[t(208)]&&e[t(254)](n[t(208)]+t(236)),n?.[t(178)]&&e[t(254)]("saveData")}else{const a=function(t=20){const e=n,o=performance[e(198)](e(240))[e(221)](t=>t[e(162)]===e(240)),a=o?Math[e(232)](0,o[e(206)]-o[e(164)]):void 0,i=performance[e(198)](e(159))[e(160)](t=>t.entryType===e(159));let r=0,c=0;for(const n of i[e(163)](0,Math[e(232)](0,t))){const t=n[e(234)]>0?n[e(234)]:n[e(230)]>0?n[e(230)]:0,o=n[e(256)];t>0&&o>0&&Number.isFinite(o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:"number"==typeof s?s/1e3:void 0,rttMs:a}}();typeof a[t(174)]===t(172)&&e[t(254)]("~"+a[t(174)][t(249)](1)+" Mbps"),typeof a[t(183)]===t(172)&&e[t(254)]("TTFB ~"+Math[t(169)](a[t(183)])+" ms"),o=t(262)}const a=performance[t(198)](t(240)).find(e=>e[t(162)]===t(240));if(a){const n=Math[t(232)](0,a[t(206)]-a[t(164)]);!e[t(264)](e=>e.startsWith(t(186)))&&e[t(254)](t(233)+Math[t(169)](n)+t(236))}return e[t(271)]?"Network: "+e[t(199)](", ")+" ("+o+")":void 0}function a(){const t=n;if(!function(t){const e=n;return"userAgentData"in t&&typeof t[e(197)]!==e(223)}(navigator))return;const e=navigator[t(197)],o=Array[t(227)](e[t(231)])?e[t(231)][t(161)](e=>e.brand+" "+e[t(255)])[t(199)](", "):void 0,a=e[t(195)]?""+e.platform+(e[t(272)]?t(212):""):void 0;return[o&&t(243)+o,a&&t(228)+a][t(160)](Boolean)[t(199)](" | ")||void 0}async function i(t=400){const e=n;if(e(225)in window&&window[e(250)])return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a=typeof t[e(261)]===e(172)?t.beta:void 0,c=typeof t.gamma===e(172)?t.gamma:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(200)]("deviceorientation",r);const s=function(t,e){const o=n,a=Math.abs(t),i=Math[o(202)](e);return o(a<15&&i<15?207:a>=60?244:194)}(a,c);o(e(252)+s+" (β "+Math[e(169)](a)+e(211)+Math[e(169)](c)+"°)")};window[a(203)](()=>{const t=a;i||(i=!0,window[t(200)](t(217),r),o(void 0))},t),window[a(258)](a(217),r,{passive:!0})})}async function r(){const t=n;if(function(t){const e=n;return e(180)in t&&"function"==typeof t[e(180)]}(navigator))try{const e=await navigator.getBattery(),n=Math[t(169)](100*e[t(188)]),o=[(Number[t(173)](n)?n:0)+"%",e[t(176)]?t(176):"not charging"];return t(245)+o[t(199)](", ")}catch{return}}async function c(){const t=n,e=(new Intl.DateTimeFormat)[t(181)]()[t(193)],c=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(202)](t);return""+o+String(Math[e(156)](a/60)).padStart(2,"0")+":"+String(a%60)[e(204)](2,"0")}((new Date)[t(166)]()),s=[];s[t(254)](t(214)+navigator[t(182)]),navigator.languages?.[t(271)]&&s[t(254)](t(270)+navigator[t(151)][t(199)](", ")),s.push(t(155)+navigator.userAgent);const d=a();d&&s[t(254)](d),s[t(254)](t(267)+e+" (UTC"+c+")"),s[t(254)](t(251)+(new Date)[t(241)]());const u=window[t(269)]||1;s[t(254)](t(246)+screen.width+"x"+screen.height+" @"+u+t(152)+screen[t(187)]+"x"+screen.availHeight+", "+screen[t(220)]+t(263));const l=screen[t(253)]&&"type"in screen[t(253)]?screen[t(253)][t(153)]:void 0;s[t(254)]("Viewport: "+window[t(157)]+"x"+window[t(184)]+(l?", orientation "+l:"")),s.push("CPU: "+navigator[t(209)]+" cores");const f=await o();f&&s.push(f),s[t(254)](function(){const t=n,e=typeof matchMedia===t(242)&&matchMedia(t(260))[t(238)],o=typeof matchMedia===t(242)&&matchMedia(t(266))[t(238)],a=t(e?210:o?192:265),i="number"==typeof navigator[t(165)]?navigator[t(165)]:0;return t(213)+a+t(216)+i}());const m=await r();m&&s[t(254)](m),s[t(254)](t(222)+(navigator.cookieEnabled?t(239):"no")+"; DNT: "+(navigator[t(168)]??t(229))),s[t(254)](t(215)+(navigator.onLine?t(239):"no")),document[t(158)]&&s[t(254)](t(247)+document.referrer),s.push(function(){const t=n,e=typeof matchMedia===t(242)&&matchMedia(t(248)).matches,o=Boolean(navigator[t(219)]?.controller);return t(226)+(o?"SW-controlled":t(201))+t(224)+(e?"yes":"no")}());const p=await i();p&&s.push(p);const h=typeof localStorage!==t(223)&&localStorage.getItem(t(190))===t(191);return s[t(254)](t(h?235:257)),s[t(199)](t(177))}!function(){const t=n,o=e();for(;;)try{if(951796===parseInt(t(185))/1*(parseInt(t(179))/2)+-parseInt(t(189))/3+parseInt(t(170))/4*(-parseInt(t(237))/5)+-parseInt(t(205))/6+parseInt(t(154))/7*(parseInt(t(259))/8)+-parseInt(t(196))/9+-parseInt(t(171))/10*(-parseInt(t(175))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();const s=et;!function(){const t=et,e=J();for(;;)try{if(239444===parseInt(t(443))/1+-parseInt(t(278))/2*(parseInt(t(436))/3)+-parseInt(t(438))/4*(parseInt(t(497))/5)+-parseInt(t(430))/6*(-parseInt(t(282))/7)+-parseInt(t(291))/8*(parseInt(t(488))/9)+parseInt(t(283))/10+-parseInt(t(340))/11*(-parseInt(t(475))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,u="",l=0;const f="intent:consent",m="intent:geo";let p=!1,h=!1,g=!1,w=!1,y=!1,v=!1;const b="intent:data-client-id",M=s(442),I=s(415),x=s(298),S=s(444),T=s(478),E=[s(349),s(268),"a",s(273),s(294),'[role="button"]','[role="link"]',s(296)].join(","),A=s(476),L=s(357),k=new Set([s(463),s(308),"additional-name",s(482),s(323),s(412),s(470),"tel",s(285),s(292),s(434),s(402),s(450),s(293),s(483),"address-level2",s(461),s(336),"country",s(466),s(369),s(395),s(416),s(364),s(451),s(290),s(457),s(454),s(448),s(359),s(447),s(424),"bday-day",s(307),s(284),"sex","webauthn"]);function N(t){return"<"+D(t)+">"}function D(t){const e=s,n=(t[e(486)]?.(L)??"")[e(493)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(391)]()[e(493)]()[e(337)](/\s+/)[e(387)](Boolean):[];return t instanceof HTMLInputElement&&t[e(351)]===e(343)?e(354):o[e(403)](t=>t[e(462)](e(487)))?e(467):o.some(t=>["name",e(308),e(482),e(397),e(395),e(416),e(451)][e(267)](t))?"Name":o.includes(e(470))?e(471):o[e(267)]("tel")?e(413):o.some(t=>t.startsWith(e(424)))?"Birthday":o[e(267)](e(352))?e(425):o[e(403)](t=>[e(434),e(402),"address-line2",e(293),e(483),e(265),e(461),"address-level4","postal-code","country",e(466)].includes(t))?e(271):o[e(267)](e(285))||o[e(267)](e(292))?e(446):t[e(486)]?.(A)?.[e(391)]()===e(431)?e(366):e(344)}function H(t){const e=s;return t[e(315)](e(422))||t[e(486)](A)?.[e(391)]()===e(441)}function U(t){const e=s,n=t[e(486)](A);return""===n||n?.[e(391)]()===e(431)}function C(t){const e=s;if(t instanceof HTMLInputElement){if(t[e(351)]===e(343))return!0;if(t[e(351)]===e(309))return!1;const n=t.getAttribute(e(263));if(n&&n[e(391)]()===e(314))return!1;if((t[e(456)]||"")[e(391)]()[e(493)]()[e(337)](/\s+/)[e(387)](Boolean)[e(403)](t=>k[e(288)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(456)]||"")[e(391)]().trim().split(/\s+/)[e(387)](Boolean)[e(403)](t=>k[e(288)](t)))return!0}return!1}function P(t){return!!U(t)||!!C(t)}function R(){const t=s,e=[],n=t=>{const e=et,n=t[e(279)]();if(n[e(406)]<=0||n[e(468)]<=0)return;const o=Math[e(286)](0,n[e(347)]),a=Math[e(286)](0,n[e(420)]),i=Math[e(286)](0,Math[e(472)](n[e(398)],window.innerWidth)-o),r=Math.max(0,Math[e(472)](n[e(310)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(426)]("["+A+t(481)+A+t(427))[t(355)](o=>{const a=t,i=n(o);if(!i)return;const r=D(o)||a(366);e[a(356)]({...i,label:r})});return document[t(426)]("input, textarea")[t(355)](t=>{if(!U(o=t)&&!C(o))return;var o;if(H(t))return;const a=n(t);if(!a)return;const i=D(t);e.push({...a,label:i})}),e}const B=()=>localStorage.getItem(f)===s(464);function O(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(365)][e(337)]("; ");for(const t of o)if(t.startsWith(n))return decodeURIComponent(t.slice(n.length))}function W(t,e){const n=s,o=localStorage.getItem(S),a=null==o?void 0:Number(o),i=Number[n(322)](e)?Number(e):typeof a===n(407)&&Number[n(322)](a)?a:86400,r="https:"===window[n(469)].protocol,c=[n(386)+encodeURIComponent(t),n(327)+i,n(419),n(381)];r&&c[n(356)]("Secure"),document.cookie=c[n(334)]("; ")}function F(){const t=s,e="https:"===window[t(469)][t(326)];document[t(365)]=t(458)+(e?t(346):"")}function _(){const t=s,e=O(t(394));if(!B())return e&&F(),void(u="");if(e)return void(u=e);const n=typeof crypto!==t(303)&&typeof crypto[t(477)]===t(275)?crypto[t(477)]():Date[t(325)]()+"-"+Math[t(485)]();u=n,W(u)}function z(){return _(),B()&&Boolean(u)&&(()=>{const t=s,e=localStorage.getItem(b);return"string"==typeof e&&e[t(493)]()[t(374)]>0})()}function j(){return!z()||g}async function Q(e){const n=s,o=function(t){const e=s,n=t[e(371)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(306)](t[e(350)]).forEach(({name:t,value:o})=>{n[e(388)](t,o)}),n[e(272)]=P(t)?N(t):t[e(272)],t[e(372)]&&n[e(388)](e(372),""),n[e(345)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(306)](t[e(350)]).forEach(({name:t,value:o})=>{n[e(388)](t,o)}),n.value=P(t)?N(t):t[e(272)],t.disabled&&n[e(388)]("disabled",""),n[e(345)]):t.outerHTML}(e),a=e[n(279)](),i={useCORS:!0,...{x:window[n(270)],y:window[n(400)],width:window.innerWidth,height:window[n(432)],scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document[n(367)],i),c=r[n(406)],d=r[n(468)],u=Math.max(c,d),l=.8*Math[n(286)](window[n(360)],window[n(432)]),f=Math.min(1,l/u),m=12/(a[n(468)]||1),p=Math[n(472)](1,Math.max(f,m)),h=Math.round(c*p),g=Math.round(d*p),w=document[n(324)](n(396));w.width=h,w.height=g;const y=w[n(440)]("2d");y.drawImage(r,0,0,c,d,0,0,h,g);const v=R();if(v.length){y[n(332)](),y.globalAlpha=1;for(const t of v){const e=Math[n(411)](t.x*p),o=Math[n(411)](t.y*p),a=Math[n(411)](t.w*p),i=Math.round(t.h*p);y[n(274)]="#e5e7eb",y[n(460)](e,o,a,i),y[n(399)]=n(317),y[n(316)]=Math[n(286)](1,Math[n(330)](.02*Math[n(472)](a,i))),y[n(368)](e,o,a,i);const r=Math[n(286)](10,Math[n(472)](22,Math[n(330)](.35*i)));y[n(341)]=r+n(301),y[n(274)]=n(295),y[n(370)]=n(384),y[n(484)]=n(421);const c="<"+(t[n(380)]?.[n(493)]()[n(374)]?t[n(380)]:"Sensitive")+">";y[n(423)](c,e+a/2,o+i/2,a-6)}y[n(378)]()}const b=w[n(409)](n(393),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a.width,h:a[n(468)]},img:b}}function q(){const t=s,e=localStorage[t(318)](b),n={"Content-Type":"application/json"};return e&&(n[t(280)]=e),u&&(n[t(305)]=u),n}async function X(t,e){const n=s,o=(localStorage[n(318)](I)??x)+"/events",a=localStorage[n(318)](b)??void 0,i=JSON[n(333)]({...t,clientId:a});try{if((await fetch(o,{method:n(287),headers:q(),body:i,keepalive:e,credentials:"omit"})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(318)](I)??x)+"/p.gif";if(!(await fetch(o,{method:n(287),headers:q(),body:JSON.stringify(t),keepalive:e,credentials:"omit",cache:"no-store"})).ok)throw new Error(n(266))}(t,e)}catch{}}async function V(t,e,n,o){const a=s;if(!z())return;const i={...e,localTime:(new Date)[a(392)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=P(n)?N(n):n[a(272)]);let r="",c={x:0,y:0,w:0,h:0},d="";const u=!(t===a(329)||t===a(437)||t===a(453)),f=Date.now(),m=f-l>=5e3;let p=o;const h="click"===t||t===a(389)||t===a(311);u&&!p&&(h||m)&&(p=await Q(n),l=f),p&&(r=p[a(492)],c=p[a(459)],d=p.img);const g=t===a(437)||t===a(453)||t===a(311),w={ts:Date[a(325)](),event:t,props:i,html:g?"":r,bbox:c,img:d},y="hidden"===document[a(358)]||t===a(437);await X(w,y)}function J(){const t=["; Secure","left","INPUT","button","attributes","type","sex","intent","Password","forEach","push","data-intent-redact-label","visibilityState","cc-csc","innerWidth","closest","slice","heading","cc-additional-name","cookie","Redacted","body","strokeRect","postal-code","textAlign","cloneNode","disabled","isSecureContext","length","onload","context","secure","restore","latitude","label","SameSite=Lax","addEventListener","blur","center","keydown","intent_sid=","filter","setAttribute","input-submit","key","toLowerCase","toISOString","image/jpeg","intent_sid","cc-name","canvas","additional-name","right","strokeStyle","scrollY","<no visible label>","address-line1","some","pointerdown","string","width","number","application/json","toDataURL","aria-label","round","username","Phone","geolocation","intent:data-base-url","cc-given-name","target","hostname","Path=/","top","middle","data-html2canvas-ignore","fillText","bday","Sex","querySelectorAll",'=""]',"POSITION_UNAVAILABLE","altitude","6ubTOOt","mask","innerHeight","focus","street-address","click","6CsLJom","page-blur","2196MRhQon","UNKNOWN","getContext","ignore","intent:data-ip","218279NdZqWV","intent:data-sid-max-age","getCurrentPosition","Organization","cc-type","cc-exp-year","visibilitychange","address-line2","cc-family-name","referrer","page-focus","cc-exp-month","defineProperty","autocomplete","cc-exp","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","bbox","fillRect","address-level3","startsWith","name","granted","lon","country-name","Credit card","height","location","email","Email","min","timestamp","tagName","1740EwtLGh","data-intent-redact","randomUUID","__intent__sdk__initialized__","clearTimeout","textContent",'="mask"], [',"family-name","address-level1","textBaseline","random","getAttribute","cc-","39753tYbXnh","load","permissions","hidden","html","trim","title","speed","removeEventListener","15dLdfAI","onerror","TIMEOUT","role","error","address-level2","pixel body fallback failed","includes","a[href]","onLine","scrollX","Address","value",'input[type="submit"]',"fillStyle","function","Unexpected FileReader result type","message","455122miqaoq","getBoundingClientRect","x-sl-access-token","altitudeAccuracy","2642507yUzTTH","2266080RCFqIU","bday-year","organization","max","POST","has","FileReader error","cc-number","280LCPeph","organization-title","address-line3",'input[type="button"]',"#374151","[onclick]","lat","https://intent.callimacus.ai","Enter","coords","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","hasFocus","undefined","geoEnabled","x-intent-sid","from","bday-month","given-name","search","bottom","pageview","entries","deviceGeoSent","searchbox","hasAttribute","lineWidth","#9ca3af","getItem","host","href","readAsDataURL","isFinite","nickname","createElement","now","protocol","Max-Age=","longitude","scroll","floor","device","save","stringify","join","localhost","address-level4","split","canSend","setTimeout","2156aGulqv","font","storage","password","Sensitive","outerHTML"];return(J=function(){return t})()}function K(){return"enabled"===localStorage.getItem(m)}async function Z(t={}){const e=s;if(!z())return;const n=typeof t[e(297)]===e(407)&&"number"==typeof t[e(465)];if(n&&h)return;if(!n&&p)return;const o=localStorage[e(318)](M),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(312)](t))a[n]=o;await V(e(376),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function G(){const t=s,e={canSend:z(),geoEnabled:K(),deviceGeoSent:h};if(!e[t(338)]||!e[t(304)]||e[t(313)])return;const n={secure:window[t(373)],proto:location[t(326)],host:location.hostname};if(n[t(377)]||(t(319),t(335)),!(t(414)in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(325)]();try{await(navigator[t(490)]?.query({name:t(414)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=et;a||(a=!0,Date[i(325)](),Number[i(322)](t)&&Number.isFinite(n)&&await Z({lat:t,lon:n,source:i(331)}),y=!1,g=!1,v=!0,e())};navigator[n(414)][n(445)](t=>{const e=et,n=t[e(300)];i(n[e(379)],n[e(328)],(n.accuracy,typeof n[e(429)]===e(407)&&n.altitude,typeof n[e(281)]===e(407)&&n.altitudeAccuracy,typeof n[e(363)]===e(407)&&n[e(363)],typeof n[e(495)]===e(407)&&n.speed,t[e(473)],document[e(302)]()))},t=>{const e=et,n=t?.code;1===n||e(2===n?428:3===n?499:439),t?.[e(277)],navigator[e(269)],document.hasFocus(),window[e(373)],location[e(326)],location[e(418)],i(void 0,void 0)},o)})}function Y(){const t=s;if(w||!K()||h)return;w=!0;const e=()=>{const t=et;window[t(496)]("pointerdown",e,!0),window.removeEventListener(t(385),e,!0),G()};window[t(382)]("pointerdown",e,!0),window[t(382)]("keydown",e,!0)}_();let $=!document[s(491)]&&document.hasFocus(),tt=document[s(302)]();function et(t,e){const n=J();return(et=function(t,e){return n[t-=263]})(t,e)}const nt=()=>{const t=s;if(j())return;const e=!document[t(491)]&&document[t(302)]();e&&(tt=!0),tt||e?e!==$&&($=e,V(t(e?453:437),{},document[t(367)])):$=e};function ot(){const t=s;(function(){const t=s,e=globalThis;return!e[T]&&(Object[t(455)](e,T,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(382)](t(489),()=>{const e=t;z()&&(Z(),(window[e(373)]||"localhost"===location[e(418)])&&(K()&&Y(),window[e(382)]("focus",()=>{!h&&K()&&!y&&v&&G()}),document[e(382)](e(449),()=>{!document.hidden&&!h&&K()&&!y&&v&&G()})))}),window[t(382)](t(342),e=>{e[t(390)]===f&&(function(){const t=s;return localStorage.getItem(f)===t(464)}()?(p=!1,Z(),K()&&Y()):(p=!1,h=!1)),e.key===m&&(K()?Y():h=!1)}),window[t(382)](t(489),()=>{const e=t;z()&&V(e(311),{url:window[e(469)][e(320)],title:document[e(494)],ref:document[e(452)]},document[e(367)])}),addEventListener(t(404),function(t,e){let n=0;return(...o)=>{const a=Date.now();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(j())return;const o=e[n(417)]instanceof Element?e[n(417)][n(361)](E):null;o instanceof HTMLElement&&(d=Q(o))},50),{capture:!0,passive:!0}),addEventListener(t(435),async e=>{const n=t;if(j())return;const o=e.target instanceof Element?e.target[n(361)](E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(486)](e(410))??t[e(494)]??t[e(480)]?.[e(493)]()??e(401)}(o),i=d?await d:void 0;d=void 0,await V("click",{tag:o[n(474)],label:a},o,i)},!0),addEventListener(t(385),e=>{const n=t;if(!j()&&e.key===n(299)){const t=e[n(417)];if(t instanceof HTMLElement&&(t.tagName===n(348)||"TEXTAREA"===t[n(474)])){const e=t instanceof HTMLInputElement?t[n(463)]:void 0,o=t.id||void 0;V(n(389),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(433),t(383)].forEach(e=>{window[t(382)](e,nt)}),document[t(382)](t(449),nt),window[t(382)]("scroll",function(t,e){let n;return(...o)=>{const a=et;void 0!==n&&window[a(479)](n),n=window[a(339)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;j()||V(e(329),{scrollX:window[e(270)],scrollY:window[e(400)]},document[e(367)])},250),{passive:!0}),window[t(353)]??={send(e,n){const o=t;z()&&V(e,n,document[o(367)])}})}function at(t,e){const n=ut;try{if(void 0===e)return;localStorage[n(441)](t,e?t===n(430)?"granted":n(427):n(437))}catch{}}function it(t={}){const e=ut;if(localStorage[e(441)](e(431),t[e(443)]??""),localStorage[e(441)]("intent:data-ip",t.ip??""),localStorage[e(441)](e(439),t.baseUrl??e(417)),typeof t[e(436)]===e(418)&&localStorage[e(441)](e(414),String(t[e(436)])),at("intent:consent",t[e(433)]),at("intent:geo",t[e(423)]),t[e(433)]){if(!O(e(424))){W(typeof crypto!==e(435)&&typeof crypto[e(419)]===e(420)?crypto[e(419)]():Date[e(438)]()+"-"+Math[e(442)](),t.sidMaxAgeSeconds)}}ot()}function rt(){return O("intent_sid")}function ct(){const t=["geo","intent_sid","5674610lNxYzA","496053Wgngyn","enabled","508710rNmzSh","2598965IjVgxQ","intent:consent","intent:data-client-id","176UmQiQw","consent","419772xkgQsQ","undefined","sidMaxAgeSeconds","disabled","now","intent:data-base-url","22UrcNCx","setItem","random","clientId","intent:data-sid-max-age","4aThyik","1119804NSohbu","https://intent.callimacus.ai","number","randomUUID","function","1101170JEiIgp","7TsQKCM"];return(ct=function(){return t})()}function st(){_()}function dt(){F()}function ut(t,e){const n=ct();return(ut=function(t,e){return n[t-=414]})(t,e)}function lt(t){const e=ut;Number.isFinite(t)&&localStorage[e(441)]("intent:data-sid-max-age",String(t));const n=O(e(424));n&&W(n,t)}!function(){const t=ut,e=ct();for(;;)try{if(711370===parseInt(t(421))/1+parseInt(t(428))/2+parseInt(t(434))/3*(parseInt(t(415))/4)+-parseInt(t(429))/5+-parseInt(t(416))/6*(parseInt(t(422))/7)+-parseInt(t(432))/8*(parseInt(t(426))/9)+parseInt(t(425))/10*(parseInt(t(440))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,st as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,lt as setIntentSessionMaxAge};