@solomei-ai/intent 1.6.0 → 1.7.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/README.md +17 -7
- package/dist/esm/index.js +1 -1
- package/dist/intent.umd.min.js +2 -2
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -175,17 +175,24 @@ When consent is granted, the Intent SDK automatically collects the following dat
|
|
|
175
175
|
The SDK **automatically redacts** the following sensitive information:
|
|
176
176
|
|
|
177
177
|
- **Password fields** (`<input type="password">`)
|
|
178
|
-
- **Form fields with sensitive autocomplete attributes
|
|
179
|
-
- Names (`name`, `given-name`, `
|
|
178
|
+
- **Form fields with sensitive autocomplete attributes** (both `<input>` and `<textarea>` elements):
|
|
179
|
+
- Names (`name`, `given-name`, `additional-name`, `family-name`, `nickname`, `username`)
|
|
180
180
|
- Email addresses (`email`)
|
|
181
181
|
- Phone numbers (`tel`)
|
|
182
|
-
- Addresses
|
|
183
|
-
|
|
182
|
+
- Addresses:
|
|
183
|
+
- Street addresses (`street-address`, `address-line1`, `address-line2`, `address-line3`)
|
|
184
|
+
- Administrative levels (`address-level1`, `address-level2`, `address-level3`, `address-level4`)
|
|
185
|
+
- Postal and country (`postal-code`, `country`, `country-name`)
|
|
186
|
+
- Credit card details:
|
|
187
|
+
- Card numbers and security (`cc-number`, `cc-exp`, `cc-exp-month`, `cc-exp-year`, `cc-csc`, `cc-type`)
|
|
188
|
+
- Cardholder names (`cc-name`, `cc-given-name`, `cc-additional-name`, `cc-family-name`)
|
|
184
189
|
- Birthday information (`bday`, `bday-day`, `bday-month`, `bday-year`)
|
|
185
190
|
- Organization details (`organization`, `organization-title`)
|
|
186
|
-
- Other sensitive fields (`sex`, `
|
|
191
|
+
- Other sensitive fields (`sex`, `webauthn`)
|
|
187
192
|
|
|
188
|
-
|
|
193
|
+
**Exception:** Search fields (`<input type="search">` or elements with `role="searchbox"`) are NOT redacted, even if they have sensitive autocomplete attributes, to preserve search functionality in captured events.
|
|
194
|
+
|
|
195
|
+
Redacted fields are replaced with placeholder text like `<Password>`, `<Email>`, `<Credit card>`, `<Name>`, `<Phone>`, `<Address>`, etc., in both the HTML content and screenshots.
|
|
189
196
|
|
|
190
197
|
### Data Transmission & Storage
|
|
191
198
|
|
|
@@ -224,9 +231,12 @@ Use the `data-intent-redact` attribute to mark elements for redaction:
|
|
|
224
231
|
|
|
225
232
|
#### Option 1: Redact with default label
|
|
226
233
|
```html
|
|
227
|
-
<!-- Element will be masked with a gray placeholder labeled "<
|
|
234
|
+
<!-- Element will be masked with a gray placeholder labeled "<Sensitive>" -->
|
|
228
235
|
<div data-intent-redact>Sensitive content here</div>
|
|
229
236
|
<input type="text" data-intent-redact />
|
|
237
|
+
|
|
238
|
+
<!-- Or explicitly use "mask" value for "<Redacted>" label -->
|
|
239
|
+
<div data-intent-redact="mask">Sensitive content</div>
|
|
230
240
|
```
|
|
231
241
|
|
|
232
242
|
#### Option 2: Redact with custom label
|
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(t,e){const o=i();return(n=function(t,e){return o[t-=488]})(t,e)}async function o(){const t=n,e=[];let o="browser API";if(function(t){const e=n;return e(494)in t&&typeof t[e(494)]!==e(509)}(navigator)){const n=navigator[t(494)];n?.[t(585)]&&e.push(n[t(585)]),typeof n?.[t(584)]===t(540)&&e[t(525)]("~"+n[t(584)]+t(493)),"number"==typeof n?.[t(554)]&&e.push(n[t(554)]+" ms"),n?.[t(559)]&&e.push(t(559))}else{const a=function(t=20){const e=n,o=performance.getEntriesByType("navigation")[e(541)](t=>"navigation"===t[e(574)]),a=o?Math.max(0,o[e(519)]-o.requestStart):void 0,i=performance[e(605)]("resource").filter(t=>t[e(574)]===e(580));let r=0,c=0;for(const n of i.slice(0,Math[e(547)](0,t))){const t=n[e(561)]>0?n[e(561)]:n.transferSize>0?n[e(539)]:0,o=n.duration;t>0&&o>0&&Number[e(568)](o)&&(r+=t,c+=o)}const s=c>0?8*r/c:void 0;return{downlinkMbps:typeof s===e(540)?s/1e3:void 0,rttMs:a}}();typeof a.downlinkMbps===t(540)&&e[t(525)]("~"+a[t(579)].toFixed(1)+" Mbps"),typeof a[t(576)]===t(540)&&e[t(525)]("TTFB ~"+Math.round(a[t(576)])+t(555)),o=t(581)}const a=performance[t(605)]("navigation")[t(541)](e=>e[t(574)]===t(595));if(a){const n=Math[t(547)](0,a[t(519)]-a[t(513)]);!e.some(e=>e[t(501)](t(548)))&&e[t(525)](t(512)+Math.round(n)+t(555))}return e[t(546)]?t(551)+e[t(517)](", ")+" ("+o+")":void 0}function a(){const t=n;if(!function(t){const e=n;return e(489)in t&&typeof t[e(489)]!==e(509)}(navigator))return;const e=navigator[t(489)],o=Array[t(593)](e[t(558)])?e[t(558)][t(497)](e=>e[t(491)]+" "+e.version)[t(517)](", "):void 0,a=e[t(529)]?e[t(529)]+(e.mobile?" (mobile)":""):void 0;return[o&&t(591)+o,a&&t(518)+a][t(502)](Boolean)[t(517)](t(521))||void 0}function i(){const t=["no SW","getBattery","DeviceOrientationEvent","undefined","hardwareConcurrency","x (avail ","TTFB ~","requestStart","getItem","function","Device geolocation: enabled","join","Platform: ","responseStart","User agent: "," | ","charging","fine","orientation","push","height","9kaMoka",", maxTouchPoints ","platform","Languages: ","language","°, γ ","intent:geo","type","not charging","403896LnBovO","7uDMyKM",", display-mode standalone: ","transferSize","number","find","Local time: ","reclined"," (UTC","upright","length","max","TTFB","enabled","innerHeight","Network: ","cookieEnabled","n/a","rtt"," ms","padStart","Referrer: ","brands","saveData","-bit)","encodedBodySize","CookiesEnabled: ","colorDepth","matches","gamma"," cores","width","isFinite","Tilt: ","abs","referrer","unknown","204SzipPG","entryType","serviceWorker","rttMs","deviceorientation","Language: ","downlinkMbps","resource","inferred","1032594kVZvwA","availWidth","downlink","effectiveType","setTimeout","(pointer: fine)","flat","DateTimeFormat","(display-mode: standalone)","UA brands: ","addEventListener","isArray","yes","navigation","onLine","583362rdsYJl","Pointer/Touch: ","userAgent","5785560tgLLzx","languages","1478270xJvZLc","maxTouchPoints","controller","getEntriesByType","doNotTrack","(pointer: coarse)","165145GTQTRu","userAgentData","Screen: ","brand","647374dbquIe"," Mbps","connection","round","beta","map","getTimezoneOffset","timeZone","SW-controlled","startsWith","filter","Viewport: ","removeEventListener","PWA: "];return(i=function(){return t})()}async function r(t=400){const e=n;if(e(508)in window&&window.isSecureContext)return new Promise(o=>{const a=e;let i=!1;const r=t=>{const e=n,a=typeof t[e(496)]===e(540)?t.beta:void 0,c=typeof t[e(565)]===e(540)?t[e(565)]:void 0;if(void 0===a||void 0===c)return;if(i)return;i=!0,window[e(504)](e(577),r);const s=function(t,e){const o=n,a=Math.abs(t),i=Math.abs(e);return o(a<15&&i<15?588:a>=60?545:543)}(a,c);o(e(569)+s+" (β "+Math[e(495)](a)+e(532)+Math[e(495)](c)+"°)")};window[a(586)](()=>{const t=a;i||(i=!0,window[t(504)](t(577),r),o(void 0))},t),window[a(592)](a(577),r,{passive:!0})})}async function c(){const t=n;var e;if("getBattery"in(e=navigator)&&"function"==typeof e[n(507)])try{const e=await navigator[t(507)](),n=Math.round(100*e.level);return"Battery: "+[(Number[t(568)](n)?n:0)+"%",e[t(522)]?"charging":t(535)][t(517)](", ")}catch{return}}async function s(){const t=n,e=(new(Intl[t(589)])).resolvedOptions()[t(499)],i=function(t){const e=n,o=t<=0?"+":"-",a=Math[e(570)](t);return""+o+String(Math.floor(a/60))[e(556)](2,"0")+":"+String(a%60)[e(556)](2,"0")}((new Date)[t(498)]()),s=[];s[t(525)](t(578)+navigator[t(531)]),navigator[t(601)]?.length&&s.push(t(530)+navigator.languages[t(517)](", ")),s[t(525)](t(520)+navigator[t(599)]);const u=a();u&&s[t(525)](u),s[t(525)]("Timezone: "+e+t(544)+i+")"),s[t(525)](t(542)+(new Date).toString());const d=window.devicePixelRatio||1;s[t(525)](t(490)+screen[t(567)]+"x"+screen[t(526)]+" @"+d+t(511)+screen[t(583)]+"x"+screen.availHeight+", "+screen[t(563)]+t(560));const l=screen.orientation&&t(534)in screen[t(524)]?screen[t(524)][t(534)]:void 0;s.push(t(503)+window.innerWidth+"x"+window[t(550)]+(l?", orientation "+l:"")),s[t(525)]("CPU: "+navigator[t(510)]+t(566));const f=await o();f&&s[t(525)](f),s.push(function(){const t=n,e="function"==typeof matchMedia&&matchMedia(t(607))[t(564)],o="function"==typeof matchMedia&&matchMedia(t(587))[t(564)],a=e?"coarse":t(o?523:572),i=typeof navigator[t(603)]===t(540)?navigator[t(603)]:0;return t(598)+a+t(528)+i}());const m=await c();m&&s[t(525)](m),s[t(525)](t(562)+(navigator[t(552)]?t(594):"no")+"; DNT: "+(navigator[t(606)]??t(553))),s.push("Online: "+(navigator[t(596)]?t(594):"no")),document[t(571)]&&s.push(t(557)+document[t(571)]),s[t(525)](function(){const t=n,e=typeof matchMedia===t(515)&&matchMedia(t(590))[t(564)],o=Boolean(navigator[t(575)]?.[t(604)]);return t(505)+t(o?500:506)+t(538)+(e?t(594):"no")}());const p=await r();p&&s.push(p);const h=typeof localStorage!==t(509)&&localStorage[t(514)](t(533))===t(549);return s[t(525)](h?t(516):"Device geolocation: disabled"),s[t(517)](t(521))}!function(){const t=n,e=i();for(;;)try{if(874250===-parseInt(t(537))/1*(-parseInt(t(536))/2)+parseInt(t(597))/3+parseInt(t(573))/4*(-parseInt(t(488))/5)+parseInt(t(582))/6+-parseInt(t(492))/7+parseInt(t(600))/8+parseInt(t(527))/9*(parseInt(t(602))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const u=_;function d(){const t=["bday-day","role","textContent","readAsDataURL","webauthn","innerWidth","round","startsWith","email","defineProperty","cc-exp-month","setAttribute","116675GqLzjJ","removeEventListener","image/jpeg","length","intent:data-sid-max-age","organization","scrollX","POSITION_UNAVAILABLE","blur","30kSDquH","latitude","given-name","onerror","altitudeAccuracy","width","getCurrentPosition","click","address-level4","slice",'[role="link"]',"remove","from","querySelectorAll","country","right","Password",'input[type="submit"]',"getItem","hasFocus","localhost","longitude","password","html","tagName","font","Credit card","autocomplete","45688SpRPvm","intent_sid","closest","speed","family-name","forEach","floor","Sensitive","now","globalAlpha","canvas","split","includes","TIMEOUT","toLowerCase","POST","street-address","#9ca3af","innerHeight","bbox","Redacted","visibilityState","center","tel","hostname","protocol","#e5e7eb","save","intent:consent","onLine","strokeStyle","name","timestamp","value","isFinite","button","function","heading","scrollY","title","drawImage","coords","load","img","#374151","cc-number","Sex","data-intent-redact","restore","onload","address-line1","address-line3","body","pageview","x-intent-sid","pixel body fallback failed","randomUUID","page-focus","outerHTML","hidden","postal-code","host","min","Email","Lax","key","max","sex","trim","textAlign","filter","90320FNlADh","geolocation","bday-year","referrer","bday","__intent__sdk__initialized__","cc-given-name","133ZbdEXn","enabled","middle","Phone","granted","x-sl-access-token","entries","cc-type","204212OGVIwJ","country-name","cloneNode","additional-name",'[role="button"]',"address-level1","deviceGeoSent","left","canSend","110157WWiGqu","set","getContext","a[href]","number","hasAttribute","height",'=""]',"Enter","[onclick]","join","aria-label","error","push","Organization","address-level3","pointerdown","input-submit","undefined","intent:geo","addEventListener","lon","FileReader error","page-blur","target","123657jjZGMV","fillStyle","30aAxipk","bottom","Unexpected FileReader result type","/events","https:","ignore","https://intent.callimacus.ai","secure","get","px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","address-line2","application/json","disabled","cc-name","isSecureContext","clearTimeout","address-level2","120789YaZNaa","Address","label","attributes","intent:data-ip","permissions","scroll","createElement","getAttribute","some","toISOString","searchbox","top","location","altitude","omit","message","fillRect","input, textarea","cc-family-name","mask","visibilitychange","has","organization-title","storage","toDataURL","nickname","type","<no visible label>"];return(d=function(){return t})()}!function(){const t=_,e=d();for(;;)try{if(111474===parseInt(t(443))/1+parseInt(t(419))/2+-parseInt(t(468))/3+-parseInt(t(434))/4+-parseInt(t(311))/5*(-parseInt(t(320))/6)+-parseInt(t(426))/7*(parseInt(t(348))/8)+-parseInt(t(487))/9*(-parseInt(t(470))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let l,f="",m=0;const p=u(376),h=u(462);let g=!1,w=!1,y=!1,v=!1,b=!1,M=!1;const x="intent:data-client-id",S=u(491),I="intent:data-base-url",T=u(476),E=u(315),L=u(424),A=[u(383),u(446),"a",u(337),'input[type="button"]',u(438),u(330),u(452)][u(453)](","),k=u(395),D=new Set(["name",u(322),u(437),u(352),u(296),"username","email",u(371),u(316),u(293),u(364),u(398),u(480),"address-line3","address-level1",u(486),"address-level3",u(328),"country",u(435),u(408),"cc-name",u(425),"cc-additional-name",u(289),u(393),"cc-exp",u(309),"cc-exp-year","cc-csc",u(433),u(423),u(299),"bday-month",u(421),u(415),u(303)]);function H(t){return"<"+N(t)+">"}function N(t){const e=u,n=(t.getAttribute?.("data-intent-redact-label")??"")[e(416)]();if(n)return n;const o=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?(t[e(347)]||"")[e(362)]()[e(416)]().split(/\s+/)[e(418)](Boolean):[];return t instanceof HTMLInputElement&&t[e(297)]===e(342)?e(336):o[e(496)](t=>t[e(306)]("cc-"))?e(346):o[e(496)](t=>["name","given-name",e(352),e(437),e(483),e(425),e(289)][e(360)](t))?"Name":o[e(360)](e(307))?e(411):o.includes("tel")?e(429):o[e(496)](t=>t[e(306)](e(423)))?"Birthday":o[e(360)]("sex")?e(394):o[e(496)](t=>[e(364),"address-line1",e(480),e(399),e(439),e(486),e(458),e(328),e(408),e(334),"country-name"][e(360)](t))?e(488):o.includes(e(316))||o.includes("organization-title")?e(457):t[e(495)]?.(k)?.[e(362)]()===e(290)?e(368):e(355)}function B(t){const e=u;return t[e(448)]("data-html2canvas-ignore")||t[e(495)](k)?.[e(362)]()===e(475)}function P(t){const e=u,n=t[e(495)](k);return""===n||"mask"===n?.[e(362)]()}function U(t){const e=u;if(t instanceof HTMLInputElement){if(t[e(297)]===e(342))return!0;if("search"===t[e(297)])return!1;const n=t[e(495)](e(300));if(n&&n[e(362)]()===e(498))return!1;if((t.autocomplete||"").toLowerCase()[e(416)]()[e(359)](/\s+/)[e(418)](Boolean)[e(496)](t=>D[e(292)](t)))return!0}if(t instanceof HTMLTextAreaElement){if((t.autocomplete||"")[e(362)]()[e(416)]()[e(359)](/\s+/)[e(418)](Boolean)[e(496)](t=>D[e(292)](t)))return!0}return!1}function C(t){return!B(t)&&(!!P(t)||!!U(t))}function O(){const t=u,e=[],n=t=>{const e=_,n=t.getBoundingClientRect();if(n.width<=0||n[e(449)]<=0)return;const o=Math[e(414)](0,n[e(441)]),a=Math[e(414)](0,n[e(499)]),i=Math[e(414)](0,Math[e(410)](n[e(335)],window[e(304)])-o),r=Math[e(414)](0,Math[e(410)](n[e(471)],window[e(366)])-a);return i<=0||r<=0?void 0:{x:o,y:a,w:i,h:r}};document[t(333)]("["+k+'="mask"], ['+k+t(450))[t(353)](o=>{const a=t,i=n(o);if(!i)return;const r=N(o)||a(368);e[a(456)]({...i,label:r})});return document[t(333)](t(288)).forEach(t=>{if(B(o=t)||!P(o)&&!U(o))return;var o;const a=n(t);if(!a)return;const i=N(t);e.push({...a,label:i})}),e}const R=()=>localStorage[u(338)](p)===u(430);function F(t){return e[u(478)](t)}function z(t,n){const o=u,a=localStorage.getItem(E),i=null===a?void 0:Number(a),r=Number[o(382)](n)?Number(n):typeof i===o(447)&&Number[o(382)](i)?i:86400,c=window[o(500)][o(373)]===o(474);e[o(444)](o(349),t,{expires:r/86400,path:"/",sameSite:o(412),...c&&{secure:!0}})}function W(){const t=u;e[t(331)](t(349),{path:"/"})}function _(t,e){const n=d();return(_=function(t,e){return n[t-=287]})(t,e)}function j(){const t=u,e=F("intent_sid");if(!R())return e&&W(),void(f="");if(e)return void(f=e);const n=typeof crypto!==t(461)&&typeof crypto[t(404)]===t(384)?crypto[t(404)]():Date[t(356)]()+"-"+Math.random();f=n,z(f)}function G(){return j(),R()&&Boolean(f)&&(()=>{const t=u,e=localStorage[t(338)](x);return"string"==typeof e&&e[t(416)]()[t(314)]>0})()}function q(){return!G()||y}async function Z(e){const n=u,o=function(t){const e=u,n=t[e(436)](!1);return n instanceof HTMLInputElement&&t instanceof HTMLInputElement?(Array.from(t[e(490)])[e(353)](({name:t,value:o})=>{n[e(310)](t,o)}),n[e(381)]=C(t)?H(t):t[e(381)],t[e(482)]&&n[e(310)](e(482),""),n[e(406)]):n instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement?(Array[e(332)](t[e(490)])[e(353)](({name:t,value:o})=>{n[e(310)](t,o)}),n[e(381)]=C(t)?H(t):t[e(381)],t.disabled&&n[e(310)](e(482),""),n[e(406)]):t[e(406)]}(e),a=e.getBoundingClientRect(),i={useCORS:!0,...{x:window[n(317)],y:window[n(386)],width:window[n(304)],height:window[n(366)],scale:1},ignoreElements:t=>t instanceof Element&&B(t)},r=await t(document.body,i),c=r[n(325)],s=r[n(449)],d=Math[n(414)](c,s),l=.8*Math.max(window[n(304)],window.innerHeight),f=Math[n(410)](1,l/d),m=12/(a[n(449)]||1),p=Math[n(410)](1,Math[n(414)](f,m)),h=Math[n(305)](c*p),g=Math[n(305)](s*p),w=document[n(494)](n(358));w[n(325)]=h,w[n(449)]=g;const y=w[n(445)]("2d");y[n(388)](r,0,0,c,s,0,0,h,g);const v=O();if(v[n(314)]){y[n(375)](),y[n(357)]=1;for(const t of v){const e=Math[n(305)](t.x*p),o=Math[n(305)](t.y*p),a=Math.round(t.w*p),i=Math.round(t.h*p);y[n(469)]=n(374),y[n(287)](e,o,a,i),y[n(378)]=n(365),y.lineWidth=Math.max(1,Math[n(354)](.02*Math[n(410)](a,i))),y.strokeRect(e,o,a,i);const r=Math[n(414)](10,Math.min(22,Math[n(354)](.35*i)));y[n(345)]=r+n(479),y[n(469)]=n(392),y[n(417)]=n(370),y.textBaseline=n(428);const c="<"+(t[n(489)]?.[n(416)]()[n(314)]?t[n(489)]:n(355))+">";y.fillText(c,e+a/2,o+i/2,a-6)}y[n(396)]()}const b=w[n(295)](n(313),.8);return{html:o,bbox:{x:a.x,y:a.y,w:a[n(325)],h:a[n(449)]},img:b}}function J(){const t=u,e=localStorage[t(338)](x),n={"Content-Type":t(481)};return e&&(n[t(431)]=e),f&&(n[t(402)]=f),n}async function V(t,e){const n=u,o=(localStorage[n(338)](I)??T)+n(473),a=localStorage[n(338)](x)??void 0,i=JSON.stringify({...t,clientId:a});try{if((await fetch(o,{method:n(363),headers:J(),body:i,keepalive:e,credentials:n(502)})).ok)return}catch{}try{await async function(t,e=!1){const n=u,o=(localStorage[n(338)](I)??T)+"/p.gif";if(!(await fetch(o,{method:n(363),headers:J(),body:JSON.stringify(t),keepalive:e,credentials:n(502),cache:"no-store"})).ok)throw new Error(n(403))}(t,e)}catch{}}async function X(t,e,n,o){const a=u;if(!G())return;const i={...e,localTime:(new Date)[a(497)]()};(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&(i[a(381)]=C(n)?H(n):n[a(381)]);let r="",c={x:0,y:0,w:0,h:0},s="";const d=!("scroll"===t||"page-blur"===t||t===a(405)),l=Date[a(356)](),f=l-m>=5e3;let p=o;const h=t===a(327)||t===a(460)||t===a(401);d&&!p&&(h||f)&&(p=await Z(n),m=l),p&&(r=p[a(343)],c=p[a(367)],s=p[a(391)]);const g=t===a(466)||t===a(405)||t===a(401),w={ts:Date[a(356)](),event:t,props:i,html:g?"":r,bbox:c,img:s},y=document[a(369)]===a(407)||t===a(466);await V(w,y)}function Y(){const t=u;return localStorage[t(338)](h)===t(427)}async function K(t={}){const e=u;if(!G())return;const n=typeof t.lat===e(447)&&typeof t[e(464)]===e(447);if(n&&w)return;if(!n&&g)return;const o=localStorage[e(338)](S),a={context:await s()};o&&(a.ip=o);for(const[n,o]of Object[e(432)](t))a[n]=o;await X("context",a,document.body,{html:"",bbox:{x:0,y:0,w:0,h:0},img:""}),n?w=!0:g=!0}async function Q(){const t=u,e={canSend:G(),geoEnabled:Y(),deviceGeoSent:w};if(!e[t(442)]||!e.geoEnabled||e[t(440)])return;const n={secure:window[t(484)],proto:location[t(373)],host:location[t(372)]};if(n[t(477)]||t(409),!(t(420)in navigator))return;if(b)return;b=!0,y=!0;const o={enableHighAccuracy:!1,maximumAge:3e5,timeout:2e4};try{await(navigator[t(492)]?.query({name:t(420)}))}catch(t){}await new Promise(e=>{const n=t;let a=!1;const i=async(t,n,o)=>{const i=_;a||(a=!0,Number[i(382)](t)&&Number[i(382)](n)&&await K({lat:t,lon:n,source:"device"}),b=!1,y=!1,M=!0,e())};navigator[n(420)][n(326)](t=>{const e=_,n=t[e(389)];i(n[e(321)],n[e(341)],(n.accuracy,typeof n[e(501)]===e(447)&&n[e(501)],typeof n.altitudeAccuracy===e(447)&&n[e(324)],typeof n[e(385)]===e(447)&&n[e(385)],typeof n[e(351)]===e(447)&&n.speed,t[e(380)],document[e(369)],document.hasFocus()))},t=>{const e=_,n=t?.code;1===n||(2===n?e(318):3!==n||e(361)),t?.[e(503)],navigator[e(377)],document[e(369)],document[e(339)](),location[e(373)],location[e(372)],i(void 0,void 0)},o)})}function $(){const t=u;if(v||!Y()||w)return;v=!0;const e=()=>{const t=_;window[t(312)](t(459),e,!0),window.removeEventListener("keydown",e,!0),Q()};window[t(463)]("pointerdown",e,!0),window.addEventListener("keydown",e,!0)}j();let tt=!document[u(407)]&&document[u(339)](),et=document[u(339)]();const nt=()=>{const t=u;if(q())return;const e=!document[t(407)]&&document[t(339)]();e&&(et=!0),et||e?e!==tt&&(tt=e,X(t(e?405:466),{},document[t(400)])):tt=e};function ot(){const t=u;(function(){const t=u,e=globalThis;return!e[L]&&(Object[t(308)](e,L,{value:!0,configurable:!1,enumerable:!1,writable:!1}),!0)})()&&(window[t(463)](t(390),()=>{const e=t;G()&&(K(),(window.isSecureContext||location[e(372)]===e(340))&&(Y()&&$(),window[e(463)]("focus",()=>{!w&&Y()&&!b&&M&&Q()}),document[e(463)](e(291),()=>{!document.hidden&&!w&&Y()&&!b&&M&&Q()})))}),window.addEventListener(t(294),e=>{const n=t;e[n(413)]===p&&("granted"===localStorage[u(338)](p)?(g=!1,K(),Y()&&$()):(g=!1,w=!1)),e[n(413)]===h&&(Y()?$():w=!1)}),window.addEventListener(t(390),()=>{const e=t;G()&&X(e(401),{url:window.location.href,title:document[e(387)],ref:document[e(422)]},document[e(400)])}),addEventListener(t(459),function(t,e){let n=0;return(...o)=>{const a=Date[_(356)]();a-n>=e&&(n=a,t(...o))}}(e=>{const n=t;if(q())return;const o=e.target instanceof Element?e[n(467)][n(350)](A):null;o instanceof HTMLElement&&(l=Z(o))},50),{capture:!0,passive:!0}),addEventListener(t(327),async e=>{const n=t;if(q())return;const o=e[n(467)]instanceof Element?e[n(467)][n(350)](A):null;if(!(o instanceof HTMLElement))return;const a=function(t){const e=u;return t[e(495)](e(454))??t.title??t[e(301)]?.trim()??e(298)}(o),i=l?await l:void 0;l=void 0,await X("click",{tag:o[n(344)],label:a},o,i)},!0),addEventListener("keydown",e=>{const n=t;if(!q()&&e[n(413)]===n(451)){const t=e.target;if(t instanceof HTMLElement&&("INPUT"===t[n(344)]||"TEXTAREA"===t[n(344)])){const e=t instanceof HTMLInputElement?t[n(379)]:void 0,o=t.id||void 0;X(n(460),{tag:t.tagName,name:e??o},t)}}},{capture:!0}),["focus",t(319)][t(353)](e=>{window[t(463)](e,nt)}),document[t(463)](t(291),nt),window[t(463)](t(493),function(t,e){let n;return(...o)=>{void 0!==n&&window[_(485)](n),n=window.setTimeout(()=>{n=void 0,t(...o)},e)}}(()=>{const e=t;q()||X("scroll",{scrollX:window[e(317)],scrollY:window.scrollY},document[e(400)])},250),{passive:!0}),window.intent??={send(t,e){G()&&X(t,e,document.body)}})}function at(t,e){const n=st;try{if(void 0===e)return;localStorage[n(351)](t,n(e?"intent:consent"===t?359:360:343))}catch{}}function it(t={}){const e=st;if(localStorage[e(351)]("intent:data-client-id",t[e(366)]??""),localStorage[e(351)](e(345),t.ip??""),localStorage[e(351)](e(357),t[e(372)]??e(368)),typeof t[e(355)]===e(371)&&localStorage[e(351)]("intent:data-sid-max-age",String(t[e(355)])),at(e(353),t.consent),at(e(354),t[e(346)]),t[e(370)]){if(!F("intent_sid")){z(typeof crypto!==e(361)&&typeof crypto[e(358)]===e(352)?crypto.randomUUID():Date.now()+"-"+Math.random(),t[e(355)])}}ot()}function rt(){return F(st(367))}function ct(){j()}function st(t,e){const n=lt();return(st=function(t,e){return n[t-=343]})(t,e)}function ut(){W()}function dt(t){const e=st;Number[e(347)](t)&&localStorage[e(351)]("intent:data-sid-max-age",String(t));const n=F(e(367));n&&z(n,t)}function lt(){const t=["275890MIPsIG","disabled","1370322SdSUAp","intent:data-ip","geo","isFinite","14EYXDFe","16AjbVhO","72SdbPLy","setItem","function","intent:consent","intent:geo","sidMaxAgeSeconds","536525vvEvkj","intent:data-base-url","randomUUID","granted","enabled","undefined","15ecBtCW","108136GUopuC","737954sAidAT","218896ARvTFw","clientId","intent_sid","https://intent.callimacus.ai","54453LXuLaZ","consent","number","baseUrl"];return(lt=function(){return t})()}!function(){const t=st,e=lt();for(;;)try{if(299645===parseInt(t(363))/1+parseInt(t(348))/2*(-parseInt(t(369))/3)+parseInt(t(365))/4*(parseInt(t(362))/5)+-parseInt(t(344))/6+parseInt(t(364))/7*(parseInt(t(349))/8)+parseInt(t(350))/9*(parseInt(t(373))/10)+-parseInt(t(356))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();export{ut as clearIntentSessionId,ct as ensureIntentSessionId,rt as getIntentSessionId,it as initIntent,at as setFlag,dt as setIntentSessionMaxAge};
|
|
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};
|