PageSourceSearch

https://www.xrepl.ai/assets/index-DMF-9Tmv.js

js xrepl.ai collected 2026-10-05 16:00:17 UTC 638,415 bytes, 412 lines download raw bytes

1import{r as hl,a as wu,g as ml}from"./vendor-MEG3rvtw.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function r(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(n){if(n.ep)return;n.ep=!0;const o=r(n);fetch(n.href,o)}})();var Zr={exports:{}},cs={};/**
2 * @license React
3 * react-jsx-runtime.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var mi;function ju(){if(mi)return cs;mi=1;var t=hl(),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,m={},x=null,y=null;u!==void 0&&(x=""+u),c.key!==void 0&&(x=""+c.key),c.ref!==void 0&&(y=c.ref);for(d in c)a.call(c,d)&&!o.hasOwnProperty(d)&&(m[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:s,type:l,key:x,ref:y,props:m,_owner:n.current}}return cs.Fragment=r,cs.jsx=i,cs.jsxs=i,cs}var xi;function Nu(){return xi||(xi=1,Zr.exports=ju()),Zr.exports}var e=Nu(),sr={},pi;function ku(){if(pi)return sr;pi=1;var t=wu();return sr.createRoot=t.createRoot,sr.hydrateRoot=t.hydrateRoot,sr}var Au=ku(),h=hl();const Q=ml(h);/**
10 * react-router v7.13.0
11 *
12 * Copyright (c) Remix Software Inc.
13 *
14 * This source code is licensed under the MIT license found in the
15 * LICENSE.md file in the root directory of this source tree.
16 *
17 * @license MIT
18 */var gi="popstate";function Su(t={}){function s(a,n){let{pathname:o,search:i,hash:l}=a.location;return Sa("",{pathname:o,search:i,hash:l},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:ks(n)}return Eu(s,r,null,t)}function ge(t,s){if(t===!1||t===null||typeof t>"u")throw new Error(s)}function mt(t,s){if(!t){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Cu(){return Math.random().toString(36).substring(2,10)}function fi(t,s){return{usr:t.state,key:t.key,idx:s}}function Sa(t,s,r=null,a){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof s=="string"?rs(s):s,state:r,key:s&&s.key||a||Cu()}}function ks({pathname:t="/",search:s="",hash:r=""}){return s&&s!=="?"&&(t+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function rs(t){let s={};if(t){let r=t.indexOf("#");r>=0&&(s.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(s.search=t.substring(a),t=t.substring(0,a)),t&&(s.pathname=t)}return s}function Eu(t,s,r,a={}){let{window:n=document.defaultView,v5Compat:o=!1}=a,i=n.history,l="POP",c=null,u=d();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function d(){return(i.state||{idx:null}).idx}function m(){l="POP";let g=d(),w=g==null?null:g-u;u=g,c&&c({action:l,location:j.location,delta:w})}function x(g,w){l="PUSH";let v=Sa(j.location,g,w);u=d()+1;let b=fi(v,u),k=j.createHref(v);try{i.pushState(b,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;n.location.assign(k)}o&&c&&c({action:l,location:j.location,delta:1})}function y(g,w){l="REPLACE";let v=Sa(j.location,g,w);u=d();let b=fi(v,u),k=j.createHref(v);i.replaceState(b,"",k),o&&c&&c({action:l,location:j.location,delta:0})}function p(g){return Pu(g)}let j={get action(){return l},get location(){return t(n,i)},listen(g){if(c)throw new Error("A history only accepts one active listener");return n.addEventListener(gi,m),c=g,()=>{n.removeEventListener(gi,m),c=null}},createHref(g){return s(n,g)},createURL:p,encodeLocation(g){let w=p(g);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:x,replace:y,go(g){return i.go(g)}};return j}function Pu(t,s=!1){let r="http://localhost";
18typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ge(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:ks(t);return a=a.replace(/ $/,"%20"),!s&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function xl(t,s,r="/"){return Tu(t,s,r,!1)}function Tu(t,s,r,a){let n=typeof s=="string"?rs(s):s,o=Nt(n.pathname||"/",r);if(o==null)return null;let i=pl(t);Iu(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let u=Uu(o);l=Vu(i[c],u,a)}return l}function pl(t,s=[],r=[],a="",n=!1){let o=(i,l,c=n,u)=>{let d={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(a)&&c)return;ge(d.relativePath.startsWith(a),`Absolute route path "${d.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(a.length)}let m=wt([a,d.relativePath]),x=r.concat(d);i.children&&i.children.length>0&&(ge(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),pl(i.children,s,x,m,c)),!(i.path==null&&!i.index)&&s.push({path:m,score:Ou(m,i.index),routesMeta:x})};return t.forEach((i,l)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))o(i,l);else for(let u of gl(i.path))o(i,l,!0,u)}),s}function gl(t){let s=t.split("/");if(s.length===0)return[];let[r,...a]=s,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let i=gl(a.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),n&&l.push(...i),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function Iu(t){t.sort((s,r)=>s.score!==r.score?r.score-s.score:$u(s.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var _u=/^:[\w-]+$/,Ru=3,Mu=2,Fu=1,Lu=10,Du=-2,yi=t=>t==="*";function Ou(t,s){let r=t.split("/"),a=r.length;return r.some(yi)&&(a+=Du),s&&(a+=Mu),r.filter(n=>!yi(n)).reduce((n,o)=>n+(_u.test(o)?Ru:o===""?Fu:Lu),a)}function $u(t,s){return t.length===s.length&&t.slice(0,-1).every((a,n)=>a===s[n])?t[t.length-1]-s[s.length-1]:0}function Vu(t,s,r=!1){let{routesMeta:a}=t,n={},o="/",i=[];for(let l=0;l<a.length;++l){let c=a[l],u=l===a.length-1,d=o==="/"?s:s.slice(o.length)||"/",m=Nr({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),x=c.route;if(!m&&u&&r&&!a[a.length-1].route.index&&(m=Nr({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!m)return null;
18Object.assign(n,m.params),i.push({params:n,pathname:wt([o,m.pathname]),pathnameBase:Hu(wt([o,m.pathnameBase])),route:x}),m.pathnameBase!=="/"&&(o=wt([o,m.pathnameBase]))}return i}function Nr(t,s){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,a]=Bu(t.path,t.caseSensitive,t.end),n=s.match(r);if(!n)return null;let o=n[0],i=o.replace(/(.)\/+$/,"$1"),l=n.slice(1);return{params:a.reduce((u,{paramName:d,isOptional:m},x)=>{if(d==="*"){let p=l[x]||"";i=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const y=l[x];return m&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:t}}function Bu(t,s=!1,r=!0){mt(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let a=[],n="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(a.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(a.push({paramName:"*"}),n+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":t!==""&&t!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,s?void 0:"i"),a]}function Uu(t){try{return t.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return mt(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),t}}function Nt(t,s){if(s==="/")return t;if(!t.toLowerCase().startsWith(s.toLowerCase()))return null;let r=s.endsWith("/")?s.length-1:s.length,a=t.charAt(r);return a&&a!=="/"?null:t.slice(r)||"/"}var zu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Wu(t,s="/"){let{pathname:r,search:a="",hash:n=""}=typeof t=="string"?rs(t):t,o;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?o=bi(r.substring(1),"/"):o=bi(r,s)):o=s,{pathname:o,search:Ku(a),hash:qu(n)}}function bi(t,s){let r=s.replace(/\/+$/,"").split("/");return t.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Jr(t,s,r,a){return`Cannot include a '${t}' character in a manually specified \`to.${s}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gu(t){return t.filter((s,r)=>r===0||s.route.path&&s.route.path.length>0)}function fl(t){let s=Gu(t);return s.map((r,a)=>a===s.length-1?r.pathname:r.pathnameBase)}function yl(t,s,r,a=!1){let n;typeof t=="string"?n=rs(t):(n={...t},ge(!n.pathname||!n.pathname.includes("?"),Jr("?","pathname","search",n)),ge(!n.pathname||!n.pathname.includes("#"),Jr("#","pathname","hash",n)),ge(!n.search||!n.search.includes("#"),Jr("#","search","hash",n)));let o=t===""||n.pathname==="",i=o?"/":n.pathname,l;if(i==null)l=r;else{let m=s.length-1;if(!a&&i.startsWith("..")){let x=i.split("/");for(;x[0]==="..";)x.shift(),m-=1;n.pathname=x.join("/")}l=m>=0?s[m]:"/"}let c=Wu(n,l),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var wt=t=>t.join("/").replace(/\/\/+/g,"/"),Hu=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Ku=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,qu=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Yu=class{constructor(t,s,r,a=!1){this.status=t,this.statusText=s||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Zu(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Ju(t){return t.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var bl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vl(t,s){let r=t;if(typeof r!="string"||!zu.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,n=!1;if(bl)try{let o=new URL(window.location.href),i=r.startsWith("//")?new URL(o.protocol+r):new URL(r),l=Nt(i.pathname,s);i.origin===o.origin&&l!=null?r=l+i.search+i.hash:n=!0}catch{mt(!1,`<Link to="${r}">
18 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wl=["POST","PUT","PATCH","DELETE"];new Set(wl);var Xu=["GET",...wl];new Set(Xu);var as=h.createContext(null);as.displayName="DataRouter";var Lr=h.createContext(null);Lr.displayName="DataRouterState";var Qu=h.createContext(!1),jl=h.createContext({isTransitioning:!1});jl.displayName="ViewTransition";var eh=h.createContext(new Map);eh.displayName="Fetchers";var th=h.createContext(null);th.displayName="Await";var lt=h.createContext(null);lt.displayName="Navigation";var Fs=h.createContext(null);Fs.displayName="Location";var St=h.createContext({outlet:null,matches:[],isDataRoute:!1});St.displayName="Route";var an=h.createContext(null);an.displayName="RouteError";var Nl="REACT_ROUTER_ERROR",sh="REDIRECT",rh="ROUTE_ERROR_RESPONSE";function ah(t){if(t.startsWith(`${Nl}:${sh}:{`))try{let s=JSON.parse(t.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function nh(t){if(t.startsWith(`${Nl}:${rh}:{`))try{let s=JSON.parse(t.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Yu(s.status,s.statusText,s.data)}catch{}}function ih(t,{relative:s}={}){ge(Ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=h.useContext(lt),{hash:n,pathname:o,search:i}=Ds(t,{relative:s}),l=o;return r!=="/"&&(l=o==="/"?r:wt([r,o])),a.createHref({pathname:l,search:i,hash:n})}function Ls(){return h.useContext(Fs)!=null}function ft(){return ge(Ls(),"useLocation() may be used only in the context of a <Router> component."),h.useContext(Fs).location}var kl="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Al(t){h.useContext(lt).static||h.useLayoutEffect(t)}function Ze(){let{isDataRoute:t}=h.useContext(St);return t?bh():oh()}function oh(){ge(Ls(),"useNavigate() may be used only in the context of a <Router> component.");let t=h.useContext(as),{basename:s,navigator:r}=h.useContext(lt),{matches:a}=h.useContext(St),{pathname:n}=ft(),o=JSON.stringify(fl(a)),i=h.useRef(!1);return Al(()=>{i.current=!0}),h.useCallback((c,u={})=>{if(mt(i.current,kl),!i.current)return;if(typeof c=="number"){r.go(c);return}let d=yl(c,JSON.parse(o),n,u.relative==="path");t==null&&s!=="/"&&(d.pathname=d.pathname==="/"?s:wt([s,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[s,r,o,n,t])}h.createContext(null);function Ds(t,{relative:s}={}){let{matches:r}=h.useContext(St),{pathname:a}=ft(),n=JSON.stringify(fl(r));return h.useMemo(()=>yl(t,JSON.parse(n),a,s==="path"),[t,n,a,s])}function lh(t,s){return Sl(t,s)}function Sl(t,s,r,a,n){var v;ge(Ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=h.useContext(lt),{matches:i}=h.useContext(St),l=i[i.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",m=l&&l.route;{let b=m&&m.path||"";El(u,!m||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
19
20Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let x=ft(),y;if(s){let b=typeof s=="string"?rs(s):s;ge(d==="/"||((v=b.pathname)==null?void 0:v.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${b.pathname}" was given in the \`location\` prop.`),y=b}else y=x;let p=y.pathname||"/",j=p;if(d!=="/"){let b=d.replace(/^\//,"").split("/");j="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let g=xl(t,{pathname:j});mt(m||g!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),mt(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=mh(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:wt([d,o.encodeLocation?o.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?d:wt([d,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),i,r,a,n);return s&&w?h.createElement(Fs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},w):w}function ch(){let t=yh(),s=Zu(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",t),i=h.createElement(h.Fragment,null,h.createElement("p",null,"💿 Hey developer 👋"),h.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",h.createElement("code",{style:o},"ErrorBoundary")," or"," ",h.createElement("code",{style:o},"errorElement")," prop on your route.")),h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application 
20Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},s),r?h.createElement("pre",{style:n},r):null,i)}var dh=h.createElement(ch,null),Cl=class extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,s){return s.location!==t.location||s.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:s.error,location:s.location,revalidation:t.revalidation||s.revalidation}}componentDidCatch(t,s){this.props.onError?this.props.onError(t,s):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=nh(t.digest);r&&(t=r)}let s=t!==void 0?h.createElement(St.Provider,{value:this.props.routeContext},h.createElement(an.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?h.createElement(uh,{error:t},s):s}};Cl.contextType=Qu;var Xr=new WeakMap;function uh({children:t,error:s}){let{basename:r}=h.useContext(lt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let a=ah(s.digest);if(a){let n=Xr.get(s);if(n)throw n;let o=vl(a.location,r);if(bl&&!Xr.get(s))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Xr.set(s,i),i}return h.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return t}function hh({routeContext:t,match:s,children:r}){let a=h.useContext(as);return a&&a.static&&a.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=s.route.id),h.createElement(St.Provider,{value:t},r)}function mh(t,s=[],r=null,a=null,n=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r==null?void 0:r.errors;if(i!=null){let d=o.findIndex(m=>m.route.id&&(i==null?void 0:i[m.route.id])!==void 0);ge(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(r)for(let d=0;d<o.length;d++){let m=o[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(c=d),m.route.id){let{loaderData:x,errors:y}=r,p=m.route.loader&&!x.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||p){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let u=r&&a?(d,m)=>{var x,y;a(d,{location:r.location,params:((y=(x=r.matches)==null?void 0:x[0])==null?void 0:y.params)??{},unstable_pattern:Ju(r.matches),errorInfo:m})}:void 0;return o.reduceRight((d,m,x)=>{let y,p=!1,j=null,g=null;r&&(y=i&&m.route.id?i[m.route.id]:void 0,j=m.route.errorElement||dh,l&&(c<0&&x===0?(El("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,g=null):c===x&&(p=!0,g=m.route.hydrateFallbackElement||null)));let w=s.concat(o.slice(0,x+1)),v=()=>{let b;return y?b=j:p?b=g:m.route.Component?b=h.createElement(m.route.Component,null):m.route.element?b=m.route.element:b=d,h.createElement(hh,{match:m,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:b})};return r&&(m.route.ErrorBoundary||m.route.errorElement||x===0)?h.createElement(Cl,{location:r.location,revalidation:r.revalidation,component:j,error:y,children:v(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:u}):v()},null)}function nn(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function xh(t){let s=h.useContext(as);return ge(s,nn(t)),s}function ph(t){let s=h.useContext(Lr);return ge(s,nn(t)),s}function gh(t){let s=h.useContext(St);return ge(s,nn(t)),s}function on(t){let s=gh(t),r=s.matches[s.matches.length-1];return ge(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function fh(){return on("useRouteId")}function yh(){var a;let t=h.useContext(an),s=ph("useRouteError"),r=on("useRouteError");return t!==void 0?t:(a=s.errors)==null?void 0:a[r]}function bh(){let{router:t}=xh("useNavigate"),s=on("useNavigate"),r=h.useRef(!1);return Al(()=>{r.current=!0}),h.useCallback(async(n,o={})=>{mt(r.current,kl),r.current&&(typeof n=="number"?await t.navigate(n):await t.navigate(n,{fromRouteId:s,...o}))},[t,s])}var vi={};function El(t,s,r){!s&&!vi[t]&&(vi[t]=!0,mt(!1,r))}h.memo(vh);function vh({routes:t,future:s,state:r,onError:a}){return Sl(t,void 0,r,a,s)}function Ee(t){ge(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function wh({basename:t="/",children:s=null,location:r,navigationType:a="POP",navigator:n,static:o=!1,unstable_useTransitions:i}){ge(!Ls(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:l,navigator:n,static:o,unstable_useTransitions:i,future:{}}),[l,n,o,i]);typeof r=="string"&&(r=rs(r));
20let{pathname:u="/",search:d="",hash:m="",state:x=null,key:y="default"}=r,p=h.useMemo(()=>{let j=Nt(u,l);return j==null?null:{location:{pathname:j,search:d,hash:m,state:x,key:y},navigationType:a}},[l,u,d,m,x,y,a]);return mt(p!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:h.createElement(lt.Provider,{value:c},h.createElement(Fs.Provider,{children:s,value:p}))}function jh({children:t,location:s}){return lh(Ca(t),s)}function Ca(t,s=[]){let r=[];return h.Children.forEach(t,(a,n)=>{if(!h.isValidElement(a))return;let o=[...s,n];if(a.type===h.Fragment){r.push.apply(r,Ca(a.props.children,o));return}ge(a.type===Ee,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ge(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=Ca(a.props.children,o)),r.push(i)}),r}var xr="get",pr="application/x-www-form-urlencoded";function Dr(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Nh(t){return Dr(t)&&t.tagName.toLowerCase()==="button"}function kh(t){return Dr(t)&&t.tagName.toLowerCase()==="form"}function Ah(t){return Dr(t)&&t.tagName.toLowerCase()==="input"}function Sh(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ch(t,s){return t.button===0&&(!s||s==="_self")&&!Sh(t)}function Ea(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((s,r)=>{let a=t[r];return s.concat(Array.isArray(a)?a.map(n=>[r,n]):[[r,a]])},[]))}function Eh(t,s){let r=Ea(t);return s&&s.forEach((a,n)=>{r.has(n)||s.getAll(n).forEach(o=>{r.append(n,o)})}),r}var rr=null;function Ph(){if(rr===null)try{new FormData(document.createElement("form"),0),rr=!1}catch{rr=!0}return rr}var Th=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qr(t){return t!=null&&!Th.has(t)?(mt(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pr}"`),null):t}function Ih(t,s){let r,a,n,o,i;if(kh(t)){let l=t.getAttribute("action");a=l?Nt(l,s):null,r=t.getAttribute("method")||xr,n=Qr(t.getAttribute("enctype"))||pr,o=new FormData(t)}else if(Nh(t)||Ah(t)&&(t.type==="submit"||t.type==="image")){let l=t.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=t.getAttribute("formaction")||l.getAttribute("action");if(a=c?Nt(c,s):null,r=t.getAttribute("formmethod")||l.getAttribute("method")||xr,n=Qr(t.getAttribute("formenctype"))||Qr(l.getAttribute("enctype"))||pr,o=new FormData(l,t),!Ph()){let{name:u,type:d,value:m}=t;if(d==="image"){let x=u?`${u}.`:"";o.append(`${x}x`,"0"),o.append(`${x}y`,"0")}else u&&o.append(u,m)}}else{if(Dr(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=xr,a=null,n=pr,i=t}return o&&n==="text/plain"&&(i=o,o=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ln(t,s){if(t===!1||t===null||typeof t>"u")throw new Error(s)}function _h(t,s,r,a){let n=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:s&&Nt(n.pathname,s)==="/"?n.pathname=`${s.replace(/\/$/,"")}/_root.${a}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${a}`,n}async function Rh(t,s){if(t.id in s)return s[t.id];try{let r=await import(t.module);return s[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
20isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mh(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Fh(t,s,r){let a=await Promise.all(t.map(async n=>{let o=s.routes[n.route.id];if(o){let i=await Rh(o,r);return i.links?i.links():[]}return[]}));return $h(a.flat(1).filter(Mh).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function wi(t,s,r,a,n,o){let i=(c,u)=>r[u]?c.route.id!==r[u].route.id:!0,l=(c,u)=>{var d;return r[u].pathname!==c.pathname||((d=r[u].route.path)==null?void 0:d.endsWith("*"))&&r[u].params["*"]!==c.params["*"]};return o==="assets"?s.filter((c,u)=>i(c,u)||l(c,u)):o==="data"?s.filter((c,u)=>{var m;let d=a.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(i(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let x=c.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((m=r[0])==null?void 0:m.params)||{},nextUrl:new URL(t,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Lh(t,s,{includeHydrateFallback:r}={}){return Dh(t.map(a=>{let n=s.routes[a.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1))}function Dh(t){return[...new Set(t)]}function Oh(t){let s={},r=Object.keys(t).sort();for(let a of r)s[a]=t[a];return s}function $h(t,s){let r=new Set;return new Set(s),t.reduce((a,n)=>{let o=JSON.stringify(Oh(n));return r.has(o)||(r.add(o),a.push({key:o,link:n})),a},[])}function Pl(){let t=h.useContext(as);return ln(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Vh(){let t=h.useContext(Lr);return ln(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var cn=h.createContext(void 0);cn.displayName="FrameworkContext";function Tl(){let t=h.useContext(cn);return ln(t,"You must render this element inside a <HydratedRouter> element"),t}function Bh(t,s){let r=h.useContext(cn),[a,n]=h.useState(!1),[o,i]=h.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:m}=s,x=h.useRef(null);h.useEffect(()=>{if(t==="render"&&i(!0),t==="viewport"){let j=w=>{w.forEach(v=>{i(v.isIntersecting)})},g=new IntersectionObserver(j,{threshold:.5});return x.current&&g.observe(x.current),()=>{g.disconnect()}}},[t]),h.useEffect(()=>{if(a){let j=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(j)}}},[a]);let y=()=>{n(!0)},p=()=>{n(!1),i(!1)};return r?t!=="intent"?[o,x,{}]:[o,x,{onFocus:ds(l,y),onBlur:ds(c,p),onMouseEnter:ds(u,y),onMouseLeave:ds(d,p),onTouchStart:ds(m,y)}]:[!1,x,{}]}function ds(t,s){return r=>{t&&t(r),r.defaultPrevented||s(r)}}function Uh({page:t,...s}){let{router:r}=Pl(),a=h.useMemo(()=>xl(r.routes,t,r.basename),[r.routes,t,r.basename]);return a?h.createElement(Wh,{page:t,matches:a,...s}):null}function zh(t){let{manifest:s,routeModules:r}=Tl(),[a,n]=h.useState([]);return h.useEffect(()=>{let o=!1;return Fh(t,s,r).then(i=>{o||n(i)}),()=>{o=!0}},[t,s,r]),a}function Wh({page:t,matches:s,...r}){let a=ft(),{future:n,manifest:o,routeModules:i}=Tl(),{basename:l}=Pl(),{loaderData:c,matches:u}=Vh(),d=h.useMemo(()=>wi(t,s,u,o,a,"data"),[t,s,u,o,a]),m=h.useMemo(()=>wi(t,s,u,o,a,"assets"),[t,s,u,o,a]),x=h.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let j=new Set,g=!1;if(s.forEach(v=>{var k;let b=o.routes[v.route.id];!b||!b.hasLoader||(!d.some(A=>A.route.id===v.route.id)&&v.route.id in c&&((k=i[v.route.id])!=null&&k.shouldRevalidate)||b.hasClientLoader?g=!0:j.add(v.route.id))}),j.size===0)return[];let w=_h(t,l,n.unstable_trailingSlashAwareDataRequests,"data");return g&&j.size>0&&w.searchParams.set("_routes",s.filter(v=>j.has(v.route.id)).map(v=>v.route.id).join(",")),[w.pathname+w.search]},[l,n.unstable_trailingSlashAwareDataRequests,c,a,o,d,s,t,i]),y=h.useMemo(()=>Lh(m,o),[m,o]),p=zh(m);return h.createElement(h.Fragment,null,x.map(j=>h.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),y.map(j=>h.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),p.map(({key:j,link:g})=>h.createElement("link",{key:j,nonce:r.nonce,...g,crossOrigin:g.crossOrigin??r.crossOrigin})))}function Gh(...t){return s=>{t.forEach(r=>{typeof r=="function"?r(s):r!=null&&(r.current=s)})}}var Hh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hh&&(window.__reactRouterVersion="7.13.0")}catch{}
20function Kh({basename:t,children:s,unstable_useTransitions:r,window:a}){let n=h.useRef();n.current==null&&(n.current=Su({window:a,v5Compat:!0}));let o=n.current,[i,l]=h.useState({action:o.action,location:o.location}),c=h.useCallback(u=>{r===!1?l(u):h.startTransition(()=>l(u))},[r]);return h.useLayoutEffect(()=>o.listen(c),[o,c]),h.createElement(wh,{basename:t,children:s,location:i.location,navigationType:i.action,navigator:o,unstable_useTransitions:r})}var Il=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=h.forwardRef(function({onClick:s,discover:r="render",prefetch:a="none",relative:n,reloadDocument:o,replace:i,state:l,target:c,to:u,preventScrollReset:d,viewTransition:m,unstable_defaultShouldRevalidate:x,...y},p){let{basename:j,unstable_useTransitions:g}=h.useContext(lt),w=typeof u=="string"&&Il.test(u),v=vl(u,j);u=v.to;let b=ih(u,{relative:n}),[k,A,E]=Bh(a,y),M=Jh(u,{replace:i,state:l,target:c,preventScrollReset:d,relative:n,viewTransition:m,unstable_defaultShouldRevalidate:x,unstable_useTransitions:g});function T($){s&&s($),$.defaultPrevented||M($)}let R=h.createElement("a",{...y,...E,href:v.absoluteURL||b,onClick:v.isExternal||o?s:T,ref:Gh(p,A),target:c,"data-discover":!w&&r==="render"?"true":void 0});return k&&!w?h.createElement(h.Fragment,null,R,h.createElement(Uh,{page:b})):R});Pe.displayName="Link";var qh=h.forwardRef(function({"aria-current":s="page",caseSensitive:r=!1,className:a="",end:n=!1,style:o,to:i,viewTransition:l,children:c,...u},d){let m=Ds(i,{relative:u.relative}),x=ft(),y=h.useContext(Lr),{navigator:p,basename:j}=h.useContext(lt),g=y!=null&&s0(m)&&l===!0,w=p.encodeLocation?p.encodeLocation(m).pathname:m.pathname,v=x.pathname,b=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(v=v.toLowerCase(),b=b?b.toLowerCase():null,w=w.toLowerCase()),b&&j&&(b=Nt(b,j)||b);const k=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let A=v===w||!n&&v.startsWith(w)&&v.charAt(k)==="/",E=b!=null&&(b===w||!n&&b.startsWith(w)&&b.charAt(w.length)==="/"),M={isActive:A,isPending:E,isTransitioning:g},T=A?s:void 0,R;typeof a=="function"?R=a(M):R=[a,A?"active":null,E?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let $=typeof o=="function"?o(M):o;return h.createElement(Pe,{...u,"aria-current":T,className:R,ref:d,style:$,to:i,viewTransition:l},typeof c=="function"?c(M):c)});qh.displayName="NavLink";var Yh=h.forwardRef(({discover:t="render",fetcherKey:s,navigate:r,reloadDocument:a,replace:n,state:o,method:i=xr,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:m,unstable_defaultShouldRevalidate:x,...y},p)=>{let{unstable_useTransitions:j}=h.useContext(lt),g=e0(),w=t0(l,{relative:u}),v=i.toLowerCase()==="get"?"get":"post",b=typeof l=="string"&&Il.test(l),k=A=>{if(c&&c(A),A.defaultPrevented)return;A.preventDefault();let E=A.nativeEvent.submitter,M=(E==null?void 0:E.getAttribute("formmethod"))||i,T=()=>g(E||A.currentTarget,{fetcherKey:s,method:M,navigate:r,replace:n,state:o,relative:u,preventScrollReset:d,viewTransition:m,unstable_defaultShouldRevalidate:x});j&&r!==!1?h.startTransition(()=>T()):T()};return h.createElement("form",{ref:p,method:v,action:w,onSubmit:a?c:k,...y,"data-discover":!b&&t==="render"?"true":void 0})});Yh.displayName="Form";function Zh(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _l(t){let s=h.useContext(as);return ge(s,Zh(t)),s}function Jh(t,{target:s,replace:r,state:a,preventScrollReset:n,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=Ze(),d=ft(),m=Ds(t,{relative:o});return h.useCallback(x=>{if(Ch(x,s)){x.preventDefault();let y=r!==void 0?r:ks(d)===ks(m),p=()=>u(t,{replace:y,state:a,preventScrollReset:n,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:l});c?h.startTransition(()=>p()):p()}},[d,u,m,r,a,s,t,n,o,i,l,c])}function Lt(t){mt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=h.useRef(Ea(t)),r=h.useRef(!1),a=ft(),n=h.useMemo(()=>Eh(a.search,r.current?null:s.current),[a.search]),o=Ze(),i=h.useCallback((l,c)=>{const u=Ea(typeof l=="function"?l(new URLSearchParams(n)):l);r.current=!0,o("?"+u,c)},[o,n]);return[n,i]}var Xh=0,Qh=()=>`__${String(++Xh)}__`;function e0(){let{router:t}=_l("useSubmit"),{basename:s}=h.useContext(lt),r=fh(),a=t.fetch,n=t.navigate;return h.useCallback(async(o,i={})=>{let{action:l,method:c,encType:u,formData:d,body:m}=Ih(o,s);if(i.navigate===!1){let x=i.fetcherKey||Qh();await a(x,r,i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:m,formMethod:i.method||c,formEncType:i.encType||u,flushSync:i.flushSync})}else await n(i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:m,formMethod:i.method||c,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[a,n,s,r])}function t0(t,{relative:s}={}){let{basename:r}=h.useContext(lt),a=h.useContext(St);ge(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),o={...Ds(t||".",{relative:s})},i=ft();if(t==null){o.search=i.search;let l=new URLSearchParams(o.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(m=>m).forEach(m=>l.append("index",m));let d=l.toString();o.search=d?`?${d}`:""}}return(!t||t===".")&&n.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:wt([r,o.pathname])),ks(o)}function s0(t,{relative:s}={}){let r=h.useContext(jl);ge(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=_l("useViewTransitionState"),n=Ds(t,{relative:s});if(!r.isTransitioning)return!1;let o=Nt(r.currentLocation.pathname,a)||r.currentLocation.pathname,i=Nt(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Nr(n.pathname,i)!=null||Nr(n.pathname,o)!=null}
20const V="https://xrepl.app",L={AUTH_REGISTER:`${V}/api/auth/register`,AUTH_GOOGLE_REGISTER:`${V}/api/auth/google-register`,AUTH_LINKEDIN_REGISTER:`${V}/api/auth/linkedin-register`,AUTH_DELETE_ACCOUNT:`${V}/api/auth/delete-account`,USER_PROFILE:`${V}/api/user/profile`,USAGE_INFO:`${V}/api/usage-info`,PACKAGES_LIST:`${V}/api/packages/list`,PACKAGES_DEFINITIONS:`${V}/api/packages/definitions`,PLANS_LIST:`${V}/api/plans/list`,SUBSCRIBE_CHECKOUT:`${V}/api/subscribe/checkout`,SUBSCRIBE_CHECKOUT_PLAN_CHANGE:`${V}/api/subscribe/checkout-plan-change`,SUBSCRIBE_SESSION_SUCCESS:`${V}/api/subscribe/session-success`,SUBSCRIBE_PLAN_STATUS:`${V}/api/subscribe/plan-status`,SUBSCRIBE_UPDATE_PLAN:`${V}/api/subscribe/update-plan`,SUBSCRIBE_CANCEL:`${V}/api/subscribe/cancel`,SUBSCRIBE_REACTIVATE:`${V}/api/subscribe/reactivate`,PACKAGES_ADD:`${V}/api/packages/add`,PACKAGES_REMOVE:`${V}/api/packages/remove`,PACKAGES_PREVIEW_ADD:`${V}/api/packages/preview-add`,SUBSCRIBE_PREVIEW_PLAN_CHANGE:`${V}/api/subscribe/preview-plan-change`,SUBSCRIBE_UPDATE_PLAN_DIRECT:`${V}/api/subscribe/update-plan-direct`,MAINTENANCE:`${V}/api/maintenance`,WAITLIST:`${V}/api/waitlist`,REFERRALS:`${V}/api/referrals`,USER_PREFERENCES:`${V}/api/user/preferences`,CONTACT:`${V}/api/contact`,CONTACT_SALES:`${V}/api/contact-sales`,SALES_CHAT:`${V}/api/sales-chat`,ADMIN_LOGIN:`${V}/api/admin/login`,ADMIN_LOGIN_APP_PASSWORD:`${V}/api/admin/login-app-password`,ADMIN_LOGOUT:`${V}/api/admin/logout`,ADMIN_ME:`${V}/api/admin/me`,ADMIN_SETTINGS:`${V}/api/admin/settings`,ADMIN_PLANS:`${V}/api/admin/plans`,ADMIN_PLANS_ID:t=>`${V}/api/admin/plans/${t}`,ADMIN_PLANS_OPTIONS:`${V}/api/admin/plans/options`,ADMIN_PACKAGES:`${V}/api/admin/packages`,ADMIN_PACKAGES_ID:t=>`${V}/api/admin/packages/${t}`,ADMIN_PACKAGE_ELIGIBILITY:`${V}/api/admin/package-eligibility`,ADMIN_ADMIN_USERS:`${V}/api/admin/admin-users`,ADMIN_ADMIN_USERS_REVOKE:`${V}/api/admin/admin-users/revoke`,ADMIN_USERS:`${V}/api/admin/users`,ADMIN_USERS_ID:t=>`${V}/api/admin/users/${t}`,ADMIN_LICENSES:`${V}/api/admin/licenses`,ADMIN_LICENSES_ID:t=>`${V}/api/admin/licenses/${t}`,ADMIN_USAGE_TODAY:`${V}/api/admin/usage/today`,ADMIN_USAGE_RANGE:`${V}/api/admin/usage/range`,ADMIN_USAGE_AGGREGATE:`${V}/api/admin/usage/aggregate`,ADMIN_AI_INTEGRATION:`${V}/api/admin/ai-integration`,ADMIN_PROVIDER_SYNC_MODELS:t=>`${V}/api/admin/providers/${t}/sync-models`,ADMIN_PROVIDER_API_KEY:t=>`${V}/api/admin/providers/${t}/api-key`,ADMIN_MODEL_ID:t=>`${V}/api/admin/models/${t}`};async function X(t,s){const r=await fetch(t,{...s,credentials:"include",headers:{"Content-Type":"application/json",...s==null?void 0:s.headers}}),a=await r.json().catch(()=>({}));if(!r.ok)throw new Error((a==null?void 0:a.error)||r.statusText);return a}const Rl=h.createContext(void 0);function r0({children:t}){const[s,r]=h.useState(!1),[a,n]=h.useState(!0);h.useEffect(()=>{(async()=>{try{const l=await fetch(L.MAINTENANCE),c=l.headers.get("content-type");if(!c||!c.includes("application/json"))throw new Error("API not available");const u=await l.json();r(u.isMaintenanceMode??!1)}catch{console.log("API not available, using localStorage fallback");const c=localStorage.getItem("maintenanceMode");r(c==="true")}finally{n(!1)}})()},[]),h.useEffect(()=>{a||localStorage.setItem("maintenanceMode",String(s))},[s,a]);const o=async i=>{try{const l=await fetch(L.MAINTENANCE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({isMaintenanceMode:i})});if(!l.ok)throw new Error("Failed to update maintenance mode");const c=await l.json();r(c.isMaintenanceMode)}catch(l){console.error("Failed to update maintenance mode:",l),r(i),localStorage.setItem("maintenanceMode",String(i))}};return e.jsx(Rl.Provider,{value:{isMaintenanceMode:s,setMaintenanceMode:o,isLoading:a},children:t})}function dn(){const t=h.useContext(Rl);
20if(t===void 0)throw new Error("useMaintenanceMode must be used within a MaintenanceModeProvider");return t}const a0=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],Pa="xrepl_utm",Ta="xrepl_ref";function n0(){try{const t=new URLSearchParams(window.location.search);if(!sessionStorage.getItem(Pa)){const a={};let n=!1;for(const o of a0){const i=t.get(o);i&&(a[o]=i,n=!0)}n&&sessionStorage.setItem(Pa,JSON.stringify(a))}const r=t.get("ref");r&&!sessionStorage.getItem(Ta)&&sessionStorage.setItem(Ta,r)}catch{}}function i0(){try{const t=sessionStorage.getItem(Pa);return t?JSON.parse(t):{}}catch{return{}}}function o0(){try{return sessionStorage.getItem(Ta)}catch{return null}}function ea(){const t=i0(),s=o0(),r={};for(const[a,n]of Object.entries(t))n&&(r[a]=n);return s&&(r.referral_code=s),r}const Ml=["aeemmefmpkgmokecemoedojagcecabmj","bbcpjmkhphmhadpafjlkopphpcndnkgm"],un="xrepl_auth_source";function l0(){try{localStorage.setItem(un,"extension")}catch{}}function As(){try{return localStorage.getItem(un)==="extension"}catch{return!1}}function c0(){try{localStorage.removeItem(un)}catch{}}async function Fl(t,s){var a;if(!t)return!1;const r=globalThis.chrome;if(!((a=r==null?void 0:r.runtime)!=null&&a.sendMessage))return!1;for(const n of Ml)try{if(await new Promise(i=>{r.runtime.sendMessage(n,{type:"LICENSE_KEY_TRANSFER",licenseKey:t,plan:s},l=>{if(r.runtime.lastError){i(!1);return}i((l==null?void 0:l.success)===!0)})}))return!0}catch{}return console.warn("Failed to send license to extension (no reachable extension)"),!1}async function hn(t,s){if(!As())return!1;const r=await Fl(t,s);return r&&c0(),r}async function d0(){var s;const t=globalThis.chrome;if(!((s=t==null?void 0:t.runtime)!=null&&s.sendMessage))return!1;for(const r of Ml)try{if(await new Promise(n=>{t.runtime.sendMessage(r,{type:"ACCOUNT_DELETED"},o=>{if(t.runtime.lastError){n(!1);return}n((o==null?void 0:o.success)===!0)})}))return!0}catch{}return!1}const Ll=h.createContext(void 0);function u0({children:t}){const[s,r]=h.useState(null),[a,n]=h.useState(null),[o,i]=h.useState(!0);h.useEffect(()=>{const j=localStorage.getItem("xrepl_user"),g=localStorage.getItem("xrepl_license");if(j&&g)try{r(JSON.parse(j)),n(JSON.parse(g))}catch(w){console.error("Failed to parse stored auth data:",w),localStorage.removeItem("xrepl_user"),localStorage.removeItem("xrepl_license")}i(!1)},[]);const l=async(j,g)=>
20{try{const w=await fetch(L.AUTH_REGISTER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:j,...g&&{intent:g},attribution:ea()})});if(!w.ok){let b="Authentication failed",k=null;try{const E=await w.json();b=E.message||E.error||`HTTP ${w.status}: ${w.statusText}`,k=E.details}catch{b=`HTTP ${w.status}: ${w.statusText}`}console.error("Authentication failed:",{status:w.status,statusText:w.statusText,message:b,details:k});const A=k?`${b}: ${k}`:b;throw new Error(A)}const v=await w.json();if(v.success&&v.user)return r(v.user),v.license&&(n(v.license),localStorage.setItem("xrepl_license",JSON.stringify(v.license))),localStorage.setItem("xrepl_user",JSON.stringify(v.user)),{user:v.user,license:v.license};throw new Error(v.message||"Invalid response from server")}catch(w){throw console.error("Login error:",w),w}},c=h.useCallback(async(j,g)=>{try{const v=await fetch(L.AUTH_LINKEDIN_REGISTER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:j,redirectUri:"https://xrepl.ai/auth/linkedin/callback",...g&&{intent:g},attribution:ea()})});if(!v.ok){let k="LinkedIn authentication failed",A=null;try{const M=await v.json();k=M.message||M.error||`HTTP ${v.status}: ${v.statusText}`,A=M.details}catch{k=`HTTP ${v.status}: ${v.statusText}`}console.error("LinkedIn authentication failed:",{status:v.status,statusText:v.statusText,message:k,details:A});const E=A?`${k}: ${A}`:k;throw new Error(E)}const b=await v.json();if(b.success&&b.user)return r(b.user),b.license&&(n(b.license),localStorage.setItem("xrepl_license",JSON.stringify(b.license))),localStorage.setItem("xrepl_user",JSON.stringify(b.user)),{user:b.user,license:b.license};throw new Error(b.message||"Invalid response from server")}catch(w){throw console.error("LinkedIn login error:",w),w}},[]),u=h.useCallback(async(j,g)=>{try{const w=`${window.location.origin}/auth/google/callback`,v=await fetch(L.AUTH_GOOGLE_REGISTER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:j,redirectUri:w,...g&&{intent:g},attribution:ea()})});if(!v.ok){let k="Google authentication failed",A=null;try{const M=await v.json();k=M.message||M.error||`HTTP ${v.status}: ${v.statusText}`,A=M.details}catch{k=`HTTP ${v.status}: ${v.statusText}`}console.error("Google authentication failed:",{status:v.status,statusText:v.statusText,message:k,details:A});const E=A?`${k}: ${A}`:k;throw new Error(E)}const b=await v.json();if(b.success&&b.user)return r(b.user),b.license&&(n(b.license),localStorage.setItem("xrepl_license",JSON.stringify(b.license))),localStorage.setItem("xrepl_user",JSON.stringify(b.user)),{user:b.user,license:b.license};throw new Error(b.message||"Invalid response from server")}catch(w){throw console.error("Google login error:",w),w}},[]),d=h.useCallback(()=>{r(null),n(null),localStorage.removeItem("xrepl_user"),localStorage.removeItem("xrepl_license")},[]),m=h.useCallback(async()=>{const j=localStorage.getItem("xrepl_user");if(j)try{const g=JSON.parse(j),w=await fetch(L.USER_PROFILE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:g.id})}),v=await w.json();if(w.ok||console.error("Profile API error:",w.status,v==null?void 0:v.error,(v==null?void 0:v.license_error)??(v==null?void 0:v.license_code)??(v==null?void 0:v.license_details)??v),v.success)if(v.license){const b=v.license.cancel_at_period_end===!0||String(v.license.cancel_at_period_end||"").toLowerCase()==="true",k={license_key:v.license.license_key,plan:v.license.plan||"free",cancel_at_period_end:b,expires_at:v.license.expires_at??null};n(k),localStorage.setItem("xrepl_license",JSON.stringify(k))}else n(null),localStorage.removeItem("xrepl_license")}catch(g){console.error("Failed to refresh license:",g)}},[]),x=h.useCallback((j,g)=>{const w={license_key:j,plan:g};n(w),localStorage.setItem("xrepl_license",JSON.stringify(w))},[]),y=h.useCallback(async j=>{if(!(s!=null&&s.id))throw new Error("Not authenticated");const g=await fetch(L.AUTH_DELETE_ACCOUNT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:s.id,confirmText:j})}),w=await g.json();if(!g.ok)throw new Error(w.error||"Failed to delete account");r(null),n(null),localStorage.removeItem("xrepl_user"),localStorage.removeItem("xrepl_license"),d0().catch(()=>{})},[s==null?void 0:s.id]),p={user:s,license:a,isAuthenticated:!!s,isLoading:o,login:l,loginWithGoogle:u,loginWithLinkedIn:c,logout:d,refreshLicense:m,updateLicense:x,deleteAccount:y};return e.jsx(Ll.Provider,{value:p,children:t})}function et(){const t=h.useContext(Ll);if(t===void 0)throw new Error("useAuth must be used within an AuthProvider");return t}function _t(t,s){typeof window<"u"&&window.gtag&&window.gtag("event",t,s)}function ta(t){_t("signup_start",{method:t})}function Ss(t,s,r){_t("plan_selected",{plan_name:t,billing_interval:s,value:r,currency:"USD"})}function h0(t){_t("billing_toggle",{billing_interval:t?"yearly":"monthly"})}function m0(t,s,r){_t("begin_checkout",{plan_name:t,billing_interval:s,checkout_type:r,currency:"USD"})}function Dl(t,s){_t("purchase",{plan_name:t,currency:"USD"}),_t("checkout_complete",{plan_name:t})}
vendor: 4,416 bytes, lines 20-70
20function x0(t){_t("extension_install_click",{source:t})}function p0(t,s){typeof window<"u"&&window.gtag&&window.gtag("config","G-VSKD8FZC0R",{page_path:t,page_title:s})}function g0(){_t("referral_link_copied")}/**
21 * @license lucide-react v0.487.0 - ISC
22 *
23 * This source code is licensed under the ISC license.
24 * See the LICENSE file in the root directory of this source tree.
25 */const f0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),y0=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,r,a)=>a?a.toUpperCase():r.toLowerCase()),ji=t=>{const s=y0(t);return s.charAt(0).toUpperCase()+s.slice(1)},Ol=(...t)=>t.filter((s,r,a)=>!!s&&s.trim()!==""&&a.indexOf(s)===r).join(" ").trim();/**
26 * @license lucide-react v0.487.0 - ISC
27 *
28 * This source code is licensed under the ISC license.
29 * See the LICENSE file in the root directory of this source tree.
30 */var b0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
31 * @license lucide-react v0.487.0 - ISC
32 *
33 * This source code is licensed under the ISC license.
34 * See the LICENSE file in the root directory of this source tree.
35 */const v0=h.forwardRef(({color:t="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...l},c)=>h.createElement("svg",{ref:c,...b0,width:s,height:s,stroke:t,strokeWidth:a?Number(r)*24/Number(s):r,className:Ol("lucide",n),...l},[...i.map(([u,d])=>h.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
36 * @license lucide-react v0.487.0 - ISC
37 *
38 * This source code is licensed under the ISC license.
39 * See the LICENSE file in the root directory of this source tree.
40 */const D=(t,s)=>{const r=h.forwardRef(({className:a,...n},o)=>h.createElement(v0,{ref:o,iconNode:s,className:Ol(`lucide-${f0(ji(t))}`,`lucide-${t}`,a),...n}));return r.displayName=ji(t),r};/**
41 * @license lucide-react v0.487.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const w0=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ni=D("arrow-left",w0);/**
46 * @license lucide-react v0.487.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */const j0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Oe=D("arrow-right",j0);/**
51 * @license lucide-react v0.487.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const N0=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],$l=D("arrow-up-right",N0);/**
56 * @license lucide-react v0.487.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const k0=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],mn=D("brain",k0);/**
61 * @license lucide-react v0.487.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const A0=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Vl=D("briefcase",A0);/**
66 * @license lucide-react v0.487.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const S0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
70],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],xn=D("building-2",S0);/**
71 * @license lucide-react v0.487.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const C0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ki=D("calendar",C0);/**
76 * @license lucide-react v0.487.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const E0=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],ys=D("chart-column",E0);/**
81 * @license lucide-react v0.487.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const P0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ce=D("check",P0);/**
86 * @license lucide-react v0.487.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const T0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Bl=D("chevron-down",T0);/**
91 * @license lucide-react v0.487.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const I0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sa=D("chevron-left",I0);/**
96 * @license lucide-react v0.487.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const _0=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],R0=D("chevron-up",_0);/**
101 * @license lucide-react v0.487.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const M0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]],F0=D("chrome",M0);/**
106 * @license lucide-react v0.487.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const L0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Cs=D("circle-alert",L0);/**
111 * @license lucide-react v0.487.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const D0=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],le=D("circle-check-big",D0);/**
116 * @license lucide-react v0.487.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const O0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],$0=D("circle-x",O0);/**
121 * @license lucide-react v0.487.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const V0=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Ai=D("clipboard-list",V0);/**
126 * @license lucide-react v0.487.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const B0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Es=D("clock",B0);/**
131 * @license lucide-react v0.487.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const U0=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],z0=D("code",U0);/**
136 * @license lucide-react v0.487.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const W0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],zt=D("copy",W0);/**
141 * @license lucide-react v0.487.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const G0=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}
145],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],H0=D("cpu",G0);/**
146 * @license lucide-react v0.487.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const K0=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Si=D("credit-card",K0);/**
151 * @license lucide-react v0.487.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const q0=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],ar=D("crown",q0);/**
156 * @license lucide-react v0.487.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Y0=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],nr=D("download",Y0);/**
161 * @license lucide-react v0.487.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const Z0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ci=D("eye",Z0);/**
166 * @license lucide-react v0.487.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const J0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ul=D("globe",J0);/**
171 * @license lucide-react v0.487.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const X0=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Q0=D("headphones",X0);/**
176 * @license lucide-react v0.487.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const em=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],zl=D("key",em);/**
181 * @license lucide-react v0.487.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const tm=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Wl=D("languages",tm);/**
186 * @license lucide-react v0.487.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const sm=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],rm=D("layers",sm);/**
191 * @license lucide-react v0.487.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const am=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],nm=D("link-2",am);/**
196 * @license lucide-react v0.487.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const im=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],om=D("linkedin",im);/**
201 * @license lucide-react v0.487.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const lm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rt=D("loader-circle",lm);
205/**
206 * @license lucide-react v0.487.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const cm=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ei=D("lock",cm);/**
211 * @license lucide-react v0.487.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const dm=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Ia=D("log-out",dm);/**
216 * @license lucide-react v0.487.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const um=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Rt=D("mail",um);/**
221 * @license lucide-react v0.487.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const hm=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],mm=D("menu",hm);/**
226 * @license lucide-react v0.487.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const xm=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],pm=D("message-circle",xm);/**
231 * @license lucide-react v0.487.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const gm=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Or=D("message-square",gm);/**
236 * @license lucide-react v0.487.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const fm=[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],ym=D("minimize-2",fm);/**
241 * @license lucide-react v0.487.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const bm=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],vm=D("mouse-pointer-click",bm);/**
246 * @license lucide-react v0.487.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const wm=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],kr=D("package",wm);/**
251 * @license lucide-react v0.487.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const jm=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Nm=D("refresh-cw",jm);/**
256 * @license lucide-react v0.487.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const km=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Ar=D("rotate-ccw",km);/**
261 * @license lucide-react v0.487.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const Am=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Sm=D("search",Am);
265/**
266 * @license lucide-react v0.487.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const Cm=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Em=D("send",Cm);/**
271 * @license lucide-react v0.487.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const Pm=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Tm=D("server",Pm);/**
276 * @license lucide-react v0.487.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const Im=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Sr=D("settings",Im);/**
281 * @license lucide-react v0.487.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const _m=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Rm=D("share-2",_m);/**
286 * @license lucide-react v0.487.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const Mm=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Fm=D("shield-alert",Mm);/**
291 * @license lucide-react v0.487.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const Lm=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Gl=D("shield",Lm);/**
296 * @license lucide-react v0.487.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const Dm=[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]],Om=D("sliders-vertical",Dm);/**
301 * @license lucide-react v0.487.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const $m=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],Vm=D("smile",$m);/**
306 * @license lucide-react v0.487.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const Bm=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],at=D("sparkles",Bm);/**
311 * @license lucide-react v0.487.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const Um=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],pn=D("star",Um);/**
316 * @license lucide-react v0.487.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const zm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],bs=D("target",zm);/**
321 * @license lucide-react v0.487.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const Wm=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]],Gm=D("toggle-left",Wm);/**
326 * @license lucide-react v0.487.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const Hm=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]],Km=D("toggle-right",Hm);/**
331 * @license lucide-react v0.487.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const qm=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
335],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Pi=D("trash-2",qm);/**
336 * @license lucide-react v0.487.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const Ym=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Cr=D("trending-up",Ym);/**
341 * @license lucide-react v0.487.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const Zm=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Jm=D("triangle-alert",Zm);/**
346 * @license lucide-react v0.487.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const Xm=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],_a=D("user",Xm);/**
351 * @license lucide-react v0.487.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const Qm=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Ps=D("users",Qm);/**
356 * @license lucide-react v0.487.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const ex=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kt=D("x",ex);/**
361 * @license lucide-react v0.487.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const tx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],nt=D("zap",tx),Hl="/assets/xReplAI-brandw-DPo1fcV0.png";function sx(t,s,r){const a=s==="enterprise"?"Enterprise":"Personal";return`Hi Saxa, ${r?`I'm ${r} (${t})`:`I'm ${t}`}. I'm on the waitlist with interest in ${a} and very interested in xRepl.ai.`}function gn({isOpen:t,onClose:s}){const[r,a]=h.useState(""),[n,o]=h.useState(""),[i,l]=h.useState("personal"),[c,u]=h.useState(null),[d,m]=h.useState(null),[x,y]=h.useState(!1);if(!t)return null;const p=async g=>{g.preventDefault(),y(!0),u(null),m(null);try{const w=await fetch(L.WAITLIST,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r.trim(),name:n.trim()||void 0,interest:i})}),v=await w.text();let b={};try{b=v?JSON.parse(v):{}}catch{w.ok?alert("Unexpected response from server. Please try again."):alert("Something went wrong. Please try again.");return}w.ok&&b.success?(u("success"),setTimeout(()=>{u(null),a(""),o(""),l("personal"),s()},3e3)):w.ok&&(b.alreadyRegistered===!0||b.alreadyRegistered==="true")?u("already_registered"):w.ok&&(b.alreadyOnWaitlist===!0||b.alreadyOnWaitlist==="true")?(u("already_on_waitlist"),m({email:b.email||r,interest:b.interest||i,name:b.name??null})):w.ok?alert(b.error||"Something went wrong. Please try again."):alert(b.error||`Request failed (${w.status}). Please try again.`)}catch(w){console.error("Waitlist signup error:",w),alert("Something went wrong. Please try again.")}finally{y(!1)}},j=()=>
365{if(!d)return;const g=sx(d.email,d.interest,d.name),w=`${window.location.origin}${window.location.pathname||"/"}`,v=w.includes("?")?"&":"?";window.location.href=`${w}${v}openChat=1&intro=${encodeURIComponent(g)}`};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:e.jsxs("div",{className:"relative w-full max-w-md bg-white dark:bg-[#0F1F3D] rounded-2xl shadow-2xl border border-gray-200 dark:border-[#1E3A8A]/30 overflow-hidden",children:[e.jsx("button",{onClick:s,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors z-10","aria-label":"Close",children:e.jsx(kt,{size:24})}),c==="already_registered"?e.jsxs("div",{className:"p-8 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-amber-100 dark:bg-amber-900/30 rounded-full mb-4",children:e.jsx(Rt,{size:32,className:"text-amber-600 dark:text-amber-400"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:"Already registered"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:"This email is already registered. Please contact support for help."}),e.jsx("a",{href:"https://xrepl.ai",className:"inline-block px-4 py-2 text-[#1E3A8A] dark:text-[#60A5FA] font-medium hover:underline",children:"Go to support chat on our site →"})]}):c==="already_on_waitlist"?e.jsxs("div",{className:"p-8 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-blue-100 dark:bg-blue-900/30 rounded-full mb-4",children:e.jsx(at,{size:32,className:"text-blue-600 dark:text-blue-400"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:"You're already on the list"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:"Keep checking your email for updates, or use the support chat on our site."}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4",children:"Want to chat with Saxa?"}),e.jsxs("button",{type:"button",onClick:j,className:"w-full px-6 py-3 bg-gradient-to-r from-[#60A5FA] to-[#1E3A8A] text-white font-semibold rounded-lg hover:shadow-lg transition-all flex items-center justify-center gap-2",children:[e.jsx(pm,{size:20}),"Chat with Saxa"]})]}):c==="success"?e.jsxs("div",{className:"p-8 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full mb-4",children:e.jsx("svg",{className:"w-8 h-8 text-green-600 dark:text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"You're on the list! 🎉"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Check your inbox for a welcome email. We'll notify you when xRepl.ai launches."})]}):e.jsxs("div",{className:"p-8",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-gradient-to-br from-[#60A5FA] to-[#1E3A8A] rounded-full mb-4",children:e.jsx(at,{className:"text-white",size:32})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Coming Soon!"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"xRepl.ai is almost ready. Join our waitlist to be the first to know when we launch!"})]}),e.jsxs("form",{onSubmit:p,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Name"}),e.jsx("input",{type:"text",id:"name",value:n,onChange:g=>o(g.target.value),className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"Your name"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Email"}),e.jsx("input",{type:"email",id:"email",value:r,onChange:g=>a(g.target.value),required:!0,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"[email protected]"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"I'm interested in"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"interest",value:"personal",checked:i==="personal",onChange:()=>l("personal"),className:"w-4 h-4 text-[#1E3A8A] focus:ring-[#60A5FA]"}),e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:"Personal"})]}),e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"interest",value:"enterprise",checked:i==="enterprise",onChange:()=>l("enterprise"),className:"w-4 h-4 text-[#1E3A8A] focus:ring-[#60A5FA]"}),e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:"Enterprise"})]})]})]}),e.jsx("button",{type:"submit",disabled:x,className:"w-full px-6 py-3 bg-gradient-to-r from-[#60A5FA] to-[#1E3A8A] text-white font-semibold rounded-lg hover:shadow-lg hover:scale-[1.02] transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:x?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent roun
365ded-full animate-spin"}),e.jsx("span",{children:"Joining..."})]}):e.jsxs(e.Fragment,{children:[e.jsx(Rt,{size:20}),e.jsx("span",{children:"Join Waitlist"})]})})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 text-center mt-4",children:"We'll notify you as soon as xRepl.ai is live. Check your inbox for a welcome email. No spam, ever."})]})]})})}const Kl="/assets/xrepl-logo-B0VY-uSA.png";function $r({size:t="md",className:s="",variant:r="light"}){const a={sm:"w-8 h-8",md:"w-10 h-10",lg:"w-16 h-16",xl:"w-32 h-32"};return e.jsx("div",{className:`${a[t]} ${s} relative`,children:e.jsx("img",{src:Kl,alt:"xRepl.ai",className:`w-full h-full object-contain ${r==="mute"?"opacity-60 grayscale":""}`})})}const rx="71406201363-hohot5f8q570o8sehmrf1l86vgqc0sui.apps.googleusercontent.com",ax="86oknzfacjqpdp",nx="https://xrepl.ai/auth/linkedin/callback";function Os({isOpen:t,onClose:s,onSuccess:r}){const{login:a}=et(),{isMaintenanceMode:n}=dn();Ze();const[o,i]=h.useState(!1),[l,c]=h.useState(null),[u,d]=h.useState(null),m=async()=>{ta("google"),i(!0),c("google"),d(null);try{const y=Math.random().toString(36).substring(7);localStorage.setItem("google_oauth_state",y);const p=`${window.location.origin}/auth/google/callback`,j=encodeURIComponent("openid email profile"),g=`https://accounts.google.com/o/oauth2/v2/auth?client_id=${rx}&redirect_uri=${encodeURIComponent(p)}&response_type=code&scope=${j}&state=${y}&access_type=offline&prompt=consent`;window.location.href=g}catch(y){console.error("Error starting Google Sign-In:",y),d("Failed to start Google Sign-In. Please try again."),i(!1),c(null)}},x=()=>{ta("linkedin"),i(!0),c("linkedin"),d(null),ta("linkedin");const y=encodeURIComponent("openid profile email"),p=encodeURIComponent(Math.random().toString(36).substring(7));localStorage.setItem("linkedin_oauth_state",p);const j=`https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=${ax}&redirect_uri=${encodeURIComponent(nx)}&state=${p}&scope=${y}`;window.location.href=j};return t?e.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:s}),e.jsx("div",{className:"relative z-10 w-full max-w-md mx-4",children:e.jsxs("div",{className:"bg-white dark:bg-[#0F172A] rounded-2xl shadow-2xl p-8 relative",children:[e.jsx("button",{onClick:s,className:"absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","aria-label":"Close",children:e.jsx(kt,{size:20,className:"text-gray-500 dark:text-gray-400"})}),e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx($r,{size:"lg"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2 text-center",children:n?"Under Maintenance":"Welcome to xRepl.AI"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-8 text-center text-sm",children:n?"Sign-in is temporarily unavailable. Please check back soon.":"Continue with your existing account"}),n?e.jsxs("div",{className:"flex flex-col items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 dark:bg-yellow-900/30 flex items-center justify-center",children:e.jsx(Jm,{size:32,className:"text-yellow-600 dark:text-yellow-400"})}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 text-center",children:"We're performing scheduled maintenance to improve your experience. Please try again in a few minutes."}),e.jsx("button",{onClick:s,className:"w-full py-3 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 rounded-lg hover:bg-gray-300 dark:hover:bg-gray-600 transition-all font-medium",children:"Close"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("button",{onClick:m,disabled:o,className:"w-full h-12 px-4 bg-white dark:bg-gray-800 border-2 border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-all flex items-center justify-center gap-3 disabled:opacity-50 disabled:cursor-not-allowed",children:[l==="google"?e.jsx("div",{className:"w-5 h-5 border-2 border-gray-400 border-t-transparent roun
365ded-full animate-spin"}):e.jsxs("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),e.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),e.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),e.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),e.jsx("span",{className:"text-gray-700 dark:text-gray-200 font-medium",children:"Continue with Google"})]}),e.jsxs("button",{onClick:x,disabled:o,className:"w-full h-12 px-4 bg-[#0A66C2] hover:bg-[#004182] rounded-lg transition-all flex items-center justify-center gap-3 disabled:opacity-50 disabled:cursor-not-allowed",children:[l==="linkedin"?e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):e.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"white",children:e.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),e.jsx("span",{className:"text-white font-medium",children:"Continue with LinkedIn"})]}),u&&e.jsx("p",{className:"text-sm text-red-600 dark:text-red-400 text-center mt-2",children:u})]}),e.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-8 text-center",children:["By continuing, you agree to xRepl.AI's"," ",e.jsx("a",{href:"/terms",className:"underline hover:text-gray-700 dark:hover:text-gray-300",children:"Terms of Service"})," ","and"," ",e.jsx("a",{href:"/privacy",className:"underline hover:text-gray-700 dark:hover:text-gray-300",children:"Privacy Policy"})]})]})]})})]}):null}function fn(){const{isMaintenanceMode:t}=dn(),[s,r]=h.useState(!1);return{isMaintenanceMode:t,isWaitlistOpen:s,setIsWaitlistOpen:r,handleCTA:n=>{t?r(!0):n&&n()}}}function $e(){const[t,s]=h.useState(!1),[r,a]=h.useState(!1),[n,o]=h.useState(!1),[i,l]=h.useState(!1),{isWaitlistOpen:c,setIsWaitlistOpen:u,handleCTA:d}=fn(),{isAuthenticated:m,user:x,logout:y}=et(),p=ft(),j=Ze(),[g]=Lt();h.useEffect(()=>{g.get("auth")==="extension"&&!m&&(l0(),l(!0))},[g,m]),h.useEffect(()=>{const b=()=>{s(window.scrollY>20)};return window.addEventListener("scroll",b),()=>window.removeEventListener("scroll",b)},[]);const w=[{label:"Home",href:"/",type:"route"},{label:"For Sales",href:"/for-sales",type:"route"},{label:"For Recruiters",href:"/for-recruiters",type:"route"},{label:"For Job Seekers",href:"/for-jobseekers",type:"route"},{label:"Pricing",href:"/pricing",type:"route"},{label:"Enterprise",href:"/enterprise",type:"route"}],v=b=>{if(b.type==="hash")if(p.pathname!=="/")j("/"),setTimeout(()=>{const k=document.querySelector(b.href);k&&k.scrollIntoView({behavior:"smooth"})},100);
365else{const k=document.querySelector(b.href);k&&k.scrollIntoView({behavior:"smooth"})}a(!1)};return e.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${t?"bg-white/95 dark:bg-[#0A1628]/95 backdrop-blur-sm shadow-lg":"bg-transparent"}`,children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between h-16 lg:h-20",children:[e.jsx(Pe,{to:"/",className:"flex items-center cursor-pointer",children:e.jsx("img",{src:Hl,alt:"xReplAI",className:"h-8 lg:h-10 w-auto object-contain"})}),e.jsx("nav",{className:"hidden lg:flex items-center gap-8",children:w.map(b=>b.type==="route"?e.jsx(Pe,{to:b.href,className:"text-gray-700 dark:text-gray-300 hover:text-[#1E3A8A] dark:hover:text-[#60A5FA] transition-colors cursor-pointer",children:b.label},b.label):e.jsx("button",{onClick:()=>v(b),className:"text-gray-700 dark:text-gray-300 hover:text-[#1E3A8A] dark:hover:text-[#60A5FA] transition-colors cursor-pointer",children:b.label},b.label))}),e.jsxs("div",{className:"hidden lg:flex items-center gap-4",children:[m?e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>o(!n),className:"flex items-center gap-2 px-4 py-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:[x!=null&&x.profile_picture_url?e.jsx("img",{src:x.profile_picture_url,alt:x.name,className:"w-8 h-8 rounded-full"}):e.jsx("div",{className:"w-8 h-8 rounded-full bg-[#1E3A8A] flex items-center justify-center",children:e.jsx(_a,{size:16,className:"text-white"})}),e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:x==null?void 0:x.name})]}),n&&e.jsxs("div",{className:"absolute right-0 mt-2 w-64 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-2",children:[e.jsxs("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:x==null?void 0:x.name}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:x==null?void 0:x.email})]}),e.jsxs(Pe,{to:"/account",onClick:()=>o(!1),className:"w-full px-4 py-2 text-left text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[e.jsx(Sr,{size:16}),"My Account"]}),e.jsxs("button",{onClick:()=>{y(),o(!1)},className:"w-full px-4 py-2 text-left text-sm text-red-600 dark:text-red-400 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-2",children:[e.jsx(Ia,{size:16}),"Sign Out"]})]})]}):e.jsx("button",{onClick:()=>l(!0),className:"px-4 py-2 text-gray-700 dark:text-gray-300 hover:text-[#1E3A8A] dark:hover:text-[#60A5FA] transition-colors cursor-pointer",children:"Sign In"}),e.jsx("button",{onClick:()=>d(()=>{window.open("https://chromewebstore.google.com/detail/aeemmefmpkgmokecemoedojagcecabmj","_blank")}),className:"px-6 py-2 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-all hover:shadow-lg hover:shadow-[#60A5FA]/20 cursor-pointer",children:"Install Extension"})]}),e.jsx("button",{onClick:()=>a(!r),className:"lg:hidden p-2 text-gray-700 dark:text-gray-300",children:r?e.jsx(kt,{size:24}):e.jsx(mm,{size:24})})]})}),r&&e.jsx("div",{className:"lg:hidden bg-white dark:bg-[#0A1628] border-t dark:border-gray-800",children:e.jsxs("nav",{className:"px-4 py-6 flex flex-col gap-4",children:[w.map(b=>b.type==="route"?e.jsx(Pe,{to:b.href,onClick:()=>a(!1),className:"text-gray-700 dark:text-gray-300 hover:text-[#1E3A8A] dark:hover:text-[#60A5FA] transition-colors py-2",children:b.label},b.label):e.jsx("button",{onClick:()=>v(b),className:"text-left text-gray-700 dark:text-gray-300 hover:text-[#1E3A8A] dark:hover:text-[#60A5FA] transition-colors py-2",children:b.label},b.label)),e.jsxs("div",{className:"flex flex-col gap-3 pt-4 border-t dark:border-gray-800",children:[m?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"px-4 py-3 border border-gray-300 dark:border-gray-700 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:x==null?void 0:x.name}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:x==null?void 0:x.email})]}),e.jsxs(Pe,{to:"/account",onClick:()=>a(!1),className:"px-4 py-2 text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-gray-700 rounded-lg flex items-center justify-center gap-2",children:[e.jsx(Sr,{size:16}),"My Account"]}),e.jsxs("button",{onClick:()=>{y(),a(!1)},className:"px-4 py-2 text-red-600 dark:text-red-400 border border-red-300 dark:border-red-700 rounded-lg flex items-center justify-center gap-2",children:[e.jsx(Ia,{size:16}),"Sign Out"]})]}):e.jsx("button",{onClick:()=>{l(!0),a(!1)},className:"px-4 py-2 text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-gray-700 rounded-lg",children:"Sign In"}),e.jsx("button",{onClick:()=>{d(()=>{window.open("https://chromewebstore.google.com/detail/aeemmefmpkgmokecemoedojagcecabmj","_blank")}),a(!1)},className:"px-6 py-2 bg-[#1E3A8A] text-white rounded-lg",children:"Install E
365xtension"})]})]})}),e.jsx(gn,{isOpen:c,onClose:()=>u(!1)}),e.jsx(Os,{isOpen:i,onClose:()=>l(!1)})]})}const yn=h.createContext({});function bn(t){const s=h.useRef(null);return s.current===null&&(s.current=t()),s.current}const ql=typeof window<"u",Yl=ql?h.useLayoutEffect:h.useEffect,Vr=h.createContext(null);function vn(t,s){t.indexOf(s)===-1&&t.push(s)}function wn(t,s){const r=t.indexOf(s);r>-1&&t.splice(r,1)}const gt=(t,s,r)=>r>s?s:r<t?t:r;let jn=()=>{};const At={},Zl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Jl(t){return typeof t=="object"&&t!==null}const Xl=t=>/^0[^.\s]+$/u.test(t);function Nn(t){let s;return()=>(s===void 0&&(s=t()),s)}const ot=t=>t,ix=(t,s)=>r=>s(t(r)),$s=(...t)=>t.reduce(ix),Ts=(t,s,r)=>{const a=s-t;return a===0?1:(r-t)/a};class kn{constructor(){this.subscriptions=[]}add(s){return vn(this.subscriptions,s),()=>wn(this.subscriptions,s)}notify(s,r,a){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](s,r,a);else for(let o=0;o<n;o++){const i=this.subscriptions[o];i&&i(s,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const jt=t=>t*1e3,it=t=>t/1e3;function Ql(t,s){return s?t*(1e3/s):0}const ec=(t,s,r)=>(((1-3*r+3*s)*t+(3*r-6*s))*t+3*s)*t,ox=1e-7,lx=12;function cx(t,s,r,a,n){let o,i,l=0;do i=s+(r-s)/2,o=ec(i,a,n)-t,o>0?r=i:s=i;while(Math.abs(o)>ox&&++l<lx);return i}function Vs(t,s,r,a){if(t===s&&r===a)return ot;const n=o=>cx(o,0,1,t,r);return o=>o===0||o===1?o:ec(n(o),s,a)}const tc=t=>s=>s<=.5?t(2*s)/2:(2-t(2*(1-s)))/2,sc=t=>s=>1-t(1-s),rc=Vs(.33,1.53,.69,.99),An=sc(rc),ac=tc(An),nc=t=>(t*=2)<1?.5*An(t):.5*(2-Math.pow(2,-10*(t-1))),Sn=t=>1-Math.sin(Math.acos(t)),ic=sc(Sn),oc=tc(Sn),dx=Vs(.42,0,1,1),ux=Vs(0,0,.58,1),lc=Vs(.42,0,.58,1),hx=t=>Array.isArray(t)&&typeof t[0]!="number",cc=t=>Array.isArray(t)&&typeof t[0]=="number",mx={linear:ot,easeIn:dx,easeInOut:lc,easeOut:ux,circIn:Sn,circInOut:oc,circOut:ic,backIn:An,backInOut:ac,backOut:rc,anticipate:nc},xx=t=>typeof t=="string",Ti=t=>{if(cc(t)){jn(t.length===4);const[s,r,a,n]=t;return Vs(s,r,a,n)}else if(xx(t))return mx[t];return t},ir=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function px(t,s){let r=new Set,a=new Set,n=!1,o=!1;const i=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){i.has(d)&&(u.schedule(d),t()),d(l)}const u={schedule:(d,m=!1,x=!1)=>{const p=x&&n?r:a;return m&&i.add(d),p.has(d)||p.add(d),d},cancel:d=>{a.delete(d),i.delete(d)},process:d=>{if(l=d,n){o=!0;return}n=!0,[r,a]=[a,r],r.forEach(c),r.clear(),n=!1,o&&(o=!1,u.process(d))}};return u}const gx=40;function dc(t,s){let r=!1,a=!0;const n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=ir.reduce((b,k)=>(b[k]=px(o),b),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:m,preRender:x,render:y,postRender:p}=i,j=()=>{const b=At.useManualTiming?n.timestamp:performance.now();r=!1,At.useManualTiming||(n.delta=a?1e3/60:Math.max(Math.min(b-n.timestamp,gx),1)),n.timestamp=b,n.isProcessing=!0,l.process(n),c.process(n),u.process(n),d.process(n),m.process(n),x.process(n),y.process(n),p.process(n),n.isProcessing=!1,r&&s&&(a=!1,t(j))},g=()=>{r=!0,a=!0,n.isProcessing||t(j)};return{schedule:ir.reduce((b,k)=>{const A=i[k];return b[k]=(E,M=!1,T=!1)=>(r||g(),A.schedule(E,M,T)),b},{}),cancel:b=>{for(let k=0;k<ir.length;k++)i[ir[k]].cancel(b)},state:n,steps:i}}const{schedule:ue,cancel:Mt,state:Le,steps:ra}=dc(typeof requestAnimationFrame<"u"?requestAnimationFrame:ot,!0);let gr;function fx(){gr=void 0}const We={now:()=>(gr===void 0&&We.set(Le.isProcessing||At.useManualTiming?Le.timestamp:performance.now()),gr),set:t=>{gr=t,queueMicrotask(fx)}},uc=t=>s=>typeof s=="string"&&s.startsWith(t),hc=uc("--"),yx=uc("var(--"),Cn=t=>yx(t)?bx.test(t.split("/*")[0].trim()):!1,bx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ii(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const ns={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Is={...ns,transform:t=>gt(0,1,t)},or={...ns,default:1},vs=t=>Math.round(t*1e5)/1e5,En=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vx(t){return t==null}const wx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pn=(t,s)=>r=>!!(typeof r=="string"&&wx.test(r)&&r.startsWith(t)||s&&!vx(r)&&Object.prototype.hasOwnProperty.call(r,s)),mc=(t,s,r)=>a=>{if(typeof a!="string")return a;const[n,o,i,l]=a.match(En);return{[t]:parseFloat(n),[s]:parseFloat(o),[r]:parseFloat(i),alpha:l!==void 0?parseFloat(l):1}},jx=t=>gt(0,255,t),aa={...ns,transform:t=>Math.round(jx(t))},Bt={test:Pn("rgb","red"),parse:mc("red","green","blue"),transform:({red:t,green:s,blue:r,alpha:a=1})=>"rgba("+aa.transform(t)+", "+aa.transform(s)+", "+aa.transform(r)+", "+vs(Is.transform(a))+")"};function Nx(t){let s="",r="",a="",n="";return t.length>5?(s=t.substring(1,3),r=t.substring(3,5),a=t.substring(5,7),n=t.substring(7,9)):(s=t.substring(1,2),r=t.substring(2,3),a=t.substring(3,4),n=t.substring(4,5),s+=s,r+=r,a+=a,n+=n),{red:parseInt(s,16),green:parseInt(r,16),blue:parseInt(a,16),alph
vendor: 12,366 bytes, line 365
365a:n?parseInt(n,16)/255:1}}const Ra={test:Pn("#"),parse:Nx,transform:Bt.transform},Bs=t=>({test:s=>typeof s=="string"&&s.endsWith(t)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${t}`}),Tt=Bs("deg"),pt=Bs("%"),O=Bs("px"),kx=Bs("vh"),Ax=Bs("vw"),_i={...pt,parse:t=>pt.parse(t)/100,transform:t=>pt.transform(t*100)},Zt={test:Pn("hsl","hue"),parse:mc("hue","saturation","lightness"),transform:({hue:t,saturation:s,lightness:r,alpha:a=1})=>"hsla("+Math.round(t)+", "+pt.transform(vs(s))+", "+pt.transform(vs(r))+", "+vs(Is.transform(a))+")"},Ne={test:t=>Bt.test(t)||Ra.test(t)||Zt.test(t),parse:t=>Bt.test(t)?Bt.parse(t):Zt.test(t)?Zt.parse(t):Ra.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Bt.transform(t):Zt.transform(t),getAnimatableNone:t=>{const s=Ne.parse(t);return s.alpha=0,Ne.transform(s)}},Sx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cx(t){var s,r;return isNaN(t)&&typeof t=="string"&&(((s=t.match(En))==null?void 0:s.length)||0)+(((r=t.match(Sx))==null?void 0:r.length)||0)>0}const xc="number",pc="color",Ex="var",Px="var(",Ri="${}",Tx=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _s(t){const s=t.toString(),r=[],a={color:[],number:[],var:[]},n=[];let o=0;const l=s.replace(Tx,c=>(Ne.test(c)?(a.color.push(o),n.push(pc),r.push(Ne.parse(c))):c.startsWith(Px)?(a.var.push(o),n.push(Ex),r.push(c)):(a.number.push(o),n.push(xc),r.push(parseFloat(c))),++o,Ri)).split(Ri);return{values:r,split:l,indexes:a,types:n}}function gc(t){return _s(t).values}function fc(t){const{split:s,types:r}=_s(t),a=s.length;return n=>{let o="";for(let i=0;i<a;i++)if(o+=s[i],n[i]!==void 0){const l=r[i];l===xc?o+=vs(n[i]):l===pc?o+=Ne.transform(n[i]):o+=n[i]}return o}}const Ix=t=>typeof t=="number"?0:Ne.test(t)?Ne.getAnimatableNone(t):t;function _x(t){const s=gc(t);return fc(t)(s.map(Ix))}const Ft={test:Cx,parse:gc,createTransformer:fc,getAnimatableNone:_x};function na(t,s,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(s-t)*6*r:r<1/2?s:r<2/3?t+(s-t)*(2/3-r)*6:t}function Rx({hue:t,saturation:s,lightness:r,alpha:a}){t/=360,s/=100,r/=100;let n=0,o=0,i=0;if(!s)n=o=i=r;else{const l=r<.5?r*(1+s):r+s-r*s,c=2*r-l;n=na(c,l,t+1/3),o=na(c,l,t),i=na(c,l,t-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:a}}function Er(t,s){return r=>r>0?s:t}const pe=(t,s,r)=>t+(s-t)*r,ia=(t,s,r)=>{const a=t*t,n=r*(s*s-a)+a;return n<0?0:Math.sqrt(n)},Mx=[Ra,Bt,Zt],Fx=t=>Mx.find(s=>s.test(t));function Mi(t){const s=Fx(t);if(!s)return!1;let r=s.parse(t);return s===Zt&&(r=Rx(r)),r}const Fi=(t,s)=>{const r=Mi(t),a=Mi(s);if(!r||!a)return Er(t,s);const n={...r};return o=>(n.red=ia(r.red,a.red,o),n.green=ia(r.green,a.green,o),n.blue=ia(r.blue,a.blue,o),n.alpha=pe(r.alpha,a.alpha,o),Bt.transform(n))},Ma=new Set(["none","hidden"]);function Lx(t,s){return Ma.has(t)?r=>r<=0?t:s:r=>r>=1?s:t}function Dx(t,s){return r=>pe(t,s,r)}function Tn(t){return typeof t=="number"?Dx:typeof t=="string"?Cn(t)?Er:Ne.test(t)?Fi:Vx:Array.isArray(t)?yc:typeof t=="object"?Ne.test(t)?Fi:Ox:Er}function yc(t,s){const r=[...t],a=r.length,n=t.map((o,i)=>Tn(o)(o,s[i]));return o=>{for(let i=0;i<a;i++)r[i]=n[i](o);return r}}function Ox(t,s){const r={...t,...s},a={};for(const n in r)t[n]!==void 0&&s[n]!==void 0&&(a[n]=Tn(t[n])(t[n],s[n]));return n=>{for(const o in a)r[o]=a[o](n);return r}}function $x(t,s){const r=[],a={color:0,var:0,number:0};for(let n=0;n<s.values.length;n++){const o=s.types[n],i=t.indexes[o][a[o]],l=t.values[i]??0;r[n]=l,a[o]++}return r}const Vx=(t,s)=>{const r=Ft.createTransformer(s),a=_s(t),n=_s(s);return a.indexes.var.length===n.indexes.var.length&&a.indexes.color.length===n.indexes.color.length&&a.indexes.number.length>=n.indexes.number.length?Ma.has(t)&&!n.values.length||Ma.has(s)&&!a.values.length?Lx(t,s):$s(yc($x(a,n),n.values),r):Er(t,s)};function bc(t,s,r){return typeof t=="number"&&typeof s=="number"&&typeof r=="number"?pe(t,s,r):Tn(t)(t,s)}const Bx=t=>{const s=({timestamp:r})=>t(r);return{start:(r=!0)=>ue.update(s,r),stop:()=>Mt(s),now:()=>Le.isProcessing?Le.timestamp:We.now()}},vc=(t,s,r=10)=>{let a="";const n=Math.max(Math.round(s/r),2);for(let o=0;o<n;o++)a+=Math.round(t(o/(n-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},Pr=2e4;function In(t){let s=0;const r=50;let a=t.next(s);for(;!a.done&&s<Pr;)s+=r,a=t.next(s);return s>=Pr?1/0:s}function Ux(t,s=100,r){const a=r({...t,keyframes:[0,s]}),n=Math.min(In(a),Pr);return{type:"keyframes",ease:o=>a.next(n*o).value/s,duration:it(n)}}const zx=5;function wc(t,s,r){const a=Math.max(s-zx,0);return Ql(r-t(a),s-a)}const be={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},oa=.001;function Wx({duration:t=be.duration,bounce:s=be.bounce,velocity:r=be.velocity,mass:a=be.mass}){let n,o,i=1-s;i=gt(be.minDamping,be.maxDamping,i),t=gt(be.minDuration,be.maxDuration,it(t)),i<1?(n=u=>{const d=u*i,m=d*t,x=d-r,y=Fa(u,i),p=Math.exp(-m);return oa-x/y*p},o=u=>{const m=u*i*t,x=m*r+r,y=Math.pow(i,2)*Math.pow(u,2)*t,p=Math.exp(-m),j=Fa(Math.pow(u,2),i);return(-n(u)+oa>0?-1:1)*((x-y)*p)/j}):(n=u=>{const d=Math.exp(-u*t),m=(u-r)*t+1;return-oa+d*m},o=u=>{const d=Math.exp(-u*t),m=(r-u)*(t*t);return d*m});const l=5/t,c=Hx(n,o,l);if(t=jt(t),isNaN(c))return{stiffness:be.stiffness,damping:be.damping,duration:t};{const u=Math.pow(c,2)*a;return{stiffness:u,damping:i*2*Math.sqrt(a*u),duration:t}}}const Gx=12;function Hx(t,s,r){let a=r;for(let n=1;n<Gx;n++)a=a-t(a)/s(a);return a}function Fa(t,s){return t*Math.sqrt(1-s*s)}const Kx=["duration","bounce"],qx=["stiffness","damping","mass"];function Li(t,s){return s.some(r=>t[r]!==void 0)}function Yx(t){let s={velocity:be.velocity,stiffness:be.stiffness,damping:be.damping,mass:be.mass,isResolvedFromDuration:!1,...t};if(!Li(t,qx)&&Li(t,Kx))if(t.visualDuration){const r=t.visualDuration,a=2*Math.PI/(r*1.2),n=a*a,o=2*gt(.05,1,1-(t.bounce||0))*Math.sqrt(n);s={...s,mass:be.mass,stiffness:n,damping:o}}else{const r=Wx(t);s={...s,...r,mass:be.mass},s.isResolvedFromDuration=!0}return s}function Tr(t=be.visualDuration,s=be.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:s}:t;let{restSpeed:a,restDelta:n}=r;const o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:m,velocity:x,isResolvedFromDuration:y}=Yx({...r,velocity:-it(r.velocity||0)}),p=x||0,j=u/(2*Math.sqrt(c*d)),g=i-o,w=it(Math.sqrt(c/d)),v=Math.abs(g)<5;a||(a=v?be.restSpeed.granular:be.restSpeed.default),n||(n=v?be.restDelta.granular:be.restDelta.default);let b;if(j<1){const A=Fa(w,j);b=E=>{const M=Math.exp(-j*w*E);return i-M*((p+j*w*g)/A*Math.sin(A*E)+g*Math.cos(A*E))}}else if(j===1)b=A=>i-Math.exp(-w*A)*(g+(p+w*g)*A);else{const A=w*Math.sqrt(j*j-1);b=E=>{const M=Math.exp(-j*w*E),T=Math.min(A*E,300);return i-M*((p+j*w*g)*Math.sinh(T)+A*g*Math.cosh(T))/A}}const k={calculatedDuration:y&&m||null,next:A=>{const E=b(A);if(y)l.done=A>=m;else{let M=A===0?p:0;j<1&&(M=A===0?jt(p):wc(b,A,E));const T=Math.abs(M)<=a,R=Math.abs(i-E)<=n;l.done=T&&R}return l.value=l.done?i:E,l},toString:()=>{const A=Math.min(In(k),Pr),E=vc(M=>k.next(A*M).value,A,30);return A+"ms "+E},toTransition:()=>{}};return k}Tr.applyToOptions=t=>{const s=Ux(t,100,Tr);return t.ease=s.ease,t.duration=jt(s.duration),t.type="keyframes",t};function La({keyframes:t,velocity:s=0,power:r=.8,timeConstant:a=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:i,min:l,max:c,restDelta:u=.5,restSpeed:d}){const m=t[0],x={done:!1,value:m},y=T=>l!==void 0&&T<l||c!==void 0&&T>c,p=T=>l===void 0?c:c===void 0||Math.abs(l-T)<Math.abs(c-T)?l:c;let j=r*s;const g=m+j,w=i===void 0?g:i(g);w!==g&&(j=w-m);const v=T=>-j*Math.exp(-T/a),b=T=>w+v(T),k=T=>{const R=v(T),$=b(T);x.done=Math.abs(R)<=u,x.value=x.done?w:$};let A,E;const M=T=>{y(x.value)&&(A=T,E=Tr({keyframes:[x.value,p(x.value)],velocity:wc(b,T,x.value),damping:n,stiffness:o,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:T=>{let R=!1;return!E&&A===void 0&&(R=!0,k(T),M(T)),A!==void 0&&T>=A?E.next(T-A):(!R&&k(T),x)}}}function Zx(t,s,r){const a=[],n=r||At.mix||bc,o=t.length-1;for(let i=0;i<o;i++){let l=n(t[i],t[i+1]);if(s){const c=Array.isArray(s)?s[i]||ot:s;l=$s(c,l)}a.push(l)}return a}function Jx(t,s,{clamp:r=!0,ease:a,mixer:n}={}){const o=t.length;if(jn(o===s.length),o===1)return()=>s[0];if(o===2&&s[0]===s[1])return()=>s[1];const i=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),s=[...s].reverse());const l=Zx(s,a,n),c=l.length,u=d=>{if(i&&d<t[0])return s[0];let m=0;if(c>1)for(;m<t.length-2&&!(d<t[m+1]);m++);const x=Ts(t[m],t[m+1],d);return l[m](x)};return r?d=>u(gt(t[0],t[o-1],d)):u}function Xx(t,s){const r=t[t.length-1];for(let a=1;a<=s;a++){const n=Ts(0,s,a);t.push(pe(r,1,n))}}function Qx(t){const s=[0];return Xx(s,t.length-1),s}function e1(t,s){return t.map(r=>r*s)}function t1(t,s){return t.map(()=>s||lc).splice(0,t.length-1)}function ws({duration:t=300,keyframes:s,times:r,ease:a="easeInOut"}){const n=hx(a)?a.map(Ti):Ti(a),o={done:!1,value:s[0]},i=e1(r&&r.length===s.length?r:Qx(s),t),l=Jx(i,s,{ease:Array.isArray(n)?n:t1(s,n)});return{calculatedDuration:t,next:c=>(o.value=l(c),o.done=c>=t,o)}}const s1=t=>t!==null;function _n(t,{repeat:s,repeatType:r="loop"},a,n=1){const o=t.filter(s1),l=n<0||s&&r!=="loop"&&s%2===1?0:o.length-1;return!l||a===void 0?o[l]:a}const r1={decay:La,inertia:La,tween:ws,keyframes:ws,spring:Tr};function jc(t){typeof t.type=="string"&&(t.type=r1[t.type])}class Rn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,r){return this.finished.then(s,r)}}const a1=t=>t/100;class Mn extends Rn{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var a,n;const{motionValue:r}=this.options;r&&r.updatedAt!==We.now()&&this.tick(We.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(n=(a=this.options).onStop)==null||n.call(a))},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;jc(s);const{type:r=ws,repeat:a=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=s;let{keyframes:l}=s;const c=r||ws;c!==ws&&typeof l[0]!="number"&&(this.mixKeyframes=$s(a1,bc(l[0],l[1])),l=[0,100]);const u=c({...s,keyframes:l});o==="mirror"&&(this.mirroredGenerator=c({...s,keyframes:[...l].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=In(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+n,this.totalDuration=this.resolvedDuration*(a+1)-n,this.generator=u}updateTime(s){const r=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(s,r=!1){const{generator:a,totalDuration:n,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return a.next(0);const{delay:u=0,keyframes:d,repeat:m,repeatType:x,repeatDelay:y,type:p,onUpdate:j,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-n/this.speed,this.startTime)),r?this.currentTime=s:this.updateTime(s);const w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?w<0:w>n;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let b=this.currentTime,k=a;if(m){const T=Math.min(this.currentTime,n)/l;let R=Math.floor(T),$=T%1;!$&&T>=1&&($=1),$===1&&R--,R=Math.min(R,m+1),!!(R%2)&&(x==="reverse"?($=1-$,y&&($-=y/l)):x==="mirror"&&(k=i)),b=gt(0,1,$)*l}const A=v?{done:!1,value:d[0]}:k.next(b);o&&(A.value=o(A.value));let{done:E}=A;!v&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&p!==La&&(A.value=_n(d,this.options,g,this.speed)),j&&j(A.value),M&&this.finish(),A}
365then(s,r){return this.finished.then(s,r)}get duration(){return it(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+it(s)}get time(){return it(this.currentTime)}set time(s){var r;s=jt(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(s){this.updateTime(We.now());const r=this.playbackSpeed!==s;this.playbackSpeed=s,r&&(this.time=it(this.currentTime))}play(){var n,o;if(this.isStopped)return;const{driver:s=Bx,startTime:r}=this.options;this.driver||(this.driver=s(i=>this.tick(i))),(o=(n=this.options).onPlay)==null||o.call(n);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(We.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var s,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(s=this.options).onComplete)==null||r.call(s)}cancel(){var s,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(s=this.options).onCancel)==null||r.call(s)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),s.observe(this)}}function n1(t){for(let s=1;s<t.length;s++)t[s]??(t[s]=t[s-1])}const Ut=t=>t*180/Math.PI,Da=t=>{const s=Ut(Math.atan2(t[1],t[0]));return Oa(s)},i1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Da,rotateZ:Da,skewX:t=>Ut(Math.atan(t[1])),skewY:t=>Ut(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Oa=t=>(t=t%360,t<0&&(t+=360),t),Di=Da,Oi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),$i=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),o1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Oi,scaleY:$i,scale:t=>(Oi(t)+$i(t))/2,rotateX:t=>Oa(Ut(Math.atan2(t[6],t[5]))),rotateY:t=>Oa(Ut(Math.atan2(-t[2],t[0]))),rotateZ:Di,rotate:Di,skewX:t=>Ut(Math.atan(t[4])),skewY:t=>Ut(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function $a(t){return t.includes("scale")?1:0}function Va(t,s){if(!t||t==="none")return $a(s);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,n;if(r)a=o1,n=r;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=i1,n=l}if(!n)return $a(s);const o=a[s],i=n[1].split(",").map(c1);return typeof o=="function"?o(i):i[o]}const l1=(t,s)=>{const{transform:r="none"}=getComputedStyle(t);return Va(r,s)};function c1(t){return parseFloat(t.trim())}const is=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],os=new Set(is),Vi=t=>t===ns||t===O,d1=new Set(["x","y","z"]),u1=is.filter(t=>!d1.has(t));function h1(t){const s=[];return u1.forEach(r=>{const a=t.getValue(r);a!==void 0&&(s.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),s}const It={width:({x:t},{paddingLeft:s="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(s)-parseFloat(r),height:({y:t},{paddingTop:s="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(s)-parseFloat(r),top:(t,{top:s})=>parseFloat(s),left:(t,{left:s})=>parseFloat(s),bottom:({y:t},{top:s})=>parseFloat(s)+(t.max-t.min),right:({x:t},{left:s})=>parseFloat(s)+(t.max-t.min),x:(t,{transform:s})=>Va(s,"x"),y:(t,{transform:s})=>Va(s,"y")};It.translateX=It.x;It.translateY=It.y;const Wt=new Set;let Ba=!1,Ua=!1,za=!1;function Nc(){if(Ua){const t=Array.from(Wt).filter(a=>a.needsMeasurement),s=new Set(t.map(a=>a.element)),r=new Map;
vendor: 1,737 bytes, line 365
365s.forEach(a=>{const n=h1(a);n.length&&(r.set(a,n),a.render())}),t.forEach(a=>a.measureInitialState()),s.forEach(a=>{a.render();const n=r.get(a);n&&n.forEach(([o,i])=>{var l;(l=a.getValue(o))==null||l.set(i)})}),t.forEach(a=>a.measureEndState()),t.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Ua=!1,Ba=!1,Wt.forEach(t=>t.complete(za)),Wt.clear()}function kc(){Wt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ua=!0)})}function m1(){za=!0,kc(),Nc(),za=!1}class Fn{constructor(s,r,a,n,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=r,this.name=a,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Wt.add(this),Ba||(Ba=!0,ue.read(kc),ue.resolveKeyframes(Nc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:r,element:a,motionValue:n}=this;if(s[0]===null){const o=n==null?void 0:n.get(),i=s[s.length-1];if(o!==void 0)s[0]=o;else if(a&&r){const l=a.readValue(r,i);l!=null&&(s[0]=l)}s[0]===void 0&&(s[0]=i),n&&o===void 0&&n.set(s[0])}n1(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),Wt.delete(this)}cancel(){this.state==="scheduled"&&(Wt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const x1=t=>t.startsWith("--");function p1(t,s,r){x1(s)?t.style.setProperty(s,r):t.style[s]=r}const g1=Nn(()=>window.ScrollTimeline!==void 0),f1={};function y1(t,s){const r=Nn(t);return()=>f1[s]??r()}const Ac=y1(()=>{try{document.createElement("div").animate({opacity:0}
365,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gs=([t,s,r,a])=>`cubic-bezier(${t}, ${s}, ${r}, ${a})`,Bi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gs([0,.65,.55,1]),circOut:gs([.55,0,1,.45]),backIn:gs([.31,.01,.66,-.59]),backOut:gs([.33,1.53,.69,.99])};function Sc(t,s){if(t)return typeof t=="function"?Ac()?vc(t,s):"ease-out":cc(t)?gs(t):Array.isArray(t)?t.map(r=>Sc(r,s)||Bi.easeOut):Bi[t]}function b1(t,s,r,{delay:a=0,duration:n=300,repeat:o=0,repeatType:i="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[s]:r};c&&(d.offset=c);const m=Sc(l,n);Array.isArray(m)&&(d.easing=m);const x={delay:a,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};return u&&(x.pseudoElement=u),t.animate(d,x)}function Cc(t){return typeof t=="function"&&"applyToOptions"in t}function v1({type:t,...s}){return Cc(t)&&Ac()?t.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class w1 extends Rn{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!s)return;const{element:r,name:a,keyframes:n,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:l,onComplete:c}=s;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=s,jn(typeof s.type!="string");const u=v1(s);this.animation=b1(r,a,n,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const d=_n(n,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):p1(r,a,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var s,r;(r=(s=this.animation).finish)==null||r.call(s)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,a,n;const s=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(s!=null&&s.isConnected)&&((n=(a=this.animation).commitStyles)==null||n.call(a))}get duration(){var r,a;const s=((a=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:a.call(r).duration)||0;return it(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+it(s)}get time(){return it(Number(this.animation.currentTime)||0)}set time(s){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=jt(s)}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(s){this.manualStartTime=this.animation.startTime=s}attachTimeline({timeline:s,observe:r}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,s&&g1()?(this.animation.timeline=s,ot):r(this)}}const Ec={anticipate:nc,backInOut:ac,circInOut:oc};function j1(t){return t in Ec}function N1(t){typeof t.ease=="string"&&j1(t.ease)&&(t.ease=Ec[t.ease])}const la=10;class k1 extends w1{constructor(s){N1(s),jc(s),super(s),s.startTime!==void 0&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:r,onUpdate:a,onComplete:n,element:o,...i}=this.options;if(!r)return;if(s!==void 0){r.set(s);return}const l=new Mn({...i,autoplay:!1}),c=Math.max(la,We.now()-this.startTime),u=gt(0,la,c-la);r.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const Ui=(t,s)=>s==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ft.test(t)||t==="0")&&!t.startsWith("url("));function A1(t){const s=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==s)return!0}function S1(t,s,r,a){const n=t[0];if(n===null)return!1;if(s==="display"||s==="visibility")return!0;const o=t[t.length-1],i=Ui(n,s),l=Ui(o,s);return!i||!l?!1:A1(t)||(r==="spring"||Cc(r))&&a}function Wa(t){t.duration=0,t.type="keyframes"}const C1=new Set(["opacity","clipPath","filter","transform"]),E1=Nn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function P1(t){var d;const{motionValue:s,name:r,repeatDelay:a,repeatType:n,damping:o,type:i}=t;if(!(((d=s==null?void 0:s.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=s.owner.getProps();return E1()&&r&&C1.has(r)&&(r!=="transform"||!u)&&!c&&!a&&n!=="mirror"&&o!==0&&i!=="inertia"}const T1=40;class I1 extends Rn{constructor({autoplay:s=!0,delay:r=0,type:a="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",keyframes:l,name:c,motionValue:u,element:d,...m}){var p;super(),this.stop=()=>{var j,g;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=We.now();const x={autoplay:s,delay:r,type:a,repeat:n,repeatDelay:o,repeatType:i,name:c,motionValue:u,element:d,...m},y=(d==null?void 0:d.KeyframeResolver)||Fn;this.keyframeResolver=new y(l,(j,g,w)=>this.onKeyframesResolved(j,g,x,!w),c,u,d),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(s,r,a,n){var g,w;this.keyframeResolver=void 0;const{name:o,type:i,velocity:l,delay:c,isHandoff:u,onUpdate:d}=a;this.resolvedAt=We.now(),S1(s,o,i,l)||((At.instantAnimations||!c)&&(d==null||d(_n(s,a,r))),s[0]=s[s.length-1],Wa(a),a.repeat=0);const x={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>T1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:s},y=!u&&P1(x),p=(w=(g=x.motionValue)==null?void 0:g.owner)==null?void 0:w.current,j=y?
vendor: 32,503 bytes, line 365
365new k1({...x,element:p}):new Mn(x);j.finished.then(()=>{this.notifyFinished()}).catch(ot),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(s,r){return this.finished.finally(s).then(()=>{})}get animation(){var s;return this._animation||((s=this.keyframeResolver)==null||s.resume(),m1()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var s;this._animation&&this.animation.cancel(),(s=this.keyframeResolver)==null||s.cancel()}}function Pc(t,s,r,a=0,n=1){const o=Array.from(t).sort((u,d)=>u.sortNodePosition(d)).indexOf(s),i=t.size,l=(i-1)*a;return typeof r=="function"?r(o,i):n===1?o*a:l-o*a}const _1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function R1(t){const s=_1.exec(t);if(!s)return[,];const[,r,a,n]=s;return[`--${r??a}`,n]}function Tc(t,s,r=1){const[a,n]=R1(t);if(!a)return;const o=window.getComputedStyle(s).getPropertyValue(a);if(o){const i=o.trim();return Zl(i)?parseFloat(i):i}return Cn(n)?Tc(n,s,r+1):n}const M1={type:"spring",stiffness:500,damping:25,restSpeed:10},F1=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),L1={type:"keyframes",duration:.8},D1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},O1=(t,{keyframes:s})=>s.length>2?L1:os.has(t)?t.startsWith("scale")?F1(s[1]):M1:D1,$1=t=>t!==null;function V1(t,{repeat:s,repeatType:r="loop"},a){const n=t.filter($1),o=s&&r!=="loop"&&s%2===1?0:n.length-1;return n[o]}function Ln(t,s){return(t==null?void 0:t[s])??(t==null?void 0:t.default)??t}function B1({when:t,delay:s,delayChildren:r,staggerChildren:a,staggerDirection:n,repeat:o,repeatType:i,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Dn=(t,s,r,a={},n,o)=>i=>{const l=Ln(a,t)||{},c=l.delay||a.delay||0;let{elapsed:u=0}=a;u=u-jt(c);const d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:s.getVelocity(),...l,delay:-u,onUpdate:x=>{s.set(x),l.onUpdate&&l.onUpdate(x)},onComplete:()=>{i(),l.onComplete&&l.onComplete()},name:t,motionValue:s,element:o?void 0:n};B1(l)||Object.assign(d,O1(t,d)),d.duration&&(d.duration=jt(d.duration)),d.repeatDelay&&(d.repeatDelay=jt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let m=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Wa(d),d.delay===0&&(m=!0)),(At.instantAnimations||At.skipAnimations||n!=null&&n.shouldSkipAnimations)&&(m=!0,Wa(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,m&&!o&&s.get()!==void 0){const x=V1(d.keyframes,l);if(x!==void 0){ue.update(()=>{d.onUpdate(x),d.onComplete()});return}}return l.isSync?new Mn(d):new I1(d)};function zi(t){const s=[{},{}];return t==null||t.values.forEach((r,a)=>{s[0][a]=r.get(),s[1][a]=r.getVelocity()}),s}function On(t,s,r,a){if(typeof s=="function"){const[n,o]=zi(a);s=s(r!==void 0?r:t.custom,n,o)}if(typeof s=="string"&&(s=t.variants&&t.variants[s]),typeof s=="function"){const[n,o]=zi(a);s=s(r!==void 0?r:t.custom,n,o)}return s}function es(t,s,r){const a=t.getProps();return On(a,s,r!==void 0?r:a.custom,t)}const Ic=new Set(["width","height","top","left","right","bottom",...is]),Wi=30,U1=t=>!isNaN(parseFloat(t));class z1{constructor(s,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var o;const n=We.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=r.owner}setCurrent(s){this.current=s,this.updatedAt=We.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=U1(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,r){this.events[s]||(this.events[s]=new kn);const a=this.events[s].add(r);return s==="change"?()=>{a(),ue.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,r){this.passiveEffect=s,this.stopPassiveEffect=r}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,r,a){this.set(r),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-a}jump(s,r=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var s;(s=this.events.change)==null||s.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=We.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>Wi)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Wi);return Ql(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(s){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=s(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var s,r;(s=this.dependents)==null||s.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ts(t,s){return new z1(t,s)}const Ga=t=>Array.isArray(t);function W1(t,s,r){t.hasValue(s)?t.getValue(s).set(r):t.addValue(s,ts(r))}function G1(t){return Ga(t)?t[t.length-1]||0:t}function H1(t,s){const r=es(t,s);let{transitionEnd:a={},transition:n={},...o}=r||{};o={...o,...a};for(const i in o){const l=G1(o[i]);W1(t,i,l)}}const De=t=>!!(t&&t.getVelocity);function K1(t){return!!(De(t)&&t.add)}function Ha(t,s){const r=t.getValue("willChange");if(K1(r))return r.add(s);if(!r&&At.WillChange){const a=new At.WillChange("auto");t.addValue("willChange",a),a.add(s)}}function $n(t){return t.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`)}const q1="framerAppearId",_c="data-"+$n(q1);function Rc(t){return t.props[_c]}function Y1({protectedKeys:t,needsAnimating:s},r){const a=t.hasOwnProperty(r)&&s[r]!==!0;return s[r]=!1,a}function Mc(t,s,{delay:r=0,transitionOverride:a,type:n}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...l}=s;const c=o==null?void 0:o.reduceMotion;a&&(o=a);const u=[],d=n&&t.animationState&&t.animationState.getState()[n];for(const m in l){const x=t.getValue(m,t.latestValues[m]??null),y=l[m];if(y===void 0||d&&Y1(d,m))continue;const p={delay:r,...Ln(o||{},m)},j=x.get();if(j!==void 0&&!x.isAnimating&&!Array.isArray(y)&&y===j&&!p.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const b=Rc(t);if(b){const k=window.MotionHandoffAnimation(b,m,ue);k!==null&&(p.startTime=k,g=!0)}}Ha(t,m);const w=c??t.shouldReduceMotion;x.start(Dn(m,x,y,w&&Ic.has(m)?{type:!1}:p,t,g));const v=x.animation;v&&u.push(v)}return i&&Promise.all(u).then(()=>{ue.update(()=>{i&&H1(t,i)})}),u}function Ka(t,s,r={}){var c;const a=es(t,s,r.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:n=t.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(n=r.transitionOverride);const o=a?()=>Promise.all(Mc(t,a,r)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:x}=n;return Z1(t,s,u,d,m,x,r)}:()=>Promise.resolve(),{when:l}=n;if(l){const[u,d]=l==="beforeChildren"?[o,i]:[i,o];return u().then(()=>d())}else return Promise.all([o(),i(r.delay)])}function Z1(t,s,r=0,a=0,n=0,o=1,i){const l=[];for(const c of t.variantChildren)c.notify("AnimationStart",s),l.push(Ka(c,s,{...i,delay:r+(typeof a=="function"?0:a)+Pc(t.variantChildren,c,a,n,o)}).then(()=>c.notify("AnimationComplete",s)));return Promise.all(l)}function J1(t,s,r={}){t.notify("AnimationStart",s);let a;if(Array.isArray(s)){const n=s.map(o=>Ka(t,o,r));a=Promise.all(n)}else if(typeof s=="string")a=Ka(t,s,r);else{const n=typeof s=="function"?es(t,s,r.custom):s;a=Promise.all(Mc(t,n,r))}return a.then(()=>{t.notify("AnimationComplete",s)})}const X1={test:t=>t==="auto",parse:t=>t},Fc=t=>s=>s.test(t),Lc=[ns,O,pt,Tt,Ax,kx,X1],Gi=t=>Lc.find(Fc(t));function Q1(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Xl(t):!0}const ep=new Set(["brightness","contrast","saturate","opacity"]);function tp(t){const[s,r]=t.slice(0,-1).split("(");if(s==="drop-shadow")return t;const[a]=r.match(En)||[];if(!a)return t;const n=r.replace(a,"");let o=ep.has(s)?1:0;return a!==r&&(o*=100),s+"("+o+n+")"}const sp=/\b([a-z-]*)\(.*?\)/gu,qa={...Ft,getAnimatableNone:t=>{const s=t.match(sp);return s?s.map(tp).join(" "):t}},Hi={...ns,transform:Math.round},rp={rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:or,scaleX:or,scaleY:or,scaleZ:or,skew:Tt,skewX:Tt,skewY:Tt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Is,originX:_i,originY:_i,originZ:O},Vn={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,inset:O,insetBlock:O,insetBlockStart:O,insetBlockEnd:O,insetInline:O,insetInlineStart:O,insetInlineEnd:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,paddingBlock:O,paddingBlockStart:O,paddingBlockEnd:O,paddingInline:O,paddingInlineStart:O,paddingInlineEnd:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,marginBlock:O,marginBlockStart:O,marginBlockEnd:O,marginInline:O,marginInlineStart:O,marginInlineEnd:O,fontSize:O,backgroundPositionX:O,backgroundPositionY:O,...rp,zIndex:Hi,fillOpacity:Is,strokeOpacity:Is,numOctaves:Hi},ap={...Vn,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:qa,WebkitFilter:qa},Dc=t=>ap[t];function Oc(t,s){let r=Dc(t);return r!==qa&&(r=Ft),r.getAnimatableNone?r.getAnimatableNone(s):void 0}const np=new Set(["auto","none","0"]);function ip(t,s,r){let a=0,n;for(;a<t.length&&!n;){const o=t[a];typeof o=="string"&&!np.has(o)&&_s(o).values.length&&(n=t[a]),a++}if(n&&r)for(const o of s)t[o]=Oc(r,n)}class op extends Fn{constructor(s,r,a,n,o){super(s,r,a,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<s.length;d++){let m=s[d];if(typeof m=="string"&&(m=m.trim(),Cn(m))){const x=Tc(m,r.current);x!==void 0&&(s[d]=x),d===s.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Ic.has(a)||s.length!==2)return;const[n,o]=s,i=Gi(n),l=Gi(o),c=Ii(n),u=Ii(o);if(c!==u&&It[a]){this.needsMeasurement=!0;return}if(i!==l)if(Vi(i)&&Vi(l))for(let d=0;d<s.length;d++){const m=s[d];typeof m=="string"&&(s[d]=parseFloat(m))}else It[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:r}=this,a=[];for(let n=0;n<s.length;n++)(s[n]===null||Q1(s[n]))&&a.push(n);a.length&&ip(s,a,r)}measureInitialState(){const{element:s,unresolvedKeyframes:r,name:a}=this;if(!s||!s.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=It[a](s.measureViewportBox(),window.getComputedStyle(s.current)),r[0]=this.measuredOrigin;const n=r[r.length-1];n!==void 0&&s.getValue(a,n).jump(n,!1)}measureEndState(){var l;const{element:s,name:r,unresolvedKeyframes:a}=this;if(!s||!s.current)return;const n=s.getValue(r);n&&n.jump(this.measuredOrigin,!1);const o=a.length-1,i=a[o];a[o]=It[r](s.measureViewportBox(),window.getComputedStyle(s.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{s.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function lp(t,s,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let a=document;const n=(r==null?void 0:r[t])??a.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(a=>a!=null)}const $c=(t,s)=>s&&typeof t=="number"?s.transform(t):t;function Ya(t){return Jl(t)&&"offsetHeight"in t}const{schedule:Bn}=dc(queueMicrotask,!1),ht={x:!1,y:!1};function Vc(){return ht.x||ht.y}function cp(t){return t==="x"||t==="y"?ht[t]?null:(ht[t]=!0,()=>{ht[t]=!1}):ht.x||ht.y?null:(ht.x=ht.y=!0,()=>{ht.x=ht.y=!1})}function Bc(t,s){const r=lp(t),a=new AbortController,n={passive:!0,...s,signal:a.signal};return[r,n,()=>a.abort()]}function Ki(t){return!(t.pointerType==="touch"||Vc())}function dp(t,s,r={}){const[a,n,o]=Bc(t,r),i=l=>{if(!Ki(l))return;const{target:c}=l,u=s(c,l);if(typeof u!="function"||!c)return;const d=m=>{Ki(m)&&(u(m),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,n)};return a.forEach(l=>{l.addEventListener("pointerenter",i,n)}),o}const Uc=(t,s)=>s?t===s?!0:Uc(t,s.parentElement):!1,Un=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,up=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hp(t){return up.has(t.tagName)||t.isContentEditable===!0}const mp=new Set(["INPUT","SELECT","TEXTAREA"]);function xp(t){return mp.has(t.tagName)||t.isContentEditable===!0}const fr=new WeakSet;function qi(t){return s=>{s.key==="Enter"&&t(s)}}function ca(t,s){t.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const pp=(t,s)=>{const r=t.currentTarget;if(!r)return;const a=qi(()=>{if(fr.has(r))return;ca(r,"down");const n=qi(()=>{ca(r,"up")}),o=()=>ca(r,"cancel");r.addEventListener("keyup",n,s),r.addEventListener("blur",o,s)});r.addEventListener("keydown",a,s),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),s)};function Yi(t){return Un(t)&&!Vc()}function gp(t,s,r={}){const[a,n,o]=Bc(t,r),i=l=>{const c=l.currentTarget;if(!Yi(l))return;fr.add(c);const u=s(c,l),d=(y,p)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",x),fr.has(c)&&fr.delete(c),Yi(y)&&typeof u=="function"&&u(y,{success:p})},m=y=>{d(y,c===window||c===document||r.useGlobalTarget||Uc(c,y.target))},x=y=>{d(y,!1)};window.addEventListener("pointerup",m,n),window.addEventListener("pointercancel",x,n)};return a.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",i,n),Ya(l)&&(l.addEventListener("focus",u=>pp(u,n)),!hp(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function zc(t){return Jl(t)&&"ownerSVGElement"in t}function fp(t){return zc(t)&&t.tagName==="svg"}const yp=[...Lc,Ne,Ft],bp=t=>yp.find(Fc(t)),Zi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:Zi(),y:Zi()}),Ji=()=>({min:0,max:0}),Se=()=>({x:Ji(),y:Ji()}),Za={current:null},Wc={current:!1},vp=typeof window<"u";function wp(){if(Wc.current=!0,!!vp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),s=()=>Za.current=t.matches;t.addEventListener("change",s),s()}else Za.current=!1}const jp=new WeakMap;function Br(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Rs(t){return typeof t=="string"||Array.isArray(t)}const zn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wn=["initial",...zn];function Ur(t){return Br(t.animate)||Wn.some(s=>Rs(t[s]))}function Gc(t){return!!(Ur(t)||t.variants)}function Np(t,s,r){for(const a in s){const n=s[a],o=r[a];if(De(n))t.addValue(a,n);else if(De(o))t.addValue(a,ts(n,{owner:t}));else if(o!==n)if(t.hasValue(a)){const i=t.getValue(a);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{const i=t.getStaticValue(a);t.addValue(a,ts(i!==void 0?i:n,{owner:t}))}}for(const a in r)s[a]===void 0&&t.removeValue(a);return s}const Xi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ir={};function Hc(t){Ir=t}function kp(){return Ir}class Ap{scrapeMotionValuesFromProps(s,r,a){return{}}constructor({parent:s,props:r,presenceContext:a,reducedMotionConfig:n,skipAnimations:o,blockInitialAnimation:i,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Fn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=We.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,ue.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=d,this.parent=s,this.props=r,this.presenceContext=a,this.depth=s?s.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=Ur(r),this.isVariantNode=Gc(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:m,...x}=this.scrapeMotionValuesFromProps(r,{},this);for(const y in x){const p=x[y];u[y]!==void 0&&De(p)&&p.set(u[y])}}mount(s){var r;this.current=s,jp.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,n)=>this.bindToMotionValue(n,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Wc.current||wp(),this.shouldReduceMotion=Za.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var s;this.projection&&this.projection.unmount(),Mt(this.notifyUpdate),Mt(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(s=this.parent)==null||s.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const a=this.features[r];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,r){this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)();const a=os.has(s);a&&this.onBindTransform&&this.onBindTransform();const n=r.on("change",i=>{this.latestValues[s]=i,this.props.onUpdate&&ue.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,s,r)),this.valueSubscriptions.set(s,()=>{n(),o&&o(),r.owner&&r.stop()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in Ir){const r=Ir[s];if(!r)continue;const{isEnabled:a,Feature:n}=r;if(!this.features[s]&&n&&a(this.props)&&(this.features[s]=new n(this)),this.features[s]){const o=this.features[s];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Se()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,r){this.latestValues[s]=r}update(s,r){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let a=0;a<Xi.length;a++){const n=Xi[a];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o="on"+n,i=s[o];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=Np(this,this.scrapeMotionValuesFromProps(s,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(s){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(s),()=>r.variantChildren.delete(s)}addValue(s,r){const a=this.values.get(s);r!==a&&(a&&this.removeValue(s),this.bindToMotionValue(s,r),this.values.set(s,r),this.latestValues[s]=r.get())}removeValue(s){this.values.delete(s);const r=this.valueSubscriptions.get(s);r&&(r(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,r){if(this.props.values&&this.props.values[s])return this.props.values[s];let a=this.values.get(s);return a===void 0&&r!==void 0&&(a=ts(r===null?void 0:r,{owner:this}),this.addValue(s,a)),a}readValue(s,r){let a=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return a!=null&&(typeof a=="string"&&(Zl(a)||Xl(a))?a=parseFloat(a):!bp(a)&&Ft.test(r)&&(a=Oc(s,r)),this.setBaseTarget(s,De(a)?a.get():a)),De(a)?a.get():a}setBaseTarget(s,r){this.baseTarget[s]=r}getBaseTarget(s){var o;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const i=On(this.props,r,(o=this.presenceContext)==null?void 0:o.custom);i&&(a=i[s])}if(r&&a!==void 0)return a;const n=this.getBaseTargetFromProps(this.props,s);return n!==void 0&&!De(n)?n:this.initialValues[s]!==void 0&&a===void 0?void 0:this.baseTarget[s]}on(s,r){return this.events[s]||(this.events[s]=new kn),this.events[s].add(r)}notify(s,...r){this.events[s]&&this.events[s].notify(...r)}scheduleRenderMicrotask(){Bn.render(this.render)}}class Kc extends Ap{constructor(){super(...arguments),this.KeyframeResolver=op}sortInstanceNodePosition(s,r){return s.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(s,r){const a=s.style;return a?a[r]:void 0}removeValueFromRenderState(s,{vars:r,style:a}){delete r[s],delete a[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;De(s)&&(this.childSubscription=s.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Dt{constructor(s){this.isMounted=!1,this.node=s}update(){}}function qc({top:t,left:s,right:r,bottom:a}){return{x:{min:s,max:r},y:{min:t,max:a}}}function Sp({x:t,y:s}){return{top:s.min,right:t.max,bottom:s.max,left:t.min}}function Cp(t,s){if(!s)return t;const r=s({x:t.left,y:t.top}),a=s({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function da(t){return t===void 0||t===1}function Ja({scale:t,scaleX:s,scaleY:r}){return!da(t)||!da(s)||!da(r)}function Vt(t){return Ja(t)||Yc(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Yc(t){return Qi(t.x)||Qi(t.y)}function Qi(t){return t&&t!=="0%"}function _r(t,s,r){const a=t-r,n=s*a;return r+n}function eo(t,s,r,a,n){return n!==void 0&&(t=_r(t,n,a)),_r(t,r,a)+s}function Xa(t,s=0,r=1,a,n){t.min=eo(t.min,s,r,a,n),t.max=eo(t.max,s,r,a,n)}function Zc(t,{x:s,y:r}){Xa(t.x,s.translate,s.scale,s.originPoint),Xa(t.y,r.translate,r.scale,r.originPoint)}const to=.999999999999,so=1.0000000000001;function Ep(t,s,r,a=!1){const n=r.length;if(!n)return;s.x=s.y=1;let o,i;for(let l=0;l<n;l++){o=r[l],i=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Qt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(s.x*=i.x.scale,s.y*=i.y.scale,Zc(t,i)),a&&Vt(o.latestValues)&&Qt(t,o.latestValues))}s.x<so&&s.x>to&&(s.x=1),s.y<so&&s.y>to&&(s.y=1)}function Xt(t,s){t.min=t.min+s,t.max=t.max+s}function ro(t,s,r,a,n=.5){const o=pe(t.min,t.max,n);Xa(t,s,r,o,a)}function Qt(t,s){ro(t.x,s.x,s.scaleX,s.scale,s.originX),ro(t.y,s.y,s.scaleY,s.scale,s.originY)}function Jc(t,s){return qc(Cp(t.getBoundingClientRect(),s))}function Pp(t,s,r){const a=Jc(t,r),{scroll:n}=s;return n&&(Xt(a.x,n.offset.x),Xt(a.y,n.offset.y)),a}const Tp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ip=is.length;function _p(t,s,r){let a="",n=!0;for(let o=0;o<Ip;o++){const i=is[o],l=t[i];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(i.startsWith("scale")?1:0);else{const u=parseFloat(l);c=i.startsWith("scale")?u===1:u===0}if(!c||r){const u=$c(l,Vn[i]);if(!c){n=!1;const d=Tp[i]||i;a+=`${d}(${u}) `}r&&(s[i]=u)}}return a=a.trim(),r?a=r(s,n?"":a):n&&(a="none"),a}function Gn(t,s,r){const{style:a,vars:n,transformOrigin:o}=t;let i=!1,l=!1;for(const c in s){const u=s[c];if(os.has(c)){i=!0;continue}else if(hc(c)){n[c]=u;continue}else{const d=$c(u,Vn[c]);c.startsWith("origin")?(l=!0,o[c]=d):a[c]=d}}if(s.transform||(i||r?a.transform=_p(s,t.transform,r):a.transform&&(a.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=o;a.transformOrigin=`${c} ${u} ${d}`}}function Xc(t,{style:s,vars:r},a,n){const o=t.style;let i;for(i in s)o[i]=s[i];n==null||n.applyProjectionStyles(o,a);for(i in r)o.setProperty(i,r[i])}function ao(t,s){return s.max===s.min?0:t/(s.max-s.min)*100}const us={correct:(t,s)=>{if(!s.target)return t;if(typeof t=="string")if(O.test(t))t=parseFloat(t);else return t;const r=ao(t,s.target.x),a=ao(t,s.target.y);return`${r}% ${a}%`}},Rp={correct:(t,{treeScale:s,projectionDelta:r})=>{const a=t,n=Ft.parse(t);if(n.length>5)return a;const o=Ft.createTransformer(t),i=typeof n[0]!="number"?1:0,l=r.x.scale*s.x,c=r.y.scale*s.y;n[0+i]/=l,n[1+i]/=c;const u=pe(l,c,.5);return typeof n[2+i]=="number"&&(n[2+i]/=u),typeof n[3+i]=="number"&&(n[3+i]/=u),o(n)}},Qa={borderRadius:{...us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:us,borderTopRightRadius:us,borderBottomLeftRadius:us,borderBottomRightRadius:us,boxShadow:Rp};function Qc(t,{layout:s,layoutId:r}){return os.has(t)||t.startsWith("origin")||(s||r!==void 0)&&(!!Qa[t]||t==="opacity")}function Hn(t,s,r){var i;const a=t.style,n=s==null?void 0:s.style,o={};if(!a)return o;for(const l in a)(De(a[l])||n&&De(n[l])||Qc(l,t)||((i=r==null?void 0:r.getValue(l))==null?void 0:i.liveStyle)!==void 0)&&(o[l]=a[l]);return o}function Mp(t){return window.getComputedStyle(t)}class Fp extends Kc{constructor(){super(...arguments),this.type="html",this.renderInstance=Xc}readValueFromInstance(s,r){var a;if(os.has(r))return(a=this.projection)!=null&&a.isProjecting?$a(r):l1(s,r);{const n=Mp(s),o=(hc(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(s,{transformPagePoint:r}){return Jc(s,r)}build(s,r,a){Gn(s,r,a.transformTemplate)}scrapeMotionValuesFromProps(s,r,a){return Hn(s,r,a)}}const Lp={offset:"stroke-dashoffset",array:"stroke-dasharray"},Dp={offset:"strokeDashoffset",array:"strokeDasharray"};function Op(t,s,r=1,a=0,n=!0){t.pathLength=1;const o=n?Lp:Dp;t[o.offset]=`${-a}`,t[o.array]=`${s} ${r}`}const $p=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ed(t,{attrX:s,attrY:r,attrScale:a,pathLength:n,pathSpacing:o=1,pathOffset:i=0,...l},c,u,d){if(Gn(t,l,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:x}=t;m.transform&&(x.transform=m.transform,delete m.transform),(x.transform||m.transformOrigin)&&(x.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),x.transform&&(x.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete m.transformBox);for(const y of $p)m[y]!==void 0&&(x[y]=m[y],delete m[y]);s!==void 0&&(m.x=s),r!==void 0&&(m.y=r),a!==void 0&&(m.scale=a),n!==void 0&&Op(m,n,o,i,!1)}const td=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),sd=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Vp(t,s,r,a){Xc(t,s,void 0,a);for(const n in s.attrs)t.setAttribute(td.has(n)?n:$n(n),s.attrs[n])}function rd(t,s,r){const a=Hn(t,s,r);for(const n in t)if(De(t[n])||De(s[n])){const o=is.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;a[o]=t[n]}return a}class Bp extends Kc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Se}getBaseTargetFromProps(s,r){return s[r]}readValueFromInstance(s,r){if(os.has(r)){const a=Dc(r);return a&&a.default||0}return r=td.has(r)?r:$n(r),s.getAttribute(r)}scrapeMotionValuesFromProps(s,r,a){return rd(s,r,a)}build(s,r,a){ed(s,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(s,r,a,n){Vp(s,r,a,n)}mount(s){this.isSVGTag=sd(s.tagName),super.mount(s)}}const Up=Wn.length;function ad(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?ad(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const s={};for(let r=0;r<Up;r++){const a=Wn[r],n=t.props[a];(Rs(n)||n===!1)&&(s[a]=n)}return s}function nd(t,s){if(!Array.isArray(s))return!1;const r=s.length;if(r!==t.length)return!1;for(let a=0;a<r;a++)if(s[a]!==t[a])return!1;return!0}const zp=[...zn].reverse(),Wp=zn.length;function Gp(t){return s=>Promise.all(s.map(({animation:r,options:a})=>J1(t,r,a)))}function Hp(t){let s=Gp(t),r=no(),a=!0;const n=c=>(u,d)=>{var x;const m=es(t,d,c==="exit"?(x=t.presenceContext)==null?void 0:x.custom:void 0);if(m){const{transition:y,transitionEnd:p,...j}=m;u={...u,...j,...p}}return u};function o(c){s=c(t)}function i(c){const{props:u}=t,d=ad(t.parent)||{},m=[],x=new Set;let y={},p=1/0;for(let g=0;g<Wp;g++){const w=zp[g],v=r[w],b=u[w]!==void 0?u[w]:d[w],k=Rs(b),A=w===c?v.isActive:null;A===!1&&(p=g);let E=b===d[w]&&b!==u[w]&&k;if(E&&a&&t.manuallyAnimateOnMount&&(E=!1),v.protectedKeys={...y},!v.isActive&&A===null||!b&&!v.prevProp||Br(b)||typeof b=="boolean")continue;const M=Kp(v.prevProp,b);let T=M||w===c&&v.isActive&&!E&&k||g>p&&k,R=!1;const $=Array.isArray(b)?b:[b];let z=$.reduce(n(w),{});A===!1&&(z={});const{prevResolvedValues:te={}}=v,B={...te,...z},W=J=>{T=!0,x.has(J)&&(R=!0,x.delete(J)),v.needsAnimating[J]=!0;const H=t.getValue(J);H&&(H.liveStyle=!1)};for(const J in B){const H=z[J],Z=te[J];if(y.hasOwnProperty(J))continue;let Y=!1;Ga(H)&&Ga(Z)?Y=!nd(H,Z):Y=H!==Z,Y?H!=null?W(J):x.add(J):H!==void 0&&x.has(J)?W(J):v.protectedKeys[J]=!0}v.prevProp=b,v.prevResolvedValues=z,v.isActive&&(y={...y,...z}),a&&t.blockInitialAnimation&&(T=!1);const q=E&&M;T&&(!q||R)&&m.push(...$.map(J=>{const H={type:w};if(typeof J=="string"&&a&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:Z}=t,Y=es(Z,J);if(Z.enteringChildren&&Y){const{delayChildren:de}=Y.transition||{};H.delay=Pc(Z.enteringChildren,t,de)}}return{animation:J,options:H}}))}if(x.size){const g={};if(typeof u.initial!="boolean"){const w=es(t,Array.isArray(u.initial)?u.initial[0]:u.initial);w&&w.transition&&(g.transition=w.transition)}
vendor: 3,271 bytes, line 365
365x.forEach(w=>{const v=t.getBaseTarget(w),b=t.getValue(w);b&&(b.liveStyle=!0),g[w]=v??null}),m.push({animation:g})}let j=!!m.length;return a&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(j=!1),a=!1,j?s(m):Promise.resolve()}function l(c,u){var m;if(r[c].isActive===u)return Promise.resolve();(m=t.variantChildren)==null||m.forEach(x=>{var y;return(y=x.animationState)==null?void 0:y.setActive(c,u)}),r[c].isActive=u;const d=i(c);for(const x in r)r[x].protectedKeys={};return d}return{animateChanges:i,setActive:l,setAnimateFunction:o,getState:()=>r,reset:()=>{r=no()}}}function Kp(t,s){return typeof s=="string"?s!==t:Array.isArray(s)?!nd(s,t):!1}function $t(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function no(){return{animate:$t(!0),whileInView:$t(),whileHover:$t(),whileTap:$t(),whileDrag:$t(),whileFocus:$t(),exit:$t()}}function io(t,s){t.min=s.min,t.max=s.max}function ut(t,s){io(t.x,s.x),io(t.y,s.y)}function oo(t,s){t.translate=s.translate,t.scale=s.scale,t.originPoint=s.originPoint,t.origin=s.origin}const id=1e-4,qp=1-id,Yp=1+id,od=.01,Zp=0-od,Jp=0+od;function Ge(t){return t.max-t.min}function Xp(t,s,r){return Math.abs(t-s)<=r}function lo(t,s,r,a=.5){t.origin=a,t.originPoint=pe(s.min,s.max,t.origin),t.scale=Ge(r)/Ge(s),t.translate=pe(r.min,r.max,t.origin)-t.originPoint,(t.scale>=qp&&t.scale<=Yp||isNaN(t.scale))&&(t.scale=1),(t.translate>=Zp&&t.translate<=Jp||isNaN(t.translate))&&(t.translate=0)}function js(t,s,r,a){lo(t.x,s.x,r.x,a?a.originX:void 0),lo(t.y,s.y,r.y,a?a.originY:void 0)}function co(t,s,r){t.min=r.min+s.min,t.max=t.min+Ge(s)}function Qp(t,s,r){co(t.x,s.x,r.x),co(t.y,s.y,r.y)}function uo(t,s,r){t.min=s.min-r.min,t.max=t.min+Ge(s)}function Rr(t,s,r){uo(t.x,s.x,r.x),uo(t.y,s.y,r.y)}function ho(t,s,r,a,n){return t-=s,t=_r(t,1/r,a),n!==void 0&&(t=_r(t,1/n,a)),t}function eg(t,s=0,r=1,a=.5,n,o=t,i=t){if(pt.test(s)&&(s=parseFloat(s),s=pe(i.min,i.max,s/100)-i.min),typeof s!="number")return;let l=pe(o.min,o.max,a);t===o&&(l-=s),t.min=ho(t.min,s,r,l,n),t.max=ho(t.max,s,r,l,n)}function mo(t,s,[r,a,n],o,i){eg(t,s[r],s[a],s[n],s.scale,o,i)}const tg=["x","scaleX","originX"],sg=["y","scaleY","originY"];function xo(t,s,r,a){mo(t.x,s,tg,r?r.x:void 0,a?a.x:void 0),mo(t.y,s,sg,r?r.y:void 0,a?a.y:void 0)}function po(t){return t.translate===0&&t.scale===1}function ld(t){return po(t.x)&&po(t.y)}function go(t,s){return t.min===s.min&&t.max===s.max}function rg(t,s){return go(t.x,s.x)&&go(t.y,s.y)}function fo(t,s){return Math.round(t.min)===Math.round(s.min)&&Math.round(t.max)===Math.round(s.max)}function cd(t,s){return fo(t.x,s.x)&&fo(t.y,s.y)}function yo(t){return Ge(t.x)/Ge(t.y)}function bo(t,s){return t.translate===s.translate&&t.scale===s.scale&&t.originPoint===s.originPoint}function st(t){return[t("x"),t("y")]}function ag(t,s,r){let a="";const n=t.x.translate/s.x,o=t.y.translate/s.y,i=(r==null?void 0:r.z)||0;if((n||o||i)&&(a=`translate3d(${n}px, ${o}px, ${i}px) `),(s.x!==1||s.y!==1)&&(a+=`scale(${1/s.x}, ${1/s.y}) `),r){const{transformPerspective:u,rotate:d,rotateX:m,rotateY:x,skewX:y,skewY:p}=r;u&&(a=`perspective(${u}px) ${a}`),d&&(a+=`rotate(${d}deg) `),m&&(a+=`rotateX(${m}deg) `),x&&(a+=`rotateY(${x}deg) `),y&&(a+=`skewX(${y}deg) `),p&&(a+=`skewY(${p}deg) `)}
vendor: 18,827 bytes, line 365
365const l=t.x.scale*s.x,c=t.y.scale*s.y;return(l!==1||c!==1)&&(a+=`scale(${l}, ${c})`),a||"none"}const dd=["TopLeft","TopRight","BottomLeft","BottomRight"],ng=dd.length,vo=t=>typeof t=="string"?parseFloat(t):t,wo=t=>typeof t=="number"||O.test(t);function ig(t,s,r,a,n,o){n?(t.opacity=pe(0,r.opacity??1,og(a)),t.opacityExit=pe(s.opacity??1,0,lg(a))):o&&(t.opacity=pe(s.opacity??1,r.opacity??1,a));for(let i=0;i<ng;i++){const l=`border${dd[i]}Radius`;let c=jo(s,l),u=jo(r,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||wo(c)===wo(u)?(t[l]=Math.max(pe(vo(c),vo(u),a),0),(pt.test(u)||pt.test(c))&&(t[l]+="%")):t[l]=u}(s.rotate||r.rotate)&&(t.rotate=pe(s.rotate||0,r.rotate||0,a))}function jo(t,s){return t[s]!==void 0?t[s]:t.borderRadius}const og=ud(0,.5,ic),lg=ud(.5,.95,ot);function ud(t,s,r){return a=>a<t?0:a>s?1:r(Ts(t,s,a))}function cg(t,s,r){const a=De(t)?t:ts(t);return a.start(Dn("",a,s,r)),a.animation}function Ms(t,s,r,a={passive:!0}){return t.addEventListener(s,r,a),()=>t.removeEventListener(s,r)}const dg=(t,s)=>t.depth-s.depth;class ug{constructor(){this.children=[],this.isDirty=!1}add(s){vn(this.children,s),this.isDirty=!0}remove(s){wn(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(dg),this.isDirty=!1,this.children.forEach(s)}}function hg(t,s){const r=We.now(),a=({timestamp:n})=>{const o=n-r;o>=s&&(Mt(a),t(o-s))};return ue.setup(a,!0),()=>Mt(a)}function yr(t){return De(t)?t.get():t}class mg{constructor(){this.members=[]}add(s){vn(this.members,s),s.scheduleRender()}remove(s){if(wn(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(s){const r=this.members.findIndex(n=>s===n);if(r===0)return!1;let a;for(let n=r;n>=0;n--){const o=this.members[n];if(o.isPresent!==!1){a=o;break}}return a?(this.promote(a),!0):!1}promote(s,r){const a=this.lead;if(s!==a&&(this.prevLead=a,this.lead=s,s.show(),a)){a.instance&&a.scheduleRender(),s.scheduleRender();const n=a.options.layoutDependency,o=s.options.layoutDependency;n!==void 0&&o!==void 0&&n===o||(s.resumeFrom=a,r&&(s.resumeFrom.preserveOpacity=!0),a.snapshot&&(s.snapshot=a.snapshot,s.snapshot.latestValues=a.animationValues||a.latestValues),s.root&&s.root.isUpdating&&(s.isLayoutDirty=!0));const{crossfade:l}=s.options;l===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(s=>{const{options:r,resumingFrom:a}=s;r.onExitComplete&&r.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(s=>{s.instance&&s.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const br={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ua=["","X","Y","Z"],xg=1e3;let pg=0;function ha(t,s,r,a){const{latestValues:n}=s;n[t]&&(r[t]=n[t],s.setStaticValue(t,0),a&&(a[t]=0))}function hd(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:s}=t.options;if(!s)return;const r=Rc(s);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:n,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ue,!(n||o))}const{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&hd(a)}function md({attachResizeListener:t,defaultParent:s,measureScroll:r,checkIsScrollRoot:a,resetTransform:n}){return class{constructor(i={},l=s==null?void 0:s()){this.id=pg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yg),this.nodes.forEach(jg),this.nodes.forEach(Ng),this.nodes.forEach(bg)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ug)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new kn),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=zc(i)&&!fp(i),this.instance=i;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),t){let d,m=0;const x=()=>this.root.updateBlockedByResize=!1;ue.read(()=>{m=window.innerWidth}),t(i,()=>{const y=window.innerWidth;y!==m&&(m=y,this.root.updateBlockedByResize=!0,d&&d(),d=hg(x,250),br.hasAnimatedSinceResize&&(br.hasAnimatedSinceResize=!1,this.nodes.forEach(Ao)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:x,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Eg,{onLayoutAnimationStart:j,onLayoutAnimationComplete:g}=u.getProps(),w=!this.targetLayout||!cd(this.targetLayout,y),v=!m&&x;if(this.options.layoutRoot||this.resumeFrom||v||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Ln(p,"layout"),onPlay:j,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,v)}else m||Ao(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Mt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(kg),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const m=this.path[d];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(No);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ko);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wg),this.nodes.forEach(gg),this.nodes.forEach(fg)):this.nodes.forEach(ko),this.clearAllSnapshots();const l=We.now();Le.delta=gt(0,1e3/60,l-Le.timestamp),Le.timestamp=l,Le.isProcessing=!0,ra.update.process(Le),ra.preRender.process(Le),ra.render.process(Le),Le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vg),this.sharedNodes.forEach(Ag)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ge(this.snapshot.measuredBox.x)&&!Ge(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&this.instance){const c=a(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!n)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!ld(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||Vt(this.latestValues)||d)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),Pg(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:i}=this.options;if(!i)return Se();const l=i.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Tg))){const{scroll:d}=this.root;d&&(Xt(l.x,d.offset.x),Xt(l.y,d.offset.y))}return l}removeElementScroll(i){var c;const l=Se();if(ut(l,i),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:m,options:x}=d;d!==this.root&&m&&x.layoutScroll&&(m.wasRoot&&ut(l,i),Xt(l.x,m.offset.x),Xt(l.y,m.offset.y))}return l}applyTransform(i,l=!1){const c=Se();ut(c,i);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Qt(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Vt(d.latestValues)&&Qt(c,d.latestValues)}return Vt(this.latestValues)&&Qt(c,this.latestValues),c}removeTransform(i){const l=Se();ut(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Vt(u.latestValues))continue;Ja(u.latestValues)&&u.updateSnapshot();const d=Se(),m=u.measurePageBox();ut(d,m),xo(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Vt(this.latestValues)&&xo(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var y;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:m}=this.options;if(!this.layout||!(d||m))return;this.resolvedRelativeTargetAt=Le.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Se(),this.targetWithTransforms=Se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ut(this.target,this.layout.layoutBox),Zc(this.target,this.targetDelta)):ut(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ja(this.parent.latestValues)||Yc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,l,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),Rr(this.relativeTargetOrigin,l,c),ut(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Le.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ut(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,x=this.treeScale.y;Ep(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Se());const{target:y}=i;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oo(this.prevProjectionDelta.x,this.projectionDelta.x),oo(this.prevProjectionDelta.y,this.projectionDelta.y)),js(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==x||!bo(this.projectionDelta.x,this.prevProjectionDelta.x)||!bo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},m=Jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const x=Se(),y=c?c.source:void 0,p=this.layout?this.layout.source:void 0,j=y!==p,g=this.getStack(),w=!g||g.members.length<=1,v=!!(j&&!w&&this.options.crossfade===!0&&!this.path.some(Cg));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const A=k/1e3;So(m.x,i.x,A),So(m.y,i.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rr(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Sg(this.relativeTarget,this.relativeTargetOrigin,x,A),b&&rg(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Se()),ut(b,this.relativeTarget)),j&&(this.animationValues=d,ig(d,u,this.latestValues,A,v,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Mt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{br.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ts(0)),this.currentAnimation=cg(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),i.onUpdate&&i.onUpdate(d)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&xd(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Se();const m=Ge(this.layout.layoutBox.x);
vendor: 4,668 bytes, line 365
365c.x.min=i.target.x.min,c.x.max=c.x.min+m;const x=Ge(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+x}ut(l,c),Qt(l,d),js(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new mg),this.sharedNodes.get(i).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var l;const{layoutId:i}=this.options;return i?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:i}=this.options;return i?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&ha("z",i,u,this.animationValues);for(let d=0;d<ua.length;d++)ha(`rotate${ua[d]}`,i,u,this.animationValues),ha(`skew${ua[d]}`,i,u,this.animationValues);i.render();for(const d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=yr(l==null?void 0:l.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=yr(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Vt(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let m=ag(this.projectionDeltaWithTransform,this.treeScale,d);c&&(m=c(d,m)),i.transform=m;const{x,y}=this.projectionDelta;i.transformOrigin=`${x.origin*100}% ${y.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Qa){if(d[p]===void 0)continue;const{correct:j,applyTo:g,isCSSVariable:w}=Qa[p],v=m==="none"?d[p]:j(d[p],u);if(g){const b=g.length;for(let k=0;k<b;k++)i[g[k]]=v}else w?this.options.visualElement.renderState.vars[p]=v:i[p]=v}this.options.layoutId&&(i.pointerEvents=u===this?yr(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var l;return(l=i.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(No),this.root.sharedNodes.clear()}}}function gg(t){t.updateLayout()}function fg(t){var r;const s=((r=t.resumeFrom)==null?void 0:r.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:n}=t.layout,{animationType:o}=t.options,i=s.source!==t.layout.source;o==="size"?st(m=>{const x=i?s.measuredBox[m]:s.layoutBox[m],y=Ge(x);x.min=a[m].min,x.max=x.min+y}):xd(o,s.layoutBox,a)&&st(m=>{const x=i?s.measuredBox[m]:s.layoutBox[m],y=Ge(a[m]);x.max=x.min+y,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+y)});const l=Jt();js(l,a,s.layoutBox);const c=Jt();i?js(c,t.applyTransform(n,!0),s.measuredBox):js(c,a,s.layoutBox);const u=!ld(l);let d=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:x,layout:y}=m;if(x&&y){const p=Se();Rr(p,s.layoutBox,x.layoutBox);const j=Se();Rr(j,a,y.layoutBox),cd(p,j)||(d=!0),m.options.layoutRoot&&(t.relativeTarget=j,t.relativeTargetOrigin=p,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:a,snapshot:s,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(t.isLead()){const{onExitComplete:a}=t.options;a&&a()}t.options.transition=void 0}function yg(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 6,850 bytes, lines 365-373
365isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function bg(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vg(t){t.clearSnapshot()}function No(t){t.clearMeasurements()}function ko(t){t.isLayoutDirty=!1}function wg(t){const{visualElement:s}=t.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ao(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jg(t){t.resolveTargetDelta()}function Ng(t){t.calcProjection()}function kg(t){t.resetSkewAndRotation()}function Ag(t){t.removeLeadSnapshot()}function So(t,s,r){t.translate=pe(s.translate,0,r),t.scale=pe(s.scale,1,r),t.origin=s.origin,t.originPoint=s.originPoint}function Co(t,s,r,a){t.min=pe(s.min,r.min,a),t.max=pe(s.max,r.max,a)}function Sg(t,s,r,a){Co(t.x,s.x,r.x,a),Co(t.y,s.y,r.y,a)}function Cg(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Eg={duration:.45,ease:[.4,0,.1,1]},Eo=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Po=Eo("applewebkit/")&&!Eo("chrome/")?Math.round:ot;function To(t){t.min=Po(t.min),t.max=Po(t.max)}function Pg(t){To(t.x),To(t.y)}function xd(t,s,r){return t==="position"||t==="preserve-aspect"&&!Xp(yo(s),yo(r),.2)}function Tg(t){var s;return t!==t.root&&((s=t.scroll)==null?void 0:s.wasRoot)}const Ig=md({attachResizeListener:(t,s)=>Ms(t,"resize",s),measureScroll:()=>{var t,s;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((s=document.body)==null?void 0:s.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ma={current:void 0},pd=md({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ma.current){const t=new Ig({});t.mount(window),t.setOptions({layoutScroll:!0}),ma.current=t}return ma.current},resetTransform:(t,s)=>{t.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Kn=h.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Io(t,s){if(typeof t=="function")return t(s);t!=null&&(t.current=s)}function _g(...t){return s=>{let r=!1;const a=t.map(n=>{const o=Io(n,s);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){const o=a[n];typeof o=="function"?o():Io(t[n],null)}}}}function Rg(...t){return h.useCallback(_g(...t),t)}class Mg extends h.Component{getSnapshotBeforeUpdate(s){const r=this.props.childRef.current;if(r&&s.isPresent&&!this.props.isPresent){const a=r.offsetParent,n=Ya(a)&&a.offsetWidth||0,o=Ya(a)&&a.offsetHeight||0,i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft,i.right=n-i.width-i.left,i.bottom=o-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Fg({children:t,isPresent:s,anchorX:r,anchorY:a,root:n}){var m;const o=h.useId(),i=h.useRef(null),l=h.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=h.useContext(Kn),u=((m=t.props)==null?void 0:m.ref)??(t==null?void 0:t.ref),d=Rg(i,u);return h.useInsertionEffect(()=>{const{width:x,height:y,top:p,left:j,right:g,bottom:w}=l.current;if(s||!i.current||!x||!y)return;const v=r==="left"?`left: ${j}`:`right: ${g}`,b=a==="bottom"?`bottom: ${w}`:`top: ${p}`;i.current.dataset.motionPopId=o;const k=document.createElement("style");c&&(k.nonce=c);const A=n??document.head;return A.appendChild(k),k.sheet&&k.sheet.insertRule(`
366          [data-motion-pop-id="${o}"] {
367            position: absolute !important;
368            width: ${x}px !important;
369            height: ${y}px !important;
370            ${v}px !important;
371            ${b}px !important;
372          }
373        `),()=>{A.contains(k)&&A.removeChild(k)}},[s]),e.jsx(Mg,{isPresent:s,childRef:i,sizeRef:l,children:h.cloneElement(t,{ref:d})})}const Lg=({children:t,initial:s,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:o,mode:i,anchorX:l,anchorY:c,root:u})=>{const d=bn(Dg),m=h.useId();let x=!0,y=h.useMemo(()=>(x=!1,{id:m,initial:s,isPresent:r,custom:n,onExitComplete:p=>{d.set(p,!0);for(const j of d.values())if(!j)return;a&&a()},register:p=>(d.set(p,!1),()=>d.delete(p))}),[r,d,a]);return o&&x&&(y={...y}),h.useMemo(()=>{d.forEach((p,j)=>d.set(j,!1))},[r]),h.useEffect(()=>{!r&&!d.size&&a&&a()},[r]),i==="popLayout"&&(t=e.jsx(Fg,{isPresent:r,anchorX:l,anchorY:c,root:u,children:t})),e.jsx(Vr.Provider,{value:y,children:t})};function Dg(){return new Map}function gd(t=!0){const s=h.useContext(Vr);if(s===null)return[!0,null];const{isPresent:r,onExitComplete:a,register:n}=s,o=h.useId();h.useEffect(()=>{if(t)return n(o)},[t]);const i=h.useCallback(()=>t&&a&&a(o),[o,a,t]);return!r&&a?[!1,i]:[!0]}const lr=t=>t.key||"";function _o(t){const s=[];return h.Children.forEach(t,r=>{h.isValidElement(r)&&s.push(r)}),s}const vr=({children:t,custom:s,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:o="sync",propagate:i=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,m]=gd(i),x=h.useMemo(()=>_o(t),[t]),y=i&&!d?[]:x.map(lr),p=h.useRef(!0),j=h.useRef(x),g=bn(()=>new Map),w=h.useRef(new Set),[v,b]=h.useState(x),[k,A]=h.useState(x);Yl(()=>{p.current=!1,j.current=x;for(let T=0;T<k.length;T++){const R=lr(k[T]);y.includes(R)?(g.delete(R),w.current.delete(R)):g.get(R)!==!0&&g.set(R,!1)}},[k,y.length,y.join("-")]);const E=[];if(x!==v){let T=[...x];for(let R=0;R<k.length;R++){const $=k[R],z=lr($);y.includes(z)||(T.splice(R,0,$),E.push($))}return o==="wait"&&E.length&&(T=E),A(_o(T)),b(x),null}const{forceRender:M}=h.useContext(yn);return e.jsx(e.Fragment,{children:k.map(T=>{const R=lr(T),$=i&&!d?!1:x===k||y.includes(R),z=()=>{if(w.current.has(R))return;if(w.current.add(R),g.has(R))g.set(R,!0);else return;let te=!0;g.forEach(B=>{B||(te=!1)}),te&&(M==null||M(),A(j.current),i&&(m==null||m()),a&&a())};return e.jsx(Lg,{isPresent:$,initial:!p.current||r?void 0:!1,custom:s,presenceAffectsLayout:n,mode:o,root:u,onExitComplete:$?void 0:z,anchorX:l,anchorY:c,children:T},R)})})},fd=h.createContext({strict:!1}),Ro={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Mo=!1;function Og(){if(Mo)return;const t={};for(const s in Ro)t[s]={isEnabled:r=>Ro[s].some(a=>!!r[a])};Hc(t),Mo=!0}function yd(){return Og(),kp()}function $g(t){const s=yd();for(const r in t)s[r]={...s[r],...t[r]};Hc(s)}
vendor: 5,751 bytes, line 373
373const Vg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Mr(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Vg.has(t)}let bd=t=>!Mr(t);function Bg(t){typeof t=="function"&&(bd=s=>s.startsWith("on")?!Mr(s):t(s))}try{Bg(require("@emotion/is-prop-valid").default)}catch{}function Ug(t,s,r){const a={};for(const n in t)n==="values"&&typeof t.values=="object"||(bd(n)||r===!0&&Mr(n)||!s&&!Mr(n)||t.draggable&&n.startsWith("onDrag"))&&(a[n]=t[n]);return a}const zr=h.createContext({});function zg(t,s){if(Ur(t)){const{initial:r,animate:a}=t;return{initial:r===!1||Rs(r)?r:void 0,animate:Rs(a)?a:void 0}}return t.inherit!==!1?s:{}}function Wg(t){const{initial:s,animate:r}=zg(t,h.useContext(zr));return h.useMemo(()=>({initial:s,animate:r}),[Fo(s),Fo(r)])}function Fo(t){return Array.isArray(t)?t.join(" "):t}const qn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vd(t,s,r){for(const a in s)!De(s[a])&&!Qc(a,r)&&(t[a]=s[a])}function Gg({transformTemplate:t},s){return h.useMemo(()=>{const r=qn();return Gn(r,s,t),Object.assign({},r.vars,r.style)},[s])}function Hg(t,s){const r=t.style||{},a={};return vd(a,r,t),Object.assign(a,Gg(t,s)),a}function Kg(t,s){const r={},a=Hg(t,s);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=a,r}const wd=()=>({...qn(),attrs:{}});function qg(t,s,r,a){const n=h.useMemo(()=>{const o=wd();return ed(o,s,sd(a),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[s]);if(t.style){const o={};vd(o,t.style,t),n.style={...o,...n.style}}return n}const Yg=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Yn(t){return typeof t!="string"||t.includes("-")?!1:!!(Yg.indexOf(t)>-1||/[A-Z]/u.test(t))}function Zg(t,s,r,{latestValues:a},n,o=!1,i){const c=(i??Yn(t)?qg:Kg)(s,a,n,t),u=Ug(s,typeof t=="string",o),d=t!==h.Fragment?{...u,...c,ref:r}:{},{children:m}=s,x=h.useMemo(()=>De(m)?m.get():m,[m]);return h.createElement(t,{...d,children:x})}function Jg({scrapeMotionValuesFromProps:t,createRenderState:s},r,a,n){return{latestValues:Xg(r,a,n,t),renderState:s()}}function Xg(t,s,r,a){const n={},o=a(t,{});for(const x in o)n[x]=yr(o[x]);let{initial:i,animate:l}=t;const c=Ur(t),u=Gc(t);s&&u&&!c&&t.inherit!==!1&&(i===void 0&&(i=s.initial),l===void 0&&(l=s.animate));let d=r?r.initial===!1:!1;d=d||i===!1;const m=d?l:i;if(m&&typeof m!="boolean"&&!Br(m)){const x=Array.isArray(m)?m:[m];for(let y=0;y<x.length;y++){const p=On(t,x[y]);if(p){const{transitionEnd:j,transition:g,...w}=p;for(const v in w){let b=w[v];if(Array.isArray(b)){const k=d?b.length-1:0;b=b[k]}b!==null&&(n[v]=b)}for(const v in j)n[v]=j[v]}}}return n}const jd=t=>(s,r)=>{const a=h.useContext(zr),n=h.useContext(Vr),o=()=>Jg(t,s,a,n);return r?o():bn(o)},Qg=jd({scrapeMotionValuesFromProps:Hn,createRenderState:qn}),ef=jd({scrapeMotionValuesFromProps:rd,createRenderState:wd}),tf=Symbol.for("motionComponentSymbol");function sf(t,s,r){const a=h.useRef(r);h.useInsertionEffect(()=>{a.current=r});const n=h.useRef(null);return h.useCallback(o=>{var l;o&&((l=t.onMount)==null||l.call(t,o)),s&&(o?s.mount(o):s.unmount());const i=a.current;if(typeof i=="function")if(o){const c=i(o);typeof c=="function"&&(n.current=c)}else n.current?(n.current(),n.current=null):i(o);else i&&(i.current=o)},[s])}const Nd=h.createContext({});function fs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function rf(t,s,r,a,n,o){var b,k;const{visualElement:i}=h.useContext(zr),l=h.useContext(fd),c=h.useContext(Vr),u=h.useContext(Kn),d=u.reducedMotion,m=u.skipAnimations,x=h.useRef(null),y=h.useRef(!1);a=a||l.renderer,!x.current&&a&&(x.current=a(t,{visualState:s,parent:i,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:m,isSVG:o}),y.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const p=x.current,j=h.useContext(Nd);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&af(x.current,r,n,j);const g=h.useRef(!1);h.useInsertionEffect(()=>{p&&g.current&&p.update(r,c)});const w=r[_c],v=h.useRef(!!w&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,w))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,w)));return Yl(()=>{y.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),h.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)==null||A.call(window,w)}),v.current=!1),p.enteringChildren=void 0)}),p}function af(t,s,r,a){const{layoutId:n,layout:o,drag:i,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=s;t.projection=new r(t.latestValues,s["data-framer-portal-id"]?void 0:kd(t.parent)),t.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!i||l&&fs(l),visualElement:t,animationType:typeof o=="str
373ing"?o:"both",initialPromotionConfig:a,crossfade:d,layoutScroll:c,layoutRoot:u})}function kd(t){if(t)return t.options.allowProjection!==!1?t.projection:kd(t.parent)}function xa(t,{forwardMotionProps:s=!1,type:r}={},a,n){a&&$g(a);const o=r?r==="svg":Yn(t),i=o?ef:Qg;function l(u,d){let m;const x={...h.useContext(Kn),...u,layoutId:nf(u)},{isStatic:y}=x,p=Wg(u),j=i(u,y);if(!y&&ql){of();const g=lf(x);m=g.MeasureLayout,p.visualElement=rf(t,j,x,n,g.ProjectionNode,o)}return e.jsxs(zr.Provider,{value:p,children:[m&&p.visualElement?e.jsx(m,{visualElement:p.visualElement,...x}):null,Zg(t,u,sf(j,p.visualElement,d),j,y,s,o)]})}l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=h.forwardRef(l);return c[tf]=t,c}function nf({layoutId:t}){const s=h.useContext(yn).id;return s&&t!==void 0?s+"-"+t:t}function of(t,s){h.useContext(fd).strict}function lf(t){const s=yd(),{drag:r,layout:a}=s;if(!r&&!a)return{};const n={...r,...a};return{MeasureLayout:r!=null&&r.isEnabled(t)||a!=null&&a.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function cf(t,s){if(typeof Proxy>"u")return xa;const r=new Map,a=(o,i)=>xa(o,i,t,s),n=(o,i)=>a(o,i);return new Proxy(n,{get:(o,i)=>i==="create"?a:(r.has(i)||r.set(i,xa(i,void 0,t,s)),r.get(i))})}const df=(t,s)=>s.isSVG??Yn(t)?new Bp(s):new Fp(s,{allowProjection:t!==h.Fragment});class uf extends Dt{constructor(s){super(s),s.animationState||(s.animationState=Hp(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();Br(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:r}=this.node.prevProps||{};s!==r&&this.updateAnimationControlsSubscription()}unmount(){var s;this.node.animationState.reset(),(s=this.unmountControls)==null||s.call(this)}}let hf=0;class mf extends Dt{constructor(){super(...arguments),this.id=hf++}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===a)return;const n=this.node.animationState.setActive("exit",!s);r&&!s&&n.then(()=>{r(this.id)})}mount(){const{register:s,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const xf={animation:{Feature:uf},exit:{Feature:mf}};function Us(t){return{point:{x:t.pageX,y:t.pageY}}}const pf=t=>s=>Un(s)&&t(s,Us(s));function Ns(t,s,r,a){return Ms(t,s,pf(r),a)}const Ad=({current:t})=>t?t.ownerDocument.defaultView:null,Lo=(t,s)=>Math.abs(t-s);function gf(t,s){const r=Lo(t.x,s.x),a=Lo(t.y,s.y);return Math.sqrt(r**2+a**2)}const Do=new Set(["auto","scroll"]);class Sd{constructor(s,r,{transformPagePoint:a,contextWindow:n=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=y=>{this.handleScroll(y.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ga(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,j=gf(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!j)return;const{point:g}=y,{timestamp:w}=Le;this.history.push({...g,timestamp:w});const{onStart:v,onMove:b}=this.handlers;p||(v&&v(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,y)},this.handlePointerMove=(y,p)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=pa(p,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(y,p)=>{this.end();const{onEnd:j,onSessionEnd:g,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ga(y.type==="pointercancel"?this.lastMoveEventInfo:pa(p,this.transformPagePoint),this.history);this.startEvent&&j&&j(y,v),g&&g(y,v)},!Un(s))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=i,this.contextWindow=n||window;const c=Us(s),u=pa(c,this.transformPagePoint),{point:d}=u,{timestamp:m}=Le;this.history=[{...d,timestamp:m}];const{onSessionStart:x}=r;x&&x(s,ga(u,this.history)),this.removeListeners=$s(Ns(this.contextWindow,"pointermove",this.handlePointerMove),Ns(this.contextWindow,"pointerup",this.handlePointerUp),Ns(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(s){let r=s.parentElement;for(;r;){const a=getComputedStyle(r);(Do.has(a.overflowX)||Do.has(a.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(s){const r=this.scrollPositions.get(s);if(!r)return;const a=s===window,n=a?{x:window.scrollX,y:window.scrollY}:{x:s.scrollLeft,y:s.scrollTop},o={x:n.x-r.x,y:n.y-r.y};o.x===0&&o.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(s,n),ue.update(this.updatePoint,!0))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Mt(this.updatePoint)}}function pa(t,s){return s?{point:s(t.point)}:t}function Oo(t,s){return{x:t.x-s.x,y:t.y-s.y}}function ga({point:t},s){return{point:t,delta:Oo(t,Cd(s)),offset:Oo(t,ff(s)),velocity:yf(s,.1)}}function ff(t){return t[0]}function Cd(t){return t[t.length-1]}function yf(t,s){if(t.length<2)return{x:0,y:0};let r=t.length-1,a=null;const n=Cd(t);for(;r>=0&&(a=t[r],!(n.timestamp-a.timestamp>jt(s)));)r--;if(!a)return{x:0,y:0};const o=it(n.timestamp-a.timestamp);if(o===0)return{x:0,y:0};const i={x:(n.x-a.x)/o,y:(n.y-a.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function bf(t,{min:s,max:r},a){return s!==void 0&&t<s?t=a?pe(s,t,a.min):Math.max(t,s):r!==void 0&&t>r&&(t=a?pe(r,t,a.max):Math.min(t,r)),t}function $o(t,s,r){return{min:s!==void 0?t.min+s:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function vf(t,{top:s,left:r,bottom:a,right:n}){return{x:$o(t.x,r,n),y:$o(t.y,s,a)}}function Vo(t,s){let r=s.min-t.min,a=s.max-t.max;return s.max-s.min<t.max-t.min&&([r,a]=[a,r]),{min:r,max:a}}function wf(t,s){return{x:Vo(t.x,s.x),y:Vo(t.y,s.y)}}function jf(t,s){let r=.5;const a=Ge(t),n=Ge(s);return n>a?r=Ts(s.min,s.max-a,t.min):a>n&&(r=Ts(t.min,t.max-n,s.min)),gt(0,1,r)}function Nf(t,s){const r={};return s.min!==void 0&&(r.min=s.min-t.min),s.max!==void 0&&(r.max=s.max-t.min),r}const en=.35;function kf(t=en){return t===!1?t=0:t===!0&&(t=en),{x:Bo(t,"left","right"),y:Bo(t,"top","bottom")}}function Bo(t,s,r){return{min:Uo(t,s),max:Uo(t,r)}}function Uo(t,s){return typeof t=="number"?t:t[s]||0}const Af=new WeakMap;class Sf{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Se(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:r=!1,distanceThreshold:a}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=m=>{r?(this.stopAnimation(),this.snapToCursor(Us(m).point)):this.pauseAnimation()},i=(m,x)=>{this.stopAnimation();const{drag:y,dragPropagation:p,onDragStart:j}=this.getProps();if(y&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cp(y),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(w=>{let v=this.getAxisMotionValue(w).get()||0;if(pt.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[w];k&&(v=Ge(k)*(parseFloat(v)/100))}}this.originPoint[w]=v}),j&&ue.update(()=>j(m,x),!1,!0),Ha(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},l=(m,x)=>{this.latestPointerEvent=m,this.latestPanInfo=x;const{dragPropagation:y,dragDirectionLock:p,onDirectionLock:j,onDrag:g}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:w}=x;if(p&&this.currentDirection===null){this.currentDirection=Cf(w),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",x.point,w),this.updateAxis("y",x.point,w),this.visualElement.render(),g&&ue.update(()=>g(m,x),!1,!0)},c=(m,x)=>{this.latestPointerEvent=m,this.latestPanInfo=x,this.stop(m,x),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>st(m=>{var x;return this.getAnimationState(m)==="paused"&&((x=this.getAxisMotionValue(m).animation)==null?void 0:x.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Sd(s,{onSessionStart:o,onStart:i,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:a,contextWindow:Ad(this.visualElement),element:this.visualElement.current})}stop(s,r){const a=s||this.latestPointerEvent,n=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!a)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:l}=this.getProps();l&&ue.postRender(()=>l(a,n))}cancel(){this.isDragging=!1;const{projection:s,animationState:r}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(s,r,a){const{drag:n}=this.getProps();if(!a||!cr(s,n,this.currentDirection))return;const o=this.getAxisMotionValue(s);let i=this.originPoint[s]+a[s];this.constraints&&this.constraints[s]&&(i=bf(i,this.constraints[s],this.elastic[s])),o.set(i)}resolveConstraints(){var o;const{dragConstraints:s,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,n=this.constraints;s&&fs(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&a?this.constraints=vf(a.layoutBox,s):this.constraints=!1,this.elastic=kf(r),n!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&st(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Nf(a.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:r}=this.getProps();if(!s||!fs(s))return!1;const a=s.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=Pp(a,n.root,this.visualElement.getTransformPagePoint());let i=wf(n.layout.layoutBox,o);if(r){const l=r(Sp(i));this.hasMutatedConstraints=!!l,l&&(i=qc(l))}return i}startAnimation(s){const{drag:r,dragMomentum:a,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=st(d=>{if(!cr(d,r,this.currentDirection))return;let m=c&&c[d]||{};i&&(m={min:0,max:0});const x=n?200:1e6,y=n?40:1e7,p={type:"inertia",velocity:a?s[d]:0,bounceStiffness:x,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(d,p)});return Promise.all(u).then(l)}startAxisValueAnimation(s,r){const a=this.getAxisMotionValue(s);
vendor: 4,689 bytes, line 373
373return Ha(this.visualElement,s),a.start(Dn(s,a,0,r,this.visualElement,!1))}stopAnimation(){st(s=>this.getAxisMotionValue(s).stop())}pauseAnimation(){st(s=>{var r;return(r=this.getAxisMotionValue(s).animation)==null?void 0:r.pause()})}getAnimationState(s){var r;return(r=this.getAxisMotionValue(s).animation)==null?void 0:r.state}getAxisMotionValue(s){const r=`_drag${s.toUpperCase()}`,a=this.visualElement.getProps(),n=a[r];return n||this.visualElement.getValue(s,(a.initial?a.initial[s]:void 0)||0)}snapToCursor(s){st(r=>{const{drag:a}=this.getProps();if(!cr(r,a,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(r);if(n&&n.layout){const{min:i,max:l}=n.layout.layoutBox[r],c=o.get()||0;o.set(s[r]-pe(i,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!fs(r)||!a||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};st(i=>{const l=this.getAxisMotionValue(i);if(l&&this.constraints!==!1){const c=l.get();n[i]=jf({min:c,max:c},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),st(i=>{if(!cr(i,s,null))return;const l=this.getAxisMotionValue(i),{min:c,max:u}=this.constraints[i];l.set(pe(c,u,n[i]))})}addListeners(){if(!this.visualElement.current)return;Af.set(this.visualElement,this);const s=this.visualElement.current,r=Ns(s,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),m=c.target,x=m!==s&&xp(m);u&&d&&!x&&this.start(c)}),a=()=>{const{dragConstraints:c}=this.getProps();fs(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",a);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ue.read(a);const i=Ms(window,"resize",()=>this.scalePositionWithinConstraints()),l=n.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(st(d=>{const m=this.getAxisMotionValue(d);m&&(this.originPoint[d]+=c[d].translate,m.set(m.get()+c[d].translate))}),this.visualElement.render())}));return()=>{i(),r(),o(),l&&l()}}getProps(){const s=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=en,dragMomentum:l=!0}=s;return{...s,drag:r,dragDirectionLock:a,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:l}}}function cr(t,s,r){return(s===!0||s===t)&&(r===null||r===t)}function Cf(t,s=10){let r=null;return Math.abs(t.y)>s?r="y":Math.abs(t.x)>s&&(r="x"),r}class Ef extends Dt{constructor(s){super(s),this.removeGroupControls=ot,this.removeListeners=ot,this.controls=new Sf(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ot}update(){const{dragControls:s}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};s!==r&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fa=t=>(s,r)=>{t&&ue.update(()=>t(s,r),!1,!0)};class Pf extends Dt{constructor(){super(...arguments),this.removePointerDownListener=ot}onPointerDown(s){this.session=new Sd(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ad(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:r,onPan:a,onPanEnd:n}=this.node.getProps();return{onSessionStart:fa(s),onStart:fa(r),onMove:fa(a),onEnd:(o,i)=>{delete this.session,n&&ue.postRender(()=>n(o,i))}}}mount(){this.removePointerDownListener=Ns(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ya=!1;class Tf extends h.Component{componentDidMount(){const{visualElement:s,layoutGroup:r,switchLayoutGroup:a,layoutId:n}=this.props,{projection:o}=s;o&&(r.group&&r.group.add(o),a&&a.register&&n&&a.register(o),ya&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),br.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:r,visualElement:a,drag:n,isPresent:o}=this.props,{projection:i}=a;return i&&(i.isPresent=o,s.layoutDependency!==r&&i.setOptions({...i.options,layoutDependency:r}
vendor: 4,736 bytes, line 373
373),ya=!0,n||s.layoutDependency!==r||r===void 0||s.isPresent!==o?i.willUpdate():this.safeToRemove(),s.isPresent!==o&&(o?i.promote():i.relegate()||ue.postRender(()=>{const l=i.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:s}=this.props.visualElement;s&&(s.root.didUpdate(),Bn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:n}=s;ya=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),a&&a.deregister&&a.deregister(n))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function Ed(t){const[s,r]=gd(),a=h.useContext(yn);return e.jsx(Tf,{...t,layoutGroup:a,switchLayoutGroup:h.useContext(Nd),isPresent:s,safeToRemove:r})}const If={pan:{Feature:Pf},drag:{Feature:Ef,ProjectionNode:pd,MeasureLayout:Ed}};function zo(t,s,r){const{props:a}=t;t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",r==="Start");const n="onHover"+r,o=a[n];o&&ue.postRender(()=>o(s,Us(s)))}class _f extends Dt{mount(){const{current:s}=this.node;s&&(this.unmount=dp(s,(r,a)=>(zo(this.node,a,"Start"),n=>zo(this.node,n,"End"))))}unmount(){}}class Rf extends Dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$s(Ms(this.node.current,"focus",()=>this.onFocus()),Ms(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wo(t,s,r){const{props:a}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&a.whileTap&&t.animationState.setActive("whileTap",r==="Start");const n="onTap"+(r==="End"?"":r),o=a[n];o&&ue.postRender(()=>o(s,Us(s)))}class Mf extends Dt{mount(){const{current:s}=this.node;s&&(this.unmount=gp(s,(r,a)=>(Wo(this.node,a,"Start"),(n,{success:o})=>Wo(this.node,n,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const tn=new WeakMap,ba=new WeakMap,Ff=t=>{const s=tn.get(t.target);s&&s(t)},Lf=t=>{t.forEach(Ff)};function Df({root:t,...s}){const r=t||document;ba.has(r)||ba.set(r,{});const a=ba.get(r),n=JSON.stringify(s);return a[n]||(a[n]=new IntersectionObserver(Lf,{root:t,...s})),a[n]}function Of(t,s,r){const a=Df(s);return tn.set(t,r),a.observe(t),()=>{tn.delete(t),a.unobserve(t)}}const $f={some:0,all:1};class Vf extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:s={}}=this.node.getProps(),{root:r,margin:a,amount:n="some",once:o}=s,i={root:r?r.current:void 0,rootMargin:a,threshold:typeof n=="number"?n:$f[n]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:m}=this.node.getProps(),x=u?d:m;x&&x(c)};return Of(this.node.current,i,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:r}=this.node;["amount","margin","root"].some(Bf(s,r))&&this.startObserver()}unmount(){}}function Bf({viewport:t={}},{viewport:s={}}={}){return r=>t[r]!==s[r]}const Uf={inView:{Feature:Vf},tap:{Feature:Mf},focus:{Feature:Rf},hover:{Feature:_f}},zf={layout:{ProjectionNode:pd,MeasureLayout:Ed}},Wf={...xf,...Uf,...If,...zf},_=cf(Wf,df);function Gf(){const[t,s]=h.useState(0),r=["Replies","Drafts","Forwards"],{isWaitlistOpen:a,setIsWaitlistOpen:n,handleCTA:o}=fn();return h.useEffect(()=>{const i=setInterval(()=>{s(l=>(l+1)%r.length)},2500);return()=>clearInterval(i)},[]),e.jsxs("section",{id:"home",className:"min-h-screen flex items-center justify-center relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-[#0A1628]/20"}),e.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[e.jsx(_.div,{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-[#60A5FA]/10 rounded-full blur-3xl",animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}}),e.jsx(_.div,{className:"absolute bottom-1/4 right-1/4 w-96 h-96 bg-[#1E3A8A]/10 rounded-full blur-3xl",animate:{scale:[1.2,1,1.2],opacity:[.5,.3,.5]},transition:{duration:8,repeat:1/0,ease:"easeInOut"}})]}),e.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-20 text-center",children:[e.jsx(_.div,{initial:{opacity:0,scale:.9}
373,animate:{opacity:1,scale:1},transition:{duration:.5},className:"flex items-center justify-center mb-8",children:e.jsx("img",{src:Hl,alt:"xReplAI",className:"h-16 sm:h-20 lg:h-24 w-auto object-contain"})}),e.jsxs(_.h1,{className:"text-5xl sm:text-6xl lg:text-7xl mb-6 flex flex-wrap items-center justify-center gap-3",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:[e.jsx("span",{className:"text-white font-light",children:"Smart"}),e.jsx("span",{className:"relative inline-block min-w-[280px] sm:min-w-[320px] lg:min-w-[380px] text-center",children:e.jsx(vr,{mode:"wait",children:e.jsx(_.span,{initial:{x:50,opacity:0},animate:{x:0,opacity:1},exit:{x:-50,opacity:0},transition:{duration:.5},className:"inline-block font-semibold text-[#60A5FA]",children:r[t]},r[t])})}),e.jsx("span",{className:"text-gray-100 font-light",children:"Instantly"})]}),e.jsx(_.p,{className:"text-xl sm:text-2xl text-gray-200 mb-12 max-w-3xl mx-auto leading-relaxed",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},children:"AI that drafts professional, high-converting email replies in your voice — right in Gmail & LinkedIn."}),e.jsxs(_.div,{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},children:[e.jsxs("button",{onClick:()=>o(()=>{window.open("https://chromewebstore.google.com/detail/aeemmefmpkgmokecemoedojagcecabmj","_blank")}),className:"group px-8 py-4 bg-[#60A5FA] text-white rounded-lg hover:bg-[#60A5FA]/90 transition-all hover:shadow-2xl hover:shadow-[#60A5FA]/30 flex items-center gap-2",children:[e.jsx(F0,{size:20}),"Install Free Extension",e.jsx(Oe,{size:20,className:"group-hover:translate-x-1 transition-transform"})]}),e.jsx("button",{onClick:()=>o(()=>{var i;(i=document.getElementById("pricing"))==null||i.scrollIntoView({behavior:"smooth"})}),className:"px-8 py-4 bg-transparent text-white border-2 border-white/30 rounded-lg hover:bg-white/10 transition-all backdrop-blur-sm",children:"View Pricing"})]}),e.jsx(gn,{isOpen:a,onClose:()=>n(!1)}),e.jsx(_.div,{className:"absolute bottom-8 left-1/2 -translate-x-1/2",animate:{y:[0,10,0]},transition:{duration:2,repeat:1/0},children:e.jsx("div",{className:"w-6 h-10 border-2 border-white/30 rounded-full flex justify-center pt-2",children:e.jsx("div",{className:"w-1.5 h-3 bg-white/50 rounded-full"})})})]})]})}const Hf=[{icon:mn,title:"Smart Context Understanding",description:"Analyzes email threads and conversation history to craft contextually perfect replies that continue the conversation naturally."},{icon:nt,title:"Multiple Specialized Variants",description:"Get 5 tailored draft options instantly — from formal to friendly, concise to detailed. Choose what fits your style and situation."},{icon:at,title:"Powered by Grok (Pro) or GPT-4o-mini (Free)",description:"Pro users unlock Grok-4 for superior reasoning and nuanced responses. Free tier powered by GPT-4o-mini for everyday needs."},{icon:Rt,title:"Works in Gmail & LinkedIn",description:"Seamlessly integrated into your workflow. Draft responses directly in Gmail compose and LinkedIn messaging without switching tabs."},{icon:kr,title:"Specialized Professional Packages",description:"Tailored prompt sets for your role — Sales, Recruitment, Job Search, and more. Unlock expertly designed variants and tones optimized for your specific workflow, delivering higher response rates and professional impact."},{icon:Wl,title:"Multilingual Support",description:"Draft replies in the language of the original email — English, Russian, Spanish, French, German, and 30+ more. xRepl.ai detects the language automatically and generates natural, idiomatic responses that respect cultural nuance."},{icon:Vm,title:"Smart Tone Adaptation",description:"Automatically matches the perfect professional tone — formal, confident, empathetic, enthusiastic, or grateful — based on context, relationship, and email type. Always sounds human and appropriate, never generic or off-key."},{icon:vm,title:"One-Click Insert & Edit",description:"Insert any draft into your compose window with a single click. Full formatting preserved, cursor placed at the end for instant editing or sending — seamless and lightning fast."}];function Kf(){return e.jsx("section",{className:"py-20 bg-white/80 dark:bg-[#0A1628]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Powerful Features"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Everything you need to craft perfect responses in seconds"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:Hf.map((t,s)=>e.jsxs(_.div,{className:"group p-6 bg-gray-50 dark:bg-[#1E3A8A]/10 rounded-2xl border border-gray-200 dark:border-[#1E3A8A]/30 hover:border-[#60A5FA] dark:hover:border-[#60A5FA] transition-all hover:shadow-xl hover:shadow-[#60A5FA]/10 cursor-pointer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:s*.1},whileHover:{y:-5},children:[e.jsx("div",{className:"w-12 h-12 bg-[#1E3A8A] dark:bg-[#60A5FA] rounded-lg flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:e.jsx(t.icon,{className:"text-white",size:24})}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:t.title}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:t.description})]},t.title))})]})})}const dr="/assets/xrepl-demo-BemPupRj.png";function qf(){const[t,s]=h.useState("gmail"),[r,a]=h.useState(!1),[n,o]=h.useState("generous and value-focused"),[i,l]=
373h.useState("Answer Questions"),[c,u]=h.useState(""),d=["generous and value-focused","professional and action-oriented","encouraging and low-pressure"],m=[{label:"Answer Questions",recommended:!0},{label:"Schedule Call",recommended:!1},{label:"Share Examples",recommended:!1},{label:"Ask Challenges",recommended:!1},{label:"Offer Trial",recommended:!1}],x=[{label:"TRIAL ONBOARDING GUIDE • GENEROUS AND VALUE-FOCUSED",content:`Dear Cormac McShoul,
374
375Thanks for reaching out—I'm thrilled you're interested in xRepl.ai for TestFinn's outbound team. Our AI adapts seamlessly to your personal writing style by analyzing past emails and refining drafts to match your tone, ensuring nothing sounds generic.
376
377We've helped similar SaaS teams cut drafting time by 70%, with one boosting reply rates by 25%. Pricing starts at $49/user/month, with flexible tiers for teams.
378
379To get you started, here's a quick onboarding guide for our 14-day free trial: Sign up at our site, upload a few emails for style training, and integrate with your CRM. Let's hop on a demo call this week to walk through it—when works for you?
380
381Best regards,`},{label:"VALUE PROPOSITION ADD-ON • GENEROUS AND VALUE-FOCUSED",content:`Dear Cormac McShoul,
382
383Great to hear from you—xRepl.ai is perfect for streamlining those 200+ daily emails at TestFinn. It excels at preserving your personal writing style by learning from your samples and generating tailored drafts that feel authentic.
384
385SaaS teams like yours have seen huge wins: one reported 60% faster replies and more personalized outreach. Pricing is straightforward—$49/user/month base, scaling with features.
386
387Beyond core drafting, our value add-ons include real-time analytics for email performance and A/B testing tools to optimize conversions. Ready for a demo call to explore how this elevates your team's game? Suggest a time!
388
389Best regards,`},{label:"EASY SIGN-UP PROCESS • GENEROUS AND VALUE-FOCUSED",content:`Dear Cormac McShoul,
390
391Thanks for the interest! xRepl.ai maintains your writing style by analyzing your email history and adapting each draft to match your unique voice—no generic templates here.
392
393Results from other SaaS teams? We've seen 50-70% time savings and measurably higher reply rates within 2-3 weeks of consistent use.
394
395Getting started is simple: 14-day free trial, quick Chrome extension install, connect Gmail, and you're drafting smarter emails in minutes. How about a 15-minute call this week to show you the platform live?
396
397Best regards,`}],y=p=>{u(p),a(!1)};return e.jsx("section",{className:"py-20 bg-gray-50/80 dark:bg-[#0F2847]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"See It In Action"}),e.jsxs("div",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-3xl mx-auto space-y-3",children:[e.jsx("p",{className:"font-semibold",children:"One click instantly generates multiple personalized draft variants — each perfectly matched to your email's context."}),e.jsx("p",{children:"xRepl.ai intelligently understands the conversation, detects the ideal professional tone, and proposes targeted response strategies (such as warm follow-up, value insight, objection handling, or strong close). 
397Choose the draft that feels right, insert it with a single click, and send with confidence."})]})]}),e.jsxs(_.div,{className:"max-w-5xl mx-auto",initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("div",{className:"flex justify-center mb-8",children:e.jsxs("div",{className:"inline-flex bg-white dark:bg-[#1E3A8A]/20 rounded-lg p-1 shadow-md border border-gray-200 dark:border-[#1E3A8A]",children:[e.jsx("button",{onClick:()=>{s("gmail"),a(!1),u("")},className:`px-6 py-3 rounded-lg font-medium transition-all ${t==="gmail"?"bg-[#1E3A8A] text-white shadow-md":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white"}`,children:"Gmail Demo"}),e.jsx("button",{onClick:()=>{s("linkedin"),a(!1),u("")},className:`px-6 py-3 rounded-lg font-medium transition-all ${t==="linkedin"?"bg-[#0A66C2] text-white shadow-md":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white"}`,children:"LinkedIn Demo"})]})}),t==="gmail"&&e.jsxs("div",{className:"bg-white dark:bg-[#1E3A8A]/20 rounded-2xl shadow-2xl overflow-hidden border border-gray-200 dark:border-[#1E3A8A]",children:[e.jsxs("div",{className:"bg-[#f5f5f5] dark:bg-[#1E3A8A]/30 px-6 py-3 border-b border-gray-300 dark:border-[#1E3A8A] flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:"New Message"})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{className:"w-3 h-3 rounded-full bg-gray-400 hover:bg-gray-500"}),e.jsx("button",{className:"w-3 h-3 rounded-full bg-gray-400 hover:bg-gray-500"})]})]}),e.jsxs("div",{className:"p-6 space-y-3 border-b border-gray-200 dark:border-[#1E3A8A]/30 bg-white dark:bg-[#0A1628]",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"To"}),e.jsx("div",{className:"flex-1 flex items-center gap-2",children:e.jsx("div",{className:"bg-[#1E3A8A]/10 dark:bg-[#60A5FA]/20 px-3 py-1 rounded-full",children:e.jsx("span",{className:"text-gray-700 dark:text-gray-300 text-sm",children:"Cormac McShoul ([email protected])"})})})]}),e.jsxs("div",{className:"flex items-center gap-3 border-b border-gray-100 dark:border-[#1E3A8A]/20 pb-3",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Subject"}),e.jsx("span",{className:"text-gray-900 dark:text-white",children:"Re: Sales Hacker meet"})]})]}),e.jsxs("div",{className:"p-6 min-h-[600px] bg-white dark:bg-[#0A1628] relative",children:[!r&&!c&&e.jsxs("div",{className:"text-gray-700 dark:text-gray-300 text-sm leading-relaxed mb-6 space-y-4",children:[e.jsxs("div",{className:"border-l-4 border-gray-300 dark:border-gray-600 pl-4 py-2 bg-gray-50 dark:bg-[#1E3A8A]/10 rounded",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-[#1E3A8A] text-white flex items-center justify-center text-xs font-semibold",children:"C"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-gray-900 dark:text-white",children:"Cormac McShoul"}),e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:"to me"})]})]}),e.jsxs("div",{className:"text-sm text-gray-700 dark:text-gray-300 space-y-2",children:[e.jsx("p",{children:"Hi,"}),e.jsx("p",{children:"I saw ResponseAble mentioned in a recent Sales Hacker thread and it caught my attention. Our outbound team at TestFinn is sending 200+ personalized emails per day, but drafting replies still takes too much time and they sometimes sound generic."}),e.jsx("p",{className:"font-medium",children:"Quick questions:"}),e.jsxs("ul",{className:"list-disc ml-5 space-y-1",children:[e.jsx("li",{children:"How well does it maintain my personal writing style?"}),e.jsx("li",{children:"Do you have examples of results from other SaaS teams?"}),e.jsx("li",{children:"How long does it take to see results?"})]}),e.jsx("p",{children:"Would be great to see how it works in action if you have a few minutes for a quick call."}),e.jsxs("p",{children:["Thanks,",e.jsx("br",{}),"Cormac McShoul",e.jsx("br",{}),"Head of Sales Development",e.jsx("br",{}),"TechFlow.io"]})]})]}),e.jsx("div",{className:"pt-2",children:e.jsx("p",{className:"text-gray-400 dark:text-gray-500 italic",children:'Click "Respond" to generate AI-
397powered draft replies...'})})]}),!r&&c&&e.jsxs("div",{className:"text-gray-700 dark:text-gray-300 text-sm leading-relaxed space-y-6",children:[e.jsxs("div",{className:"border-l-4 border-gray-300 dark:border-gray-600 pl-4 py-2 bg-gray-50 dark:bg-[#1E3A8A]/10 rounded",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-[#1E3A8A] text-white flex items-center justify-center text-xs font-semibold",children:"C"}),e.jsx("div",{className:"flex-1",children:e.jsx("div",{className:"font-semibold text-gray-900 dark:text-white",children:"Cormac McShoul"})})]}),e.jsxs("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:[e.jsx("p",{children:"Hi,"}),e.jsx("p",{children:"I saw ResponseAble mentioned in a recent Sales Hacker thread and it caught my attention. Our outbound team at TestFinn is sending 200+ personalized email drafting..."})]})]}),e.jsx("div",{className:"whitespace-pre-line text-gray-900 dark:text-white leading-relaxed",children:c})]}),r&&e.jsxs(_.div,{className:"absolute inset-0 bg-white dark:bg-gray-800 rounded-xl border border-gray-300 dark:border-gray-600 shadow-2xl overflow-hidden flex flex-col",style:{height:"550px"},initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.3},children:[e.jsxs("div",{className:"flex items-center gap-2 px-6 py-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:[e.jsx("img",{src:dr,alt:"xRepl.ai",className:"w-6 h-6 object-contain"}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white text-lg",children:"Able to Respond Better"}),e.jsx("button",{onClick:()=>a(!1),className:"ml-auto text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 text-xl leading-none",children:"✕"})]}),e.jsxs("div",{className:"px-6 py-4 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:[e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:[e.jsx("span",{className:"font-semibold",children:"Intent:"})," inquiring about AI email drafting tool features, examples, pricing, and requesting a demo call | Topics: AI email drafting, personal writing style, SaaS team examples, pricing structure, demo call"]}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:m.map(p=>e.jsxs("button",{onClick:()=>l(p.label),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-all ${i===p.label?"bg-blue-500 text-white":"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[p.label,p.recommended&&e.jsx("span",{className:"ml-1 text-xs bg-blue-600 text-white px-1.5 py-0.5 rounded",children:"Recommended"})]},p.label))}),e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"font-semibold",children:"Goal:"})," offer a free trial or next steps"]})]}),e.jsx("div",{className:"px-6 py-3 bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("label",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:"Tone:"}),e.jsx("select",{value:n,onChange:p=>o(p.target.value),className:"flex-1 max-w-xs px-3 py-1.5 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",children:d.map(p=>e.jsx("option",{value:p,children:p},p))})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4 bg-gray-50 dark:bg-gray-900",style:{maxHeight:"400px"},children:e.jsx("div",{className:"space-y-4",children:x.map((p,j)=>e.jsxs(_.div,{onClick:()=>y(p.content),className:"group p-5 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-blue-400 dark:hover:border-blue-500 cursor-pointer transition-all shadow-sm hover:shadow-md",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:j*.1},children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wide",children:p.label}),e.jsx(Ce,{className:"text-green-500 opacity-0 group-hover:opacity-100 transition-opacity",size:18})]}),e.jsx("div",{className:"text-sm text-gray-800 dark:text-gray-200 whitespace-pre-line leading-relaxed",children:p.content})]},p.label))})})]})]}),e.jsxs("div",{className:"px-6 py-4 bg-white dark:bg-[#0A1628] border-t border-gray-200 dark:border-[#1E3A8A]/30 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-0",children:[e.jsx("button",{className:"px-6 py-2.5 bg-[#0b57d0] text-white font-medium hover:bg-[#1a73e8] transition-all shadow-sm",style:{borderBottomLeftRadius:"21px",borderBottomRightRadius:"0",borderTopLeftRadius:"21px",borderTopRightRadius:"0"},children:"Send"}),e.jsxs("button",{onClick:()=>a(!r),className:"px-3 py-2.5 bg-[#D3E3FD] text-[#444746] hover:bg-[#C3D3ED] transition-all shadow-sm font-medium flex items-center gap-1.5 group h-[42px]",style:{borderRadius:"0px"},children:[e.jsx("div",{className:"w-7 h-7 flex items-center justify-center",children:e.jsx("img",{src:dr,alt:"xReplAI",className:"w-7 h-7 object-contain group-hover:scale-110 transition-transform"})}),"xReplAI"]}),e.jsx("button",{className:"px-2.5 py-2.5 bg-[#0b57d0] text-white hover:bg-[#1a73e8] transition-all shadow-sm border-l border-[#1557b0]",style:{borderTopRightRadius:"21px",borderBottomRightRadius:"21px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},children:e.jsx("span",{style:{fontSize:"0.7em"},children:"▼"})}),e.jsx("div",{className:"w-px h-6 bg-gray-300 dark:bg-gray-600 mx-3"}),e.jsx("button",{className:"p-1.5 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:e.jsx("span",{className:"font-mono text-sm",children:"Aa"})}),e.jsx("button",{className:"p-1.5 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400 font-bold",children:"B"}),e.jsx("button",{className:"p-1.5 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400 italic",children:"I"}),e.jsx("button",{className:"p-1.5 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400 underline",children:"U"}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),e.jsx("button",{className:"p-1.5 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:"🔗"}),e.jsx("button",{className:"p-1.5 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:"📎"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{className:"p-2 hover:bg-gray-200 dark:hover:bg-[#1E3A8A]/20 rounded",children:e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"⋮"})}),e.jsx("button",{className:"p-2 hover:bg-gray-200 dark:hover:bg-[#1E3A8A]/20 rounded",children:e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"🗑"})})]})]})]}),t==="linkedin"&&e.jsxs("div",{className:"bg-white dark:bg-[#1E3A8A]/20 rounded-2xl shadow-2xl overflow-hidden border border-gray-200 dark:border-[#1E3A8A]",children:[e.jsxs("div",{className:"bg-white dark:bg-[#1E3A8A]/30 px-6 py-4 border-b border-gray-300 dark:border-[#1E3A8A] flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[#0A66C2] text-white flex items-center justify-center text-xl font-semibold",children:"C"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-gray-900 dark:text-white",children:"Cormac McShoul"}),e.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Head of Sales Development at TechFlow.io"})]})]}),e.jsxs("div",{className:"p-6 min-h-[600px] bg-[#F3F2EF] dark:bg-[#0A1628] space-y-4 relative",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[#0A66C2] text-white flex items-center justify-center text-sm font-semibold flex-shrink-0",children:"C"}),e.jsxs("div",{className:"flex-1 max-w-[80%]",children:[e.jsx("div",{className:"bg-white dark:bg-gray-700 rounded-lg p-4 shadow-sm",children:e.jsxs("div",{className:"text-sm text-gray-900 dark:text-white space-y-2",children:[e.jsx("p",{children:"Hi there! 👋"}),e.jsx("p",{children:"I saw ResponseAble mentioned in a recent Sales Hacker thread and it caught my attention. Our outbound team at TestFinn is sending 200+ personalized emails per day, but drafting replies still takes too much time and they sometimes sound generic."}
397),e.jsx("p",{className:"font-medium",children:"Quick questions:"}),e.jsxs("ul",{className:"list-disc ml-5 space-y-1",children:[e.jsx("li",{children:"How well does it maintain my personal writing style?"}),e.jsx("li",{children:"Do you have examples of results from other SaaS teams?"}),e.jsx("li",{children:"How long does it take to see results?"})]}),e.jsx("p",{children:"Would love to see how it works if you have time for a quick demo!"})]})}),e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1 ml-2",children:"10:34 AM"})]})]}),!r&&c&&e.jsx("div",{className:"flex gap-3 justify-end",children:e.jsxs("div",{className:"flex-1 max-w-[80%] flex flex-col items-end",children:[e.jsx("div",{className:"bg-[#0A66C2] text-white rounded-lg p-4 shadow-sm",children:e.jsx("div",{className:"text-sm whitespace-pre-line leading-relaxed",children:c})}),e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1 mr-2",children:"Just now"})]})}),r&&e.jsxs(_.div,{className:"absolute left-6 right-6 top-6 bottom-6 bg-white dark:bg-gray-800 rounded-xl border border-gray-300 dark:border-gray-600 shadow-2xl overflow-hidden flex flex-col z-10",initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.3},children:[e.jsxs("div",{className:"flex items-center gap-2 px-6 py-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800",children:[e.jsx("img",{src:dr,alt:"xRepl.ai",className:"w-6 h-6 object-contain"}),e.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white text-lg",children:"Able to Respond Better"}),e.jsx("button",{onClick:()=>a(!1),className:"ml-auto text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 text-xl leading-none",children:"✕"})]}),e.jsxs("div",{className:"px-6 py-4 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:[e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:[e.jsx("span",{className:"font-semibold",children:"Intent:"})," inquiring about AI email drafting tool features, examples, pricing, and requesting a demo call | Topics: AI email drafting, personal writing style, SaaS team examples, pricing structure, demo call"]}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:m.map(p=>e.jsxs("button",{onClick:()=>l(p.label),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-all ${i===p.label?"bg-[#0A66C2] text-white":"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[p.label,p.recommended&&e.jsx("span",{className:"ml-1 text-xs bg-[#0A66C2] text-white px-1.5 py-0.5 rounded",children:"Recommended"})]},p.label))}),e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:[e.jsx("span",{className:"font-semibold",children:"Goal:"})," offer a free trial or next steps"]})]}),e.jsx("div",{className:"px-6 py-3 bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("label",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:"Tone:"}),e.jsx("select",{value:n,onChange:p=>o(p.target.value),className:"flex-1 max-w-xs px-3 py-1.5 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-[#0A66C2]",children:d.map(p=>e.jsx("option",{value:p,children:p},p))})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4 bg-gray-50 dark:bg-gray-900",children:e.jsx("div",{className:"space-y-4",children:x.map((p,j)=>e.jsxs(_.div,{onClick:()=>y(p.content),className:"group p-5 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-[#0A66C2] dark:hover:border-[#0A66C2] cursor-pointer transition-all shadow-sm hover:shadow-md",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:j*.1},children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wide",children:p.label}),e.jsx(Ce,{className:"text-green-500 opacity-0 group-hover:opacity-100 transition-opacity",size:18})]}),e.jsx("div",{className:"text-sm text-gray-800 dark:text-gray-200 whitespace-pre-line leading-relaxed",children:p.content})]},p.label))})})]})]}),e.jsxs("div",{className:"bg-white dark:bg-[#0A1628] border-t border-gray-300 dark:border-[#1E3A8A]/30",children:[e.jsx("div",{className:"px-6 pt-4 pb-2",children:e.jsx("textarea",{placeholder:!r&&!c?"Click 'Respond' below to generate AI-
397powered replies...":"Write a message...",className:"w-full min-h-[100px] p-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-[#0A66C2] resize-none",value:c,readOnly:!0})}),e.jsxs("div",{className:"px-6 py-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>a(!r),className:"px-4 py-2 bg-[#D3E3FD] text-[#444746] hover:bg-[#C3D3ED] transition-all shadow-sm font-medium rounded-full flex items-center gap-2 group",children:[e.jsx("div",{className:"w-5 h-5 flex items-center justify-center",children:e.jsx("img",{src:dr,alt:"xReplAI",className:"w-5 h-5 object-contain group-hover:scale-110 transition-transform"})}),"xReplAI"]}),e.jsx("div",{className:"w-px h-6 bg-gray-300 dark:bg-gray-600 mx-1"}),e.jsx("button",{className:"p-2 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:e.jsx("span",{className:"font-bold",children:"B"})}),e.jsx("button",{className:"p-2 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:e.jsx("span",{className:"italic",children:"I"})}),e.jsx("button",{className:"p-2 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:"🔗"}),e.jsx("button",{className:"p-2 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:"😊"}),e.jsx("button",{className:"p-2 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20 rounded text-gray-600 dark:text-gray-400",children:"📎"})]}),e.jsx("button",{className:"px-5 py-2 bg-[#0A66C2] text-white hover:bg-[#004182] transition-all shadow-sm font-medium rounded-full",children:"Send"})]})]})]})]}),e.jsxs(_.p,{className:"text-center text-gray-600 dark:text-gray-400 mt-8 text-lg",initial:{opacity:0}
397,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:.5},children:["Click the ",e.jsx("span",{className:"font-semibold text-[#7C3AED]",children:"xReplAI"})," button to see the magic ✨"]})]})})}function Yf(){const[t,s]=h.useState({drafts:0,inserted:0,timeSaved:0,weeklyDrafts:0});h.useEffect(()=>{const i=33.333333333333336,l={drafts:34,inserted:0,timeSaved:0,weeklyDrafts:34};let c=0;const u=setInterval(()=>{c++;const d=c/60;s({drafts:Math.floor(l.drafts*d),inserted:Math.floor(l.inserted*d),timeSaved:Math.floor(l.timeSaved*d),weeklyDrafts:Math.floor(l.weeklyDrafts*d)}),c>=60&&(clearInterval(u),s(l))},i);return()=>clearInterval(u)},[]);const r=[{icon:nt,label:"Total Drafts Generated",value:t.drafts.toLocaleString(),color:"from-blue-500 to-blue-600",bgColor:"bg-blue-500/10",iconColor:"text-blue-500"},{icon:bs,label:"Insert Rate",value:"0%",subtext:"0 drafts inserted",color:"from-purple-500 to-purple-600",bgColor:"bg-purple-500/10",iconColor:"text-purple-500"},{icon:Es,label:"Time Saved",value:`~${t.timeSaved} min`,subtext:"Average 5 min per draft",color:"from-green-500 to-green-600",bgColor:"bg-green-500/10",iconColor:"text-green-500"},{icon:Cr,label:"This Week",value:`${t.weeklyDrafts} drafts`,color:"from-orange-500 to-orange-600",bgColor:"bg-orange-500/10",iconColor:"text-orange-500"},{icon:ys,label:"Top Role",value:"Generic",subtext:"100% usage",color:"from-pink-500 to-pink-600",bgColor:"bg-pink-500/10",iconColor:"text-pink-500"},{icon:at,label:"Feedback Score",value:"100%",subtext:"All drafts helpful",color:"from-cyan-500 to-cyan-600",bgColor:"bg-cyan-500/10",iconColor:"text-cyan-500"}],a=[{icon:Cr,title:"Response Rate Tracking",description:"See which emails get replies and optimize your approach"},{icon:ys,title:"A/B Testing",description:"Compare different tones and styles to find what works best"},{icon:bs,title:"Conversion Analytics",description:"Track how AI-drafted emails impact your sales pipeline"},{icon:at,title:"Team Benchmarks",description:"Compare performance across your organization (Enterprise)"}];return e.jsx("section",{id:"analytics",className:"py-20 lg:py-32 relative overflow-hidden",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-[#60A5FA]/10 rounded-full text-[#60A5FA] text-sm font-medium mb-6",children:[e.jsx(ys,{size:16}),"Built-in Analytics"]}),e.jsxs("h2",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6",children:["Track Your Impact,",e.jsx("br",{}),e.jsx("span",{className:"text-[#60A5FA]",children:"Measure Your ROI"})]}),e.jsx("p",{className:"text-xl text-white/90 max-w-3xl mx-auto mb-4",children:"Every draft, every save, every minute reclaimed — tracked in real-time with built-in analytics."}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-white/70",children:[e.jsx(Ei,{size:14}),e.jsx("span",{children:"100% private — all metrics stored locally on your device"})]})]}),e.jsx(_.div,{className:"mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:e.jsxs("div",{className:"relative p-8 lg:p-12 bg-white/60 dark:bg-[#1E3A8A]/10 backdrop-blur-sm rounded-3xl border-2 border-gray-200 dark:border-[#1E3A8A]/30 shadow-2xl",children:[e.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-[#60A5FA]/20 to-transparent rounded-bl-full"}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-1",children:"Your Analytics Dashboard"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Real-time insights from your extension"})]}),e.jsxs("div",{className:"hidden sm:flex items-center gap-2 px-4 py-2 bg-green-500/10 text-green-600 dark:text-green-400 rounded-lg text-sm font-medium",children:[e.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),"Live Data"]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map((n,o)=>e.jsxs(_.div,{className:"relative p-6 bg-white dark:bg-[#0F172A]/60 rounded-2xl border-2 border-gray-100 dark:border-[#1E3A8A]/20 shadow-lg hover:shadow-xl transition-all group",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.3+o*.1},whileHover:{y:-5},children:[e.jsx("div",{className:`w-12 h-12 ${n.bgColor} rounded-xl flex items-center justify-center mb-4 group-hover:scale-110 transition-transform`,children:e.jsx(n.icon,{size:24,className:n.iconColor})}),e.jsx("div",{className:"text-sm text-gray-600 dark:text-gray-400 mb-2",children:n.label}),e.jsx("div",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-1",children:n.value}),n.subtext&&e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-500",children:n.subtext}),e.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r ${n.color} rounded-b-xl opacity-0 group-hover:opacity-100 transition-opacity`})]},n.label))})]})]})}),e.jsxs(_.div,{className:"grid md:grid-cols-3 gap-8 mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[e.jsxs("div",{className:"text-center p-8 bg-white/40 dark:bg-[#1E3A8A]/5 backdrop-blur-sm rounded-2xl border border-gray-200 dark:border-[#1E3A8A]/20",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-[#60A5FA] to-[#1E3A8A] rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg shadow-[#60A5FA]/30",children:e.jsx(Es,{size:32,className:"text-white"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:"Reclaim Your Time"}),e.jsxs("p",{className:"text-gray-600 dark:text-gray-400",children:["Average users save ",e.jsx("strong",{children:"8+ hours per week"})," on email communication"]})]}),e.jsxs("div",{className:"text-center p-8 bg-white/40 dark:bg-[#1E3A8A]/5 backdrop-blur-sm rounded-2xl border border-gray-200 dark:border-[#1E3A8A]/20",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-purple-500 to-purple-700 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg shadow-purple-500/30",children:e.jsx(bs,{size:32,className:"text-white"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:"Data-Driven Insights"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Discover which roles, tones, and styles work best for your needs"})]}),e.jsxs("div",{className:"text-center p-8 bg-white/40 dark:bg-[#1E3A8A]/5 backdrop-blur-sm rounded-2xl border border-gray-200 dark:border-[#1E3A8A]/20",children:[e.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-green-500 to-green-700 rounded-2xl flex items-center justify-center mx-auto mb-4 shadow-lg shadow-green-500/30",children:e.jsx(Ei,{size:32,className:"text-white"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:"100% Private"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"All analytics stored locally — your data never leaves your device"})]})]}),e.jsx(_.div,{className:"relative",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.5},children:e.jsxs("div",{className:"relative p-8 lg:p-12 bg-gradient-to-br from-[#1E3A8A] via-[#1E40AF] to-[#60A5FA] rounded-3xl shadow-2xl overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}})}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-white/10 backdrop-blur-sm rounded-full text-white/90 text-sm font-medium mb-4",children:[e.jsx(at,{size:16}),"Coming Soon"]}),e.jsx("h3",{className:"text-3xl sm:text-4xl font-bold text-white mb-3",children:"Advanced Analytics on the Horizon"}),e.jsx("p",{className:"text-xl text-white/80 max-w-2xl mx-auto",children:"We're building even more powerful insights to supercharge your email productivity"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:a.map((n,o)=>e.jsx(_.div,{className:"p-6 bg-white/10 backdrop-blur-sm rounded-2xl border border-white/20 hover:bg-white/15 transition-all group",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.4,delay:.6+o*.1},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-white/10 rounded-xl flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform",children:e.jsx(n.icon,{size:24,className:"text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("h4",{className:"text-lg font-bold text-white mb-2 flex items-center gap-2",children:[n.title,e.jsx($l,{size:16,className:"opacity-0 group-hover:opacity-100 transition-opacity"})]}),e.jsx("p",{className:"text-white/70 text-sm",children:n.description})]})]})},n.title))})]})]})})]})})}const Zf=[{id:"sales",icon:Cr,title:"xRepl.ai for Sales",description:"Close deals faster with AI-powered outreach that sounds human, builds rapport, and converts prospects.",benefits:["Personalized cold outreach at scale","Follow-up sequences that convert","Handle objections with confidence","Maintain your authentic voice"],highlighted:!0},{id:"recruiters",icon:Ps,title:"xRepl.ai for Recruiters",description:"Source top talent with compelling, personalized messages that candidates actually want to respond to.",benefits:["Engage passive candidates effectively","Craft compelling job descriptions","Streamline interview coordination","Build authentic relationships"],highlighted:!1},{id:"jobseekers",icon:Vl,title:"xRepl.ai for Job Seekers",description:"Land your dream job with professional networking messages and interview follow-ups that stand out.",benefits:["Professional networking messages","Thoughtful interview thank-yous","Compelling cover letter assistance","Confident salary negotiations"],highlighted:!1}];function Jf(){return e.jsx("section",{id:"roles",className:"py-20 bg-white/80 dark:bg-[#0A1628]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Built for Your Role"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Specialized AI training for your specific communication needs"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:Zf.map((t,s)=>e.jsxs(_.div,{id:t.id,className:`group p-8 rounded-2xl border-2 transition-all cursor-pointer ${t.highlighted?"bg-gradient-to-br from-[#1E3A8A] to-[#60A5FA] border-[#60A5FA] text-white":"bg-gray-50 dark:bg-[#1E3A8A]/10 border-gray-200 dark:border-[#1E3A8A]/30 hover:border-[#60A5FA] dark:hover:border-[#60A5FA]"} hover:shadow-2xl hover:shadow-[#60A5FA]/20`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:s*.1},whileHover:{y:-8}
397,children:[e.jsx("div",{className:`w-14 h-14 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform ${t.highlighted?"bg-white/20":"bg-[#1E3A8A] dark:bg-[#60A5FA]"}`,children:e.jsx(t.icon,{className:(t.highlighted,"text-white"),size:28})}),e.jsx("h3",{className:`text-2xl font-bold mb-3 ${t.highlighted?"text-white":"text-gray-900 dark:text-white"}`,children:t.title}),e.jsx("p",{className:`mb-6 ${t.highlighted?"text-white/90":"text-gray-600 dark:text-gray-400"}`,children:t.description}),e.jsx("ul",{className:"space-y-3 mb-8",children:t.benefits.map(r=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("div",{className:`w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5 ${t.highlighted?"bg-white/20":"bg-[#60A5FA]/20"}`,children:e.jsx("div",{className:`w-2 h-2 rounded-full ${t.highlighted?"bg-white":"bg-[#60A5FA]"}`})}),e.jsx("span",{className:t.highlighted?"text-white/90":"text-gray-700 dark:text-gray-300",children:r})]},r))}),e.jsxs("button",{className:`w-full py-3 rounded-lg flex items-center justify-center gap-2 transition-all group ${t.highlighted?"bg-white text-[#1E3A8A] hover:bg-white/90":"bg-[#1E3A8A] dark:bg-[#60A5FA] text-white hover:bg-[#1E3A8A]/90 dark:hover:bg-[#60A5FA]/90"}`,children:["Learn More",e.jsx(Oe,{size:18,className:"group-hover:translate-x-1 transition-transform"})]})]},t.title))})]})})}const Xf=[{name:"Free",price:"$0",period:"forever",description:"Perfect for trying AI email drafts",highlights:["30 generations/month","Gmail integration","GPT-4o-mini"],highlighted:!1,badge:null},{name:"Pro",price:"$30",period:"/mo",description:"Advanced AI with style mimicking",highlights:["500 generations/month","Gmail & LinkedIn","GPT-4o, Grok & Claude","Style mimicking"],highlighted:!0,badge:"Most Popular"},{name:"Ultimate",price:"$100",period:"/mo",description:"Maximum scale + all packages",highlights:["10,000 generations/month","All role packages included","VIP priority support"],highlighted:!1,badge:"Ultimate"}];function Qf(){return e.jsx("section",{id:"pricing",className:"py-20 bg-gray-50/80 dark:bg-[#0F2847]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-14",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Simple, Transparent Pricing"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Start free. Upgrade anytime for more generations and superior AI quality."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6 mb-10",children:Xf.map((t,s)=>e.jsxs(_.div,{className:`relative p-6 rounded-2xl border-2 transition-all ${t.name==="Ultimate"?"bg-gradient-to-br from-amber-500 via-yellow-500 to-amber-600 border-amber-400 shadow-xl shadow-amber-500/20":t.highlighted?"bg-gradient-to-br from-[#1E3A8A] to-[#60A5FA] border-[#60A5FA] shadow-xl shadow-[#60A5FA]/20":"bg-white dark:bg-[#1E3A8A]/10 border-gray-200 dark:border-[#1E3A8A]/30 shadow-md"}`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:s*.1},whileHover:{y:-5},children:[t.badge==="Most Popular"&&e.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-4 py-1 bg-[#60A5FA] text-white rounded-full flex items-center gap-1",children:[e.jsx(at,{size:14}),e.jsx("span",{className:"text-sm font-semibold",children:"Most Popular"})]}),t.badge==="Ultimate"&&e.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-4 py-1 bg-gradient-to-r from-amber-600 to-yellow-600 text-white rounded-full flex items-center gap-1 shadow-lg",children:[e.jsx(at,{size:14,className:"animate-pulse"}),e.jsx("span",{className:"text-sm font-semibold",children:"Ultimate"})]}),e.jsxs("div",{className:"mb-5 mt-2",children:[e.jsx("h3",{className:`text-xl font-bold mb-1 ${t.highlighted||t.name==="Ultimate"?"text-white":"text-gray-900 dark:text-white"}`,children:t.name}),e.jsxs("div",{className:"flex items-baseline gap-1 mb-2",children:[e.jsx("span",{className:`text-4xl font-bold ${t.highlighted||t.name==="Ultimate"?"text-white":"text-gray-900 dark:text-white"}`,children:t.price}),e.jsx("span",{className:`text-sm ${t.highlighted||t.name==="Ultimate"?"text-white/80":"text-gray-500 dark:text-gray-400"}`,children:t.period})]}),e.jsx("p",{className:`text-sm ${t.highlighted||t.name==="Ultimate"?"text-white/90":"text-gray-600 dark:text-gray-400"}`,children:t.description})]}),e.jsx("ul",{className:"space-y-3",children:t.highlights.map(r=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("div",{className:`w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 ${t.highlighted||t.name==="Ultimate"?"bg-white/25":"bg-[#60A5FA]/20"}`,children:e.jsx(Ce,{size:13,className:t.highlighted||t.name==="Ultimate"?"text-white":"text-[#60A5FA]"})}),e.jsx("span",{className:`text-sm ${t.highlighted||t.name==="Ultimate"?"text-white":"text-gray-700 dark:text-gray-300"}`,children:r})]},r))})]},t.name))}),e.jsx(_.p,{className:"text-center text-sm text-gray-500 dark:text-gray-400 mb-8",initial:{opacity:0}
397,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6,delay:.3},children:"Annual billing available — save up to 30%. Plus 2 more plans (Starter & Pro+)."}),e.jsxs(_.div,{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-16",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[e.jsxs(Pe,{to:"/pricing",className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-[#1E3A8A] to-[#60A5FA] text-white font-semibold rounded-lg hover:shadow-lg hover:shadow-[#60A5FA]/30 transition-all hover:scale-[1.02]",children:[e.jsx(nt,{size:20}),"Get Started Free"]}),e.jsxs(Pe,{to:"/pricing",className:"inline-flex items-center gap-2 px-8 py-4 bg-white dark:bg-white/10 text-[#1E3A8A] dark:text-white font-semibold rounded-lg border border-gray-200 dark:border-white/20 hover:bg-gray-50 dark:hover:bg-white/15 transition-all",children:["Compare All Plans",e.jsx(Oe,{size:18})]})]}),e.jsx(_.div,{className:"max-w-5xl mx-auto",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.5},children:e.jsxs("div",{className:"relative p-8 rounded-2xl bg-gradient-to-br from-gray-900 to-gray-800 dark:from-gray-950 dark:to-gray-900 border-2 border-gray-700 shadow-2xl overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-5",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}})}),e.jsxs("div",{className:"relative z-10 text-center",children:[e.jsx("h3",{className:"text-3xl font-bold text-white mb-3",children:"Looking for Enterprise Solutions?"}),e.jsx("p",{className:"text-lg text-gray-300 mb-4 max-w-3xl mx-auto",children:"Custom pricing for teams and organizations that need dedicated support, SSO, API access, on-premise deployment, and compliance guarantees."}),e.jsx("p",{className:"text-sm text-gray-400 mb-6",children:"Starting ~$500+/mo · 50,000+ generations/org/month · Flexible Pay-As-You-Go rates"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-6 text-sm text-gray-400",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ce,{size:16,className:"text-[#60A5FA]"}),"24/7 Dedicated Support"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ce,{size:16,className:"text-[#60A5FA]"}),"Team Management & SSO"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ce,{size:16,className:"text-[#60A5FA]"}),"Full API Access"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ce,{size:16,className:"text-[#60A5FA]"}),"On-Premise Deployment"]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ce,{size:16,className:"text-[#60A5FA]"}),"Custom Model Training"]})]}),e.jsx("a",{href:"/enterprise",className:"inline-block px-8 py-4 bg-[#60A5FA] text-white font-semibold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg shadow-[#60A5FA]/30 hover:shadow-xl hover:shadow-[#60A5FA]/40",children:"Explore Enterprise Options →"})]})]})})]})})}function e2({isOpen:t,onClose:s}){const[r,a]=h.useState(""),[n,o]=h.useState(""),[i,l]=h.useState(""),[c,u]=h.useState(""),[d,m]=h.useState(!1),[x,y]=h.useState(!1);if(!t)return null;const p=async j=>{j.preventDefault(),y(!0);try{const g=await fetch(L.CONTACT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r,email:n,subject:i||"General",message:c})}),w=await g.json();g.ok&&w.success?(m(!0),setTimeout(()=>{m(!1),a(""),o(""),l(""),u(""),s()},3e3)):(console.error("Failed to send contact form:",w),alert(w.error||"Something went wrong. Please try again."))}catch(g){console.error("Error sending contact form:",g),alert("Something went wrong. Please try again.")}finally{y(!1)}};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:e.jsxs("div",{className:"relative w-full max-w-md bg-white dark:bg-[#0F1F3D] rounded-2xl shadow-2xl border border-gray-200 dark:border-[#1E3A8A]/30 overflow-hidden",children:[e.jsx("button",{onClick:s,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors z-10","aria-label":"Close",children:e.jsx(kt,{size:24})}),d?e.jsxs("div",{className:"p-8 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full mb-4",children:e.jsx("svg",{className:"w-8 h-8 text-green-600 dark:text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Message Sent!"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Thanks for reaching out. We'll get back to you within 24 hours."})]}):e.jsxs("div",{className:"p-8",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-gradient-to-br from-[#60A5FA] to-[#1E3A8A] rounded-full mb-4",children:e.jsx(Or,{className:"text-white",size:32})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Contact Us"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Have a question or feedback? We'd love to hear from you."})]}),e.jsxs("form",{onSubmit:p,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"contact-name",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Name *"}),e.jsx("input",{type:"text",id:"contact-name",value:r,onChange:j=>a(j.target.value),required:!0,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"Your name"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"contact-email",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Email *"}
397),e.jsx("input",{type:"email",id:"contact-email",value:n,onChange:j=>o(j.target.value),required:!0,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"[email protected]"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"contact-subject",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Subject *"}),e.jsxs("select",{id:"contact-subject",value:i,onChange:j=>l(j.target.value),required:!0,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white",children:[e.jsx("option",{value:"",children:"Select a topic"}),e.jsx("option",{value:"General",children:"General Inquiry"}),e.jsx("option",{value:"Support",children:"Support"}),e.jsx("option",{value:"Feedback",children:"Feedback"}),e.jsx("option",{value:"Partnership",children:"Partnership"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"contact-message",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Message *"}),e.jsx("textarea",{id:"contact-message",value:c,onChange:j=>u(j.target.value),required:!0,rows:4,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 resize-none",placeholder:"How can we help?"})]}),e.jsx("button",{type:"submit",disabled:x,className:"w-full px-6 py-3 bg-gradient-to-r from-[#60A5FA] to-[#1E3A8A] text-white font-semibold rounded-lg hover:shadow-lg hover:scale-[1.02] transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:x?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),e.jsx("span",{children:"Sending..."})]}):e.jsxs(e.Fragment,{children:[e.jsx(Rt,{size:20}),e.jsx("span",{children:"Send Message"})]})})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 text-center mt-4",children:"We'll get back to you within 24 hours."})]})]})})}const t2=({size:t=18})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})});function Ve(){const[t,s]=h.useState(!1),r={product:[{label:"Features",href:"#features"},{label:"Pricing",href:"/pricing"},{label:"Enterprise",href:"/enterprise"},{label:"For Sales",href:"#sales"},{label:"For Recruiters",href:"#recruiters"},{label:"For Job Seekers",href:"#jobseekers"}],company:[{label:"About",href:"#about"}],legal:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Cookie Policy",href:"/cookies"}]},a=[{icon:t2,href:"https://x.com/xrepl_ai",label:"X (Twitter)"},{icon:om,href:"https://www.linkedin.com/company/111069329",label:"LinkedIn"},{icon:Rt,href:"mailto:[email protected]",label:"Email"}];return e.jsxs(e.Fragment,{children:[e.jsx("footer",{className:"bg-white/80 dark:bg-[#0A1628]/80 border-t border-gray-200 dark:border-[#1E3A8A]/30 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-8 mb-12",children:[e.jsxs("div",{className:"col-span-2",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx($r,{size:"md"}),e.jsxs("div",{children:[e.jsx("span",{className:"font-bold text-xl text-[#1E3A8A] dark:text-white block",children:"xRepl.ai"}),e.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Smart Email Intelligence"})]})]}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6 max-w-sm",children:"AI-powered email replies that sound human, build rapport, and convert — right in Gmail & LinkedIn."}),e.jsx("div",{className:"flex gap-4",children:a.map(n=>e.jsx("a",{href:n.href,target:n.href.startsWith("mailto:")?void 0:"_blank",rel:n.href.startsWith("mailto:")?void 0:"noopener noreferrer",className:"w-10 h-10 rounded-lg bg-gray-100 dark:bg-[#1E3A8A]/20 flex items-center justify-center text-gray-600 dark:text-gray-400 hover:bg-[#60A5FA] hover:text-white transition-all","aria-label":n.label,children:e.jsx(n.icon,{size:18})},n.label))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-4",children:"Product"}),e.jsx("ul",{className:"space-y-3",children:r.product.map(n=>e.jsx("li",{children:e.jsx("a",{href:n.href,className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors",children:n.label})},n.label))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-4",children:"Company"}),e.jsxs("ul",{className:"space-y-3",children:[r.company.map(n=>e.jsx("li",{children:e.jsx("a",{href:n.href,className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors",children:n.label})},n.label)),e.jsx("li",{children:e.jsx("button",{onClick:()=>s(!0),className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors",children:"Contact"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white mb-4",children:"Legal"}),e.jsx("ul",{className:"space-y-3",children:r.legal.map(n=>e.jsx("li",{children:e.jsx(Pe,{to:n.href,className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors",children:n.label})},n.label))})]})]}),e.jsxs("div",{className:"pt-8 border-t border-gray-200 dark:border-[#1E3A8A]/30 flex flex-col sm:flex-row justify-between items-center gap-4",children:[e.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:"© 2026 xRepl.ai. All rights reserved."}),e.jsxs("div",{className:"flex gap-6",children:[e.jsx(Pe,{to:"/privacy",className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors text-sm",children:"Privacy"}),e.jsx(Pe,{to:"/terms",className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors text-sm",children:"Terms"}),e.jsx("button",{onClick:()=>s(!0),className:"text-gray-600 dark:text-gray-400 hover:text-[#60A5FA] transition-colors text-sm",children:"Contact"})]})]})]})}),e.jsx(e2,{isOpen:t,onClose:()=>s(!1)})]})}function s2(){if(!(window.location.hostname.includes("git-staging")||window.location.hostname.includes("staging")||window.location.hostname==="localhost"))return null;
397const s=window.location.hostname==="localhost"?"LOCAL":"STAGING",r=s==="LOCAL"?"bg-purple-600":"bg-orange-600";return e.jsxs("div",{className:`fixed top-0 left-0 right-0 z-[9999] ${r} text-white text-center py-1 text-sm font-semibold shadow-lg`,children:["🚧 ",s," ENVIRONMENT - Not Production 🚧"]})}const Pd="/assets/xrepl-landing-DBKEXGaY.png";function r2(){return e.jsxs("div",{className:"min-h-screen bg-white dark:bg-[#0A1628]",style:{backgroundImage:`url(${Pd})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed"},children:[e.jsx(s2,{}),e.jsx($e,{}),e.jsxs("main",{children:[e.jsx("div",{"data-saxa-bg":"dark",children:e.jsx(Gf,{})}),e.jsx("div",{"data-saxa-bg":"light",children:e.jsx(Kf,{})}),e.jsx("div",{"data-saxa-bg":"light",children:e.jsx(qf,{})}),e.jsx("div",{"data-saxa-bg":"dark",children:e.jsx(Yf,{})}),e.jsx("div",{"data-saxa-bg":"light",children:e.jsx(Jf,{})}),e.jsx("div",{"data-saxa-bg":"light",children:e.jsx(Qf,{})})]}),e.jsx("div",{"data-saxa-bg":"light",children:e.jsx(Ve,{})})]})}function a2({isOpen:t,onClose:s}){const[r,a]=h.useState(""),[n,o]=h.useState(""),[i,l]=h.useState(""),[c,u]=h.useState(""),[d,m]=h.useState(""),[x,y]=h.useState(!1),[p,j]=h.useState(!1);if(!t)return null;const g=async w=>{w.preventDefault(),j(!0);try{const v=await fetch(L.CONTACT_SALES,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:n,email:r,company:i,teamSize:c,message:d})}),b=await v.json();v.ok&&b.success?(y(!0),setTimeout(()=>{y(!1),a(""),o(""),l(""),u(""),m(""),s()},3e3)):(console.error("Failed to send enterprise inquiry:",b),alert(b.error||"Something went wrong. Please try again."))}catch(v){console.error("Error sending enterprise inquiry:",v),alert("Something went wrong. Please try again.")}finally{j(!1)}};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:e.jsxs("div",{className:"relative w-full max-w-lg bg-white dark:bg-[#0F1F3D] rounded-2xl shadow-2xl border border-gray-200 dark:border-[#1E3A8A]/30 overflow-hidden",children:[e.jsx("button",{onClick:s,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors z-10",children:e.jsx(kt,{size:24})}),x?e.jsxs("div",{className:"p-8 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full mb-4",children:e.jsx("svg",{className:"w-8 h-8 text-green-600 dark:text-green-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Thank you!"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Our Enterprise sales team will reach out to you shortly."})]}):e.jsxs("div",{className:"p-8",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-gradient-to-br from-[#60A5FA] to-[#1E3A8A] rounded-full mb-4",children:e.jsx(xn,{className:"text-white",size:32})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Contact Enterprise Sales"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Let's discuss how xRepl.ai Enterprise can transform your organization's communication."})]}),e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Name *"}),e.jsx("input",{type:"text",id:"name",value:n,onChange:w=>o(w.target.value),required:!0,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"John Doe"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Email *"}),e.jsx("input",{type:"email",id:"email",value:r,onChange:w=>a(w.target.value),required:!0,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"[email protected]"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"company",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Company"}),e.jsx("input",{type:"text",id:"company",value:i,onChange:w=>l(w.target.value),className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500",placeholder:"Your company name"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"teamSize",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Team Size"}),e.jsxs("select",{id:"teamSize",value:c,onChange:w=>u(w.target.value),className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white",children:[e.jsx("option",{value:"",children:"Select team size"}),e.jsx("option",{value:"1-10",children:"1-10 users"}),e.jsx("option",{value:"11-50",children:"11-50 users"}),e.jsx("option",{value:"51-200",children:"51-200 users"}),e.jsx("option",{value:"201-500",children:"201-500 users"}),e.jsx("option",{value:"500+",children:"500+ users"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Tell us about your needs"}),e.jsx("textarea",{id:"message",value:d,onChange:w=>m(w.target.value),rows:4,className:"w-full px-4 py-3 bg-white dark:bg-[#0A1628] border border-gray-300 dark:border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] focus:border-transparent outline-none text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 resize-none",placeholder:"Any specific requirements or questions?"})]}),e.jsx("button",{type:"submit",disabled:p,className:"w-full px-6 py-3 bg-gradient-to-r from-[#60A5FA] to-[#1E3A8A] text-white font-semibold rounded-lg hover:shadow-lg hover:scale-[1.02] transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:p?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent roun
397ded-full animate-spin"}),e.jsx("span",{children:"Sending..."})]}):e.jsxs(e.Fragment,{children:[e.jsx(Rt,{size:20}),e.jsx("span",{children:"Contact Sales"})]})})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 text-center mt-4",children:"Our sales team will get back to you within 24 hours."})]})]})})}function n2(){const[t,s]=h.useState(!1),r=[{icon:Ps,title:"Team Management & SSO",description:"Admin dashboard, role-based access control, centralized billing, and single sign-on with Okta, Azure AD, or Google Workspace.",highlights:["User provisioning","SCIM integration","Audit logs"]},{icon:Gl,title:"Enterprise Security & Compliance",description:"SOC 2 Type 2 ready, data processing agreements, GDPR compliance, and custom data residency options.",highlights:["DPA & BAA available","Data sovereignty","Penetration testing"]},{icon:Tm,title:"On-Premise / Self-Hosted Deployment",description:"Air-gapped deployment with no external API calls. Complete data sovereignty and control for regulated industries.",highlights:["Private cloud option","Docker/Kubernetes","Full data isolation"]},{icon:z0,title:"Full API Access",description:"RESTful API for bulk email generation, CRM integrations, custom workflows, and automated processes.",highlights:["Bulk generation","Webhook support","Custom integrations"]},{icon:nt,title:"Custom Model Training",description:"Fine-tune Grok or OpenAI models on your internal data, communication style, and domain-specific language.",highlights:["Proprietary training","Style adaptation","Industry terminology"]},{icon:Q0,title:"Dedicated 24/7 Support",description:"SLA-backed support with 1-hour response times, dedicated account manager, and priority feature requests.",highlights:["Named support engineer","Quarterly reviews","Training sessions"]}],a=[{feature:"Unlimited email drafts",ultimate:!0,enterprise:!0},{feature:"Grok-4 Advanced",ultimate:!0,enterprise:!0},{feature:"All content packages (lifetime)",ultimate:!0,enterprise:!0},{feature:"Priority support",ultimate:!0,enterprise:!0},{feature:"Advanced analytics",ultimate:!0,enterprise:!0},{feature:"Team management & SSO",ultimate:!1,enterprise:!0},{feature:"Full API access",ultimate:!1,enterprise:!0},{feature:"On-premise deployment",ultimate:!1,enterprise:!0},{feature:"Custom model training",ultimate:!1,enterprise:!0},{feature:"SLA guarantees (1-hour response)",ultimate:!1,enterprise:!0},{feature:"Dedicated account manager",ultimate:!1,enterprise:!0},{feature:"Custom integrations (Outlook, CRM)",ultimate:!1,enterprise:!0},{feature:"Compliance guarantees (SOC 2, DPA)",ultimate:!1,enterprise:!0}],n=[{title:"Financial Services",description:"Banks, investment firms, and insurance companies requiring air-gapped deployment and strict compliance.",needs:["Data sovereignty","Regulatory compliance","Audit trails"]},{title:"Healthcare Organizations",description:"Hospitals and health systems needing HIPAA compliance and secure patient communication workflows.",needs:["HIPAA BAA","PHI protection","Secure messaging"]},{title:"Enterprise Sales Teams",description:"Large B2B sales organizations with CRM integrations and custom email workflows at scale.",needs:["Salesforce/HubSpot integration","Bulk generation","Team analytics"]},{title:"Recruiting Agencies",description:"High-volume recruiting firms managing thousands of candidate communications daily.",needs:["ATS integration","Candidate pipelines","Template management"]}];return e.jsxs("div",{className:"min-h-screen",children:[e.jsxs("section",{className:"relative py-20 lg:py-32 overflow-hidden backdrop-blur-sm",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"48px 48px"}})}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(_.div,{className:"text-center max-w-4xl mx-auto",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-white/10 backdrop-blur-sm rounded-full text-white/90 text-sm font-medium mb-6",children:[e.jsx(xn,{size:16}),"Enterprise Solutions"]}),e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-white mb-6",children:["AI Email Drafting",e.jsx("br",{}),e.jsx("span",{className:"text-[#60A5FA]",children:"Built for Enterprise"})]}),e.jsx("p",{className:"text-xl sm:text-2xl text-white/90 mb-8 max-w-3xl mx-auto",children:"Custom pricing, dedicated support, and enterprise-grade security for teams and organizations that demand maximum control and scale."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs("button",{onClick:()=>s(!0),className:"px-8 py-4 bg-white text-[#1E3A8A] font-semibold rounded-lg hover:bg-white/90 transition-all shadow-xl hover:shadow-2xl flex items-center gap-2",children:["Contact Sales",e.jsx(Oe,{size:20})]}),e.jsx("a",{href:"/#pricing",className:"px-8 py-4 bg-white/10 backdrop-blur-sm text-white font-semibold rounded-lg hover:bg-white/20 transition-all border-2 border-white/30",children:"Compare All Plans"})]})]})})]}),e.jsx("section",{className:"py-20 bg-gray-50/80 dark:bg-[#0F2847]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Enterprise-Grade Capabilities"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400 max-w-3xl mx-auto",children:"Everything you need for secure, scalable AI email drafting across your entire organization."})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:r.map((o,i)=>e.jsxs(_.div,{className:"p-8 bg-white dark:bg-[#1E3A8A]/10 rounded-2xl border-2 border-gray-200 dark:border-[#1E3A8A]/30 shadow-lg hover:shadow-xl transition-all",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:i*.1},children:[e.jsx("div",{className:"w-14 h-14 bg-[#60A5FA]/10 rounded-xl flex items-center justify-center mb-6",children:e.jsx(o.icon,{size:28,className:"text-[#60A5FA]"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-3",children:o.title}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:o.description}
397),e.jsx("ul",{className:"space-y-2",children:o.highlights.map(l=>e.jsxs("li",{className:"flex items-center gap-2 text-sm text-gray-700 dark:text-gray-300",children:[e.jsx(Ce,{size:16,className:"text-[#60A5FA] flex-shrink-0"}),l]},l))})]},o.title))})]})}),e.jsx("section",{className:"py-20 bg-white/80 dark:bg-[#0F172A]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Ultimate vs Enterprise"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400",children:"See what makes Enterprise the right choice for your organization"})]}),e.jsx(_.div,{className:"overflow-hidden rounded-2xl border-2 border-gray-200 dark:border-[#1E3A8A]/30 shadow-xl",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gray-100 dark:bg-[#1E3A8A]/10",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900 dark:text-white",children:"Feature"}),e.jsxs("th",{className:"px-6 py-4 text-center text-sm font-semibold text-gray-900 dark:text-white",children:["Ultimate",e.jsx("br",{}),e.jsx("span",{className:"font-normal text-gray-600 dark:text-gray-400",children:"$41-49/mo"})]}),e.jsxs("th",{className:"px-6 py-4 text-center text-sm font-semibold text-gray-900 dark:text-white",children:["Enterprise",e.jsx("br",{}),e.jsx("span",{className:"font-normal text-gray-600 dark:text-gray-400",children:"Custom"})]})]})}),e.jsx("tbody",{className:"bg-white dark:bg-[#0F172A]",children:a.map((o,i)=>e.jsxs("tr",{className:`border-t border-gray-200 dark:border-[#1E3A8A]/20 ${i%2===0?"bg-gray-50/50 dark:bg-[#1E3A8A]/5":""}`,children:[e.jsx("td",{className:"px-6 py-4 text-gray-900 dark:text-gray-300",children:o.feature}),e.jsx("td",{className:"px-6 py-4 text-center",children:o.ultimate?e.jsx(Ce,{size:20,className:"text-green-500 mx-auto"}):e.jsx("span",{className:"text-gray-400",children:"—"})}),e.jsx("td",{className:"px-6 py-4 text-center",children:o.enterprise?e.jsx(Ce,{size:20,className:"text-[#60A5FA] mx-auto"}):e.jsx("span",{className:"text-gray-400",children:"—"})})]},o.feature))})]})})]})}),e.jsx("section",{className:"py-20 bg-gray-50/80 dark:bg-[#0F2847]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Built for Regulated Industries"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400 max-w-3xl mx-auto",children:"Trusted by organizations that can't compromise on security or compliance"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:n.map((o,i)=>e.jsxs(_.div,{className:"p-8 bg-white dark:bg-[#1E3A8A]/10 rounded-2xl border-2 border-gray-200 dark:border-[#1E3A8A]/30 shadow-lg",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:i*.1},children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-3",children:o.title}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:o.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:o.needs.map(l=>e.jsx("span",{className:"px-3 py-1 bg-[#60A5FA]/10 text-[#60A5FA] dark:text-[#60A5FA] text-sm font-medium rounded-full",children:l},l))})]},o.title))})]})}),e.jsx("section",{className:"py-20 bg-white/80 dark:bg-[#0F172A]/60 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(_.div,{className:"text-center mb-12",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4",children:"Custom Pricing for Your Needs"}),e.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-400",children:"Flexible pricing based on team size, deployment model, and requirements"})]}),e.jsxs(_.div,{className:"bg-gradient-to-br from-[#1E3A8A] to-[#60A5FA] rounded-2xl p-8 text-white shadow-2xl",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Typical Pricing Ranges"}),e.jsxs("div",{className:"space-y-4 mb-8",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ce,{size:20,className:"flex-shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Per-User Licensing"}),e.jsx("p",{className:"text-white/80",children:"$99–$499+ per user per month (volume discounts available)"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ce,{size:20,className:"flex-shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"Annual Contracts"}),e.jsx("p",{className:"text-white/80",children:"$10,000–$50,000+ flat annual fees for unlimited users"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ce,{size:20,className:"flex-shrink-0 mt-1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:"On-Premise / Custom Deployment"}),e.jsx("p",{className:"text-white/80",children:"One-time setup fees starting at $25,000 (includes training & migration)"})]})]})]}),e.jsxs("div",{className:"border-t border-white/20 pt-6",children:[e.jsx("h4",{className:"text-xl font-bold mb-3",children:"How It Works"}),e.jsxs("ol",{className:"space-y-2 text-white/90",children:[e.jsxs("li",{children:["1. ",e.jsx("strong",{children:"Contact Sales"})," — Tell us about your team size, use case, and requirements"]}),e.jsxs("li",{children:["2. ",e.jsx("strong",{children:"Custom Proposal"})," — We'll create a tailored package with transparent pricing"]}),e.jsxs("li",{children:["3. ",e.jsx("strong",{children:"Demo & Onboarding"})," — See xRepl.ai in action with a dedicated demo for your team"]}),e.jsxs("li",{children:["4. ",e.jsx("strong",{children:"Deploy & Scale"})," — We handle setup, training, and ongoing support"]})]})]})]})]})}),e.jsx("section",{className:"py-20 bg-gradient-to-br from-gray-900 to-gray-800 dark:from-gray-950 dark:to-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-white mb-6",children:"Ready to Transform Your Organization?"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8 max-w-2xl mx-auto",children:"Let's discuss how xRepl.ai Enterprise can streamline communication across your entire team."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs("button",{onClick:()=>s(!0),className:"px-8 py-4 bg-[#60A5FA] text-white font-semibold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg shadow-[#60A5FA]/30 hover:shadow-xl flex items-center gap-2",children:["Contact Sales Team",e.jsx(Oe,{size:20})]}),e.jsx("a",{href:"/#pricing",className:"px-8 py-4 bg-white/10 backdrop-blur-sm text-white font-semibold rounded-lg hover:bg-white/20 transition-all border-2 border-white/30",children:"View Standard Plans"})]})]})})}),e.jsx(a2,{isOpen:t,onClose:()=>s(!1)})]})}function i2(){return h.useEffect(()=>{document.title="xReplAI - Enterprise"},[]),e.jsxs("div",{className:"min-h-screen bg-white dark:bg-[#0A1628]",style:{backgroundImage:`url(${Pd})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed"},children:[e.jsx($e,{}),e.jsx(n2,{}),e.jsx(Ve,{})]})}function Td({isOpen:t,onClose:s,onConfirm:r,preview:a,isLoading:n=!1,error:o=null,modalType:i}){const[l,c]=h.useState(!1);if(!t)return null;const u=async()=>{c(!0);try{await r()}finally{c(!1)}},d=(p,j="usd")=>new Intl.NumberFormat("en-US",{style:"currency",currency:j.toUpperCase()}).format(p),m=p=>new Date(p).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),x=(a==null?void 0:a.type)==="plan_change"||!a&&i==="plan_change",y=(a==null?void 0:a.type)==="package_add"||!a&&i==="package_add";return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>!l&&!n&&s(),children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl max-w-md w-full p-6",onClick:p=>p.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:x?"Confirm Plan Change":"Confirm Package Addition"}),e.jsx("button",{type:"button",onClick:s,disabled:l||n,className:"p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 disabled:opacity-50",children:e.jsx(kt,{className:"w-5 h-5"})})]}),n&&e.jsxs("div",{className:"flex items-center justify-center py-8",children:[e.jsx(rt,{className:"w-8 h-8 animate-spin text-[#1E3A8A]"}),e.jsx("span",{className:"ml-3 text-gray-600 dark:text-gray-400",children:"Calculating..."})]}),o&&e.jsxs("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg flex items-center gap-2",children:[e.jsx(Cs,{className:"w-5 h-5 text-red-600 dark:text-red-400 flex-shrink-0"}),e.jsx("span",{className:"text-sm text-red-700 dark:text-red-300",children:o})]}),a&&!n&&e.jsxs(e.Fragment,{children:[x&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 py-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[e.jsx("span",{className:"font-medium text-gray-700 dark:text-gray-300 capitalize",children:a.current_plan}),e.jsx(Oe,{className:"w-5 h-5 text-gray-400"}),e.jsx("span",{className:"font-semibold text-[#1E3A8A] dark:text-[#60A5FA] capitalize",children:a.new_plan})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"New plan price"}),e.jsxs("span",{className:"font-medium text-gray-900 dark:text-white",children:[d(a.new_plan_price),"/",a.billing_interval==="yearly"?"year":"month"]})]}),a.charge_amount>0&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Prorated charge (due now)"}
397),e.jsx("span",{className:"font-medium text-amber-600 dark:text-amber-400",children:d(a.charge_amount)})]}),a.credit_amount>0&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Prorated credit"}),e.jsxs("span",{className:"font-medium text-green-600 dark:text-green-400",children:["-",d(a.credit_amount)]})]}),e.jsxs("div",{className:"pt-2 border-t border-gray-200 dark:border-gray-600 flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Next billing date"}),e.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:m(a.next_billing_date)})]})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:a.change_type==="upgrade"?"Your plan will be upgraded immediately. You will be charged the prorated difference.":"Your plan will be downgraded immediately. Any credit will be applied to your next invoice."})]}),y&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"py-3 px-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[e.jsx("p",{className:"font-semibold text-gray-900 dark:text-white",children:a.package_title??a.package_name}),(a.package_details??a.package_description)&&e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1",children:a.package_details??a.package_description})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Monthly price"}),e.jsxs("span",{className:"font-medium text-gray-900 dark:text-white",children:[d(a.monthly_price),"/month"]})]}),a.amount_due_now>0&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Prorated charge (due now)"}),e.jsx("span",{className:"font-medium text-amber-600 dark:text-amber-400",children:d(a.amount_due_now)})]}),e.jsxs("div",{className:"pt-2 border-t border-gray-200 dark:border-gray-600 flex justify-between",children:[e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Next billing date"}),e.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:m(a.next_billing_date)})]})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"This package will be added to your subscription immediately. You will be charged the prorated amount for the remainder of your billing period."})]}),e.jsxs("div",{className:"flex gap-3 mt-6",children:[e.jsx("button",{type:"button",onClick:s,disabled:l,className:"flex-1 px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 font-medium disabled:opacity-50",children:"Cancel"}),e.jsxs("button",{type:"button",onClick:u,disabled:l,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-[#1E3A8A] hover:bg-[#1E3A8A]/90 text-white font-medium disabled:opacity-50",children:[l&&e.jsx(rt,{className:"w-4 h-4 animate-spin"}),x?a.change_type==="upgrade"?"Confirm Upgrade":"Confirm Downgrade":"Add Package"]})]})]})]})})}const o2={free:{cta:"Get Started Free",highlighted:!1},starter:{cta:"Get Starter",highlighted:!1,isStarter:!0},pro:{cta:"Get Pro",highlighted:!0,mostPopular:!0},pro_plus:{cta:"Get Pro+",highlighted:!1,isProPlus:!0},ultimate:{cta:"Get Ultimate",highlighted:!1,isUltimate:!0},enterprise:{cta:"Contact Sales",highlighted:!1}},Go=[{category:"Core Features",items:[{name:"Generation Credits per Month",key:"generations"},{name:"Extra Generations",key:"overageRate"},{name:"AI Model",key:"model"},{name:"Draft variants",key:"draftVariants"},{name:"Response strategies",key:"responseStrategies"},{name:"Tone options",key:"tones"}]},{category:"Advanced Features",items:[{name:"User style matching",key:"styleMatch"},{name:"Specialized role packages",key:"rolePackages"},{name:"Early access to new features",key:"earlyAccess"},{name:"Exclusive community access",key:"communityAccess"}]},{category:"Integrations",items:[{name:"Gmail integration",key:"gmailIntegration"},{name:"LinkedIn integration",key:"linkedinIntegration"}]},{category:"Support & Analytics",items:[{name:"Analytics",key:"analytics"},{name:"Support",key:"support"}]}];function l2(){var ke;const[t,s]=h.useState(!1),[r,a]=h.useState(!1),[n,o]=h.useState(null),[i,l]=
397h.useState(2),[c,u]=h.useState(null),[d,m]=h.useState("loading"),[x,y]=h.useState([]),[p,j]=h.useState({}),[g,w]=h.useState(null),[v,b]=h.useState(!1),[k,A]=h.useState({isOpen:!1,isLoading:!1,error:null,preview:null,licenseKey:null,includedPackageId:null}),{isWaitlistOpen:E,setIsWaitlistOpen:M,isMaintenanceMode:T}=fn(),{isAuthenticated:R,user:$,license:z,updateLicense:te,refreshLicense:B}=et(),W=Ze(),[q,he]=Lt();h.useEffect(()=>{R&&B()},[R,B]),h.useEffect(()=>{if(!R||!(z!=null&&z.license_key)){w(null);return}let N=!1;return fetch(L.USAGE_INFO,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:z.license_key})}).then(I=>I.ok?I.json():null).then(I=>{if(N||!(I!=null&&I.valid))return;const F=I.cancel_at_period_end===!0||String(I.cancel_at_period_end||"").toLowerCase()==="true";w({cancel_at_period_end:F,expires_at:I.expires_at??null})}).catch(()=>{N||w(null)}),()=>{N=!0}},[R,z==null?void 0:z.license_key]);const J=()=>{z!=null&&z.license_key&&fetch(L.USAGE_INFO,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:z.license_key})}).then(N=>N.ok?N.json():null).then(N=>{if(!(N!=null&&N.valid))return;const I=N.cancel_at_period_end===!0||String(N.cancel_at_period_end||"").toLowerCase()==="true";w({cancel_at_period_end:I,expires_at:N.expires_at??null})}).catch(()=>w(null))},H=async()=>{if(z!=null&&z.license_key){b(!0);try{const N=await fetch(L.SUBSCRIBE_REACTIVATE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:z.license_key})}),I=await N.json().catch(()=>({}));if(!N.ok)return;B(),J()}finally{b(!1)}}},Z=Q.useRef(null);h.useEffect(()=>{const N=q.get("checkout");!N||!R||!$||Z.current===N||(Z.current=N,he(I=>{const F=new URLSearchParams(I);return F.delete("checkout"),F},{replace:!0}),Ie(N))},[R,$,q]),h.useEffect(()=>{let N=!1;return m("loading"),fetch(L.PLANS_LIST).then(I=>I.ok?I.json():null).then(I=>{N||(Array.isArray(I==null?void 0:I.plans)&&I.plans.length>0?(u(I.plans),m("success")):m("error"))}).catch(()=>{N||m("error")}),()=>{N=!0}},[]),h.useEffect(()=>{let N=!1;return fetch(L.PACKAGES_DEFINITIONS).then(I=>I.ok?I.json():null).then(I=>{if(N)return;const re=(Array.isArray(I==null?void 0:I.packages)?I.packages:[]).filter(ne=>ne.id).map(ne=>({id:ne.id,name:ne.name||ne.id,base:ne.base})),we=re.filter(ne=>!ne.base);y((we.length?we:re).map(ne=>({id:ne.id,name:ne.name})))}).catch(()=>{}),()=>{N=!0}},[]);const Y=h.useMemo(()=>c!=null&&c.length?["free","starter","pro","pro_plus","ultimate"].map(I=>{const F=c.find(ie=>ie.name.toLowerCase()===I),re=o2[I]||{cta:`Get ${I}`,highlighted:!1},we=(F==null?void 0:F.name)??I,ne=(F==null?void 0:F.displayName)??(F==null?void 0:F.name)??I,tt=Math.round((F==null?void 0:F.priceMonthlyUsd)??0),xe=(F==null?void 0:F.priceYearlyUsd)??0,ve=(F==null?void 0:F.maxGenerationsPerMonth)!=null?F.maxGenerationsPerMonth>=1e3?F.maxGenerationsPerMonth.toLocaleString():String(F.maxGenerationsPerMonth):"0",je=((F==null?void 0:F.description)??"").replace(/(\d+(?:,\d+)*)(\s*generations?)/gi,`${ve}$2`),C=(F==null?void 0:F.overageRate)!=null?`$${F.overageRate.toFixed(2)}`:null;return{planKey:I,name:we,displayName:ne,priceMonthly:tt,priceAnnual:xe>0?Math.round(xe/12):0,annualTotal:Math.round(xe),period:I==="free"?"forever":"/mo",description:je,generations:ve,overageRate:C,overageSubtext:I==="free"?"Perfect for trying xReplAI":null,...re,features:(F==null?void 0:F.features)??{},rolePackages:(F==null?void 0:F.rolePackages)!=null?Number(F.rolePackages):null,canPurchasePackages:!!(F!=null&&F.canPurchasePackages)}}):[],[c]),de=((ke=z==null?void 0:z.plan)==null?void 0:ke.toLowerCase())||null,Te=N=>{const I=(N||"").toLowerCase();return{free:0,starter:1,pro:2,pro_plus:3,ultimate:4,enterprise:5}[I]??-1},me=N=>{if(!de)return!1;const I=(N||"").toLowerCase().replace(/\s+/g,"_"),F=de.replace(/\s+/g,"_");return I===F},se=N=>de?Te(N)<Te(de):!1,fe=N=>me(N.planKey)&&(g!=null&&g.cancel_at_period_end)?"Undo Cancellation":N.planKey==="free"?"Get Free Plan":`Get ${N.displayName} Plan`,Ke=N=>{var we;if(T){M(!0);return}if(me(N)){W("/account");return}const I=Y.find(ne=>ne.name===N),F=I==null?void 0:I.planKey,re=t?(I==null?void 0:I.priceAnnual)??0:(I==null?void 0:I.priceMonthly)??0;
397if(Ss(N,t?"yearly":"monthly",re),Ss(F||N,t?"annual":"monthly"),R)Ie(N);else{if(o(N),N!=="Free"){sessionStorage.setItem("post_auth_checkout_plan",N),sessionStorage.setItem("post_auth_billing_interval",t?"yearly":"monthly");const ne=F&&(p[F]||((we=x[0])==null?void 0:we.id))||"";sessionStorage.setItem("post_auth_checkout_included_package_id",ne)}a(!0)}},Ie=async N=>{var tt;if(N==="Free"){if(!R||!($!=null&&$.email)){o(N),a(!0);return}W("/account");return}const I=t?"yearly":"monthly",F=(N||"").toLowerCase(),re=Y.find(xe=>xe.name===N),we=re==null?void 0:re.planKey,ne=(we?p[we]:null)||sessionStorage.getItem("post_auth_checkout_included_package_id")||((re==null?void 0:re.rolePackages)===1&&((tt=x[0])!=null&&tt.id)?x[0].id:null);try{const xe=await fetch(`${L.SUBSCRIBE_PLAN_STATUS}?email=${encodeURIComponent(($==null?void 0:$.email)??"")}&plan=${encodeURIComponent(F)}`),ve=xe.ok?await xe.json():null;if((ve==null?void 0:ve.action)==="replace_plan"){const ie=ve==null?void 0:ve.license_key;if(!ie)throw new Error("Unable to determine current license. Please refresh the page or sign out and sign in again, then try upgrading.");A({isOpen:!0,isLoading:!0,error:null,preview:null,licenseKey:ie,includedPackageId:ne||null});try{const ee=await fetch(L.SUBSCRIBE_PREVIEW_PLAN_CHANGE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:ie,newPlan:F,billingInterval:I})}),ae=await ee.json();if(!ee.ok||!ae.success){A(ye=>({...ye,isLoading:!1,error:ae.error||"Failed to calculate proration preview"}));return}A(ye=>({...ye,isLoading:!1,preview:{type:"plan_change",...ae.preview}}))}catch{A(ae=>({...ae,isLoading:!1,error:"Failed to load preview. Please try again."}))}return}m0(F,I,"new_subscription");const je=q.get("coupon"),C=new URLSearchParams({plan:F,billing:I,type:"new_subscription",...ne?{included_package_id:ne}:{},...je?{coupon:je}:{}});W(`/checkout?${C.toString()}`)}catch(xe){console.error("Checkout error:",xe);const ve=(xe instanceof Error?xe.message:String(xe)).trim();alert(ve||"Something went wrong. Please try again or refresh the page.")}},Be=async()=>{if(!(!k.preview||!k.licenseKey))try{const N=await fetch(L.SUBSCRIBE_UPDATE_PLAN_DIRECT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:k.licenseKey,newPlan:k.preview.new_plan,billingInterval:k.preview.billing_interval,...k.includedPackageId?{included_package_id:k.includedPackageId}:{}})}),I=await N.json();if(!N.ok||!I.success){A(F=>({...F,error:I.error||"Failed to update plan"}));return}A({isOpen:!1,isLoading:!1,error:null,preview:null,licenseKey:null,includedPackageId:null}),await B(),W("/account")}catch{A(I=>({...I,error:"Failed to update plan. Please try again."}))}},_e=()=>{n&&(Ie(n),o(null))},yt=(N,I)=>typeof I=="boolean"?I?e.jsx(Ce,{size:20,className:"text-[#60A5FA] mx-auto"}):e.jsx(kt,{size:20,className:"text-gray-300 dark:text-gray-600 mx-auto"}):I==null?e.jsx("span",{className:"text-sm text-gray-500",children:"—"}):e.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:String(I)});return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-[#1E3A8A] via-[#0F2847] to-[#1E3A8A]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[d==="loading"&&e.jsx(_.div,{className:"text-center py-24",initial:{opacity:0}
397,animate:{opacity:1},children:e.jsx("p",{className:"text-xl text-white/80",children:"Loading plans…"})}),d==="error"&&e.jsxs(_.div,{className:"text-center py-24 max-w-xl mx-auto",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"Pricing temporarily unavailable"}),e.jsx("p",{className:"text-white/80 mb-6",children:"This page is under maintenance at the moment. Please try again later."})]}),d==="success"&&Y.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(_.div,{className:"mb-8 max-w-3xl mx-auto",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5},children:e.jsxs("div",{className:"relative bg-gradient-to-r from-amber-500/20 via-yellow-500/20 to-amber-500/20 border border-amber-400/40 rounded-xl px-6 py-4 text-center backdrop-blur-sm",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1",children:[e.jsx(at,{size:18,className:"text-amber-400"}),e.jsx("span",{className:"text-amber-300 font-bold text-sm uppercase tracking-wider",children:"Founding Member Offer"}),e.jsx(at,{size:18,className:"text-amber-400"})]}),e.jsxs("p",{className:"text-white/90 text-sm",children:["Get ",e.jsx("strong",{className:"text-amber-300",children:"20% off"})," any annual plan with code ",e.jsx("code",{className:"bg-white/10 px-2 py-0.5 rounded text-amber-300 font-mono font-bold",children:"FOUNDING20"})," at checkout. Limited to first 100 subscribers."]})]})}),e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-white mb-6",children:"Compare Plans"}),e.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto mb-8",children:"Choose the perfect plan for your needs. All plans include core features with flexible Pay-As-You-Go pricing."}),e.jsxs("div",{className:"flex items-center justify-center gap-4",children:[e.jsx("span",{className:`text-lg font-medium transition-colors ${t?"text-white/50":"text-white"}`,children:"Monthly"}),e.jsx("button",{onClick:()=>{s(!t),h0(!t)},className:`relative w-16 h-8 rounded-full transition-colors ${t?"bg-[#60A5FA]":"bg-white/20"}`,children:e.jsx(_.div,{className:"absolute top-1 left-1 w-6 h-6 bg-white rounded-full shadow-md",animate:{x:t?32:0},transition:{type:"spring",stiffness:500,damping:30}})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`text-lg font-medium transition-colors ${t?"text-white":"text-white/50"}`,children:"Annual"}),e.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded-full",children:"Save up to 30%"})]})]})]}),e.jsx(_.div,{className:"grid md:grid-cols-2 lg:grid-cols-5 gap-4 mb-16",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:Y.map(N=>{var I;return e.jsxs("div",{className:`relative p-6 rounded-xl border-2 transition-all ${N.isUltimate?"bg-gradient-to-br from-amber-500 via-yellow-500 to-amber-600 border-amber-400":N.highlighted?"bg-gradient-to-br from-[#1E3A8A] to-[#60A5FA] border-[#60A5FA]":N.isProPlus?"bg-gradient-to-br from-indigo-600 to-blue-500 border-indigo-400":N.isStarter?"bg-white/10 backdrop-blur-sm border-white/20":"bg-white/5 backdrop-blur-sm border-white/10"}`,children:[me(N.planKey)&&e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-green-500 text-white rounded-full flex items-center gap-1 text-xs font-semibold",children:"Your Plan"}),N.mostPopular&&!me(N.planKey)&&e.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-[#60A5FA] text-white rounded-full flex items-center gap-1 text-xs font-semibold",children:[e.jsx(at,{size:12}),"Most Popular"]}),N.isUltimate&&!me(N.planKey)&&e.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-gradient-to-r from-amber-600 to-yellow-600 text-white rounded-full flex items-center gap-1 text-xs font-semibold",children:[e.jsx(at,{size:12,className:"animate-pulse"}),"Ultimate"]}),e.jsx("h3",{className:`text-xl font-bold mb-2 ${N.isUltimate||N.highlighted||N.isProPlus,"text-white"}`,children:N.displayName}),e.jsx("p",{className:`text-xs mb-4 ${N.isUltimate||N.highlighted||N.isProPlus?"text-white/70":"text-white/60"}`,children:N.description}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsxs("span",{className:`text-4xl font-bold ${N.isUltimate||N.highlighted||N.isProPlus,"text-white"}`,children:["$",t?N.priceAnnual:N.priceMonthly]}),e.jsxs("span",{className:`text-sm ${N.isUltimate||N.highlighted||N.isProPlus?"text-white/80":"text-white/70"}`,children:["/",N.priceMonthly===0?"forever":"mo"]})]}),t&&N.annualTotal>0&&e.jsxs("p",{className:`text-xs mt-1 ${N.isUltimate||N.highlighted||N.isProPlus?"text-white/70":"text-white/60"}`,children:["Billed at $",N.annualTotal,"/year"]})]}),me(N.planKey)&&(g==null?void 0:g.expires_at)&&e.jsx("p",{className:"text-xs mb-4 px-3 py-2 rounded-lg bg-amber-400/30 text-amber-900 dark:bg-amber-300/20 dark:text-amber-100 border border-amber-500/50 dark:border-amber-400/50 font-medium",children:g.cancel_at_period_end?`Valid through ${new Date(g.expires_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}`:`Renews on ${new Date(g.expires_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}`}),e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(nt,{size:14,className:N.isUltimate||N.highlighted||N.isProPlus?"text-white":"text-[#60A5FA]"}),e.jsxs("span",{className:`text-sm font-medium ${N.isUltimate||N.highlighted||N.isProPlus,"text-white"}`,children:[N.generations," generations"]})]}),(N.overageRate!=null||N.overageSubtext)&&e.jsx("p",{className:`text-xs mb-4 ${N.isUltimate||N.highlighted||N.isProPlus?"text-white/70":"text-white/60"}`,children:N.overageRate??N.overageSubtext}),N.rolePackages===1&&x.length>0&&e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:`block text-xs font-medium mb-1 ${N.isUltimate||N.highlighted||N.isProPlus?"text-white/80":"text-white/70"}`,children:"Included package"}),e.jsx("select",{value:p[N.planKey]||((I=x[0])==null?void 0:I.id)||"",onChange:F=>j(re=>({...re,[N.planKey]:F.target.value})),className:`w-full rounded-lg border px-3 py-2 text-sm bg-white/10 border-white/30 text-white focus:ring-2 focus:ring-[#60A5FA] focus:border-[#60A5FA] ${N.isUltimate||N.highlighted||N.isProPlus,"text-white"}`,children:x.map(F=>e.jsx("option",{value:F.id,className:"bg-gray-900 text-white",children:F.name},F.id))})]}),me(N.planKey)&&(g!=null&&g.cancel_at_period_end)?e.jsxs("button",{type:"button",onClick:H,disabled:v,className:"w-full py-3 rounded-lg font-semibold text-sm transition-all inline-flex items-center justify-center gap-2 bg-amber-500 hover:bg-amber-600 text-white border-2 border-amber-400",children:[v?e.jsx(rt,{className:"w-4 h-4 animate-spin"}):e.jsx(Ar,{className:"w-4 h-4"}),"Undo Cancellation"]}):me(N.planKey)?null:e.jsx("button",{onClick:()=>Ke(N.name),className:`w-full py-3 rounded-lg font-semibold text-sm transition-all ${se(N.name)?"bg-white/10 text-white/60 hover:bg-white/15":N.isUltimate?"bg-white text-amber-700 hover:bg-white/90":N.highlighted?"bg-white text-[#1E3A8A] hover:bg-white/90":N.isProPlus?"bg-white text-indigo-700 hover:bg-white/90":"bg-white/20 text-white hover:bg-white/30"}`,children:fe(N)})]},N.name)})}),e.jsxs(_.div,{className:"bg-white dark:bg-[#0F172A] rounded-2xl shadow-2xl overflow-hidden",initial:{opacity:0,y:20}
397,animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},children:[e.jsxs("div",{className:"block lg:hidden p-6 border-b border-gray-200 dark:border-gray-700",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Select Plan to Compare"}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:Y.map((N,I)=>e.jsxs("button",{onClick:()=>l(I),className:`p-3 rounded-lg border-2 transition-all text-left ${i===I?"border-[#60A5FA] bg-[#60A5FA]/10":"border-gray-200 dark:border-gray-700"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("div",{className:`w-4 h-4 rounded-full border-2 flex items-center justify-center ${i===I?"border-[#60A5FA] bg-[#60A5FA]":"border-gray-300 dark:border-gray-600"}`,children:i===I&&e.jsx("div",{className:"w-2 h-2 bg-white rounded-full"})}),e.jsx("span",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:N.displayName})]}),e.jsxs("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:["$",t?N.priceAnnual:N.priceMonthly,"/",N.priceMonthly===0?"forever":"mo"]})]},N.name))})]}),e.jsxs("div",{className:"block lg:hidden",children:[Go.map((N,I)=>e.jsxs("div",{children:[e.jsx("div",{className:"px-6 py-3 bg-gray-100 dark:bg-[#1E3A8A]/10",children:e.jsx("h4",{className:"text-sm font-bold text-gray-900 dark:text-white",children:N.category})}),N.items.map((F,re)=>e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:F.name}),e.jsx("div",{className:"flex-shrink-0",children:yt(Y[i],Y[i].features[F.key])})]},re))]},I)),e.jsxs("div",{className:"p-6",children:[me(Y[i].planKey)&&(g!=null&&g.cancel_at_period_end)?e.jsxs("button",{type:"button",onClick:H,disabled:v,className:"w-full py-4 font-semibold rounded-lg transition-all inline-flex items-center justify-center gap-2 bg-amber-500 hover:bg-amber-600 text-white",children:[v?e.jsx(rt,{className:"w-4 h-4 animate-spin"}):e.jsx(Ar,{className:"w-4 h-4"}),"Undo Cancellation"]}):me(Y[i].planKey)?null:e.jsx("button",{onClick:()=>Ke(Y[i].name),className:`w-full py-4 font-semibold rounded-lg transition-all ${se(Y[i].name)?"bg-gray-200 dark:bg-gray-700 text-gray-500 dark:text-gray-400 hover:bg-gray-300 dark:hover:bg-gray-600":"bg-[#60A5FA] text-white hover:bg-[#60A5FA]/90"}`,children:fe(Y[i])}),me(Y[i].planKey)&&(g==null?void 0:g.expires_at)&&e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-2 text-center",children:g.cancel_at_period_end?`Valid through ${new Date(g.expires_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}`:`Renews on ${new Date(g.expires_at).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}`})]})]}),e.jsx("div",{className:"hidden lg:block overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gray-50 dark:bg-[#1E3A8A]/20 border-b border-gray-200 dark:border-gray-700",children:[e.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900 dark:text-white sticky left-0 bg-gray-50 dark:bg-[#1E3A8A]/20 z-10",children:"Features"}),Y.map(N=>e.jsx("th",{className:"px-6 py-4 text-center text-sm font-semibold text-gray-900 dark:text-white min-w-[140px]",children:N.displayName},N.name))]})}),e.jsx("tbody",{children:Go.map((N,I)=>[e.jsx("tr",{className:"bg-gray-100 dark:bg-[#1E3A8A]/10",children:e.jsx("td",{colSpan:6,className:"px-6 py-3 text-sm font-bold text-gray-900 dark:text-white",children:N.category})},`category-${I}`),...N.items.map((F,re)=>e.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-[#1E3A8A]/5 transition-colors",children:[e.jsx("td",{className:"px-6 py-4 text-sm text-gray-700 dark:text-gray-300 sticky left-0 bg-white dark:bg-[#0F172A] z-10",children:F.name}),Y.map(we=>e.jsx("td",{className:"px-6 py-4 text-center",children:yt(we,we.features[F.key])},we.name))]},`${I}-${re}`))])})]})})]}),e.jsx(_.div,{className:"mt-8 text-center max-w-4xl mx-auto",initial:{opacity:0}
397,animate:{opacity:1},transition:{duration:.6,delay:.6},children:e.jsxs("p",{className:"text-sm text-white/70",children:[e.jsx("strong",{children:"Note:"})," 1 Generation = one full AI draft set (up to 4 variants based on goal/role + tone). Extra generations are automatically billed monthly via Stripe Metered Billing. You'll receive nudges at 70-80% quota and when projected costs approach the next tier price."]})}),e.jsx(_.div,{className:"mt-16 max-w-5xl mx-auto",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.8},children:e.jsxs("div",{className:"relative p-8 rounded-2xl bg-gradient-to-br from-gray-900 to-gray-800 border-2 border-gray-700 shadow-2xl overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-5",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}})}),e.jsxs("div",{className:"relative z-10 text-center",children:[e.jsx("h3",{className:"text-3xl font-bold text-white mb-3",children:"Need Enterprise Solutions?"}),e.jsx("p",{className:"text-lg text-gray-300 mb-6 max-w-3xl mx-auto",children:"Custom pricing for teams (10+ users) with dedicated support, SSO, API access, on-premise deployment, and compliance guarantees. Starting at ~$500+/mo with 50,000+ generations."}),e.jsxs("a",{href:"/enterprise",className:"inline-flex items-center gap-2 px-8 py-4 bg-[#60A5FA] text-white font-semibold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg shadow-[#60A5FA]/30",children:["Explore Enterprise Options",e.jsx(Oe,{size:20})]})]})]})})]})]})}),e.jsx(Ve,{}),e.jsx(gn,{isOpen:E,onClose:()=>M(!1)}),e.jsx(Os,{isOpen:r,onClose:()=>a(!1),onSuccess:_e}),e.jsx(Td,{isOpen:k.isOpen,onClose:()=>A({isOpen:!1,isLoading:!1,error:null,preview:null,licenseKey:null,includedPackageId:null}),onConfirm:Be,preview:k.preview,isLoading:k.isLoading,error:k.error,modalType:"plan_change"})]})}function c2(){const[t]=Lt(),{updateLicense:s,user:r}=et(),[a,n]=h.useState(!1),[o,i]=h.useState(!1),[l,c]=h.useState(()=>t.get("licenseKey")),[u,d]=h.useState(null),[m,x]=h.useState(!1),[y,p]=h.useState(null),[j,g]=h.useState(null),w=t.get("extensionSent")==="true";h.useEffect(()=>{r!=null&&r.email&&fetch(`${L.REFERRALS}?email=${encodeURIComponent(r.email)}`).then(b=>b.ok?b.json():null).then(b=>{b!=null&&b.referral_code&&g(b.referral_code)}).catch(()=>{})},[r==null?void 0:r.email]),h.useEffect(()=>{document.title="Success - xRepl.ai"},[]),h.useEffect(()=>{const b=t.get("session_id");if(!b||l)return;let k=!1;return x(!0),p(null),fetch(`${L.SUBSCRIBE_SESSION_SUCCESS}?session_id=${encodeURIComponent(b)}`).then(A=>A.json()).then(A=>{k||(A.success&&A.license_key?(c(A.license_key),d(A.plan||null),Dl(A.plan||"unknown"),A.plan&&s(A.license_key,A.plan),Fl(A.license_key,A.plan||"free")):p(A.error||"Could not load license"))}).catch(A=>{k||p(A.message||"Failed to load license")}).finally(()=>{k||x(!1)}),()=>{k=!0}},[t,l,s]);const v=()=>{l&&(navigator.clipboard.writeText(l),n(!0),setTimeout(()=>n(!1),2e3))};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-[#1E3A8A] via-[#0F2847] to-[#1E3A8A]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-32 pb-20",children:e.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(_.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},children:[e.jsx(le,{size:80,className:"text-green-500 mx-auto mb-6"}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-white mb-4",children:"Welcome to xRepl.ai!"}),e.jsxs("p",{className:"text-xl text-white/80 mb-8",children:["Your subscription is now active."," ",m?"Loading your license key…":l?"Your license key is below.":y?null:"Check your email for your license key and next steps to get started."]}),y&&e.jsxs("p",{className:"text-amber-300 mb-4",role:"alert",children:[y," You can find your license key in your account or email."]}),l&&e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6 mb-6 border border-white/20",children:[e.jsx("h2",{className:"text-xl font-semibold text-white mb-3",children:"Your License Key"}),e.jsxs("div",{className:"bg-white/5 rounded-lg p-4 border border-white/10 flex items-center justify-between gap-4",children:[e.jsx("code",{className:"text-lg font-mono font-bold text-[#60A5FA] flex-1 text-center break-all",children:l}),e.jsxs("button",{onClick:v,className:"flex-shrink-0 px-4 py-2 bg-[#60A5FA] hover:bg-[#60A5FA]/90 text-white rounded-lg transition-all flex items-center gap-2",title:"Copy to clipboard",children:[e.jsx(zt,{size:18}),a?"Copied!":"Copy"]})]}),e.jsx("p",{className:"text-sm text-white/60 mt-3 text-center",children:w?"This key has been automatically sent to your xReplAI extension!":"This key has also been sent to your email address."})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6 mb-8 border border-white/20",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"What's Next?"}),e.jsxs("ul",{className:"text-left text-white/80 space-y-3",children:[l&&e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(le,{size:20,className:"text-green-400 mt-1 flex-shrink-0"}),e.jsxs("button",{type:"button",onClick:v,className:"text-left hover:bg-white/10 rounded-lg px-2 py-1 -mx-2 transition-colors flex items-center gap-2 flex-wrap group",title:"Click to copy",children:[e.jsx("code",{className:"text-[#60A5FA] font-mono text-sm break-all",children:l}),e.jsx(zt,{size:16,className:"text-white/60 group-hover:text-[#60A5FA] flex-shrink-0"})]})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(le,{size:20,className:"text-green-400 mt-1 flex-shrink-0"}),e.jsx("span",{children:"Install the xRepl.ai Chrome extension from the Chrome Web Store"})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(le,{size:20,className:"text-green-400 mt-1 flex-shrink-0"}),e.jsx("span",{children:w?"Your extension has been activated automatically — you're all set!":"Open the extension and enter your license key when prompted"})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(le,{size:20,className:"text-green-400 mt-1 flex-shrink-0"}),e.jsx("span",{children:"Start drafting personalized email replies with AI"})]})]})]}),j&&e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6 mb-8 border border-white/20",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[e.jsx(Rm,{size:20,className:"text-[#60A5FA]"}),e.jsx("h2",{className:"text-xl font-semibold text-white",children:"Share xReplAI, Earn Rewards"})]}),e.jsx("p",{className:"text-sm text-white/70 mb-4",children:"Share your referral link with colleagues. They get 60 free generations (instead of 30), and you earn a free month of Pro for every 3 paid conversions."}),e.jsxs("div",{className:"bg-white/5 rounded-lg p-3 border border-white/10 flex items-center justify-between gap-3",children:[e.jsxs("code",{className:"text-sm font-mono text-[#60A5FA] flex-1 text-center truncate",children:["xrepl.ai/?ref=",j]}),e.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(`https://xrepl.ai/?ref=${j}`),i(!0),g0(),setTimeout(()=>i(!1),2e3)},className:"flex-shrink-0 px-3 py-1.5 bg-[#60A5FA] hover:bg-[#60A5FA]/90 text-white rounded-lg transition-all text-sm flex items-center gap-1.5",children:[e.jsx(zt,{size:14}),o?"Copied!":"Copy"]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx("a",{href:"https://chromewebstore.google.com/detail/aeemmefmpkgmokecemoedojagcecabmj",target:"_blank",rel:"noopener noreferrer",onClick:()=>x0("success_page"),className:"inline-flex items-center justify-center px-8 py-4 bg-[#60A5FA] text-white font-semibold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg",children:"Download Extension"}),e.jsx("a",{href:"/",className:"inline-flex items-center justify-center px-8 py-4 bg-white/20 text-white font-semibold rounded-lg hover:bg-white/30 transition-all border border-white/30",children:"Back to Home"})]})]})})}),e.jsx(Ve,{})]})}function d2(){return h.useEffect(()=>{document.title="xReplAI - Privacy Policy"},[]),e.jsxs("div",{className:"min-h-screen bg-[#0A1628] dark:bg-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"max-w-4xl mx-auto px-6 py-24",children:e.jsxs("div",{className:"prose prose-invert max-w-none",children:[e.jsx(Pe,{to:"/",className:"text-[#60A5FA] hover:text-[#3B82F6] mb-8 inl
397ine-block",children:"← Back to Home"}),e.jsx("h1",{className:"text-4xl font-bold text-white mb-8",children:"Privacy Policy"}),e.jsx("p",{className:"text-gray-400 mb-8",children:"Last updated: February 25, 2026"}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"1. Introduction"}),e.jsx("p",{className:"text-gray-300 mb-4",children:'Welcome to xRepl.ai ("we," "our," or "us"). We respect your privacy and are committed to protecting your personal data. This privacy policy explains how we collect, use, and safeguard your information when you use our Chrome extension and services.'})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"2. Information We Collect"}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"2.1 Information You Provide"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Account information (email address, name)"}),e.jsx("li",{children:"Email content that you choose to process with our AI"}),e.jsx("li",{children:"User preferences and settings"})]}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"2.2 Automatically Collected Information"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Usage data (features used, frequency of use)"}),e.jsx("li",{children:"Browser type and version"}),e.jsx("li",{children:"Technical data (IP address, device information)"}),e.jsx("li",{children:"Error logs and performance data"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"3. How We Use Your Information"}),e.jsx("p",{className:"text-gray-300 mb-2",children:"We use your information to:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Provide and improve our email drafting service"}),e.jsx("li",{children:"Generate AI-powered email responses"}),e.jsx("li",{children:"Customize your experience"}),e.jsx("li",{children:"Send service-related communications"}),e.jsx("li",{children:"Analyze usage patterns to improve our service"}),e.jsx("li",{children:"Ensure security and prevent fraud"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"4. Data Processing and AI"}),e.jsxs("p",{className:"text-gray-300 mb-4",children:["When you click the xReplAI button in Gmail or LinkedIn, the extension reads the current email thread or message content (subject line, message body, and sender information) and sends it to our API server for processing. ",e.jsx("strong",{className:"text-white",children:"The extension never reads your emails passively or in the background"})," — it only accesses email content when you explicitly initiate a generation."]}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Your email content is forwarded from our API to your selected third-party AI provider to generate draft responses. We support the following providers:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"OpenAI"})," (GPT-4o, GPT-4o-mini) — governed by ",e.jsx("a",{href:"https://openai.com/policies/privacy-policy",className:"text-[#60A5FA] hover:text-[#3B82F6]",target:"_blank",rel:"noopener noreferrer",children:"OpenAI's Privacy Policy"})]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"xAI"})," (Grok) — governed by ",e.jsx("a",{href:"https://x.ai/legal/privacy-policy",className:"text-[#60A5FA] hover:text-[#3B82F6]",target:"_blank",rel:"noopener noreferrer",children:"xAI's Privacy Policy"})]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"Anthropic"})," (Claude) — governed by ",e.jsx("a",{href:"https://www.anthropic.com/privacy",className:"text-[#60A5FA] hover:text-[#3B82F6]",target:"_blank",rel:"noopener noreferrer",children:"Anthropic's Privacy Policy"})]})]}),e.jsxs("p",{className:"text-gray-300 mb-4",children:["Email content is processed in real-time and is ",e.jsx("strong",{className:"text-white",children:"not stored on our servers"})," after the AI response is generated. We do not use your email content to train AI models. We retain only anonymized usage counts (number of generations, token usage) for billing and rate-limiting purposes."]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"5. Data Sharing and Disclosure"}),e.jsx("p",{className:"text-gray-300 mb-2",children:"We do not sell your personal data. We may share your information with:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"AI service providers"})," (OpenAI, xAI, or Anthropic — depending on your selected model) to generate email draft responses"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"Supabase"})," for database hosting and authentication"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"Vercel"}
397)," for API hosting and infrastructure"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"Stripe"})," for payment processing (we never see or store your full card details)"]}),e.jsx("li",{children:"Legal authorities when required by law"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"6. Data Security"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We implement industry-standard security measures to protect your data, including encryption in transit and at rest, regular security audits, and access controls. However, no method of transmission over the internet is 100% secure."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"7. Your Rights"}),e.jsx("p",{className:"text-gray-300 mb-2",children:"You have the right to:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Access your personal data"}),e.jsx("li",{children:"Correct inaccurate data"}),e.jsx("li",{children:"Request deletion of your data"}),e.jsx("li",{children:"Object to data processing"}),e.jsx("li",{children:"Export your data"}),e.jsx("li",{children:"Withdraw consent at any time"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"8. Cookies and Tracking"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Our website (xrepl.ai) uses cookies for authentication sessions and analytics. The Chrome extension itself does not use cookies — it stores user preferences (license key, selected AI model, generation settings) in Chrome's built-in extension storage. You can control cookie preferences for the website through your browser settings."}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We use third-party analytics and visitor identification services to understand how visitors interact with our website:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"Google Analytics"})," — to analyze website traffic and usage patterns"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-white",children:"RB2B"})," — to identify business visitors by matching IP addresses to company information. This service may identify your company name, industry, and approximate location based on your IP address. RB2B operates primarily on US-based traffic and does not collect personal information from EU visitors. For more information, see ",e.jsx("a",{href:"https://www.rb2b.com/privacy",className:"text-[#60A5FA] hover:text-[#3B82F6]",target:"_blank",rel:"noopener noreferrer",children:"RB2B's Privacy Policy"}),"."]})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"9. Data Retention"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We retain your personal data only as long as necessary to provide our services and comply with legal obligations. Account data is deleted within 30 days of account closure. Usage data may be retained in anonymized form for analytics."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"10. International Data Transfers"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Your data may be transferred to and processed in countries other than your own. We ensure appropriate safeguards are in place for such transfers in compliance with applicable data protection laws."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"11. Children's Privacy"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Our service is not intended for users under 13 years of age. We do not knowingly collect personal information from children under 13. If you believe we have collected such information, please contact us immediately."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"12. Changes to This Policy"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We may update this privacy policy from time to time. We will notify you of significant changes via email or through our service. Your continued use after such changes constitutes acceptance of the updated policy."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"13. Contact Us"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"If you have questions about this privacy policy or our data practices, please contact us at:"}),e.jsxs("p",{className:"text-gray-300",children:["Email: ",e.jsx("a",{href:"mailto:[email protected]",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"[email protected]"}),e.jsx("br",{}),"Website: ",e.jsx("a",{href:"https://www.xrepl.ai",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"www.xrepl.ai"})]})]})]})}),e.jsx(Ve,{})]})}function u2(){return h.useEffect(()=>{document.title="xReplAI - Terms of Service"},[]),e.jsxs("div",{className:"min-h-screen bg-[#0A1628] dark:bg-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"max-w-4xl mx-auto px-6 py-24",children:e.jsxs("div",{className:"prose prose-invert max-w-none",children:[e.jsx(Pe,{to:"/",className:"text-[#60A5FA] hover:text-[#3B82F6] mb-8 inl
397ine-block",children:"← Back to Home"}),e.jsx("h1",{className:"text-4xl font-bold text-white mb-8",children:"Terms of Service"}),e.jsx("p",{className:"text-gray-400 mb-8",children:"Last updated: February 4, 2026"}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"1. Acceptance of Terms"}),e.jsx("p",{className:"text-gray-300 mb-4",children:'By accessing and using xRepl.ai ("Service"), you accept and agree to be bound by these Terms of Service ("Terms"). If you do not agree to these Terms, please do not use our Service.'})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"2. Description of Service"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"xRepl.ai is an AI-powered Chrome extension that helps users draft smart, personalized email replies for Gmail and LinkedIn. The Service uses artificial intelligence to analyze email content and generate appropriate responses."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"3. User Accounts"}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3.1 Account Creation"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You must create an account to use certain features of the Service. You agree to provide accurate, current, and complete information during registration and to update such information to keep it accurate, current, and complete."}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3.2 Account Security"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You are responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account. You agree to notify us immediately of any unauthorized access to or use of your account."}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3.3 Age Requirement"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You must be at least 13 years old to use the Service. If you are under 18, you must have permission from a parent or guardian."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"4. Acceptable Use"}),e.jsx("p",{className:"text-gray-300 mb-2",children:"You agree NOT to use the Service to:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Violate any applicable laws or regulations"}),e.jsx("li",{children:"Send spam, phishing emails, or malicious content"}),e.jsx("li",{children:"Impersonate others or misrepresent your affiliation"}),e.jsx("li",{children:"Interfere with or disrupt the Service or servers"}),e.jsx("li",{children:"Attempt to gain unauthorized access to systems"}),e.jsx("li",{children:"Use automated systems to access the Service excessively"}),e.jsx("li",{children:"Reverse engineer or attempt to extract source code"}),e.jsx("li",{children:"Remove or modify any proprietary notices"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"5. Subscription and Payments"}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"5.
3971 Subscription Plans"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"The Service offers various subscription plans with different features and pricing. Current pricing is available on our website and may be changed with notice."}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"5.2 Billing"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Subscriptions are billed in advance on a monthly or annual basis. You authorize us to charge your payment method for all fees incurred. All fees are non-refundable except as required by law."}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"5.3 Cancellation"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You may cancel your subscription at any time. Cancellation takes effect at the end of the current billing period. You will retain access to paid features until the end of your billing period."}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"5.4 Free Trial"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We may offer a free trial period. At the end of the trial, your subscription will automatically convert to a paid subscription unless you cancel before the trial ends."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"6. Intellectual Property"}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"6.1 Our IP"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"The Service, including its original content, features, and functionality, is owned by xRepl.ai and is protected by international copyright, trademark, patent, trade secret, and other intellectual property laws."}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"6.2 Your Content"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You retain ownership of email content you process through the Service. By using the Service, you grant us a limited license to process your content solely to provide the Service to you."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"7. AI-Generated Content"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Email responses generated by our AI are suggestions only. You are solely responsible for reviewing, editing, and deciding whether to send AI-generated content. We do not guarantee the accuracy, appropriateness, or quality of AI-generated content."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"8. Disclaimer of Warranties"}),e.jsx("p",{className:"text-gray-300 mb-4",children:'THE SERVICE IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. WE DO NOT WARRANT THAT THE SERVICE WILL BE UNINTERRUPTED, SECURE, OR ERROR-FREE.'})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"9. Limitation of Liability"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"TO THE MAXIMUM EXTENT PERMITTED BY LAW, xRepl.ai SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR ANY LOSS OF PROFITS OR REVENUES, WHETHER INCURRED DIRECTLY OR INDIRECTLY, OR ANY LOSS OF DATA, USE, GOODWILL, OR OTHER INTANGIBLE LOSSES."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"10. Indemnification"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You agree to indemnify and hold harmless xRepl.ai and its officers, directors, employees, and agents from any claims, damages, losses, liabilities, and expenses arising out of your use of the Service or violation of these Terms."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"11. Termination"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We may terminate or suspend your account and access to the Service immediately, without prior notice or liability, for any reason, including breach of these Terms. Upon termination, your right to use the Service will cease immediately."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"12. Changes to Terms"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"We reserve the right to modify these Terms at any time. We will notify users of material changes via email or through the Service. Your continued use of the Service after such modifications constitutes acceptance of the updated Terms."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"13. Governing Law"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"These Terms shall be governed by and construed in accordance with the laws of the State of Delaware, United States, without regard to its conflict of law provisions."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"14. Dispute Resolution"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Any dispute arising from these Terms shall be resolved through binding arbitration in accordance with the rules of the American Arbitration Association (AAA). You waive any right to participate in a class action lawsuit or class-wide arbitration."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"15. Contact Information"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"For questions about these Terms, please contact us at:"}),e.jsxs("p",{className:"text-gray-300",children:["Email: ",e.jsx("a",{href:"mailto:[email protected]",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"[email protected]"}),e.jsx("br",{}),"Website: ",e.jsx("a",{href:"https://www.xrepl.ai",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"www.xrepl.ai"})]})]})]})}),e.jsx(Ve,{})]})}function h2(){return h.useEffect(()=>{document.title="xReplAI - Cookie Policy"},[]),e.jsxs("div",{className:"min-h-screen bg-[#0A1628] dark:bg-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"max-w-4xl mx-auto px-6 py-24",children:e.jsxs("div",{className:"prose prose-invert max-w-none",children:[e.jsx(Pe,{to:"/",className:"text-[#60A5FA] hover:text-[#3B82F6] mb-8 inl
397ine-block",children:"← Back to Home"}),e.jsx("h1",{className:"text-4xl font-bold text-white mb-8",children:"Cookie Policy"}),e.jsx("p",{className:"text-gray-400 mb-8",children:"Last updated: February 4, 2026"}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"1. What Are Cookies"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Cookies are small text files that are placed on your computer or mobile device when you visit a website. They are widely used to make websites work more efficiently and provide information to website owners."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"2. How We Use Cookies"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"xRepl.ai uses cookies and similar tracking technologies to enhance your experience, analyze usage patterns, and improve our services. We use both session cookies (which expire when you close your browser) and persistent cookies (which stay on your device for a set period or until you delete them)."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"3. Types of Cookies We Use"}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3.1 Strictly Necessary Cookies"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"These cookies are essential for the Service to function properly. They enable core functionality such as security, authentication, and remembering your preferences. The Service cannot function properly without these cookies."}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Authentication and session management"}),e.jsx("li",{children:"Security and fraud prevention"}),e.jsx("li",{children:"Load balancing"})]}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3.2 Performance and Analytics Cookies"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"These cookies collect information about how visitors use our Service, such as which pages are visited most often. This information helps us improve how the Service works."}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Google Analytics (usage statistics and visitor behavior)"}),e.jsx("li",{children:"Error tracking and debugging"}),e.jsx("li",{children:"Performance monitoring"})]}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"3.3 Functional Cookies"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"These cookies allow the Service to remember choices you make (such as your user preferences) and provide enhanced, personalized features."}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Theme preferences (dark/light mode)"}),e.jsx("li",{children:"Language preferences"}),e.jsx("li",{children:"User interface customization"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"4. Third-Party Cookies"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"In addition to our own cookies, we may use third-party cookies for service functionality. These third parties include:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Supabase:"})," For user authentication and session management"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Stripe:"})," For secure payment processing during checkout"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Vercel:"})," For website hosting and performance analytics"]})]}),e.jsx("p",{className:"text-gray-300 mb-4",children:"These third parties may also use cookies in accordance with their own privacy policies. We encourage you to review their policies."})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"5. Chrome Extension Storage"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"As a Chrome extension, xRepl.ai uses browser local storage to save your preferences and settings. This data is stored locally on your device and is not transmitted to our servers unless necessary for service functionality."}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"User preferences and settings"}),e.jsx("li",{children:"Authentication tokens"}),e.jsx("li",{children:"Temporary draft content"}),e.jsx("li",{children:"Usage statistics (optional)"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"6. How to Control Cookies"}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"6.1 Browser Settings"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Most web browsers allow you to control cookies through their settings. You can:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsx("li",{children:"Delete all c
397ookies from your browser"}),e.jsx("li",{children:"Block all cookies from being set"}),e.jsx("li",{children:"Allow only first-party cookies"}),e.jsx("li",{children:"Receive a notification before a cookie is set"})]}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"6.2 Chrome Extension"}),e.jsxs("p",{className:"text-gray-300 mb-4",children:["The xRepl.ai Chrome extension does not use cookies. It stores user preferences (license key, selected AI model, generation settings) using Chrome's built-in extension storage APIs (",e.jsx("code",{className:"text-[#60A5FA]",children:"chrome.storage.sync"})," and ",e.jsx("code",{className:"text-[#60A5FA]",children:"chrome.storage.local"}),"). You can clear this data by uninstalling the extension or clearing extension data in Chrome settings."]}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-3",children:"6.3 Opt-Out Options"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"You can opt out of certain types of tracking:"}),e.jsx("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:e.jsxs("li",{children:[e.jsx("strong",{children:"Vercel Analytics:"})," Vercel's analytics respect browser Do Not Track settings by default"]})}),e.jsxs("p",{className:"text-gray-300 mb-4 p-4 bg-yellow-900/20 border border-yellow-800 rounded",children:[e.jsx("strong",{children:"Note:"})," Blocking cookies may impact your experience and prevent certain features from working properly."]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"7. Do Not Track Signals"}),e.jsx("p",{className:"text-gray-300 mb-4",children:'Some browsers include a "Do Not Track" (DNT) feature that signals to websites that you do not want to have your online activity tracked. Our Service currently does not respond to DNT signals due to lack of industry-wide standards.'})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"8. Cookie Retention"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Different cookies have different retention periods:"}),e.jsxs("ul",{className:"text-gray-300 mb-4 list-disc pl-6",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Session cookies:"})," Deleted when you close your browser"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Persistent cookies:"})," Remain for a specified period (typically 30 days to 2 years)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Local storage:"})," Persists until manually cleared or the extension is uninstalled"]})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"9. Updates to This Policy"}),e.jsx("p",{className:"text-gray-300 mb-4",children:'We may update this Cookie Policy from time to time to reflect changes in our practices or for legal, operational, or regulatory reasons. We will notify you of any material changes by posting the updated policy on this page with a new "Last updated" date.'})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"10. More Information"}),e.jsxs("p",{className:"text-gray-300 mb-4",children:["For more information about how we collect, use, and protect your data, please review our ",e.jsx(Pe,{to:"/privacy",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"Privacy Policy"}),"."]}),e.jsx("p",{className:"text-gray-300 mb-4",children:"If you have questions about our use of cookies, please contact us at:"}),e.jsxs("p",{className:"text-gray-300",children:["Email: ",e.jsx("a",{href:"mailto:[email protected]",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"[email protected]"}),e.jsx("br",{}),"Website: ",e.jsx("a",{href:"https://www.xrepl.ai",className:"text-[#60A5FA] hover:text-[#3B82F6]",children:"www.xrepl.ai"})]})]}),e.jsxs("section",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-semibold text-white mb-4",children:"11. Cookie List"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Below is a detailed list of cookies we use:"}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"min-w-full text-sm text-gray-300",children:[e.jsx("thead",{className:"bg-blue-900/30 border-b border-blue-800",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-3 text-left text-white",children:"Cookie Name"}),e.jsx("th",{className:"px-4 py-3 text-left text-white",children:"Purpose"}),e.jsx("th",{className:"px-4 py-3 text-left text-white",children:"Duration"}),e.jsx("th",{className:"px-4 py-3 text-left text-white",children:"Type"})]})}),e.jsxs("tbody",{className:"divide-y divide-blue-900/20",children:[e.jsxs("tr",{children:[e.jsx("td",{className:"px-4 py-3",children:"sb-*-auth-token"}),e.jsx("td",{className:"px-4 py-3",children:"Supabase user authentication session"}),e.jsx("td",{className:"px-4 py-3",children:"Session / 1 week"}),e.jsx("td",{className:"px-4 py-3",children:"Strictly Necessary"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"px-4 py-3",children:"__str
397ipe_mid"}),e.jsx("td",{className:"px-4 py-3",children:"Stripe fraud prevention during checkout"}),e.jsx("td",{className:"px-4 py-3",children:"1 year"}),e.jsx("td",{className:"px-4 py-3",children:"Strictly Necessary"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"px-4 py-3",children:"_vercel_jwt"}),e.jsx("td",{className:"px-4 py-3",children:"Vercel deployment session"}),e.jsx("td",{className:"px-4 py-3",children:"Session"}),e.jsx("td",{className:"px-4 py-3",children:"Performance"})]})]})]})})]})]})}),e.jsx(Ve,{})]})}function m2(){var oi,li,ci,di,ui,hi;h.useEffect(()=>{document.title="xReplAI - Admin"},[]);const t=Ze(),{isMaintenanceMode:s,setMaintenanceMode:r,isLoading:a}=dn(),[n,o]=h.useState(!0),[i,l]=h.useState(null),[c,u]=h.useState("app-password"),[d,m]=h.useState(""),[x,y]=h.useState(""),[p,j]=h.useState(""),[g,w]=h.useState(!1),[v,b]=h.useState(!1),[k,A]=h.useState("app"),[E,M]=h.useState([]),[T,R]=h.useState([]),[$,z]=h.useState(null),[te,B]=h.useState([]),[W,q]=h.useState([]),[he,J]=h.useState([]),[H,Z]=h.useState(!1),[Y,de]=h.useState(null),[Te,me]=h.useState(null),[se,fe]=h.useState(""),[Ke,Ie]=h.useState(""),[Be,_e]=h.useState(null),[yt,ke]=h.useState(!1),[N,I]=h.useState(null),[F,re]=h.useState(null),[we,ne]=h.useState(null),[tt,xe]=h.useState(""),[ve,Re]=h.useState(!1),[je,C]=h.useState(null),[ie,ee]=h.useState(null),[ae,ye]=h.useState("settings"),[Ae,Ct]=h.useState("users"),[Xe,bt]=h.useState("today"),[Gt,Wr]=h.useState([]),[zs,P]=h.useState([]),[K,G]=h.useState(null),[Me,Et]=h.useState(null),[ct,qe]=h.useState(null),[Ot,Fe]=h.useState(!1),[Ue,ls]=h.useState(null),[dt,Ws]=h.useState(null),[zd,Jn]=h.useState(null),[Xn,Qn]=h.useState(null),[ei,Pt]=h.useState(null),[Ht,Kt]=h.useState(!1),[Gs,Wd]=h.useState(""),[Hs,Gd]=h.useState(""),[Gr,Hd]=h.useState("day"),[Ks,Kd]=h.useState(""),[qs,qd]=h.useState(""),[Ys,ti]=h.useState(1),[Zs,si]=h.useState(1),ri=h.useCallback(async()=>{o(!0);try{const f=await X(L.ADMIN_ME);l(f.admin)}catch{l(null)}finally{o(!1)}},[]);h.useEffect(()=>{ri()},[ri]);const Yd=async f=>{f.preventDefault(),j(""),w(!0);try{if(c==="app-password"){const S=await X(L.ADMIN_LOGIN_APP_PASSWORD,{method:"POST",body:JSON.stringify({password:d})});S.success&&S.admin&&(l(S.admin),m(""))}else{const S=await X(L.ADMIN_LOGIN,{method:"POST",body:JSON.stringify({email:x.trim(),password:d})});S.success&&S.admin&&(l(S.admin),y(""),m(""))}}catch(S){const U=S instanceof Error?S.message:"Login failed";U.includes("not configured")||U.includes("503")?(j("App password not set. Use admin account (email + password) below."),u("email-password")):j(U)}finally{w(!1)}},Zd=async()=>{try{await X(L.ADMIN_LOGOUT,{method:"POST"})}catch{}l(null)},Jd=async()=>{b(!0);try{await r(!s)}catch(f){console.error("Failed to toggle maintenance mode:",f)}finally{b(!1)}},Hr=h.useCallback(async()=>{Z(!0);try{const f=await X(L.ADMIN_SETTINGS),S=Array.isArray(f)?f:[];M(S.map(U=>({key:String(U.key),category:String(U.category),value:U.value,description:U.description,data_type:String(U.data_type||"string")})))}catch(f){console.error("Failed to fetch settings",f)}finally{Z(!1)}},[]),Kr=h.useCallback(async()=>{Z(!0);try{const[f,S]=await Promise.all([X(L.ADMIN_PLANS),X(L.ADMIN_PLANS_OPTIONS)]);R(f.plans||[]),z({providers:S.providers||[],models_by_provider:S.models_by_provider||{}})}catch(f){console.error("Failed to fetch plans",f)}finally{Z(!1)}},[]),qr=h.useCallback(async()=>{Z(!0);try{const f=await X(L.ADMIN_PACKAGES);B(f.packages||[])}catch(f){console.error("Failed to fetch packages",f)}finally{Z(!1)}},[]),ai=h.useCallback(async()=>{Z(!0);try{const f=await X(L.ADMIN_PACKAGE_ELIGIBILITY);q(f.eligibility||[])}catch(f){console.error("Failed to fetch eligibility",f)}finally{Z(!1)}},[]),Js=h.useCallback(async()=>{Z(!0);try{const f=await X(L.ADMIN_ADMIN_USERS);J(f.admin_users||[])}catch(f){console.error("Failed to fetch admin users",f)}finally{Z(!1)}},[]),qt=h.useCallback(async()=>{ke(!0);try{const f=await X(L.ADMIN_AI_INTEGRATION);I({cron_sync_enabled:f.cron_sync_enabled??!1,providers:f.providers||[]})}catch(f){console.error("Failed to fetch AI integration",f)}finally{ke(!1)}},[]),Xd=async f=>{re(f);try{await X(L.ADMIN_PROVIDER_SYNC_MODELS(f),{method:"POST"}),await qt()}catch(S){console.error("Failed to sync provider models",S)}finally{re(null)}},Qd=async f=>{try{await X(L.ADMIN_AI_INTEGRATION,{method:"PATCH",body:JSON.stringify({cron_sync_enabled:f})}),I(S=>S?{...S,cron_sync_enabled:f}:null)}catch(S){console.error("Failed to update cron sync",S)}},eu=async f=>{const S=tt.trim();if(S){Re(!0);try{await X(L.ADMIN_PROVIDER_API_KEY(f),{method:"PUT",body:JSON.stringify({api_key:S})}),ne(null),xe(""),await qt()}catch(U){console.error("Failed to save API key",U)}finally{Re(!1)}}},tu=()=>{ne(null),xe("")},su=async(f,S)=>{C(f);try{await X(L.ADMIN_MODEL_ID(f),{method:"PATCH",body:JSON.stringify({active:S})}),I(U=>U&&{...U,providers:U.providers.map(oe=>({...oe,models:oe.models.map(xt=>xt.id===f?{...xt,active:S}:xt),model_count:oe.models.reduce((xt,tr)=>xt+(tr.id===f?S?1:0:tr.active?1:0),0)}))})}catch(U){console.error("Failed to update model",U)}finally{C(null)}},ru=async f=>{var U;const S=((U=f.models)==null?void 0:U.filter(oe=>!oe.active))??[];if(S.length!==0){ee(f.id);try{await Promise.all(S.map(oe=>X(L.ADMIN_MODEL_ID(oe.id),{method:"PATCH",body:JSON.stringify({active:!0})}
397))),await qt()}catch(oe){console.error("Failed to select all models",oe)}finally{ee(null)}}},au=async f=>{var U;const S=((U=f.models)==null?void 0:U.filter(oe=>oe.active))??[];if(S.length!==0){ee(f.id);try{await Promise.all(S.map(oe=>X(L.ADMIN_MODEL_ID(oe.id),{method:"PATCH",body:JSON.stringify({active:!1})}))),await qt()}catch(oe){console.error("Failed to deselect all models",oe)}finally{ee(null)}}};h.useEffect(()=>{i&&(k==="app"?Hr():k==="plans"?Kr():k==="packages"?qr():k==="eligibility"?ai():k==="admins"?Js():k==="ai-integration"&&qt())},[i,k,Hr,Kr,qr,ai,Js,qt]);const Yr=h.useCallback(async()=>{Fe(!0);try{const f=await X(`${L.ADMIN_USERS}?page=${Ys}&limit=50`);Wr(f.users||[])}catch(f){console.error("Failed to fetch users",f)}finally{Fe(!1)}},[Ys]),Xs=h.useCallback(async()=>{Fe(!0);try{const f=await X(`${L.ADMIN_LICENSES}?page=${Zs}&limit=50`);P(f.licenses||[])}catch(f){console.error("Failed to fetch licenses",f)}finally{Fe(!1)}},[Zs]),ni=h.useCallback(async()=>{Fe(!0);try{const f=await X(L.ADMIN_USAGE_TODAY);G(f)}catch(f){console.error("Failed to fetch usage today",f)}finally{Fe(!1)}},[]),nu=h.useCallback(async()=>{Fe(!0);try{const f=new URLSearchParams;Gs&&f.set("from",Gs),Hs&&f.set("to",Hs),f.set("limit","100");const S=await X(`${L.ADMIN_USAGE_RANGE}?${f}`);Et(S)}catch(f){console.error("Failed to fetch usage range",f)}finally{Fe(!1)}},[Gs,Hs]),iu=h.useCallback(async()=>{Fe(!0);try{const f=new URLSearchParams;f.set("granularity",Gr),Ks&&f.set("from",Ks),qs&&f.set("to",qs);const S=await X(`${L.ADMIN_USAGE_AGGREGATE}?${f}`);qe(S)}catch(f){console.error("Failed to fetch usage aggregate",f)}finally{Fe(!1)}},[Gr,Ks,qs]);h.useEffect(()=>{!i||ae!=="administration"||(Ae==="users"?Yr():Ae==="licenses"?Xs():Ae==="usage"&&Xe==="today"&&ni())},[i,ae,Ae,Xe,Yr,Xs,ni]);const ou=async f=>{ls(f),Fe(!0);try{const S=await X(L.ADMIN_USERS_ID(f));Ws(S)}catch(S){console.error("Failed to fetch user detail",S)}finally{Fe(!1)}},lu=async f=>{Jn(f),Fe(!0);try{const S=await X(L.ADMIN_LICENSES_ID(f));Qn(S)}catch(S){console.error("Failed to fetch license detail",S)}finally{Fe(!1)}},Qs=async()=>{if(Ue)try{const f=await X(L.ADMIN_USERS_ID(Ue));Ws(f)}catch(f){console.error("Failed to refetch user detail",f)}},cu=async f=>{Pt(f);try{await X(L.ADMIN_LICENSES_ID(f),{method:"PATCH",body:JSON.stringify({status:"inactive"})}),await Qs()}catch(S){console.error("Failed to deactivate license",S)}finally{Pt(null)}},du=async f=>{if(confirm("Permanently delete this license? This cannot be undone.")){Pt(f);try{await X(L.ADMIN_LICENSES_ID(f),{method:"DELETE"}),await Qs()}catch(S){console.error("Failed to delete license",S)}finally{Pt(null)}}},uu=async f=>{Pt(f);try{await X(L.ADMIN_LICENSES_ID(f),{method:"PATCH",body:JSON.stringify({status:"inactive"})}),await Xs()}catch(S){console.error("Failed to deactivate license",S)}finally{Pt(null)}},hu=async f=>{if(confirm("Permanently delete this license? This cannot be undone.")){Pt(f);try{await X(L.ADMIN_LICENSES_ID(f),{method:"DELETE"}),await Xs()}catch(S){console.error("Failed to delete license",S)}finally{Pt(null)}}},mu=async()=>{if(Ue){Kt(!0);try{await X(L.ADMIN_USERS_ID(Ue),{method:"PATCH",body:JSON.stringify({locked:!0})}),await Qs()}catch(f){console.error("Failed to lock account",f)}finally{Kt(!1)}}},xu=async()=>{if(Ue){Kt(!0);try{await X(L.ADMIN_USERS_ID(Ue),{method:"PATCH",body:JSON.stringify({locked:!1})}),await Qs()}catch(f){console.error("Failed to unlock account",f)}finally{Kt(!1)}}},pu=async()=>{if(Ue&&confirm("Permanently delete this user and all their licenses? This cannot be undone.")){Kt(!0);try{await X(L.ADMIN_USERS_ID(Ue),{method:"DELETE"}),ls(null),Ws(null),await Yr()}catch(f){console.error("Failed to delete account",f)}finally{Kt(!1)}}},ii=async(f,S)=>{try{await X(L.ADMIN_SETTINGS,{method:"PUT",body:JSON.stringify({key:f,value:S})}),await Hr()}catch(U){console.error("Failed to update setting",U)}},gu=async(f,S)=>{try{await X(L.ADMIN_PLANS_ID(f),{method:"PUT",body:JSON.stringify(S)}),de(null),await Kr()}catch(U){console.error("Failed to update plan",U)}},fu=async(f,S)=>{try{await X(L.ADMIN_PACKAGES_ID(f),{method:"PUT",body:JSON.stringify(S)}),me(null),await qr()}catch(U){console.error("Failed to update package",U)}},yu=async f=>{if(f.preventDefault(),!!se.trim())try{const S=await X(L.ADMIN_ADMIN_USERS,{method:"POST",body:JSON.stringify({email:se.trim(),name:Ke.trim()||void 0})});_e(S.api_key||null),fe(""),Ie(""),await Js()}catch(S){console.error("Failed to create admin",S)}},bu=async f=>{if(confirm(`Revoke admin ${f}?`))try{await X(L.ADMIN_ADMIN_USERS_REVOKE,{method:"POST",body:JSON.stringify({email:f})}),await Js()}catch(S){console.error("Failed to revoke admin",S)}},er="bg-[#0F1F3D] border border-[#1E3A8A]/30 rounded-2xl p-6",Ye="w-full px-4 py-3 bg-[#0A1628] border border-[#1E3A8A] rounded-lg focus:ring-2 focus:ring-[#60A5FA] outline-none text-white placeholder-gray-500",vt="px-4 py-2 rounded-lg bg-gradient-to-r from-[#60A5FA] to-[#1E3A8A] text-white font-medium hover:opacity-90",Qe="px-4 py-2 rounded-lg border border-[#1E3A8A] text-[#60A5FA] hover:bg-[#1E3A8A]/20";if(n)return e.jsx("div",{className:"min-h-screen bg-[#0A1628] flex items-center justify-center p-4",children:e.jsx("div",{className:"text-gray-400",children:"Loading..."})});if(!i)return e.jsx("div",{className:"min-h-screen bg-[#0A1628] flex items-center justify-center p-4",children:e.jsx("div",{className:"w-full max-w-md",children:e.jsxs("div",{className:er,children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-gradient-to-br from-[#60A5FA] to-[#1E3A8A] rounded-full mb-4",children:e.jsx(Gl,{className:"text-white",size:28})}),e.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Admin Access"}),e.jsx("p",{className:"text-gray-400",children:"Sign in with your admin email and password"})]}),e.jsxs("form",{onSubmit:Yd,className:"space-y-4",children:[c==="app-password"?e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"App password"}),e.jsx("input",{type:"password",value:d,onChange:f=>m(f.target.value),className:Ye,placeholder:"Enter app password",required:!0}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Set ADMIN_APP_PASSWORD in your API environment."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Email"}),e.jsx("input",{type:"email",value:x,onChange:f=>y(f.target.value),className:Ye,placeholder:"[email protected]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Password"}),e.jsx("input",{type:"password",value:d,onChange:f=>m(f.target.value),className:Ye,placeholder:"Password",required:!0})]})]}),p&&e.jsx("p",{className:"text-sm text-red-400",children:p}),e.jsx("button",{type:"submit",disabled:g,className:`w-full py-3 ${vt}`,children:g?"Signing in...":"Sign in"}),c==="email-password"&&e.jsx("button",{type:"button",onClick:()=>{u("app-password"),j("")},className:"w-full text-sm text-gray-400 hover:text-white",children:"Use app password instead"})]})]})})});const vu=[{id:"app",label:"App Settings",icon:Om},{id:"plans",label:"Plans",icon:rm},{id:"packages",label:"Packages",icon:kr},{id:"eligibility",label:"Package Eligibility",icon:nm},{id:"admins",label:"Admin Users",icon:Ps},{id:"ai-integration",label:"AI Integration",icon:H0}];return e.jsx("div",{className:"min-h-screen bg-[#0A1628] p-4 sm:p-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 mb-8",children:[e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>t("/"),className:"text-[#60A5FA] hover:text-[#3B82F6] flex items-center gap-2 mb-2",children:[e.jsx(sa,{size:20}),"Back to Home"]}),e.jsxs("h1",{className:"text-3xl font-bold text-white flex items-center gap-3",children:[e.jsx(Sr,{className:"text-[#60A5FA]",size:32}),"Admin Panel"]}),e.jsx("p",{className:"text-gray-400 mt-1",children:i.email})]}),e.jsxs("button",{onClick:Zd,className:"flex items-center gap-2 text-gray-400 hover:text-white",children:[e.jsx(Ia,{size:18}),"Log out"]})]}),e.jsxs("div",{className:er+" mb-6",children:[e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("h2",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[s?e.jsx(Km,{className:"text-orange-400",size:24}):e.jsx(Gm,{className:"text-green-400",size:24}),"Site Mode"]}),e.jsx("p",{className:"text-gray-400 mb-4",children:s?e.jsx("span",{className:"text-orange-400 font-medium",children:"Maintenance Mode Active"}):e.jsx("span",{className:"text-green-400 font-medium",children:"Live Mode Active"})}),e.jsx("p",{className:"text-sm text-gray-500",children:s?"Visitors can browse the site but all CTAs will show the waitlist modal.":"Site is fully operational with all features enabled."})]}),e.jsx("button",{onClick:Jd,disabled:v,className:`inline-flex h-12 w-24 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-[#60A5FA] focus:ring-offset-2 focus:ring-offset-[#0A1628] disabled:opacity-50 disabled:cursor-not-allowed ${s?"bg-orange-500":"bg-green-500"}`,children:e.jsx("span",{className:`inline-block h-10 w-10 transform rounded-full bg-white shadow-lg transition-transform ${s?"translate-x-1":"translate-x-12"}`,children:v&&e.jsxs("svg",{className:"animate-spin h-5 w-5 text-gray-800 mx-auto mt-2.5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})})]}),e.jsx("div",{className:"mt-6 p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/50",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:`w-3 h-3 rounded-full mt-1 ${s?"bg-orange-400 animate-pulse":"bg-green-400"}`}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-medium mb-1",children:s?"Waitlist Collection Mode":"Full Access Mode"}),e.jsx("p",{className:"text-sm text-gray-400",children:s?"Download buttons, pricing CTAs, and all action buttons will trigger the waitlist modal instead of their normal action.":"All features are enabled and visitors can download the extension and subscribe to plans."})]})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[e.jsxs("div",{className:"bg-[#0F1F3D] border border-[#1E3A8A]/30 rounded-xl p-4",children:[e.jsx("p",{className:"text-gray-400 text-sm mb-1",children:"Current Mode"}),e.jsx("p",{className:"text-2xl font-bold text-white",children:s?"🔧 Maintenance":"✅ Live"})]}),e.jsxs("div",{className:"bg-[#0F1F3D] border border-[#1E3A8A]/30 rounded-xl p-4",children:[e.jsx("p",{className:"text-gray-400 text-sm mb-1",children:"CTAs Behavior"}),e.jsx("p",{className:"text-2xl font-bold text-white",children:s?"📧 Waitlist":"⚡ Active"})]}),e.jsxs("div",{className:"bg-[#0F1F3D] border border-[#1E3A8A]/30 rounded-xl p-4",children:[e.jsx("p",{className:"text-gray-400 text-sm mb-1",children:"Status"}),e.jsx("p",{className:`text-2xl font-bold ${s?"text-orange-400":"text-green-400"}`,children:s?"Pre-Launch":"Operational"})]})]}),e.jsxs("div",{className:"flex gap-2 mb-6",children:[e.jsxs("button",{onClick:()=>ye("settings"),className:`flex items-center gap-2 px-4 py-2 rounded-lg ${ae==="settings"?"bg-[#1E3A8A] text-white":"bg-[#0F1F3D] border border-[#1E3A8A]/30 text-gray-400 hover:text-white"}`,children:[e.jsx(Sr,{size:18}),"Settings"]}),e.jsxs("button",{onClick:()=>ye("administration"),className:`flex items-center gap-2 px-4 py-2 rounded-lg ${ae==="administration"?"bg-[#1E3A8A] text-white":"bg-[#0F1F3D] border border-[#1E3A8A]/30 text-gray-400 hover:text-white"}`,children:[e.jsx(Ai,{size:18}),"Administration"]})]}),e.jsxs("div",{className:"bg-blue-900/20 border border-blue-800 rounded-xl p-6 mb-6",children:[e.jsxs("h3",{className:"text-white font-semibold mb-3 flex items-center gap-2",children:[e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}
397),"Admin Instructions"]}),e.jsxs("ul",{className:"text-sm text-gray-400 space-y-2",children:[e.jsxs("li",{children:["• Toggle to ",e.jsx("strong",{className:"text-orange-400",children:"Maintenance Mode"})," to collect waitlist signups before launch"]}),e.jsxs("li",{children:["• Toggle to ",e.jsx("strong",{className:"text-green-400",children:"Live Mode"})," when ready to allow downloads and subscriptions"]}),e.jsxs("li",{children:["• Access this panel anytime at ",e.jsx("code",{className:"text-[#60A5FA] bg-[#0A1628] px-2 py-1 rounded",children:"/admin"})]}),e.jsx("li",{children:"• Changes take effect immediately across the entire site"})]})]}),ae==="settings"&&e.jsxs("div",{className:er,children:[e.jsx("h2",{className:"text-xl font-semibold text-white mb-4",children:"Settings"}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-6 border-b border-[#1E3A8A]/50 pb-4",children:vu.map(({id:f,label:S,icon:U})=>e.jsxs("button",{onClick:()=>A(f),className:`flex items-center gap-2 px-4 py-2 rounded-lg ${k===f?"bg-[#1E3A8A] text-white":"text-gray-400 hover:bg-[#1E3A8A]/30 hover:text-white"}`,children:[e.jsx(U,{size:18}),S]},f))}),H&&e.jsx("p",{className:"text-gray-400",children:"Loading..."}),k==="app"&&!H&&e.jsxs("div",{className:"space-y-4",children:[E.length===0&&e.jsx("p",{className:"text-gray-400",children:"No settings."}),E.map(f=>e.jsxs("div",{className:"flex flex-wrap items-center gap-4 p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30",children:[e.jsxs("div",{className:"flex-1 min-w-[200px]",children:[e.jsx("p",{className:"text-white font-medium",children:f.key}),f.description&&e.jsx("p",{className:"text-sm text-gray-500",children:f.description})]}),e.jsx("div",{className:"flex items-center gap-2",children:f.data_type==="boolean"?e.jsx("button",{onClick:()=>ii(f.key,!f.value),className:vt,children:String(f.value)==="true"?"On":"Off"}):e.jsx("input",{type:f.data_type==="integer"?"number":"text",defaultValue:String(f.value??""),onBlur:S=>{const U=S.target.value;ii(f.key,f.data_type==="integer"?parseInt(U,10):U)},className:Ye+" max-w-[200px]"})})]},f.key))]}),k==="plans"&&!H&&e.jsx("div",{className:"space-y-4",children:T.map(f=>e.jsx("div",{className:"p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30",children:Y===f.id?e.jsx(x2,{plan:f,planOptions:$,onSave:S=>gu(f.id,S),onCancel:()=>de(null),inputClass:Ye,btnClass:vt,btnSecondary:Qe}):e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-white font-medium",children:[String(f.display_name)," (",String(f.name),")"]}),e.jsxs("p",{className:"text-sm text-gray-400",children:["$",f.price_monthly_usd,"/mo · Active: ",String(f.active)]})]}),e.jsx("button",{onClick:()=>de(f.id),className:Qe,children:"Edit"})]})},String(f.id)))}),k==="packages"&&!H&&e.jsx("div",{className:"space-y-4",children:te.map(f=>e.jsx("div",{className:"p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30",children:Te===f.id?e.jsx(p2,{pkg:f,onSave:S=>fu(f.id,S),onCancel:()=>me(null),inputClass:Ye,btnClass:vt,btnSecondary:Qe}):e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-medium",children:String(f.name)}),e.jsx("p",{className:"text-sm text-gray-400",children:String(f.description)})]}),e.jsx("button",{onClick:()=>me(f.id),className:Qe,children:"Edit"})]})},String(f.id)))}),k==="eligibility"&&!H&&e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-2 pr-4",children:"Package"}),e.jsx("th",{className:"py-2 pr-4",children:"Plan"}),e.jsx("th",{className:"py-2 pr-4",children:"Price USD"})]})}),e.jsx("tbody",{children:W.map(f=>{const S=f.packages,U=f.plans;return e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsx("td",{className:"py-2 pr-4 text-white",children:S?String(S.name):"-"}),e.jsx("td",{className:"py-2 pr-4 text-white",children:U?String(U.display_name??U.name):"-"}),e.jsxs("td",{className:"py-2 pr-4 text-white",children:["$",f.price_usd]})]},String(f.id))})})]}),W.length===0&&e.jsx("p",{className:"text-gray-400 py-4",children:"No eligibility rows."})]}),k==="ai-integration"&&e.jsxs("div",{className:"space-y-4",children:[yt&&e.jsx("p",{className:"text-gray-400",children:"Loading..."}),!yt&&N&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30",children:[e.jsx("h3",{className:"text-white font-medium mb-2",children:"Cron sync (post-MVP)"}),e.jsx("p",{className:"text-sm text-gray-400 mb-3",children:"When enabled, a cron job will sync provider models automatically. For now only manual sync is available; this switch is saved for when cron is implemented."}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:()=>Qd(!N.cron_sync_enabled),className:`inline-flex h-10 w-20 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-[#60A5FA] focus:ring-offset-2 focus:ring-offset-[#0A1628] ${N.cron_sync_enabled?"bg-[#1E3A8A]":"bg-gray-600"}`,children:e.jsx("span",{className:`inline-block h-8 w-8 transform rounded-full bg-white shadow transition-transform ${N.cron_sync_enabled?"translate-x-10":"translate-x-1"}`})}),e.jsx("span",{className:"text-gray-300",children:N.cron_sync_enabled?"Cron sync on (post-MVP)":"Cron sync off (manual only)"})]})]}
397),e.jsx("h3",{className:"text-white font-medium mt-6 mb-2",children:"Providers, API keys & models"}),e.jsx("p",{className:"text-sm text-gray-400 mb-4",children:`Set each provider's API key below, then use "Refresh models" to sync available models from the provider.`}),e.jsxs("div",{className:"space-y-3",children:[N.providers.map(f=>e.jsxs("div",{className:"p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30 space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-medium",children:f.display_name}),e.jsxs("p",{className:"text-sm text-gray-400",children:[f.model_count," models",f.last_synced_at?` · Last synced ${new Date(f.last_synced_at).toLocaleString()}`:" · Never synced"]})]}),e.jsx("button",{onClick:()=>Xd(f.id),disabled:F===f.id,className:vt+" flex items-center gap-2",children:F===f.id?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin h-4 w-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Syncing…"]}):e.jsxs(e.Fragment,{children:[e.jsx(Nm,{size:16}),"Refresh models"]})})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-3",children:[e.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"API key"}),we===f.id?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("input",{type:"password",value:tt,onChange:S=>xe(S.target.value),placeholder:"Paste API key",className:Ye+" max-w-md",autoFocus:!0}),e.jsx("button",{onClick:()=>eu(f.id),disabled:ve||!tt.trim(),className:vt,children:ve?"Saving…":"Save"}),e.jsx("button",{onClick:tu,className:Qe,children:"Cancel"})]}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-gray-400",children:f.has_api_key?"••••••••••••••••":"Not set"}),e.jsx("button",{onClick:()=>{ne(f.id),xe("")},className:Qe+" text-sm",children:f.has_api_key?"Update key":"Set key"})]})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-2",children:[e.jsx("p",{className:"text-sm text-gray-400",children:"Allowed models"}),f.models&&f.models.length>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:()=>ru(f),disabled:ie===f.id||f.models.every(S=>S.active),className:Qe+" text-xs py-1 px-2",children:ie===f.id?"Updating…":"Select all"}),e.jsx("button",{type:"button",onClick:()=>au(f),disabled:ie===f.id||f.models.every(S=>!S.active),className:Qe+" text-xs py-1 px-2",children:"Deselect all"})]})]}),f.models&&f.models.length>0?e.jsx("ul",{className:"space-y-2 max-h-48 overflow-y-auto",children:f.models.map(S=>e.jsxs("li",{className:"flex items-center justify-between gap-2 py-1",children:[e.jsx("span",{className:`text-sm ${S.active?"text-white":"text-gray-500"}`,children:S.display_name||S.provider_model_id}),e.jsx("button",{onClick:()=>su(S.id,!S.active),disabled:je===S.id||ie===f.id,className:`inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-[#60A5FA] focus:ring-offset-1 focus:ring-offset-[#0A1628] disabled:opacity-50 ${S.active?"bg-[#1E3A8A]":"bg-gray-600"}`,title:S.active?"Disable model":"Enable model",children:e.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow transition-transform ${S.active?"translate-x-5":"translate-x-0.5"}`,children:je===S.id&&e.jsxs("svg",{className:"animate-spin h-3 w-3 text-gray-600 mt-1 ml-1",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})})]},S.id))}):e.jsx("p",{className:"text-sm text-gray-500",children:'No models yet. Set API key and click "Refresh models" to sync.'})]})]},f.id)),N.providers.length===0&&e.jsx("p",{className:"text-gray-400",children:"No providers. Ru
397n migration 068 to seed providers."})]})]})]}),k==="admins"&&!H&&e.jsxs("div",{className:"space-y-4",children:[Be&&e.jsxs("div",{className:"p-4 bg-amber-900/30 border border-amber-600 rounded-lg",children:[e.jsx("p",{className:"text-amber-200 font-medium",children:"Save this API key now; it will not be shown again."}),e.jsx("code",{className:"block mt-2 p-2 bg-[#0A1628] rounded text-sm break-all text-white",children:Be}),e.jsx("button",{onClick:()=>_e(null),className:Qe+" mt-2",children:"Dismiss"})]}),e.jsxs("form",{onSubmit:yu,className:"flex flex-wrap gap-4 items-end p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Email"}),e.jsx("input",{value:se,onChange:f=>fe(f.target.value),className:Ye+" w-48",placeholder:"[email protected]",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Name"}),e.jsx("input",{value:Ke,onChange:f=>Ie(f.target.value),className:Ye+" w-40",placeholder:"Optional"})]}),e.jsx("button",{type:"submit",className:vt,children:"Create admin"})]}),e.jsx("div",{className:"space-y-2",children:he.map(f=>e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2 p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-medium",children:String(f.email)}),e.jsxs("p",{className:"text-sm text-gray-400",children:[String(f.name||"-")," · ",String(f.role)," · prefix ",String(f.api_key_prefix||"-")]})]}),!f.revoked_at&&f.email!==i.email&&e.jsx("button",{onClick:()=>bu(String(f.email)),className:"text-red-400 hover:text-red-300 text-sm",children:"Revoke"})]},String(f.id)))})]})]}),ae==="administration"&&e.jsxs("div",{className:er,children:[e.jsxs("h2",{className:"text-xl font-semibold text-white mb-4 flex items-center gap-2",children:[e.jsx(Ai,{size:22}),"Administration"]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-6 border-b border-[#1E3A8A]/50 pb-4",children:[e.jsxs("button",{onClick:()=>Ct("users"),className:`flex items-center gap-2 px-4 py-2 rounded-lg ${Ae==="users"?"bg-[#1E3A8A] text-white":"text-gray-400 hover:bg-[#1E3A8A]/30 hover:text-white"}`,children:[e.jsx(Ps,{size:18}),"Users"]}),e.jsxs("button",{onClick:()=>Ct("licenses"),className:`flex items-center gap-2 px-4 py-2 rounded-lg ${Ae==="licenses"?"bg-[#1E3A8A] text-white":"text-gray-400 hover:bg-[#1E3A8A]/30 hover:text-white"}`,children:[e.jsx(zl,{size:18}),"Licenses"]}),e.jsxs("button",{onClick:()=>Ct("usage"),className:`flex items-center gap-2 px-4 py-2 rounded-lg ${Ae==="usage"?"bg-[#1E3A8A] text-white":"text-gray-400 hover:bg-[#1E3A8A]/30 hover:text-white"}`,children:[e.jsx(ys,{size:18}),"Usage"]})]}),Ot&&e.jsx("p",{className:"text-gray-400 mb-4",children:"Loading..."}),Ae==="users"&&!Ot&&e.jsx("div",{className:"space-y-4",children:dt&&Ue?e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>{ls(null),Ws(null)},className:"text-[#60A5FA] hover:underline mb-4 flex items-center gap-1",children:[e.jsx(sa,{size:18})," Back to list"]}),e.jsxs("div",{className:"p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30 mb-4",children:[e.jsx("p",{className:"text-white font-medium",children:String((oi=dt.user)==null?void 0:oi.email)}),e.jsxs("p",{className:"text-sm text-gray-400",children:[String(((li=dt.user)==null?void 0:li.name)??"-")," · ",String((ci=dt.user)==null?void 0:ci.created_at)]}),e.jsx("p",{className:"text-sm mt-1",children:e.jsxs("span",{className:(di=dt.user)!=null&&di.locked?"text-amber-400":"text-gray-400",children:["Account: ",(ui=dt.user)!=null&&ui.locked?"Locked":"Active"]})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-3",children:[(hi=dt.user)!=null&&hi.locked?e.jsx("button",{type:"button",onClick:xu,disabled:Ht,className:"text-amber-400 hover:text-amber-300 text-sm disabled:opacity-50",children:Ht?"…":"Unlock Account"}):e.jsx("button",{type:"button",onClick:mu,disabled:Ht,className:"text-amber-400 hover:text-amber-300 text-sm disabled:opacity-50",children:Ht?"…":"Lock Account"}),e.jsx("button",{type:"button",onClick:pu,disabled:Ht,className:"text-red-400 hover:text-red-300 text-sm disabled:opacity-50",children:Ht?"…":"Delete Account"})]})]}),e.jsx("h3",{className:"text-white font-medium mb-2",children:"Licenses"}),e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-2 pr-4",children:"License #"}),e.jsx("th",{className:"py-2 pr-4",children:"Plan"}),e.jsx("th",{className:"py-2 pr-4",children:"Status"}),e.jsx("th",{className:"py-2 pr-4",children:"Billing"}),e.jsx("th",{className:"py-2 pr-4",children:"Used / Limit"}),e.jsx("th",{className:"py-2 pr-4",children:"Overage"}),e.jsx("th",{className:"py-2 pr-4",children:"Actions"})]})}),e.jsx("tbody",{children:(Array.isArray(dt.licenses)?dt.licenses:[]).map(f=>{const S=f.plan,U=S==null?void 0:S.max_generations_per_month,oe=String(f.id),xt=ei===oe,tr=String(f.status)==="active";return e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsxs("td",{className:"py-2 pr-4 text-white font-mono text-sm",children:[String(f.license_key??f.id).slice(0,12),"…"]}),e.jsx("td",{className:"py-2 pr-4 text-white",children:S?String(S.display_name??S.name):"-"}),e.jsx("td",{className:"py-2 pr-4 text-white",children:String(f.status)}),e.jsx("td",{className:"py-2 pr-4 text-gray-400",children:String(f.billing_cycle??"-")}),e.jsxs("td",{className:"py-2 pr-4 text-white",children:[Number(f.generations_used??0)," / ",U??"∞"]}),e.jsx("td",{className:"py-2 pr-4 text-white",children:Number(f.overage_used??0)}),e.jsx("td",{className:"py-2 pr-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[tr&&e.jsx("button",{type:"button",onClick:()=>cu(oe),disabled:xt,className:"text-amber-400 hover:text-amber-300 text-sm disabled:opacity-50",children:xt?"…":"Deactivate"}),e.jsx("button",{type:"button",onClick:()=>du(oe),disabled:xt,className:"text-red-400 hover:text-red-300 text-sm disabled:opacity-50",children:xt?"…":"Delete"})]})})]},oe)})})]}),(!dt.licenses||dt.licenses.length===0)&&e.jsx("p",{className:"text-gray-400 py-4",children:"No licenses."})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-2 pr-4",children:"Email"}),e.jsx("th",{className:"py-2 pr-4",children:"Name"}),e.jsx("th",{className:"py-2 pr-4",children:"Created"}),e.jsx("th",{className:"py-2 pr-4"})]})}),e.jsx("tbody",{children:Gt.map(f=>e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsx("td",{className:"py-2 pr-4 text-white",children:String(f.email)}),e.jsx("td",{className:"py-2 pr-4 text-gray-400",children:String(f.name??"-")}),e.jsx("td",{className:"py-2 pr-4 text-gray-400",children:String(f.created_at??"-")}),e.jsx("td",{className:"py-2 pr-4",children:e.jsxs("button",{onClick:()=>ou(f.id),className:"flex items-center gap-1 text-[#60A5FA] hover:underline text-sm",children:[e.jsx(Ci,{size:14})," View"]})})]},String(f.id)))})]}),Gt.length===0&&e.jsx("p",{className:"text-gray-400 py-4",children:"No users."})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsx("button",{onClick:()=>ti(f=>Math.max(1,f-1)),disabled:Ys<=1,className:Qe,children:"Previous"}),e.jsxs("span",{className:"text-gray-400 py-2",children:["Page ",Ys]}),e.jsx("button",{onClick:()=>ti(f=>f+1),className:Qe,children:"Next"})]})]})}),Ae==="licenses"&&!Ot&&e.jsx("div",{className:"space-y-4",children:Xn&&zd?e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>{Jn(null),Qn(null)},className:"text-[#60A5FA] hover:underline mb-4 flex items-center gap-1",children:[e.jsx(sa,{size:18})," Back to list"]}),(()=>{const f=Xn.license;if(!f)return null;const S=f.user,U=f.plan,oe=f.usage_current_month;return e.jsxs("div",{className:"p-4 bg-[#0A1628] rounded-lg border border-[#1E3A8A]/30 space-y-2",children:[e.jsxs("p",{className:"text-white font-medium",children:["License ",String(f.license_key).slice(0,16),"…"]}),e.jsxs("p",{className:"text-sm text-gray-400",children:["User: ",S?String(S.email):"-"]}),e.jsxs("p",{className:"text-sm text-gray-400",children:["Plan: ",U?String(U.display_name??U.name):"-"]}),e.jsxs("p",{className:"text-sm text-gray-400",children:["Status: ",String(f.status)," · Billing: ",String(f.billing_cycle)]}),e.jsxs("p",{className:"text-sm text-gray-400",children:["Current month: ",Number((oe==null?void 0:oe.generations_used)??0)," in-plan, ",Number((oe==null?void 0:oe.overage_used)??0)," overage · Total events: ",Number(f.usage_tracking_total_events??
3970)]})]})})()]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-2 pr-4",children:"License"}),e.jsx("th",{className:"py-2 pr-4",children:"User"}),e.jsx("th",{className:"py-2 pr-4",children:"Plan"}),e.jsx("th",{className:"py-2 pr-4",children:"Status"}),e.jsx("th",{className:"py-2 pr-4",children:"Actions"})]})}),e.jsx("tbody",{children:zs.map(f=>{const S=String(f.id),U=ei===S,oe=String(f.status)==="active";return e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsxs("td",{className:"py-2 pr-4 text-white font-mono text-sm",children:[String(f.license_key??f.id).slice(0,14),"…"]}),e.jsx("td",{className:"py-2 pr-4 text-gray-400",children:String(f.user_email??"-")}),e.jsx("td",{className:"py-2 pr-4 text-white",children:String(f.plan_name??"-")}),e.jsx("td",{className:"py-2 pr-4 text-gray-400",children:String(f.status)}),e.jsx("td",{className:"py-2 pr-4",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("button",{onClick:()=>lu(S),className:"flex items-center gap-1 text-[#60A5FA] hover:underline text-sm",children:[e.jsx(Ci,{size:14})," View"]}),oe&&e.jsx("button",{type:"button",onClick:()=>uu(S),disabled:U,className:"text-amber-400 hover:text-amber-300 text-sm disabled:opacity-50",children:U?"…":"Deactivate"}),e.jsx("button",{type:"button",onClick:()=>hu(S),disabled:U,className:"text-red-400 hover:text-red-300 text-sm disabled:opacity-50",children:U?"…":"Delete"})]})})]},S)})})]}),zs.length===0&&e.jsx("p",{className:"text-gray-400 py-4",children:"No licenses."})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsx("button",{onClick:()=>si(f=>Math.max(1,f-1)),disabled:Zs<=1,className:Qe,children:"Previous"}),e.jsxs("span",{className:"text-gray-400 py-2",children:["Page ",Zs]}),e.jsx("button",{onClick:()=>si(f=>f+1),className:Qe,children:"Next"})]})]})}),Ae==="usage"&&!Ot&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex gap-2 border-b border-[#1E3A8A]/30 pb-2 mb-4",children:[e.jsx("button",{onClick:()=>bt("today"),className:`px-3 py-1 rounded ${Xe==="today"?"bg-[#1E3A8A] text-white":"text-gray-400 hover:text-white"}`,children:"Today"}),e.jsx("button",{onClick:()=>bt("range"),className:`px-3 py-1 rounded ${Xe==="range"?"bg-[#1E3A8A] text-white":"text-gray-400 hover:text-white"}`,children:"Range"}),e.jsx("button",{onClick:()=>bt("summary"),className:`px-3 py-1 rounded ${Xe==="summary"?"bg-[#1E3A8A] text-white":"text-gray-400 hover:text-white"}`,children:"Summary"})]}),Xe==="today"&&K&&e.jsxs("div",{children:[e.jsxs("p",{className:"text-gray-400 mb-2",children:["From ",String(K.from)]}),e.jsxs("p",{className:"text-white font-medium",children:["Total events: ",Number(K.total_events??0)," · In-plan: ",Number(K.total_in_plan??0)," · Overage: ",Number(K.total_overage??0)]}),e.jsx("div",{className:"mt-4 overflow-x-auto max-h-64 overflow-y-auto",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-1 pr-2",children:"Time"}),e.jsx("th",{className:"py-1 pr-2",children:"License"}),e.jsx("th",{className:"py-1 pr-2",children:"Model"}),e.jsx("th",{className:"py-1 pr-2",children:"In-plan"}),e.jsx("th",{className:"py-1 pr-2",children:"Overage"})]})}),e.jsx("tbody",{children:(Array.isArray(K.events)?K.events.slice(0,50):[]).map((f,S)=>e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsx("td",{className:"py-1 pr-2 text-gray-400",children:String(f.created_at).slice(11,19)}),e.jsxs("td",{className:"py-1 pr-2 font-mono text-xs",children:[String(f.license_id).slice(0,8),"…"]}),e.jsx("td",{className:"py-1 pr-2 text-gray-400",children:String(f.model_used??"-")}),e.jsx("td",{className:"py-1 pr-2",children:Number(f.generations_in_plan??0)}),e.jsx("td",{className:"py-1 pr-2",children:f.overage_generation?1:0})]},f.id??S))})]})})]}),Xe==="range"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap gap-4 mb-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"From (ISO)"}),e.jsx("input",{value:Gs,onChange:f=>Wd(f.target.value),className:Ye+" w-48",placeholder:"2025-01-01T00:00:00Z"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"To (ISO)"}),e.jsx("input",{value:Hs,onChange:f=>Gd(f.target.value),className:Ye+" w-48",placeholder:"2025-01-31T23:59:59Z"})]}),e.jsx("button",{onClick:nu,className:vt+" self-end",children:"Fetch"})]}),Me&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"text-white font-medium",children:["Total events: ",Number(Me.total_events??
3970)," · In-plan: ",Number(Me.total_in_plan??0)," · Overage: ",Number(Me.total_overage??0)]}),e.jsx("div",{className:"mt-4 overflow-x-auto max-h-64 overflow-y-auto",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-1 pr-2",children:"Time"}),e.jsx("th",{className:"py-1 pr-2",children:"License"}),e.jsx("th",{className:"py-1 pr-2",children:"Model"})]})}),e.jsx("tbody",{children:(Array.isArray(Me.events)?Me.events.slice(0,50):[]).map((f,S)=>e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsx("td",{className:"py-1 pr-2 text-gray-400",children:String(f.created_at)}),e.jsxs("td",{className:"py-1 pr-2 font-mono text-xs",children:[String(f.license_id).slice(0,8),"…"]}),e.jsx("td",{className:"py-1 pr-2 text-gray-400",children:String(f.model_used??"-")})]},f.id??S))})]})})]})]}),Xe==="summary"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap gap-4 mb-4",children:[e.jsxs("select",{value:Gr,onChange:f=>Hd(f.target.value),className:Ye+" w-32",children:[e.jsx("option",{value:"hour",children:"Hour"}),e.jsx("option",{value:"day",children:"Day"}),e.jsx("option",{value:"week",children:"Week"}),e.jsx("option",{value:"month",children:"Month"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"From (optional)"}),e.jsx("input",{value:Ks,onChange:f=>Kd(f.target.value),className:Ye+" w-48",placeholder:"2025-01-01"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"To (optional)"}),e.jsx("input",{value:qs,onChange:f=>qd(f.target.value),className:Ye+" w-48",placeholder:"2025-01-31"})]}),e.jsx("button",{onClick:iu,className:vt+" self-end",children:"Fetch"})]}),ct&&Array.isArray(ct.aggregated)&&e.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-gray-400 border-b border-[#1E3A8A]/50",children:[e.jsx("th",{className:"py-1 pr-2",children:"Period"}),e.jsx("th",{className:"py-1 pr-2",children:"Count"}),e.jsx("th",{className:"py-1 pr-2",children:"In-plan"}),e.jsx("th",{className:"py-1 pr-2",children:"Overage"})]})}),e.jsx("tbody",{children:ct.aggregated.map((f,S)=>e.jsxs("tr",{className:"border-b border-[#1E3A8A]/30",children:[e.jsx("td",{className:"py-1 pr-2 text-white",children:String(f.period)}),e.jsx("td",{className:"py-1 pr-2",children:Number(f.count??0)}),e.jsx("td",{className:"py-1 pr-2",children:Number(f.in_plan??0)}),e.jsx("td",{className:"py-1 pr-2",children:Number(f.overage??0)})]},f.period??S))})]})})]})]})]})]})})}function x2({plan:t,planOptions:s,onSave:r,onCancel:a,inputClass:n,btnClass:o,btnSecondary:i}){const[l,c]=h.useState(String(t.display_name??"")),[u,d]=h.useState(String(t.description??"")),[m,x]=h.useState(t.price_monthly_usd!=null?Number(t.price_monthly_usd):0),[y,p]=h.useState(t.price_yearly_usd!=null?Number(t.price_yearly_usd):0),[j,g]=h.useState(String(t.stripe_price_id_monthly??"")),[w,v]=h.useState(String(t.stripe_price_id_yearly??"")),[b,k]=h.useState(Number(t.max_variants)??1),[A,E]=h.useState(Number(t.max_goals)??1),[M,T]=h.useState(Number(t.max_tones)??1),[R,$]=h.useState(Number(t.max_devices)??1),[z,te]=h.useState(t.max_generations_per_month==null?"":String(t.max_generations_per_month)),[B,W]=h.useState(()=>{const C=t.included_packages_count;return C==null?"all":C===1?"1":"0"}),[q,he]=h.useState(!!t.can_purchase_packages),[J,H]=h.useState(Array.isArray(t.allowed_providers)?t.allowed_providers.join(", "):String(t.allowed_providers??"grok")),[Z,Y]=h.useState(String(t.default_provider??"grok")),[de,Te]=h.useState(String(t.default_model??"")),[me,se]=h.useState(typeof t.allowed_models=="object"&&t.allowed_models!=null?JSON.stringify(t.allowed_models,null,2):String(t.allowed_models??"{}")),[fe,Ke]=h.useState(()=>Array.isArray(t.allowed_providers)?t.allowed_providers.filter(Boolean):["grok"]),[Ie,Be]=h.useState(()=>{const C=t.allowed_models;return typeof C=="object"&&C!=null&&!Array.isArray(C)?C:{}}),[_e,yt]=h.useState(typeof t.features=="object"&&t.features!=null?JSON.stringify(t.features,null,2):String(t.features??"{}")),[ke,N]=h.useState(String(t.analysis_provider??"")),[I,F]=h.useState(String(t.analysis_model??"")),[re,we]=h.useState(!!t.active),[ne,tt]=h.useState(Number(t.display_order)??0),[xe,ve]=h.useState(""),Re=()=>{var ae;let C={};try{C=_e.trim()?JSON.parse(_e):{}}
397catch{ve("features: invalid JSON");return}let ie=null;const ee=s&&s.providers.length>0;if(!ee)try{ie=me.trim()?JSON.parse(me):null}catch{ve("allowed_models: invalid JSON");return}ve(""),r({display_name:l,description:u||null,price_monthly_usd:m,price_yearly_usd:y,stripe_price_id_monthly:j.trim()||null,stripe_price_id_yearly:w.trim()||null,max_variants:b,max_goals:A,max_tones:M,max_devices:R,max_generations_per_month:z===""?null:Number(z),included_packages_count:B==="all"?null:Number(B),can_purchase_packages:q,allowed_providers:ee?fe:J.split(",").map(ye=>ye.trim()).filter(Boolean),default_provider:ee?fe.includes(Z)?Z:fe[0]||null:Z.trim()||null,default_model:ee?(Ie[Z]||[]).includes(de)?de:((ae=Ie[Z])==null?void 0:ae[0])??null:de.trim()||null,allowed_models:ee?Ie:ie,analysis_provider:ke.trim()||null,analysis_model:I.trim()||null,features:C,active:re,display_order:ne})},je=n+" min-h-[80px] font-mono text-sm";return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Display name"}),e.jsx("input",{value:l,onChange:C=>c(C.target.value),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Display order"}),e.jsx("input",{type:"number",value:ne,onChange:C=>tt(Number(C.target.value)),className:n})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Description"}),e.jsx("textarea",{value:u,onChange:C=>d(C.target.value),className:je,rows:2})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-300 mb-2",children:"Pricing"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Price monthly USD"}),e.jsx("input",{type:"number",step:"0.01",value:m,onChange:C=>x(Number(C.target.value)),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Price yearly USD"}),e.jsx("input",{type:"number",step:"0.01",value:y,onChange:C=>p(Number(C.target.value)),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Stripe Price ID (monthly)"}),e.jsx("input",{value:j,onChange:C=>g(C.target.value),className:n,placeholder:"price_..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Stripe Price ID (yearly)"}),e.jsx("input",{value:w,onChange:C=>v(C.target.value),className:n,placeholder:"price_..."})]})]})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-300 mb-2",children:"Limits"}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Max variants"}),e.jsx("input",{type:"number",min:0,value:b,onChange:C=>k(Number(C.target.value)),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Max goals"}),e.jsx("input",{type:"number",min:0,value:A,onChange:C=>E(Number(C.target.value)),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Max tones"}),e.jsx("input",{type:"number",min:0,value:M,onChange:C=>T(Number(C.target.value)),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Max devices"}),e.jsx("input",{type:"number",min:0,value:R,onChange:C=>$(Number(C.target.value)),className:n})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Max generations/month"}),e.jsx("input",{type:"number",min:0,value:z,onChange:C=>te(C.target.value),className:n,placeholder:"empty = unlimited"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Included packages count"}),e.jsxs("select",{value:B,onChange:C=>W(C.target.value),className:n,children:[e.jsx("option",{value:"0",children:"None (0)"}),e.jsx("option",{value:"1",children:"One (1)"}),e.jsx("option",{value:"all",children:"All (unlimited)"})]})]})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",id:"canPurchase",checked:q,onCh
397ange:C=>he(C.target.checked)}),e.jsx("label",{htmlFor:"canPurchase",className:"text-gray-300 text-sm",children:"Can purchase packages"})]})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-300 mb-2",children:"Providers & models"}),s&&s.providers.length>0?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"Allowed providers"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:s.providers.map(C=>{const ie=fe.includes(C.code);return e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:ie,onChange:()=>{ie?(Ke(ee=>ee.filter(ae=>ae!==C.code)),Be(ee=>{const ae={...ee};return delete ae[C.code],ae}),Z===C.code&&Y(fe[0]||"")):Ke(ee=>[...ee,C.code].sort())},className:"rounded border-[#1E3A8A]"}),e.jsx("span",{className:"text-gray-300",children:C.display_name})]},C.code)})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Default provider"}),e.jsxs("select",{value:fe.includes(Z)?Z:fe[0]??"",onChange:C=>{Y(C.target.value),Te("")},className:n,children:[fe.map(C=>{const ie=s.providers.find(ee=>ee.code===C);return e.jsx("option",{value:C,children:(ie==null?void 0:ie.display_name)??C},C)}),fe.length===0&&e.jsx("option",{value:"",children:"— Select providers above —"})]})]}),fe.map(C=>{const ie=s.models_by_provider[C]||[],ee=Ie[C]||[],ae=s.providers.find(ye=>ye.code===C);return ie.length===0?e.jsx("div",{className:"p-2 bg-[#0A1628] rounded border border-[#1E3A8A]/30",children:e.jsxs("p",{className:"text-sm text-gray-400",children:[(ae==null?void 0:ae.display_name)??C,": no enabled models. Enable models in AI Integration."]})},C):e.jsxs("div",{className:"p-3 bg-[#0A1628] rounded border border-[#1E3A8A]/30",children:[e.jsxs("p",{className:"text-sm font-medium text-gray-300 mb-2",children:["Allowed models for ",(ae==null?void 0:ae.display_name)??C]}),e.jsx("div",{className:"flex flex-wrap gap-3",children:ie.map(ye=>{const Ae=ee.includes(ye.provider_model_id);return e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:Ae,onChange:()=>{Be(Ct=>{const Xe=Ct[C]||[],bt={...Ct};return Ae?bt[C]=Xe.filter(Gt=>Gt!==ye.provider_model_id):bt[C]=[...Xe,ye.provider_model_id].sort(),bt}),Z===C&&de===ye.provider_model_id&&Ae&&Te("")},className:"rounded border-[#1E3A8A]"}),e.jsx("span",{className:"text-gray-300",children:ye.display_name})]},ye.provider_model_id)})})]},C)}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Default model"}),e.jsxs("select",{value:(Ie[Z]||[]).includes(de)?de:"",onChange:C=>Te(C.target.value),className:n,children:[e.jsx("option",{value:"",children:"— None —"}),(Ie[Z]||[]).map(C=>{const ee=(s.models_by_provider[Z]||[]).find(ae=>ae.provider_model_id===C);return e.jsx("option",{value:C,children:(ee==null?void 0:ee.display_name)??C},C)})]}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Must be one of the allowed models for the default provider."})]})]}):e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Allowed providers (comma-separated)"}),e.jsx("input",{value:J,onChange:C=>H(C.target.value),className:n,placeholder:"grok, openai"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Default provider"}),e.jsx("input",{value:Z,onChange:C=>Y(C.target.value),className:n})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Default model"}),e.jsx("input",{value:de,onChange:C=>Te(C.target.value),className:n,placeholder:"grok-4-latest"})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Allowed models (JSON)"}),e.jsx("textarea",{value:me,onChange:C=>se(C.target.value),className:je,rows:4,placeholder:'{"grok": ["grok-4-latest"], "openai": ["gpt-4o"]}'})]})]})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-300 mb-2",children:"Analysis (classification, style, goals, tones)"}),e.jsx("p",{className:"text-sm text-gray-400 mb-3",children:"Provider and model used by anal
397ysis endpoints. Drafting continues to use the user's chosen provider/model in the extension."}),s&&s.providers.length>0?e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Analysis provider"}),e.jsxs("select",{value:s.providers.some(C=>C.code===ke)?ke:"",onChange:C=>{var ye;const ie=C.target.value;N(ie);const ee=s.models_by_provider[ie]||[];ee.some(Ae=>Ae.provider_model_id===I)||F(((ye=ee[0])==null?void 0:ye.provider_model_id)??"")},className:n,children:[e.jsx("option",{value:"",children:"— None (use default) —"}),s.providers.map(C=>e.jsx("option",{value:C.code,children:C.display_name},C.code))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Analysis model"}),e.jsxs("select",{value:ke&&(s.models_by_provider[ke]||[]).some(C=>C.provider_model_id===I)?I:"",onChange:C=>F(C.target.value),className:n,disabled:!ke,children:[e.jsx("option",{value:"",children:"— None (use provider default) —"}),(s.models_by_provider[ke]||[]).map(C=>e.jsx("option",{value:C.provider_model_id,children:C.display_name??C.provider_model_id},C.provider_model_id))]})]})]}):e.jsx("p",{className:"text-sm text-gray-500",children:"Load plan options to select analysis provider/model."})]}),e.jsxs("div",{className:"border-t border-[#1E3A8A]/30 pt-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Features (JSON)"}),e.jsx("textarea",{value:_e,onChange:C=>yt(C.target.value),className:je,rows:4,placeholder:'{"style_mimicking": true, "advanced_classification": true}'})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",id:"active",checked:re,onChange:C=>we(C.target.checked)}),e.jsx("label",{htmlFor:"active",className:"text-gray-300",children:"Active"})]}),xe&&e.jsx("span",{className:"text-sm text-red-400",children:xe})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:Re,className:o,children:"Save"}),e.jsx("button",{onClick:a,className:i,children:"Cancel"})]})]})}function p2({pkg:t,onSave:s,onCancel:r,inputClass:a,btnClass:n,btnSecondary:o}){const[i,l]=h.useState(String(t.name??"")),[c,u]=h.useState(String(t.description??""));return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Name"}),e.jsx("input",{value:i,onChange:d=>l(d.target.value),className:a})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Description"}),e.jsx("input",{value:c,onChange:d=>u(d.target.value),className:a})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:()=>s({name:i,description:c}),className:n,children:"Save"}),e.jsx("button",{onClick:r,className:o,children:"Cancel"})]})]})}const g2="modulepreload",f2=function(t){return"/"+t},Ho={},y2=function(s,r,a){let n=Promise.resolve();if(r&&r.length>0){let i=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));n=i(r.map(u=>{if(u=f2(u),u in Ho)return;Ho[u]=!0;const d=u.endsWith(".css"),m=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${m}`))return;const x=document.createElement("link");if(x.rel=d?"stylesheet":g2,d||(x.as="script"),x.crossOrigin="",x.href=u,c&&x.setAttribute("nonce",c),document.head.appendChild(x),d)return new Promise((y,p)=>{x.addEventListener("load",y),x.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return n.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return s().catch(o)})};function Yt({variant:t="dark",size:s="lg",showGlow:r=!0}){const n={sm:{fontSize:"2rem",height:"80px"},md:{fontSize:"3rem",height:"120px"},lg:{fontSize:"4rem",height:"160px"}
397,xl:{fontSize:"6rem",height:"240px"}}[s],o=t==="dark"?{base:"#E0E7FF",emphasis:"#60A5FA",glow:"#60A5FA",background:"linear-gradient(135deg, #1E3A8A 0%, #1E293B 100%)"}:{base:"#1E3A8A",emphasis:"#3B82F6",glow:"#60A5FA",background:"linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%)"};return e.jsxs("div",{className:"relative flex items-center justify-center overflow-hidden rounded-2xl",style:{background:o.background,minHeight:n.height,padding:"2rem"},children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 rounded-full opacity-20 blur-3xl",style:{background:`radial-gradient(circle, ${o.emphasis} 0%, transparent 70%)`,animation:"float 6s ease-in-out infinite"}}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 rounded-full opacity-20 blur-3xl",style:{background:`radial-gradient(circle, ${o.emphasis} 0%, transparent 70%)`,animation:"float 8s ease-in-out infinite reverse"}})]}),e.jsxs("div",{className:"relative z-10 flex items-center gap-0",style:{fontSize:n.fontSize},children:[e.jsx("span",{className:"font-bold tracking-tight transition-all duration-300 hover:scale-110",style:{color:o.emphasis,fontWeight:800,textShadow:r?`0 0 30px ${o.glow}40, 0 0 60px ${o.glow}20`:"none",filter:r?"brightness(1.2)":"none"},children:"x"}),e.jsx("span",{className:"font-semibold tracking-tight",style:{color:o.base,fontWeight:600},children:"Repl"}),e.jsx("span",{className:"font-bold tracking-tight transition-all duration-300 hover:scale-110",style:{color:o.emphasis,fontWeight:800,textShadow:r?`0 0 30px ${o.glow}40, 0 0 60px ${o.glow}20`:"none",filter:r?"brightness(1.2)":"none"},children:"AI"})]}),r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"absolute top-1/4 left-1/4 w-2 h-2 rounded-full opacity-60",style:{background:o.emphasis,animation:"twinkle 3s ease-in-out infinite",boxShadow:`0 0 10px ${o.emphasis}`}}),e.jsx("div",{className:"absolute bottom-1/3 right-1/3 w-1 h-1 rounded-full opacity-60",style:{background:o.emphasis,animation:"twinkle 4s ease-in-out infinite 1s",boxShadow:`0 0 8px ${o.emphasis}`}}),e.jsx("div",{className:"absolute top-1/2 right-1/4 w-1.5 h-1.5 rounded-full opacity-60",style:{background:o.emphasis,animation:"twinkle 5s ease-in-out infinite 2s",boxShadow:`0 0 10px ${o.emphasis}`}})]}),e.jsx("style",{children:`
398        @keyframes float {
399          0%, 100% { transform: translate(0, 0) scale(1); }
400          50% { transform: translate(-20px, -20px) scale(1.1); }
401        }
402        
403        @keyframes twinkle {
404          0%, 100% { opacity: 0.3; transform: scale(1); }
405          50% { opacity: 1; transform: scale(1.5); }
406        }
407      `})]})}function b2(){const[t,s]=Q.useState(!1),r=(n,o)=>{const i=document.getElementById(n);i&&y2(()=>import("./html2canvas.esm-BzfVsbfJ.js"),[]).then(l=>{l.default(i,{backgroundColor:null,scale:2}).then(c=>{c.toBlob(u=>{if(!u)return;const d=URL.createObjectURL(u),m=document.createElement("a");m.download=o,m.href=d,m.click(),URL.revokeObjectURL(d)})})})},a=()=>{navigator.clipboard.writeText("xReplAI"),s(!0),setTimeout(()=>s(!1),2e3)};return e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto space-y-12",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx("h1",{className:"text-4xl font-bold text-slate-900",children:"xReplAI Brand Assets"}),e.jsx("p",{className:"text-lg text-slate-600",children:"Your artistic branding with subtle emphasis on 'x' and 'AI'"}),e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("code",{className:"px-4 py-2 bg-white rounded-lg text-lg font-mono border border-slate-200",children:"xReplAI"}),e.jsx("button",{onClick:a,className:"p-2 hover:bg-white rounded-lg transition-colors border border-slate-200",title:"Copy text",children:t?e.jsx(Ce,{className:"w-5 h-5 text-green-600"}):e.jsx(zt,{className:"w-5 h-5 text-slate-600"})})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Hero - Dark (Recommended)"}),e.jsxs("button",{onClick:()=>r("branding-hero-dark","xreplai-hero-dark.png"),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(nr,{className:"w-4 h-4"}),"Download PNG"]})]}),e.jsx("div",{id:"branding-hero-dark",children:e.jsx(Yt,{variant:"dark",size:"xl",showGlow:!0})}),e.jsx("p",{className:"text-sm text-slate-600",children:"Perfect for: Website headers, social media covers, presentations"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Large - Light"}),e.jsxs("button",{onClick:()=>r("branding-large-light","xreplai-large-light.png"),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(nr,{className:"w-4 h-4"}),"Download PNG"]})]}),e.jsx("div",{id:"branding-large-light",children:e.jsx(Yt,{variant:"light",size:"lg",showGlow:!0})}),e.jsx("p",{className:"text-sm text-slate-600",children:"Perfect for: Light backgrounds, email signatures, business cards"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Medium - Dar
407k"}),e.jsxs("button",{onClick:()=>r("branding-medium-dark","xreplai-medium-dark.png"),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(nr,{className:"w-4 h-4"}),"Download PNG"]})]}),e.jsx("div",{id:"branding-medium-dark",children:e.jsx(Yt,{variant:"dark",size:"md",showGlow:!0})}),e.jsx("p",{className:"text-sm text-slate-600",children:"Perfect for: Blog posts, thumbnails, social media posts"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Compact - Clean"}),e.jsxs("button",{onClick:()=>r("branding-compact","xreplai-compact.png"),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[e.jsx(nr,{className:"w-4 h-4"}),"Download PNG"]})]}),e.jsx("div",{id:"branding-compact",children:e.jsx(Yt,{variant:"dark",size:"md",showGlow:!1})}),e.jsx("p",{className:"text-sm text-slate-600",children:"Perfect for: Icons, favicons, small spaces, minimalist designs"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"All Variants"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx("div",{children:e.jsx(Yt,{variant:"dark",size:"lg",showGlow:!0})}),e.jsx("div",{children:e.jsx(Yt,{variant:"light",size:"lg",showGlow:!0})})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-slate-200 space-y-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Design Notes"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-slate-900 mb-2",children:"Subtle xAI Hint"}),e.jsxs("ul",{className:"list-disc list-inside text-slate-600 space-y-1",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"'x'"})," - Emphasized in bright blue with glow effect"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"'Repl'"})," - Neutral weight to balance the design"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"'AI'"})," - Emphasized in bright blue with glow effect"]}),e.jsx("li",{children:"Together: x...AI creates a subliminal reference to xAI"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-slate-900 mb-2",children:"Color Psychology"}),e.jsxs("ul",{className:"list-disc list-inside text-slate-600 space-y-1",children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Deep Indigo (#1E3A8A)"})," - Professional, trustworthy, tech-forward"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Light Blue (#60A5FA)"})," - Innovation, intelligence, clarity"]}),e.jsx("li",{children:"Gradient backgrounds - Premium, modern aesthetic"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-slate-900 mb-2",children:"Best Practices"}),e.jsxs("ul",{className:"list-disc list-inside text-slate-600 space-y-1",children:[e.jsx("li",{children:"Use dark variant for primary branding (hero, headers)"}),e.jsx("li",{children:"Use light variant for light backgrounds or printables"}),e.jsx("li",{children:"Maintain aspect ratio when resizing"}),e.jsx("li",{children:"Ensure sufficient contrast with surrounding content"})]})]})]})]}),e.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6",children:e.jsxs("p",{className:"text-sm text-slate-700",children:[e.jsx("strong",{children:"Note:"})," To download images, you'll need to install the ",e.jsx("code",{className:"bg-white px-2 py-1 rounded",children:"html2canvas"})," package. Run: ",e.jsx("code",{className:"bg-white px-2 py-1 rounded",children:"npm install html2canvas"})]})})]})})}function v2(){const[t]=Lt(),s=Ze(),{loginWithLinkedIn:r}=et(),[a,n]=h.useState(null),[o,i]=h.useState(!0),l=h.useRef(!1),c=h.useCallback(async()=>{var p;if(l.current)return;l.current=!0;const u=t.get("code"),d=t.get("state"),m=t.get("error"),x=t.get("error_description");if(m){n(x||"LinkedIn authorization was denied"),i(!1);return}const y=localStorage.getItem("linkedin_oauth_state");if(console.log("LinkedIn OAuth state validation:",{urlState:d,storedState:y,match:d===y}),!d||d!==y){console.error("State mismatch:",{urlState:d,storedState:y}),n("Invalid state parameter. Please try again."),i(!1);return}if(localStorage.removeItem("linkedin_oauth_state"),!u){n("No authorization code received from LinkedIn"),i(!1);return}try{const j=sessionStorage.getItem("post_auth_checkout_plan"),g=j&&j.toLowerCase()!=="free",w=await r(u,g?"paid":void 0),v=sessionStorage.getItem("post_auth_billing_interval")||"monthly",b=sessionStorage.getItem("post_auth_checkout_included_package_id")||null;if(j){sessionStorage.removeItem("post_auth_checkout_plan"),sessionStorage.removeItem("post_auth_billing_interval"),sessionStorage.removeItem("post_auth_checkout_included_package_id");const A={Starter:"starter",Pro:"pro","Pro+":"pro_plus",Ultimate:"ultimate",Enterprise:"enterprise"}[j]||j.toLowerCase(),E=new URLSearchParams({plan:A,billing:v,type:"new_subscription",...b?{included_package_id:b}:{}});s(`/checkout?${E.toString()}`,{replace:!0});return}if(As()&&!w.user.is_new_user&&((p=w.license)!=null&&p.license_key)){const k=await hn(w.license.license_key,w.license.plan||"free");s(`/success?licenseKey=${encodeURIComponent(w.license.license_key)}&extensionSent=${k}`,{replace:!0})}else As()&&w.user.is_new_user?s("/pricing",{replace:!0}):w.user.is_new_user?s(`/success?licenseKey=${encodeURIComponent(w.license.license_key)}`,{replace:!0}):s("/",{replace:!0})}catch(j){console.error("LinkedIn callback error:",j),n(j.message||"Failed to complete LinkedIn sign-in"),i(!1)}},[t,r,s]);return h.useEffect(()=>{c()},[c]),e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0F172A] flex items-center justify-center",children:e.jsxs("div",{className:"text-center p-8",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx($r,{size:"lg"})}),o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-12 h-12 border-4 border-[#0A66C2] border-t-transparent roun
407ded-full animate-spin mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Completing Sign-In"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Please wait while we verify your LinkedIn account..."})]}):a?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-12 h-12 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx("svg",{className:"w-6 h-6 text-red-600 dark:text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Sign-In Failed"}),e.jsx("p",{className:"text-red-600 dark:text-red-400 mb-6",children:a}),e.jsx("button",{onClick:()=>s("/"),className:"px-6 py-2 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-all",children:"Return to Home"})]}):null]})})}function w2(){const[t]=Lt(),s=Ze(),{loginWithGoogle:r}=et(),[a,n]=h.useState(null),[o,i]=h.useState(!0),l=h.useRef(!1),c=h.useCallback(async()=>{var p;if(l.current)return;l.current=!0;const u=t.get("code"),d=t.get("state"),m=t.get("error"),x=t.get("error_description");if(m){n(x||"Google authorization was denied"),i(!1);return}const y=localStorage.getItem("google_oauth_state");if(console.log("Google OAuth state validation:",{urlState:d,storedState:y,match:d===y}),!d||d!==y){console.error("State mismatch:",{urlState:d,storedState:y}),n("Invalid state parameter. Please try again."),i(!1);return}if(localStorage.removeItem("google_oauth_state"),!u){n("No authorization code received from Google"),i(!1);return}try{const j=sessionStorage.getItem("post_auth_checkout_plan"),g=j&&j.toLowerCase()!=="free",w=await r(u,g?"paid":void 0),v=sessionStorage.getItem("post_auth_billing_interval")||"monthly",b=sessionStorage.getItem("post_auth_checkout_included_package_id")||null;if(j&&g){sessionStorage.removeItem("post_auth_checkout_plan"),sessionStorage.removeItem("post_auth_billing_interval"),sessionStorage.removeItem("post_auth_checkout_included_package_id");const A={Starter:"starter",Pro:"pro","Pro+":"pro_plus",Ultimate:"ultimate",Enterprise:"enterprise"}[j]||j.toLowerCase(),E=new URLSearchParams({plan:A,billing:v,type:"new_subscription",...b?{included_package_id:b}:{}});s(`/checkout?${E.toString()}`,{replace:!0});return}if(As()&&!w.user.is_new_user&&((p=w.license)!=null&&p.license_key)){const k=await hn(w.license.license_key,w.license.plan||"free");s(`/success?licenseKey=${encodeURIComponent(w.license.license_key)}&extensionSent=${k}`,{replace:!0})}else As()&&w.user.is_new_user?s("/pricing",{replace:!0}):w.user.is_new_user?s(`/success?licenseKey=${encodeURIComponent(w.license.license_key)}`,{replace:!0}):s("/",{replace:!0})}catch(j){console.error("Google callback error:",j),n(j.message||"Failed to complete Google sign-in"),i(!1)}},[t,r,s]);return h.useEffect(()=>{c()},[c]),e.jsx("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0F172A] flex items-center justify-center",children:e.jsxs("div",{className:"text-center p-8",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx($r,{size:"lg"})}),o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-12 h-12 border-4 border-[#4285F4] border-t-transparent rounded-full animate-spin mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Completing Sign-In"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Please wait while we verify your Google account..."})]}):a?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-12 h-12 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx("svg",{className:"w-6 h-6 text-red-600 dark:text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Sign-In Failed"}),e.jsx("p",{className:"text-red-600 dark:text-red-400 mb-6",children:a}),e.jsx("button",{onClick:()=>s("/"),className:"px-6 py-2 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-all",children:"Return to Home"})]}):null]})})}function j2(){const t=Ze(),{user:s,license:r,isAuthenticated:a,isLoading:n,refreshLicense:o,updateLicense:i,deleteAccount:l}=et(),[c,u]=h.useState("account"),[d,m]=h.useState(null),[x,y]=h.useState(null),[p,j]=h.useState(null),[g,w]=h.useState(null),[v,b]=h.useState(!0),[k,A]=h.useState(null),[E,M]=h.useState(!1),[T,R]=h.useState(!1),[$,z]=h.useState(!1),[te,B]=h.useState(!1),[W,q]=h.useState(null),[he,J]=h.useState(null),[H,Z]=h.useState(!1),[Y,de]=h.useState(!1),[Te,me]=h.useState(""),[se,fe]=h.useState(!1),[Ke,Ie]=h.useState(null),[Be,_e]=h.useState({isOpen:!1,isLoading:!1,error:null,preview:null,packageId:null}),yt=[{id:"account",label:"Account Details",icon:e.jsx(_a,{className:"w-4 h-4"})},{id:"subscription",label:"Subscription",icon:e.jsx(ar,{className:"w-4 h-4"})},{id:"usage",label:"Usage",icon:e.jsx(ys,{className:"w-4 h-4"})},{id:"billing",label:"Billing & Payments",icon:e.jsx(Si,{className:"w-4 h-4"})}];h.useEffect(()=>{!n&&!a&&t("/")},[n,a,t]),h.useEffect(()=>{s&&a&&o()},[s==null?void 0:s.id,a,o]),h.useEffect(()=>{s&&ke()},[s==null?void 0:s.id]);const ke=async()=>{var P;if(s){b(!0),A(null);try{const K=await fetch(L.USER_PROFILE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:s.id})}),G=await K.json().catch(()=>null);K.ok||console.error("Profile API error:",K.status,G==null?void 0:G.error,(G==null?void 0:G.license_error)??(G==null?void 0:G.license_code)??(G==null?void 0:G.license_details)??G),K.ok&&(G!=null&&G.success)&&(m(G.user),y(G.license??null),G.license&&i(G.license.license_key,G.license.plan||"free"));const Me=((P=G==null?void 0:G.license)==null?void 0:P.license_key)??(r==null?void 0:r.license_key);if(Me){const[Et,ct]=await Promise.all([fetch(L.USAGE_INFO,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:Me})}),fetch(L.PACKAGES_LIST,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:Me})})]);if(Et.ok){const qe=await Et.json();qe!=null&&qe.valid&&j(qe)}if(ct.ok){const qe=await ct.json();qe!=null&&qe.valid&&w(qe.packages)}}}catch(K){console.error("Error fetching account data:",K),A("Failed to load account data. Please try again.")}finally{b(!1)}}},N=r??x,I=(x==null?void 0:x.plan_display_name)??(N==null?void 0:N.plan)??"Free",F=async()=>
407{N!=null&&N.license_key&&(await navigator.clipboard.writeText(N.license_key),M(!0),setTimeout(()=>M(!1),2e3))},re=P=>new Date(P).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),we=P=>{switch(P){case"normal":return"text-green-600 dark:text-green-400";case"warning":return"text-yellow-600 dark:text-yellow-400";case"exceeded":case"overage":return"text-red-600 dark:text-red-400";default:return"text-gray-600 dark:text-gray-400"}},ne=P=>P>=100?"bg-red-500":P>=80?"bg-yellow-500":"bg-green-500",tt=()=>{const P=[];if(p){const G=p.generations.included;G===999999999999?P.push("Unlimited generations"):P.push(`${G} generations per month`)}if(g){const G=g.included.length;G>0&&P.push(`${G} content package${G>1?"s":""} included`)}p!=null&&p.overage.enabled&&P.push(`Overage available at $${p.overage.rate.toFixed(2)}/generation`);const K=((N==null?void 0:N.plan)||"free").toLowerCase();return K==="pro"||K==="enterprise"?P.push("Priority support"):P.push("Email support"),K==="enterprise"&&(P.push("Dedicated support"),P.push("Custom integrations"),P.push("Team management")),P};if(n||v)return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-16",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-center py-20",children:[e.jsx(rt,{className:"w-8 h-8 animate-spin text-[#1E3A8A]"}),e.jsx("span",{className:"ml-3 text-gray-600 dark:text-gray-400",children:"Loading account data..."})]})})}),e.jsx(Ve,{})]});if(!a)return null;const xe=((N==null?void 0:N.plan)||"free").toLowerCase(),ve=P=>!!(P&&(P.cancel_at_period_end===!0||String(P.cancel_at_period_end||"").toLowerCase()==="true")&&P.expires_at),Re=ve(p)||ve(x),je=(p==null?void 0:p.expires_at)??(x==null?void 0:x.expires_at)??null,C=(x==null?void 0:x.can_cancel_subscription)===!0&&(N==null?void 0:N.license_key)&&!Re,ie=xe!=="free"&&!Re&&(x==null?void 0:x.can_cancel_subscription)===!0,ee=async()=>{if(Te==="DELETE"){fe(!0),Ie(null);try{await l("DELETE"),t("/")}catch(P){Ie(P.message||"Failed to delete account")}finally{fe(!1)}}},ae=()=>{var P,K;return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"flex-shrink-0",children:s!=null&&s.profile_picture_url?e.jsx("img",{src:s.profile_picture_url,alt:s.name,className:"w-24 h-24 rounded-full border-4 border-[#1E3A8A]/20"}):e.jsx("div",{className:"w-24 h-24 rounded-full bg-[#1E3A8A] flex items-center justify-center",children:e.jsx(_a,{size:40,className:"text-white"})})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Name"}),e.jsx("p",{className:"text-lg font-medium text-gray-900 dark:text-white",children:s==null?void 0:s.name})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Rt,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:s==null?void 0:s.email}),(d==null?void 0:d.email_verified)&&e.jsx("span",{className:"px-2 py-0.5 text-xs bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400 rounded-full",children:"Verified"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm text-gray-500 dark:text-gray-400 block mb-2",children:"Linked Accounts"}),e.jsxs("div",{className:"flex gap-3",children:[((P=d==null?void 0:d.linked_providers)==null?void 0:P.includes("google"))&&e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-gray-100 dark:bg-gray-700 rounded-lg",children:[e.jsxs("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",children:[e.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),e.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),e.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),e.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),e.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Google"})]}),((K=d==null?void 0:d.linked_providers)==null?void 0:K.includes("linkedin"))&&e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-gray-100 dark:bg-gray-700 rounded-lg",children:[e.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"#0A66C2",children:e.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),e.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"LinkedIn"})]})]})]}),(d==null?void 0:d.created_at)&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400",children:[e.jsx(ki,{className:"w-4 h-4"}),e.jsxs("span",{children:["Member since ",re(d.created_at)]})]})]})]}),e.jsx("div",{className:"pt-6 border-t border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(zl,{className:"w-4 h-4 text-gray-400"}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"License Key"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("code",{className:"px-3 py-1.5 bg-gray-100 dark:bg-gray-700 rounded text-sm font-mono text-gray-700 dark:text-gray-300",children:N==null?void 0:N.license_key}),e.jsx("button",{onClick:F,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors",title:"Copy license key",children:E?e.
407jsx(Ce,{className:"w-4 h-4 text-green-500"}):e.jsx(zt,{className:"w-4 h-4 text-gray-400"})})]})]})}),e.jsxs("div",{className:"pt-6 border-t border-gray-200 dark:border-gray-700",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-4",children:"Current Plan"}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gradient-to-r from-[#1E3A8A]/5 to-[#60A5FA]/5 dark:from-[#1E3A8A]/20 dark:to-[#60A5FA]/20 border border-[#1E3A8A]/20 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[#1E3A8A] flex items-center justify-center",children:e.jsx(ar,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:[I," Plan"]}),(x==null?void 0:x.billing_cycle)&&e.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[x.billing_cycle==="monthly"?"Monthly":"Annual"," billing",x.price_usd>0&&` - $${x.price_usd.toFixed(2)}/mo`]}),Re&&je&&e.jsxs("p",{className:"text-sm text-amber-600 dark:text-amber-400 mt-0.5",children:["Valid through ",re(je)]})]})]}),Re?e.jsxs("button",{type:"button",onClick:Ae,disabled:te,className:"inline-flex items-center gap-2 px-4 py-2 bg-amber-600 hover:bg-amber-700 text-white rounded-lg transition-colors disabled:opacity-50",children:[te?e.jsx(rt,{className:"w-4 h-4 animate-spin"}):e.jsx(Ar,{className:"w-4 h-4"}),"Undo Cancellation"]}):e.jsxs(Pe,{to:"/pricing",className:"px-4 py-2 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-colors flex items-center gap-2",children:[e.jsx(nt,{className:"w-4 h-4"}),"Upgrade Plan"]})]})]}),e.jsxs("div",{className:"pt-6 border-t border-red-200 dark:border-red-800/50",children:[e.jsxs("h3",{className:"text-sm font-medium text-red-600 dark:text-red-400 mb-4 flex items-center gap-2",children:[e.jsx(Fm,{className:"w-4 h-4"}),"Danger Zone"]}),e.jsx("div",{className:"p-4 border border-red-200 dark:border-red-800/50 rounded-xl bg-red-50/50 dark:bg-red-900/10",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"Delete Account"}),ie?e.jsxs("div",{className:"mt-1 space-y-1",children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Your active subscription will be cancelled immediately with no refund. All your data will be permanently deleted."}),e.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-500",children:["Alternatively, you can"," ",e.jsx("button",{type:"button",onClick:()=>u("subscription"),className:"text-[#1E3A8A] dark:text-[#60A5FA] underline hover:no-underline font-medium",children:"cancel your subscription first"})," ","and continue using the service until the end of your billing period, then delete your account."]})]}):e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1",children:"This will permanently delete your account and all associated data. This action cannot be undone."})]}),e.jsxs("button",{type:"button",onClick:()=>{de(!0),me(""),Ie(null)},className:"inline-flex items-center gap-2 px-4 py-2 border border-red-300 dark:border-red-700 text-red-600 dark:text-red-400 rounded-lg hover:bg-red-100 dark:hover:bg-red-900/30 transition-colors font-medium text-sm whitespace-nowrap flex-shrink-0",children:[e.jsx(Pi,{className:"w-4 h-4"}),"Delete Account"]})]})})]})]})},ye=async()=>{if(N!=null&&N.license_key){z(!0);try{const P=await fetch(L.SUBSCRIBE_CANCEL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:N.license_key})}),K=await P.json().catch(()=>({}));if(!P.ok){A(K.error||"Failed to cancel plan");return}R(!1),A(null),await ke(),o()}finally{z(!1)}}},Ae=async()=>{if(N!=null&&N.license_key){B(!0),A(null);try{const P=await fetch(L.SUBSCRIBE_REACTIVATE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:N.license_key})}),K=await P.json().catch(()=>({}));if(!P.ok){A(K.error||"Failed to undo cancellation");return}await ke(),o()}finally{B(!1)}}},Ct=async P=>{if(N!=null&&N.license_key){_e({isOpen:!0,isLoading:!0,error:null,preview:null,packageId:P});try{const K=await fetch(L.PACKAGES_PREVIEW_ADD,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:N.license_key,packageId:P})}),G=await K.json();if(!K.ok||!G.success){_e(Me=>({...Me,isLoading:!1,error:G.error||"Failed to calculate proration preview"}));return}_e(Me=>({...Me,isLoading:!1,preview:{type:"package_add",...G.preview}}))}catch{_e(G=>({...G,isLoading:!1,error:"Failed to load preview. Please try again."}))}}},Xe=async()=>
407{if(!(!Be.preview||!(N!=null&&N.license_key)||!Be.packageId))try{const P=await fetch(L.PACKAGES_ADD,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:N.license_key,packageId:Be.packageId})}),K=await P.json();if(!P.ok||!K.success){_e(G=>({...G,error:K.error||"Failed to add package"}));return}_e({isOpen:!1,isLoading:!1,error:null,preview:null,packageId:null}),await ke(),o()}catch{_e(K=>({...K,error:"Failed to add package. Please try again."}))}},bt=async P=>{if(N!=null&&N.license_key){q(P),A(null);try{const K=await fetch(L.PACKAGES_REMOVE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({licenseKey:N.license_key,packageId:P,immediate:!1})}),G=await K.json().catch(()=>({}));if(!K.ok){A(G.error||"Failed to remove package");return}J(null),await ke()}finally{q(null)}}},Gt=()=>e.jsxs("div",{className:"space-y-6",children:[Re&&e.jsxs("div",{className:"p-4 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 rounded-xl flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-amber-800 dark:text-amber-200",children:"Cancellation scheduled"}),e.jsxs("p",{className:"text-sm text-amber-700 dark:text-amber-300 mt-0.5",children:["Your plan will cancel on ",je?re(je):"the end of your billing period",". You will keep access until then."]})]}),e.jsxs("button",{type:"button",onClick:Ae,disabled:te,className:"inline-flex items-center gap-2 px-4 py-2 bg-amber-600 hover:bg-amber-700 text-white rounded-lg text-sm font-medium disabled:opacity-50",children:[te?e.jsx(rt,{className:"w-4 h-4 animate-spin"}):e.jsx(Ar,{className:"w-4 h-4"}),"Undo cancellation"]})]}),e.jsxs("div",{className:"p-6 bg-gradient-to-r from-[#1E3A8A]/10 to-[#60A5FA]/10 dark:from-[#1E3A8A]/30 dark:to-[#60A5FA]/30 border border-[#1E3A8A]/20 rounded-xl",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-14 h-14 rounded-full bg-[#1E3A8A] flex items-center justify-center",children:e.jsx(ar,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-xl font-bold text-gray-900 dark:text-white",children:[I," Plan"]}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Your current subscription"}),Re&&je&&e.jsxs("p",{className:"text-sm text-amber-700 dark:text-amber-300 mt-0.5",children:["Valid through ",re(je)]})]})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${Re?"bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300":"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400"}`,children:Re?"Cancelling":"Active"})]}),e.jsx("div",{className:"space-y-2 mb-6",children:tt().map((P,K)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-700 dark:text-gray-300",children:[e.jsx(Ce,{className:"w-4 h-4 text-green-500"}),e.jsx("span",{children:P})]},K))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[(x==null?void 0:x.can_self_serve_upgrade)!==!1&&!Re&&e.jsxs(Pe,{to:"/pricing",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-colors font-medium",children:[e.jsx(nt,{className:"w-5 h-5"}),"Upgrade Plan",e.jsx($l,{className:"w-4 h-4"})]}),C&&e.jsxs("button",{type:"button",onClick:()=>R(!0),className:"inline-flex items-center gap-2 px-6 py-3 border border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 rounded-lg hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors font-medium",children:[e.jsx($0,{className:"w-5 h-5"}),"Cancel Plan"]})]})]}),T&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>!$&&R(!1),children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl max-w-md w-full p-6",onClick:P=>P.stopPropagation(),children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:"Cancel plan?"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"Your plan will be cancelled at the end of your current billing period. You will keep access until then. No further charges will be made."}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx("button",{type:"button",onClick:()=>!$&&R(!1),disabled:$,className:"px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 font-medium disabled:opacity-50",children:"Keep plan"}),e.jsxs("button",{type:"button",onClick:ye,disabled:$,className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-red-600 hover:bg-red-700 text-white font-medium disabled:opacity-50",children:[$&&e.jsx(rt,{className:"w-4 h-4 animate-spin"}),"Cancel at period end"]})]})]})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4 flex items-center gap-2",children:[e.jsx(kr,{className:"w-5 h-5 text-[#1E3A8A]"}),"Content Packages"]}),g?e.jsxs("div",{className:"space-y-4",children:[(g.included.length>0||g.purchased.length>0)&&e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-3",children:"Active Packages"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[g.included.map(P=>e.jsxs("div",{className:"p-4 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"font-medium text-green-800 dark:text-green-300",children:P.title??P.name}),e.jsx("span",{className:"text-xs px-2 py-0.5 bg-green-200 dark:bg-green-800 text-green-800 dark:text-green-200 rounded-full",children:"Included"})]}),(P.details??P.description)&&e.jsx("p",{className:"text-sm text-green-700 dark:text-green-400",children:P.details??P.description})]},P.id)),g.purchased.map(P=>e.jsxs("div",{className:"p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"font-medium text-blue-800 dark:text-blue-300",children:P.title??P.name}),e.jsxs("div",{className:"flex items-center gap-2",children:[P.price_usd&&e.jsxs("span",{className:"text-xs text-blue-600 dar
407k:text-blue-400",children:["$",P.price_usd.toFixed(2),"/mo"]}),e.jsx("span",{className:"text-xs px-2 py-0.5 bg-blue-200 dark:bg-blue-800 text-blue-800 dark:text-blue-200 rounded-full",children:"Add-on"})]})]}),(P.details??P.description)&&e.jsx("p",{className:"text-sm text-blue-700 dark:text-blue-400 mb-2",children:P.details??P.description}),e.jsx("button",{type:"button",onClick:()=>J({id:P.id,displayName:P.title??P.name}),disabled:W===P.id,className:"text-xs text-red-600 dark:text-red-400 hover:text-red-700 dark:hover:text-red-300 font-medium disabled:opacity-50",children:W===P.id?"Removing...":"Remove package"})]},P.id))]})]}),g.available.length>0&&e.jsxs("div",{children:[e.jsx("h4",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-3",children:"Available for Purchase"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:g.available.map(P=>{var K;return e.jsxs("div",{className:"p-4 bg-gray-50 dark:bg-gray-700/50 border border-gray-200 dark:border-gray-600 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"font-medium text-gray-800 dark:text-gray-200",children:P.title??P.name}),e.jsxs("span",{className:"text-sm font-medium text-[#1E3A8A] dark:text-[#60A5FA]",children:["$",(K=P.price_usd)==null?void 0:K.toFixed(2),"/mo"]})]}),(P.details??P.description)&&e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-2",children:P.details??P.description}),e.jsxs("button",{type:"button",onClick:()=>Ct(P.id),className:"inline-flex items-center gap-1 text-sm text-[#1E3A8A] dark:text-[#60A5FA] hover:text-[#1E3A8A]/80 dark:hover:text-[#60A5FA]/80 font-medium",children:[e.jsx(nt,{className:"w-3 h-3"}),"Add package"]})]},P.id)})})]}),g.included.length===0&&g.purchased.length===0&&g.available.length===0&&e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No packages available."})]}):e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Unable to load packages data."})]})]}),Wr=()=>e.jsx("div",{className:"space-y-6",children:p?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-6 bg-white dark:bg-gray-800/50 rounded-xl border border-gray-200 dark:border-gray-700",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Generations Used"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:p.generations.used}),e.jsxs("span",{className:"text-lg text-gray-500 dark:text-gray-400",children:["/ ",p.generations.included===999999999999?"Unlimited":p.generations.included]})]}),e.jsx("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-4",children:e.jsx("div",{className:`h-4 rounded-full transition-all ${ne(p.generations.percentage)}`,style:{width:`${Math.min(p.generations.percentage,100)}%`}})}),e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:[p.generations.remaining===999999999999?"Unlimited":p.generations.remaining," remaining"]}),e.jsxs("span",{className:`font-medium ${we(p.status)}`,children:[p.status==="normal"&&"Good",p.status==="warning"&&"Approaching limit",p.status==="exceeded"&&"Limit exceeded",p.status==="overage"&&"Using overage"]})]})]})]}),p.overage.enabled&&p.overage.used>0&&e.jsxs("div",{className:"p-6 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-xl",children:[e.jsx("h3",{className:"text-lg font-semibold text-yellow-800 dark:text-yellow-300 mb-4",children:"Overage Usage"}),e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-yellow-700 dark:text-yellow-400",children:"Overage generations"}),e.jsx("p",{className:"text-2xl font-bold text-yellow-900 dark:text-yellow-200",children:p.overage.used})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-yellow-700 dark:text-yellow-400",children:"Overage cost"}),e.jsxs("p",{className:"text-2xl font-bold text-yellow-900 dark:text-yellow-200",children:["$",p.overage.cost.toFixed(2)]})]})]}),e.jsxs("p",{className:"mt-4 text-sm text-yellow-700 dark:text-yellow-400",children:["Rate: $",p.overage.rate.toFixed(3)," per generation"]})]}),p.next_reset&&e.jsxs("div",{className:"p-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg flex items-center gap-3",children:[e.jsx(ki,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Usage resets on"}),e.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:re(p.next_reset)})]})]})]}):e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Unable to load usage data."})}),zs=()=>{var qe,Ot,Fe;const P=(x==null?void 0:x.price_usd)||0,K=((qe=g==null?void 0:g.purchased)==null?void 0:qe.reduce((Ue,ls)=>Ue+(ls.price_usd||0),0))||0,G=(p==null?void 0:p.overage.cost)||0,Me=P+K+G,Et=(g==null?void 0:g.purchased)&&g.purchased.length>0,ct=(p==null?void 0:p.overage.enabled)&&G>0;return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"p-6 bg-white dark:bg-gray-800/50 rounded-xl border border-gray-200 dark:border-gray-700",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Billing Summary"}),e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Current Plan"}),e.jsx("p",{className:"text-xl font-bold text-gray-900 dark:text-white",children:I}
407),Re&&je&&e.jsxs("p",{className:"text-sm text-amber-600 dark:text-amber-400 mt-0.5",children:["Valid through ",re(je)]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Estimated Monthly Total"}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:["$",Me.toFixed(2)]}),(Et||ct)&&e.jsxs("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-1",children:["Includes ",Et?"packages":"",Et&&ct?" & ":"",ct?"overages":""]})]})]}),e.jsxs("div",{className:"mt-6 pt-4 border-t border-gray-200 dark:border-gray-700",children:[e.jsxs("button",{onClick:()=>Z(!H),className:"flex items-center gap-2 text-sm font-medium text-[#1E3A8A] dark:text-[#60A5FA] hover:underline",children:[H?e.jsx(R0,{className:"w-4 h-4"}):e.jsx(Bl,{className:"w-4 h-4"}),H?"Hide":"View"," Itemized Bill"]}),H&&e.jsxs("div",{className:"mt-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-100 dark:border-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ar,{className:"w-4 h-4 text-[#1E3A8A] dark:text-[#60A5FA]"}),e.jsxs("span",{className:"text-gray-700 dark:text-gray-300",children:[I," Plan"]})]}),e.jsxs("span",{className:"font-medium text-gray-900 dark:text-white",children:["$",P.toFixed(2)]})]}),(Ot=g==null?void 0:g.purchased)==null?void 0:Ot.map(Ue=>e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-100 dark:border-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(kr,{className:"w-4 h-4 text-blue-500"}),e.jsxs("span",{className:"text-gray-700 dark:text-gray-300",children:[Ue.name," Package"]})]}),e.jsxs("span",{className:"font-medium text-gray-900 dark:text-white",children:["$",(Ue.price_usd||0).toFixed(2)]})]},Ue.id)),ct&&e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-gray-100 dark:border-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(nt,{className:"w-4 h-4 text-yellow-500"}),e.jsxs("span",{className:"text-gray-700 dark:text-gray-300",children:["Estimated Overages (",(p==null?void 0:p.overage.used)||0," generations @ $",(Fe=p==null?void 0:p.overage.rate)==null?void 0:Fe.toFixed(2),"/ea)"]})]}),e.jsxs("span",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:["+$",G.toFixed(2)]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 mt-2 border-t-2 border-gray-200 dark:border-gray-600",children:[e.jsx("span",{className:"font-semibold text-gray-900 dark:text-white",children:"Estimated Total"}),e.jsxs("span",{className:"text-xl font-bold text-gray-900 dark:text-white",children:["$",Me.toFixed(2)]})]})]})]})]}),e.jsxs("div",{className:"p-6 bg-white dark:bg-gray-800/50 rounded-xl border border-gray-200 dark:border-gray-700",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Payment History"}),e.jsxs("div",{className:"text-center py-8",children:[e.jsx(Si,{className:"w-12 h-12 text-gray-300 dark:text-gray-600 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Payment history will be available soon."}),e.jsx("p",{className:"text-sm text-gray-400 dark:text-gray-500 mt-1",children:"Stripe integration coming soon"})]})]})]})};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-8",children:"My Account"}),k&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg flex items-center gap-3",children:[e.jsx(Cs,{className:"w-5 h-5 text-red-600 dark:text-red-400"}),e.jsx("span",{className:"text-red-700 dark:text-red-300",children:k})]}),e.jsx("div",{className:"mb-6 border-b border-gray-200 dark:border-gray-700",children:e.jsx("nav",{className:"flex gap-1 -mb-px overflow-x-auto",children:yt.map(P=>e.jsxs("button",{onClick:()=>u(P.id),className:`flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-colors whitespace-nowrap ${c===P.id?"border-[#1E3A8A] text-[#1E3A8A] dark:border-[#60A5FA] dark:text-[#60A5FA]":"border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-600"}`,children:[P.icon,P.label]},P.id))})}),e.jsxs("div",{className:"bg-white dark:bg-gray-800/50 rounded-xl shadow-sm border border-gray-200 dark:border-gray-700 p-6",children:[c==="account"&&ae(),c==="subscription"&&Gt(),c==="usage"&&Wr(),c==="billing"&&zs()]})]})}),e.jsx(Ve,{}),he&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>!W&&J(null),children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl max-w-md w-full p-6",onClick:P=>P.stopPropagation(),children:[e.jsxs("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:["Remove ",he.displayName,"?"]}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"This package will be removed at the end of your current billing period. You will keep access until then."}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx("button",{type:"button",onClick:()=>!W&&J(null),disabled:!!W,className:"px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 font-medium disabled:opacity-50",children:"Keep package"}),e.jsxs("button",{type:"button",onClick:()=>bt(he.id),disabled:!!W,className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-red-600 hover:bg-red-700 text-white font-medium disabled:opacity-50",children:[W===he.id&&e.jsx(rt,{className:"w-4 h-4 animate-spin"}),"Remove package"]})]})]})}),e.jsx(Td,{isOpen:Be.isOpen,onClose:()=>_e({isOpen:!1,isLoading:!1,error:null,preview:null,packageId:null}),onConfirm:Xe,preview:Be.preview,isLoading:Be.isLoading,error:Be.error,modalType:"package_add"}),Y&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>!se&&de(!1),children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl max-w-md w-full p-6",onClick:P=>P.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx(Pi,{className:"w-5 h-5 text-red-600 dark:text-red-400"})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Delete Account"})]}),e.jsxs("div",{className:"space-y-3 mb-6",children:[ie&&e.jsx("div",{className:"p-3 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 rounded-lg",children:e.jsx("p",{className:"text-sm text-amber-800 dark:text-amber-300 font-medium",children:"Your active subscription will be cancelled immediately. No refund will be issued for the remaining billing period."})}),e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:["This action is ",e.jsx("span",{className:"font-semibold text-red-600 dark:text-red-400",children:"permanent and irreversible"}),". All your data, including your license, usage history, and preferences, will be deleted."]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"delete-confirm",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1.5",children:["Type ",e.jsx("span",{className:"font-mono font-bold text-red-600 dark:text-red-400",children:"DELETE"})," to confirm"]}),e.jsx("input",{id:"delete-confirm",type:"text",value:Te,onChange:P=>me(P.target.value),placeholder:"DELETE",autoComplete:"off",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white placeholder-gray-400 focus:ring-2 focus:ring-red-500 focus:border-red-500 text-sm"})]}),Ke&&e.jsxs("div",{className:"p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg flex items-center gap-2",children:[e.jsx(Cs,{className:"w-4 h-4 text-red-600 dark:text-red-400 flex-shrink-0"}),e.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:Ke})]})]}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx("button",{type:"button",onClick:()=>!se&&de(!1),disabled:se,className:"px-4 py-2 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 font-medium disabled:opacity-50",children:"Cancel"}),e.jsxs("button",{type:"button",onClick:ee,disabled:se||Te!=="DELETE",className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-red-600 hover:bg-red-700 text-white font-medium disabled:opacity-50 disabled:cursor-not-allowed",children:[se&&e.jsx(rt,{className:"w-4 h-4 animate-spin"}
407),"Delete My Account"]})]})]})})]})}function wr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wr=function(s){return typeof s}:wr=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},wr(t)}var Id="clover",N2=function(s){return s===3?"v3":s},_d="https://js.stripe.com",k2="".concat(_d,"/").concat(Id,"/stripe.js"),A2=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,S2=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var C2=function(s){return A2.test(s)||S2.test(s)},E2=function(){for(var s=document.querySelectorAll('script[src^="'.concat(_d,'"]')),r=0;r<s.length;r++){var a=s[r];if(C2(a.src))return a}return null},Ko=function(s){var r="",a=document.createElement("script");a.src="".concat(k2).concat(r);var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(a),a},P2=function(s,r){!s||!s._registerWrapper||s._registerWrapper({name:"stripe-js",version:"8.7.0",startTime:r})},hs=null,ur=null,hr=null,T2=function(s){return function(r){s(new Error("Failed to load Stripe.js",{cause:r}))}},I2=function(s,r){return function(){window.Stripe?s(window.Stripe):r(new Error("Stripe.js not available"))}},_2=function(s){return hs!==null?hs:(hs=new Promise(function(r,a){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var n=E2();if(!(n&&s)){if(!n)n=Ko(s);else if(n&&hr!==null&&ur!==null){var o;n.removeEventListener("load",hr),n.removeEventListener("error",ur),(o=n.parentNode)===null||o===void 0||o.removeChild(n),n=Ko(s)}}hr=I2(r,a),ur=T2(a),n.addEventListener("load",hr),n.addEventListener("error",ur)}catch(i){a(i);return}}),hs.catch(function(r){return hs=null,Promise.reject(r)}))},R2=function(s,r,a){if(s===null)return null;var n=r[0];if(typeof n!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(wr(n)," instead."));var o=n.match(/^pk_test/),i=N2(s.version),l=Id;o&&i!==l&&console.warn("Stripe.js@".concat(i," was loaded on the page, but @stripe/stripe-js@").concat("8.7.0"," expected Stripe.js@").concat(l,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var c=s.apply(void 0,r);return P2(c,a),c},ms,Rd=!1,Md=function(){return ms||(ms=_2(null).catch(function(s){return ms=null,Promise.reject(s)}),ms)};Promise.resolve().then(function(){return Md()}).catch(function(t){Rd||console.warn(t)});var M2=function(){for(var s=arguments.length,r=new Array(s),a=0;a<s;a++)r[a]=arguments[a];Rd=!0;var n=Date.now();return Md().then(function(o){return R2(o,r,n)})},va={exports:{}},wa,qo;function F2(){if(qo)return wa;qo=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wa=t,wa}var ja,Yo;function L2(){if(Yo)return ja;Yo=1;var t=F2();function s(){}function r(){}return r.resetWarningCache=s,ja=function(){function a(i,l,c,u,d,m){if(m!==t){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}a.isRequired=a;function n(){return a}var o={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:n,element:a,elementType:a,instanceOf:n,node:a,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:s};return o.PropTypes=o,o},ja}var Zo;function D2(){return Zo||(Zo=1,va.exports=L2()()),va.exports}var O2=D2();const ce=ml(O2);function Jo(t,s){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);s&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function Xo(t){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?Jo(Object(r),!0).forEach(function(a){Fd(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jo(Object(r)).forEac
vendor: 5,601 bytes, lines 407-408
407h(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function jr(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jr=function(s){return typeof s}:jr=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},jr(t)}function Fd(t,s,r){return s in t?Object.defineProperty(t,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[s]=r,t}function $2(t,s){if(t==null)return{};var r={},a=Object.keys(t),n,o;for(o=0;o<a.length;o++)n=a[o],!(s.indexOf(n)>=0)&&(r[n]=t[n]);return r}function V2(t,s){if(t==null)return{};var r=$2(t,s),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)a=o[n],!(s.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function Ld(t,s){return B2(t)||U2(t,s)||z2(t,s)||W2()}function B2(t){if(Array.isArray(t))return t}function U2(t,s){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var a=[],n=!0,o=!1,i,l;try{for(r=r.call(t);!(n=(i=r.next()).done)&&(a.push(i.value),!(s&&a.length===s));n=!0);}catch(c){o=!0,l=c}finally{try{!n&&r.return!=null&&r.return()}finally{if(o)throw l}}return a}}function z2(t,s){if(t){if(typeof t=="string")return Qo(t,s);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qo(t,s)}}function Qo(t,s){(s==null||s>t.length)&&(s=t.length);for(var r=0,a=new Array(s);r<s;r++)a[r]=t[r];return a}function W2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
408In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ze=function(s,r,a){var n=!!a,o=Q.useRef(a);Q.useEffect(function(){o.current=a},[a]),Q.useEffect(function(){if(!n||!s)return function(){};var i=function(){o.current&&o.current.apply(o,arguments)};return s.on(r,i),function(){s.off(r,i)}},[n,r,s,o])},sn=function(s){var r=Q.useRef(s);return Q.useEffect(function(){r.current=s},[s]),r.current},ss=function(s){return s!==null&&jr(s)==="object"},G2=function(s){return ss(s)&&typeof s.then=="function"},H2=function(s){return ss(s)&&typeof s.elements=="function"&&typeof s.createToken=="function"&&typeof s.createPaymentMethod=="function"&&typeof s.confirmCardPayment=="function"},el="[object Object]",K2=function t(s,r){if(!ss(s)||!ss(r))return s===r;var a=Array.isArray(s),n=Array.isArray(r);if(a!==n)return!1;var o=Object.prototype.toString.call(s)===el,i=Object.prototype.toString.call(r)===el;if(o!==i)return!1;if(!o&&!a)return s===r;var l=Object.keys(s),c=Object.keys(r);if(l.length!==c.length)return!1;for(var u={},d=0;d<l.length;d+=1)u[l[d]]=!0;for(var m=0;m<c.length;m+=1)u[c[m]]=!0;var x=Object.keys(u);if(x.length!==l.length)return!1;var y=s,p=r,j=function(w){return t(y[w],p[w])};return x.every(j)},q2=function(s,r,a){return ss(s)?Object.keys(s).reduce(function(n,o){var i=!ss(r)||!K2(s[o],r[o]);return a.includes(o)?(i&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),n):i?Xo(Xo({},n||{}),{},Fd({},o,s[o])):n},null):null},Dd="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",tl=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dd;if(s===null||H2(s))return s;throw new Error(r)},Y2=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dd;if(G2(s))return{tag:"async",stripePromise:Promise.resolve(s).then(function(n){return tl(n,r)})};var a=tl(s,r);return a===null?{tag:"empty"}:{tag:"sync",stripe:a}},Z2=function(s){!s||!s._registerWrapper||!s.registerAppInfo||(s._registerWrapper({name:"react-stripe-js",version:"5.6.0"}),s.registerAppInfo({name:"react-stripe-js",version:"5.6.0",url:"https://stripe.com/docs/stripe-js/react"}))},Od=Q.createContext(null);Od.displayName="ElementsContext";var J2=function(s,r){if(!s)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return s};ce.any,ce.object;ce.func.isRequired;var $d=Q.createContext(null);$d.displayName="CheckoutContext";ce.any,ce.shape({clientSecret:ce.oneOfType([ce.string,ce.instanceOf(Promise)]).isRequired,elementsOptions:ce.object}).isRequired;var sl=function(s){var r=Q.useContext($d),a=Q.useContext(Od);if(r){if(a)throw new Error("You cannot wrap the part of your app that ".concat(s," in both <CheckoutProvider> and <Elements> providers."));return r}else return J2(a,s)},X2=["mode"],Q2=function(s){return s.charAt(0).toUpperCase()+s.slice(1)},Je=function(s,r){var a="".concat(Q2(s),"Element"),n=function(c){var u=c.id,d=c.className,m=c.options,x=m===void 0?{}:m,y=c.onBlur,p=c.onFocus,j=c.onReady,g=c.onChange,w=c.onEscape,v=c.onClick,b=c.onLoadError,k=c.onLoaderStart,A=c.onNetworksChange,E=c.onConfirm,M=c.onCancel,T=c.onShippingAddressChange,R=c.onShippingRateChange,$=c.onSavedPaymentMethodRemove,z=c.onSavedPaymentMethodUpdate,te=sl("mounts <".concat(a,">")),B="elements"in te?te.elements:null,W="checkoutState"in te?te.checkoutState:null,q=(W==null?void 0:W.type)==="success"||(W==null?void 0:W.type)==="loading"?W.sdk:null,he=Q.useState(null),J=Ld(he,2),H=J[0],Z=J[1],Y=Q.useRef(null),de=Q.useRef(null);ze(H,"blur",y),ze(H,"focus",p),ze(H,"escape",w),ze(H,"click",v),ze(H,"loaderror",b),ze(H,"loaderstart",k),ze(H,"networksch
408ange",A),ze(H,"confirm",E),ze(H,"cancel",M),ze(H,"shippingaddresschange",T),ze(H,"shippingratechange",R),ze(H,"savedpaymentmethodremove",$),ze(H,"savedpaymentmethodupdate",z),ze(H,"change",g);var Te;j&&(s==="expressCheckout"?Te=j:Te=function(){j(H)}),ze(H,"ready",Te),Q.useLayoutEffect(function(){if(Y.current===null&&de.current!==null&&(B||q)){var se=null;if(q)switch(s){case"paymentForm":se=q.createPaymentFormElement(x);break;case"payment":se=q.createPaymentElement(x);break;case"address":if("mode"in x){var fe=x.mode,Ke=V2(x,X2);if(fe==="shipping")se=q.createShippingAddressElement(Ke);else if(fe==="billing")se=q.createBillingAddressElement(Ke);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":se=q.createExpressCheckoutElement(x);break;case"currencySelector":se=q.createCurrencySelectorElement();break;case"taxId":se=q.createTaxIdElement(x);break;default:throw new Error("Invalid Element type ".concat(a,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else B&&(se=B.create(s,x));Y.current=se,Z(se),se&&se.mount(de.current)}},[B,q,x]);var me=sn(x);return Q.useEffect(function(){if(Y.current){var se=q2(x,me,["paymentRequest"]);se&&"update"in Y.current&&Y.current.update(se)}},[x,me]),Q.useLayoutEffect(function(){return function(){if(Y.current&&typeof Y.current.destroy=="function")try{Y.current.destroy(),Y.current=null}catch{}}},[]),Q.createElement("div",{id:u,className:d,ref:de})},o=function(c){sl("mounts <".concat(a,">"));var u=c.id,d=c.className;return Q.createElement("div",{id:u,className:d})},i=r?o:n;return i.propTypes={id:ce.string,className:ce.string,onChange:ce.func,onBlur:ce.func,onFocus:ce.func,onReady:ce.func,onEscape:ce.func,onClick:ce.func,onLoadError:ce.func,onLoaderStart:ce.func,onNetworksChange:ce.func,onConfirm:ce.func,onCancel:ce.func,onShippingAddressChange:ce.func,onShippingRateChange:ce.func,onSavedPaymentMethodRemove:ce.func,onSavedPaymentMethodUpdate:ce.func,options:ce.object},i.displayName=a,i.__elementType=s,i},He=typeof window>"u",Zn=Q.createContext(null);Zn.displayName="EmbeddedCheckoutProviderContext";var Vd=function(){var s=Q.useContext(Zn);if(!s)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return s},ey="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ty=function(s){var r=s.stripe,a=s.options,n=s.children,o=Q.useMemo(function(){return Y2(r,ey)},[r]),i=Q.useRef(null),l=Q.useRef(null),c=Q.useState({embeddedCheckout:null}),u=Ld(c,2),d=u[0],m=u[1];Q.useEffect(function(){if(!(l.current||i.current)){var p=function(g){l.current||i.current||(l.current=g,i.current=l.current.initEmbeddedCheckout(a).then(function(w){m({embeddedCheckout:w})}))};o.tag==="async"&&!l.current&&(a.clientSecret||a.fetchClientSecret)?o.stripePromise.then(function(j){j&&p(j)}):o.tag==="sync"&&!l.current&&(a.clientSecret||a.fetchClientSecret)&&p(o.stripe)}},[o,a,d,l]),Q.useEffect(function(){return function(){d.embeddedCheckout?(i.current=null,d.embeddedCheckout.destroy()):i.current&&i.current.then(function(){i.current=null,d.embeddedCheckout&&d.embeddedCheckout.destroy()})}},[d.embeddedCheckout]),Q.useEffect(function(){Z2(l)},[l]);var x=sn(r);Q.useEffect(function(){x!==null&&x!==r&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[x,r]);var y=sn(a);return Q.useEffect(function(){if(y!=null){if(a==null){console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");return}a.clientSecret===void 0&&a.fetchClientSecret===void 0&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),y.clientSecret!=null&&a.clientSecret!==y.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),y.fetchClientSecret!=null&&a.fetchClientSecret!==y.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),y.onComplete!=null&&a.onComplete!==y.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),y.onShippingDetailsChange!=null&&a.onShippingDetailsChange!==y.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),y.onLineItemsChange!=null&&a.onLineItemsChange!==y.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[y,a]),Q.createElement(Zn.Provider,{value:d},n)},sy=function(s){var r=s.id,a=s.className,n=Vd(),o=n.embeddedCheckout,i=Q.useRef(!1),l=Q.useRef(null);return Q.useLayoutEffect(function(){return!i.current&&o&&l.current!==null&&(o.mount(l.current),i.current=!0),function(){if(i.current&&o)try{o.unmount(),i.current=!1}catch{}}}
408,[o]),Q.createElement("div",{ref:l,id:r,className:a})},ry=function(s){var r=s.id,a=s.className;return Vd(),Q.createElement("div",{id:r,className:a})},ay=He?ry:sy;Je("auBankAccount",He);Je("card",He);Je("cardNumber",He);Je("cardExpiry",He);Je("cardCvc",He);Je("iban",He);Je("payment",He);Je("expressCheckout",He);Je("paymentRequestButton",He);Je("linkAuthentication",He);Je("address",He);Je("shippingAddress",He);Je("paymentMethodMessaging",He);Je("taxId",He);const ny=M2("pk_test_placeholder");function iy(){const t=Ze(),[s]=Lt(),{isAuthenticated:r,user:a,license:n,isLoading:o}=et(),[i,l]=h.useState(null),[c,u]=h.useState(!0),[d,m]=h.useState(null),x=h.useCallback(async()=>{const j=s.get("type")||"new_subscription",g=s.get("plan"),w=s.get("package"),v=s.get("billing")||"monthly",b=s.get("included_package_id"),k=s.get("coupon");if(!(a!=null&&a.email)){m("Please sign in to continue"),u(!1);return}try{let A,E;if(j==="plan_change"&&g&&(n!=null&&n.license_key))A=L.SUBSCRIBE_CHECKOUT_PLAN_CHANGE,E={licenseKey:n.license_key,newPlan:g,billingInterval:v,uiMode:"embedded",...b?{included_package_id:b}:{}};else if(j==="package_addon"&&w&&(n!=null&&n.license_key))A=L.PACKAGES_ADD,E={licenseKey:n.license_key,packageId:w,uiMode:"embedded"};else if(g)A=L.SUBSCRIBE_CHECKOUT,E={plan:g,email:a.email,billingInterval:v,uiMode:"embedded",...b?{included_package_id:b}:{},...k?{coupon:k}:{}};else{m("Invalid checkout parameters"),u(!1);return}const M=await fetch(A,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)}),T=await M.json();if(!M.ok)throw new Error(T.error||"Failed to create checkout session");if(!T.client_secret)throw new Error("No client secret returned from server");l({clientSecret:T.client_secret,checkoutType:j,planName:T.plan||T.new_plan||g,packageName:T.package_name,priceUsd:T.price_usd,billingInterval:v}),u(!1)}catch(A){console.error("Checkout error:",A),m(A instanceof Error?A.message:"Failed to initialize checkout"),u(!1)}},[s,a==null?void 0:a.email,n==null?void 0:n.license_key]);h.useEffect(()=>{if(!o&&!r){t("/pricing");return}!o&&r&&a&&x()},[o,r,a,x,t]);const y=()=>{const j=s.get("type");t(j==="package_addon"?"/account?tab=subscription":"/pricing")};if(o||c)return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-16",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[e.jsx(rt,{className:"w-8 h-8 animate-spin text-[#1E3A8A]"}),e.jsx("span",{className:"mt-4 text-gray-600 dark:text-gray-400",children:"Preparing checkout..."})]})})}),e.jsx(Ve,{})]});if(d)return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-16",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center mb-4",children:e.jsx(Cs,{className:"w-8 h-8 text-red-600 dark:text-red-400"})}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Checkout Error"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-center mb-6",children:d}),e.jsxs("button",{onClick:y,className:"inline-flex items-center gap-2 px-6 py-3 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-colors font-medium",children:[e.jsx(Ni,{className:"w-4 h-4"}),"Go Back"]})]})})}),e.jsx(Ve,{})]});if(!(i!=null&&i.clientSecret))return null;const p=()=>{switch(i.checkoutType){case"plan_change":return`Upgrade to ${i.planName}`;case"package_addon":return`Add ${i.packageName} Package`;default:return`Subscribe to ${i.planName}`}};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-16",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("button",{onClick:y,className:"inline-flex items-center gap-2 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white mb-6 transition-colors",children:[e.jsx(Ni,{className:"w-4 h-4"}),"Back"]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-2",children:p()}),i.billingInterval&&i.checkoutType!=="package_addon"&&e.jsxs("p",{className:"text-gray-600 dark:text-gray-400",children:["Billing: ",i.billingInterval==="yearly"?"Annual":"Monthly"]})]}),e.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden border border-gray-200 dark:border-gray-700",children:e.jsx(ty,{stripe:ny,options:{clientSecret:i.clientSecret},children:e.jsx(ay,{className:"stripe-embedded-checkout"})})}),e.jsx("p",{className:"text-center text-xs text-gray-500 dark:text-gray-400 mt-4",children:"Secure payment powered by Stripe. Your payment information is encrypted and secure."})]})}),e.jsx(Ve,{})]})}
408function oy(){const t=Ze(),[s]=Lt(),{refreshLicense:r,isAuthenticated:a,user:n}=et(),o=h.useRef(!1),[i,l]=h.useState({status:"loading"}),[c,u]=h.useState(!1),[d,m]=h.useState(!1),x=async()=>{i.licenseKey&&(await navigator.clipboard.writeText(i.licenseKey),u(!0),setTimeout(()=>u(!1),2e3))};return h.useEffect(()=>{if(o.current)return;const y=s.get("session_id");if(!y){l({status:"error",message:"No session ID found. Please try again."});return}(async()=>{o.current=!0;try{const j=await fetch(`${L.SUBSCRIBE_SESSION_SUCCESS}?session_id=${encodeURIComponent(y)}`,{method:"GET"}),g=await j.json();if(!j.ok||!g.success)throw new Error(g.error||"Failed to verify checkout session");await r(),Dl(g.plan||g.new_plan||"unknown",g.license_key),l({status:"success",planName:g.plan||g.new_plan,packageName:g.package_name,licenseKey:g.license_key,message:g.message}),g.license_key&&await hn(g.license_key,g.plan||g.new_plan||"free")&&m(!0),setTimeout(()=>{window.location.href="/account?tab=subscription"},5e3)}catch(j){console.error("Session verification error:",j),l({status:"error",message:j instanceof Error?j.message:"Failed to verify checkout"})}})()},[s,r,t]),e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white to-gray-50 dark:from-[#0A1628] dark:to-[#0A1628]",children:[e.jsx($e,{}),e.jsx("main",{className:"pt-24 pb-16",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[i.status==="loading"&&e.jsxs(e.Fragment,{children:[e.jsx(rt,{className:"w-12 h-12 animate-spin text-[#1E3A8A] mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Processing your payment..."}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"Please wait while we confirm your subscription."})]}),i.status==="success"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center mb-4",children:e.jsx(le,{className:"w-10 h-10 text-green-600 dark:text-green-400"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:"Payment Successful!"}),i.planName&&e.jsxs("p",{className:"text-lg text-gray-700 dark:text-gray-300 mb-2",children:["Welcome to ",i.planName,"!"]}),i.packageName&&e.jsxs("p",{className:"text-lg text-gray-700 dark:text-gray-300 mb-2",children:[i.packageName," package has been added."]}),i.licenseKey&&e.jsxs("div",{className:"w-full max-w-md bg-gray-100 dark:bg-gray-800 rounded-lg p-4 mb-6",children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-2",children:"Your License Key:"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("code",{className:"flex-1 bg-white dark:bg-gray-900 px-3 py-2 rounded text-sm font-mono text-gray-900 dark:text-white border border-gray-200 dark:border-gray-700",children:i.licenseKey}),e.jsx("button",{onClick:x,className:"p-2 bg-[#1E3A8A] text-white rounded hover:bg-[#1E3A8A]/90 transition-colors",title:"Copy license key",children:c?e.jsx(Ce,{className:"w-4 h-4"}):e.jsx(zt,{className:"w-4 h-4"})})]}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-2",children:d?"License key has been sent to your xReplAI extension!":"Save this key to activate your extension."})]}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-6",children:"Redirecting to your account in 5 seconds..."}),e.jsx("button",{onClick:()=>{window.location.href="/account?tab=subscription"},className:"inline-flex items-center gap-2 px-6 py-3 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-colors font-medium",children:"Go to My Account"})]}),i.status==="error"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center mb-4",children:e.jsx(Cs,{className:"w-10 h-10 text-red-600 dark:text-red-400"})}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Something went wrong"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-center mb-6",children:i.message}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("button",{onClick:()=>t("/pricing"),className:"inline-flex items-center gap-2 px-6 py-3 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors font-medium",children:"Back to Pricing"}),e.jsx("button",{onClick:()=>t("/account"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-colors font-medium",children:"Go to Account"})]})]})]})})}),e.jsx(Ve,{})]})}function ly(){const[t,s]=h.useState(!1),{isAuthenticated:r}=et(),a=Ze(),n=()=>{Ss("free","monthly",0),r?a("/account"):s(!0)},o=()=>{a("/pricing")};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-[#1E3A8A] via-[#0F2847] to-[#1E3A8A]",children:[e.jsx($e,{}),e.jsxs("main",{children:[e.jsx("section",{className:"pt-32 pb-20 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-5xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20}
408,animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsx("span",{className:"inline-block px-4 py-2 bg-[#60A5FA]/20 text-[#60A5FA] rounded-full text-sm font-semibold mb-6 border border-[#60A5FA]/30",children:"Built for Sales Teams"}),e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-white mb-6 leading-tight",children:["Close More Deals,",e.jsx("br",{}),e.jsx("span",{className:"text-[#60A5FA]",children:"Write Fewer Emails"})]}),e.jsx("p",{className:"text-xl sm:text-2xl text-white/80 max-w-3xl mx-auto mb-10",children:"Stop spending 5 minutes per email reply. xReplAI generates multi-variant drafts that match your writing style in seconds -- directly inside Gmail and LinkedIn."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-[#60A5FA] text-white font-semibold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg shadow-[#60A5FA]/30 text-lg",children:["Get Started Free",e.jsx(Oe,{size:20})]}),e.jsx("button",{onClick:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-semibold rounded-lg hover:bg-white/20 transition-all border border-white/20 text-lg",children:"Compare Plans"})]}),e.jsx("p",{className:"text-sm text-white/50 mt-4",children:"Free plan includes 30 generations/month. No credit card required."})]})})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Sound Familiar?"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"The daily grind of a high-volume sales rep"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{icon:Es,title:"3+ hours/day on email",description:"Writing follow-ups, responding to prospects, and personalizing outreach eats your selling time.",stat:"72%",statLabel:"of SDRs say email takes too long"},{icon:bs,title:"Generic replies lose deals",description:"Copy-paste templates feel impersonal. Prospects can tell when a reply isn't written for them.",stat:"2.6x",statLabel:"higher reply rate with personalized emails"},{icon:Cr,title:"Inconsistent tone kills trust",description:"Switching between assertive closes and gentle nurtures is mentally exhausting. One wrong tone can derail a deal.",stat:"41%",statLabel:"of deals lost due to poor communication"}].map((i,l)=>e.jsxs(_.div,{className:"bg-white/5 backdrop-blur-sm rounded-2xl p-8 border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:[e.jsx(i.icon,{size:32,className:"text-red-400 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:i.title}),e.jsx("p",{className:"text-white/70 mb-6",children:i.description}),e.jsxs("div",{className:"border-t border-white/10 pt-4",children:[e.jsx("span",{className:"text-3xl font-bold text-[#60A5FA]",children:i.stat}),e.jsx("p",{className:"text-xs text-white/50 mt-1",children:i.statLabel})]})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"How xReplAI Supercharges Your Sales Emails"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"AI-powered drafts that sound like you wrote them -- in seconds, not minutes"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:[{icon:nt,title:"Instant Multi-Variant Drafts",description:"Click one button and get 2-4 draft variants, each with a different tone and approach. Compare them side by side and insert your favorite.",highlight:"30 seconds vs. 5 minutes"},{icon:Rt,title:"Style Matching That Sounds Like You",description:"xReplAI learns your writing patterns -- vocabulary, sentence structure, formality -- and replicates them. Prospects will never know AI helped.",highlight:"Your voice, amplified"},{icon:Or,title:"Context-Aware Sales Responses",description:"The AI reads the full thread context, detects if it's a cold follow-up, objection handling, or closing conversation, and tailors the draft accordingly.",highlight:"Smart context detection"},{icon:bs,title:"Sales-Specific Content Package",description:"Specialized for outreach, follow-ups, proposals, objection handling, and closing. Every draft is optimized for the sales workflow.",highlight:"Built for selling"}].map((i,l)=>e.jsx(_.div,{className:"bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-sm rounded-2xl p-8 border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-xl bg-[#60A5FA]/20 flex items-center justify-center",children:e.jsx(i.icon,{size:24,className:"text-[#60A5FA]"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:i.title}),e.jsx("p",{className:"text-white/70 mb-3",children:i.description}),e.jsx("span",{className:"inline-block px-3 py-1 bg-[#60A5FA]/10 text-[#60A5FA] rounded-full text-sm font-medium border border-[#60A5FA]/20",children:i.highlight})]})]})},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Works Where You Work"}),e.jsx("p",{className:"text-lg text-white/70",children:"Chrome extension -- no new tabs, no copy-
408paste, no workflow disruption"})]}),e.jsx("div",{className:"space-y-8",children:[{step:"1",title:"Open any email in Gmail or LinkedIn message",description:"xReplAI activates automatically when you click reply or compose."},{step:"2",title:"Click the xReplAI button",description:"The extension reads the conversation context, detects the email type, and suggests appropriate goals and tones."},{step:"3",title:"Review and insert your draft",description:"Compare 2-4 variants, pick the best one, and insert it into the compose box with one click. Edit if needed and send."}].map((i,l)=>e.jsxs(_.div,{className:"flex items-start gap-6",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:l*.15},children:[e.jsx("div",{className:"flex-shrink-0 w-14 h-14 rounded-2xl bg-[#60A5FA] flex items-center justify-center text-white text-xl font-bold shadow-lg shadow-[#60A5FA]/30",children:i.step}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-1",children:i.title}),e.jsx("p",{className:"text-white/70",children:i.description})]})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsx(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Why Sales Professionals Choose xReplAI"})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{metric:"70%",label:"Less time on email replies",description:"What took 5 minutes now takes under 30 seconds"},{metric:"4x",label:"More emails per hour",description:"Handle higher volume without sacrificing quality"},{metric:"100%",label:"Your voice, every time",description:"Style matching ensures every draft sounds authentically you"}].map((i,l)=>e.jsxs(_.div,{className:"text-center p-8 bg-white/5 rounded-2xl border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:[e.jsx("div",{className:"text-4xl font-bold text-[#60A5FA] mb-2",children:i.metric}),e.jsx("div",{className:"text-lg font-semibold text-white mb-2",children:i.label}),e.jsx("div",{className:"text-sm text-white/60",children:i.description})]},l))}),e.jsxs(_.div,{className:"mt-12 bg-gradient-to-br from-white/10 to-white/5 rounded-2xl p-8 border border-white/10 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},children:[e.jsx(pn,{size:32,className:"text-yellow-400 mx-auto mb-4"}),e.jsx("blockquote",{className:"text-lg text-white/90 italic mb-4 max-w-2xl mx-auto",children:'"xReplAI has completely changed how I handle my inbox. I used to spend the first 2 hours of my day just on email replies. Now I knock them out in 20 minutes and spend the rest of my time selling."'}),e.jsx("p",{className:"text-white/60 text-sm",children:"-- Early Access User, SDR at a SaaS Company"})]})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsx("div",{className:"max-w-4xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Start Free, Scale When Ready"}),e.jsx("p",{className:"text-lg text-white/70 mb-10 max-w-2xl mx-auto",children:"Try xReplAI with 30 free generations per month. When you're ready for more, upgrade to Pro for unlimited drafts, style matching, and premium AI models."}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6 max-w-2xl mx-auto mb-10",children:[e.jsxs("div",{className:"bg-white/5 rounded-2xl p-6 border border-white/10",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Free"}),e.jsx("div",{className:"text-3xl font-bold text-white mb-1",children:"$0"}),e.jsx("p",{className:"text-sm text-white/60 mb-4",children:"forever"}),e.jsxs("ul",{className:"text-left text-sm text-white/70 space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," 30 generations/month"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," Gmail + LinkedIn"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," 2 draft variants"]})]})]}),e.jsxs("div",{className:"bg-gradient-to-br from-[#1E3A8A] to-[#60A5FA] rounded-2xl p-6 border border-[#60A5FA]/50 relative",children:[e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-[#60A5FA] text-white rounded-full text-xs font-semibold",children:"Most Popular"}),e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Pro"}),e.jsxs("div",{className:"text-3xl font-bold text-white mb-1",children:["$30",e.jsx("span",{className:"text-lg font-normal",children:"/mo"})]}),e.jsx("p",{className:"text-sm text-white/70 mb-4",children:"or $252/year (save 30%)"}),e.jsxs("ul",{className:"text-left text-sm text-white/90 space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," 500 generations/month"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," Style matching"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," Sales package included"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," GPT-4o + Claude + Grok"]})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-[#60A5FA] text-white font-semibold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg shadow-[#60A5FA]/30",children:["Get Started Free",e.jsx(Oe,{size:20})]}),e.jsx("button",{onClick:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-semibold rounded-lg hover:bg-white/20 transition-all border border-white/20",children:"Compare All Plans"})]})]})})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-3xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Ready to Get Your Time Back?"}),e.jsx("p",{className:"text-lg text-white/70 mb-8 max-w-xl mx-auto",children:"Join sales professionals who are writing better emails in less t
408ime. Set up takes under 2 minutes."}),e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#60A5FA] text-white font-bold rounded-lg hover:bg-[#60A5FA]/90 transition-all shadow-lg shadow-[#60A5FA]/30 text-lg",children:["Start Free Today",e.jsx(Oe,{size:22})]})]})})})]}),e.jsx(Ve,{}),e.jsx(Os,{isOpen:t,onClose:()=>s(!1)})]})}function cy(){const[t,s]=h.useState(!1),{isAuthenticated:r}=et(),a=Ze(),n=()=>{Ss("free","monthly",0),r?a("/account"):s(!0)},o=()=>{a("/pricing")};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-[#0F2847] via-[#1a1a2e] to-[#16213e]",children:[e.jsx($e,{}),e.jsxs("main",{children:[e.jsx("section",{className:"pt-32 pb-20 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-5xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsx("span",{className:"inline-block px-4 py-2 bg-emerald-500/20 text-emerald-400 rounded-full text-sm font-semibold mb-6 border border-emerald-500/30",children:"For IT Professionals & Job Seekers"}),e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-white mb-6 leading-tight",children:["Land Your Dream Job",e.jsx("br",{}),e.jsx("span",{className:"text-emerald-400",children:"With Perfect Emails"})]}),e.jsx("p",{className:"text-xl sm:text-2xl text-white/80 max-w-3xl mx-auto mb-4",children:"Stop spending hours crafting the perfect email to recruiters and hiring managers. xReplAI generates polished, professional drafts in seconds -- in flawless English, every time."}),e.jsx("p",{className:"text-lg text-white/60 max-w-2xl mx-auto mb-10",children:"Whether English is your first language or your third, xReplAI ensures every message you send sounds like it came from a native professional."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-emerald-500 text-white font-semibold rounded-lg hover:bg-emerald-500/90 transition-all shadow-lg shadow-emerald-500/30 text-lg",children:["Get Started Free",e.jsx(Oe,{size:20})]}),e.jsx("button",{onClick:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-semibold rounded-lg hover:bg-white/20 transition-all border border-white/20 text-lg",children:"Compare Plans"})]}),e.jsx("p",{className:"text-sm text-white/50 mt-4",children:"Free plan includes 30 generations/month. No credit card required."})]})})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"The Job Search Email Struggle"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"Sound familiar? You're not alone."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{icon:Es,title:"45 minutes per application email",description:"You rewrite the same email over and over, second-guessing every word. Is it too formal? Too casual? Does it sound natural?",stat:"85%",statLabel:"of job seekers say writing emails is the most stressful part"},{icon:Wl,title:'"Does this sound right in English?"',description:"You know you're qualified. But translating your expertise into polished, professional English emails feels like a second job.",stat:"3.2x",statLabel:"longer for non-native speakers to write professional emails"},{icon:Sm,title:"Dozens of emails, zero replies",description:"Recruiters read hundreds of messages daily. Generic, awkward, or poorly written emails get ignored instantly -- no matter how qualified you are.",stat:"70%",statLabel:"of recruiter outreach emails never get a response"}].map((i,l)=>e.jsxs(_.div,{className:"bg-white/5 backdrop-blur-sm rounded-2xl p-8 border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:[e.jsx(i.icon,{size:32,className:"text-red-400 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:i.title}),e.jsx("p",{className:"text-white/70 mb-6",children:i.description}),e.jsxs("div",{className:"border-t border-white/10 pt-4",children:[e.jsx("span",{className:"text-3xl font-bold text-emerald-400",children:i.stat}),e.jsx("p",{className:"text-xs text-white/50 mt-1",children:i.statLabel})]})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Your Unfair Advantage in the Job Market"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"xReplAI doesn't just fix your grammar -- it writes complete professional emails that impress hiring managers"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:[{icon:Ul,title:"Native-Level Professional English",description:"Every draft reads like it was written by a native English speaker with years of corporate experience. Perfect grammar, natural idioms, professional tone.",highlight:"Sound like a native speaker"},{icon:nt,title:"From Blank Screen to Polished Email in 10 Seconds",description:"Stop staring at a blank compose window. Click one button and get 2-4 complete draft options. Pick the best one, tweak if needed, and send.",highlight:"10 seconds vs. 45 minutes"},{icon:mn,title:"Context-Aware Responses",description:"Replying to a recruiter? Following up after an interview? Negotiating an offer? xReplAI reads the conversation and tailors the response to the exact situation.",highlight:"Knows what to say and when"},{icon:Or,title:"Works in Gmail & LinkedIn",description:"Use it right where you communicate with recruiters and hiring managers. No copying, no pasting, no switching tabs. One 
408click inside your inbox or LinkedIn messages.",highlight:"Chrome extension, zero friction"}].map((i,l)=>e.jsx(_.div,{className:"bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-sm rounded-2xl p-8 border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-xl bg-emerald-500/20 flex items-center justify-center",children:e.jsx(i.icon,{size:24,className:"text-emerald-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:i.title}),e.jsx("p",{className:"text-white/70 mb-3",children:i.description}),e.jsx("span",{className:"inline-block px-3 py-1 bg-emerald-500/10 text-emerald-400 rounded-full text-sm font-medium border border-emerald-500/20",children:i.highlight})]})]})},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Every Job Search Email, Handled"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"xReplAI generates professional drafts for every stage of your job search"})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[{title:"Cold outreach to recruiters",description:"Introduce yourself professionally and express interest in open roles"},{title:"Respond to recruiter messages",description:"Reply to LinkedIn InMails and emails with confidence and clarity"},{title:"Follow up after applications",description:"Polite, persistent follow-ups that keep you top-of-mind"},{title:"Thank you after interviews",description:"Thoughtful post-interview emails that reinforce your candidacy"},{title:"Salary negotiations",description:"Professionally articulate your expectations without being pushy"},{title:"Networking introductions",description:"Reach out to connections for referrals with the right tone"}].map((i,l)=>e.jsxs(_.div,{className:"bg-white/5 rounded-xl p-6 border border-white/10",initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:l*.08},children:[e.jsx(Vl,{size:20,className:"text-emerald-400 mb-3"}),e.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:i.title}),e.jsx("p",{className:"text-sm text-white/60",children:i.description})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"3 Steps to Better Job Search Emails"}),e.jsx("p",{className:"text-lg text-white/70",children:"Install once, use everywhere you communicate with recruiters"})]}),e.jsx("div",{className:"space-y-8",children:[{step:"1",title:"Install the Chrome extension (2 minutes)",description:"Add xReplAI from the Chrome Web Store. It works instantly in Gmail and LinkedIn -- no configuration needed."},{step:"2",title:"Open any recruiter email or LinkedIn message",description:"When you click reply or compose, xReplAI reads the conversation context and understands what kind of response is needed."},{step:"3",title:"Pick a draft and send with confidence",description:"Get 2-4 professionally written draft options. Choose the one that fits, make any tweaks, and hit send -- knowing your English is perfect."}].map((i,l)=>e.jsxs(_.div,{className:"flex items-start gap-6",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:l*.15},children:[e.jsx("div",{className:"flex-shrink-0 w-14 h-14 rounded-2xl bg-emerald-500 flex items-center justify-center text-white text-xl font-bold shadow-lg shadow-emerald-500/30",children:i.step}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-1",children:i.title}),e.jsx("p",{className:"text-white/70",children:i.description})]})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsx(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"The Edge You Need in a Competitive Market"})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:[{metric:"10x",label:"Faster email writing",description:"What took 45 minutes now takes under a minute"},{metric:"100%",label:"Professional English",description:"Every email reads like it was written by a native speaker"},{metric:"30",label:"Free drafts per month",description:"Enough to power your entire active job search -- for free"}].map((i,l)=>e.jsxs(_.div,{className:"text-center p-8 bg-white/5 rounded-2xl border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:[e.jsx("div",{className:"text-4xl font-bold text-emerald-400 mb-2",children:i.metric}),e.jsx("div",{className:"text-lg font-semibold text-white mb-2",children:i.label}),e.jsx("div",{className:"text-sm text-white/60",children:i.description})]},l))}),e.jsxs(_.div,{className:"mt-12 bg-gradient-to-br from-white/10 to-white/5 rounded-2xl p-8 border border-white/10 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},children:[e.jsx(pn,{size:32,className:"text-yellow-400 mx-auto mb-4"}),e.jsx("blockquote",{className:"text-lg text-white/90 italic mb-4 max-w-2xl mx-auto",children:'"I was sending 20+ emails a day to recruiters and spending my entire morning just writing them. With xReplAI, I draft all my responses in minutes. The English sounds perfect every time -- I actually got compliments from a US hiring manager on my communication skills."'}),e.jsx("p",{className:"text-white/60 text-sm",children:"-- Senior Softw
408are Engineer, Job Seeker"})]})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-4xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Start Free -- Upgrade If You Need More"}),e.jsx("p",{className:"text-lg text-white/70 mb-10 max-w-2xl mx-auto",children:"30 free email drafts per month is enough for most active job searches. Need more? Pro gives you 500 generations, style matching, and premium AI models."}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6 max-w-2xl mx-auto mb-10",children:[e.jsxs("div",{className:"bg-white/5 rounded-2xl p-6 border border-white/10",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Free"}),e.jsx("div",{className:"text-3xl font-bold text-white mb-1",children:"$0"}),e.jsx("p",{className:"text-sm text-white/60 mb-4",children:"forever"}),e.jsxs("ul",{className:"text-left text-sm text-white/70 space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," 30 generations/month"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," Gmail + LinkedIn"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," Professional English drafts"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," 2 draft variants"]})]})]}),e.jsxs("div",{className:"bg-gradient-to-br from-emerald-900/50 to-emerald-600/30 rounded-2xl p-6 border border-emerald-500/50 relative",children:[e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-emerald-500 text-white rounded-full text-xs font-semibold",children:"Best Value"}),e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Pro"}),e.jsxs("div",{className:"text-3xl font-bold text-white mb-1",children:["$30",e.jsx("span",{className:"text-lg font-normal",children:"/mo"})]}),e.jsx("p",{className:"text-sm text-white/70 mb-4",children:"or $252/year (save 30%)"}),e.jsxs("ul",{className:"text-left text-sm text-white/90 space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," 500 generations/month"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," Style matching"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," 4 draft variants"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," GPT-4o + Claude + Grok"]})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-emerald-500 text-white font-semibold rounded-lg hover:bg-emerald-500/90 transition-all shadow-lg shadow-emerald-500/30",children:["Get Started Free",e.jsx(Oe,{size:20})]}),e.jsx("button",{onClick:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-semibold rounded-lg hover:bg-white/20 transition-all border border-white/20",children:"Compare All Plans"})]})]})})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsx("div",{className:"max-w-3xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsxs("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:["Your Skills Got You Here.",e.jsx("br",{}),e.jsx("span",{className:"text-emerald-400",children:"Let Your Emails Land the Job."})]}),e.jsx("p",{className:"text-lg text-white/70 mb-8 max-w-xl mx-auto",children:"Don't let an email be the reason you don't get the interview. Install xReplAI in 2 minutes and never stress about professional English again."}),e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-emerald-500 text-white font-bold rounded-lg hover:bg-emerald-500/90 transition-all shadow-lg shadow-emerald-500/30 text-lg",children:["Start Free Today",e.jsx(Oe,{size:22})]})]})})})]}),e.jsx(Ve,{}),e.jsx(Os,{isOpen:t,onClose:()=>s(!1)})]})}function dy(){const[t,s]=h.useState(!1),{isAuthenticated:r}=et(),a=Ze(),n=()=>{Ss("free","monthly",0),r?a("/account"):s(!0)},o=()=>{a("/pricing")};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-[#1a0a2e] via-[#16213e] to-[#0F2847]",children:[e.jsx($e,{}),e.jsxs("main",{children:[e.jsx("section",{className:"pt-32 pb-20 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-5xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20}
408,animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsx("span",{className:"inline-block px-4 py-2 bg-violet-500/20 text-violet-400 rounded-full text-sm font-semibold mb-6 border border-violet-500/30",children:"For Recruitment Agencies & Staffing Firms"}),e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-white mb-6 leading-tight",children:["Place More Candidates,",e.jsx("br",{}),e.jsx("span",{className:"text-violet-400",children:"Write Better Outreach"})]}),e.jsx("p",{className:"text-xl sm:text-2xl text-white/80 max-w-3xl mx-auto mb-4",children:"Your recruiters send hundreds of emails daily to US hiring managers and candidates. xReplAI ensures every message is polished, professional, and gets responses."}),e.jsx("p",{className:"text-lg text-white/60 max-w-2xl mx-auto mb-10",children:"AI-powered email drafts that sound native, professional, and personalized -- at the speed and scale your agency needs."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-violet-500 text-white font-semibold rounded-lg hover:bg-violet-500/90 transition-all shadow-lg shadow-violet-500/30 text-lg",children:["Try Free -- 30 Drafts/Month",e.jsx(Oe,{size:20})]}),e.jsx("button",{onClick:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-semibold rounded-lg hover:bg-white/20 transition-all border border-white/20 text-lg",children:"See Team Pricing"})]}),e.jsx("p",{className:"text-sm text-white/50 mt-4",children:"No credit card required. Works instantly in Gmail and LinkedIn."})]})})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"The Recruitment Agency Email Challenge"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"Your team is talented at finding matches. But email communication with US clients can be a bottleneck."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{icon:Ul,title:"Cross-cultural communication gaps",description:"Your team writes great emails in their native language. But US hiring managers expect specific phrasing, idioms, and formality levels that are hard to nail consistently.",stat:"67%",statLabel:"of US hiring managers judge agencies by email quality"},{icon:Es,title:"Speed vs. quality trade-off",description:"Recruiters need to send 50-100+ personalized emails daily. Spending 10 minutes per email to get the English right means fewer placements.",stat:"3hrs",statLabel:"per day spent just on email composition"},{icon:zt,title:"Templates sound like templates",description:"US hiring managers and candidates can spot a template instantly. Generic outreach gets ignored. Personalization takes time your team doesn't have.",stat:"14%",statLabel:"average reply rate for templated recruiter emails"}].map((i,l)=>e.jsxs(_.div,{className:"bg-white/5 backdrop-blur-sm rounded-2xl p-8 border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:[e.jsx(i.icon,{size:32,className:"text-red-400 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:i.title}),e.jsx("p",{className:"text-white/70 mb-6",children:i.description}),e.jsxs("div",{className:"border-t border-white/10 pt-4",children:[e.jsx("span",{className:"text-3xl font-bold text-violet-400",children:i.stat}),e.jsx("p",{className:"text-xs text-white/50 mt-1",children:i.statLabel})]})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Scale Your Outreach Without Sacrificing Quality"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"Give every recruiter on your team the writing ability of a native English professional"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:[{icon:nt,title:"Instant Professional Drafts",description:"Each recruiter clicks one button and gets 2-4 polished draft options for any email -- candidate outreach, client updates, interview scheduling, offer discussions. All in perfect English.",highlight:"30 seconds per email"},{icon:mn,title:"Context-Aware Intelligence",description:"xReplAI reads the full email thread and understands if it's an initial outreach, a follow-up, a scheduling email, or a negotiation. Each draft is tailored to the exact situation.",highlight:"Smart context detection"},{icon:Ps,title:"Consistent Agency Voice",description:"Style matching ensures all your recruiters sound equally professional, regardless of their individual English proficiency. Your agency's reputation stays consistent across every interaction.",highlight:"Brand consistency at scale"},{icon:Or,title:"Gmail + LinkedIn in One Tool",description:"Whether your team sources on LinkedIn InMail or communicates via Gmail, xReplAI works in both. One Chrome extension covers both primary recruitment channels.",highlight:"Works where recruiters work"}].map((i,l)=>e.jsx(_.div,{className:"bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-sm rounded-2xl p-8 border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-xl bg-violet-500/20 flex items-center justify-center",children:e.jsx(i.icon,{size:24,className:"text-violet-400"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:i.title}),e.jsx("p",{className:"text-white/70 mb-3",children:i.description}),e.jsx("span",{className:"inline-block px-3 py-1 bg-violet-500/10 text-violet-400 rounded-full text-sm font-medium border border-violet-500/20",children:i.highlight})]})]})},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Built for Every Recruitment Email"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"From sourcing to placement, xReplAI handles the full recruitment communication lifecycle"})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[{title:"Candidate sourcing",description:"Professional first-touch outreach on LinkedIn that stands out from spam"},{title:"Client proposals",description:"Pitch candidates to US hiring managers with polished, persuasive descriptions"},{title:"Interview coordination",description:"Schedule and confirm interviews with clear, professional communication"},{title:"Offer negotiations",description:"Navigate sensitive compensation discussions with the right tone"},{title:"Follow-up sequences",description:"Persistent but professional follow-ups that don't feel pushy"},{title:"Client relationship emails",description:"Maintain agency reputation with consistently excellent communication"}].map((i,l)=>e.jsxs(_.div,{className:"bg-white/5 rounded-xl p-6 border border-white/10",initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:l*.08},children:[e.jsx(xn,{size:20,className:"text-violet-400 mb-3"}),e.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:i.title}),e.jsx("p",{className:"text-sm text-white/60",children:i.description})]},l))})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs(_.div,{className:"text-center mb-16",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"The ROI Is Immediate"}),e.jsx("p",{className:"text-lg text-white/70 max-w-2xl mx-auto",children:"A $30/month tool that saves each recruiter 2-3 hours per day"})]}),e.jsx("div",{className:"grid md:grid-cols-4 gap-6",children:[{metric:"80%",label:"Less time writing emails",description:"2-3 hours saved per recruiter per day"},{metric:"3x",label:"More outreach volume",description:"Same team, triple the candidate touchpoints"},{metric:"2x",label:"Higher response rates",description:"Personalized, native English beats templates"},{metric:"$30",label:"Per recruiter/month",description:"Pays for itself with one extra placement/year"}].map((i,l)=>e.jsxs(_.div,{className:"text-center p-6 bg-white/5 rounded-2xl border border-white/10",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:l*.1},children:[e.jsx("div",{className:"text-3xl font-bold text-violet-400 mb-2",children:i.metric}),e.jsx("div",{className:"text-base font-semibold text-white mb-2",children:i.label}),e.jsx("div",{className:"text-xs text-white/60",children:i.description})]},l))}),e.jsxs(_.div,{className:"mt-12 bg-gradient-to-br from-white/10 to-white/5 rounded-2xl p-8 border border-white/10 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},children:[e.jsx(pn,{size:32,className:"text-yellow-400 mx-auto mb-4"}),e.jsx("blockquote",{className:"text-lg text-white/90 italic mb-4 max-w-2xl mx-auto",children:`"Our agency placed 15 recruiters on xReplAI Pro. The difference in our 
408client response rates was noticeable within the first week. Our US clients started commenting that our communication quality improved. That's worth far more than $30/seat."`}),e.jsx("p",{className:"text-white/60 text-sm",children:"-- Operations Director, IT Staffing Agency"})]})]})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-white/5 backdrop-blur-sm",children:e.jsx("div",{className:"max-w-4xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Start With One Recruiter, Scale to Your Team"}),e.jsx("p",{className:"text-lg text-white/70 mb-10 max-w-2xl mx-auto",children:"Try free with one account. When you see the results, roll it out across your team."}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6 max-w-2xl mx-auto mb-10",children:[e.jsxs("div",{className:"bg-white/5 rounded-2xl p-6 border border-white/10",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Free Trial"}),e.jsx("div",{className:"text-3xl font-bold text-white mb-1",children:"$0"}),e.jsx("p",{className:"text-sm text-white/60 mb-4",children:"per recruiter, forever"}),e.jsxs("ul",{className:"text-left text-sm text-white/70 space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," 30 drafts/month"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," Gmail + LinkedIn"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," 2 draft variants"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-400 flex-shrink-0"})," Instant setup"]})]})]}),e.jsxs("div",{className:"bg-gradient-to-br from-violet-900/50 to-violet-600/30 rounded-2xl p-6 border border-violet-500/50 relative",children:[e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-violet-500 text-white rounded-full text-xs font-semibold",children:"Recommended for Teams"}),e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"Pro"}),e.jsxs("div",{className:"text-3xl font-bold text-white mb-1",children:["$30",e.jsx("span",{className:"text-lg font-normal",children:"/mo"})]}),e.jsx("p",{className:"text-sm text-white/70 mb-4",children:"per recruiter ($252/yr, save 30%)"}),e.jsxs("ul",{className:"text-left text-sm text-white/90 space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," 500 drafts/month"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," Style matching"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," 4 draft variants"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(le,{size:16,className:"text-green-300 flex-shrink-0"})," GPT-4o + Claude + Grok"]})]})]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-violet-500 text-white font-semibold rounded-lg hover:bg-violet-500/90 transition-all shadow-lg shadow-violet-500/30",children:["Start Free Trial",e.jsx(Oe,{size:20})]}),e.jsx("button",{onClick:o,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 text-white font-semibold rounded-lg hover:bg-white/20 transition-all border border-white/20",children:"Compare All Plans"})]})]})})}),e.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"max-w-3xl mx-auto text-center",children:e.jsxs(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[e.jsxs("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:["Your Recruiters Find the Talent.",e.jsx("br",{}),e.jsx("span",{className:"text-violet-400",children:"Let xReplAI Handle the Emails."})]}),e.jsx("p",{className:"text-lg text-white/70 mb-8 max-w-xl mx-auto",children:"Professional English emails for every recruiter on your team. Install in 2 minutes, see results immediately."}),e.jsxs("button",{onClick:n,className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-violet-500 text-white font-bold rounded-lg hover:bg-violet-500/90 transition-all shadow-lg shadow-violet-500/30 text-lg",children:["Get Started Free",e.jsx(Oe,{size:22})]})]})})})]}),e.jsx(Ve,{}),e.jsx(Os,{isOpen:t,onClose:()=>s(!1)})]})}const xs=["xReplAI is an AI-powered Chrome extension that helps you draft smart, personalized email replies for Gmail and LinkedIn. It saves you time and helps build better professional relationships!","Great question! xReplAI works seamlessly in both Gmail and LinkedIn. Just install the extension, and when you're composing a reply, click the xReplAI button to generate a smart response based on the context of the conversation.","We offer four pricing tiers: Free (5 replies/month), Professional ($9.99/month with 100 replies), Business ($29.99/month with 500 replies), and Enterprise (custom pricing with unlimited replies). You can start with our free tier to try it out!","xReplAI is perfect for Sales professionals, Recruiters, and Job Seekers. It helps you respond faster while maintaining a personal touch in every message.","Yes! You can join our waitlist right here on the website. Just scroll down and enter your email - we'll notify you as soon as we launch!"];function rl(t){const s=t.toLowerCase();return s.includes("price")||s.includes("cost")||s.includes("plan")?xs[2]:s.includes("how")||s.includes("work")?xs[1]:s.includes("who")||s.includes("for whom")||s.includes("user")?xs[3]:s.includes("waitlist")||s.includes("sign up")||s.includes("join")?xs[4]:xs[0]}function uy(t={}){const{apiEndpoint:s=L.SALES_CHAT,useMock:r=!1,initialMessage:a}=t,n=h.useRef(!1),[o,i]=h.useState([{id:"1",role:"assistant",content:"Hey! I'm Saxa — I know xReplAI inside and out. Features, pricing, how it works — ask me anything.",createdAt:new Date}]),[l,c]=h.useState(""),[u,d]=h.useState(!1),m=h.useCallback(y=>{c(y.target.value)},[]),x=h.useCallback(async y=>{var j;if(y.preventDefault(),!l.trim()||u)return;const p={id:Date.now().toString(),role:"user",content:l,createdAt:new Date};i(g=>[...g,p]),c(""),d(!0);try{if(r){const g=rl(l),w=(Date.now()+1).toString();i(k=>[...k,{id:w,role:"assistant",content:"",createdAt:new Date}]);let v="";
408const b=g.split(" ");for(const k of b)v+=k+" ",i(A=>A.map(E=>E.id===w?{...E,content:v}:E)),await new Promise(A=>setTimeout(A,100))}else{const g={messages:[...o,p].map(E=>({role:E.role,content:E.content}))};console.log("[Chat] POST",s,g);const w=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)});if(!w.ok){const E=await w.text();throw new Error(`HTTP ${w.status}: ${E.slice(0,200)}`)}const v=(j=w.body)==null?void 0:j.getReader();if(!v)throw new Error("No response body — check CORS or try again.");const b=new TextDecoder;let k="";const A=(Date.now()+1).toString();for(i(E=>[...E,{id:A,role:"assistant",content:"",createdAt:new Date}]);;){const{done:E,value:M}=await v.read();if(E)break;const T=b.decode(M,{stream:!0});T&&(k+=T,i(R=>R.map($=>$.id===A?{...$,content:k}:$)))}}}catch(g){const w=g instanceof Error?g.message:String(g);console.error("[Chat] Error:",w,g),i(v=>[...v,{id:(Date.now()+1).toString(),role:"assistant",content:"I'm sorry, I'm having trouble connecting right now. Please try again later or contact support at [email protected]",createdAt:new Date}])}finally{d(!1)}},[l,u,o,s,r]);return h.useEffect(()=>{if(!(a!=null&&a.trim())||n.current)return;n.current=!0;const y={id:Date.now().toString(),role:"user",content:a.trim(),createdAt:new Date};i(j=>[...j,y]),d(!0);const p=[...o,y].map(j=>({role:j.role,content:j.content}));(async()=>{var j;try{if(r){const g=rl(a.trim()),w=(Date.now()+1).toString();i(b=>[...b,{id:w,role:"assistant",content:"",createdAt:new Date}]);let v="";for(const b of g.split(" "))v+=b+" ",i(k=>k.map(A=>A.id===w?{...A,content:v}:A)),await new Promise(k=>setTimeout(k,100))}else{const g=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:p})});if(!g.ok){const A=await g.text();throw new Error(`HTTP ${g.status}`)}const w=(j=g.body)==null?void 0:j.getReader();if(!w)throw new Error("No response body");const v=new TextDecoder;let b="";const k=(Date.now()+1).toString();for(i(A=>[...A,{id:k,role:"assistant",content:"",createdAt:new Date}]);;){const{done:A,value:E}=await w.read();if(A)break;const M=v.decode(E,{stream:!0});M&&(b+=M,i(T=>T.map(R=>R.id===k?{...R,content:b}:R)))}}}catch(g){const w=g instanceof Error?g.message:String(g);console.error("[Chat] Initial message error:",w,g),i(v=>[...v,{id:(Date.now()+1).toString(),role:"assistant",content:"I'm sorry, I'm having trouble connecting right now. Please try again later or contact support.",createdAt:new Date}])}finally{d(!1)}})()},[a,s,r]),{messages:o,input:l,handleInputChange:m,handleSubmit:x,isLoading:u}}const Bd=/\[saxa:(\w+)\]\s*$/,hy=/\[saxa:\w*$/;function my(t){return t.replace(Bd,"").replace(hy,"").trimEnd()}const xy=[[/\b(sorry|apologize|unfortunately|can't help)\b/i,"sad"],[/\b(great|awesome|glad|love it|fantastic|excited)\b/i,"happy"],[/\b(hmm|interesting|curious|wonder)\b/i,"suspicious"],[/\b(wow|amazing|incredible|no way)\b/i,"surprised"],[/\b(haha|lol|😉|wink)\b/i,"wink"],[/\b(sure|let me|here's|check|looking)\b/i,"focused"],[/\b(❤|love|heart)\b/i,"love"]];function py(t){for(const[s,r]of xy)if(s.test(t))return r;return"neutral"}const gy={neutral:"neutral",happy:"happy",suspicious:"thinking",surprised:"surprised",sad:"sad",wink:"wink",focused:"thinking",love:"happy",idle:"idle"},fy={neutral:"neutral",happy:"curious",suspicious:"ponder",surprised:"shock",sad:"ponder",wink:"curious",focused:"fierce",love:"curious",idle:"idle"},yy={neutral:"idle",happy:"responding",suspicious:"thinking",surprised:"processing",sad:"error",wink:"greeting",focused:"thinking",love:"greeting",idle:"idle"},by={neutral:"idle",happy:"responding",suspicious:"analyzing",surprised:"processing",sad:"idle",wink:"responding",focused:"thinking",love:"creating",idle:"idle"};function Na(t,s){return s==="anime"?t:s==="plain"?gy[t]||"neutral":s==="manga"?fy[t]||"neutral":s==="runes"?yy[t]||"idle":s==="ai"?by[t]||"idle":t}function vy(t,s){return h.useMemo(()=>{const r=[...t].reverse().find(o=>o.role==="assistant");if(s&&(!r||!r.content))return"focused";if(!r||!r.content)return"neutral";const a=r.content,n=a.match(Bd);if(n){const o=n[1];if(["neutral","happy","suspicious","surprised","sad","wink","focused","love","idle"].includes(o))return o}return py(a)},[t,s])}const wy="ai",rn=["ai","anime","plain","manga","runes"],Ud="saxa_avatar_mode";function al(){try{const t=localStorage.getItem(Ud);if(t&&rn.includes(t))return t}catch{}return wy}function jy(){const{user:t,isAuthenticated:s}=et(),[r,a]=h.useState(al),[n,o]=h.useState(!1);h.useEffect(()=>{if(!s||!(t!=null&&t.id)){a(al()),o(!0);return}let l=!1;return(async()=>{try{const c=await fetch(`${L.USER_PREFERENCES}?userId=${encodeURIComponent(t.id)}`);if(!c.ok)throw new Error(`HTTP ${c.status}`);const u=await c.json();!l&&u.saxa_avatar_mode&&rn.includes(u.saxa_avatar_mode)&&a(u.saxa_avatar_mode)}catch(c){console.error("[SaxaMode] Failed to load preference:",c)}finally{l||o(!0)}})(),()=>{l=!0}},[s,t==null?void 0:t.id]);const i=h.useCallback(l=>{if(rn.includes(l)){a(l);try{localStorage.setItem(Ud,l)}catch{}s&&(t!=null&&t.id)&&fetch(L.USER_PREFERENCES,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:t.id,saxa_avatar_mode:l})}).catch(c=>{console.error("[SaxaMode] Failed to save preference:",c)})}},[s,t==null?void 0:t.id]);return{mode:r,setMode:i,loaded:n}}function Ny(t){const[s,r]=h.useState(void 0),a=h.useRef(!1);return h.useEffect(()=>{function n(){if(document.documentElement.classList.contains("dark")){r(void 0);return}const i=t.current;if(!i){r(void 0);return}const l=i.getBoundingClientRect(),c=l.top+l.height/2,u=document.querySelectorAll("[data-saxa-bg]");for(const d of u){const m=d.getBoundingClientRect();if(c>=m.top&&c<m.bottom){r(d.dataset.saxaBg==="dark");return}}r(void 0)}function o(){a.current||(a.current=!0,requestAnimationFrame(()=>{n(),a.current=!1}))}return n(),window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o,{passive:!0}),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o)}},[t]),s}const ps=(t,s,r,a=0)=>
408{const n=a*Math.PI/180;return Array.from({length:8},(i,l)=>{const c=n+Math.PI*2*l/8-Math.PI/8;return[t+r*Math.cos(c),s+r*Math.sin(c)]}).map((i,l)=>`${l===0?"M":"L"} ${i[0]},${i[1]}`).join(" ")+" Z"},Fr=(t,s,r)=>{const a=r,n=r*.25;return`M ${t},${s-a} L ${t+n},${s-n} L ${t+a},${s} L ${t+n},${s+n} L ${t},${s+a} L ${t-n},${s+n} L ${t-a},${s} L ${t-n},${s-n} Z`},nl={neutral:{label:"Neutral",colors:{dark:{sclera:"#60A5FA",iris:"#1E3A8A",accent:"#3B82F6"},light:{sclera:"#DBEAFE",iris:"#1a1a2e",accent:"#4a4a6a"}},left:{cx:-18,cy:2,rx:14,ry:16,irisRx:10,irisRy:12,irisOy:1,pupilR:5,pupilOy:1,shine:[{dx:-4,dy:-5,rx:3.5,ry:4},{dx:3.5,dy:-2,r:1.5}],lidTop:0,lidBot:0,lashOut:!0},right:{cx:18,cy:2,rx:14,ry:16,irisRx:10,irisRy:12,irisOy:1,pupilR:5,pupilOy:1,shine:[{dx:-4,dy:-5,rx:3.5,ry:4},{dx:3.5,dy:-2,r:1.5}],lidTop:0,lidBot:0,lashOut:!0},brow:{left:{d:"M -29,-16 Q -17,-21 -7,-18",w:2.8},right:{d:"M 7,-18 Q 17,-21 29,-16",w:2.8}}},happy:{label:"Happy",colors:{dark:{sclera:"#C4B5FD",iris:"#4C1D95",accent:"#8B5CF6"},light:{sclera:"#EDE9FE",iris:"#5B21B6",accent:"#7C3AED"}},left:{cx:-18,cy:2,rx:15,ry:18,irisRx:11,irisRy:13,irisOy:-1,pupilR:5,pupilOy:-1,shine:[{dx:-4,dy:-6,rx:4,ry:5},{dx:4,dy:-3,r:1.8}],lidTop:0,lidBot:.35,lashOut:!0},right:{cx:18,cy:2,rx:15,ry:18,irisRx:11,irisRy:13,irisOy:-1,pupilR:5,pupilOy:-1,shine:[{dx:-4,dy:-6,rx:4,ry:5},{dx:4,dy:-3,r:1.8}],lidTop:0,lidBot:.35,lashOut:!0},brow:{left:{d:"M -29,-17 Q -17,-20 -7,-18",w:2.5},right:{d:"M 7,-18 Q 17,-20 29,-17",w:2.5}}},suspicious:{label:"Suspicious",colors:{dark:{sclera:"#3B82F6",iris:"#1E3A8A",accent:"#2563EB"},light:{sclera:"#BFDBFE",iris:"#1E3A5E",accent:"#3B6EB0"}},left:{cx:-18,cy:2,rx:14,ry:11,irisRx:8,irisRy:8,irisOy:2,pupilR:3.5,pupilOy:2,shine:[{dx:-3,dy:-3,rx:2.5,ry:2.5},{dx:2.5,dy:-1,r:1}],lidTop:.3,lidBot:0,lashOut:!0},right:{cx:18,cy:2,rx:14,ry:11,irisRx:8,irisRy:8,irisOy:2,pupilR:3.5,pupilOy:2,shine:[{dx:-3,dy:-3,rx:2.5,ry:2.5},{dx:2.5,dy:-1,r:1}],lidTop:.3,lidBot:0,lashOut:!0},brow:{left:{d:"M -29,-14 Q -17,-13 -7,-11",w:3},right:{d:"M 7,-8 Q 17,-12 29,-16",w:3}}},surprised:{label:"Surprised",colors:{dark:{sclera:"#67E8F9",iris:"#164E63",accent:"#06B6D4"},light:{sclera:"#CFFAFE",iris:"#155E75",accent:"#0891B2"}},left:{cx:-18,cy:2,rx:16,ry:20,irisRx:9,irisRy:11,irisOy:0,pupilR:4,pupilOy:0,shine:[{dx:-4.5,dy:-6,rx:4,ry:5},{dx:4,dy:-2,r:1.8}],lidTop:0,lidBot:0,lashOut:!0},right:{cx:18,cy:2,rx:16,ry:20,irisRx:9,irisRy:11,irisOy:0,pupilR:4,pupilOy:0,shine:[{dx:-4.5,dy:-6,rx:4,ry:5},{dx:4,dy:-2,r:1.8}],lidTop:0,lidBot:0,lashOut:!0},brow:{left:{d:"M -29,-21 Q -17,-28 -7,-23",w:2.8},right:{d:"M 7,-23 Q 17,-28 29,-21",w:2.8}}},sad:{label:"Sad",colors:{dark:{sclera:"#C4B5FD",iris:"#3B0764",accent:"#7C3AED"},light:{sclera:"#EDE9FE",iris:"#4C1D95",accent:"#6D28D9"}}
408,left:{cx:-18,cy:4,rx:14,ry:14,irisRx:10,irisRy:11,irisOy:3,pupilR:5,pupilOy:3,shine:[{dx:-4,dy:-3,rx:3.5,ry:3.5},{dx:3,dy:0,r:1.3}],lidTop:.18,lidBot:0,lashOut:!1},right:{cx:18,cy:4,rx:14,ry:14,irisRx:10,irisRy:11,irisOy:3,pupilR:5,pupilOy:3,shine:[{dx:-4,dy:-3,rx:3.5,ry:3.5},{dx:3,dy:0,r:1.3}],lidTop:.18,lidBot:0,lashOut:!1},brow:{left:{d:"M -29,-13 Q -17,-17 -7,-16",w:2.5},right:{d:"M 7,-16 Q 17,-17 29,-13",w:2.5}}},wink:{label:"Wink",colors:{dark:{sclera:"#F9A8D4",iris:"#831843",accent:"#EC4899"},light:{sclera:"#FCE7F3",iris:"#9D174D",accent:"#DB2777"}},left:{cx:-18,cy:2,rx:14,ry:16,irisRx:10,irisRy:12,irisOy:1,pupilR:5,pupilOy:1,shine:[{dx:-4,dy:-5,rx:3.5,ry:4},{dx:3.5,dy:-2,r:1.5}],lidTop:0,lidBot:0,lashOut:!0},right:{cx:18,cy:2,rx:14,ry:16,irisRx:10,irisRy:12,irisOy:1,pupilR:5,pupilOy:1,shine:[{dx:-4,dy:-5,rx:3.5,ry:4},{dx:3.5,dy:-2,r:1.5}],lidTop:.85,lidBot:0,lashOut:!0},brow:{left:{d:"M -29,-16 Q -17,-21 -7,-18",w:2.8},right:{d:"M 7,-14 Q 17,-18 29,-16",w:2.5}}},focused:{label:"Focused",colors:{dark:{sclera:"#6EE7B7",iris:"#064E3B",accent:"#10B981"},light:{sclera:"#D1FAE5",iris:"#065F46",accent:"#059669"}},left:{cx:-18,cy:2,rx:13,ry:12,irisRx:8,irisRy:9,irisOy:0,pupilR:3.5,pupilOy:0,shine:[{dx:-3,dy:-3.5,rx:2.5,ry:3},{dx:2.5,dy:-1,r:1.1}],lidTop:.2,lidBot:0,lashOut:!0},right:{cx:18,cy:2,rx:13,ry:12,irisRx:8,irisRy:9,irisOy:0,pupilR:3.5,pupilOy:0,shine:[{dx:-3,dy:-3.5,rx:2.5,ry:3},{dx:2.5,dy:-1,r:1.1}],lidTop:.2,lidBot:0,lashOut:!0},brow:{left:{d:"M -29,-14 Q -17,-12 -7,-9",w:3},right:{d:"M 7,-9 Q 17,-12 29,-14",w:3}}},love:{label:"Love",colors:{dark:{sclera:"#FDA4AF",iris:"#881337",accent:"#F43F5E"},light:{sclera:"#FFE4E6",iris:"#9F1239",accent:"#E11D48"}},left:{cx:-18,cy:2,rx:15,ry:17,irisRx:10,irisRy:12,irisOy:0,pupilR:5,pupilOy:0,shine:[{dx:-4,dy:-5,rx:3.5,ry:4},{dx:3.5,dy:-2,r:1.5}],lidTop:0,lidBot:0,lashOut:!0,heart:!0},right:{cx:18,cy:2,rx:15,ry:17,irisRx:10,irisRy:12,irisOy:0,pupilR:5,pupilOy:0,shine:[{dx:-4,dy:-5,rx:3.5,ry:4},{dx:3.5,dy:-2,r:1.5}],lidTop:0,lidBot:0,lashOut:!0,heart:!0},brow:{left:{d:"M -29,-17 Q -17,-23 -7,-19",w:2.2},right:{d:"M 7,-19 Q 17,-23 29,-17",w:2.2}}},idle:{label:"Idle",colors:{dark:{sclera:"#7BA3CC",iris:"#2D4A6E",accent:"#5A8AB5"},light:{sclera:"#E2E8F0",iris:"#475569",accent:"#94A3B8"}},left:{cx:-18,cy:3,rx:13,ry:13,irisRx:9,irisRy:10,irisOy:2,pupilR:4,pupilOy:2,shine:[{dx:-3,dy:-4,rx:2.5,ry:3},{dx:2.5,dy:-1,r:1.2}],lidTop:.45,lidBot:.1,lashOut:!1},right:{cx:18,cy:3,rx:13,ry:13,irisRx:9,irisRy:10,irisOy:2,pupilR:4,pupilOy:2,shine:[{dx:-3,dy:-4,rx:2.5,ry:3},{dx:2.5,dy:-1,r:1.2}],lidTop:.45,lidBot:.1,lashOut:!1},brow:{left:{d:"M -28,-13 Q -17,-15 -8,-14",w:2.2},right:{d:"M 8,-14 Q 17,-15 28,-13",w:2.2}}}},il={neutral:{label:"Neutral",leftEye:{type:"big",cx:-18,cy:0,rx:8,ry:10,lidTop:0,sparkles:[{dx:-2,dy:-3,s:6},{dx:3,dy:3,s:3}]},rightEye:{type:"big",cx:18,cy:0,rx:8,ry:10,lidTop:0,sparkles:[{dx:-2,dy:-3,s:6},{dx:3,dy:3,s:3}]},mouth:{type:"stroke",d:"M -10,18 Q 0,21 10,18",sw:3}},happy:{label:"Happy",leftEye:{type:"big",cx:-18,cy:0,rx:8,ry:8,lidTop:.15,sparkles:[{dx:-2,dy:-2,s:5},{dx:3,dy:2,s:2.5}]},rightEye:{type:"big",cx:18,cy:0,rx:8,ry:8,lidTop:.15,sparkles:[{dx:-2,dy:-2,s:5},{dx:3,dy:2,s:2.5}]},mouth:{type:"stroke",d:"M -12,16 Q 0,26 12,16",sw:3}},grin:{label:"Grin",leftEye:{type:"arc",d:"M -26,0 Q -18,-10 -10,0"},rightEye:{type:"arc",d:"M 10,0 Q 18,-10 26,0"},mouth:{type:"fill",d:"M -13,14 Q 0,28 13,14 Z"}},thinking:{label:"Thinking",leftEye:{type:"big",cx:-18,cy:0,rx:8,ry:10,lidTop:0,sparkles:[{dx:-2,dy:-3,s:6},{dx:3,dy:3,s:3}]},rightEye:{type:"big",cx:18,cy:0,rx:7,ry:8,lidTop:.15,sparkles:[{dx:-2,dy:-2,s:5},{dx:2,dy:2,s:2.5}]},mouth:{type:"stroke",d:"M -2,20 Q 5,18 10,21",sw:2.8}},surprised:{label:"Surprised",leftEye:{type:"big",cx:-18,cy:0,rx:9,ry:12,lidTop:0,sparkles:[{dx:-2,dy:-4,s:7},{dx:3,dy:4,s:3.5}]},rightEye:{type:"big",cx:18,cy:0,rx:9,ry:12,lidTop:0,sparkles:[{dx:-2,dy:-4,s:7},{dx:3,dy:4,s:3.5}]},mouth:{type:"ring",cx:0,cy:20,r:5}},sad:{label:"Sad",leftEye:{type:"big",cx:-18,cy:1,rx:8,ry:9,lidTop:.1,sparkles:[{dx:-2,dy:-3,s:5.5},{dx:3,dy:2,s:2.5}]},rightEye:{type:"big",cx:18,cy:1,rx:8,ry:9,lidTop:.1,sparkles:[{dx:-2,dy:-3,s:5.5},{dx:3,dy:2,s:2.5}]},mouth:{type:"stroke",d:"M -10,22 Q 0,16 10,22",sw:3}},wink:{label:"Wink",leftEye:{type:"big",cx:-18,cy:0,rx:8,ry:10,lidTop:0,sparkles:[{dx:-2,dy:-3,s:6},{dx:3,dy:3,s:3}]},rightEye:{type:"arc",d:"M 10,0 Q 18,6 26,0"},mouth:{type:"stroke",d:"M -12,16 Q 0,24 12,16",sw:3}},idle:{label:"Idle",leftEye:{type:"big",cx:-18,cy:1,rx:7,ry:8,lidTop:.35,sparkles:[{dx:-2,dy:-2,s:4},{dx:2,dy:2,s:2}]},rightEye:{type:"big",cx:18,cy:1,rx:7,ry:8,lidTop:.35,sparkles:[{dx:-2,dy:-2,s:4},{dx:2,dy:2,s:2}]},mouth:{type:"stroke",d:"M -8,19 Q 0,20 8,19",sw:2.5}}},ka={thinking:{glyphs:["ᚱ","ᚢ","ᚾ","ᛁ","ᚲ"],label:"Thinking"},processing:{glyphs:["ᛃ","ᛇ","ᛈ","ᛉ","ᛊ"],label:"Processing"},responding:{glyphs:["ᚠ","ᚨ","ᛚ","ᛞ","ᛟ"],label:"Responding"},greeting:{glyphs:["ᚺ","ᚨ","ᛁ","ᛚ","᛫"],label:"Greeting"},error:{glyphs:["ᛏ","ᚱ","ᛁ","᛫","᛫"],label:"Error"},idle:{glyphs:["᛫","᛫","᛫","᛫","᛫"],label:"Idle"}},ol={idle:{label:"Idle",coreScale:.14,rings:[{rScale:.38,w:.9,opacity:.4,rot:11.25,dur:0}
408],rayCount:0,showNodes:!1,showStreams:!1,pulse:5},thinking:{label:"Thinking",coreScale:.16,rings:[{rScale:.3,w:1,opacity:.5,rot:11.25,dur:55},{rScale:.65,w:.65,opacity:.3,rot:0,dur:-80}],rayCount:4,showNodes:!0,showStreams:!1,pulse:3.5},processing:{label:"Processing",coreScale:.17,rings:[{rScale:.26,w:1,opacity:.5,rot:11.25,dur:45},{rScale:.54,w:.7,opacity:.35,rot:0,dur:-60},{rScale:.84,w:.45,opacity:.2,rot:11.25,dur:40}],rayCount:8,showNodes:!0,showStreams:!0,streamIn:!0,pulse:2.5},responding:{label:"Responding",coreScale:.22,rings:[{rScale:.3,w:1.2,opacity:.6,rot:11.25,dur:40},{rScale:.58,w:.8,opacity:.42,rot:0,dur:-55},{rScale:.85,w:.5,opacity:.28,rot:11.25,dur:30}],rayCount:8,showNodes:!0,showStreams:!0,streamIn:!1,pulse:1.8},analyzing:{label:"Analyzing",coreScale:.15,rings:[{rScale:.28,w:1,opacity:.5,rot:11.25,dur:-40},{rScale:.56,w:.7,opacity:.35,rot:0,dur:50},{rScale:.84,w:.45,opacity:.2,rot:11.25,dur:-65}],rayCount:8,showNodes:!0,showStreams:!0,streamIn:!0,activeRays:[0,2,5,7],pulse:3},creating:{label:"Creating",coreScale:.2,rings:[{rScale:.22,w:1.2,opacity:.65,rot:11.25,dur:50},{rScale:.42,w:.85,opacity:.48,rot:0,dur:-38},{rScale:.64,w:.6,opacity:.32,rot:11.25,dur:55},{rScale:.86,w:.4,opacity:.18,rot:0,dur:-32}],rayCount:8,showNodes:!0,showStreams:!0,streamIn:!1,pulse:2.5}},ll=({e:t,color:s,irisColor:r,bgColor:a,scleraColor:n,flip:o,clipId:i})=>{const l=t.cy-t.ry+t.ry*2*t.lidTop,c=t.lidBot||0,u=t.cy+t.ry-t.ry*2*c,d="all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1)",m="all 0.3s ease",x=t.lidTop>0?l:t.cy-t.ry-3,y=c>0?u:t.cy+t.ry+3;return e.jsxs("g",{children:[e.jsx("defs",{children:e.jsx("clipPath",{id:i,children:e.jsx("rect",{x:t.cx-t.rx-2,y:x,width:(t.rx+2)*2,height:Math.max(0,y-x),style:{transition:d}})})}),e.jsxs("g",{clipPath:`url(#${i})`,children:[e.jsx("ellipse",{cx:t.cx,cy:t.cy,rx:t.rx,ry:t.ry,fill:n,stroke:"black",strokeWidth:.6,style:{transition:d}}),e.jsx("ellipse",{cx:t.cx,cy:t.cy+t.irisOy,rx:t.irisRx,ry:t.irisRy,fill:s,style:{transition:d}}),e.jsx("ellipse",{cx:t.cx,cy:t.cy+t.irisOy+1,rx:t.irisRx*.7,ry:t.irisRy*.65,fill:r,opacity:.35,style:{transition:d}}),e.jsx("circle",{cx:t.cx,cy:t.cy+t.pupilOy,r:t.pupilR,fill:"#000",opacity:.5,style:{transition:d}}),t.heart&&e.jsx("path",{d:`M ${t.cx},${t.cy+t.irisOy+4}
409                L ${t.cx-5},${t.cy+t.irisOy-2}
410                Q ${t.cx-5},${t.cy+t.irisOy-7} ${t.cx},${t.cy+t.irisOy-4}
411                Q ${t.cx+5},${t.cy+t.irisOy-7} ${t.cx+5},${t.cy+t.irisOy-2} Z`,fill:r,opacity:.5,style:{transition:d}}),e.jsx("path",{d:Fr(t.cx+t.shine[0].dx,t.cy+t.shine[0].dy+t.irisOy*.3,Math.max(t.shine[0].rx,t.shine[0].ry)*1.5),fill:"white",opacity:.92,style:{transition:m}}),e.jsx("path",{d:Fr(t.cx+t.shine[1].dx,t.cy+t.shine[1].dy+t.irisOy*.3,t.shine[1].r*2.2),fill:"white",opacity:.75,style:{transition:m}})]})]})},cl=({eye:t,color:s,bgColor:r,t:a,clipId:n})=>{if(t.type==="arc")return e.jsx("path",{d:t.d,fill:"none",stroke:s,strokeWidth:3.5,strokeLinecap:"round",style:{transition:a}});if(t.type==="big"){const o=t.cy-t.ry+t.ry*2*(t.lidTop||0);return e.jsxs("g",{children:[e.jsx("defs",{children:e.jsx("clipPath",{id:n,children:e.jsx("rect",{x:t.cx-t.rx-2,y:t.lidTop&&t.lidTop>0?o:t.cy-t.ry-3,width:(t.rx+2)*2,height:t.ry*2+6,style:{transition:a}})})}),e.jsxs("g",{clipPath:`url(#${n})`,children:[e.jsx("ellipse",{cx:t.cx,cy:t.cy,rx:t.rx,ry:t.ry,fill:s,style:{transition:a}}),(t.sparkles||[]).map((i,l)=>e.jsx("path",{d:Fr(t.cx+i.dx,t.cy+i.dy,i.s),fill:"white",opacity:.92,style:{transition:a}},l))]})]})}return e.jsx("circle",{cx:t.cx,cy:t.cy,r:t.r,fill:s,style:{transition:a}})},ky=({mouth:t,color:s,t:r})=>t.type==="stroke"?e.jsx("path",{d:t.d,fill:"none",stroke:s,strokeWidth:t.sw,strokeLinecap:"round",style:{transition:r}}):t.type==="fill"?e.jsx("path",{d:t.d,fill:s,opacity:.85,style:{transition:r}}):t.type==="ring"?e.jsx("circle",{cx:t.cx,cy:t.cy,r:t.r,fill:"none",stroke:s,strokeWidth:3,style:{transition:r}}):null,dl={neutral:{label:"Neutral",viewBox:"0 0 1594.54 571.43",paths:["M995.24,285.51q8.26-6.72,16.86-13c-33.24,34.29-57.62,76.27-62,124.48,22.9-35.63,46-71.54,75.7-101.76,27.67-28.18,60.6-49.62,98.75-60.47,8-2.27,16.08-4.21,24.2-5.91C1104.8,262.36,1076,317.52,1076,379.83c0,80.42,47.88,149,114.49,174.28-23.61,0-47.39-1-71.54-1.56a371.89,371.89,0,0,0,81.06,17.22c27.66,2.7,56,2.32,83.84-2.81s55.3-15.1,78.75-31.52,42.47-38.57,53.65-63.88c-16.83,19.18-35.75,35.28-56.69,47.49,36-33.89,58.85-83.72,58.85-139.22,0-68.44-34.69-128.26-86.08-160.18q56.91,2.06,113.6,7.87c12.23,1.27,25.35,2.35,39.18,3.32,3.06,49-7,97-19.82,144.09l-18.12,66.58a224.59,224.59,0,0,0,32.17-40.4c31.51-50.68,50.93-107.31,50.93-167.35l-3.14-.36q12.74.67,26,1.33a132.11,132.11,0,0,0-18-12.24c27.2-24,46-55,59.38-88.75a193.6,193.6,0,0,1-85.94,38.06c-18.69,3.23-37.87,3.71-56.67,6,10.78-18.91,17.36-39.92,21.09-61.7a150,150,0,0,1-50.41,38.75,513.6,513.6,0,0,0-105-27.38c-38.66-5.64-78.55-6.69-117.8-.67-9.81,1.45-19.54,3.44-29.21,5.66-9.62,2.47-19.22,5.05-28.6,8.37a279.82,279.82,0,0,0-54.06,25A252.88,252.88,0,0,0,1041.1,202c-2.91,2.86-5.71,5.81-8.48,8.77-1.8.13-3.59.28-5.39.35a149.9,149.9,0,0,1-71.15-15c13,19.59,28.65,37,47.7,50.29l-.21.3.28-.24q3.9,2.7,8,5.16a282.29,282.29,0,0,0-26,23.45c-21,21.35-39,45.53-52.13,72A440.69,440.69,0,0,1,995.24,285.51Zm122.39,26.65a85.34,85.34,0,0,1,38.45-49.71c9.22-5.35,19.54-9,30.17-9.2-8.14,6.75-15.51,13-22.29,19.68a203.69,203.69,0,0,0-18.66,20.91,201.59,201.59,0,0,0-15.59,23.3c-4.78,8.24-9,16.95-13.43,26.53C1113.86,333.32,1114.77,322.44,1117.63,312.16Zm224.56,15.37a103.8,103.8,0,0,1,2.62,79.53,56.09,56.09,0,0,1,9.46,2c20.41,6.33,31.59,25.43,26.67,46.17a63.06,63.06,0,0,1-3.23,9.82c-27.83,66-119.3,89.62-180.92,66.19-28.12-10.
41169-61.45-31.65-75.44-59.23-6.53-12.86-8.09-30.2-.2-42.87,7.44-11.94,20.29-14.4,32.92-12.61a104.05,104.05,0,0,1,143.66-137.2A33.88,33.88,0,0,1,1330,280C1346.14,289.29,1351.44,310.38,1342.19,327.53ZM1096.68,181.85a338.29,338.29,0,0,1,52.07-20,387.86,387.86,0,0,1,54.55-12c36.9-5.62,74.63-6.26,112.47-4.14,34.31,1.87,68.69,6.25,103.46,10.59-1.73.77-3.45,1.57-5.22,2.27-18,7.15-37.46,10.84-55.14,18.6-60-6.33-123.55-8.38-183.18,4.35-3.82.49-7.63,1.07-11.43,1.8l-11.24,2c-3.72.75-7.41,1.67-11.11,2.55a332.57,332.57,0,0,0-43.38,13.61c-3.51,1.5-7,3-10.54,4.46-12.28-.25-24.54,1.41-36.82,3A319.66,319.66,0,0,1,1096.68,181.85Z","M1337.85.09A775.79,775.79,0,0,0,1203.2,14.7a907.19,907.19,0,0,0-130.31,36c-42.34,15.28-83.68,33.12-123.1,54.82,43.52-11.38,86.27-23.81,129.26-34.84,42.93-11.19,86-21.33,129.26-29.78S1295.2,25.7,1339.15,21s88.22-7.23,133.17-8.92C1428.29,2.65,1383-.6,1337.85.09Z","M1293.79,342.68c-16.45-9.49-21.67-31.23-11.68-48.55.62-1.06,1.27-2.07,2-3.05a87.36,87.36,0,1,0,45.69,50.09C1319,348.22,1305.21,349.28,1293.79,342.68Zm-2.25,47.43-15-8.07L1264,393.15l2.21-17.29-12.41-10.18,16.16-2.41,3.78-15.55,8.58,14.46,16.35-.56-11.41,12Z","M391.34,14.7A775.79,775.79,0,0,0,256.69.09c-45.16-.69-90.44,2.56-134.46,12,44.94,1.69,89.21,4.09,133.17,8.92s87.52,11.42,130.83,19.85,86.33,18.59,129.26,29.78c43,11,85.74,23.46,129.26,34.84C605.34,83.79,564,66,521.65,50.67A907.19,907.19,0,0,0,391.34,14.7Z","M59.38,222.49a132,132,0,0,0-18,12.24q13.29-.64,26-1.33l-3.14.36c0,60,19.43,116.67,50.93,167.35a224.65,224.65,0,0,0,32.18,40.4q-9.06-33.28-18.13-66.58c-12.81-47.06-22.88-95.06-19.81-144.09,13.83-1,26.94-2.05,39.17-3.32q56.72-5.86,113.6-7.87c-51.38,31.92-86.08,91.74-86.08,160.18,0,55.5,22.83,105.33,58.86,139.22-20.95-12.2-39.86-28.31-56.7-47.49,11.18,25.31,30.23,47.6,53.65,63.88s51,26.41,78.75,31.52,56.19,5.51,83.84,2.81a371.76,371.76,0,0,0,81.06-17.22c-24.15.55-47.93,1.54-71.54,1.56,66.61-25.31,114.5-93.86,114.5-174.28,0-62.31-28.76-117.47-72.68-150.94,8.11,1.7,16.19,3.64,24.19,5.91,38.15,10.85,71.08,32.29,98.75,60.47,29.68,30.22,52.8,66.13,75.7,101.76-4.41-48.21-28.79-90.19-62-124.48q8.59,6.24,16.86,13a440.76,440.76,0,0,1,61.56,61.59c-13.12-26.45-31.16-50.63-52.14-72a282.29,282.29,0,0,0-26-23.45q4.09-2.46,8-5.16l.28.24-.21-.29c19-13.26,34.69-30.71,47.7-50.3a149.9,149.9,0,0,1-71.15,15c-1.8-.07-3.59-.22-5.38-.35-2.78-3-5.58-5.91-8.48-8.77a253.55,253.55,0,0,0-46.86-36.25,280.19,280.19,0,0,0-54.07-25c-9.38-3.32-19-5.9-28.6-8.37-9.67-2.22-19.4-4.21-29.2-5.66-39.25-6-79.14-5-117.81.67a513.51,513.51,0,0,0-105,27.38,150.08,150.08,0,0,1-50.42-38.75c3.73,21.78,10.31,42.79,21.1,61.7-18.81-2.25-38-2.73-56.68-6A193.6,193.6,0,0,1,0,133.74C13.37,167.53,32.19,198.53,59.38,222.49ZM473.19,472c-14,27.58-47.32,48.54-75.43,59.23-61.63,23.43-153.1-.19-180.93-66.19a62,62,0,0,1-3.22-9.82c-4.93-20.74,6.25-39.84,26.67-46.17a56,56,0,0,1,9.45-2,103.92,103.92,0,0,1,2.62-79.53c-9.25-17.15-3.95-38.24,12.19-47.56a33.9,33.9,0,0,1,32.28-.61,104,104,0,0,1,143.65,137.2c12.63-1.79,25.48.67,32.92,12.61C481.28,441.84,479.72,459.18,473.19,472Zm-10.76-188.4a84.57,84.57,0,0,1,14.48,28.52c2.86,10.28,3.77,21.16,1.35,31.51-4.47-9.58-8.65-18.29-13.43-26.53a202.81,202.81,0,0,0-15.58-23.3,206.08,206.08,0,0,0-18.66-20.91c-6.78-6.69-14.15-12.93-22.3-19.68,10.63.24,20.95,3.85,30.18,9.2A84.25,84.25,0,0,1,462.43,283.64ZM278.77,145.69c37.85-2.12,75.57-1.48,112.47,4.14a387.86,387.86,0,0,1,54.55,12,338.29,338.29,0,0,1,52.07,20,319.11,319.11,0,0,1,45.51,27c-12.28-1.57-24.54-3.23-36.82-3-3.5-1.5-7-3-10.54-4.46a332.09,332.09,0,0,0-43.38-13.61c-3.7-.88-7.39-1.8-11.11-2.55l-11.23-2c-3.8-.73-7.62-1.31-11.44-1.8-59.63-12.73-123.14-10.68-183.18-4.35-17.68-7.76-37.11-11.45-55.14-18.6-1.76-.7-3.48-1.5-5.22-2.27C210.08,151.94,244.46,147.56,278.77,145.69Z","M347.17,283a87.17,87.17,0,0,0-36.71,8.08c.7,1,1.36,2,2,3.05,10,17.32,4.77,39.06-11.68,48.55-11.42,6.6-25.24,5.54-36-1.51A87.44,87.44,0,1,0,347.17,283ZM330.52,393.15,318,382l-15,8.07,4.26-16.53-11.41-12,16.36.56,8.57-14.46,3.78,15.55,16.16,2.41-12.41,10.18Z"]},curious:{label:"Curious",viewBox:"0 0 1607.92 629.59",paths:["M1105.6,203a223.87,223.87,0,0,0-48.68,33.59c-37.84,33.93-71.94,75.5-95.5,120.71,4.1-3.29,8-8.39,11.78-12.45,6.22-6.64,12.6-13.25,19.14-19.74-1.23,5.61-2.17,11.25-2.87,16.9a202.23,202.23,0,0,0-.65,42.37,177.07,177.07,0,0,0,8.5,41.12c4.5,13.21,10.8,25.85,19.33,36.71a122,122,0,0,1-15.32-37.85A170.83,170.83,0,0,1,997.15,384a192.16,192.16,0,0,1,4.64-39.91,149.49,149.49,0,0,1,13.3-36.93l0,0c.12-.24.24-.49.35-.76a8.3,8.3,0,0,0,.59-3.48c19.8-17.28,41.19-32.71,64.62-44.05,20.59-10,42.57-15.95,65-19.25-58.12,34.8-97.57,101.71-97.57,178.4,0,92.2,57,170.26,135,195.38-9.69-.38-19.33-1.48-29-2.7-10-1.24-19.76-3.4-29.89-5.4,17.53,10.79,37.61,17.6,58.11,21.12a213.31,213.31,0,0,0,31.07,3.08c5.21.25,10.4.06,15.6,0,5.18-.25,10.38-.48,15.54-1a300.16,300.16,0,0,0,60.77-12c19.72-6.2,39.08-15.1,54.9-28.36a315.4,315.4,0,0,1-36.91,11.19c60.9-33.88,102.68-102.41,102.68-181.32a214.39,214.39,0,0,0-30.49-110.86c16.62,17.72,31.36,37.31,48.39,54.89h0c7.54,15.48,13.4,32.1,15.93,49.19,2.7,18.28.59,36.79-2,54.95-2,14.11-4.42,28.23-8.67,41.83,28.88-30.77,50.69-66,55.84-107.33,20.09,6.28,41.56,7.88,62.11,3.39-21-4.59-67.64-13.93-70-41.7,41,8.65,87.73.9,110.92-38.3a110,110,0,0,1-15.61,6.49c-46.76,14.91-89.34,1.83-125.59-29.31-12.53-10.76-24.17-22-35.86-33,1.94,1.09,3.87,2.18,5.82,3.25,3.31,1.64,6.59,3.37,10,4.82a169.45,169.45,0,0,0,42,12.7c14.45,2.12,29.17,2.64,43.48.3a114.06,114.06,0,0,0,20.82-5.55,98,98,0,0,0,18.9-9.62c-6.68,2.21-13.26,4.32-20.09,5.24a111,111,0,0,1-20.29,1.64,141.9,141.9,0,0,1-39.54-6.37,172.31,172.31,0,0,1-36.31-15.91c-11.25-6.52-22.21-14.79-33.09-23.05s-21.88-17.12-33.67-25.4c-5.87-4.16-11.93-8.22-18.3-12-3.13-1.91-6.45-3.7-9.67-5.45l-9.73-5a310.05,310.05,0,0,0-40.58-16.27A316.49,316.49,0,0,0,1268,161.34a303.28,303.28,0,0,0-43.72-3.9,279.57,279.57,0,0,0-43.76,2.94,414.53,414.53,0,0,0-83.41,20.53,356.35,356.35,0,0,0-76.59,38.15c-23.69,15.81-45.29,34.63-63.18,56.23a419.24,419.24,0,0,1,146.88-72C1104.69,203.2,1105.15,203.09,1105.6,203Zm-40.78,215a202.44,202.44,0,0,1,4.07-40.33A85,85,0,0,1,1106,375.5a168.4,168.4,0,0,0,11.56,59.8,129.63,129.63,0,0,0-48.51,23.93A202.5,202.5,0,0,1,1064.82,418Zm8.87,59.17a114.86,114.86,0,0,1,51-26.36,145.26,145.26,0,0,0,40.63,48.61,123.09,123.09,0,0,0-45.59,55.43A190,190,0,0,1,10
41173.69,477.15Zm53.82,85.2a112.9,112.9,0,0,1,46.7-56.75,125,125,0,0,0,16.22,8.66,215,215,0,0,0-31.89,70.28A172.47,172.47,0,0,1,1127.51,562.35ZM1331,574.76a111.24,111.24,0,0,0-36.67-64.49,130.33,130.33,0,0,0,26-18.35c4.84,1,9.9,3.69,14.57,7.51A121.46,121.46,0,0,1,1349,513.69a126.94,126.94,0,0,0-7.62-19.46,50.15,50.15,0,0,0-10-13.52,148.16,148.16,0,0,0,12.37-16.14,79.87,79.87,0,0,1,45,41.86A183.66,183.66,0,0,1,1331,574.76Zm63.06-80a90.68,90.68,0,0,0-45-38.85,159.52,159.52,0,0,0,13.51-30.73,40.6,40.6,0,0,1,4.14,0,76.44,76.44,0,0,1,41.25,15A198.51,198.51,0,0,1,1394.06,494.73Zm1.67-149.48A200.44,200.44,0,0,1,1409.25,418c0,1,0,2-.06,3a93.29,93.29,0,0,0-41.54-12.44c-.22,0-.46,0-.69,0a171.9,171.9,0,0,0,3.61-35,174,174,0,0,0-1.73-24.35A61.62,61.62,0,0,1,1395.73,345.25ZM1329,259.81c26.62,18.36,48.32,44.42,62.41,75.3a71.53,71.53,0,0,0-24.31,4c-6.65-32.64-22.53-61.23-44.38-81.93Q1325.88,258.46,1329,259.81ZM1250.33,403c3.67-7.65,12.58-10.54,18.93-4.66a28.87,28.87,0,0,1,5.51,7.84,110.42,110.42,0,0,1,8.21,20.25,102.16,102.16,0,0,1,18-18.88c2.16-1.75,4.47-3.44,7.14-4a10.32,10.32,0,0,1,9.1,2.65,13.1,13.1,0,0,1,3.94,9c.16,4.19-1.47,8.24-3.43,11.93-4.14,7.79-9.83,14.59-15.77,21a320.73,320.73,0,0,1-28,26.62c-4.84-9.51-10.78-18.36-15.79-27.78s-9.12-19.61-9.87-30.39C1248,412,1248.33,407.16,1250.33,403Zm-.67,120.9a118,118,0,0,0,34.72-8.85,100.64,100.64,0,0,1,37.45,65.79,159.48,159.48,0,0,1-154.19,8.43A205,205,0,0,1,1200,518a117.14,117.14,0,0,0,34.41,6.35,229.35,229.35,0,0,0,8.69,53.13A221.42,221.42,0,0,1,1249.66,523.9Zm-21.8-254.55c6.9,4,9.09,13.1,4.9,20.36s-13.18,9.91-20.08,5.93-9.08-13.09-4.89-20.35S1221,265.37,1227.86,269.35Zm-16.19-21a166.11,166.11,0,0,0-35.82,26.36,153.82,153.82,0,0,0-26.07,33.83,162.88,162.88,0,0,0-16.16,39.67,186.4,186.4,0,0,0-5.82,44.23c-6.49-14.22-8.52-30.52-7-46.45a114.21,114.21,0,0,1,14.56-45.72,110.09,110.09,0,0,1,32.21-35.69C1180.67,255.39,1196.05,249.29,1211.67,248.37Zm-105.49,117a95.23,95.23,0,0,0-34.73,1.28c13.74-52.33,47.91-95.36,92.53-118.18C1130.8,274.26,1108.42,316.78,1106.18,365.4Z","M1034.45,168.54c2.25-1.08,4.65-1.87,7-2.81l13.9-5.54c4.66-1.74,9.45-3.16,14.15-4.78s9.38-3.23,14.21-4.39c38.17-10.73,77.61-16.27,117-15.19,4.91.17,9.85,0,14.75.43l14.7,1.25c4.93.23,9.79,1,14.65,1.72s9.76,1.35,14.61,2.15l14.47,3c2.41.51,4.84.94,7.23,1.52l7.14,1.93,14.29,3.87,14,4.76a250.2,250.2,0,0,1,53.58,25.05,205.93,205.93,0,0,1,46,38.66c-9.4-18.27-23.27-34.41-39.25-47.92a215.38,215.38,0,0,0-53.51-32.82l-14.45-6.24-14.88-5.1-7.47-2.53c-2.5-.79-5.07-1.33-7.61-2l-15.28-3.87c-20.59-4-41.51-7.08-62.55-7.16-42-1.12-84.13,6.49-123.24,21.17a155.7,155.7,0,0,0-14.47,6c-4.74,2.17-9.57,4.12-14.2,6.52l-13.72,7.46c-2.26,1.29-4.59,2.42-6.77,3.85l-6.54,4.24c-4.32,2.89-8.7,5.64-12.91,8.63-4.09,3.2-8.19,6.36-12.19,9.6-2,1.63-4,3.2-6,4.86l-5.66,5.28c-3.7,3.58-7.44,7.08-11,10.7,17.62-10.57,34.77-21.15,53.29-29.06Z","M1001.62,50c46.16-2.4,91.9-5.23,137.41-6.12q34.15-.73,68.1.32,34.14,1.15,68.26,3.87,68.2,5.43,135.85,17.32a1280.31,1280.31,0,0,1,133.76,31A6,6,0,0,0,1548.75,85a1297.8,1297.8,0,0,0-133-40.62q-67.59-16.85-136.8-27.1-34.55-5.16-69.33-8.74-35-3.54-70-5.16C1093,1.1,1046.66.77,1000.72,0c-.55,0-1.18,0-1.74,0a25,25,0,0,0,2.64,50Z","M110.92,362.33c-2.34,27.77-49,37.11-70,41.7,20.55,4.49,42,2.89,62.12-3.39C108.2,442,130,477.2,158.89,508c-4.25-13.6-6.62-27.72-8.66-41.83-2.63-18.16-4.75-36.67-2-54.95,2.52-17.09,8.38-33.71,15.93-49.19h0c17-17.58,31.77-37.17,48.39-54.89A214.39,214.39,0,0,0,182,418c0,78.91,41.78,147.44,102.68,181.32a317.33,317.33,0,0,1-36.91-11.19c15.82,13.26,35.18,22.16,54.91,28.36a299.93,299.93,0,0,0,60.76,12c5.16.49,10.36.72,15.54,1,5.21,0,10.4.24,15.6,0a213.17,213.17,0,0,0,31.07-3.08c20.5-3.52,40.58-10.33,58.12-21.12-10.13,2-19.94,4.16-29.9,5.4-9.71,1.22-19.35,2.32-29.05,2.7,78-25.12,135-103.18,135-195.38,0-76.69-39.44-143.6-97.57-178.4,22.48,3.3,44.45,9.28,65.05,19.25,23.43,11.34,44.82,26.78,64.63,44.06a8.31,8.31,0,0,0,.93,4.24l0,0a149.09,149.09,0,0,1,13.3,36.93A192.84,192.84,0,0,1,610.78,384a170.32,170.32,0,0,1-4.19,40.32,121.47,121.47,0,0,1-15.32,37.85c8.54-10.86,14.83-23.5,19.33-36.71a176,176,0,0,0,8.5-41.12,202.23,202.23,0,0,0-.65-42.37q-1-8.48-2.87-16.9c6.55,6.49,12.93,13.1,19.14,19.74,3.81,4.06,7.69,9.16,11.78,12.45C623,312.05,588.84,270.48,551,236.55A224.05,224.05,0,0,0,502.33,203c.45.13.9.24,1.35.36a419.28,419.28,0,0,1,146.89,72c-17.9-21.6-39.5-40.42-63.19-56.23a356.35,356.35,0,0,0-76.59-38.15,414.53,414.53,0,0,0-83.41-20.53,279.53,279.53,0,0,0-43.75-2.94,303.16,303.16,0,0,0-43.72,3.9,316.26,316.26,0,0,0-42.58,10.29,309.92,309.92,0,0,0-40.57,16.27l-9.73,5c-3.23,1.75-6.54,3.54-9.68,5.45-6.36,3.74-12.43,7.8-18.29,12-11.79,8.28-22.76,17-33.68,25.4s-21.84,16.53-33.08,23.05A172.61,172.61,0,0,1,116,274.64,141.84,141.84,0,0,1,76.44,281a110.84,110.84,0,0,1-20.28-1.64c-6.83-.92-13.41-3-20.09-5.24A97.59,97.59,0,0,0,55,283.75a114,114,0,0,0,20.83,5.55c14.3,2.34,29,1.82,43.47-.3a169.53,169.53,0,0,0,42-12.7c3.39-1.45,6.66-3.18,10-4.82,2-1.07,3.88-2.16,5.82-3.25-11.69,11-23.33,22.22-35.85,33C105,332.35,62.37,345.43,15.61,330.52A110.44,110.44,0,0,1,0,324C23.19,363.23,70,371,110.92,362.33Zm89,77.82a76.38,76.38,0,0,1,41.23-15,41,41,0,0,1,4.16,0,159.49,159.49,0,0,0,13.5,30.73,90.62,90.62,0,0,0-44.94,38.85A197.8,197.8,0,0,1,199.92,440.15Zm77,134.61a183.64,183.64,0,0,1-57.77-68.33,79.89,79.89,0,0,1,45-41.86,149.43,149.43,0,0,0,12.37,16.14,50.11,50.11,0,0,0-10,13.52,126,126,0,0,0-7.63,19.46c4.52-5.12,9.13-10.21,14.15-14.26,4.67-3.82,9.72-6.55,14.56-7.51a130.68,130.68,0,0,0,26,18.35A111.31,111.31,0,0,0,276.92,574.76Zm172.46,9.78a215.32,215.32,0,0,0-31.88-70.28,123.84,123.84,0,0,0,16.22-8.67,112.85,112.85,0,0,1,46.7,56.76A173,173,0,0,1,449.38,584.54Zm38.86-29.71a123.2,123.2,0,0,0-45.61-55.42,145.25,145.25,0,0,0,40.65-48.62,115,115,0,0,1,51,26.36A190.14,190.14,0,0,1,488.24,554.83ZM543.1,418a202.5,202.5,0,0,1-4.26,41.25,129.63,129.63,0,0,0-48.51-23.93,168.4,168.4,0,0,0,11.55-59.8A85.12,85.12,0,0,1,539,377.65,202.44,202.44,0,0,1,543.1,418Zm-6.63-51.3a95.23,95.23,0,0,0-34.73-1.28c-2.24-48.62-24.62-91.14-57.79-116.9C488.56,271.32,522.73,314.35,536.47,366.68ZM440.41,264.6a110.31,110.31,0,0,1,32.21,35.69A114.37,114.37,0,0,1,487.18,346c1.46,15.93-.57,32.23-7.05,46.45a186.92,186.92,0,0,0-5.83-44.23,162.88,162.88,0,0,0-16.16-39.67,154.08,154.08,0,0,0-26.06-33.83,166.6,166.6,0,0,0-35.82-26.36C411.87,249.29,427.25,255.39,440.41,264.6Zm-60.35,4.75c6.9-4,15.89-1.32,20.08,5.94s2,16.37-4.9,20.35-15.88,1.33-20.07-5.93S373.17,273.33,380.06,269.35Zm-6.52,255A117.08,117.08,0,0,0,408,518a205.14,205.14,0,0,1,32.34,71.24,159.49,159.49,0,0,1-154.2-8.43,100.61,100.61,0,0,1,37.45-65.79,118,118,0,0,0,34.72,8.85,221.42,221.42,0,0,1,6.6,53.61A229.34,229.34,0,0,0,373.54,524.38ZM290.73,406.17a10.34,10.34,0,0,1,9.11-2.65c2.66.59,5,2.28,7.13,4a101.83,101.83,0,0,1,18,18.88,110.45,110.45,0,0,1,8.22-20.25,28.44,28.44,0,0,1,5.51-7.84c6.35-5.88,15.26-3,18.92,4.66,2,4.16,2.34,9,2,13.59-.74,10.78-4.86,21-9.87,30.39S338.8,465.25,334,474.76a320.73,320.73,0,0,1-28-26.62c-5.94-6.42-11.63-13.22-15.77-21-2-3.69-3.58-7.74-3.43-11.93A13.14,13.14,0,0,1,290.73,406.17Z
411M278.92,259.81c2.08-.9,4.18-1.77,6.28-2.61-21.84,20.7-37.73,49.29-44.38,81.93a71.51,71.51,0,0,0-24.3-4C230.6,304.23,252.3,278.17,278.92,259.81Zm-39.83,89.3A171.28,171.28,0,0,0,241,408.49c-.24,0-.48,0-.7,0A93.21,93.21,0,0,0,198.74,421c0-1-.07-2-.07-3a200.23,200.23,0,0,1,13.53-72.73A61.66,61.66,0,0,1,239.09,349.11Z","M616.84,184.82c-2-1.66-4-3.23-6-4.86-4-3.24-8.11-6.4-12.19-9.6-4.22-3-8.6-5.74-12.92-8.63l-6.54-4.24c-2.18-1.43-4.51-2.56-6.76-3.85l-13.73-7.46c-4.62-2.4-9.45-4.35-14.2-6.52a155.7,155.7,0,0,0-14.47-6C490.93,119,448.85,111.38,406.8,112.5c-21,.08-41.95,3.11-62.55,7.16L329,123.53c-2.53.68-5.1,1.22-7.61,2l-7.46,2.53L299,133.17l-14.44,6.24a215.25,215.25,0,0,0-53.52,32.82c-16,13.51-29.85,29.65-39.25,47.92a205.76,205.76,0,0,1,46-38.66,250,250,0,0,1,53.58-25.05l14-4.76,14.3-3.87,7.13-1.93c2.39-.58,4.82-1,7.23-1.52l14.47-3c4.85-.8,9.75-1.42,14.61-2.15s9.72-1.49,14.65-1.72l14.7-1.25c4.91-.39,9.84-.26,14.76-.43,39.37-1.08,78.81,4.46,117,15.19,4.84,1.16,9.5,2.84,14.22,4.39s9.48,3,14.15,4.78l13.89,5.54c2.31.94,4.71,1.73,7,2.81l6.78,3.2c18.52,7.91,35.68,18.49,53.3,29.06-3.61-3.62-7.35-7.12-11-10.7Z","M62.92,96.38a1280.31,1280.31,0,0,1,133.76-31q67.55-12,135.85-17.32,34.11-2.71,68.26-3.87,34-1.1,68.1-.32c45.52.89,91.26,3.72,137.42,6.12.54,0,1.18,0,1.73,0a25,25,0,1,0-.83-50c-45.94.77-92.32,1.1-138.92,3.38q-34.93,1.67-70,5.16Q363.54,12.13,329,17.28,259.92,27.6,192.2,44.38A1296.86,1296.86,0,0,0,59.18,85a6,6,0,0,0,3.74,11.38Z"]},fierce:{label:"Fierce",viewBox:"0 0 1712.72 494.95",paths:["M1615.4,172.86a96.69,96.69,0,0,1-20.32-5.63c-3.48-1.36-6.95-2.87-10.4-4.5,19.83-24.07,38.17-49.19,53.92-76.15-17.31,12.09-35,24.06-54.92,31.35-16.47,6-33.7,9.34-50.77,13.2-6.52-4.21-13.47-8.47-20.53-12.5-.7-.4-1.43-.77-2.14-1.17q11.77-18.21,22.34-37.1c.51.28,1,.54,1.55.81,11.43,6.15,22.62,12.81,33.67,19.81a334,334,0,0,0-30.74-24.52c-.55-.39-1.12-.76-1.67-1.14,6.4-11.79,12.4-23.81,17.86-36.12-10.51,9.23-21.21,18.4-32.76,26.3q-8.33-5.2-16.88-10.06c-5.73-3.3-11.71-6.09-17.58-9.16-5.93-2.91-12-5.55-18-8.34-6.1-2.57-12.28-5-18.46-7.36-6.27-2.13-12.51-4.41-18.83-6.42-1.61-.51-3.24-1-4.87-1.47,1-7.54,1.87-15.09,2.52-22.69-3.83,6.72-7.7,13.44-11.81,20A417.92,417.92,0,0,0,1273,6a405.13,405.13,0,0,0-78.67,14.2c-25.57,7.66-50.53,17.58-73.75,30.71-46.61,25.75-86.9,63-114.15,107.71a373.24,373.24,0,0,1,121.33-93.92,394.43,394.43,0,0,1,71.59-26.29,406.56,406.56,0,0,1,75.21-12.47,472.32,472.32,0,0,1,132.16,8.69,154.61,154.61,0,0,1-14.49,17.27,230.16,230.16,0,0,1-19,17A398.81,398.81,0,0,0,1333.64,64c-36.06-2.63-72.71-.75-108.36,6.82-8.91,1.89-17.77,4-26.5,6.62l-6.56,1.89-6.48,2.17c-4.31,1.44-8.6,2.84-13,4.68a223.93,223.93,0,0,0-27.87,12.63c-3.09,1.27-6.2,2.51-9.27,3.85a397.74,397.74,0,0,0-58.83,31.19c-18.65,12.11-36,26.32-50.72,42.86s-26.63,35.46-34.12,55.92a172,172,0,0,1,38.88-51.24,237.37,237.37,0,0,1,50.91-35.08c-.33.34-.68.65-1,1A289.84,289.84,0,0,0,1047.13,189a372.52,372.52,0,0,0-44.45,93.41c11.84-12.46,23.24-24.92,34.81-36.93q11.35-11.68,23-22.63a109.74,109.74,0,0,0-3.65,17.94,128.78,128.78,0,0,0,1,36.77,127.48,127.48,0,0,0,11.33,35c5.49,11,12.54,21.17,21.65,29.45-3.16-11.88-6.57-22.94-9.38-34.06s-5.25-22.1-7.17-33.22-3.35-22.31-4.38-33.7q-.8-8.55-1.29-17.28c-.14-2.61-.3-5.29-.43-8,1.61-1.45,3.22-2.93,4.84-4.36a356.85,356.85,0,0,1,37.4-29.22c6.39-4.42,13-8.32,19.5-12.28l10-5.34c3.3-1.83,6.81-3.21,10.15-4.88A267.64,267.64,0,0,1,1180.56,148a173.75,173.75,0,0,0-46.74,119.32c0,93.63,72.47,169.81,161.54,169.81,1,0,1.9-.06,2.86-.08,5.48.83,11,1.44,16.64,1.76a129.07,129.07,0,0,0,13.05.08c4.38,0,8.71-.54,13.06-1a180.78,180.78,0,0,0,25.56-5,227.31,227.31,0,0,0,47.63-19.35,273.41,273.41,0,0,0,42.48-28.11c-16.49,4.6-32.19,10.59-47.82,16.13-9.21,3.34-18.39,6.53-27.58,9.49,45.41-30.09,75.66-83.25,75.66-143.72,0-47.11-18.35-89.78-47.92-120.57q5.4,1.29,10.8,2.69c15.1,4,30.07,8.53,44.82,13.76,7.38,2.61,14.72,5.35,22,8.3s14.39,6,22,9.4,15.41,6.83,23.59,10.22c3,1.22,6,2.43,9,3.61,4.75,17.58,8.43,61.48-32.85,140.67l4.45-1c77.16-69.05,85.09-112.47,85.29-126.62a119.82,119.82,0,0,0,17-.46c19.41-2,36.53-8.55,52.2-15.88s30.2-15.77,45.42-23.74c-17.2.39-34.34,3.17-50.78,5S1629.57,175.37,1615.4,172.86Zm-342.07,17.07c-6.18,9.73-15.07,10.79-25.66,9.65-9.11-1-20-2.94-26.68,5-5.87,6.93-6.26,17-12.63,23.68-7.91,8.23-19.82,7-27.36-1-11.09-11.81-11-26.88-5-41.21,8.25-20,27.78-38.57,43.64-44.68,19.23-7.41,45.
41163-3.7,55.52,16.63A33.66,33.66,0,0,1,1273.33,189.93Zm32.13-28c-6.22-3.59-8.2-11.81-4.42-18.36s11.89-8.94,18.11-5.35,8.19,11.81,4.41,18.36S1311.68,165.48,1305.46,161.89Zm20.38,190.94,46.64-51a3.34,3.34,0,0,1,4.93,4.51l-46.65,51a3.33,3.33,0,1,1-4.92-4.5Zm86.71-48.44a3.33,3.33,0,0,1,.21,4.71l-79.25,86.61a3.34,3.34,0,0,1-4.93-4.5l79.26-86.61A3.33,3.33,0,0,1,1412.55,304.39Zm89.58-228c-13.86,6.88-28.55,11.74-43.19,16.72-6.55-2.59-13.15-5.07-19.82-7.34q-11.61-3.94-23.52-7.26c3.07-13.28,5.76-26.64,8-40.08,1,.24,1.93.46,2.89.71a460.8,460.8,0,0,1,72.8,25.07c4.57,2,9.08,4.06,13.58,6.21C1509.34,72.57,1505.8,74.6,1502.13,76.42Z","M636,133.88a397.74,397.74,0,0,0-58.83-31.19c-3.07-1.34-6.18-2.58-9.27-3.85A223.93,223.93,0,0,0,540,86.21c-4.43-1.84-8.72-3.24-13-4.68l-6.48-2.17-6.56-1.89c-8.73-2.62-17.59-4.73-26.5-6.62-35.65-7.57-72.3-9.45-108.36-6.82a398.81,398.81,0,0,0-39.61,4.88,228.55,228.55,0,0,1-19-17A154.61,154.61,0,0,1,306,34.62a472.32,472.32,0,0,1,132.16-8.69,406.31,406.31,0,0,1,75.2,12.47A394.25,394.25,0,0,1,585,64.69a373.1,373.1,0,0,1,121.32,93.92C679,113.87,638.73,76.65,592.12,50.9c-23.21-13.13-48.18-23-73.74-30.71A405.13,405.13,0,0,0,439.71,6,417.92,417.92,0,0,0,296.15,20c-4.11-6.57-8-13.29-11.81-20,.65,7.6,1.52,15.15,2.52,22.69-1.63.49-3.26,1-4.87,1.47-6.33,2-12.56,4.29-18.83,6.42C257,33,250.8,35.37,244.7,37.94c-6,2.79-12.08,5.43-18,8.34-5.86,3.07-11.85,5.86-17.57,9.16S197.78,62,192.23,65.5C180.68,57.6,170,48.43,159.46,39.2c5.47,12.31,11.47,24.33,17.87,36.12-.55.38-1.12.75-1.67,1.14A334,334,0,0,0,144.92,101c11.05-7,22.24-13.66,33.67-19.81l1.55-.81q10.53,18.92,22.34,37.1c-.71.4-1.44.77-2.14,1.17-7.06,4-14,8.29-20.53,12.5-17.07-3.86-34.3-7.18-50.77-13.2-19.95-7.29-37.61-19.26-54.92-31.35,15.75,27,34.09,52.08,53.92,76.15-3.45,1.63-6.92,3.14-10.41,4.5a96.52,96.52,0,0,1-20.32,5.63c-14.16,2.51-30.08,1.49-46.53-.23S17.2,168,0,167.65c15.22,8,29.69,16.33,45.42,23.74s32.79,13.86,52.2,15.88a119.82,119.82,0,0,0,17,.46c.2,14.15,8.13,57.57,85.29,126.62l4.45,1c-41.28-79.19-37.61-123.09-32.85-140.67,3.05-1.18,6.07-2.39,9-3.61,8.18-3.39,16.05-6.82,23.59-10.22s14.73-6.51,22-9.4,14.61-5.69,22-8.3c14.75-5.23,29.72-9.78,44.82-13.76q5.4-1.4,10.8-2.69c-29.57,30.79-47.92,73.46-47.92,120.57,0,60.47,30.25,113.63,75.66,143.72-9.19-3-18.37-6.15-27.59-9.49C288.27,396,272.57,390,256.08,385.38a272.94,272.94,0,0,0,42.48,28.11,227.31,227.31,0,0,0,47.63,19.35,180.78,180.78,0,0,0,25.56,5c4.35.43,8.68.93,13.05,1a129.25,129.25,0,0,0,13.06-.08c5.62-.32,11.16-.93,16.64-1.76,1,0,1.9.08,2.86.08,89.07,0,161.54-76.18,161.54-169.81A173.75,173.75,0,0,0,532.16,148a269.09,269.09,0,0,1,30.46,11.73c3.34,1.67,6.85,3.05,10.15,4.88l10,5.34c6.49,4,13.11,7.86,19.5,12.28a356.85,356.85,0,0,1,37.4,29.22c1.62,1.43,3.23,2.91,4.84,4.36-.13,2.69-.29,5.37-.43,8q-.51,8.75-1.29,17.28c-1,11.39-2.46,22.59-4.38,33.7s-4.32,22.13-7.18,33.22-6.21,22.18-9.37,34.06c9.11-8.28,16.16-18.48,21.64-29.45a127.17,127.17,0,0,0,11.34-35,128.78,128.78,0,0,0,1-36.77,109.74,109.74,0,0,0-3.65-17.94q11.64,10.93,23,22.63c11.57,12,23,24.47,34.81,36.93A372.52,372.52,0,0,0,665.59,189,289.84,289.84,0,0,0,632,147.33c-.33-.34-.68-.65-1-1a237.37,237.37,0,0,1,50.91,35.08,172.15,172.15,0,0,1,38.88,51.24c-7.49-20.46-19.41-39.42-34.12-55.92S654.63,146,636,133.88ZM273.6,85.8c-6.67,2.27-13.27,4.75-19.82,7.34-14.64-5-29.33-9.84-43.19-16.72-3.67-1.82-7.21-3.85-10.69-6,4.49-2.15,9-4.24,13.58-6.21a460.45,460.45,0,0,1,72.8-25.07c1-.25,1.93-.47,2.89-.71,2.19,13.44,4.87,26.8,7.94,40.08Q285.23,81.87,273.6,85.8ZM383.93,395.92a3.33,3.33,0,0,1-4.72-.21L300,309.1a3.33,3.33,0,0,1,4.92-4.5l79.26,86.61A3.34,3.34,0,0,1,383.93,395.92Zm2.74-38.38a3.32,3.32,0,0,1-4.71-.21l-46.65-51a3.34,3.34,0,0,1,4.93-4.51l46.64,51A3.33,3.33,0,0,1,386.67,357.54Zm20.59-195.65c-6.22,3.59-14.32,1.19-18.1-5.35s-1.81-14.77,4.41-18.36,14.33-1.2,18.11,5.35S413.48,158.3,407.26,161.89Zm129.5,24.17c5.91,14.33,6,29.4-5,41.21-7.54,8-19.45,9.22-27.36,1-6.37-6.63-6.77-16.75-12.63-23.68-6.72-7.94-17.58-6-26.68-5-10.59,1.14-19.48.08-25.66-9.65A33.66,33.66,0,0,1,437.6,158c9.89-20.33,36.28-24,55.52-16.63C509,147.49,528.51,166,536.76,186.06Z","M1475.67,494.44l.11.51.47-.22a335.85,335.85,0,0,0,36-19.19c7.09-4.39,15.26-9.84,22-17,2.44-2.57,5.81-6.55,7-11.35a14.11,14.11,0,0,0-1.51-10.6,11.29,11.29,0,0,0-8.84-5.45c-3-.16-6,1-8.58,2.12a108.11,108.11,0,0,0-23,13.66,117.27,117.27,0,0,0-2.63-22.14,30.62,30.62,0,0,0-3.45-9.66,11.93,11.93,0,0,0-9.28-5.89,14.53,14.53,0,0,0-11.93,5.24c-2.84,3.26-4.8,7.66-6,13.44-2,9.66-1.5,20.41,1.47,33.83,1.13,5.07,2.51,10.16,3.84,15.07C1472.85,482.57,1474.46,488.51,1475.67,494.44Z"]},alert:{label:"Alert",viewBox:"0 0 1599.65 602.92",paths:["M1515,293.29c-8.86-5.53-18-10.54-27.41-15.19-15.73-7.79-32-14.52-48.34-20.9A740.21,740.21,0,0,1,1514,283.06c28,11.08,56.11,23.58,85.67,31-27.49-13-53.33-28.3-80.12-42.88-6.72-3.58-13.51-7.11-20.45-10.39l-10.37-5-10.51-4.71c-14-6.3-28.42-11.66-42.9-16.83-58.19-19.95-118.91-31.61-179.74-37.72-15.23-1.52-30.45-2.71-45.71-3.68s-30.69-1.4-46.07-1.32a589.49,589.49,0,0,0-92.07,7.13,426.59,426.59,0,0,0-45.29,9.62c-14.88,4.07-29.54,8.8-43.88,14.24a512.42,512.42,0,0,0-82,40.51c28.49-10.6,57-20.66,86-28.11a514.53,514.53,0,0,1,57.26-11.85,287.34,287.34,0,0,0-72.45,52.42,334.4,334.4,0,0,0-32.18,36.74
411c-6.93,9.18-10.5,20.65-19,28.68,5.44-3.51,10.76-7.64,16.12-11.41,44.94-31.65,95.56-54,149.87-63.57a362,362,0,0,1,49.93-5.11A194.09,194.09,0,0,0,1074,403.16c0,82.77,51.94,153.59,124.92,181.7-19.78-2.51-39.55-5.77-59.52-9.07a342.34,342.34,0,0,0,66.57,20.4,324.65,324.65,0,0,0,69.78,6.68,248.91,248.91,0,0,0,69.58-10.72c22.48-6.92,43.88-17.64,61.89-32.34a300.49,300.49,0,0,1-59.19,21c67.87-30.44,115.28-98.61,115.28-177.68A193.71,193.71,0,0,0,1449,329.9c7,4,13.9,8.35,20.55,13,16.5,11.56,37.92,24.6,47.88,42.68,12.31,22.35,3.29,49-8.67,69.38q-10.85,18.5-21.7,37c-7.45,12.68-15.3,25.19-22.46,38,6-5.74,11.63-11.82,17.12-18,22.36-25.31,44.32-50.39,65.53-76.7,17.62-21.87,34.69-48.8,26.71-78.13C1566.34,329.1,1538.56,308,1515,293.29Zm-216.3-16.65c3-12,16.47-13.29,26.64-11.16a55.91,55.91,0,0,1,14.08,5c7.41,3.84,14,9.42,18,16.44,3.58,6.28,6.85,24.94-4.13,26.28-6.83.83-12.22-9-16.78-12.68-4.91-3.93-11.23-4-17.16-5C1310.28,294,1295.84,288.44,1298.74,276.64Zm-45.62-10.47a39.69,39.69,0,0,1,5.87,10.55,60.32,60.32,0,0,1,3.07,11,58.65,58.65,0,0,1,1,11.42,39.37,39.37,0,0,1-1.86,11.93,39.26,39.26,0,0,1-5.88-10.54,59.5,59.5,0,0,1-3.06-11.05,61.18,61.18,0,0,1-1-11.43A40,40,0,0,1,1253.12,266.17Zm-27.67,6.26c3,6.72,5.53,13.57,7.79,20.52a219.11,219.11,0,0,1,5.75,21.18c1,4.93,1.92,9.9,2.47,15,.26,2.34.47,4.7.55,7.09-1.38-2.05-2.62-4.14-3.82-6.24-2.48-4.39-4.65-8.87-6.68-13.4A224,224,0,0,1,1218,274.85a130.19,130.19,0,0,1-3-22.07A130.11,130.11,0,0,1,1225.45,272.43Zm-29.67,18.14a77.53,77.53,0,0,1,7.58,10.44,75.25,75.25,0,0,1,5.73,11.55,48.19,48.19,0,0,1,3.29,13,48.55,48.55,0,0,1-10-9,75.77,75.77,0,0,1-7.56-10.45,77.11,77.11,0,0,1-5.73-11.55,48.75,48.75,0,0,1-3.29-13A48.7,48.7,0,0,1,1195.78,290.57ZM1450,403.16a180.18,180.18,0,0,1-23.23,88.63l-63.73-36.45,55.74,49.43a183.11,183.11,0,0,1-38.72,41.31l-30.82-35.54,19,44.05a180.95,180.95,0,0,1-238.57-35.15l37.38-46.16-46.61,34.12a180.94,180.94,0,0,1-18.73-33.52L1163,430.5l-66.6,28.93a180.85,180.85,0,0,1,16.61-149c1.59,13.74,11.24,26.51,27.26,34.29,22.38,10.85,44.41,4.71,66-3.43a77.45,77.45,0,0,0-19.32,45.93,72.51,72.51,0,0,0-12.51-3,100.83,100.83,0,0,0-17.14-1.13,99.82,99.82,0,0,0-17.08,1.73,63.74,63.74,0,0,0-17,5.56,64.4,64.4,0,0,0,17.2,4.93,100.8,100.8,0,0,0,17.14,1.11,101.9,101.9,0,0,0,17.08-1.75,74.08,74.08,0,0,0,12.13-3.4c0,.53,0,1.06,0,1.6a77.72,77.72,0,0,0,36.61,66c-2.55,3.71-4.85,7.52-7,11.39a190.42,190.42,0,0,0-17,43.27,111.08,111.08,0,0,0-3.63,23.55A111.12,111.12,0,0,0,1209,517.31a183.72,183.72,0,0,0,9.84-21.12A187.2,187.2,0,0,0,1226,474c1-4,1.86-8.07,2.52-12.22a77.46,77.46,0,0,0,35.91,8.81,97.05,97.05,0,0,0-2.69,16,143.19,143.19,0,0,0-.28,20.39,140.29,140.29,0,0,0,2.59,20.23,86.49,86.49,0,0,0,6.4,20,87.46,87.46,0,0,0,4.07-20.61,141.74,141.74,0,0,0,.26-20.39,143.2,143.2,0,0,0-2.61-20.23,96.84,96.84,0,0,0-4.46-15.51,77.37,77.37,0,0,0,35.84-10.47,63.83,63.83,0,0,0,1.55,12.54,88.18,88.18,0,0,0,4.9,15.26,87,87,0,0,0,7.54,14.14,56.77,56.77,0,0,0,11.06,12.66,56.94,56.94,0,0,0-1.4-16.75,87.85,87.85,0,0,0-4.92-15.25,89.07,89.07,0,0,0-7.56-14.14,62.28,62.28,0,0,0-8.33-10.19,77.82,77.82,0,0,0,34.5-51,56.13,56.13,0,0,0,6.89,3.94,69.08,69.08,0,0,0,13.31,4.68,68.32,68.32,0,0,0,14,1.9,45.89,45.89,0,0,0,14.86-1.82,45.66,45.66,0,0,0-12.41-8.38,67.72,67.72,0,0,0-13.31-4.67,69.92,69.92,0,0,0-14-1.88,56.62,56.62,0,0,0-8.47.45,78.75,78.75,0,0,0,.5-8.74,77.53,77.53,0,0,0-6.81-31.82,67.93,67.93,0,0,0,13.41,8.12c29.62,13.15,79.09,5.87,92.3-21.86A180.73,180.73,0,0,1,1450,403.16Z","M914.5,169.43l10.64,2.13c3.55.74,7.14,1.08,10.73,1.64,14.38,2.22,29,2.66,43.55,2.75,29.18-.47,58.3-4.55,86.67-11s56.09-15.12,83.19-24.72l80.1-29.19c53.27-19.39,106.52-38.58,160.13-56.94,53.57-18.61,107.56-35.91,162-54.12-57.2,4.59-113.79,15.11-169.4,29A1624.17,1624.17,0,0,0,1218,79.74q-20.13,7.45-40.15,15.15l-39.66,15.83c-26.17,10.53-52.37,20.42-78.93,29a555.44,555.44,0,0,1-81.14,19.95,408.68,408.68,0,0,1-41.8,4.32c-14.1.93-28.24.35-42.61-.21q5.15,1.55,10.35,3C907.49,167.75,911,168.76,914.5,169.43Z","M699.09,263a512.42,512.42,0,0,0-82-40.51q-21.52-8.16-43.89-14.24a425.88,425.88,0,0,0-45.28-9.62,589.49,589.49,0,0,0-92.07-7.13c-15.38-.08-30.75.49-46.07,1.32s-30.48,2.16-45.71,3.68c-60.83,6.11-121.55,17.77-179.74,37.72-14.48,5.17-28.88,10.53-42.9,16.83l-10.51,4.71-10.37,5c-6.94,3.28-13.73,6.81-20.45,10.39C53.33,285.77,27.49,301.06,0,314.07c29.56-7.43,57.68-19.93,85.67-31a740.89,740.89,0,0,1,74.68-25.86c-16.32,6.38-32.6,13.11-48.33,20.9-9.37,4.65-18.55,9.66-27.41,15.19C61.09,308,33.31,329.1,25.69,357.13c-8,29.33,9.09,56.26,26.71,78.13,21.21,26.31,43.17,51.39,65.53,76.7,5.49,6.21,11.15,12.29,17.12,18-7.16-12.84-15-25.35-22.46-38q-10.86-18.49-21.7-37c-12-20.39-21-47-8.67-69.38,10-18.08,31.38-31.12,47.88-42.68,6.65-4.65,13.53-9,20.55-13a193.71,193.71,0,0,0-14.35,73.26c0,79.07,47.41,147.23,115.28,177.68a300.49,300.49,0,0,1-59.19-21c18,14.7,39.41,25.42,61.89,32.34a248.91,248.91,0,0,0,69.58,10.72,324.65,324.65,0,0,0,69.78-6.68,342.34,342.34,0,0,0,66.57-20.4c-20,3.3-39.75,6.56-59.52,9.07,73-28.11,124.92-98.93,124.92-181.7a194.09,194.09,0,0,0-62.06-142.33,362,3
41162,0,0,1,49.93,5.11c54.31,9.58,104.93,31.92,149.87,63.57,5.36,3.77,10.68,7.9,16.12,11.41-8.49-8-12.06-19.5-19-28.68A334.4,334.4,0,0,0,628.3,275.5a287.34,287.34,0,0,0-72.45-52.42,514.53,514.53,0,0,1,57.26,11.85C642.14,242.38,670.6,252.44,699.09,263ZM390.56,312.56A75.25,75.25,0,0,1,396.29,301a77.53,77.53,0,0,1,7.58-10.44,48.7,48.7,0,0,1,10-9,48.75,48.75,0,0,1-3.29,13,77.11,77.11,0,0,1-5.73,11.55,75.77,75.77,0,0,1-7.56,10.45,48.55,48.55,0,0,1-10,9A48.19,48.19,0,0,1,390.56,312.56Zm-32.37,16.55c.55-5.08,1.44-10.05,2.47-15a224.66,224.66,0,0,1,13.54-41.7,130.11,130.11,0,0,1,10.49-19.65,130.19,130.19,0,0,1-3,22.07,224,224,0,0,1-13.51,41.71c-2,4.53-4.2,9-6.68,13.4-1.2,2.1-2.44,4.19-3.82,6.24C357.72,333.81,357.93,331.45,358.19,329.11Zm-20.6-41.34a60.32,60.32,0,0,1,3.07-11,39.69,39.69,0,0,1,5.87-10.55,40.35,40.35,0,0,1,1.85,11.93,61.18,61.18,0,0,1-.95,11.43,59.5,59.5,0,0,1-3.06,11.05,39.26,39.26,0,0,1-5.88,10.54,39.07,39.07,0,0,1-1.86-11.93A58.65,58.65,0,0,1,337.59,287.77ZM242.16,287c4-7,10.62-12.6,18-16.44a55.91,55.91,0,0,1,14.08-5c10.17-2.13,23.69-.82,26.64,11.16,2.9,11.8-11.54,17.35-20.68,18.89-5.93,1-12.25,1.09-17.16,5-4.56,3.65-9.95,13.51-16.78,12.68C235.31,311.89,238.58,293.23,242.16,287Zm244.52,23.46a180.74,180.74,0,0,1,16.61,149l-66.6-28.93,61.22,43.38a180.94,180.94,0,0,1-18.73,33.52l-46.61-34.12L470,519.44a180.95,180.95,0,0,1-238.57,35.15l19-44.05-30.82,35.54a183,183,0,0,1-38.72-41.32l55.74-49.42-63.73,36.45a180.84,180.84,0,0,1-14.37-144.53c13.21,27.73,62.68,35,92.3,21.86A67.93,67.93,0,0,0,264.2,361a77.53,77.53,0,0,0-6.81,31.82,78.75,78.75,0,0,0,.5,8.74,56.62,56.62,0,0,0-8.47-.45,69.92,69.92,0,0,0-14,1.88,67.72,67.72,0,0,0-13.31,4.67A45.51,45.51,0,0,0,209.72,416a45.89,45.89,0,0,0,14.86,1.82,68.32,68.32,0,0,0,14-1.9,69.08,69.08,0,0,0,13.31-4.68,56.13,56.13,0,0,0,6.89-3.94,77.82,77.82,0,0,0,34.5,51,62.28,62.28,0,0,0-8.33,10.19,89.07,89.07,0,0,0-7.56,14.14,87.85,87.85,0,0,0-4.92,15.25,56.94,56.94,0,0,0-1.4,16.75A56.77,56.77,0,0,0,282.11,502a87,87,0,0,0,7.54-14.14,88.18,88.18,0,0,0,4.9-15.26,63.83,63.83,0,0,0,1.55-12.54,77.37,77.37,0,0,0,35.84,10.47,96.84,96.84,0,0,0-4.46,15.51,143.2,143.2,0,0,0-2.61,20.23,141.74,141.74,0,0,0,.26,20.39,87.46,87.46,0,0,0,4.07,20.61,87,87,0,0,0,6.4-20A140.29,140.29,0,0,0,338.19,507a143.19,143.19,0,0,0-.28-20.39,97.05,97.05,0,0,0-2.69-16,77.46,77.46,0,0,0,35.91-8.81c.66,4.15,1.53,8.21,2.52,12.22a185.38,185.38,0,0,0,7.18,22.16,182,182,0,0,0,9.84,21.12A111.12,111.12,0,0,0,404.06,537a111.08,111.08,0,0,0-3.63-23.55,190.42,190.42,0,0,0-17.05-43.27c-2.15-3.87-4.45-7.68-7-11.39a77.72,77.72,0,0,0,36.61-66c0-.54,0-1.07,0-1.6a73.81,73.81,0,0,0,12.13,3.4,101.9,101.9,0,0,0,17.08,1.75,100.8,100.8,0,0,0,17.14-1.11,64.4,64.4,0,0,0,17.2-4.93,63.74,63.74,0,0,0-17-5.56A99.82,99.82,0,0,0,442.41,383a100.83,100.83,0,0,0-17.14,1.13,72.51,72.51,0,0,0-12.51,3,77.45,77.45,0,0,0-19.32-45.93c21.57,8.14,43.6,14.28,66,3.43C475.44,336.92,485.09,324.15,486.68,310.41Z","M656.7,174a405.89,405.89,0,0,1-41.8-4.32,555.41,555.41,0,0,1-81.14-19.94c-26.56-8.62-52.76-18.5-78.93-29l-39.66-15.83q-20-7.74-40.15-15.15A1624.12,1624.12,0,0,0,210.9,39C155.29,25.12,98.7,14.59,41.5,10c54.41,18.21,108.4,35.52,162,54.12,53.61,18.36,106.87,37.55,160.13,56.94l80.1,29.19c27.11,9.6,54.83,18.22,83.19,24.72s57.49,10.52,86.67,11c14.6-.08,29.17-.53,43.55-2.74,3.59-.56,7.18-.9,10.73-1.64l10.64-2.13c3.53-.68,7-1.68,10.48-2.66s6.92-1.94,10.35-3C684.94,174.37,670.8,175,656.7,174Z"]},focused:{label:"Focused",viewBox:"0 0 1655.96 653.15",paths:["M1361.66,14.2c-6.28-1.24-12.53-2.63-18.83-3.73l-19-3.07c-12.53-1.61-25.06-3.23-37.67-4.32a696.29,696.29,0,0,0-75.9-3c-50.6,1-101.62,8.15-148.88,25.53a835.9,835.9,0,0,1,148.28-2c24.51,1.79,48.94,4.4,73.3,7.68,12.18,1.67,24.37,3.41,36.51,5.38l17.93,3.14c6,1.1,11.88,2.48,17.83,3.7,47.42,10.46,93.82,25.94,138.91,45.37s88.9,42.6,132.82,67a586.53,586.53,0,0,0-122.53-88.25A548.26,548.26,0,0,0,1361.66,14.2Z","M1555.79,323.25a523.73,523.73,0,0,0,43-66.9l.59-1.09-1.13.51a355.55,355.55,0,0,1-100.54,28.7c4.61-22.66,6.38-45.24,4.9-65.7l-.13-1.79-.67,1.66a16.51,16.51,0,0,1-4.19,5.39,261.86,261.86,0,0,1-45.83,35.47,361.82,361.82,0,0,0-36.6-18.91c-1-.43-2-.81-3-1.24a329.35,329.35,0,0,0,1.32
411-46.76l0-1-.68.73a320,320,0,0,1-37.63,34.22,311.55,311.55,0,0,0-44.9-8.57c-2.1-1.12-4.2-2.25-6.35-3.33-.3-3.65-.67-7.29-1-10.9-.74-7.13-1.51-14.5-1.67-21.74l0-1.52-.74,1.32A219.84,219.84,0,0,1,1304.58,206l-10.76-4c-2.38-.82-4.7-1.84-7.13-2.49l-7.26-2c-4.86-1.26-9.66-2.87-14.59-3.84a308.64,308.64,0,0,0-59.8-7c-20.07.14-40.23,1.16-59.91,5.22l-7.41,1.32-7.3,1.81c-4.87,1.21-9.74,2.4-14.56,3.72-9.5,3.22-19.15,5.93-28.28,10.11-18.67,7.22-36.09,17.34-52.49,28.53l-11.91,9c-3.93,3-7.52,6.49-11.21,9.77l-5.48,5c-1.81,1.67-3.41,3.58-5.11,5.37l-9.88,11,11.56-9.1c1.93-1.5,3.73-3.14,5.74-4.52l6.05-4.11c4.09-2.65,7.88-5.66,12.06-8.13l12.53-7.31c16.93-9.26,34.42-17.38,52.68-23.27l6.79-2.33c2.25-.81,4.62-1.29,6.92-1.94l13.83-3.82,14-2.95,7-1.5,7.09-1,14.17-2,14.26-1.17c2.38-.15,4.75-.51,7.14-.54l7.15-.15c4.76,0,9.53-.36,14.29-.19,9.52.42,19.07.47,28.51,1.76l7.11.71,3.56.36,3.52.61,14.08,2.39c9,1.91,17.92,4.06,26.77,6.58a377.23,377.23,0,0,0-101.65,15.09,359.79,359.79,0,0,0-65.17,25.61A314.64,314.64,0,0,0,982.75,399.85l.72.41c39.29-58.36,105.67-96.77,181.47-107.35-33.13,34.84-53.65,82.91-53.65,135.92,0,71.87,37.73,134.62,93.45,167.66l-2
4111.64,33.87h0l33.42-27.45a176.53,176.53,0,0,0,30.89,11.88l-9.18,38.36h0l22.08-35.3a175.21,175.21,0,0,0,34.17,3.41c3.33,0,6.64-.11,9.93-.3l8.89,32.1,3.64-33.3a174.59,174.59,0,0,0,40.14-10.09L1385,632.39h0l-13.38-29.09c62.56-30.65,106-97.31,106-174.47a200.15,200.15,0,0,0-10.22-63.24l30.21,12.54c2.2.92,4.47,1.85,6.77,2.79a293.47,293.47,0,0,1-5.64,81.71c-5.67,27.32-17,53.29-27.87,78.4l-2.44,5.63,1-.55c26.68-14,52.65-44.69,69.48-82.1,10.38-23.1,16.35-46.44,17.69-67.89a89.34,89.34,0,0,0,22-.21c30.46-4.29,53.74-25,76.26-45l1-.91-1.13,0C1618.35,350.77,1583.61,337.57,1555.79,323.25Zm-227.52,10.91c4.17-7.23,13.1-9.87,20-5.91s9,13,4.87,20.25-13.11,9.86-20,5.9S1324.1,341.38,1328.27,334.16Zm-70.19,157-25.79,71.45,39.59-66.51a101.89,101.89,0,0,0,22.25,3.64l10,78,3.51-78.24a101.69,101.69,0,0,0,20.27-3.71l24.47,33.91-12.58-38.16a106.46,106.46,0,0,0,22-12.76l38.42,19.92L1371.08,471a113.21,113.21,0,0,0,24.56-33.88,29,29,0,0,1,6.15.81c7.12,1.86,12.28,6.46,15.34,13.65,13.84,32.49-13.84,78.78-36.9,99.83-34.41,31.42-86,41.11-131.37,24.71A134.42,134.42,0,0,1,1227.29,566l-.36-.21c-28.75-16.77-50.49-42.16-59.63-69.65-5.4-16.22-7.39-40.13,1-54.31,3.89-6.58,9.57-10.47,17.39-11.92a50.11,50.11,0,0,1,9.07-.79c1.67,0,3.4.13,5.14.27a115.64,115.64,0,0,0,8.88,18l-24.42,16.74,30.56-7.63q3.25,4.37,6.9,8.37l-31.24,33.83,41.5-23.89q2.93,2.47,6,4.74l-31.75,56,44.21-48.08C1253,488.83,1255.51,490.08,1258.08,491.21Zm36.4,113.37c-91.81,0-166.51-78.84-166.51-175.75,0-56.2,25.16-106.29,64.18-138.49a320.2,320.2,0,0,1,37.27.33c4,.27,7.9.63,11.83,1-29.64,20.17-49.32,55.24-49.32,95.07a118.29,118.29,0,0,0,3.6,29,64.52,64.52,0,0,0-12.28,1,37.74,37.74,0,0,0-26.45,18.26c-11.28,19.09-8.21,47.1-2.16,65.29,10.15,30.54,34,58.59,65.57,77l.51.3a144.8,144.8,0,0,0,73.22,19.71c35.07,0,69.51-12.53,95.28-36.05,26.65-24.33,56.73-76.06,40.19-114.91-4.7-11-13.08-18.41-24.24-21.33a38.46,38.46,0,0,0-4.33-.81,118.29,118.29,0,0,0,4.93-53.89c-.22.37-.46.73-.7,1.1-7.13,10.69-21,14.42-31.71,8.22-11.2-6.47-14.77-21.27-8-33.07,6-10.47,18.23-15,28.73-11.41l1.14.44c.51.21,1,.44,1.52.7,9.51,3.86,19,7.78,28.37,11.68l21.15,8.79a182.92,182.92,0,0,1,14.69,72C1461,525.74,1386.3,604.58,1294.48,604.58Z","M360.85,17.93c-12.61,1.09-25.14,2.71-37.67,4.32l-19,3.07c-6.3,1.1-12.55,2.49-18.83,3.73A548.39,548.39,0,0,0,142.58,82.49,586.53,586.53,0,0,0,20.05,170.74c43.92-24.41,87.67-47.62,132.82-67s91.49-34.91,138.91-45.37c6-1.22,11.86-2.6,17.83-3.7l17.93-3.14c12.14-2,24.33-3.71,36.51-5.38,24.36-3.28,48.79-5.89,73.3-7.68a835.9,835.9,0,0,1,148.28,2C538.37,23.1,487.35,15.92,436.75,15A696.39,696.39,0,0,0,360.85,17.93Z","M534.43,256.4a360.08,360.08,0,0,0-65.17-25.61A377.3,377.3,0,0,0,367.6,215.7c8.85-2.52,17.8-4.67,26.78-6.58l14.09-2.39,3.51-.61,3.56-.36,7.11-.71c9.44-1.29,19-1.34,28.51-1.76,4.76-.17,9.53.14,14.3.19l7.14.15c2.39,0,4.76.39,7.14.54L494,205.34l14.17,2,7.09,1,7,1.5,14,2.95,13.83,3.82c2.3.65,4.67,1.13,6.92,1.94l6.79,2.33c18.26,5.89,35.75,14,52.68,23.27l12.53,7.31c4.18,2.47,8,5.48,12.06,8.13l6,4.11c2,1.38,3.81,3,5.74,4.52l11.56,9.1-9.88-11c-1.7-1.79-3.3-3.7-5.11-5.37l-5.48-5c-3.69-3.28-7.28-6.76-11.21-9.77l-11.91-9c-16.4-11.19-33.82-21.31-52.49-28.53-9.12-4.18-18.78-6.89-28.28-10.11-4.82-1.32-9.69-2.51-14.56-3.72l-7.3-1.81-7.41-1.32c-19.68-4.06-39.84-5.08-59.91-5.22a308.64,308.64,0,0,0-59.8,7c-4.93,1-9.73,2.58-14.59,3.84l-7.26,2c-2.43.65-4.75,1.67-7.12,2.49l-10.77,4a219.84,219.84,0,0,1-15.79-24.16l-.74-1.32,0,1.52c-.16,7.24-.93,14.61-1.67,21.74-.38,3.61-.75,7.25-1.05,10.9-2.15,1.08-4.25,2.21-6.36,3.34a310,310,0,0,0-44.89,8.56,320,320,0,0,1-37.63-34.22l-.68-.73,0,1a327.87,327.87,0,0,0,1.32,46.76c-1,.43-2,.81-3,1.24a361.82,361.82,0,0,0-36.6,18.91A261.86,261.86,0,0,1,158.34,224a16.51,16.51,0,0,1-4.19-5.39l-.67-1.66-.13,1.79c-1.48,20.46.29,43,4.9,65.7a355.46,355.46,0,0,1-100.54-28.7l-1.13-.51.59,1.09a523.73,523.73,0,0,0,43,66.9c-27,13.92-60.63,26.8-96,26.8-1,0-2,0-3,0L0,350l1,.92c22.51,20,45.79,40.71,76.25,45a89.34,89.34,0,0,0,22,.21c1.34,21.45,7.31,44.79,17.69,67.89,16.83,37.41,42.8,68.1,69.48,82.1l1,.55-2.43-5.61c-10.92-25.12-22.21-51.1-27.88-78.42a293.47,293.47,0,0,1-5.64-81.71c2.3-.94,4.57-1.87,6.77-2.79l30.21-12.54a200.15,200.15,0,0,0-10.22,63.24c0,77.16,43.48,143.82,106,
411174.47L271,632.39l27.93-22.72A174.59,174.59,0,0,0,339,619.76l3.64,33.3,8.89-32.1c3.29.19,6.6.3,9.93.3a175.21,175.21,0,0,0,34.17-3.41l22.08,35.3-9.18-38.36a176.53,176.53,0,0,0,30.89-11.88l33.42,27.45h0l-21.64-33.87c55.72-33,93.44-95.79,93.44-167.66,0-53-20.51-101.08-53.63-135.91,75.79,10.57,142.18,49,181.46,107.34l.72-.41A314.69,314.69,0,0,0,534.43,256.4Zm-226.7,71.85c6.85-4,15.79-1.32,20,5.91s2,16.28-4.87,20.24-15.8,1.32-20-5.9S300.87,332.21,307.73,328.25Zm8.38,163.35-12.58,38.16L328,495.85a101.69,101.69,0,0,0,20.27,3.71l3.51,78.24,10.05-78a101.89,101.89,0,0,0,22.25-3.64l39.59,66.51-25.79-71.45c2.57-1.13,5.08-2.38,7.54-3.71l44.21,48.08-31.74-56c2.05-1.51,4.06-3.09,6-4.74l41.5,23.89-31.24-33.83q3.64-4,6.9-8.37l30.56,7.63L447.2,447.45a115.56,115.56,0,0,0,8.89-18.06,53.48,53.48,0,0,1,14.2.55c7.82,1.45,13.51,5.34,17.39,11.92,8.37,14.18,6.38,38.09,1,54.31-9.14,27.49-30.88,52.88-59.63,69.65l-.47.27a134.14,134.14,0,0,1-21.46,10.06c-45.39,16.4-97,6.71-131.37-24.71-23.06-21.05-50.74-67.34-36.9-99.83,3.06-7.19,8.22-11.79,15.34-13.65a29.62,29.62,0,0,1,6.14-.83A113.33,113.33,0,0,0,284.88,471l-29.15,27.73,38.42-19.92A106.46,106.46,0,0,0,316.11,491.6ZM528,428.83c0,96.91-74.7,175.75-166.51,175.75S195,525.74,195,428.83a182.74,182.74,0,0,1,14.69-72L230.8,348c9.4-3.9,18.86-7.82,28.37-11.68.5-.25,1-.49,1.52-.7s.76-.3,1.14-.44c10.5-3.62,22.68.94,28.73,11.41,6.81,11.8,3.24,26.6-8,33.07-10.74,6.2-24.58,2.47-31.71-8.22-.24-.36-.48-.73-.7-1.1a118.29,118.29,0,0,0,4.93,53.89,38.46,38.46,0,0,0-4.33.81c-11.16,2.92-19.54,10.29-24.24,21.33C210,485.24,240.1,537,266.74,561.3c25.78,23.53,60.2,36.05,95.29,36.05a144.77,144.77,0,0,0,73.19-19.7l.53-.31h0c31.51-18.38,55.4-46.43,65.55-77,6.05-18.19,9.12-46.2-2.16-65.29a37.74,37.74,0,0,0-26.45-18.26,65.34,65.34,0,0,0-12.28-1,118.29,118.29,0,0,0,3.6-29c0-39.83-19.68-74.9-49.32-95.07,3.93-.41,7.88-.77,11.84-1a320,320,0,0,1,37.26-.33C502.83,322.54,528,372.63,528,428.83Z"]},soft:{label:"Soft",viewBox:"0 0 1722.02 603.93",paths:["M1245,519a130.76,130.76,0,0,0,49.48,16.41,123.41,123.41,0,0,0,52-4.57c16.65-5.31,32.12-14.54,43.41-27.31a149.5,149.5,0,0,1-46,17.15,155.45,155.45,0,0,1-47.83,1.49,168.83,168.83,0,0,1-46.38-12.5,176,176,0,0,1-42.09-25.7C1216.65,498.38,1230,510.21,1245,519Z","M1090,318.09c24.15-20.33,53.81-32.77,84.77-41.45a188.16,188.16,0,0,0-35.76,111c0,93.7,67.35,171.14,153.85,181.78-8,.52-16,.88-24,1-19.39.25-38.83-.72-58.61-2.18a208.84,208.84,0,0,0,33.06,9.06A86.29,86.29,0,0,0,1229.52,603a81.56,81.56,0,0,1,23.87-22.53,5.2,5.2,0,0,0,1.15-1l.19-.27c4.54.64,9.1,1.17,13.67,1.56,2.8.26,5.6.45,8.41.61a116,116,0,0,0,.67,22.57,111.29,111.29,0,0,1,8.29-22.23,266.28,266.28,0,0,0,39.4-2.1,83.46,83.46,0,0,0,8.68,24.14,78.11,78.11,0,0,1,1.26-24.43,5.6,5.6,0,0,0,.1-1.17,255.08,255.08,0,0,0,51.15-14,214,214,0,0,0,52.27-28.59c-16.81,6.47-33.51,12.31-50.41,17.2,58.61-29.51,99.19-92.47,99.19-165.2,0-52-20.76-99-54-132.32,6.87,1,13.67,2.17,20.4,3.49a416.57,416.57,0,0,1,69.77,20.05c6,2.32,11.9,4.88,17.63,7.36,2.65,1.14,5.32,2.29,8,3.42.89,50.16-2.09,114-32.25,165.37-6.23,10.62-14.35,20.23-22.21,29.51-6.77,8-13.77,16.28-19.41,25.08l2.1,1.35c2.23-3.47,7.11-6.81,11.84-10a76.89,76.89,0,0,0,7.57-5.62,260.49,260.49,0,0,0,20-19.93,313.63,313.63,0,0,0,31-41.34c4.56-7.12,8.78-14.51,12.73-22.09a198.51,198.51,0,0,0,25,15.31,185.83,185.83,0,0,0,17.08,7.78,81.19,81.19,0,0,0,18,5,79.07,79.07,0,0,1-16-8.67,178.05,178.05,0,0,1-14.4-11,186.52,186.52,0,0,1-22.54-22.7,312.41,312.41,0,0,0,14.73-39.13c.29-1,.55-1.94.83-2.91,27,12.06,57.89,12.59,83.58,1.94a100.25,100.25,0,0,1-80.07-15.61c3-13.2,5.17-26.5,7.24-39.5,40.27,3.93,87.27-11.27,126.5-41.19l1.69-1.28-2,.55c-53.43,14.37-98.5,12.37-141.82-6.29-10.81-4.66-21.52-9.7-31.88-14.58-26.18-12.31-
41153.25-25.05-82.82-31.88-61.64-14.23-124.64-16.88-184.34-8-11.18.68-22.34,1.68-33.48,3.07-4.27.5-8.52,1.1-12.78,1.75a92.5,92.5,0,0,1-12.61-15.36c-7.3-10.93-13.18-23.31-18.45-35.93,1.53,13.6,3.65,27.28,7.89,40.91a120.64,120.64,0,0,0,5.16,13.51q-4.75.92-9.5,1.91c-1.54.34-3.07.71-4.6,1.06-26.07-11.37-51.67-26.68-69.6-47.45,1.14,13.3,6.52,25.21,12.59,36.91,4.18,8.05,9.18,15.85,16,21.88l.25.2a351.58,351.58,0,0,0-35.31,14.26,290.23,290.23,0,0,1-42.1-11.71c-13.13-4.73-23.13-10.83-34.55-22,1.81,10,7.26,16.44,13.6,22.73,10.49,10.41,23.7,18.65,37.9,24.36-2.75,1.64-5.47,3.32-8.16,5.07A227.24,227.24,0,0,0,1058.94,280a185.14,185.14,0,0,0-26.41,31.11A289.6,289.6,0,0,1,1063.12,285l8.1-5.81,8.38-5.4c2.75-1.84,5.66-3.46,8.49-5.17s5.68-3.42,8.63-4.93q8.71-4.74,17.65-9,3.93,1,7.89,1.84c-31.29,23-56.65,51.33-71.74,80.42-4.91,9.47-7.92,16.46-12.47,27.05-1.32,3.06-2.77,6.42-4.43,10.24l-1,2.4,1.73-1.95C1053.83,352.73,1070.31,334.62,1090,318.09ZM1347.28,279c11.1,3.74,21,10.45,29.3,18.6A92.71,92.71,0,0,1,1396,326.19a78.83,78.83,0,0,1,7,33.36,120,120,0,0,0-11.65-31.08,112.5,112.5,0,0,0-19.46-26.13,88.32,88.32,0,0,0-26.47-18.48,74.47,74.47,0,0,0-32.2-6.2A57.85,57.85,0,0,1,1347.28,279Zm-55.81,97,2.78-38.11.06-.89.33-4.56.87,4.75.16.85,6.76,37.05,14.14-9.81-7.89,16.53,35.64,3.55-36.34,9.5,9.85,16.35-16.06-7.52-2.74,39-6.85-38.74L1275.81,415l11.73-19.1L1245.37,390l41.21-6.73-12.11-20.08Zm-88.54-35.1c0-.28,0-.56,0-.84.74-19.06,15.6-34.28,33.89-34.28,17,0,31,13.16,33.52,30.32,0,.27.09.55.12.83a36.76,36.76,0,0,1,.31,4.6c0,19.74-15.2,35.74-34,35.74a32.57,32.57,0,0,1-17.95-5.43c-.26-.18-.54-.33-.8-.52-.22,2.82-.36,5.66-.36,8.54,0,55.79,43.12,101.19,96.13,101.19,48.13,0,88.1-37.43,95-86.09,11.74,5.64,24.23,10.16,36.53,10.16a47.2,47.2,0,0,0,6.71-.47A32.4,32.4,0,0,0,1474,391.68c-2.08,91.71-73.38,165.65-160.79,165.65-88.72,0-160.89-76.15-160.89-169.74a176.4,176.4,0,0,1,15.76-73.23,25.88,25.88,0,0,0,1.11,4.08,28.62,28.62,0,0,0,2.41,4.95C1178.29,334.37,1189.84,339.17,1202.93,340.87Z","M1165.65,144.93h.26c3.1,0,29.83-4.7,222.73-117.55a30.21,30.21,0,0,0,3.39-2.31L1424,0l-3.57,1.75c-154.05,75.7-259.36,104.12-320.58,114.62-66.33,11.38-96.61,4.78-96.91,4.71l-1.86-.42,1.51,1.16c.32.24,31.65,23.28,145.46,23.28Q1156.53,145.1,1165.65,144.93Z","M375.49,530.79a123.44,123.44,0,0,0,52,4.57A130.82,130.82,0,0,0,477,519c15-8.74,28.35-20.57,37.39-35a176,176,0,0,1-42.09,25.7,168.83,168.83,0,0,1-46.38,12.5,155.52,155.52,0,0,1-47.84-1.49,149.5,149.5,0,0,1-46-17.15C343.38,516.25,358.85,525.48,375.49,530.79Z","M55.36,357.45c25.69,10.65,56.6,10.12,83.58-1.94.28,1,.53,1.94.83,2.91a311.78,311.78,0,0,0,14.72,39.13A186.44,186.44,0,0,1,132,420.25a179.83,179.83,0,0,1-14.4,11,79.07,79.07,0,0,1-16,8.67,81,81,0,0,0,17.95-5,187.23,187.23,0,0,0,17.09-7.78,199.23,199.23,0,0,0,24.95-15.31c3.95,7.58,8.17,15,12.72,22.09a316.08,316.08,0,0,0,31,41.34,262.31,262.31,0,0,0,19.95,19.93,78.33,78.33,0,0,0,7.58,5.62c4.71,3.22,9.59,6.56,11.82,10v0l1.06-.67,1.05-.68c-5.65-8.8-12.65-17.07-19.42-25.08-7.85-9.28-16-18.89-22.21-29.51-30.15-51.41-33.14-115.21-32.25-165.37,2.69-1.13,5.36-2.28,8-3.42,5.73-2.48,11.66-5,17.63-7.36a416.46,416.46,0,0,1,69.76-20.05c6.73-1.32,13.54-2.47,20.41-3.49-33.24,33.36-54,80.32-54,132.32,0,72.73,40.58,135.69,99.2,165.2-16.91-4.89-33.61-10.73-50.42-17.2a214.19,214.19,0,0,0,52.27,28.59,255.26,255.26,0,0,0,51.15,14,5.78,5.78,0,0,0,.1,1.17,77.81,77.81,0,0,1,1.26,24.43,82.88,82.88,0,0,0,8.68-24.14,266.41,266.41,0,0,0,39.41,2.1,111.9,111.9,0,0,1,8.29,22.23,116,116,0,0,0,.66-22.57c2.81-.16,5.62-.35,8.42-.61,4.56-.39,9.12-.92,13.65-1.56a5.14,5.14,0,0,0,1.35,1.23A81.56,81.56,0,0,1,492.49,603a86.29,86.29,0,0,0-13.72-25.68,208.66,208.66,0,0,0,33.07-9.06c-19.78,1.46-39.23,2.43-58.61,2.18-8-.14-16-.5-24-1,86.5-10.64,153.86-88.08,153.86-181.78a188.17,188.17,0,0,0-35.77-110.95c31,8.68,60.62,21.12,84.77,41.45,19.65,16.53,36.13,34.64,55.64,56.59l1.74,1.95-1-2.4c-1.67-3.83-3.12-7.2-4.44-10.27-4.55-10.57-7.56-17.56-12.46-27-15.1-29.09-40.46-57.47-71.74-80.42,2.63-.53,5.27-1.14,7.89-1.84q8.94,4.29,17.64,9c3,1.51,5.79,3.22,8.63,4.93s5.74,3.33,8.5,5.17l8.37,5.4L658.9,285a290.61,290.61,0,0,1,30.59,26.11A185.2,185.2,0,0,0,663.07,280a227.24,227.24,0,0,0-32.46-25.21c-2.68-1.75-5.41-3.43-8.15-5.07,14.19-5.71,27.41-13.95,37.89-24.36,6.35-6.29,11.79-12.74,13.61-22.73-11.43,11.2-21.43,17.3-34.56,22a290.23,290.23,0,0,1-42.1,11.71A350.63,350.63,0,0,0,562,222.14l.25-.2c6.87-6,11.87-13.83,16-21.88,6.07-11.7,11.45-23.61,12.59-36.91-17.93,20.77-43.53,36.08-69.59,47.45-1.54-.35-3.07-.72-4.61-1.06q-4.74-1-9.49-1.91a118.65,118.65,0,0,0,5.15-13.51c4.25-13.63,6.37-27.31,7.9-40.91-5.28,12.62-11.15,25-18.45,35.93a93,93,0,0,1-12.62,15.36c-4.25-.65-8.51-1.25-12.78-1.75-11.14-1.39-22.31-2.39-33.48-3.07-59.7-8.89-122.7-6.25-184.33,8-29.57,6.83-56.64,19.57-82.82,31.88-10.36,4.88-21.07,9.92-31.89,14.58-43.32,18.66-88.39,20.66-141.81,6.29l-2-.55,1.69,1.28c39.23,29.92,86.21,45.13,126.5,41.19,2.07,13,4.2,26.3,7.23,39.5A100.23,100.23,0,0,1,55.36,357.45Zm371-19.43.15-.85.87-4.76.34,4.63.06.82L430.55,376l17-12.76-12.1,20.08,41.2,6.73-42.16,5.91L446.2,415l-16.37-11.11L423,442.66l-2.73-39-16.07,7.52L414,394.83l-36.35-9.5,35.64-3.55-7.89-16.53,14.15,9.81ZM326,326.19a92.92,92.92,0,0,1,19.45-28.57c8.27-8.15,18.2-14.86,29.29-18.6a57.85,57.85,0,0,1,34.07-1.36,74.5,74.5,0,0,0-32.2,6.2,88.4,88.4,0,0,0-26.46,18.48,112.54,112.54,0,0,0-19.47,26.13A119.94,119.94,0,0,0,319,359.55,79,79,0,0,1,326,326.19ZM408.14,481c53,0,96.13-45.4,96.13-101.19,0-2.88-.15-5.72-.37-8.53-.26.18-.53.33-.8.51a32.57,32.57,0,0,1-17.94,5.43c-18.75,0-34-16-34-35.74a38.76,38.76,0,0,1,.31-4.6l.12-.83c2.49-17.16,16.53-30.32,33.53-30.32,18.28,0,33.15,15.22,33.88,34.28,0,.28,0,.56,0,.84,13.1-1.7,24.64-6.5,31.36-17.48a27.86,27.86,0,0,0,2.4-4.95,27,27,0,0,0,1.12-4.08,176.55,176.55,0,0,1,15.76,73.23c0,93.59-72.18,169.74-160.89,169.74-87.42,0-158.72-73.94-160.79-165.65a32.35,32.35,0,0,0,21.81,12.94,47,47,0,0,0,6.71.47c12.29,0,24.79-4.52,36.52-10.15C320,443.59,360,481,408.14,481Z","M556.37,144.93q9.12.18,17.6.17c113.8,0,145.15-23,145.46-23.28l1.51-1.16-1.85.42c-.3.07-30.53,6.67-96.82-4.69C561,105.89,455.7,77.48,301.6,1.75L298,0l32,25.08a28.93,28.93,0,0,0,3.39,2.31C533.7,144.59,554.8,145.13,556.37,144.93Z"]}},Ay=({size:t,expression:s,mode:r,showBrackets:a,dark:n})=>{const o=t,i=o/2,l=o/2,c=o*.44,u=c*Math.cos(Math.PI/8)*.96,d=o*.012,m=n?"#60A5FA":"#111111",x=n?"#1E3A8A":"#1a1a2e",y=n?"#0B1120":"#F8FAFC",p=ps(i,l,c,0
411)+" "+ps(i,l,u,22.5),j="all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",g=s==="idle",w=r==="ai";return e.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[e.jsx("defs",{children:e.jsxs("filter",{id:`glow-${o}`,children:[e.jsx("feGaussianBlur",{stdDeviation:o*.004,result:"blur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"blur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),e.jsx("path",{d:p,fill:m,fillRule:"evenodd",filter:n?`url(#glow-${o})`:void 0}),(a&&r==="runes"||g&&!w)&&e.jsxs("g",{opacity:n?.8:.18,stroke:n?"#60A5FA":m,strokeWidth:d*.7,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:`${i-u*.72},${l-o*.05} ${i-u*.88},${l} ${i-u*.72},${l+o*.05}`}),e.jsx("polyline",{points:`${i+u*.72},${l-o*.05} ${i+u*.88},${l} ${i+u*.72},${l+o*.05}`})]}),g&&!w&&e.jsx("g",{children:ka.idle.glyphs.map((v,b)=>e.jsx("text",{x:i+(b-2)*o*.1,y:l+o*.03,textAnchor:"middle",dominantBaseline:"central",fill:n?"#60A5FA":x,fontSize:o*.13,fontFamily:"serif",opacity:n?.8:.6,style:{transition:"all 0.4s ease",transitionDelay:`${b*60}ms`},children:v},b))}),r==="anime"&&!g&&(()=>{const v=nl[s]||nl.neutral,b=o/115,k=n?v.colors.dark:v.colors.light,A=n?k.sclera:k.iris,E=n?.7:.75;return e.jsxs("g",{transform:`translate(${i}, ${l}) scale(${b})`,children:[e.jsx("path",{d:v.brow.left.d,fill:"none",stroke:A,strokeWidth:v.brow.left.w,strokeLinecap:"round",opacity:E,style:{transition:j}}),e.jsx("path",{d:v.brow.right.d,fill:"none",stroke:A,strokeWidth:v.brow.right.w,strokeLinecap:"round",opacity:E,style:{transition:j}}),e.jsx(ll,{e:v.left,color:k.iris,irisColor:k.accent,bgColor:y,scleraColor:k.sclera,flip:!1,clipId:`el${o}`}),e.jsx(ll,{e:v.right,color:k.iris,irisColor:k.accent,bgColor:y,scleraColor:k.sclera,flip:!0,clipId:`er${o}`})]})})(),r==="plain"&&!g&&(()=>{const v=il[s]||il.neutral;return e.jsxs("g",{transform:`translate(${i}, ${l}) scale(${o/115})`,children:[e.jsx(cl,{eye:v.leftEye,color:x,bgColor:y,t:j,clipId:`pl${o}`}),e.jsx(cl,{eye:v.rightEye,color:x,bgColor:y,t:j,clipId:`pr${o}`}),e.jsx(ky,{mouth:v.mouth,color:x,t:j})]})})(),r==="runes"&&!g&&e.jsx("g",{children:(ka[s]||ka.idle).glyphs.map((v,b)=>e.jsx("text",{x:i+(b-2)*o*.1,y:l+o*.03,textAnchor:"middle",dominantBaseline:"central",fill:n?"#60A5FA":x,fontSize:o*.13,fontFamily:"serif",opacity:n?.8:.6,style:{transition:"all 0.4s ease",transitionDelay:`${b*60}ms`},children:v},b))}),r==="manga"&&!g&&(()=>{const v=dl[s]||dl.neutral,[,,b,k]=v.viewBox.split(" ").map(Number),A=k/b,E=u*1.75,M=E*A;return e.jsx("svg",{x:i-E/2,y:l-M/2,width:E,height:M,viewBox:v.viewBox,children:v.paths.map((T,R)=>e.jsx("path",{d:T,fill:x,style:{transition:"all 0.5s ease"}},R))})})(),w&&(()=>{const v=ol[s]||ol.idle,b=Math.max(o/200,.22),k=n?"#60A5FA":"#111111",A=n?"#93C5FD":"#3B82F6",E=u*v.coreScale;return e.jsxs("g",{children:[n&&e.jsx("circle",{cx:i,cy:l,r:E*3.5,fill:"#60A5FA",opacity:.05,children:e.jsx("animate",{attributeName:"opacity",values:"0.03;0.09;0.03",dur:`${v.pulse}s`,repeatCount:"indefinite"})}),v.rings.map((M,T)=>{const R=u*M.rScale,$=Math.max(M.w*b,.4),z=M.dur!==0,te=M.dur>0?360:-360,B=Math.abs(M.dur);return e.jsx("g",{transform:`translate(${i},${l})`,children:e.jsxs("g",{children:[z&&e.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 0 0",to:`${te} 0 0`,dur:`${B}s`,repeatCount:"indefinite"}),e.jsx("path",{d:ps(0,0,R,M.rot),fill:"none",stroke:k,strokeWidth:$,opacity:M.opacity,strokeLinejoin:"round"}),v.showStreams&&T>0&&e.jsx("path",{d:ps(0,0,R,M.rot),fill:"none",stroke:A,strokeWidth:Math.max($*.6,.3),strokeDasharray:`${R*.22} ${R*.58}`,opacity:M.opacity*.65,strokeLinejoin:"round",children:e.jsx("animate",{attributeName:"stroke-dashoffset",from:"0",to:`${(v.streamIn?1:-1)*R*2.2}`,dur:`${2.5+T*.6}s`,repeatCount:"indefinite"})})]})},`ring-${T}`)}),v.rayCount>0&&v.rings.length>1&&(()=>{const M=[];for(let T=0;T<v.rings.length-1;T++){const R=u*v.rings[T].rScale,$=u*v.rings[T+1].rScale,z=Math.min(v.rayCount,6),te=T*(Math.PI/z);for(let B=0;B<z;B++){const W=Math.PI*2*B/z+te-Math.PI/2,q=W+Math.PI/(z*1.2),he=!v.activeRays||v.activeRays.includes(B);M.push(e.jsx("path",{d:`M ${i+Math.cos(W)*R},${l+Math.sin(W)*R} Q ${i+Math.cos((W+q)/2)*(R+$)*.48}
411,${l+Math.sin((W+q)/2)*(R+$)*.48} ${i+Math.cos(q)*$},${l+Math.sin(q)*$}`,fill:"none",stroke:he?A:k,strokeWidth:Math.max(.5*b,.25),opacity:he?.25:.06,strokeLinecap:"round"},`arc-${T}-${B}`))}}return M})(),v.showNodes&&v.rings.map((M,T)=>{const R=u*M.rScale,$=T===0?3:4+T;return Array.from({length:$},(z,te)=>{const B=Math.max(1.4*b,.45),W=6+T*3+te*.8,q=T%2===0?1:-1,he=!v.activeRays||v.activeRays.includes(te%v.rayCount);return e.jsxs("circle",{cx:0,cy:0,r:B,fill:he?A:k,opacity:.5,children:[e.jsx("animateMotion",{path:ps(i,l,R,M.rot),dur:`${W}s`,begin:`${W/$*te*q}s`,repeatCount:"indefinite",rotate:"auto"}),e.jsx("animate",{attributeName:"opacity",values:he?"0.25;0.85;0.25":"0.1;0.35;0.1",dur:`${v.pulse}s`,begin:`${T*.3+te*.15}s`,repeatCount:"indefinite"})]},`orb-${T}-${te}`)})}),e.jsxs("g",{transform:`translate(${i},${l})`,children:[e.jsx("defs",{children:e.jsxs("radialGradient",{id:`spark-grad-${o}`,cx:"50%",cy:"50%",r:"50%",children:[e.jsx("stop",{offset:"0%",stopColor:n?"#C084FC":"#FFFFFF",stopOpacity:1,children:e.jsx("animate",{attributeName:"stopColor",values:n?"#C084FC;#E9D5FF;#C084FC":"#FFFFFF;#F5F3FF;#FFFFFF",dur:`${v.pulse}s`,repeatCount:"indefinite"})}),e.jsx("stop",{offset:"35%",stopColor:n?"#7C3AED":"#A78BFA",stopOpacity:n?.9:.95,children:e.jsx("animate",{attributeName:"stopColor",values:n?"#7C3AED;#A78BFA;#7C3AED":"#A78BFA;#C4B5FD;#A78BFA",dur:`${v.pulse}s`,repeatCount:"indefinite"})}),e.jsx("stop",{offset:"70%",stopColor:"#6D28D9",stopOpacity:n?.6:.9,children:e.jsx("animate",{attributeName:"stopColor",values:"#6D28D9;#7C3AED;#6D28D9",dur:`${v.pulse}s`,repeatCount:"indefinite"})}),e.jsx("stop",{offset:"100%",stopColor:n?"#4C1D95":"#3B0764",stopOpacity:n?.3:.85,children:e.jsx("animate",{attributeName:"stopOpacity",values:n?"0.3;0.6;0.3":"0.7;0.95;0.7",dur:`${v.pulse}s`,repeatCount:"indefinite"})})]})}),e.jsxs("circle",{cx:0,cy:0,r:E*2.2,fill:n?"#7C3AED":"#6D28D9",opacity:n?.1:.08,children:[e.jsx("animate",{attributeName:"opacity",values:n?"0.06;0.18;0.06":"0.04;0.16;0.04",dur:`${v.pulse}s`,repeatCount:"indefinite"}),e.jsx("animate",{attributeName:"r",values:`${E*1.8};${u*.55};${E*1.8}`,dur:`${v.pulse}s`,repeatCount:"indefinite"})]}),e.jsxs("g",{children:[e.jsx("animateTransform",{attributeName:"transform",type:"scale",values:`1;${u*.8/E};1`,dur:`${v.pulse}s`,repeatCount:"indefinite"}),e.jsx("path",{d:Fr(0,0,E),fill:`url(#spark-grad-${o})`,opacity:.95})]}),e.jsx("circle",{cx:0,cy:0,r:E*.25,fill:n?"#E9D5FF":"#FFFFFF",opacity:.9,children:e.jsx("animate",{attributeName:"opacity",values:"0.7;1;0.7",dur:`${v.pulse}s`,repeatCount:"indefinite"})})]})]})})()]})},Sy=({children:t,animate:s})=>s?e.jsxs("div",{style:{animation:"saxaPulse 3s ease-in-out infinite"},children:[t,e.jsx("style",{children:"@keyframes saxaPulse { 0%,100%{filter:drop-shadow(0 0 0 transparent)} 50%{filter:drop-shadow(0 0 8px rgba(96,165,250,.2))} }"})]}):e.jsx(e.Fragment,{children:t}),Cy={sm:32,md:40,lg:56};function Ey(t){const s=new MutationObserver(t);return s.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()}function Py(){return document.documentElement.classList.contains("dark")}function mr({size:t="md",pulse:s=!1,expression:r="idle",mode:a="ai",dark:n,className:o=""}){const i=h.useSyncExternalStore(Ey,Py),l=n??i,c=Cy[t];return e.jsx("div",{className:o,children:e.jsx(Sy,{animate:s,children:e.jsx(Ay,{size:c,expression:r,mode:a,showBrackets:a==="runes",dark:l})})})}const ul=[{value:"ai",label:"AI Core"},{value:"anime",label:"Anime Eyes"},{value:"plain",label:"Plain Emoji"},{value:"manga",label:"Manga"},{value:"runes",label:"Runes"}];function Ty({mode:t,onModeChange:s}){var i;const[r,a]=h.useState(!1),n=h.useRef(null);h.useEffect(()=>{if(!r)return;const l=c=>{n.current&&!n.current.contains(c.target)&&a(!1)};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[r]);const o=((i=ul.find(l=>l.value===t))==null?void 0:i.label)??"Anime Eyes";return e.jsxs("div",{ref:n,className:"relative",children:[e.jsxs("button",{onClick:()=>a(!r),className:"flex items-center gap-1 text-[10px] text-white/70 hover:text-white transition-colors",children:[o,e.jsx(Bl,{size:10,
411className:`transition-transform ${r?"rotate-180":""}`})]}),r&&e.jsx("div",{className:"absolute top-full left-0 mt-1 bg-white dark:bg-[#0F1F3D] rounded-lg shadow-lg border border-gray-200 dark:border-[#1E3A8A]/30 py-1 z-50 min-w-[120px]",children:ul.map(l=>e.jsx("button",{onClick:()=>{s(l.value),a(!1)},className:`block w-full text-left px-3 py-1.5 text-xs transition-colors ${l.value===t?"text-[#60A5FA] font-medium bg-[#60A5FA]/10":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-[#1E3A8A]/20"}`,children:l.label},l.value))})]})}const Iy=["How does it work?","Show me pricing","Compare to competitors","Join the waitlist"];function _y(){const[t,s]=Lt(),r=t.get("openChat")==="1",a=t.get("intro")??null,[n,o]=h.useState(!1),[i,l]=h.useState(!1),[c,u]=h.useState(!1),d=h.useRef(null),m=h.useRef(null),x=h.useRef(null),y=h.useRef(null),{messages:p,input:j,handleInputChange:g,handleSubmit:w,isLoading:v}=uy({initialMessage:a}),{mode:b,setMode:k}=jy(),A=vy(p,v),E=Na(A,b),M=Ny(y),T=Na(c?"neutral":"idle",b);h.useEffect(()=>{r&&a&&(o(!0),s(B=>{const W=new URLSearchParams(B);return W.delete("openChat"),W.delete("intro"),W},{replace:!0}))},[r,a,s]),h.useEffect(()=>{d.current&&d.current.scrollIntoView({behavior:"smooth"})},[p]),h.useEffect(()=>{if(!(sessionStorage.getItem("saxa-nudge-dismissed")||n))return m.current=setTimeout(()=>{u(!0)},3e4),()=>{m.current&&clearTimeout(m.current)}},[n]),h.useEffect(()=>{n&&(u(!1),m.current&&clearTimeout(m.current),x.current&&clearTimeout(x.current))},[n]),h.useEffect(()=>{if(c)return x.current=setTimeout(()=>{u(!1),sessionStorage.setItem("saxa-nudge-dismissed","1")},15e3),()=>{x.current&&clearTimeout(x.current)}},[c]);const R=h.useCallback(()=>{u(!1),sessionStorage.setItem("saxa-nudge-dismissed","1"),x.current&&clearTimeout(x.current)},[]),$=B=>{B.preventDefault(),console.log("[Chat] form onSubmit",{input:(j??"").slice(0,50),trimmed:(j??"").trim().length}),!(!j||!j.trim())&&w(B)},z=h.useCallback(B=>{var he;const W={preventDefault:()=>{}},q=document.querySelector("[data-saxa-input]");if(q){const J=(he=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:he.set;J==null||J.call(q,B),q.dispatchEvent(new Event("input",{bubbles:!0})),setTimeout(()=>{w(W)},50)}},[w]),te=p.length===1&&!v;return e.jsxs(e.Fragment,{children:[e.jsx(vr,{children:c&&!n&&e.jsxs(_.div,{initial:{opacity:0,y:10,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.9},transition:{type:"spring",damping:20,stiffness:300},className:"fixed bottom-24 right-6 z-50 flex items-center gap-2",children:[e.jsxs("div",{className:"bg-white dark:bg-[#0F1F3D] rounded-2xl shadow-lg border border-gray-200 dark:border-[#1E3A8A]/30 px-4 py-3 max-w-[220px]",children:[e.jsx("button",{onClick:()=>{R(),o(!0)},className:"text-sm text-gray-800 dark:text-white text-left leading-snug cursor-pointer",children:"Curious about xReplAI? I can help."}),e.jsx("button",{onClick:R,className:"absolute -top-2 -right-2 w-5 h-5 bg-gray-200 dark:bg-gray-700 rounded-full flex items-center justify-center text-gray-500 dark:text-gray-400 hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors","aria-label":"Dismiss",children:e.jsx(kt,{size:10})})]}),e.jsx("div",{className:"w-3 h-3 bg-white dark:bg-[#0F1F3D] border-b border-r border-gray-200 dark:border-[#1E3A8A]/30 rotate-45 -ml-4 mt-4"})]})}),e.jsx(vr,{children:!n&&e.jsx(_.button,{ref:y,initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},whileHover:{scale:1.1},transition:{duration:.2},onClick:()=>o(!0),className:"fixed bottom-6 right-6 z-50 cursor-pointer","aria-label":"Chat with Saxa",children:e.jsx(mr,{size:"lg",pulse:c,expression:T,mode:b,dark:M,className:`transition-opacity duration-500 ${c?"opacity-100":"opacity-60"}`})})}),e.jsx(vr,{children:n&&e.jsxs(_.div,{initial:{opacity:0,scale:.3},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.3},transition:{type:"spring",damping:25,stiffness:300},style:{transformOrigin:"bottom right"},className:"fixed bottom-6 right-6 z-50 w-96 bg-white dark:bg-[#0A1628] rounded-2xl shadow-2xl flex flex-col overflow-hidden border border-gray-200 dark:border-[#1E3A8A]/30",children:[e.jsxs("div",{className:"bg-gradient-to-r from-[#1E3A8A] to-[#60A5FA] text-white p-4 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"relative",children:[e.jsx(mr,{size:"md",expression:E,mode:b,dark:!0}),e.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 w-3 h-3 bg-green-400 rounded-full border-2 border-[#1E3A8A]"})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold",children:"Saxa"}),e.jsx(Ty,{mode:b,onModeChange:k})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>l(!i),className:"hover:bg-white/20 p-1.5 rounded transition-colors","aria-label":"Minimize chat",children:e.jsx(ym,{size:18})}),e.jsx("button",{onClick:()=>o(!1),className:"hover:bg-white/20 p-1.5 rounded transition-colors","aria-label":"Close chat",children:e.jsx(kt,{size:18})})]})]}),!i&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 bg-gray-50 dark:bg-[#0A1628]/50",style:{height:i?0:"460px"},children:[p.map((B,W)=>{const q=B.role!=="user",he=W>0?p[W-1]:null,J=q&&(!he||he.role==="user");return e.jsxs(_.div,{initial:{opacity:0,y:8}
411,animate:{opacity:1,y:0},transition:{duration:.2},className:`flex ${q?"justify-start":"justify-end"}`,children:[q&&e.jsx("div",{className:"flex-shrink-0 mr-2 mt-1",children:e.jsx(mr,{size:"sm",expression:E,mode:b})}),e.jsxs("div",{className:"flex flex-col max-w-[75%]",children:[J&&e.jsx("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 mb-1 ml-1",children:"Saxa"}),e.jsxs("div",{className:`rounded-2xl px-4 py-2 ${q?"bg-white dark:bg-[#1E3A8A]/20 text-gray-900 dark:text-white border border-gray-200 dark:border-[#1E3A8A]/30":"bg-[#1E3A8A] text-white"}`,children:[e.jsx("p",{className:"text-sm whitespace-pre-wrap",children:q?my(B.content):B.content}),B.createdAt&&e.jsx("p",{className:`text-xs mt-1 ${q?"text-gray-500 dark:text-gray-400":"text-white/70"}`,children:new Date(B.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})]})]},B.id)}),te&&e.jsx(_.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:"flex flex-wrap gap-2 pl-10",children:Iy.map((B,W)=>e.jsx(_.button,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:.4+W*.1},onClick:()=>z(B),className:"text-xs px-3 py-1.5 rounded-full border border-[#60A5FA]/40 text-[#1E3A8A] dark:text-[#60A5FA] hover:bg-[#60A5FA]/10 transition-colors cursor-pointer",children:B},B))}),v&&e.jsxs(_.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},className:"flex justify-start",children:[e.jsx("div",{className:"flex-shrink-0 mr-2 mt-1",children:e.jsx(mr,{size:"sm",expression:Na("focused",b),mode:b})}),e.jsx("div",{className:"bg-white dark:bg-[#1E3A8A]/20 text-gray-500 dark:text-gray-400 border border-gray-200 dark:border-[#1E3A8A]/30 rounded-2xl px-4 py-2",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs",children:"Saxa is thinking"}),e.jsxs("div",{className:"flex gap-1",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce"}),e.jsx("div",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce [animation-delay:0.1s]"}),e.jsx("div",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce [animation-delay:0.2s]"})]})]})})]}),e.jsx("div",{ref:d})]}),e.jsx("form",{onSubmit:$,className:"p-4 bg-white dark:bg-[#0A1628] border-t border-gray-200 dark:border-[#1E3A8A]/30",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"text","data-saxa-input":!0,value:j||"",onChange:g,placeholder:"Ask Saxa anything...",className:"flex-1 px-4 py-2 border border-gray-300 dark:border-[#1E3A8A]/30 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#60A5FA] bg-white dark:bg-[#0A1628]/50 text-gray-900 dark:text-white",disabled:v}),e.jsx("button",{type:"submit",disabled:v||!(j??"").trim(),className:"px-4 py-2 bg-[#1E3A8A] text-white rounded-lg hover:bg-[#1E3A8A]/90 transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center","aria-label":"Send message",children:e.jsx(Em,{size:18})})]})}),e.jsx("div",{className:"py-1 text-center bg-white dark:bg-[#0A1628] border-t border-gray-100 dark:border-[#1E3A8A]/10",children:e.jsx("span",{className:"text-[10px] text-gray-400 dark:text-gray-500",children:"Powered by Saxa"})})]})]})})]})}const Aa="cookie_consent";function Ry(){const[t,s]=h.useState(!1);h.useEffect(()=>{localStorage.getItem(Aa)||s(!0)},[]);const r=()=>{localStorage.setItem(Aa,"accepted"),s(!1),window.location.reload()},a=()=>{localStorage.setItem(Aa,"declined"),s(!1)};return t?e.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-[#1a2744] border-t border-gray-700 p-4 z-50",children:e.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs("p",{className:"text-gray-300 text-sm",children:["We use cookies and tracking to improve your experience and analyze site traffic."," ",e.jsx("a",{href:"/privacy",className:"text-[#60A5FA] hover:underline",children:"Learn more"})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{onClick:a,className:"px-4 py-2 text-sm text-gray-400 hover:text-white transition-colors",children:"Decline"}),e.jsx("button",{onClick:r,className:"px-4 py-2 text-sm bg-[#60A5FA] hover:bg-[#3B82F6] text-white rounded-lg transition-colors",children:"Accept"})]})]})}):null}function My(){const t=ft();return h.useEffect(()=>{p0(t.pathname+t.search)},[t.pathname,t.search]),null}const Fy="71406201363-hohot5f8q570o8sehmrf1l86vgqc0sui.apps.googleusercontent.com";function Ly(){return h.useEffect(()=>{document.title="xReplAI - Home";let t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=Kl;const s=localStorage.getItem("theme"),r=window.matchMedia("(prefers-color-scheme: dark)").matches;if((s==="dark"||!s&&r)&&document.documentElement.classList.add("dark"),document.documentElement.style.scrollBehavior="smooth",n0(),!document.querySelector('script[src="https://accounts.google.com/gsi/client"]')){const n=document.createElement("script");n.src="https://accounts.google.com/gsi/client",n.async=!0,n.onload=()=>{window.google&&window.google.accounts&&window.google.accounts.id.initialize({client_id:Fy,callback:()=>{}})},document.head.appendChild(n)}},[]),e.jsx(u0,{children:e.jsx(r0,{children:e.jsxs(Kh,{children:[e.jsx(My,{}),e.jsxs(jh,{children:[e.jsx(Ee,{path:"/",element:e.jsx(r2,{})}),e.jsx(Ee,{path:"/enterprise",element:e.jsx(i2,{})}),e.jsx(Ee,{path:"/pricing",element:e.jsx(l2,{})}),e.jsx(Ee,{path:"/success",element:e.jsx(c2,{})}),e.jsx(Ee,{path:"/privacy",element:e.jsx(d2,{})}),e.jsx(Ee,{path:"/terms",element:e.jsx(u2,{})}),e.jsx(Ee,{path:"/cookies",element:e.jsx(h2,{})}),e.jsx(Ee,{path:"/admin",element:e.jsx(m2,{})}),e.jsx(Ee,{path:"/branding-demo",element:e.jsx(b2,{})}),e.jsx(Ee,{path:"/auth/linkedin/callback",element:e.jsx(v2,{})}),e.jsx(Ee,{path:"/auth/google/callback",element:e.jsx(w2,{})}),e.jsx(Ee,{path:"/account",element:e.jsx(j2,{})}),e.jsx(Ee,{path:"/checkout",element:e.jsx(iy,{})}),e.jsx(Ee,{path:"/checkout/complete",element:e.jsx(oy,{})}),e.jsx(Ee,{path:"/for-sales",element:e.jsx(ly,{})}),e.jsx(Ee,{path:"/for-jobseekers",element:e.jsx(cy,{})}),e.jsx(Ee,{path:"/for-recruiters",element:e.jsx(dy,{})})]}),e.jsx(_y,{}),e.jsx(Ry,{})]})})})}Au.createRoot(document.getElementById("root")).render(e.jsx(Ly,{}));
412//# sourceMappingURL=index-DMF-9Tmv.js.map

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.