@solomei-ai/intent 1.7.0 → 1.8.0
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 +2 -2
- package/package.json +3 -3
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";import e from"js-cookie";function n(){const t=["CookiesEnabled: ","rttMs","PWA: ","charging","length","beta","platform","abs","deviceorientation","undefined","controller","UA brands: ","encodedBodySize","resolvedOptions","height","6328888fVPnfw","TTFB ~","orientation","entryType"," (UTC","intent:geo","maxTouchPoints"," (β ",", maxTouchPoints ","function","getTimezoneOffset","doNotTrack","level"," Mbps","join","downlinkMbps","number","yes","devicePixelRatio","36CIXYzj","push","Tilt: ","referrer","availHeight","(pointer: fine)","8292sJDXUI","type","timeZone","DateTimeFormat","connection","userAgent","requestStart","(display-mode: standalone)",", display-mode standalone: ","downlink","getItem","isSecureContext","Languages: ","Device geolocation: enabled","filter","isFinite","725988arEBEC","version","matches","getBattery","Platform: ","10uOFNtL","gamma"," | ","getEntriesByType","brand","colorDepth","max","languages","Referrer: ","67994DAsprs","x (avail ","resource","browser API","User agent: ","hardwareConcurrency","saveData","rtt","Online: ","°, γ ","248360kJoqFC","addEventListener","responseStart","navigation","DeviceOrientationEvent","mobile","enabled","round","onLine","removeEventListener","SW-controlled","Viewport: "," ms","serviceWorker","Timezone: ","cookieEnabled","flat","fine","Screen: ","28501lzzDqK","352878tgjfIB","7YkmGnA","Battery: ","130239avZPTf","upright","n/a","29bGyOve","Device geolocation: disabled"," cores","find","padStart","transferSize","isArray","slice","startsWith","userAgentData","; DNT: "];return(n=function(){return t})()}function o(t,e){const a=n();return(o=function(t,e){return a[t-=433]})(t,e)}async function a(){const t=o,e=[];let n=t(448);if(a=navigator,o(536)in a&&void 0!==a.connection){const n=navigator.connection;n?.effectiveType&&e[t(527)](n.effectiveType),"number"==typeof n?.[t(541)]&&e[t(527)]("~"+n.downlink+t(520)),typeof n?.[t(452)]===t(523)&&e.push(n.rtt+t(467)),n?.[t(451)]&&e.push(t(451))}else{const a=function(t=20){const e=o,n=performance[e(439)](e(458))[e(484)](t=>t[e(510)]===e(458)),a=n?Math[e(442)](0,n[e(457)]-n[e(538)]):void 0,i=performance[e(439)]("resource").filter(t=>t[e(510)]===e(447));let r=0,c=0;for(const n of i[e(488)](0,Math.max(0,t))){const t=n[e(504)]>0?n[e(504)]:n.transferSize>0?n[e(486)]:0,o=n.duration;t>0&&o>0&&Number[e(547)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(523)?s/1e3:void 0,rttMs:a}}();typeof a[t(522)]===t(523)&&e.push("~"+a[t(522)].toFixed(1)+" Mbps"),typeof a[t(493)]===t(523)&&e.push(t(508)+Math[t(462)](a[t(493)])+t(467)),n="inferred"}var a;const i=performance.getEntriesByType(t(458))[t(484)](e=>e[t(510)]===t(458));if(i){const n=Math[t(442)](0,i[t(457)]-i[t(538)]);!e.some(e=>e[t(489)]("TTFB"))&&e.push(t(508)+Math[t(462)](n)+t(467))}return e[t(496)]?"Network: "+e[t(521)](", ")+" ("+n+")":void 0}function i(){const t=o;if(!function(t){const e=o;return"userAgentData"in t&&typeof t[e(490)]!==e(501)}(navigator))return;const e=navigator[t(490)],n=Array[t(487)](e.brands)?e.brands.map(e=>e[t(440)]+" "+e[t(549)]).join(", "):void 0,a=e[t(498)]?e[t(498)]+(e[t(460)]?" (mobile)":""):void 0;return[n&&t(503)+n,a&&t(435)+a][t(546)](Boolean)[t(521)](t(438))||void 0}async function r(t=400){const e=o;if(e(459)in window&&window[e(543)])return new Promise(n=>{const a=e;let i=!1;const r=t=>{const e=o,a="number"==typeof t[e(497)]?t[e(497)]:void 0,c=typeof t[e(437)]===e(523)?t[e(437)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window.removeEventListener(e(500),r);const s=function(t,e){const n=o,a=Math[n(499)](t),i=Math[n(499)](e);return a<15&&i<15?n(471):a>=60?n(479):"reclined"}(a,c);n(e(528)+s+e(514)+Math[e(462)](a)+e(454)+Math[e(462)](c)+"°)")};window.setTimeout(()=>{const t=o;i||(i=!0,window[t(464)](t(500),r),n(void 0))},t),window[a(456)](a(500),r,{passive:!0})})}async function c(){const t=o;if(function(t){const e=o;return e(434)in t&&"function"==typeof t[e(434)]}(navigator))try{const e=await navigator[t(434)](),n=Math[t(462)](100*e[t(519)]),o=[(Number[t(547)](n)?n:0)+"%",e[t(495)]?t(495):"not charging"];return t(477)+o[t(521)](", ")}catch{return}}async function s(){const t=o,e=(new(Intl[t(535)]))[t(505)]()[t(534)],n=function(t){const e=o,n=t<=0?"+":"-",a=Math[e(499)](t);return""+n+String(Math.floor(a/60))[e(485)](2,"0")+":"+String(a%60)[e(485)](2,"0")}((new Date)[t(517)]()),s=[];s.push("Language: "+navigator.language),navigator[t(443)]?.[t(496)]&&s.push(t(544)+navigator[t(443)][t(521)](", ")),s[t(527)](t(449)+navigator[t(537)]);const u=i();u&&s[t(527)](u),s[t(527)](t(469)+e+t(511)+n+")"),s[t(527)]("Local time: "+(new Date).toString());const l=window[t(525)]||1;s[t(527)](t(473)+screen.width+"x"+screen[t(506)]+" @"+l+t(446)+screen.availWidth+"x"+screen[t(530)]+", "+screen[t(441)]+"-bit)");const d=screen[t(509)]&&t(533)in screen[t(509)]?screen[t(509)][t(533)]:void 0;s[t(527)](t(466)+window.innerWidth+"x"+window.innerHeight+(d?", orientation "+d:"")),s[t(527)]("CPU: "+navigator[t(450)]+t(483));const f=await a();f&&s[t(527)](f),s.push(function(){const t=o,e=typeof matchMedia===t(516)&&matchMedia("(pointer: coarse)")[t(433)],n=typeof matchMedia===t(516)&&matchMedia(t(531)).matches,a=e?"coarse":n?t(472):"unknown",i="number"==typeof navigator[t(513)]?navigator.maxTouchPoints:0;return"Pointer/Touch: "+a+t(515)+i}());const m=await c();m&&s.push(m),s[t(527)](t(492)+(navigator[t(470)]?t(524):"no")+t(491)+(navigator[t(518)]??t(480))),s[t(527)](t(453)+(navigator[t(463)]?t(524):"no")),document[t(529)]&&s[t(527)](t(444)+document[t(529)]),s[t(527)](function(){const t=o,e=typeof matchMedia===t(516)&&matchMedia(t(539))[t(433)],n=Boolean(navigator[t(468)]?.[t(502)]);return t(494)+(n?t(465):"no SW")+t(540)+(e?t(524):"no")}());const p=await r();p&&s[t(527)](p);const h="undefined"!=typeof localStorage&&localStorage[t(542)](t(512))===t(461);return s[t(527)](t(h?545:482)),s[t(521)](" | ")}!function(){const t=o,e=n();for(;;)try{if(551207===parseInt(t(481))/1*(parseInt(t(445))/2)+parseInt(t(478))/3+-parseInt(t(548))/4*(-parseInt(t(436))/5)+parseInt(t(475))/6+-parseInt(t(476))/7*(-parseInt(t(507))/8)+parseInt(t(526))/9*(parseInt(t(455))/10)+parseInt(t(474))/11*(-parseInt(t(532))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=m;!function(){const t=m,e=O();for(;;)try{if(825391===-parseInt(t(356))/1+parseInt(t(382))/2*(-parseInt(t(403))/3)+-parseInt(t(349))/4+-parseInt(t(485))/5+-parseInt(t(499))/6*(-parseInt(t(432))/7)+-parseInt(t(449))/8*(-parseInt(t(360))/9)+parseInt(t(496))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,d="",f=0;function m(t,e){const n=O();return(m=function(t,e){return n[t-=303]})(t,e)}const p=u(341),h=u(406);let g=!1,w=!1,y=!1,v=!1,b=!1,I=!1;const M=u(464),S=u(339),x=u(462),T=u(482),E=u(351),A="__intent__sdk__initialized__",L=[u(486),u(518),"a",u(303),u(488),'[role="button"]',u(391),"[onclick]"][u(333)](","),k=u(512),D=new Set(["name","given-name",u(445),u(416),"nickname",u(313),u(306),u(469),u(451),u(474),u(368),u(494),u(419),"address-line3",u(497),"address-level2",u(381),u(447),"country","country-name","postal-code","cc-name",u(329),u(378),u(424),u(331),"cc-exp","cc-exp-month",u(326),u(481),u(386),"bday","bday-day",u(415),u(374),u(340),u(511)]);function N(t){return"<"+H(t)+">"}function H(t){const e=u,n=(t.getAttribute?.("data-intent-redact-label")??"").trim();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(456)]()[e(453)]()[e(431)](/\s+/)[e(441)](Boolean):[];return t instanceof HTMLInputElement&&t[e(423)]===e(448)?e(463):o[e(361)](t=>t[e(490)](e(505)))?e(409):o.some(t=>[e(371),e(312),"family-name",e(445),e(506),e(329),e(424)].includes(t))?e(444):o[e(468)](e(306))?e(434):o.includes(e(469))?e(338):o[e(361)](t=>t[e(490)](e(353)))?e(350):o.includes(e(340))?e(389):o[e(361)](t=>[e(368),e(494),e(419),e(483),e(497),"address-level2","address-level3",e(447),e(519),e(388),"country-name"][e(468)](t))?e(446):o[e(468)]("organization")||o[e(468)]("organization-title")?e(402):t.getAttribute?.(k)?.[e(456)]()===e(357)?e(380):e(323)}function P(t){const e=u;return t.hasAttribute(e(516))||t[e(373)](k)?.[e(456)]()===e(471)}function O(){const t=["random","timestamp","geoEnabled","Organization","30eeNueU","length","scrollX","intent:geo","omit","top","Credit card","location","string","query","title","max","bday-month","family-name","slice","addEventListener","address-line2","min","error","href","type","cc-family-name","coords","pointerdown","x-intent-sid","closest","function","Enter","split","7tslFlS","fillStyle","Email","restore","fillRect","context","protocol","target","FileReader error","filter",'="mask"], [',"from","Name","additional-name","Address","address-level4","password","8zhFSxv","visibilitychange","organization","onerror","trim","forEach","hostname","toLowerCase","blur","createElement","pageview","entries","altitudeAccuracy","intent:data-base-url","Password","intent:data-client-id","isFinite","lat","<no visible label>","includes","tel","onload","ignore","visibilityState","/events","organization-title","page-blur","role","right","attributes","granted","clearTimeout","cc-csc","https://intent.callimacus.ai","address-line3","secure","435290tOyPch","button","/p.gif",'input[type="button"]',"label","startsWith","has","scrollY","code","address-line1","getCurrentPosition","31251720tORnpK","address-level1","innerWidth","5170434yZhrgK","Lax","focus","keydown","getItem","intent_sid","cc-","cc-name","speed","tagName","geolocation","getContext","webauthn","data-intent-redact","left","remove","html","data-html2canvas-ignore","randomUUID","a[href]","postal-code","fillText","floor","body",'input[type="submit"]',"x-sl-access-token","image/jpeg","email","stringify","click","searchbox","accuracy","round","given-name","username","height","autocomplete","altitude","key","removeEventListener","undefined","strokeStyle","INPUT","host","Sensitive","value","now","cc-exp-year","push","defineProperty","cc-given-name","aria-label","cc-number","getBoundingClientRect","join","UNKNOWN","outerHTML","drawImage","application/json","Phone","intent:data-ip","sex","intent:consent","result","POSITION_UNAVAILABLE","lon","https:","setTimeout","font","PERMISSION_DENIED","6236344ZGNgeG","Birthday","intent:data-sid-max-age","no-store","bday","width","pixel body fallback failed","934166IqqcvH","mask","strokeRect","device","9226440LfEVgk","some","isSecureContext","TEXTAREA","innerHeight","load","localhost","intent","street-address","disabled","permissions","name","scroll","getAttribute","bday-year","longitude","deviceGeoSent","indexOf","cc-additional-name","POST","Redacted","address-level3","321274DUDygh","hidden","referrer","readAsDataURL","cc-type","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","country","Sex","setAttribute",'[role="link"]',"input-submit","img","hasFocus","page-focus","cloneNode",'=""]',"number"];return(O=function(){return t})()}function U(t){const e=u,n=t[e(373)](k);return""===n||"mask"===n?.[e(456)]()}function B(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(423)]===e(448))return!0;if("search"===t[e(423)])return!1;const n=t[e(373)](e(476));if(n&&n[e(456)]()===e(309))return!1;if((t[e(315)]||"")[e(456)]()[e(453)]()[e(431)](/\s+/)[e(441)](Boolean)[e(361)](t=>D[e(491)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t[e(315)]||"")[e(456)]().trim()[e(431)](/\s+/)[e(441)](Boolean)[e(361)](t=>D[e(491)](t)))return!0}return!1}function C(t){return!P(t)&&(!!U(t)||!!B(t))}function F(){const t=u,e=[],n=t=>{const e=m,n=t[e(332)]();if(n[e(354)]<=0||n[e(314)]<=0)return;const o=Math[e(414)](0,n[e(513)]),a=Math[e(414)](0,n[e(408)]),i=Math[e(414)](0,Math.min(n[e(477)],window[e(498)])-o),r=Math[e(414)](0,Math[e(420)](n.bottom,window.innerHeight)-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document.querySelectorAll("["+k+t(442)+k+t(397))[t(454)](o=>{const a=t,i=n(o);if(!i)return;const r=H(o)||"Redacted";e[a(327)]({...i,label:r})});return document.querySelectorAll("input, textarea")[t(454)](o=>{const a=t;if(P(i=o)||!U(i)&&!B(i))return;var i;const r=n(o);if(!r)return;const c=H(o);e[a(327)]({...r,label:c})}),e}const R=()=>"granted"===localStorage.getItem(p);function z(t){return e.get(t)}function j(t,n){const o=u,a=localStorage[o(503)](E),i=null===a?void 0:Number(a),r=Number.isFinite(n)?Number(n):typeof i===o(398)&&Number[o(465)](i)?i:86400,c=window[o(410)][o(438)]===o(345);e.set(o(504),t,{expires:r/86400,path:"/",sameSite:o(500),...c&&{secure:!0}})}function W(){e[u(514)]("intent_sid",{path:"/"})}function _(){const t=u,e=z(t(504));if(!R())return e&&W(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(319)&&typeof crypto[t(517)]===t(429)?crypto[t(517)]():Date.now()+"-"+Math[t(399)]();d=n,j(d)}function q(){return _(),R()&&Boolean(d)&&(()=>{const t=u,e=localStorage[t(503)](M);return"string"==typeof e&&e[t(453)]().length>0})()}function V(){return!q()||y}async function G(e){const n=u,o=function(t){const e=u,n=t[e(396)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(478)])[e(454)](({name:t,value:e})=>{n.setAttribute(t,e)}),n[e(324)]=C(t)?N(t):t[e(324)],t[e(369)]&&n.setAttribute(e(369),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(443)](t[e(478)])[e(454)](({name:t,value:o})=>{n[e(390)](t,o)}),n[e(324)]=C(t)?N(t):t[e(324)],t.disabled&&n[e(390)](e(369),""),n[e(335)]):t[e(335)]}(e),a=e[n(332)](),i={useCORS:!0,...{x:window[n(405)],y:window.scrollY,width:window.innerWidth,height:window[n(364)],scale:1,logging:!1},ignoreElements:t=>t instanceof Element&&P(t)},r=await t(document[n(522)],i),c=r[n(354)],s=r[n(314)],l=Math[n(414)](c,s),d=.8*Math[n(414)](window[n(498)],window[n(364)]),f=Math[n(420)](1,d/l),m=12/(a[n(314)]||1),p=Math[n(420)](1,Math[n(414)](f,m)),h=Math[n(311)](c*p),g=Math[n(311)](s*p),w=document[n(458)]("canvas");w[n(354)]=h,w[n(314)]=g;const y=w[n(510)]("2d");y[n(336)](r,0,0,c,s,0,0,h,g);const v=F();if(v.length){y.save(),y.globalAlpha=1;for(const t of v){const e=Math[n(311)](t.x*p),o=Math.round(t.y*p),a=Math[n(311)](t.w*p),i=Math.round(t.h*p);y.fillStyle="#e5e7eb",y[n(436)](e,o,a,i),y[n(320)]="#9ca3af",y.lineWidth=Math[n(414)](1,Math[n(521)](.02*Math[n(420)](a,i))),y[n(358)](e,o,a,i);const r=Math.max(10,Math.min(22,Math[n(521)](.35*i)));y[n(347)]=r+n(387),y[n(433)]="#374151",y.textAlign="center",y.textBaseline="middle";const c="<"+(t.label?.[n(453)]()[n(404)]?t[n(489)]:n(323))+">";y[n(520)](c,e+a/2,o+i/2,a-6)}y[n(435)]()}const b=w.toDataURL(n(305),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(354)],h:a[n(314)]},img:b}}function J(){const t=u,e=localStorage[t(503)](M),n={"Content-Type":"application/json"};return e&&(n[t(304)]=e),d&&(n[t(427)]=d),n}async function X(t,e){const n=u,o=(localStorage[n(503)](x)??T)+n(473),a=localStorage[n(503)](M)??void 0,i=JSON[n(307)]({...t,clientId:a});try{if((await fetch(o,{method:"POST",headers:J(),body:i,keepalive:e,credentials:n(407)})).ok)return}catch{}try{await async function(t,e=!1){const n=u,o=(localStorage[n(503)](x)??T)+n(487);if(!(await fetch(o,{method:n(379),headers:J(),body:JSON.stringify(t),keepalive:e,credentials:n(407),cache:n(352)})).ok)throw new Error(n(355))}(t,e)}catch{}}async function Y(t,e,n,o){const a=u;if(!q())return;const i={...e,localTime:(new Date).toISOString()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(324)]=C(n)?N(n):n[a(324)]);let r="",c={x:0,y:0,w:0,h:0},s="";const l=!(t===a(372)||t===a(475)||"page-focus"===t),d=Date.now(),m=d-f>=5e3;let p=o;const h=t===a(308)||t===a(392)||t===a(459);l&&!p&&(h||m)&&(p=await G(n),f=d),p&&(r=p[a(515)],c=p.bbox,s=p[a(393)]);const g=t===a(475)||"page-focus"===t||"pageview"===t,w={ts:Date[a(325)](),event:t,props:i,html:g?"":r,bbox:c,img:s},y=document[a(472)]===a(383)||t===a(475);await X(w,y)}function K(){return"enabled"===localStorage.getItem(h)}async function Z(t={}){const e=u;if(!q())return;const n=typeof t[e(466)]===e(398)&&typeof t[e(344)]===e(398);if(n&&w)return;if(!n&&g)return;const o=localStorage[e(503)](S),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(460)](t))a[n]=o;await Y(e(437),a,document[e(522)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?w=!0:g=!0}async function Q(){const t=u,e={canSend:q(),geoEnabled:K(),deviceGeoSent:w};if(!e.canSend||!e[t(401)]||e[t(376)])return;const n={secure:window[t(362)],proto:location[t(438)],host:location[t(455)]};if(n[t(484)]||(t(322),t(366)),!(t(509)in navigator))return;if(b)return;b=!0,y=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date[t(325)]();try{await(navigator[t(370)]?.[t(412)]({name:t(509)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=m;a||(a=!0,Date[i(325)](),Number.isFinite(t)&&Number.isFinite(n)&&await Z({lat:t,lon:n,source:i(359)}),b=!1,y=!1,I=!0,e())};navigator[n(509)][n(495)](t=>{const e=m,n=t[e(425)];i(n.latitude,n[e(375)],(n[e(310)],typeof n[e(316)]===e(398)&&n[e(316)],typeof n[e(461)]===e(398)&&n[e(461)],"number"==typeof n.heading&&n.heading,"number"==typeof n.speed&&n[e(507)],t[e(400)],document[e(472)],document[e(394)]()))},t=>{const e=m,n=t?.[e(493)];1===n?e(348):2===n?e(343):3===n||e(334),document[e(472)],document[e(394)](),window[e(362)],location[e(455)],i(void 0,void 0)},o)})}function $(){const t=u;if(v||!K()||w)return;v=!0;const e=()=>{window[m(318)]("pointerdown",e,!0),window.removeEventListener("keydown",e,!0),Q()};window[t(418)](t(426),e,!0),window[t(418)](t(502),e,!0)}_();let tt=!document[u(383)]&&document.hasFocus(),et=document[u(394)]();const nt=()=>{const t=u;if(V())return;const e=!document[t(383)]&&document[t(394)]();e&&(et=!0),et||e?e!==tt&&(tt=e,Y(t(e?395:475),{},document[t(522)])):tt=e};function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[A]&&(Object[t(328)](e,A,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(418)](t(365),()=>{const e=t;q()&&(Z(),(window[e(362)]||location[e(455)]===e(366))&&(K()&&$(),window[e(418)](e(501),()=>{!w&&K()&&!b&&I&&Q()}),document[e(418)](e(450),()=>{!document[e(383)]&&!w&&K()&&!b&&I&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(317)]===p&&(function(){const t=u;return localStorage[t(503)](p)===t(479)}()?(g=!1,Z(),K()&&$()):(g=!1,w=!1)),e[n(317)]===h&&(K()?$():w=!1)}),window[t(418)]("load",()=>{const e=t;q()&&Y(e(459),{url:window[e(410)][e(422)],title:document[e(413)],ref:document[e(384)]},document.body)}),addEventListener(t(426),function(t,e){let n=0;return(...o)=>{const a=Date[m(325)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(V())return;const o=e.target instanceof Element?e[n(439)][n(428)](L):null;o instanceof HTMLElement&&(l=G(o))},50),{capture:!0,passive:!0}),addEventListener(t(308),async e=>{const n=t;if(V())return;const o=e[n(439)]instanceof Element?e[n(439)][n(428)](L):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=u;return t[e(373)](e(330))??t.title??t.textContent?.[e(453)]()??e(467)}(o),i=l?await l:void 0;l=void 0,await Y("click",{tag:o[n(508)],label:a},o,i)},!0),addEventListener(t(502),e=>{const n=t;if(!V()&&e[n(317)]===n(430)){const t=e.target;if(t instanceof HTMLElement&&(t[n(508)]===n(321)||t[n(508)]===n(363))){const e=t instanceof HTMLInputElement?t[n(371)]:void 0,o=t.id||void 0;Y(n(392),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(501),t(457)].forEach(e=>{window[t(418)](e,nt)}),document[t(418)](t(450),nt),window[t(418)](t(372),function(t,e){let n;return(...o)=>{const a=m;void 0!==n&&window[a(480)](n),n=window[a(346)](()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;V()||Y(e(372),{scrollX:window[e(405)],scrollY:window[e(492)]},document[e(522)])},250),{passive:!0}),window[t(367)]??={send(e,n){const o=t;q()&&Y(e,n,document[o(522)])}})}function at(t,e){const n=ct();return(at=function(t,e){return n[t-=369]})(t,e)}function it(t,e){const n=at;try{if(void 0===e)return;localStorage[n(397)](t,e?t===n(374)?n(395):n(380):n(378))}catch{}}function rt(t={}){const e=at;if(localStorage[e(397)](e(388),t[e(371)]??""),localStorage[e(397)](e(399),t.ip??""),localStorage[e(397)](e(398),t[e(370)]??e(377)),typeof t[e(382)]===e(385)&&localStorage[e(397)](e(372),String(t.sidMaxAgeSeconds)),it(e(374),t[e(384)]),it(e(376),t[e(387)]),t[e(384)]){if(!z(e(383))){j(typeof crypto!==e(375)&&"function"==typeof crypto.randomUUID?crypto.randomUUID():Date.now()+"-"+Math[e(392)](),t[e(382)])}}ot()}function ct(){const t=["sidMaxAgeSeconds","intent_sid","consent","number","274338WwuMlj","geo","intent:data-client-id","10sKtUPd","112AnIZtR","72osIQFB","random","3rNxHTV","1760381CkidjE","granted","6pVnJRE","setItem","intent:data-base-url","intent:data-ip","2616588iFdabH","302843IwxPwX","891960jiIltJ","baseUrl","clientId","intent:data-sid-max-age","4952330rYhuCM","intent:consent","undefined","intent:geo","https://intent.callimacus.ai","disabled","77604OrSxVM","enabled","11RzpRHh"];return(ct=function(){return t})()}function st(){return z(at(383))}function ut(){_()}function lt(){W()}function dt(t){const e=at;Number.isFinite(t)&&localStorage[e(397)](e(372),String(t));const n=z(e(383));n&&j(n,t)}!function(){const t=at,e=ct();for(;;)try{if(432823===parseInt(t(401))/1+parseInt(t(369))/2*(-parseInt(t(393))/3)+parseInt(t(379))/4*(parseInt(t(389))/5)+parseInt(t(396))/6*(parseInt(t(394))/7)+-parseInt(t(390))/8*(parseInt(t(386))/9)+parseInt(t(373))/10*(-parseInt(t(381))/11)+parseInt(t(391))/12*(parseInt(t(400))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{lt as clearIntentSessionId,ut as ensureIntentSessionId,st as getIntentSessionId,rt as initIntent,it as setFlag,dt as setIntentSessionMaxAge};
|
|
4
|
+
import t from"html2canvas-pro";import e from"js-cookie";function n(t,e){const a=o();return(n=function(t,e){return a[t-=107]})(t,e)}function o(){const t=["timeZone","serviceWorker","slice","Viewport: ","responseStart","Device geolocation: enabled","°, γ ","getBattery","function",", orientation ","TTFB","4242DjeHKi","rttMs","undefined","floor","15798060eOKlGv","Tilt: ","availWidth"," (β "," ms"," Mbps","isFinite","hardwareConcurrency","filter","no SW","Online: "," (mobile)","7510626yCMNch","encodedBodySize","maxTouchPoints","-bit)","availHeight","effectiveType","beta","getTimezoneOffset","innerHeight","(pointer: coarse)","round","resource","browser API","CPU: ","startsWith","referrer","upright","DateTimeFormat","897224HWzZrD","getEntriesByType","64329WmaDIf","7550410VRvQdK","; DNT: ","transferSize","Screen: ","requestStart","Pointer/Touch: ","charging","setTimeout","unknown","yes","Device geolocation: disabled","orientation","devicePixelRatio","version","Language: ","CookiesEnabled: ","downlink","join","(display-mode: standalone)","PWA: ","fine","toFixed","rtt","Local time: ","Network: ","padStart"," cores",", maxTouchPoints ","find","SW-controlled","innerWidth","number","gamma","controller","languages","User agent: ","abs","Battery: ","saveData","colorDepth","max","length","brand","1380GeZnjP"," | ","6612ONXWlS","downlinkMbps","enabled","coarse","removeEventListener","connection","flat","n/a","668IALAMC","duration","language","type","navigation","deviceorientation","push","DeviceOrientationEvent","mobile","onLine","entryType","width","matches","TTFB ~","UA brands: ","userAgentData","not charging","platform","brands"];return(o=function(){return t})()}async function a(){const t=n,e=[];let o=t(187);if(function(t){const e=n;return e(126)in t&&typeof t.connection!==e(161)}(navigator)){const n=navigator[t(126)];n?.effectiveType&&e[t(135)](n[t(180)]),typeof n?.[t(212)]===t(107)&&e[t(135)]("~"+n.downlink+t(168)),typeof n?.[t(218)]===t(107)&&e[t(135)](n.rtt+t(167)),n?.saveData&&e.push(t(114))}else{const a=function(t=20){const e=n,o=performance[e(194)](e(133))[e(224)](t=>t[e(139)]===e(133)),a=o?Math.max(0,o[e(152)]-o[e(200)]):void 0,i=performance[e(194)](e(186))[e(171)](t=>t[e(139)]===e(186));let r=0,c=0;for(const n of i[e(150)](0,Math[e(116)](0,t))){const t=n[e(176)]>0?n[e(176)]:n.transferSize>0?n[e(198)]:0,o=n[e(130)];t>0&&o>0&&Number[e(169)](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.downlinkMbps===t(107)&&e.push("~"+a[t(122)][t(217)](1)+t(168)),"number"==typeof a.rttMs&&e[t(135)](t(142)+Math[t(185)](a[t(160)])+" ms"),o="inferred"}const a=performance[t(194)](t(133))[t(224)](e=>"navigation"===e[t(139)]);if(a){const n=Math.max(0,a.responseStart-a[t(200)]);!e.some(e=>e[t(189)](t(158)))&&e[t(135)](t(142)+Math[t(185)](n)+" ms")}return e[t(117)]?t(220)+e[t(213)](", ")+" ("+o+")":void 0}function i(){const t=n;if(!function(t){const e=n;return e(144)in t&&typeof t[e(144)]!==e(161)}(navigator))return;const e=navigator[t(144)],o=Array.isArray(e.brands)?e[t(147)].map(e=>e[t(118)]+" "+e[t(209)])[t(213)](", "):void 0,a=e[t(146)]?""+e[t(146)]+(e[t(137)]?t(174):""):void 0;return[o&&t(143)+o,a&&"Platform: "+a][t(171)](Boolean).join(" | ")||void 0}async function r(t=400){const e=n;if(e(136)in window&&window.isSecureContext)return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a="number"==typeof t[e(181)]?t.beta:void 0,c="number"==typeof t[e(108)]?t[e(108)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(125)](e(134),r);const s=function(t,e){const o=n,a=Math[o(112)](t),i=Math[o(112)](e);return a<15&&i<15?o(127):a>=60?o(191):"reclined"}(a,c);o(e(164)+s+e(166)+Math[e(185)](a)+e(154)+Math.round(c)+"°)")};window[a(203)](()=>{i||(i=!0,window[a(125)]("deviceorientation",r),o(void 0))},t),window.addEventListener(a(134),r,{passive:!0})})}async function c(){const t=n;if(function(t){const e=n;return e(155)in t&&typeof t.getBattery===e(156)}(navigator))try{const e=await navigator.getBattery(),n=Math[t(185)](100*e.level),o=[(Number[t(169)](n)?n:0)+"%",e[t(202)]?t(202):t(145)];return t(113)+o[t(213)](", ")}catch{return}}async function s(){const t=n,e=(new(Intl[t(192)])).resolvedOptions()[t(148)],o=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(112)](t);return""+o+String(Math[e(162)](a/60))[e(221)](2,"0")+":"+String(a%60)[e(221)](2,"0")}((new Date)[t(182)]()),s=[];s.push(t(210)+navigator[t(131)]),navigator[t(110)]?.[t(117)]&&s[t(135)]("Languages: "+navigator[t(110)][t(213)](", ")),s[t(135)](t(111)+navigator.userAgent);const l=i();l&&s[t(135)](l),s[t(135)]("Timezone: "+e+" (UTC"+o+")"),s[t(135)](t(219)+(new Date).toString());const u=window[t(208)]||1;s[t(135)](t(199)+screen[t(140)]+"x"+screen.height+" @"+u+"x (avail "+screen[t(165)]+"x"+screen[t(179)]+", "+screen[t(115)]+t(178));const d=screen[t(207)]&&t(132)in screen[t(207)]?screen[t(207)][t(132)]:void 0;s[t(135)](t(151)+window[t(226)]+"x"+window[t(183)]+(d?t(157)+d:"")),s[t(135)](t(188)+navigator[t(170)]+t(222));const f=await a();f&&s[t(135)](f),s.push(function(){const t=n,e=typeof matchMedia===t(156)&&matchMedia(t(184)).matches,o=typeof matchMedia===t(156)&&matchMedia("(pointer: fine)")[t(141)],a=t(e?124:o?216:204),i="number"==typeof navigator[t(177)]?navigator[t(177)]:0;return t(201)+a+t(223)+i}());const m=await c();m&&s[t(135)](m),s.push(t(211)+(navigator.cookieEnabled?t(205):"no")+t(197)+(navigator.doNotTrack??t(128))),s[t(135)](t(173)+(navigator[t(138)]?t(205):"no")),document.referrer&&s[t(135)]("Referrer: "+document[t(190)]),s[t(135)](function(){const t=n,e=typeof matchMedia===t(156)&&matchMedia(t(214))[t(141)],o=Boolean(navigator[t(149)]?.[t(109)]);return t(215)+t(o?225:172)+", display-mode standalone: "+(e?t(205):"no")}());const p=await r();p&&s.push(p);const h=typeof localStorage!==t(161)&&localStorage.getItem("intent:geo")===t(123);return s[t(135)](t(h?153:206)),s[t(213)](t(120))}!function(){const t=n,e=o();for(;;)try{if(755195===parseInt(t(129))/1*(-parseInt(t(159))/2)+parseInt(t(195))/3+-parseInt(t(121))/4*(-parseInt(t(119))/5)+-parseInt(t(175))/6+parseInt(t(196))/7+parseInt(t(193))/8+parseInt(t(163))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const l=tt;!function(){const t=tt,e=_();for(;;)try{if(456065===-parseInt(t(611))/1+parseInt(t(659))/2*(-parseInt(t(594))/3)+-parseInt(t(581))/4+parseInt(t(585))/5*(-parseInt(t(457))/6)+parseInt(t(580))/7+parseInt(t(505))/8*(parseInt(t(600))/9)+parseInt(t(526))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let u,d="",f=0;const m="intent:consent",p=l(528);let h=!1,g=!1,w=!1,y=!1,v=!1,b=!1;const M=l(559),x=l(511),S=l(516),I=l(454),T=l(514),E=l(663),A=["button","a[href]","a",l(481),l(491),l(452),l(532),l(640)][l(471)](","),L=l(461),k=l(539),D=new Set(["name",l(474),"additional-name",l(593),l(572),l(570),l(484),l(538),"organization","organization-title",l(470),l(610),l(486),l(619),l(478),"address-level2",l(512),"address-level4",l(582),"country-name",l(614),l(466),l(633),"cc-additional-name","cc-family-name",l(571),l(499),l(565),l(636),l(602),l(643),l(493),"bday-day",l(650),l(550),l(458),l(553)]);function H(t){return"<"+N(t)+">"}function N(t){const e=l,n=(t[e(651)]?.(k)??"")[e(577)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t.autocomplete||"")[e(653)]().trim()[e(634)](/\s+/)[e(544)](Boolean):[];return t instanceof HTMLInputElement&&"password"===t.type?"Password":o[e(475)](t=>t[e(535)]("cc-"))?e(616):o.some(t=>["name","given-name",e(593),e(590),"cc-name",e(633),"cc-family-name"].includes(t))?e(524):o[e(597)](e(484))?e(627):o.includes("tel")?e(561):o[e(475)](t=>t[e(535)](e(493)))?e(462):o[e(597)](e(458))?"Sex":o[e(475)](t=>[e(470),e(610),"address-line2",e(619),e(478),e(573),"address-level3",e(648),e(614),e(582),e(601)][e(597)](t))?"Address":o[e(597)](e(567))||o[e(597)](e(632))?e(569):"mask"===t.getAttribute?.(L)?.[e(653)]()?e(456):e(598)}function P(t){const e=l;return t.hasAttribute(e(520))||t.getAttribute(L)?.[e(653)]()===e(589)}function O(t){const e=l,n=t[e(651)](L);return""===n||n?.[e(653)]()===e(460)}function C(t){const e=l;if(t instanceof HTMLInputElement){if("password"===t.type)return!0;if(t[e(635)]===e(645))return!1;const n=t[e(651)](e(498));if(n&&n[e(653)]()===e(549))return!1;if((t.autocomplete||"")[e(653)]().trim().split(/\s+/)[e(544)](Boolean)[e(475)](t=>D[e(487)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"").toLowerCase()[e(577)]()[e(634)](/\s+/)[e(544)](Boolean)[e(475)](t=>D[e(487)](t)))return!0}return!1}function R(t){return!P(t)&&(!!O(t)||!!C(t))}function U(){const t=l,e=[],n=t=>{const e=tt,n=t[e(534)]();if(n[e(655)]<=0||n[e(631)]<=0)return;const o=Math[e(506)](0,n[e(667)]),a=Math[e(506)](0,n[e(464)]),i=Math[e(506)](0,Math.min(n[e(630)],window[e(494)])-o),r=Math.max(0,Math.min(n[e(522)],window[e(606)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(453)]("["+L+t(628)+L+t(662))[t(576)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||"Redacted";e[a(473)]({...i,label:r})});return document.querySelectorAll(t(604)).forEach(o=>{const a=t;if(P(i=o)||!O(i)&&!C(i))return;var i;const r=n(o);if(!r)return;const c=N(o);e[a(473)]({...r,label:c})}),e}const B=()=>localStorage[l(547)](m)===l(575);function W(t){return e[l(668)](t)}function F(t,n){const o=l,a=localStorage[o(547)](T),i=null===a?void 0:Number(a),r=Number[o(661)](n)?Number(n):typeof i===o(510)&&Number.isFinite(i)?i:86400,c="https:"===window[o(450)][o(562)];e[o(542)](o(492),t,{expires:r/86400,path:"/",sameSite:"Lax",...c&&{secure:!0}})}function j(){const t=l;e[t(641)](t(492),{path:"/"})}function z(){const t=l,e=W(t(492));if(!B())return e&&j(),void(d="");if(e)return void(d=e);const n=typeof crypto!==t(656)&&"function"==typeof crypto[t(612)]?crypto[t(612)]():Date[t(497)]()+"-"+Math[t(489)]();d=n,F(d)}function _(){const t=["ignore","additional-name","min","visibilitychange","family-name","69RZwNMC","toDataURL","string","includes","Sensitive","#e5e7eb","959175aekTFo","country-name","cc-csc","load","input, textarea","secure","innerHeight","hidden","pixel body fallback failed","error","address-line1","89183EKMrmZ","randomUUID","getContext","postal-code","readAsDataURL","Credit card","round","code","address-line3","omit","stringify","localhost","INPUT","geoEnabled","hasFocus","speed","Email",'="mask"], [',"outerHTML","right","height","organization-title","cc-given-name","split","type","cc-exp-year","getCurrentPosition","scrollY","lon","[onclick]","remove","label","cc-type","middle","search","floor","application/json","address-level4","from","bday-month","getAttribute","page-blur","toLowerCase","strokeStyle","width","undefined","altitude","fillStyle","2292lFFcMD","bbox","isFinite",'=""]',"__intent__sdk__initialized__","body","clearTimeout","toISOString","left","get","tagName","isSecureContext","setAttribute","title","device","location","POSITION_UNAVAILABLE",'[role="button"]',"querySelectorAll","https://intent.callimacus.ai","hostname","Redacted","18KQPblO","sex","img","mask","data-intent-redact","Birthday","longitude","top","drawImage","cc-name","length","no-store","save","street-address","join","referrer","push","given-name","some","font","input-submit","address-level1","textContent","accuracy",'input[type="submit"]',"scroll","Enter","email","#9ca3af","address-line2","has","Unexpected FileReader result type","random","x-sl-access-token",'input[type="button"]',"intent_sid","bday","innerWidth","name","onLine","now","role","cc-exp","strokeRect","globalAlpha","context","canvas","deviceGeoSent","40wEqhQc","max","pageview","timestamp","html","number","intent:data-ip","address-level3","click","intent:data-sid-max-age","keydown","intent:data-base-url","x-intent-sid","disabled","indexOf","data-html2canvas-ignore","fillText","bottom","restore","Name","/events","4863530OHGyDr","defineProperty","intent:geo","<no visible label>","closest","removeEventListener",'[role="link"]',"center","getBoundingClientRect","startsWith","textAlign","onload","tel","data-intent-redact-label","attributes","lat","set","host","filter","coords","geolocation","getItem","/p.gif","searchbox","bday-year","focus","blur","webauthn","scrollX","key","latitude","#374151","onerror","intent:data-client-id","value","Phone","protocol","slice","target","cc-exp-month","result","organization","href","Organization","username","cc-number","nickname","address-level2","altitudeAccuracy","granted","forEach","trim","visibilityState","UNKNOWN","651770URROAT","1740qrloAq","country","page-focus","addEventListener","900495PxxCDr","entries","POST","pointerdown"];return(_=function(){return t})()}function G(){return z(),B()&&Boolean(d)&&(()=>{const t=l,e=localStorage[t(547)](M);return"string"==typeof e&&e[t(577)]()[t(467)]>0})()}function K(){return!G()||w}async function q(e){const n=l,o=function(t){const e=l,n=t.cloneNode(!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array[e(649)](t.attributes)[e(576)](({name:t,value:o})=>{n[e(671)](t,o)}),n[e(560)]=R(t)?H(t):t[e(560)],t[e(518)]&&n.setAttribute(e(518),""),n.outerHTML):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array.from(t[e(540)])[e(576)](({name:t,value:o})=>{n[e(671)](t,o)}),n.value=R(t)?H(t):t[e(560)],t.disabled&&n[e(671)]("disabled",""),n[e(629)]):t[e(629)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(554)],y:window[n(638)],width:window[n(494)],height:window.innerHeight,scale:1,logging:!1},ignoreElements:t=>t instanceof Element&&P(t)},r=await t(document[n(664)],i),c=r[n(655)],s=r[n(631)],u=Math[n(506)](c,s),d=.8*Math[n(506)](window.innerWidth,window.innerHeight),f=Math[n(591)](1,d/u),m=12/(a.height||1),p=Math[n(591)](1,Math.max(f,m)),h=Math[n(617)](c*p),g=Math.round(s*p),w=document.createElement(n(503));w.width=h,w[n(631)]=g;const y=w[n(613)]("2d");y[n(465)](r,0,0,c,s,0,0,h,g);const v=U();if(v[n(467)]){y[n(469)](),y[n(501)]=1;for(const t of v){const e=Math[n(617)](t.x*p),o=Math.round(t.y*p),a=Math[n(617)](t.w*p),i=Math.round(t.h*p);y.fillStyle=n(599),y.fillRect(e,o,a,i),y[n(654)]=n(485),y.lineWidth=Math.max(1,Math[n(646)](.02*Math[n(591)](a,i))),y[n(500)](e,o,a,i);const r=Math[n(506)](10,Math[n(591)](22,Math[n(646)](.35*i)));y[n(476)]=r+"px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",y[n(658)]=n(557),y[n(536)]=n(533),y.textBaseline=n(644);const c="<"+(t.label?.[n(577)]()[n(467)]?t[n(642)]:n(598))+">";y[n(521)](c,e+a/2,o+i/2,a-6)}y[n(523)]()}const b=w[n(595)]("image/jpeg",.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(655)],h:a.height},img:b}}function X(){const t=l,e=localStorage[t(547)](M),n={"Content-Type":t(647)};return e&&(n[t(490)]=e),d&&(n[t(517)]=d),n}async function V(t){const e=l,n=(localStorage[e(547)](S)??I)+e(525),o=localStorage[e(547)](M)??void 0,a=JSON[e(621)]({...t,clientId:o});try{if((await fetch(n,{method:e(587),headers:X(),body:a,keepalive:!0,credentials:e(620)})).ok)return}catch{}try{await async function(t){const e=l,n=(localStorage.getItem(S)??I)+e(548);if(!(await fetch(n,{method:"POST",headers:X(),body:JSON[e(621)](t),keepalive:!0,credentials:"omit",cache:e(468)})).ok)throw new Error(e(608))}(t)}catch{}}async function Z(t,e,n,o){const a=l;if(!G())return;const i={...e,localTime:(new Date)[a(666)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(560)]=R(n)?H(n):n[a(560)]);let r="",c={x:0,y:0,w:0,h:0},s="";const u=!(t===a(482)||t===a(652)||t===a(583)),d=Date[a(497)](),m=d-f>=5e3;let p=o;const h="click"===t||t===a(477)||t===a(507);u&&!p&&(h||m)&&(p=await q(n),f=d),p&&(r=p[a(509)],c=p[a(660)],s=p[a(459)]);const g=t===a(652)||t===a(583)||t===a(507),w={ts:Date[a(497)](),event:t,props:i,html:g?"":r,bbox:c,img:s};await V(w)}function Y(){return"enabled"===localStorage[l(547)](p)}async function J(t={}){const e=l;if(!G())return;const n=typeof t[e(541)]===e(510)&&"number"==typeof t[e(639)];if(n&&g)return;if(!n&&h)return;const o=localStorage.getItem(x),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(586)](t))a[n]=o;await Z(e(502),a,document[e(664)],{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?g=!0:h=!0}async function Q(){const t=l,e={canSend:G(),geoEnabled:Y(),deviceGeoSent:g};if(!e.canSend||!e[t(624)]||e[t(504)])return;const n={secure:window[t(670)],proto:location[t(562)],host:location.hostname};if(n[t(605)]||(t(543),t(622)),!(t(546)in navigator))return;if(v)return;v=!0,w=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};Date.now();try{await(navigator.permissions?.query({name:"geolocation"}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=tt;a||(a=!0,Date[i(497)](),Number[i(661)](t)&&Number[i(661)](n)&&await J({lat:t,lon:n,source:i(449)}),v=!1,w=!1,b=!0,e())};navigator[n(546)][n(637)](t=>{const e=tt,n=t[e(545)];i(n[e(556)],n[e(463)],(n[e(480)],typeof n[e(657)]===e(510)&&n[e(657)],typeof n[e(574)]===e(510)&&n[e(574)],"number"==typeof n.heading&&n.heading,typeof n[e(626)]===e(510)&&n[e(626)],t[e(508)],document[e(578)],document.hasFocus()))},t=>{const e=tt,n=t?.[e(618)];1===n||(2===n?e(451):3===n||e(579)),navigator[e(496)],document[e(578)],document[e(625)](),location[e(562)],i(void 0,void 0)},o)})}function $(){const t=l;if(y||!Y()||g)return;y=!0;const e=()=>{const t=tt;window[t(531)]("pointerdown",e,!0),window[t(531)](t(515),e,!0),Q()};window[t(584)](t(588),e,!0),window[t(584)]("keydown",e,!0)}function tt(t,e){const n=_();return(tt=function(t,e){return n[t-=449]})(t,e)}z();let et=!document[l(607)]&&document[l(625)](),nt=document[l(625)]();const ot=()=>{const t=l;if(K())return;const e=!document.hidden&&document[t(625)]();e&&(nt=!0),nt||e?e!==et&&(et=e,Z(t(e?583:652),{},document[t(664)])):et=e};function at(){const t=l;(function(){const t=l,e=globalThis;return!e[E]&&(Object[t(527)](e,E,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(584)](t(603),()=>{const e=t;G()&&(J(),(window[e(670)]||location[e(455)]===e(622))&&(Y()&&$(),window[e(584)](e(551),()=>{!g&&Y()&&!v&&b&&Q()}),document[e(584)](e(592),()=>{!document[e(607)]&&!g&&Y()&&!v&&b&&Q()})))}),window.addEventListener("storage",e=>{const n=t;e[n(555)]===m&&(function(){const t=l;return localStorage[t(547)](m)===t(575)}()?(h=!1,J(),Y()&&$()):(h=!1,g=!1)),e[n(555)]===p&&(Y()?$():g=!1)}),window.addEventListener(t(603),()=>{const e=t;G()&&Z(e(507),{url:window[e(450)][e(568)],title:document[e(672)],ref:document[e(472)]},document[e(664)])}),addEventListener(t(588),function(t,e){let n=0;return(...o)=>{const a=Date[tt(497)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(K())return;const o=e[n(564)]instanceof Element?e[n(564)][n(530)](A):null;o instanceof HTMLElement&&(u=q(o))},50),{capture:!0,passive:!0}),addEventListener(t(513),async e=>{const n=t;if(K())return;if(!(e[n(564)]instanceof Element))return;const o=e[n(564)][n(530)](A);if(!(o instanceof HTMLElement))return;const a=function(t){const e=l;return t[e(651)]("aria-label")??t[e(672)]??t[e(479)]?.[e(577)]()??e(529)}(o);(async()=>{const t=n,e=u?await u:void 0;u=void 0,Z(t(513),{tag:o.tagName,label:a},o,e)})()},!0),addEventListener(t(515),e=>{const n=t;if(!K()&&e[n(555)]===n(483)){const t=e[n(564)];if(t instanceof HTMLElement&&(t[n(669)]===n(623)||"TEXTAREA"===t[n(669)])){const e=t instanceof HTMLInputElement?t[n(495)]:void 0,o=t.id||void 0;Z("input-submit",{tag:t.tagName,name:e??o},t)}}},{capture:!0}),[t(551),t(552)].forEach(e=>{window[t(584)](e,ot)}),document.addEventListener(t(592),ot),window[t(584)](t(482),function(t,e){let n;return(...o)=>{void 0!==n&&window[tt(665)](n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;K()||Z(e(482),{scrollX:window[e(554)],scrollY:window.scrollY},document[e(664)])},250),{passive:!0}),window.intent??={send(e,n){const o=t;G()&&Z(e,n,document[o(664)])}})}function it(){const t=["function","196170VPptIS","33PGxMdh","baseUrl","3221570EjbgMO","intent:data-sid-max-age","isFinite","number","intent:data-client-id","intent:data-base-url","undefined","randomUUID","https://intent.callimacus.ai","1155001HNtyFV","now","intent:consent","43640HiCSnu","setItem","granted","enabled","6JxCyYg","56PMRjGE","clientId","sidMaxAgeSeconds","intent:geo","consent","intent:data-ip","intent_sid","1220148fmvaAX","235ULmRXj","geo","3678269woXKGG","20jegwWK","14517576lkmuce"];return(it=function(){return t})()}function rt(t,e){const n=ut;try{if(void 0===e)return;localStorage[n(183)](t,e?t===n(181)?n(184):n(185):"disabled")}catch{}}function ct(t={}){const e=ut;if(localStorage[e(183)](e(174),t[e(188)]??""),localStorage[e(183)](e(192),t.ip??""),localStorage[e(183)](e(175),t[e(169)]??e(178)),typeof t[e(189)]===e(173)&&localStorage[e(183)](e(171),String(t[e(189)])),rt("intent:consent",t[e(191)]),rt(e(190),t[e(196)]),t[e(191)]){if(!W(e(193))){F(typeof crypto!==e(176)&&typeof crypto.randomUUID===e(166)?crypto[e(177)]():Date[e(180)]()+"-"+Math.random(),t[e(189)])}}at()}function st(){return W("intent_sid")}function lt(){z()}function ut(t,e){const n=it();return(ut=function(t,e){return n[t-=163]})(t,e)}function dt(){j()}function ft(t){const e=ut;Number[e(172)](t)&&localStorage.setItem(e(171),String(t));const n=W(e(193));n&&F(n,t)}!function(){const t=ut,e=it();for(;;)try{if(673571===parseInt(t(179))/1+parseInt(t(167))/2*(parseInt(t(168))/3)+parseInt(t(182))/4*(-parseInt(t(195))/5)+-parseInt(t(186))/6*(-parseInt(t(163))/7)+parseInt(t(187))/8*(-parseInt(t(194))/9)+parseInt(t(164))/10*(parseInt(t(170))/11)+-parseInt(t(165))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{dt as clearIntentSessionId,lt as ensureIntentSessionId,st as getIntentSessionId,ct as initIntent,rt as setFlag,ft as setIntentSessionMaxAge};
|