@solomei-ai/intent 1.0.1 → 1.1.2
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 +2 -1
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(){const t=[", maxTouchPoints ","-bit)","brands","gamma","matches","beta","cors","length","isArray","doNotTrack","cookieEnabled","ReadableStream","innerWidth","fetch","entryType","(display-mode: standalone)","getBattery","brand","(pointer: fine)","enabled","toFixed","(pointer: coarse)","User agent: ","hardwareConcurrency","Language: ","random","getReader","1462134SDogMG"," Mbps","max","navigation","onLine","type","read","availHeight","Device geolocation: enabled","function"," ms","44hsYXBt","Referrer: ","flat","abs","resolvedOptions"," (active test)","maxTouchPoints",", orientation ","Viewport: ","isSecureContext","now","referrer","n/a","addEventListener"," | ","intent:geo","rtt","45IVclXD","373712QzHnQh","all","Platform: ","Tilt: ","Network: ","userAgent","byteLength","connection","SW-controlled","setTimeout","DeviceOrientationEvent","unknown","orientation","slice","language","saveData","from","upright","number","userAgentData","Languages: ","filter"," (β ","Timezone: ","getTimezoneOffset","isFinite"," (mobile)","yes","toString","no SW","Battery: ","colorDepth","height","°, γ ","body","charging","getItem","serviceWorker","TTFB ~","availWidth","coarse","PWA: ","25776yojqum","languages","innerHeight","CookiesEnabled: ","reclined","push","join","includes","Local time: "," cores","39108146pMRROC","42990nTkYSJ","platform","2527ZTFemF","4488290UcEOSg","Screen: ","level","deviceorientation","find","round","version","/speedtest.bin","2NCPRUc","undefined","downlink","1915875RwMQrG","cb=","mobile","floor","hint: ","; DNT: "];return(e=function(){return t})()}async function n(){const t=i,e=[];if("connection"in(n=navigator)&&void 0!==n[i(292)]){const n=navigator[t(292)];n?.effectiveType&&e[t(332)](n.effectiveType),typeof n?.[t(351)]===t(303)&&e.push(n[t(351)]+t(386)),typeof n?.[t(283)]===t(303)&&e[t(332)](n[t(283)]+t(395)),n?.saveData&&e[t(332)](t(300))}var n;const o=await async function(t,e=3e3,n=8,o=150){const a=i;if(!(a(371)in window)||!(a(369)in window))return;const r=performance.now();let c,s=0;await Promise[a(286)](Array[a(301)]({length:n},async()=>{const n=a;for(;performance[n(277)]()-r<e+o;){const a=new AbortController,i=(t[n(334)]("?")?"&":"?")+n(353)+Math[n(383)]().toString(36)[n(298)](2);try{const d=await fetch(t+i,{cache:"no-store",signal:a.signal,mode:n(364)}),l=d[n(319)]?.[n(384)]();if(!l)break;for(;;){const t=performance.now();if(t-r>=e+o){a.abort();break}const{done:i,value:d}=await l[n(391)]();if(i)break;c??=t,t-(c??t)>=o&&(s+=d[n(291)])}}catch{}}}));const d=(c??r)+o,l=Math[a(387)](1,performance[a(277)]()-d),u=8*s/(l/1e3)/1e6;return Number[a(310)](u)&&u>0?u:void 0}(t(348),3e3,8,150),a=performance.getEntriesByType(t(388))[t(345)](e=>e[t(372)]===t(388));let r;if(a){const e=Math[t(387)](0,a.responseStart-a.requestStart);r=t(323)+Math.round(e)+" ms"}const c=[];if(typeof o===t(303)&&c.push("~"+o[t(378)](1)+t(386)),r&&c[t(332)](r),e[t(365)]&&c[t(332)](t(356)+e.join(", ")),c[t(365)])return t(289)+c[t(333)](", ")+t(401)}function o(){const t=i;if(!function(t){const e=i;return e(304)in t&&void 0!==t[e(304)]}(navigator))return;const e=navigator[t(304)],n=Array[t(366)](e[t(360)])?e[t(360)].map(e=>e[t(375)]+" "+e[t(347)])[t(333)](", "):void 0,o=e.platform?""+e[t(339)]+(e[t(354)]?t(311):""):void 0;return[n&&"UA brands: "+n,o&&t(287)+o][t(306)](Boolean)[t(333)](" | ")||void 0}async function a(t=400){const e=i;if(e(295)in window&&window[e(276)])return new Promise(n=>{const o=e;let a=!1;const r=t=>{const e=i,o="number"==typeof t.beta?t[e(363)]:void 0,c=typeof t[e(361)]===e(303)?t[e(361)]:void 0;if(void 0===o||void 0===c)return;if(a)return;a=!0,window.removeEventListener("deviceorientation",r);const s=function(t,e){const n=i,o=Math[n(399)](t),a=Math[n(399)](e);return n(o<15&&a<15?398:o>=60?302:331)}(o,c);n(e(288)+s+e(307)+Math[e(346)](o)+e(318)+Math[e(346)](c)+"°)")};window[o(294)](()=>{const t=o;a||(a=!0,window.removeEventListener(t(344),r),n(void 0))},t),window[o(280)]("deviceorientation",r,{passive:!0})})}function i(t,n){const o=e();return(i=function(t,e){return o[t-=275]})(t,n)}async function r(){const t=i;var e;if(e=navigator,i(374)in e&&"function"==typeof e.getBattery)try{const e=await navigator[t(374)](),n=Math[t(346)](100*e[t(343)]),o=[(Number[t(310)](n)?n:0)+"%",e[t(320)]?t(320):"not charging"];return t(315)+o.join(", ")}catch{return}}async function c(){const t=i,e=(new Intl.DateTimeFormat)[t(400)]().timeZone,c=function(t){const e=i,n=t<=0?"+":"-",o=Math[e(399)](t);return""+n+String(Math[e(355)](o/60)).padStart(2,"0")+":"+String(o%60).padStart(2,"0")}((new Date)[t(309)]()),s=[];s[t(332)](t(382)+navigator[t(299)]),navigator.languages?.[t(365)]&&s[t(332)](t(305)+navigator[t(328)][t(333)](", ")),s[t(332)](t(380)+navigator[t(290)]);const d=o();d&&s.push(d),s[t(332)](t(308)+e+" (UTC"+c+")"),s[t(332)](t(335)+(new Date)[t(313)]());const l=window.devicePixelRatio||1;s[t(332)](t(342)+screen.width+"x"+screen[t(317)]+" @"+l+"x (avail "+screen[t(324)]+"x"+screen[t(392)]+", "+screen[t(316)]+t(359));const u=screen[t(297)]&&t(390)in screen[t(297)]?screen.orientation[t(390)]:void 0;s[t(332)](t(275)+window[t(370)]+"x"+window[t(329)]+(u?t(403)+u:"")),s.push("CPU: "+navigator[t(381)]+t(336));const f=await n();f&&s[t(332)](f),s[t(332)](function(){const t=i,e=typeof matchMedia===t(394)&&matchMedia(t(379)).matches,n=typeof matchMedia===t(394)&&matchMedia(t(376))[t(362)],o=e?t(325):n?"fine":t(296),a="number"==typeof navigator[t(402)]?navigator.maxTouchPoints:0;return"Pointer/Touch: "+o+t(358)+a}());const m=await r();m&&s[t(332)](m),s.push(t(330)+(navigator[t(368)]?"yes":"no")+t(357)+(navigator[t(367)]??t(279))),s[t(332)]("Online: "+(navigator[t(389)]?"yes":"no")),document[t(278)]&&s[t(332)](t(397)+document[t(278)]),s[t(332)](function(){const t=i,e=typeof matchMedia===t(394)&&matchMedia(t(373))[t(362)],n=Boolean(navigator[t(322)]?.controller);return t(326)+t(n?293:314)+", display-mode standalone: "+(e?t(312):"no")}());const p=await a();p&&s.push(p);const h=typeof localStorage!==t(350)&&localStorage[t(321)](t(282))===t(377);return s[t(332)](h?t(393):"Device geolocation: disabled"),s.join(t(281))}!function(){const t=i,n=e();for(;;)try{if(871084===parseInt(t(385))/1*(-parseInt(t(349))/2)+parseInt(t(352))/3+-parseInt(t(396))/4*(parseInt(t(338))/5)+-parseInt(t(327))/6*(parseInt(t(340))/7)+parseInt(t(285))/8*(parseInt(t(284))/9)+-parseInt(t(341))/10+parseInt(t(337))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const s=q;!function(){const t=q,e=H();for(;;)try{if(838147===parseInt(t(228))/1*(parseInt(t(189))/2)+parseInt(t(230))/3+parseInt(t(253))/4*(parseInt(t(204))/5)+parseInt(t(376))/6+parseInt(t(302))/7+parseInt(t(316))/8*(-parseInt(t(356))/9)+-parseInt(t(205))/10*(parseInt(t(187))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let d,l="",u=0;const f=s(374),m=s(257);let p=!1,h=!1,g=!1,w=!1,y=!1,v=!1;const b="intent:data-client-id",S=s(306),I="intent:data-base-url",M="https://intent.callimacus.ai",x=s(229),E=["button",s(202),"a",s(278),s(220),'[role="button"]',s(277),s(152)].join(","),T="data-intent-redact",L=s(159),A=new Set([s(313),"given-name",s(219),"family-name","nickname",s(188),"email","tel",s(180),s(340),s(346),"address-line1",s(182),s(246),s(307),s(296),"address-level3",s(373),"country",s(331),s(200),"cc-name",s(172),"cc-additional-name","cc-family-name",s(214),s(256),s(379),s(361),s(299),s(319),s(186),"bday-day",s(198),s(287),s(226),s(227)]);function k(t){return"<"+C(t)+">"}function C(t){const e=s,n=(t[e(184)]?.(L)??"")[e(168)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(276)]||"").toLowerCase()[e(168)]()[e(232)](/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&t[e(177)]===e(324)?e(158):o[e(225)](t=>t[e(337)](e(308)))?e(292):o[e(225)](t=>[e(313),e(365),e(328),e(219),"cc-name","cc-given-name","cc-family-name"].includes(t))?e(286):o[e(233)](e(315))?"Email":o[e(233)](e(290))?e(283):o.some(t=>t[e(337)](e(186)))?e(284):o[e(233)](e(226))?e(243):o[e(225)](t=>[e(346),e(176),"address-line2",e(246),e(307),e(296),e(342),"address-level4",e(200),e(281),e(331)][e(233)](t))?e(165):o[e(233)](e(180))||o.includes(e(340))?e(244):"mask"===t[e(184)]?.(T)?.[e(314)]()?"Redacted":"Sensitive"}function H(){const t=["Password","data-intent-redact-label","strokeStyle","TIMEOUT","value","setTimeout","createElement","Address","string","from","trim","label","protocol","; Secure","cc-given-name","passive","aria-label","#e5e7eb","address-line1","type","input-submit","cookie","organization","Unexpected FileReader result type","address-line2","visibilityState","getAttribute","key","bday","196229GQYmIH","username","690SxeLBp","width","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","fillRect","focus","/events","now","code","disabled","bday-month","#9ca3af","postal-code","ignore","a[href]","INPUT","7885oSWVEa","340YeSttE","<no visible label>","outerHTML","error","getItem","querySelectorAll","randomUUID","indexOf","POST","cc-number","onLine","isFinite","isSecureContext","entries","additional-name",'input[type="button"]',"click","location","FileReader error","result","some","sex","webauthn","159ZiEnep","intent:data-sid-max-age","4136253FyrEqW","altitude","split","includes","context","min","href","save","scrollX","has","coords","toDataURL","https:","Sex","Organization","props","address-line3","random","intent","function","fillStyle","innerWidth","input, textarea","2796EsIdAM","localhost","round","cc-exp","intent:geo","middle","capturePhase",'=""]',"lat","visibilitychange","data-html2canvas-ignore","Max-Age=","push","getCurrentPosition","bbox","removeEventListener","lon","load","intent_sid=","Secure","image/jpeg","height","setAttribute","autocomplete",'[role="link"]','input[type="submit"]',"application/json","number","country","innerHeight","Phone","Birthday","attributes","Name","bday-year","top","POSITION_UNAVAILABLE","tel","fillText","Credit card","textContent","font","mask","address-level2","altitudeAccuracy","target","cc-csc","keydown","secure","670369YKSwbV","permissions","hasFocus","body","intent:data-ip","address-level1","cc-","getContext","tagName","img","host","name","toLowerCase","email","88888JXHBFB","drawImage","searchbox","cc-type","getBoundingClientRect","pointerdown","canvas","SameSite=Lax","password","forEach","onload","slice","family-name","center","textAlign","country-name","omit","selector","globalAlpha","enabled","page-focus","startsWith","geolocation","stringify","organization-title","page-blur","address-level3","pageview","length","onerror","street-address","intent_sid","closest","scroll","geoEnabled","search","hidden","hostname","blur","title","1017TxNxfc","TEXTAREA","Redacted","canSend","speed","cc-exp-year","Sensitive","left","query","given-name","device","heading","/p.gif","readAsDataURL","cloneNode","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","scrollY","address-level4","intent:consent","longitude","411120WRkqCI","max","timestamp","cc-exp-month","storage","html","[onclick]","lineWidth","addEventListener","message","join","no-store"];return(H=function(){return t})()}function R(t){const e=s;return t.hasAttribute(e(263))||t.getAttribute(T)?.[e(314)]()===e(201)}function D(t){const e=s,n=t[e(184)](T);return""===n||n?.[e(314)]()===e(295)}function N(t){const e=s;if(t instanceof HTMLInputElement){if(t[e(177)]===e(324))return!0;if(t[e(177)]===e(351))return!1;const n=t[e(184)]("role");if(n&&n[e(314)]()===e(318))return!1;if((t[e(276)]||"")[e(314)]()[e(168)]().split(/\s+/).filter(Boolean)[e(225)](t=>A.has(t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(276)]||"").toLowerCase()[e(168)]()[e(232)](/\s+/).filter(Boolean)[e(225)](t=>A[e(239)](t)))return!0}return!1}function U(t){return!!D(t)||!!N(t)}function P(){const t=s,e=[],n=t=>{const e=q,n=t[e(320)]();if(n.width<=0||n[e(274)]<=0)return;const o=Math[e(377)](0,n[e(363)]),a=Math[e(377)](0,n[e(288)]),i=Math[e(377)](0,Math[e(235)](n.right,window[e(251)])-o),r=Math[e(377)](0,Math.min(n.bottom,window[e(282)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(210)]("["+T+'="mask"], ['+T+t(260))[t(325)](o=>{const a=t,i=n(o);if(!i)return;const r=C(o)||a(358);e[a(265)]({...i,label:r})});return document[t(210)](t(252))[t(325)](t=>{if(!D(o=t)&&!N(o))return;var o;if(R(t))return;const a=n(t);if(!a)return;const i=C(t);e.push({...a,label:i})}),e}const B=()=>"granted"===localStorage[s(209)](f);function O(t){const e=s,n=encodeURIComponent(t)+"=",o=document.cookie[e(232)]("; ");for(const t of o)if(t.startsWith(n))return decodeURIComponent(t.slice(n[e(344)]))}function F(t,e){const n=s,o=localStorage[n(209)](x),a=null==o?void 0:Number(o),i=Number[n(216)](e)?Number(e):typeof a===n(280)&&Number[n(216)](a)?a:86400,r=window[n(222)][n(170)]===n(242),c=[n(271)+encodeURIComponent(t),n(264)+i,"Path=/",n(323)];r&&c[n(265)](n(272)),document[n(179)]=c[n(156)]("; ")}function W(){const t=s,e=window.location.protocol===t(242);document[t(179)]=t(191)+(e?t(171):"")}function Y(){const t=s,e=O(t(347));if(!B())return e&&W(),void(l="");if(e)return void(l=e);const n="undefined"!=typeof crypto&&typeof crypto[t(211)]===t(249)?crypto[t(211)]():Date[t(195)]()+"-"+Math[t(247)]();l=n,F(l)}function j(){return Y(),B()&&Boolean(l)&&(()=>{const t=s,e=localStorage.getItem(b);return"string"==typeof e&&e[t(168)]()[t(344)]>0})()}function q(t,e){const n=H();return(q=function(t,e){return n[t-=152]})(t,e)}function z(){return!j()||g}async function G(e){const n=s,o=function(t){const e=s,n=t[e(370)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(167)](t[e(285)])[e(325)](({name:t,value:o})=>{n[e(275)](t,o)}),n[e(162)]=U(t)?k(t):t.value,t.disabled&&n[e(275)](e(197),""),n[e(207)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(167)](t[e(285)])[e(325)](({name:t,value:e})=>{n.setAttribute(t,e)}),n.value=U(t)?k(t):t[e(162)],t[e(197)]&&n[e(275)](e(197),""),n[e(207)]):t[e(207)]}(e),a=e[n(320)](),i={useCORS:!0,...{x:window[n(238)],y:window[n(372)],width:window.innerWidth,height:window[n(282)],scale:1},ignoreElements:t=>t instanceof Element&&R(t)},r=await t(document[n(305)],i),c=r[n(190)],d=r[n(274)],l=Math[n(377)](c,d),u=.8*Math[n(377)](window[n(251)],window[n(282)]),f=Math[n(235)](1,u/l),m=12/(a[n(274)]||1),p=Math.min(1,Math[n(377)](f,m)),h=Math[n(255)](c*p),g=Math.round(d*p),w=document[n(164)](n(322));w[n(190)]=h,w[n(274)]=g;const y=w[n(309)]("2d");y[n(317)](r,0,0,c,d,0,0,h,g);const v=P();if(v.length){y[n(237)](),y[n(334)]=1;for(const t of v){const e=Math[n(255)](t.x*p),o=Math[n(255)](t.y*p),a=Math.round(t.w*p),i=Math[n(255)](t.h*p);y.fillStyle=n(175),y[n(192)](e,o,a,i),y[n(160)]=n(199),y[n(153)]=Math.max(1,Math.floor(.02*Math.min(a,i))),y.strokeRect(e,o,a,i);const r=Math[n(377)](10,Math[n(235)](22,Math.floor(.35*i)));y[n(294)]=r+n(371),y[n(250)]="#374151",y[n(330)]=n(329),y.textBaseline=n(258);const c="<"+(t.label?.[n(168)]()[n(344)]?t[n(169)]:n(362))+">";y[n(291)](c,e+a/2,o+i/2,a-6)}y.restore()}const b=w[n(241)](n(273),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(190)],h:a[n(274)]},img:b}}function V(){const t=s,e=localStorage[t(209)](b),n={"Content-Type":t(279)};return e&&(n["x-sl-access-token"]=e),l&&(n["x-intent-sid"]=l),n}async function X(t,e){const n=s,o=(localStorage[n(209)](I)??M)+n(194),a=JSON.stringify(t);try{if((await fetch(o,{method:n(213),headers:V(),body:a,keepalive:e,credentials:n(332)})).ok)return}catch{}try{await async function(t,e=!1){const n=s,o=(localStorage[n(209)](I)??M)+n(368);if(!(await fetch(o,{method:n(213),headers:V(),body:JSON[n(339)](t),keepalive:e,credentials:n(332),cache:n(157)})).ok)throw new Error("pixel body fallback failed")}(t,e)}catch{}}async function _(t,e,n,o){const a=s;if(!j())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(162)]=U(n)?k(n):n.value);let r="",c={x:0,y:0,w:0,h:0},d="";const l=!(t===a(349)||"page-blur"===t||t===a(336)),f=Date[a(195)](),m=f-u>=5e3;let p=o;const h=t===a(221)||t===a(178)||"pageview"===t;l&&!p&&(h||m)&&(p=await G(n),u=f),p&&(r=p[a(381)],c=p[a(267)],d=p[a(311)]);const g={ts:Date[a(195)](),event:t,props:i,html:t===a(341)||t===a(336)?"":r,bbox:c,img:d},w=document[a(183)]===a(352)||t===a(341);await X(g,w)}function Z(){const t=s;return localStorage[t(209)](m)===t(335)}async function J(t={}){const e=s;if(!j())return;const n="number"==typeof t[e(261)]&&typeof t[e(269)]===e(280);if(n&&h)return;if(!n&&p)return;const o=localStorage.getItem(S),a={context:await c()};o&&(a.ip=o);for(const[n,o]of Object[e(218)](t))a[n]=o;await _(e(234),a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?h=!0:p=!0}async function Q(){const t=s,e={canSend:j(),geoEnabled:Z(),deviceGeoSent:h};if(!e[t(359)]||!e[t(350)]||e.deviceGeoSent)return;const n={secure:window[t(217)],proto:location.protocol,host:location[t(353)]};if(n[t(301)]||(t(312),t(254)),!(t(338)in navigator))return;if(y)return;y=!0,g=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(195)]();try{await(navigator[t(303)]?.[t(364)]({name:t(338)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=q;a||(a=!0,Number[i(216)](t)&&Number[i(216)](n)&&await J({lat:t,lon:n,source:i(366)}),y=!1,g=!1,v=!0,e())};navigator[n(338)][n(266)](t=>{const e=q,n=t[e(240)];i(n.latitude,n[e(375)],(n.accuracy,typeof n[e(231)]===e(280)&&n[e(231)],"number"==typeof n[e(297)]&&n[e(297)],typeof n[e(367)]===e(280)&&n[e(367)],typeof n[e(360)]===e(280)&&n[e(360)],t[e(378)],document[e(183)],document[e(304)]()))},t=>{const e=q,n=t?.[e(196)];1===n||(2===n?e(289):3!==n||e(161)),t?.[e(155)],navigator[e(215)],document[e(304)](),window[e(217)],location[e(170)],location[e(353)],i(void 0,void 0)},o)})}function K(){const t=s;if(w||!Z()||h)return;w=!0;const e=()=>{const t=q;window[t(268)]("pointerdown",e,!0),window[t(268)]("keydown",e,!0),Q()};window.addEventListener(t(321),e,!0),window.addEventListener(t(300),e,!0)}Y(),window[s(154)](s(270),()=>{const t=s;j()&&(J(),(window[t(217)]||location[t(353)]===t(254))&&(Z()&&K(),window.addEventListener(t(193),()=>{!h&&Z()&&!y&&v&&Q()}),document[t(154)]("visibilitychange",()=>{!document[t(352)]&&!h&&Z()&&!y&&v&&Q()})))}),window[s(154)](s(380),t=>{const e=s;t[e(185)]===f&&("granted"===localStorage.getItem(f)?(p=!1,J(),Z()&&K()):(p=!1,h=!1)),t[e(185)]===m&&(Z()?K():h=!1)}),window[s(154)](s(270),()=>{const t=s;j()&&_(t(343),{url:window[t(222)][t(236)],title:document.title,ref:document.referrer},document[t(305)])}),addEventListener(s(321),function(t,e){let n=0;return(...o)=>{const a=Date[q(195)]();a-n>=e&&(n=a,t(...o))}}(t=>{const e=s;if(z())return;const n=t[e(298)]instanceof Element?t[e(298)][e(348)](E):null;n instanceof HTMLElement&&(d=G(n))},50),{capture:!0,passive:!0}),addEventListener(s(221),async t=>{const e=s;if(z())return;const n=t[e(298)]instanceof Element?t[e(298)][e(348)](E):null;if(!(n instanceof HTMLElement))return;const o=function(t){const e=s;return t[e(184)](e(174))??t[e(355)]??t[e(293)]?.[e(168)]()??e(206)}(n),a=d?await d:void 0;d=void 0,await _("click",{tag:n.tagName,label:o},n,a)},!0),addEventListener(s(300),t=>{const e=s;if(!z()&&"Enter"===t.key){const n=t[e(298)];if(n instanceof HTMLElement&&(n.tagName===e(203)||n[e(310)]===e(357))){const t=n instanceof HTMLInputElement?n[e(313)]:void 0,o=n.id||void 0;_("input-submit",{tag:n[e(310)],name:t??o},n)}}},{capture:!0});let $=!document[s(352)]&&document[s(304)](),tt=document[s(304)]();const et=()=>{const t=s;if(z())return;const e=!document[t(352)]&&document[t(304)]();e&&(tt=!0),tt||e?e!==$&&($=e,_(e?"page-focus":t(341),{},document[t(305)])):$=e};function nt(t,e){const n=ot();return(nt=function(t,e){return n[t-=306]})(t,e)}function ot(){const t=["146oERuYX","setItem","https://intent.callimacus.ai","intent_sid","data-customer-id","6uUFrws","geo","intent:data-sid-max-age","18148xHYctE","getAttribute","intent:data-client-id","randomUUID","random","function","1877515cafuuR","2746944YsRcOl","undefined","3364zHAVaC","intent:data-base-url","intent:geo","disabled","sidMaxAgeSeconds","baseUrl","intent:data-ip","intent:consent","652872rZZYNw","number","13062GpPUCG","2184UqqCnI","138dNAEqV","enabled","consent","isFinite","granted","2366950kCSlMD","clientId"];return(ot=function(){return t})()}function at(t,e){const n=nt;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(319)?n(328):n(325):n(315))}catch{}}function it(t={}){const e=nt;if(localStorage[e(332)](e(341),t[e(330)]??""),localStorage[e(332)](e(318),t.ip??""),localStorage[e(332)](e(313),t[e(317)]??e(333)),typeof t[e(316)]===e(321)&&localStorage.setItem(e(338),String(t[e(316)])),at(e(319),t[e(326)]),at(e(314),t[e(337)]),t[e(326)]){if(!O(e(334))){F(typeof crypto!==e(311)&&typeof crypto[e(306)]===e(308)?crypto[e(306)]():Date.now()+"-"+Math[e(307)](),t.sidMaxAgeSeconds)}}}function rt(){return O("intent_sid")}function ct(){Y()}function st(){W()}function dt(t){const e=nt;Number[e(327)](t)&&localStorage.setItem(e(338),String(t));const n=O(e(334));n&&F(n,t)}[s(193),s(354)].forEach(t=>{window[s(154)](t,et)}),document[s(154)](s(262),et),window[s(154)](s(349),function(t,e){let n;return(...o)=>{const a=q;void 0!==n&&window.clearTimeout(n),n=window[a(163)](()=>{n=void 0,t(...o)},e)}}(()=>{const t=s;z()||_(t(349),{scrollX:window[t(238)],scrollY:window[t(372)]},document.body)},250),{passive:!0}),window[s(248)]??={send(t,e){const n=s;j()&&_(t,e,document[n(305)])},define(t,e){const n=s,o=e[n(177)],a=e[n(333)],i=e[n(173)]??!0,r=Boolean(e[n(259)]),c=e[n(245)];addEventListener(o,async o=>{const i=n;if(z())return;let r=document[i(305)];if("string"==typeof a&&a.length){const t=o[i(298)]instanceof Element?o.target[i(348)](a):void 0;t instanceof HTMLElement&&(r=t)}const s=typeof c===i(249)?c(o,r):c??{};let d;e.screenshot&&(d=await G(r),u=Date[i(195)]()),await _(t,s,r,d)},{capture:r,passive:i})}},function(){const t=nt,e=ot();for(;;)try{if(302774===-parseInt(t(331))/1*(parseInt(t(312))/2)+-parseInt(t(324))/3*(parseInt(t(339))/4)+parseInt(t(309))/5*(parseInt(t(336))/6)+parseInt(t(322))/7*(parseInt(t(323))/8)+-parseInt(t(310))/9+parseInt(t(329))/10+-parseInt(t(320))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=nt;try{const e=document.currentScript;if(!e)return;const n=e.getAttribute(t(335))||void 0,o=e[t(340)]("data-ip")||void 0;(n||o)&&it({clientId:n,ip:o})}catch{}}();export{st as clearIntentSessionId,ct as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,dt as setIntentSessionMaxAge};
|
|
4
|
+
import t from"html2canvas-pro";function e(){const t=[" (UTC","upright","height","6ndIMvO","timeZone","innerWidth","maxTouchPoints","enabled","random","267260uhLDcc","Battery: ","padStart","level","requestStart","SW-controlled","getEntriesByType"," | ","colorDepth","380tCYZPL","44168135vfFLJE","PWA: ","availWidth","cookieEnabled","version","includes","addEventListener","Local time: ","Tilt: ",", orientation ","/speedtest.bin","map","21BwmCiV","Screen: ",", display-mode standalone: ","fetch","onLine","mobile","reclined","width","downlink","charging","availHeight"," Mbps","DateTimeFormat","round","deviceorientation","not charging","2068678LruPtM","isSecureContext"," ms","hardwareConcurrency","TTFB ~","isArray","Referrer: ","read"," (mobile)","coarse","177102qfFnty","join","12kLiVGD","1283395VtJYZG","; DNT: ","yes","Online: ","toFixed","connection","cors","2571256UimnmN","push","9IuoEVu","Pointer/Touch: ","no-store","type","616498rRkFqS","x (avail ","rtt","number","flat","n/a","platform","referrer"," (active test)","Device geolocation: enabled","Device geolocation: disabled","slice","orientation","devicePixelRatio","language","abort","CPU: ","saveData","innerHeight","Network: ","Viewport: ","CookiesEnabled: ","getBattery","languages","function","signal","byteLength","resolvedOptions","Timezone: ","body","toString","cb=","navigation","now","responseStart","intent:geo","effectiveType","entryType","removeEventListener","abs","no SW","Platform: ","all","isFinite","(pointer: fine)","Language: ","beta","max","gamma","User agent: ","find","doNotTrack"," cores","length","userAgent"];return(e=function(){return t})()}function n(t,o){const a=e();return(n=function(t,e){return a[t-=280]})(t,o)}async function o(){const t=n,e=[];if(function(t){const e=n;return e(324)in t&&void 0!==t[e(324)]}(navigator)){const n=navigator[t(324)];n?.[t(368)]&&e[t(327)](n.effectiveType),typeof n?.[t(298)]===t(335)&&e[t(327)](n[t(298)]+t(301)),typeof n?.rtt===t(335)&&e[t(327)](n[t(334)]+t(308)),n?.saveData&&e[t(327)](t(349))}const o=await async function(t,e=3e3,o=8,a=150){const i=n;if(!(i(293)in window)||!("ReadableStream"in window))return;const r=performance[i(365)]();let c,s=0;await Promise[i(374)](Array.from({length:o},async()=>{const n=i;for(;performance[n(365)]()-r<e+a;){const o=new AbortController,i=(t[n(283)]("?")?"&":"?")+n(363)+Math[n(395)]().toString(36)[n(343)](2);try{const d=await fetch(t+i,{cache:n(330),signal:o[n(357)],mode:n(325)}),u=d[n(361)]?.getReader();if(!u)break;for(;;){const t=performance[n(365)]();if(t-r>=e+a){o[n(347)]();break}const{done:i,value:d}=await u[n(313)]();if(i)break;c??=t,t-(c??t)>=a&&(s+=d[n(358)])}}catch{}}}));const d=(c??r)+a,u=Math[i(379)](1,performance[i(365)]()-d),l=8*s/(u/1e3)/1e6;return Number[i(375)](l)&&l>0?l:void 0}(t(288),3e3,8,150),a=performance[t(402)](t(364))[t(382)](e=>e[t(369)]===t(364));let i;if(a){const e=Math.max(0,a[t(366)]-a[t(400)]);i=t(310)+Math[t(303)](e)+" ms"}const r=[];if(typeof o===t(335)&&r[t(327)]("~"+o[t(323)](1)+t(301)),i&&r.push(i),e.length&&r[t(327)]("hint: "+e[t(317)](", ")),r[t(385)])return t(351)+r[t(317)](", ")+t(340)}async function a(t=400){const e=n;if("DeviceOrientationEvent"in window&&window[e(307)])return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a=typeof t[e(378)]===e(335)?t.beta:void 0,c=typeof t[e(380)]===e(335)?t[e(380)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(370)](e(304),r);const s=function(t,e){const o=n,a=Math[o(371)](t),i=Math[o(371)](e);return o(a<15&&i<15?336:a>=60?388:296)}(a,c);o(e(286)+s+" (β "+Math[e(303)](a)+"°, γ "+Math.round(c)+"°)")};window.setTimeout(()=>{i||(i=!0,window[n(370)]("deviceorientation",r),o(void 0))},t),window[a(284)](a(304),r,{passive:!0})})}async function i(){const t=n;if(function(t){const e=n;return e(354)in t&&typeof t.getBattery===e(356)}(navigator))try{const e=await navigator.getBattery(),n=Math.round(100*e[t(399)]),o=[(Number[t(375)](n)?n:0)+"%",e.charging?t(299):t(305)];return t(397)+o[t(317)](", ")}catch{return}}async function r(){const t=n,e=(new(Intl[t(302)]))[t(359)]()[t(391)],r=function(t){const e=n,o=t<=0?"+":"-",a=Math.abs(t);return""+o+String(Math.floor(a/60))[e(398)](2,"0")+":"+String(a%60)[e(398)](2,"0")}((new Date).getTimezoneOffset()),c=[];c[t(327)](t(377)+navigator[t(346)]),navigator[t(355)]?.[t(385)]&&c[t(327)]("Languages: "+navigator[t(355)][t(317)](", ")),c[t(327)](t(381)+navigator[t(386)]);const s=function(){const t=n;if(!("userAgentData"in(e=navigator))||void 0===e.userAgentData)return;var e;const o=navigator.userAgentData,a=Array[t(311)](o.brands)?o.brands[t(289)](e=>e.brand+" "+e[t(282)])[t(317)](", "):void 0,i=o[t(338)]?""+o[t(338)]+(o[t(295)]?t(314):""):void 0;return[a&&"UA brands: "+a,i&&t(373)+i].filter(Boolean)[t(317)](t(403))||void 0}();s&&c[t(327)](s),c[t(327)](t(360)+e+t(387)+r+")"),c[t(327)](t(285)+(new Date)[t(362)]());const d=window[t(345)]||1;c[t(327)](t(291)+screen[t(297)]+"x"+screen[t(389)]+" @"+d+t(333)+screen[t(280)]+"x"+screen[t(300)]+", "+screen[t(404)]+"-bit)");const u=screen[t(344)]&&t(331)in screen.orientation?screen[t(344)][t(331)]:void 0;c[t(327)](t(352)+window[t(392)]+"x"+window[t(350)]+(u?t(287)+u:"")),c[t(327)](t(348)+navigator[t(309)]+t(384));const l=await o();l&&c[t(327)](l),c[t(327)](function(){const t=n,e="function"==typeof matchMedia&&matchMedia("(pointer: coarse)").matches,o=typeof matchMedia===t(356)&&matchMedia(t(376)).matches,a=e?t(315):o?"fine":"unknown",i=typeof navigator[t(393)]===t(335)?navigator.maxTouchPoints:0;return t(329)+a+", maxTouchPoints "+i}());const f=await i();f&&c[t(327)](f),c.push(t(353)+(navigator[t(281)]?"yes":"no")+t(320)+(navigator[t(383)]??t(337))),c[t(327)](t(322)+(navigator[t(294)]?t(321):"no")),document[t(339)]&&c[t(327)](t(312)+document.referrer),c[t(327)](function(){const t=n,e="function"==typeof matchMedia&&matchMedia("(display-mode: standalone)").matches,o=Boolean(navigator.serviceWorker?.controller);return t(407)+t(o?401:372)+t(292)+(e?"yes":"no")}());const m=await a();m&&c[t(327)](m);const p="undefined"!=typeof localStorage&&localStorage.getItem(t(367))===t(394);return c.push(t(p?341:342)),c[t(317)](t(403))}!function(){const t=n,o=e();for(;;)try{if(596229===-parseInt(t(332))/1+-parseInt(t(306))/2+-parseInt(t(328))/3*(-parseInt(t(396))/4)+parseInt(t(319))/5*(-parseInt(t(390))/6)+-parseInt(t(290))/7*(parseInt(t(326))/8)+parseInt(t(316))/9*(-parseInt(t(405))/10)+-parseInt(t(406))/11*(-parseInt(t(318))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();const c=D;!function(){const t=D,e=J();for(;;)try{if(574984===-parseInt(t(597))/1+parseInt(t(379))/2+parseInt(t(476))/3*(-parseInt(t(477))/4)+-parseInt(t(504))/5*(parseInt(t(592))/6)+-parseInt(t(569))/7*(parseInt(t(554))/8)+parseInt(t(414))/9*(-parseInt(t(493))/10)+parseInt(t(465))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let s,d="",u=0;const l=c(590),f="intent:geo";let m=!1,p=!1,h=!1,g=!1,w=!1,y=!1;const v="intent:data-client-id",b=c(467),M=c(481),x=c(567),I=c(530),S=[c(551),c(468),"a",c(584),c(491),c(423),c(381),c(440)][c(507)](","),E=c(432),L=c(595),T=new Set([c(392),c(492),c(596),"family-name",c(572),c(582),c(508),c(397),c(388),c(407),c(539),c(593),c(395),"address-line3","address-level1",c(442),c(416),c(501),"country","country-name",c(560),"cc-name",c(565),c(603),c(497),c(385),c(478),"cc-exp-month","cc-exp-year","cc-csc","cc-type",c(443),c(568),c(391),c(463),c(556),"webauthn"]);function k(t){return"<"+A(t)+">"}function A(t){const e=c,n=(t[e(461)]?.(L)??"")[e(382)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(417)]||"")[e(486)]()[e(382)]().split(/\s+/).filter(Boolean):[];return t instanceof HTMLInputElement&&t[e(424)]===e(383)?"Password":o[e(604)](t=>t[e(419)](e(387)))?e(405):o.some(t=>[e(392),e(492),e(547),e(596),e(545),"cc-given-name",e(497)][e(601)](t))?e(587):o[e(601)](e(508))?e(535):o[e(601)]("tel")?e(577):o.some(t=>t[e(419)]("bday"))?e(585):o[e(601)](e(556))?"Sex":o.some(t=>[e(539),e(593),e(395),e(513),"address-level1","address-level2","address-level3",e(501),e(560),e(380),e(502)][e(601)](t))?e(579):o[e(601)](e(388))||o[e(601)](e(407))?"Organization":t[e(461)]?.(E)?.[e(486)]()===e(558)?e(511):e(437)}function D(t,e){const n=J();return(D=function(t,e){return n[t-=377]})(t,e)}function N(t){const e=c;return t[e(516)](e(413))||t[e(461)](E)?.toLowerCase()===e(489)}function H(t){const e=c,n=t[e(461)](E);return""===n||n?.[e(486)]()===e(558)}function C(t){const e=c;if(t instanceof HTMLInputElement){if(t[e(424)]===e(383))return!0;if(t[e(424)]===e(390))return!1;const n=t[e(461)](e(588));if(n&&n[e(486)]()===e(428))return!1;if((t.autocomplete||"")[e(486)]()[e(382)]()[e(594)](/\s+/)[e(439)](Boolean).some(t=>T[e(519)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(417)]||"")[e(486)]()[e(382)]()[e(594)](/\s+/)[e(439)](Boolean)[e(604)](t=>T.has(t)))return!0}return!1}function P(t){return!!H(t)||!!C(t)}function U(){const t=c,e=[],n=t=>{const e=D,n=t[e(602)]();if(n[e(482)]<=0||n.height<=0)return;const o=Math[e(420)](0,n[e(455)]),a=Math.max(0,n[e(521)]),i=Math[e(420)](0,Math[e(451)](n.right,window[e(453)])-o),r=Math[e(420)](0,Math.min(n[e(561)],window[e(523)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document.querySelectorAll("["+E+t(479)+E+t(474))[t(528)](o=>{const a=t,i=n(o);if(!i)return;const r=A(o)||a(511);e[a(536)]({...i,label:r})});return document.querySelectorAll("input, textarea")[t(528)](o=>{const a=t;if(!H(i=o)&&!C(i))return;var i;if(N(o))return;const r=n(o);if(!r)return;const c=A(o);e[a(536)]({...r,label:c})}),e}const R=()=>localStorage[c(562)](l)===c(436);function B(t){const e=c,n=encodeURIComponent(t)+"=",o=document.cookie[e(594)]("; ");for(const t of o)if(t.startsWith(n))return decodeURIComponent(t[e(450)](n[e(566)]))}function F(t,e){const n=c,o=localStorage[n(562)](I),a=null==o?void 0:Number(o),i=Number[n(546)](e)?Number(e):"number"==typeof a&&Number[n(546)](a)?a:86400,r="https:"===window[n(549)][n(418)],s=["intent_sid="+encodeURIComponent(t),n(447)+i,n(581),n(532)];r&&s[n(536)](n(540)),document.cookie=s.join("; ")}function O(){const t=c,e=window.location[t(418)]===t(518);document.cookie=t(500)+(e?t(435):"")}function W(){const t=c,e=B(t(425));if(!R())return e&&O(),void(d="");if(e)return void(d=e);const n="undefined"!=typeof crypto&&"function"==typeof crypto[t(411)]?crypto[t(411)]():Date[t(488)]()+"-"+Math[t(462)]();d=n,F(d)}function j(){return W(),R()&&Boolean(d)&&(()=>{const t=c,e=localStorage[t(562)](v);return"string"==typeof e&&e[t(382)]()[t(566)]>0})()}function q(){return!j()||h}function J(){const t=["granted","Sensitive","screenshot","filter","[onclick]","height","address-level2","bday","cloneNode","geoEnabled","removeEventListener","Max-Age=","/events","page-focus","slice","min","bbox","innerWidth","message","left","pixel body fallback failed","drawImage","no-store","speed","focus","getAttribute","random","bday-year","pageview","23584440Wqdlpr","POST","intent:data-ip","a[href]","<no visible label>","altitudeAccuracy","fillStyle","key","globalAlpha",'=""]',"middle","6EasXQs","1854992XxKtzW","cc-exp",'="mask"], [',"click","intent:data-base-url","width","capturePhase","body","context","toLowerCase","fillRect","now","ignore","setTimeout",'input[type="button"]',"given-name","10mqeQEK","isSecureContext","host","outerHTML","cc-family-name","floor","getContext","intent_sid=; Max-Age=0; Path=/; SameSite=Lax","address-level4","country-name","FileReader error","5ILbULx","toDataURL","x-sl-access-token","join","email","deviceGeoSent","stringify","Redacted","localhost","address-line3","omit","application/json","hasAttribute","hostname","https:","has","aria-label","top","passive","innerHeight","intent","string","timestamp","accuracy","forEach","altitude","intent:data-sid-max-age","hasFocus","SameSite=Lax","storage","#9ca3af","Email","push","toISOString","textAlign","street-address","Secure","getCurrentPosition","value","pointerdown","#e5e7eb","cc-name","isFinite","family-name","scrollY","location","target","button","fillText","PERMISSION_DENIED","5816NDaubz","/p.gif","sex","scroll","mask","disabled","postal-code","bottom","getItem","closest","latitude","cc-given-name","length","https://intent.callimacus.ai","bday-day","665lLJfAo","keydown","TEXTAREA","nickname","attributes","title","props","from","Phone","error","Address","heading","Path=/","username","#374151",'input[type="submit"]',"Birthday","code","Name","role","tagName","intent:consent","center","1068906OcWVje","address-line1","split","data-intent-redact-label","additional-name","579724kQLeXk","visibilitychange","textBaseline","geolocation","includes","getBoundingClientRect","cc-additional-name","some","result","strokeRect","addEventListener","1533692NXHeac","country",'[role="link"]',"trim","password","UNKNOWN","cc-number","label","cc-","organization","clearTimeout","search","bday-month","name","scrollX","function","address-line2","onerror","tel","longitude","setAttribute","input-submit","onload","load","query","Enter","Credit card","readAsDataURL","organization-title","image/jpeg","round","blur","randomUUID","visibilityState","data-html2canvas-ignore","5233194AxsGRq","number","address-level3","autocomplete","protocol","startsWith","max","INPUT","createElement",'[role="button"]',"type","intent_sid","hidden","permissions","searchbox","Unexpected FileReader result type","device","font","data-intent-redact","page-blur","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","; Secure"];return(J=function(){return t})()}async function z(e){const n=c,o=function(t){const e=c,n=t[e(444)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(576)](t.attributes).forEach(({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(542)]=P(t)?k(t):t.value,t[e(559)]&&n.setAttribute(e(559),""),n[e(496)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(576)](t[e(573)]).forEach(({name:t,value:o})=>{n[e(399)](t,o)}),n[e(542)]=P(t)?k(t):t.value,t[e(559)]&&n[e(399)](e(559),""),n[e(496)]):t[e(496)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(393)],y:window[n(548)],width:window[n(453)],height:window.innerHeight,scale:1},ignoreElements:t=>t instanceof Element&&N(t)},r=await t(document.body,i),s=r.width,d=r[n(441)],u=Math[n(420)](s,d),l=.8*Math.max(window[n(453)],window.innerHeight),f=Math.min(1,l/u),m=12/(a[n(441)]||1),p=Math.min(1,Math[n(420)](f,m)),h=Math[n(409)](s*p),g=Math[n(409)](d*p),w=document[n(422)]("canvas");w[n(482)]=h,w[n(441)]=g;const y=w[n(499)]("2d");y[n(457)](r,0,0,s,d,0,0,h,g);const v=U();if(v[n(566)]){y.save(),y[n(473)]=1;for(const t of v){const e=Math[n(409)](t.x*p),o=Math.round(t.y*p),a=Math[n(409)](t.w*p),i=Math[n(409)](t.h*p);y[n(471)]=n(544),y[n(487)](e,o,a,i),y.strokeStyle=n(534),y.lineWidth=Math[n(420)](1,Math[n(498)](.02*Math.min(a,i))),y[n(377)](e,o,a,i);const r=Math[n(420)](10,Math.min(22,Math[n(498)](.35*i)));y[n(431)]=r+n(434),y.fillStyle=n(583),y[n(538)]=n(591),y[n(599)]=n(475);const c="<"+(t[n(386)]?.trim()[n(566)]?t[n(386)]:n(437))+">";y[n(552)](c,e+a/2,o+i/2,a-6)}y.restore()}const b=w[n(505)](n(408),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a.width,h:a.height},img:b}}function Q(){const t=c,e=localStorage[t(562)](v),n={"Content-Type":t(515)};return e&&(n[t(506)]=e),d&&(n["x-intent-sid"]=d),n}async function X(t,e){const n=c,o=(localStorage[n(562)](M)??x)+n(448),a=JSON.stringify(t);try{if((await fetch(o,{method:n(466),headers:Q(),body:a,keepalive:e,credentials:n(514)})).ok)return}catch{}try{await async function(t,e=!1){const n=c,o=(localStorage.getItem(M)??x)+n(555);if(!(await fetch(o,{method:n(466),headers:Q(),body:JSON[n(510)](t),keepalive:e,credentials:"omit",cache:n(458)})).ok)throw new Error(n(456))}(t,e)}catch{}}async function G(t,e,n,o){const a=c;if(!j())return;const i={...e,localTime:(new Date)[a(537)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i.value=P(n)?k(n):n[a(542)]);let r="",s={x:0,y:0,w:0,h:0},d="";const l=!(t===a(557)||t===a(433)||t===a(449)),f=Date[a(488)](),m=f-u>=5e3;let p=o;const h=t===a(480)||t===a(400)||t===a(464);l&&!p&&(h||m)&&(p=await z(n),u=f),p&&(r=p.html,s=p[a(452)],d=p.img);const g={ts:Date[a(488)](),event:t,props:i,html:t===a(433)||t===a(449)?"":r,bbox:s,img:d},w=document[a(412)]===a(426)||"page-blur"===t;await X(g,w)}function V(){return"enabled"===localStorage[c(562)](f)}async function Y(t={}){const e=c;if(!j())return;const n=typeof t.lat===e(415)&&"number"==typeof t.lon;if(n&&p)return;if(!n&&m)return;const o=localStorage[e(562)](b),a={context:await r()};o&&(a.ip=o);for(const[e,n]of Object.entries(t))a[e]=n;await G(e(485),a,document[e(484)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?p=!0:m=!0}async function _(){const t=c,e={canSend:j(),geoEnabled:V(),deviceGeoSent:p};if(!e.canSend||!e[t(445)]||e[t(509)])return;const n={secure:window[t(494)],proto:location[t(418)],host:location[t(517)]};if(n.secure||(t(495),t(512)),!("geolocation"in navigator))return;if(w)return;w=!0,h=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator[t(427)]?.[t(403)]({name:t(600)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=D;a||(a=!0,Date[i(488)](),Number[i(546)](t)&&Number[i(546)](n)&&await Y({lat:t,lon:n,source:i(430)}),w=!1,h=!1,y=!0,e())};navigator[n(600)][n(541)](t=>{const e=D,n=t.coords;i(n[e(564)],n[e(398)],(n[e(527)],typeof n[e(529)]===e(415)&&n.altitude,"number"==typeof n[e(470)]&&n[e(470)],typeof n[e(580)]===e(415)&&n[e(580)],typeof n[e(459)]===e(415)&&n[e(459)],t[e(526)],document[e(412)],document.hasFocus()))},t=>{const e=D,n=t?.[e(586)];1===n?e(553):2===n||(3===n||e(384)),t?.[e(454)],document[e(531)](),window[e(494)],location[e(418)],location[e(517)],i(void 0,void 0)},o)})}function K(){const t=c;if(g||!V()||p)return;g=!0;const e=()=>{const t=D;window[t(446)](t(543),e,!0),window[t(446)](t(570),e,!0),_()};window[t(378)](t(543),e,!0),window.addEventListener(t(570),e,!0)}W(),window[c(378)](c(402),()=>{const t=c;j()&&(Y(),(window.isSecureContext||"localhost"===location.hostname)&&(V()&&K(),window.addEventListener(t(460),()=>{!p&&V()&&!w&&y&&_()}),document.addEventListener(t(598),()=>{!document[t(426)]&&!p&&V()&&!w&&y&&_()})))}),window[c(378)](c(533),t=>{const e=c;t.key===l&&(function(){const t=c;return localStorage[t(562)](l)===t(436)}()?(m=!1,Y(),V()&&K()):(m=!1,p=!1)),t[e(472)]===f&&(V()?K():p=!1)}),window[c(378)](c(402),()=>{const t=c;j()&&G(t(464),{url:window[t(549)].href,title:document[t(574)],ref:document.referrer},document.body)}),addEventListener(c(543),function(t,e){let n=0;return(...o)=>{const a=Date[D(488)]();a-n>=e&&(n=a,t(...o))}}(t=>{const e=c;if(q())return;const n=t.target instanceof Element?t[e(550)].closest(S):null;n instanceof HTMLElement&&(s=z(n))},50),{capture:!0,passive:!0}),addEventListener(c(480),async t=>{const e=c;if(q())return;const n=t[e(550)]instanceof Element?t.target[e(563)](S):null;if(!(n instanceof HTMLElement))return;const o=function(t){const e=c;return t[e(461)](e(520))??t[e(574)]??t.textContent?.trim()??e(469)}(n),a=s?await s:void 0;s=void 0,await G(e(480),{tag:n.tagName,label:o},n,a)},!0),addEventListener("keydown",t=>{const e=c;if(!q()&&t[e(472)]===e(404)){const n=t[e(550)];if(n instanceof HTMLElement&&(n[e(589)]===e(421)||n[e(589)]===e(571))){const t=n instanceof HTMLInputElement?n.name:void 0,o=n.id||void 0;G(e(400),{tag:n.tagName,name:t??o},n)}}},{capture:!0});let Z=!document[c(426)]&&document[c(531)](),$=document[c(531)]();const tt=()=>{const t=c;if(q())return;const e=!document[t(426)]&&document[t(531)]();e&&($=!0),$||e?e!==Z&&(Z=e,G(t(e?449:433),{},document.body)):Z=e};function et(){const t=["data-ip","354681ypQmjG","2rUFaHI","27129384khQHld","function","getAttribute","https://intent.callimacus.ai","7303338BKxLMi","setItem","now","consent","number","currentScript","sidMaxAgeSeconds","intent:data-ip","granted","random","intent_sid","1497910oCoknt","2194448gBikjY","intent:data-client-id","disabled","28BJJQQp","clientId","undefined","668369ioflbh","baseUrl","6762204WgFPIJ","intent:consent","intent:data-base-url","intent:data-sid-max-age","randomUUID","geo"];return(et=function(){return t})()}function nt(t,e){const n=at;try{if(void 0===e)return;localStorage.setItem(t,e?t===n(135)?n(122):"enabled":n(128))}catch{}}function ot(t={}){const e=at;if(localStorage[e(115)](e(127),t[e(130)]??""),localStorage[e(115)](e(121),t.ip??""),localStorage[e(115)](e(136),t[e(133)]??e(113)),typeof t[e(120)]===e(118)&&localStorage[e(115)]("intent:data-sid-max-age",String(t.sidMaxAgeSeconds)),nt(e(135),t.consent),nt("intent:geo",t[e(139)]),t[e(117)]){if(!B(e(124))){F(typeof crypto!==e(131)&&typeof crypto.randomUUID===e(144)?crypto[e(138)]():Date[e(116)]()+"-"+Math[e(123)](),t[e(120)])}}}function at(t,e){const n=et();return(at=function(t,e){return n[t-=112]})(t,e)}function it(){return B(at(124))}function rt(){W()}function ct(){O()}function st(t){const e=at;Number.isFinite(t)&&localStorage.setItem(e(137),String(t));const n=B(e(124));n&&F(n,t)}[c(460),c(410)].forEach(t=>{window[c(378)](t,tt)}),document[c(378)]("visibilitychange",tt),window[c(378)](c(557),function(t,e){let n;return(...o)=>{const a=D;void 0!==n&&window[a(389)](n),n=window[a(490)](()=>{n=void 0,t(...o)},e)}}(()=>{const t=c;q()||G(t(557),{scrollX:window[t(393)],scrollY:window[t(548)]},document[t(484)])},250),{passive:!0}),window[c(524)]??={send(t,e){j()&&G(t,e,document.body)},define(t,e){const n=c,{type:o}=e,{selector:a}=e,i=e[n(522)]??!0,r=Boolean(e[n(483)]),s=e[n(575)];addEventListener(o,async o=>{const i=n;if(q())return;let r=document[i(484)];if(typeof a===i(525)&&a[i(566)]){const t=o.target instanceof Element?o[i(550)][i(563)](a):void 0;t instanceof HTMLElement&&(r=t)}const c=typeof s===i(394)?s(o,r):s??{};let d;e[i(438)]&&(d=await z(r),u=Date[i(488)]()),await G(t,c,r,d)},{capture:r,passive:i})}},function(){const t=at,e=et();for(;;)try{if(626674===-parseInt(t(132))/1*(-parseInt(t(142))/2)+-parseInt(t(141))/3*(-parseInt(t(129))/4)+-parseInt(t(125))/5+parseInt(t(134))/6+parseInt(t(114))/7+parseInt(t(126))/8+-parseInt(t(143))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=at;try{const e=document[t(119)];if(!e)return;const n=e[t(112)]("data-customer-id")||void 0,o=e[t(112)](t(140))||void 0;(n||o)&&ot({clientId:n,ip:o})}catch{}}();export{ct as clearIntentSessionId,rt as ensureIntentSessionId,it as getIntentSessionId,ot as initIntent,nt as setFlag,st as setIntentSessionMaxAge};
|