@solomei-ai/intent 1.4.3 → 1.4.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.js +1 -1
- package/dist/intent.umd.min.js +1 -1
- package/package.json +6 -6
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";function e(t,o){const a=n();return(e=function(t,e){return a[t-=331]})(t,o)}function n(){const t=["type","referrer","beta","responseStart","floor","2649252fZeprz","yes","userAgent","Device geolocation: disabled","enabled"," | ","map","userAgentData","devicePixelRatio","(pointer: coarse)"," (UTC","getItem","Device geolocation: enabled","isFinite","deviceorientation","saveData","-bit)","connection","join","controller","max","brands","version","Battery: ","find","read","fetch","innerWidth","Local time: ","doNotTrack","cors","resolvedOptions","timeZone","intent:geo","push","Languages: ","Pointer/Touch: ","Referrer: ","12PLerqP","getBattery","Network: ","abs","function"," cores","toFixed","ReadableStream","rtt","5549440VKpDcO","signal","19416492PxmQxO","n/a","availWidth","onLine","gamma","DateTimeFormat","all","from","20CofNmA","957852DfDJIf"," (active test)","toString","effectiveType","Screen: ","PWA: "," ms","padStart","languages","brand","unknown","slice","; DNT: ","platform","627480DBBTak","downlink","removeEventListener","UA brands: ","hardwareConcurrency","431553ZRvhAF","no-store","width","undefined","Language: ","/speedtest.bin","DeviceOrientationEvent","entryType","filter","244956ghIShU","charging","requestStart","Online: ","flat","length","Platform: ",", maxTouchPoints ","reclined","round","height","matches","hint: ","°, γ ","(pointer: fine)","orientation","Tilt: ","navigation","number","random","(display-mode: standalone)","includes","innerHeight","now","x (avail ","isSecureContext","TTFB ~"];return(n=function(){return t})()}async function o(){const t=e,n=[];if(function(t){const n=e;return"connection"in t&&typeof t[n(349)]!==n(412)}(navigator)){const e=navigator[t(349)];e?.effectiveType&&n[t(366)](e[t(393)]),typeof e?.[t(405)]===t(436)&&n[t(366)](e[t(405)]+" Mbps"),typeof e?.[t(378)]===t(436)&&n[t(366)](e[t(378)]+t(396)),e?.[t(347)]&&n[t(366)](t(347))}const o=await async function(t,n=3e3,o=8,a=150){const i=e;if(!(i(358)in window)||!(i(377)in window))return;const r=performance[i(441)]();let c,s=0;await Promise[i(387)](Array[i(388)]({length:o},async()=>{const e=i;for(;performance[e(441)]()-r<n+a;){const o=new AbortController,i=(t[e(439)]("?")?"&":"?")+"cb="+Math[e(437)]()[e(392)](36)[e(401)](2);try{const l=await fetch(t+i,{cache:e(410),signal:o[e(380)],mode:e(362)}),d=l.body?.getReader();if(!d)break;for(;;){const t=performance[e(441)]();if(t-r>=n+a){o.abort();break}const{done:i,value:l}=await d[e(357)]();if(i)break;c??=t,t-(c??t)>=a&&(s+=l.byteLength)}}catch{}}}));const l=(c??r)+a,d=Math.max(1,performance[i(441)]()-l),u=8*s/(d/1e3)/1e6;return Number[i(345)](u)&&u>0?u:void 0}(t(414),3e3,8,150),a=performance.getEntriesByType(t(435))[t(356)](e=>"navigation"===e[t(416)]);let i;if(a){const e=Math[t(352)](0,a[t(448)]-a[t(420)]);i=t(444)+Math.round(e)+t(396)}const r=[];if("number"==typeof o&&r[t(366)]("~"+o[t(376)](1)+" Mbps"),i&&r[t(366)](i),n[t(423)]&&r[t(366)](t(430)+n.join(", ")),r[t(423)])return t(372)+r[t(350)](", ")+t(391)}function a(){const t=e;if(!function(t){const n=e;return n(339)in t&&typeof t.userAgentData!==n(412)}(navigator))return;const n=navigator[t(339)],o=Array.isArray(n[t(353)])?n[t(353)][t(338)](e=>e[t(399)]+" "+e[t(354)]).join(", "):void 0,a=n[t(403)]?n[t(403)]+(n.mobile?" (mobile)":""):void 0;return[o&&t(407)+o,a&&t(424)+a][t(417)](Boolean).join(" | ")||void 0}async function i(t=400){const n=e;if(n(415)in window&&window[n(443)])return new Promise(o=>{const a=n;let i=!1;const r=t=>{const n=e,a=typeof t.beta===n(436)?t[n(447)]:void 0,c=typeof t[n(385)]===n(436)?t[n(385)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[n(406)](n(346),r);const s=function(t,n){const o=e,a=Math[o(373)](t),i=Math.abs(n);return a<15&&i<15?o(422):a>=60?"upright":o(426)}(a,c);o(n(434)+s+" (β "+Math[n(427)](a)+n(431)+Math.round(c)+"°)")};window.setTimeout(()=>{const t=e;i||(i=!0,window.removeEventListener(t(346),r),o(void 0))},t),window.addEventListener(a(346),r,{passive:!0})})}async function r(){const t=e;if(function(t){const n=e;return n(371)in t&&typeof t[n(371)]===n(374)}(navigator))try{const e=await navigator[t(371)](),n=Math[t(427)](100*e.level),o=[(Number.isFinite(n)?n:0)+"%",e[t(419)]?t(419):"not charging"];return t(355)+o[t(350)](", ")}catch{return}}async function c(){const t=e,n=(new(Intl[t(386)]))[t(363)]()[t(364)],c=function(t){const n=e,o=t<=0?"+":"-",a=Math[n(373)](t);return""+o+String(Math[n(331)](a/60))[n(397)](2,"0")+":"+String(a%60)[n(397)](2,"0")}((new Date).getTimezoneOffset()),s=[];s[t(366)](t(413)+navigator.language),navigator[t(398)]?.length&&s[t(366)](t(367)+navigator[t(398)][t(350)](", ")),s[t(366)]("User agent: "+navigator[t(334)]);const l=a();l&&s[t(366)](l),s.push("Timezone: "+n+t(342)+c+")"),s[t(366)](t(360)+(new Date)[t(392)]());const d=window[t(340)]||1;s[t(366)](t(394)+screen[t(411)]+"x"+screen[t(428)]+" @"+d+t(442)+screen[t(383)]+"x"+screen.availHeight+", "+screen.colorDepth+t(348));const u=screen[t(433)]&&t(445)in screen[t(433)]?screen[t(433)].type:void 0;s[t(366)]("Viewport: "+window[t(359)]+"x"+window[t(440)]+(u?", orientation "+u:"")),s[t(366)]("CPU: "+navigator[t(408)]+t(375));const f=await o();f&&s[t(366)](f),s[t(366)](function(){const t=e,n=typeof matchMedia===t(374)&&matchMedia(t(341)).matches,o="function"==typeof matchMedia&&matchMedia(t(432))[t(429)],a=n?"coarse":o?"fine":t(400),i="number"==typeof navigator.maxTouchPoints?navigator.maxTouchPoints:0;return t(368)+a+t(425)+i}());const m=await r();m&&s[t(366)](m),s[t(366)]("CookiesEnabled: "+(navigator.cookieEnabled?"yes":"no")+t(402)+(navigator[t(361)]??t(382))),s.push(t(421)+(navigator[t(384)]?t(333):"no")),document[t(446)]&&s[t(366)](t(369)+document.referrer),s[t(366)](function(){const t=e,n="function"==typeof matchMedia&&matchMedia(t(438))[t(429)],o=Boolean(navigator.serviceWorker?.[t(351)]);return t(395)+(o?"SW-controlled":"no SW")+", display-mode standalone: "+(n?"yes":"no")}());const p=await i();p&&s.push(p);const h=typeof localStorage!==t(412)&&localStorage[t(343)](t(365))===t(336);return s[t(366)](t(h?344:335)),s[t(350)](t(337))}!function(){const t=e,o=n();for(;;)try{if(389943===parseInt(t(409))/1+-parseInt(t(418))/2*(-parseInt(t(370))/3)+-parseInt(t(389))/4*(-parseInt(t(404))/5)+parseInt(t(332))/6+-parseInt(t(390))/7+parseInt(t(379))/8+-parseInt(t(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}();const s=z;!function(){const t=z,e=P();for(;;)try{if(159003===parseInt(t(134))/1+-parseInt(t(319))/2*(parseInt(t(123))/3)+-parseInt(t(269))/4*(parseInt(t(204))/5)+parseInt(t(344))/6+-parseInt(t(178))/7*(-parseInt(t(237))/8)+-parseInt(t(337))/9+-parseInt(t(210))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",u=0;const f=s(193),m=s(188);let p=!1,h=!1,g=!1,w=!1,y=!1,v=!1;const b=s(316),I=s(238),M="intent:data-base-url",S="https://intent.callimacus.ai",x=s(149),T=s(160),E=[s(211),s(332),"a",s(309),s(147),s(167),'[role="link"]',"[onclick]"][s(338)](","),L="data-intent-redact",k=s(180),A=new Set(["name",s(148),"additional-name","family-name",s(217),"username",s(324),s(286),s(233),s(121),s(181),"address-line1",s(253),s(203),"address-level1",s(137),s(126),"address-level4",s(182),s(283),s(321),s(243),s(258),s(142),s(115),s(219),s(304),s(179),s(336),s(322),"cc-type",s(340),s(120),s(159),s(112),"sex",s(273)]);function D(t){return"<"+N(t)+">"}function P(){const t=["postal-code","cc-csc","host","email","setAttribute","aria-label","intent","strokeStyle","outerHTML","randomUUID","Max-Age=","a[href]","visibilityState","data-html2canvas-ignore","altitude","cc-exp-year","118350vIFjzM","join","Redacted","bday","address-line1","type","Enter","1799058kPeTlE","getItem","lineWidth","intent_sid","removeEventListener","Phone","toISOString","createElement","UNKNOWN","innerHeight","getCurrentPosition","bday-year","location","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","cc-family-name","height","disabled","TEXTAREA","Unexpected FileReader result type","bday-day","organization-title","textContent","269691sYkFfP","sex","bottom","address-level3","application/json","TIMEOUT","length","floor","setTimeout","<no visible label>","forEach","163892FZirKP","startsWith","globalAlpha","address-level2","role","permissions","timestamp","hostname","cc-additional-name","autocomplete","no-store","family-name","width",'input[type="button"]',"given-name","intent:data-sid-max-age","#374151","canvas","getAttribute","POSITION_UNAVAILABLE","geoEnabled","save","canSend","scroll","pointerdown","bday-month","__intent__sdk__initialized__","search","now","number","Path=/","scrollX","value",'[role="button"]',"addEventListener","fillStyle","SameSite=Strict","; Secure","protocol","readAsDataURL","min","input-submit","x-sl-access-token","trim","21TsYLaY","cc-exp-month","data-intent-redact-label","street-address","country","secure","click","hidden","longitude","context","intent:geo","latitude","href","max","heading","intent:consent","Address","cc-","hasFocus","closest","fillRect","top","random","Name","page-blur","address-line3","5MQiYVn","Secure","toLowerCase","#e5e7eb",'="mask"], [',"attributes","1507940yoppil","button","has","push","storage","getBoundingClientRect","localhost","nickname","html","cc-number","x-intent-sid","indexOf","querySelectorAll","Organization","center","clearTimeout","lat","/p.gif","slice","body","additional-name",'=""]',"enabled","organization","function","pageview","page-focus","137728LHISfJ","intent:data-ip","error","referrer","title","bbox","cc-name","Birthday","searchbox","isFinite","omit","code","cloneNode","Sex","target","image/jpeg","address-line2","Email","address-level1","geolocation","Credit card","cc-given-name","tagName","INPUT","label","getContext","onLine","filter","keydown","granted","Password","scrollY","410156AZqIyR","name","POST","result","webauthn","coords","stringify","innerWidth","focus","lon","string","message","round","cookie","country-name","middle","blur","tel","mask","Sensitive","entries","https:","some","speed","PERMISSION_DENIED","altitudeAccuracy","input, textarea","visibilitychange","isSecureContext","strokeRect","query","password","intent_sid=","key","load","cc-exp","hasAttribute","left","undefined","split",'input[type="submit"]',"img","right","includes","textAlign","/events","#9ca3af","intent:data-client-id","fillText","from","2DHCTUX","accuracy"];return(P=function(){return t})()}function N(t){const e=s,n=(t.getAttribute?.(k)??"")[e(177)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(143)]||"")[e(206)]().trim().split(/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&t.type===e(300)?e(267):o[e(291)](t=>t.startsWith(e(195)))?e(257):o[e(291)](t=>[e(270),e(148),e(145),e(230),e(243),e(258),e(115)][e(312)](t))?e(201):o[e(312)](e(324))?e(254):o[e(312)]("tel")?e(349):o.some(t=>t[e(135)](e(340)))?e(244):o[e(312)](e(124))?e(250):o[e(291)](t=>[e(181),e(341),e(253),e(203),e(255),e(137),e(126),"address-level4",e(321),e(182),e(283)].includes(t))?e(194):o[e(312)](e(233))||o[e(312)](e(121))?e(223):"mask"===t[e(152)]?.(L)?.[e(206)]()?e(339):"Sensitive"}function H(t){const e=s;return t[e(305)](e(334))||"ignore"===t[e(152)](L)?.[e(206)]()}function C(t){const e=s,n=t[e(152)](L);return""===n||n?.[e(206)]()===e(287)}function U(t){const e=s;if(t instanceof HTMLInputElement){if("password"===t[e(342)])return!0;if(t[e(342)]===e(161))return!1;const n=t[e(152)](e(138));if(n&&n.toLowerCase()===e(245))return!1;if((t.autocomplete||"")[e(206)]().trim().split(/\s+/)[e(264)](Boolean)[e(291)](t=>A[e(212)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"")[e(206)]().trim().split(/\s+/)[e(264)](Boolean).some(t=>A[e(212)](t)))return!0}return!1}function O(t){return!!C(t)||!!U(t)}function R(){const t=s,e=[],n=t=>{const e=z,n=t.getBoundingClientRect();if(n[e(146)]<=0||n[e(116)]<=0)return;const o=Math[e(191)](0,n[e(306)]),a=Math[e(191)](0,n[e(199)]),i=Math.max(0,Math.min(n[e(311)],window[e(276)])-o),r=Math[e(191)](0,Math[e(174)](n[e(125)],window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(222)]("["+L+t(208)+L+t(231))[t(133)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||a(339);e[a(213)]({...i,label:r})});return document[t(222)](t(295))[t(133)](o=>{const a=t;if(!C(i=o)&&!U(i))return;var i;if(H(o))return;const r=n(o);if(!r)return;const c=N(o);e[a(213)]({...r,label:c})}),e}const B=()=>localStorage[s(345)](f)===s(266);function F(t){const e=s,n=encodeURIComponent(t)+"=",o=document[e(282)][e(308)]("; ");for(const t of o)if(t[e(135)](n))return decodeURIComponent(t[e(228)](n.length))}function W(t,e){const n=s,o=localStorage.getItem(x),a=null==o?void 0:Number(o),i=Number.isFinite(e)?Number(e):typeof a===n(163)&&Number.isFinite(a)?a:86400,r=window[n(113)].protocol===n(290),c=[n(301)+encodeURIComponent(t),n(331)+i,n(164),n(170)];r&&c[n(213)](n(205)),document.cookie=c[n(338)]("; ")}function _(){const t=s,e=window[t(113)][t(172)]===t(290);document[t(282)]="intent_sid=; Max-Age=0; Path=/; SameSite=Lax"+(e?t(171):"")}function j(){const t=s,e=F(t(347));if(!B())return e&&_(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(307)&&typeof crypto[t(330)]===t(234)?crypto[t(330)]():Date[t(162)]()+"-"+Math[t(200)]();d=n,W(d)}function z(t,e){const n=P();return(z=function(t,e){return n[t-=108]})(t,e)}function Z(){return j(),B()&&Boolean(d)&&(()=>{const t=s,e=localStorage[t(345)](b);return"string"==typeof e&&e[t(177)]().length>0})()}function q(){return!Z()||g}async function X(e){const n=s,o=function(t){const e=s,n=t[e(249)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(318)](t[e(209)])[e(133)](({name:t,value:o})=>{n[e(325)](t,o)}),n[e(166)]=O(t)?D(t):t[e(166)],t[e(117)]&&n[e(325)](e(117),""),n[e(329)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(318)](t[e(209)])[e(133)](({name:t,value:o})=>{n[e(325)](t,o)}),n.value=O(t)?D(t):t[e(166)],t[e(117)]&&n[e(325)](e(117),""),n[e(329)]):t[e(329)]}(e),a=e[n(215)](),i={useCORS:!0,...{x:window.scrollX,y:window[n(268)],width:window.innerWidth,height:window.innerHeight,scale:1},ignoreElements:t=>t instanceof Element&&H(t)},r=await t(document.body,i),c=r[n(146)],l=r.height,d=Math[n(191)](c,l),u=.8*Math.max(window.innerWidth,window[n(110)]),f=Math[n(174)](1,u/d),m=12/(a[n(116)]||1),p=Math[n(174)](1,Math[n(191)](f,m)),h=Math[n(281)](c*p),g=Math[n(281)](l*p),w=document[n(108)](n(151));w[n(146)]=h,w.height=g;const y=w[n(262)]("2d");y.drawImage(r,0,0,c,l,0,0,h,g);const v=R();if(v[n(129)]){y[n(155)](),y[n(136)]=1;for(const t of v){const e=Math[n(281)](t.x*p),o=Math[n(281)](t.y*p),a=Math[n(281)](t.w*p),i=Math[n(281)](t.h*p);y[n(169)]=n(207),y[n(198)](e,o,a,i),y[n(328)]=n(315),y[n(346)]=Math[n(191)](1,Math[n(130)](.02*Math.min(a,i))),y[n(298)](e,o,a,i);const r=Math[n(191)](10,Math[n(174)](22,Math[n(130)](.35*i)));y.font=r+n(114),y[n(169)]=n(150),y[n(313)]=n(224),y.textBaseline=n(284);const c="<"+(t[n(261)]?.[n(177)]().length?t[n(261)]:n(288))+">";y[n(317)](c,e+a/2,o+i/2,a-6)}y.restore()}const b=w.toDataURL(n(252),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(146)],h:a[n(116)]},img:b}}function Y(){const t=s,e=localStorage[t(345)](b),n={"Content-Type":t(127)};return e&&(n[t(176)]=e),d&&(n[t(220)]=d),n}async function J(t,e){const n=s,o=(localStorage[n(345)](M)??S)+n(314),a=localStorage.getItem(b)??void 0,i=JSON.stringify({...t,clientId:a});try{if((await fetch(o,{method:n(271),headers:Y(),body:i,keepalive:e,credentials:n(247)})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(345)](M)??S)+n(227);if(!(await fetch(o,{method:"POST",headers:Y(),body:JSON[n(275)](t),keepalive:e,credentials:n(247),cache:n(144)})).ok)throw new Error("pixel body fallback failed")}(t,e)}catch{}}async function K(t,e,n,o){const a=s;if(!Z())return;const i={...e,localTime:(new Date)[a(350)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(166)]=O(n)?D(n):n[a(166)]);let r="",c={x:0,y:0,w:0,h:0},l="";const d=!("scroll"===t||"page-blur"===t||"page-focus"===t),f=Date[a(162)](),m=f-u>=5e3;let p=o;const h="click"===t||t===a(175)||t===a(235);d&&!p&&(h||m)&&(p=await X(n),u=f),p&&(r=p[a(218)],c=p[a(242)],l=p[a(310)]);const g="page-blur"===t||t===a(236)||t===a(235),w={ts:Date.now(),event:t,props:i,html:g?"":r,bbox:c,img:l},y="hidden"===document[a(333)]||t===a(202);await J(w,y)}function G(){const t=s;return localStorage.getItem(m)===t(232)}async function V(t={}){const e=s;if(!Z())return;const n="number"==typeof t[e(226)]&&typeof t[e(278)]===e(163);if(n&&h)return;if(!n&&p)return;const o=localStorage[e(345)](I),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(289)](t))a[n]=o;await K(e(187),a,document[e(229)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function Q(){const t=s,e={canSend:Z(),geoEnabled:G(),deviceGeoSent:h};if(!e[t(156)]||!e[t(154)]||e.deviceGeoSent)return;const n={secure:window[t(297)],proto:location[t(172)],host:location[t(141)]};if(n[t(183)]||t(323),!("geolocation"in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator[t(139)]?.[t(299)]({name:t(256)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=z;a||(a=!0,Date[i(162)](),Number[i(246)](t)&&Number[i(246)](n)&&await V({lat:t,lon:n,source:"device"}),y=!1,g=!1,v=!0,e())};navigator.geolocation[n(111)](t=>{const e=z,n=t[e(274)];i(n[e(189)],n[e(186)],(n[e(320)],typeof n[e(335)]===e(163)&&n[e(335)],typeof n[e(294)]===e(163)&&n.altitudeAccuracy,typeof n[e(192)]===e(163)&&n[e(192)],"number"==typeof n[e(292)]&&n[e(292)],t[e(140)],document[e(333)],document[e(196)]()))},t=>{const e=z,n=t?.[e(248)];e(1===n?293:2===n?153:3===n?128:109),t?.[e(280)],navigator[e(263)],document[e(333)],document[e(196)](),location[e(172)],location[e(141)],i(void 0,void 0)},o)})}function $(){const t=s;if(w||!G()||h)return;w=!0;const e=()=>{const t=z;window[t(348)](t(158),e,!0),window[t(348)](t(265),e,!0),Q()};window.addEventListener(t(158),e,!0),window[t(168)](t(265),e,!0)}j();let tt=!document[s(185)]&&document.hasFocus(),et=document[s(196)]();const nt=()=>{const t=s;if(q())return;const e=!document[t(185)]&&document[t(196)]();e&&(et=!0),et||e?e!==tt&&(tt=e,K(t(e?236:202),{},document[t(229)])):tt=e};function ot(){const t=s;(function(){const t=globalThis;return!t[T]&&(Object.defineProperty(t,T,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(168)]("load",()=>{const e=t;Z()&&(V(),(window.isSecureContext||location.hostname===e(216))&&(G()&&$(),window[e(168)](e(277),()=>{!h&&G()&&!y&&v&&Q()}),document[e(168)]("visibilitychange",()=>{!document[e(185)]&&!h&&G()&&!y&&v&&Q()})))}),window.addEventListener(t(214),e=>{e[t(302)]===f&&("granted"===localStorage[s(345)](f)?(p=!1,V(),G()&&$()):(p=!1,h=!1)),e.key===m&&(G()?$():h=!1)}),window[t(168)](t(303),()=>{const e=t;Z()&&K(e(235),{url:window.location[e(190)],title:document[e(241)],ref:document[e(240)]},document[e(229)])}),addEventListener("pointerdown",function(t,e){let n=0;return(...o)=>{const a=Date[z(162)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(q())return;const o=e[n(251)]instanceof Element?e[n(251)][n(197)](E):null;o instanceof HTMLElement&&(l=X(o))},50),{capture:!0,passive:!0}),addEventListener("click",async e=>{const n=t;if(q())return;const o=e[n(251)]instanceof Element?e[n(251)][n(197)](E):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=s;return t[e(152)](e(326))??t[e(241)]??t[e(122)]?.[e(177)]()??e(132)}(o),i=l?await l:void 0;l=void 0,await K(n(184),{tag:o.tagName,label:a},o,i)},!0),addEventListener(t(265),e=>{const n=t;if(!q()&&e.key===n(343)){const t=e[n(251)];if(t instanceof HTMLElement&&(t[n(259)]===n(260)||t[n(259)]===n(118))){const e=t instanceof HTMLInputElement?t[n(270)]:void 0,o=t.id||void 0;K(n(175),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(277),t(285)][t(133)](e=>{window[t(168)](e,nt)}),document[t(168)](t(296),nt),window.addEventListener(t(157),function(t,e){let n;return(...o)=>{const a=z;void 0!==n&&window[a(225)](n),n=window[a(131)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;q()||K("scroll",{scrollX:window[e(165)],scrollY:window[e(268)]},document[e(229)])},250),{passive:!0}),window[t(327)]??={send(e,n){const o=t;Z()&&K(e,n,document[o(229)])}})}function at(){const t=["303084WxhCLe","4266078khZLCS","intent:data-ip","geo","50290yasTDp","disabled","consent","sidMaxAgeSeconds","intent:geo","random","setItem","13PhIUdn","intent_sid","undefined","randomUUID","999635XjBhHJ","intent:consent","granted","now","512442ortZKz","intent:data-sid-max-age","clientId","1464000ZGqQmF","1998750hGBeiK","isFinite","8zpvItT"];return(at=function(){return t})()}function it(t,e){const n=rt;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(474)?n(475):"enabled":n(463))}catch{}}function rt(t,e){const n=at();return(rt=function(t,e){return n[t-=454]})(t,e)}function ct(t={}){const e=rt;if(localStorage[e(468)]("intent:data-client-id",t[e(479)]??""),localStorage[e(468)](e(460),t.ip??""),localStorage.setItem("intent:data-base-url",t.baseUrl??"https://intent.callimacus.ai"),"number"==typeof t[e(465)]&&localStorage[e(468)]("intent:data-sid-max-age",String(t[e(465)])),it("intent:consent",t[e(464)]),it(e(466),t[e(461)]),t[e(464)]){if(!F(e(470))){W(typeof crypto!==e(471)&&"function"==typeof crypto[e(472)]?crypto.randomUUID():Date[e(476)]()+"-"+Math[e(467)](),t[e(465)])}}ot()}function st(){return F(rt(470))}function lt(){j()}function dt(){_()}function ut(t){const e=rt;Number[e(456)](t)&&localStorage[e(468)](e(478),String(t));const n=F(e(470));n&&W(n,t)}!function(){const t=rt,e=at();for(;;)try{if(423545===parseInt(t(469))/1*(-parseInt(t(462))/2)+-parseInt(t(477))/3+-parseInt(t(454))/4+parseInt(t(455))/5+parseInt(t(459))/6+parseInt(t(473))/7+-parseInt(t(457))/8*(-parseInt(t(458))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,lt as ensureIntentSessionId,st as getIntentSessionId,ct as initIntent,it as setFlag,ut as setIntentSessionMaxAge};
|
|
4
|
+
import t from"html2canvas-pro";async function e(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(190)in t&&typeof t[e(190)]!==e(278)}(navigator)){const n=navigator[t(190)];n?.[t(154)]&&e[t(180)](n.effectiveType),typeof n?.downlink===t(182)&&e[t(180)]("~"+n[t(199)]+t(181)),typeof n?.[t(207)]===t(182)&&e[t(180)](n[t(207)]+" ms"),n?.[t(196)]&&e[t(180)](t(196))}else{const i=function(t=20){const e=n,o=performance[e(246)]("navigation").find(t=>t[e(275)]===e(272)),i=o?Math[e(238)](0,o[e(214)]-o[e(201)]):void 0,a=performance[e(246)](e(262))[e(167)](t=>t[e(275)]===e(262));let r=0,c=0;for(const n of a[e(212)](0,Math[e(238)](0,t))){const t=n[e(253)]>0?n[e(253)]:n.transferSize>0?n.transferSize:0,o=n[e(226)];t>0&&o>0&&Number[e(163)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(182)?s/1e3:void 0,rttMs:i}}();typeof i[t(204)]===t(182)&&e[t(180)]("~"+i.downlinkMbps.toFixed(1)+t(181)),"number"==typeof i.rttMs&&e[t(180)](t(230)+Math.round(i[t(162)])+t(228)),o=t(235)}const i=performance[t(246)](t(272))[t(251)](e=>e[t(275)]===t(272));if(i){const n=Math[t(238)](0,i[t(214)]-i[t(201)]);!e[t(240)](e=>e[t(256)]("TTFB"))&&e.push(t(230)+Math[t(168)](n)+t(228))}return e[t(216)]?t(192)+e[t(157)](", ")+" ("+o+")":void 0}function n(t,e){const o=i();return(n=function(t,e){return o[t-=152]})(t,e)}async function o(t=400){const e=n;if(e(175)in window&&window[e(225)])return new Promise(o=>{const i=e;let a=!1;const r=t=>{const e=n,i=typeof t[e(191)]===e(182)?t.beta:void 0,c=typeof t[e(202)]===e(182)?t[e(202)]:void 0;if(void 0===i||void 0===c)return;if(a)return;a=!0,window[e(249)](e(229),r);const s=function(t,e){const o=n,i=Math.abs(t),a=Math[o(222)](e);return o(i<15&&a<15?265:i>=60?221:264)}(i,c);o("Tilt: "+s+e(165)+Math[e(168)](i)+e(170)+Math[e(168)](c)+"°)")};window[i(189)](()=>{const t=i;a||(a=!0,window[t(249)](t(229),r),o(void 0))},t),window[i(197)]("deviceorientation",r,{passive:!0})})}function i(){const t=["duration","User agent: "," ms","deviceorientation","TTFB ~","28699670yQlRas","x (avail ","function"," cores","inferred","CPU: ","languages","max","availWidth","some","referrer","not charging","innerWidth","brands",", maxTouchPoints ","getEntriesByType","maxTouchPoints","14BXdtqE","removeEventListener","DateTimeFormat","find","(pointer: fine)","encodedBodySize","doNotTrack","1250888hpDsXQ","startsWith","1618cNWCrk"," (mobile)","serviceWorker","level","51036xDPRcq","resource","padStart","reclined","flat","Device geolocation: disabled","Language: ","SW-controlled","Device geolocation: enabled"," | ","Platform: ","navigation","coarse","resolvedOptions","entryType","cookieEnabled","devicePixelRatio","undefined","(pointer: coarse)","height","availHeight","effectiveType","-bit)","type","join","Languages: ","getItem","width","userAgentData","rttMs","isFinite","getBattery"," (β ","map","filter","round","innerHeight","°, γ ","Timezone: ","171xroiWX","orientation","96NzRZpp","DeviceOrientationEvent","intent:geo","7753905QHwfPg"," (UTC","timeZone","push"," Mbps","number","UA brands: ","floor","yes","brand","4364523dJSWjV","onLine","setTimeout","connection","beta","Network: ","platform","; DNT: ","Battery: ","saveData","addEventListener","version","downlink","getTimezoneOffset","requestStart","gamma","toString","downlinkMbps","Online: ","PWA: ","rtt",", display-mode standalone: ","enabled","n/a","Referrer: ","slice","87912UGsVxf","responseStart","userAgent","length","CookiesEnabled: ","controller","unknown","matches","upright","abs","no SW","charging","isSecureContext"];return(i=function(){return t})()}async function a(){const t=n,i=(new(Intl[t(250)]))[t(274)]()[t(179)],a=function(t){const e=n,o=t<=0?"+":"-",i=Math[e(222)](t);return""+o+String(Math[e(184)](i/60))[e(263)](2,"0")+":"+String(i%60)[e(263)](2,"0")}((new Date)[t(200)]()),r=[];r[t(180)](t(267)+navigator.language),navigator[t(237)]?.[t(216)]&&r.push(t(158)+navigator[t(237)].join(", ")),r[t(180)](t(227)+navigator[t(215)]);const c=function(){const t=n;if(!("userAgentData"in(e=navigator))||void 0===e.userAgentData)return;var e;const o=navigator[t(161)],i=Array.isArray(o[t(244)])?o[t(244)][t(166)](e=>e[t(186)]+" "+e[t(198)])[t(157)](", "):void 0,a=o[t(193)]?""+o[t(193)]+(o.mobile?t(258):""):void 0;return[i&&t(183)+i,a&&t(271)+a][t(167)](Boolean)[t(157)](t(270))||void 0}();c&&r.push(c),r[t(180)](t(171)+i+t(178)+a+")"),r.push("Local time: "+(new Date)[t(203)]());const s=window[t(277)]||1;r[t(180)]("Screen: "+screen[t(160)]+"x"+screen[t(152)]+" @"+s+t(232)+screen[t(239)]+"x"+screen[t(153)]+", "+screen.colorDepth+t(155));const d=screen[t(173)]&&"type"in screen.orientation?screen[t(173)][t(156)]:void 0;r.push("Viewport: "+window[t(243)]+"x"+window[t(169)]+(d?", orientation "+d:"")),r[t(180)](t(236)+navigator.hardwareConcurrency+t(234));const u=await e();u&&r[t(180)](u),r[t(180)](function(){const t=n,e="function"==typeof matchMedia&&matchMedia(t(279))[t(220)],o=typeof matchMedia===t(233)&&matchMedia(t(252))[t(220)],i=e?t(273):o?"fine":t(219),a=typeof navigator[t(247)]===t(182)?navigator[t(247)]:0;return"Pointer/Touch: "+i+t(245)+a}());const l=await async function(){const t=n;var e;if("getBattery"in(e=navigator)&&"function"==typeof e.getBattery)try{const e=await navigator[t(164)](),n=Math.round(100*e[t(260)]),o=[(Number[t(163)](n)?n:0)+"%",e[t(224)]?t(224):t(242)];return t(195)+o[t(157)](", ")}catch{return}}();l&&r[t(180)](l),r[t(180)](t(217)+(navigator[t(276)]?"yes":"no")+t(194)+(navigator[t(254)]??t(210))),r[t(180)](t(205)+(navigator[t(188)]?"yes":"no")),document[t(241)]&&r[t(180)](t(211)+document[t(241)]),r[t(180)](function(){const t=n,e="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)")[t(220)],o=Boolean(navigator[t(259)]?.[t(218)]);return t(206)+t(o?268:223)+t(208)+(e?t(185):"no")}());const f=await o();f&&r[t(180)](f);const m=typeof localStorage!==t(278)&&localStorage[t(159)](t(176))===t(209);return r.push(t(m?269:266)),r[t(157)](t(270))}!function(){const t=n,e=i();for(;;)try{if(856464===-parseInt(t(257))/1*(-parseInt(t(174))/2)+-parseInt(t(172))/3*(parseInt(t(261))/4)+-parseInt(t(177))/5+parseInt(t(213))/6+-parseInt(t(248))/7*(parseInt(t(255))/8)+parseInt(t(187))/9+parseInt(t(231))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const r=F;!function(){const t=F,e=u();for(;;)try{if(585938===-parseInt(t(443))/1+parseInt(t(512))/2+parseInt(t(431))/3+parseInt(t(534))/4*(-parseInt(t(396))/5)+parseInt(t(527))/6+-parseInt(t(550))/7+-parseInt(t(498))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let c,s="",d=0;function u(){const t=["stringify","Secure","scrollX","forEach","filter","heading","body","/events","push","UNKNOWN","createElement","addEventListener","3003108MxlrHT","blur","address-line2","result","trim","getItem","cc-given-name","1776844EuwJOS","setTimeout","page-blur","SameSite=Lax","bday-year","isFinite","onload","cc-type","focus","textBaseline","nickname","organization-title","drawImage","Path=/","Sensitive","load","3784249LnpMBl","data-html2canvas-ignore","save","startsWith","left","localhost","width","longitude","country-name","querySelectorAll","indexOf","ignore","target","Redacted","page-focus","Email","PERMISSION_DENIED","no-store","permissions","address-level4","function","coords","intent:data-client-id","error","timestamp","cc-","__intent__sdk__initialized__","accuracy","device","#9ca3af","granted","strokeStyle","x-intent-sid","includes","strokeRect","speed","height","cc-name","hidden","data-intent-redact","fillText","intent:geo","label","cc-number","username","visibilitychange","randomUUID","setAttribute","closest","[onclick]","floor","country","right","toDataURL","address-level3","lineWidth","scroll","email","password","address-level1","number","key","referrer","min","5qGbUKA","https://intent.callimacus.ai","geolocation","POST","webauthn","a[href]","bbox","round",'=""]',"cloneNode","isSecureContext","lat","Address","removeEventListener",'="mask"], [',"storage","location","value","aria-label","input-submit","family-name","html","tel","cookie","mask","random","query","pointerdown","outerHTML","TIMEOUT","latitude","innerWidth","now","organization","onerror","2553873gEfNxR","application/json","sex",'input[type="button"]',"from","intent:consent","INPUT","secure","Max-Age=","altitudeAccuracy","textContent","hostname","255947GEgVfr","getBoundingClientRect","type","keydown","top","bday","attributes","disabled","visibilityState","Name","pixel body fallback failed","length","cc-additional-name","canvas","protocol","intent_sid","role","autocomplete","split","max","street-address","fillStyle","click","cc-exp-year","#374151","TEXTAREA","intent_sid=","has","join","Birthday","Password","Phone","intent:data-sid-max-age","search","toLowerCase","bday-day","onLine","innerHeight","Organization","pageview","font","geoEnabled","toISOString","Enter","some","scrollY","enabled","POSITION_UNAVAILABLE","altitude","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","Sex","getAttribute","img","FileReader error","tagName","4130160wBEuah","hasFocus","title",'[role="link"]',"slice","Unexpected FileReader result type","code","address-level2","globalAlpha","image/jpeg","center","additional-name","name","omit","1982328EqHFvM","https:","postal-code"];return(u=function(){return t})()}const l=r(436),f=r(591);let m=!1,p=!1,g=!1,h=!1,w=!1,y=!1;const v=r(572),b="intent:data-base-url",M=r(397),S=r(475),x=r(576),I=["button",r(401),"a",'input[type="submit"]',r(434),'[role="button"]',r(501),r(381)][r(471)](","),T=r(589),E=new Set([r(510),"given-name",r(509),r(416),r(544),r(376),"email",r(418),r(429),"organization-title","street-address","address-line1","address-line2","address-line3",r(391),r(505),r(386),r(569),"country","country-name",r(514),r(587),r(533),r(455),"cc-family-name",r(375),"cc-exp","cc-exp-month",r(466),"cc-csc",r(541),r(448),r(478),"bday-month",r(538),r(433),r(400)]);function A(t){return"<"+L(t)+">"}function L(t){const e=r,n=(t[e(494)]?.("data-intent-redact-label")??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(460)]||"")[e(477)]()[e(531)]()[e(461)](/\s+/)[e(519)](Boolean):[];return t instanceof HTMLInputElement&&t.type===e(390)?e(473):o[e(487)](t=>t[e(553)](e(575)))?"Credit card":o[e(487)](t=>["name","given-name","family-name","additional-name",e(587),e(533),"cc-family-name"][e(583)](t))?e(452):o[e(583)](e(389))?e(565):o.includes(e(418))?e(474):o[e(487)](t=>t.startsWith(e(448)))?e(472):o[e(583)](e(433))?e(493):o[e(487)](t=>[e(463),"address-line1",e(529),"address-line3",e(391),e(505),"address-level3",e(569),e(514),e(383),e(558)][e(583)](t))?e(408):o[e(583)](e(429))||o[e(583)](e(545))?e(481):t[e(494)]?.(T)?.[e(477)]()===e(420)?e(563):e(548)}function k(t){const e=r;return t.hasAttribute(e(551))||t.getAttribute(T)?.[e(477)]()===e(561)}function N(t){const e=r,n=t[e(494)](T);return""===n||n?.[e(477)]()===e(420)}function D(t){const e=r;if(t instanceof HTMLInputElement){if(t[e(445)]===e(390))return!0;if(t[e(445)]===e(476))return!1;const n=t.getAttribute(e(459));if(n&&"searchbox"===n[e(477)]())return!1;if((t[e(460)]||"")[e(477)]()[e(531)]()[e(461)](/\s+/)[e(519)](Boolean)[e(487)](t=>E[e(470)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(460)]||"")[e(477)]().trim()[e(461)](/\s+/)[e(519)](Boolean).some(t=>E.has(t)))return!0}return!1}function H(t){return!!N(t)||!!D(t)}function P(){const t=r,e=[],n=t=>{const e=F,n=t[e(444)]();if(n[e(556)]<=0||n[e(586)]<=0)return;const o=Math[e(462)](0,n[e(554)]),i=Math[e(462)](0,n[e(447)]),a=Math[e(462)](0,Math.min(n[e(384)],window[e(427)])-o),r=Math.max(0,Math.min(n.bottom,window.innerHeight)-i);return a<=0||r<=0?void 0:{x:o,y:i,w:a,h:r}};document.querySelectorAll("["+T+t(410)+T+t(404))[t(518)](o=>{const i=t,a=n(o);if(!a)return;const r=L(o)||"Redacted";e[i(523)]({...a,label:r})});return document[t(559)]("input, textarea")[t(518)](o=>{const i=t;if(!N(a=o)&&!D(a))return;var a;if(k(o))return;const r=n(o);if(!r)return;const c=L(o);e[i(523)]({...r,label:c})}),e}const R=()=>localStorage.getItem(l)===r(580);function U(t){const e=r,n=encodeURIComponent(t)+"=",o=document.cookie[e(461)]("; ");for(const t of o)if(t[e(553)](n))return decodeURIComponent(t[e(502)](n.length))}function B(t,e){const n=r,o=localStorage.getItem(S),i=null==o?void 0:Number(o),a=Number[n(539)](e)?Number(e):typeof i===n(392)&&Number[n(539)](i)?i:86400,c="https:"===window[n(412)][n(457)],s=[n(469)+encodeURIComponent(t),n(439)+a,n(547),n(537)];c&&s.push(n(516)),document[n(419)]=s[n(471)]("; ")}function O(){const t=r,e=window[t(412)].protocol===t(513);document[t(419)]="intent_sid=; Max-Age=0; Path=/; SameSite=Lax"+(e?"; Secure":"")}function C(){const t=r,e=U(t(458));if(!R())return e&&O(),void(s="");if(e)return void(s=e);const n="undefined"!=typeof crypto&&typeof crypto[t(378)]===t(570)?crypto[t(378)]():Date[t(428)]()+"-"+Math[t(421)]();s=n,B(s)}function W(){return C(),R()&&Boolean(s)&&(()=>{const t=localStorage[r(532)](v);return"string"==typeof t&&t.trim().length>0})()}function F(t,e){const n=u();return(F=function(t,e){return n[t-=375]})(t,e)}function _(){return!W()||g}async function z(e){const n=r,o=function(t){const e=r,n=t[e(405)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(435)](t[e(449)])[e(518)](({name:t,value:o})=>{n[e(379)](t,o)}),n[e(413)]=H(t)?A(t):t[e(413)],t[e(450)]&&n[e(379)]("disabled",""),n[e(424)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(449)]).forEach(({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(413)]=H(t)?A(t):t.value,t[e(450)]&&n.setAttribute(e(450),""),n[e(424)]):t[e(424)]}(e),i=e[n(444)](),a={useCORS:!0,...{x:window[n(517)],y:window.scrollY,width:window[n(427)],height:window[n(480)],scale:1},ignoreElements:t=>t instanceof Element&&k(t)},c=await t(document[n(521)],a),s=c.width,d=c[n(586)],u=Math[n(462)](s,d),l=.8*Math.max(window[n(427)],window.innerHeight),f=Math[n(395)](1,l/u),m=12/(i[n(586)]||1),p=Math[n(395)](1,Math[n(462)](f,m)),g=Math.round(s*p),h=Math[n(403)](d*p),w=document[n(525)](n(456));w[n(556)]=g,w[n(586)]=h;const y=w.getContext("2d");y[n(546)](c,0,0,s,d,0,0,g,h);const v=P();if(v[n(454)]){y[n(552)](),y[n(506)]=1;for(const t of v){const e=Math[n(403)](t.x*p),o=Math[n(403)](t.y*p),i=Math[n(403)](t.w*p),a=Math[n(403)](t.h*p);y.fillStyle="#e5e7eb",y.fillRect(e,o,i,a),y[n(581)]=n(579),y[n(387)]=Math[n(462)](1,Math[n(382)](.02*Math.min(i,a))),y[n(584)](e,o,i,a);const r=Math[n(462)](10,Math.min(22,Math[n(382)](.35*a)));y[n(483)]=r+n(492),y[n(464)]=n(467),y.textAlign=n(508),y[n(543)]="middle";const c="<"+(t.label?.[n(531)]()[n(454)]?t[n(592)]:"Sensitive")+">";y[n(590)](c,e+i/2,o+a/2,i-6)}y.restore()}const b=w[n(385)](n(507),.8);return{html:o,bbox:{x:i.x,y:i.y,w:i[n(556)],h:i[n(586)]},img:b}}function j(){const t=r,e=localStorage[t(532)](v),n={"Content-Type":t(432)};return e&&(n["x-sl-access-token"]=e),s&&(n[t(582)]=s),n}async function q(t,e){const n=r,o=(localStorage.getItem(b)??M)+n(522),i=localStorage[n(532)](v)??void 0,a=JSON[n(515)]({...t,clientId:i});try{if((await fetch(o,{method:n(399),headers:j(),body:a,keepalive:e,credentials:"omit"})).ok)return}catch{}try{await async function(t,e=!1){const n=r,o=(localStorage.getItem(b)??M)+"/p.gif";if(!(await fetch(o,{method:"POST",headers:j(),body:JSON[n(515)](t),keepalive:e,credentials:n(511),cache:n(567)})).ok)throw new Error(n(453))}(t,e)}catch{}}async function G(t,e,n,o){const i=r;if(!W())return;const a={...e,localTime:(new Date)[i(485)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(a[i(413)]=H(n)?A(n):n[i(413)]);let c="",s={x:0,y:0,w:0,h:0},u="";const l=!(t===i(388)||t===i(536)||t===i(564)),f=Date.now(),m=f-d>=5e3;let p=o;const g=t===i(465)||t===i(415)||t===i(482);l&&!p&&(g||m)&&(p=await z(n),d=f),p&&(c=p[i(417)],s=p[i(402)],u=p[i(495)]);const h=t===i(536)||t===i(564)||t===i(482),w={ts:Date[i(428)](),event:t,props:a,html:h?"":c,bbox:s,img:u},y=document.visibilityState===i(588)||t===i(536);await q(w,y)}function X(){const t=r;return localStorage.getItem(f)===t(489)}async function V(t={}){const e=r;if(!W())return;const n="number"==typeof t[e(407)]&&typeof t.lon===e(392);if(n&&p)return;if(!n&&m)return;const o=localStorage[e(532)]("intent:data-ip"),i={context:await a()};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:""}),n?p=!0:m=!0}async function J(){const t=r,e={canSend:W(),geoEnabled:X(),deviceGeoSent:p};if(!e.canSend||!e[t(484)]||e.deviceGeoSent)return;window[t(406)],location[t(457)],location[t(442)];if(t(438),!("geolocation"in navigator))return;if(w)return;w=!0,g=!0;const n={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(428)]();try{await(navigator[t(568)]?.[t(422)]({name:t(398)}))}catch(t){}await new Promise(e=>{let o=!1;const i=async(t,n,i)=>{const a=F;o||(o=!0,Date[a(428)](),Number.isFinite(t)&&Number[a(539)](n)&&await V({lat:t,lon:n,source:a(578)}),w=!1,g=!1,y=!0,e())};navigator[t(398)].getCurrentPosition(t=>{const e=F,n=t[e(571)];i(n[e(426)],n[e(557)],(n[e(577)],typeof n.altitude===e(392)&&n[e(491)],"number"==typeof n[e(440)]&&n[e(440)],"number"==typeof n.heading&&n[e(520)],"number"==typeof n[e(585)]&&n.speed,t[e(574)],document[e(451)],document.hasFocus()))},t=>{const e=F,n=t?.[e(504)];e(1===n?566:2===n?490:3===n?425:524),navigator[e(479)],document[e(451)],document[e(499)](),location[e(457)],location[e(442)],i(void 0,void 0)},n)})}function Q(){const t=r;if(h||!X()||p)return;h=!0;const e=()=>{const t=F;window.removeEventListener(t(423),e,!0),window[t(409)]("keydown",e,!0),J()};window[t(526)](t(423),e,!0),window[t(526)](t(446),e,!0)}C();let Y=!document[r(588)]&&document.hasFocus(),Z=document[r(499)]();const K=()=>{const t=r;if(_())return;const e=!document[t(588)]&&document[t(499)]();e&&(Z=!0),Z||e?e!==Y&&(Y=e,G(t(e?564:536),{},document[t(521)])):Y=e};function $(){const t=r;(function(){const t=globalThis;return!t[x]&&(Object.defineProperty(t,x,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(526)](t(549),()=>{const e=t;W()&&(V(),(window[e(406)]||location[e(442)]===e(555))&&(X()&&Q(),window[e(526)]("focus",()=>{!p&&X()&&!w&&y&&J()}),document[e(526)](e(377),()=>{!document.hidden&&!p&&X()&&!w&&y&&J()})))}),window[t(526)](t(411),e=>{const n=t;e[n(393)]===l&&(function(){const t=r;return localStorage.getItem(l)===t(580)}()?(m=!1,V(),X()&&Q()):(m=!1,p=!1)),e[n(393)]===f&&(X()?Q():p=!1)}),window.addEventListener("load",()=>{const e=t;W()&&G(e(482),{url:window[e(412)].href,title:document[e(500)],ref:document[e(394)]},document[e(521)])}),addEventListener(t(423),function(t,e){let n=0;return(...o)=>{const i=Date[F(428)]();i-n>=e&&(n=i,t(...o))}}(e=>{const n=t;if(_())return;const o=e.target instanceof Element?e.target[n(380)](I):null;o instanceof HTMLElement&&(c=z(o))},50),{capture:!0,passive:!0}),addEventListener(t(465),async e=>{const n=t;if(_())return;const o=e[n(562)]instanceof Element?e.target[n(380)](I):null;if(!(o instanceof HTMLElement))return;const i=function(t){const e=r;return t[e(494)](e(414))??t[e(500)]??t[e(441)]?.[e(531)]()??"<no visible label>"}(o),a=c?await c:void 0;c=void 0,await G("click",{tag:o.tagName,label:i},o,a)},!0),addEventListener(t(446),e=>{const n=t;if(!_()&&e[n(393)]===n(486)){const t=e[n(562)];if(t instanceof HTMLElement&&(t.tagName===n(437)||t.tagName===n(468))){const e=t instanceof HTMLInputElement?t[n(510)]:void 0,o=t.id||void 0;G("input-submit",{tag:t[n(497)],name:e??o},t)}}},{capture:!0}),[t(542),t(528)][t(518)](t=>{window.addEventListener(t,K)}),document[t(526)](t(377),K),window[t(526)]("scroll",function(t,e){let n;return(...o)=>{const i=F;void 0!==n&&window.clearTimeout(n),n=window[i(535)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;_()||G(e(388),{scrollX:window[e(517)],scrollY:window[e(488)]},document[e(521)])},250),{passive:!0}),window.intent??={send(t,e){W()&&G(t,e,document.body)}})}function tt(t,e){const n=nt;try{if(void 0===e)return;localStorage.setItem(t,e?"intent:consent"===t?"granted":n(396):n(399))}catch{}}function et(t={}){const e=nt;if(localStorage[e(385)](e(375),t[e(389)]??""),localStorage[e(385)]("intent:data-ip",t.ip??""),localStorage.setItem(e(394),t[e(384)]??e(398)),typeof t[e(395)]===e(380)&&localStorage[e(385)](e(392),String(t[e(395)])),tt(e(390),t[e(383)]),tt(e(388),t.geo),t[e(383)]){if(!U(e(372))){B("undefined"!=typeof crypto&&"function"==typeof crypto[e(400)]?crypto[e(400)]():Date[e(382)]()+"-"+Math[e(387)](),t.sidMaxAgeSeconds)}}$()}function nt(t,e){const n=ot();return(nt=function(t,e){return n[t-=372]})(t,e)}function ot(){const t=["disabled","randomUUID","intent_sid","6686748tUtBRX","9504754rfsArv","intent:data-client-id","3649404lXViuN","32945gLiLQp","8ujFUjx","72SGyxry","number","isFinite","now","consent","baseUrl","setItem","6780880LSaHCd","random","intent:geo","clientId","intent:consent","42uaZeoG","intent:data-sid-max-age","250398ZVGNWR","intent:data-base-url","sidMaxAgeSeconds","enabled","1732388YMPxoI","https://intent.callimacus.ai"];return(ot=function(){return t})()}function it(){return U(nt(372))}function at(){C()}function rt(){O()}function ct(t){const e=nt;Number[e(381)](t)&&localStorage.setItem(e(392),String(t));const n=U(e(372));n&&B(n,t)}!function(){const t=nt,e=ot();for(;;)try{if(916919===-parseInt(t(397))/1+parseInt(t(391))/2*(parseInt(t(393))/3)+parseInt(t(376))/4+parseInt(t(377))/5*(-parseInt(t(379))/6)+-parseInt(t(374))/7*(parseInt(t(378))/8)+parseInt(t(373))/9+parseInt(t(386))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{rt as clearIntentSessionId,at as ensureIntentSessionId,it as getIntentSessionId,et as initIntent,tt as setFlag,ct as setIntentSessionMaxAge};
|