1import{e as d,t as h,b as i,l as p,P as m,q as s}from"./createLucideIcon-CK4nXoeO.js";import{g as f}from"./auth-DYG4wfmy.js";const T=["global","us","gb","de","fr","ar","au","at","br","ca","zh","in","id","it","ja","mx","nl","pl","pt","sg","ko","es","se","ch","tr","ae"],o={global:{region:null,lang:"en"},us:{region:"US",lang:"en"},gb:{region:"GB",lang:"en"},ca:{region:"CA",lang:"en"},au:{region:"AU",lang:"en"},in:{region:"IN",lang:"en"},sg:{region:"SG",lang:"en"},ae:{region:"AE",lang:"en"},de:{region:"DE",lang:"de"},at:{region:"AT",lang:"de"},ch:{region:"CH",lang:"de"},fr:{region:"FR",lang:"fr"},es:{region:"ES",lang:"es"},mx:{region:"MX",lang:"es"},ar:{region:"AR",lang:"es"},it:{region:"IT",lang:"it"},br:{region:"BR",lang:"pt"},pt:{region:"PT",lang:"pt"},nl:{region:"NL",lang:"nl"},pl:{region:"PL",lang:"pl"},se:{region:"SE",lang:"sv"},tr:{region:"TR",lang:"tr"},id:{region:"ID",lang:"id"},ja:{region:"JP",lang:"ja"},ko:{region:"KR",lang:"ko"},zh:{region:"CN",lang:"zh"}},g={global:"Global",us:"United States",gb:"United Kingdom",ca:"Canada",au:"Australia",in:"India",sg:"Singapore",ae:"United Arab Emirates",de:"Germany",at:"Austria",ch:"Switzerland",fr:"France",es:"Spain",mx:"Mexico",ar:"Argentina",it:"Italy",br:"Brazil",pt:"Portugal",nl:"Netherlands",pl:"Poland",se:"Sweden",tr:"Turkey",id:"Indonesia",ja:"Japan",ko:"South Korea",zh:"China"},c=n=>!!n&&Object.prototype.hasOwnProperty.call(o,n),P=n=>c(n)?n:"global";function I(n){var e;const t=(e=o[n])==null?void 0:e.region;return t?String.fromCodePoint(...[...t].map(a=>127462+a.charCodeAt(0)-65)):"ð"}function M(n,t="en"){var a;const e=(a=o[n])==null?void 0:a.region;if(!e)return g.global;try{const r=new Intl.DisplayNames([t],{type:"region"}).of(e);if(r&&r!==e)return r}catch{}return g[n]}const u="kairosy_market";function k(){try{const n=localStorage.getItem(u);if(c(n))return n}catch{}return"global"}function C(n){try{localStorage.setItem(u,n)}catch{}}const l="/account#plans",y="/account?upgrade=basic",E="mailto:[email protected]?subject=Kairosy%20Enterprise",b=n=>{const t=i.indexOf(p(n.id));return i.slice(t+1).map(e=>m[e]).find(e=>e.priceMonthly>0)};function A(n,t,e){const a=s(n,t,"scansPerMonth"),r=s(n,t,"monitorBrands");return a>0&&e.scans>=a||e.projects!=null&&r>0&&e.projects>r}function N(n,t=new Date){const e=Date.parse((n==null?void 0:n.trial_ends_at)||"");if(!Number.isFinite(e)||e<=t.getTime())return!1;const a=new Date(e);return a.getFullYear()===t.getFullYear()&&a.getMonth()===t.getMonth()&&a.getDate()===t.getDate()}function _(n,t,e){if(!n||n.comp)return null;if(!d(n))return{state:"expired",href:y,days:0};if(t.id==="trial"){const a=h(n);return{state:a<=2?"trial-urgent":"trial",href:l,days:a}}return b(t)?{state:"upgrade",href:l,days:0}:A(t,n,e)?{state:"over-limit",href:E,days:0}:null}function D(n,t={}){try{const e=typeof location<"u"?location.pathname:void 0,a=JSON.stringify({surface:n,state:t.state??null,target:t.target??null,path:e});f(4e3).then(r=>{if(r)return fetch("/api/upgrade-event",{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json",Authorization:"Bearer "+r},body:a})}).catch(()=>{})}catch{}}export{E,o as M,l as P,T as a,g as b,I as c,k as g,M as m,P as n,D as r,C as s,N as t,_ as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.